mongoose-studio 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -13
- package/dist/index.js +100 -44
- package/dist/ui/404.html +1 -1
- package/dist/ui/__next.__PAGE__.txt +2 -2
- package/dist/ui/__next._full.txt +6 -6
- package/dist/ui/__next._head.txt +1 -1
- package/dist/ui/__next._index.txt +4 -4
- package/dist/ui/__next._tree.txt +2 -2
- package/dist/ui/_next/static/chunks/177f15bb24010289.js +1 -0
- package/dist/ui/_next/static/chunks/298fc2d040ac93e5.css +2 -0
- package/dist/ui/_next/static/chunks/427ad77fb6b91e0d.js +1 -0
- package/dist/ui/_next/static/chunks/{a2807f954e6ee5ce.js → 4642f2face723696.js} +1 -1
- package/dist/ui/_next/static/chunks/91f078afda525bea.js +1 -0
- package/dist/ui/_next/static/chunks/e08f4a8f5f863401.js +1 -0
- package/dist/ui/_next/static/chunks/eaa2b3b270716c89.js +2 -0
- package/dist/ui/_next/static/chunks/f1cfe0e077c7cfd8.js +3 -0
- package/dist/ui/_next/static/chunks/turbopack-061098e08d2d65fd.js +4 -0
- package/dist/ui/_next/static/media/favicon.49110fa3.ico +0 -0
- package/dist/ui/_not-found/__next._full.txt +5 -5
- package/dist/ui/_not-found/__next._head.txt +1 -1
- package/dist/ui/_not-found/__next._index.txt +4 -4
- package/dist/ui/_not-found/__next._not-found.__PAGE__.txt +2 -2
- package/dist/ui/_not-found/__next._not-found.txt +1 -1
- package/dist/ui/_not-found/__next._tree.txt +2 -2
- package/dist/ui/_not-found.html +1 -1
- package/dist/ui/_not-found.txt +5 -5
- package/dist/ui/favicon.ico +0 -0
- package/dist/ui/index.html +1 -1
- package/dist/ui/index.txt +6 -6
- package/dist/ui/logo.png +0 -0
- package/package.json +5 -5
- package/dist/ui/_next/static/chunks/3c0e6dafbc3cc0ff.js +0 -1
- package/dist/ui/_next/static/chunks/9fec2b9adefcf25d.css +0 -2
- package/dist/ui/_next/static/chunks/c1c5d6f55edfd0a4.js +0 -2
- package/dist/ui/_next/static/chunks/f1a8a6deaad6e1a7.js +0 -1
- package/dist/ui/_next/static/chunks/f239c6a8bb1d406c.js +0 -1
- package/dist/ui/_next/static/chunks/turbopack-30ad15deb948747f.js +0 -4
- package/dist/ui/_next/static/media/favicon.0b3bf435.ico +0 -0
- /package/dist/ui/_next/static/{CFRORV4RwGH9YJ4KZJLz8 → 7dgjdiWDtz0_BGbjNnRkW}/_buildManifest.js +0 -0
- /package/dist/ui/_next/static/{CFRORV4RwGH9YJ4KZJLz8 → 7dgjdiWDtz0_BGbjNnRkW}/_clientMiddlewareManifest.json +0 -0
- /package/dist/ui/_next/static/{CFRORV4RwGH9YJ4KZJLz8 → 7dgjdiWDtz0_BGbjNnRkW}/_ssgManifest.js +0 -0
package/README.md
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Mongoose Studio
|
|
2
2
|
|
|
3
|
-
**
|
|
4
|
-
|
|
3
|
+
**A Graphical User Interface for Mongoose.**
|
|
4
|
+
Visualize Mongoose models, schemas, and data within existing projects.
|
|
5
5
|
|
|
6
|
-
##
|
|
6
|
+
## Features
|
|
7
7
|
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
8
|
+
- **Zero Configuration**: Execute `npx mongoose-studio` in the project root to start.
|
|
9
|
+
- **Schema Inspection**: Visualize schemas, types, validations, and default values.
|
|
10
|
+
- **Data Exploration**: View documents in a tabular format.
|
|
11
|
+
- **Read-Only**: Prevents accidental data modification by defaulting to read-only mode.
|
|
12
|
+
- **Auto-Detection**: Automatically detects the `models/` directory and `.env` configuration.
|
|
13
|
+
- **Unified Execution**: Launches both the API and UI with a single command.
|
|
14
14
|
|
|
15
|
-
##
|
|
15
|
+
## Quick Start
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Execute the tool directly in the project directory (no installation required):
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
# Using Bun
|
|
20
|
+
# Using Bun
|
|
21
21
|
bunx mongoose-studio
|
|
22
22
|
|
|
23
23
|
# Using npm
|
package/dist/index.js
CHANGED
|
@@ -60083,8 +60083,10 @@ async function loadLocalModels(modelsPath) {
|
|
|
60083
60083
|
if (!fs.existsSync(modelsPath)) {
|
|
60084
60084
|
return results;
|
|
60085
60085
|
}
|
|
60086
|
-
const
|
|
60087
|
-
const
|
|
60086
|
+
const glob = new Bun.Glob("**/*.{ts,js}");
|
|
60087
|
+
for await (const file of glob.scan({ cwd: modelsPath })) {
|
|
60088
|
+
if (file.endsWith(".d.ts"))
|
|
60089
|
+
continue;
|
|
60088
60090
|
const fullPath = path.join(modelsPath, file);
|
|
60089
60091
|
try {
|
|
60090
60092
|
await import(fullPath);
|
|
@@ -60092,8 +60094,7 @@ async function loadLocalModels(modelsPath) {
|
|
|
60092
60094
|
} catch (err) {
|
|
60093
60095
|
results.errors.push(`${file}: ${err.message}`);
|
|
60094
60096
|
}
|
|
60095
|
-
}
|
|
60096
|
-
await Promise.all(loadPromises);
|
|
60097
|
+
}
|
|
60097
60098
|
return results;
|
|
60098
60099
|
}
|
|
60099
60100
|
|
|
@@ -61746,28 +61747,77 @@ var CONFIG = {
|
|
|
61746
61747
|
|
|
61747
61748
|
// bin/index.ts
|
|
61748
61749
|
async function main() {
|
|
61749
|
-
|
|
61750
|
+
if (process.argv.includes("--help") || process.argv.includes("-h")) {
|
|
61751
|
+
console.log(`
|
|
61752
|
+
\x1B[36m
|
|
61753
|
+
__ __
|
|
61754
|
+
| \\/ | ___ _ __ __ _ ___ ___ ___ ___
|
|
61755
|
+
| |\\/| |/ _ \\| '_ \\ / _\` |/ _ \\/ _ \\/ __|/ _ \\
|
|
61756
|
+
| | | | (_) | | | | (_| | (_) | (_) \\__ \\ __/
|
|
61757
|
+
|_| |_|\\___/|_| |_|\\__, |\\___/ \\___/|___/\\___|
|
|
61758
|
+
|___/
|
|
61759
|
+
____ _ _ _
|
|
61760
|
+
/ ___|| |_ _ _ __| (_) ___
|
|
61761
|
+
\\___ \\| __| | | |/ _\` | |/ _ \\
|
|
61762
|
+
___) | |_| |_| | (_| | | (_) |
|
|
61763
|
+
|____/ \\__|\\__,_|\\__,_|_|\\___/
|
|
61764
|
+
|
|
61765
|
+
\x1B[0m
|
|
61766
|
+
Usage: mongoose-studio [options]
|
|
61767
|
+
|
|
61768
|
+
Options:
|
|
61769
|
+
--port=<number> Specify the port to run on (default: 5555)
|
|
61770
|
+
--uri=<string> MongoDB connection URI
|
|
61771
|
+
--models=<path> Path to models directory (optional override)
|
|
61772
|
+
--help, -h Show this help message
|
|
61773
|
+
`);
|
|
61774
|
+
process.exit(0);
|
|
61775
|
+
}
|
|
61776
|
+
console.log(`
|
|
61777
|
+
\x1B[36mStarting Mongoose Studio...\x1B[0m
|
|
61778
|
+
`);
|
|
61750
61779
|
const projectRoot = process.cwd();
|
|
61751
61780
|
const userMongoosePath = path3.join(projectRoot, "node_modules", "mongoose");
|
|
61752
61781
|
if (existsSync(userMongoosePath)) {
|
|
61753
61782
|
try {
|
|
61754
61783
|
const userMongoose = await import(userMongoosePath);
|
|
61755
61784
|
setMongoose(userMongoose.default || userMongoose);
|
|
61756
|
-
console.log("Mongoose detected (User Project).");
|
|
61785
|
+
console.log(" \x1B[32m\u2714\x1B[0m Mongoose detected (User Project).");
|
|
61757
61786
|
} catch (e) {
|
|
61758
|
-
console.error("Failed to load project's Mongoose instance:", e);
|
|
61759
|
-
console.warn("Falling back to internal Mongoose (models might not load correctly).");
|
|
61787
|
+
console.error(" \x1B[31m\u2716\x1B[0m Failed to load project's Mongoose instance:", e);
|
|
61788
|
+
console.warn(" Falling back to internal Mongoose (models might not load correctly).");
|
|
61789
|
+
console.log(" \x1B[36mRead more: https://mongoose-studio.yaasir.dev/docs#mongoose-not-found\x1B[0m");
|
|
61760
61790
|
}
|
|
61761
61791
|
} else {
|
|
61762
|
-
console.warn("Mongoose not found in project. Falling back to internal instance.");
|
|
61792
|
+
console.warn(" \x1B[33m\u26A0\x1B[0m Mongoose not found in project. Falling back to internal instance.");
|
|
61793
|
+
console.log(" \x1B[36mRead more: https://mongoose-studio.yaasir.dev/docs#mongoose-not-found\x1B[0m");
|
|
61763
61794
|
}
|
|
61764
61795
|
const mongoose = getMongoose();
|
|
61765
|
-
const
|
|
61766
|
-
|
|
61767
|
-
|
|
61796
|
+
const manualModelsDir = process.argv.find((arg) => arg.startsWith("--models="))?.split("=")[1];
|
|
61797
|
+
let modelsPath = "";
|
|
61798
|
+
if (manualModelsDir) {
|
|
61799
|
+
modelsPath = path3.resolve(projectRoot, manualModelsDir);
|
|
61800
|
+
} else {
|
|
61801
|
+
const candidates = ["src/models", "models", "lib/models", "dist/models"];
|
|
61802
|
+
for (const candidate of candidates) {
|
|
61803
|
+
const tempPath = path3.join(projectRoot, candidate);
|
|
61804
|
+
if (existsSync(tempPath)) {
|
|
61805
|
+
modelsPath = tempPath;
|
|
61806
|
+
break;
|
|
61807
|
+
}
|
|
61808
|
+
}
|
|
61809
|
+
}
|
|
61810
|
+
if (modelsPath && existsSync(modelsPath)) {
|
|
61811
|
+
console.log(` Scanning models in: \x1B[2m${modelsPath}\x1B[0m`);
|
|
61768
61812
|
const { loaded, errors } = await loadLocalModels(modelsPath);
|
|
61769
|
-
loaded.forEach((file) => console.log(` Loaded: ${file}`));
|
|
61770
|
-
errors.forEach((err) => console.error(` Error: ${err}`));
|
|
61813
|
+
loaded.forEach((file) => console.log(` \x1B[32m\u2714\x1B[0m Loaded: ${file}`));
|
|
61814
|
+
errors.forEach((err) => console.error(` \x1B[31m\u2716\x1B[0m Error: ${err}`));
|
|
61815
|
+
} else if (manualModelsDir) {
|
|
61816
|
+
console.error(` \x1B[31m\u2716\x1B[0m Error: The specified models directory '${manualModelsDir}' was not found.`);
|
|
61817
|
+
console.log(" \x1B[36mRead more: https://mongoose-studio.yaasir.dev/docs#models-directory-not-found\x1B[0m");
|
|
61818
|
+
} else if (mongoose.modelNames().length === 0) {
|
|
61819
|
+
console.warn(" \x1B[33m\u26A0\x1B[0m Hint: No 'models/' or 'src/models/' directory found. If your models are elsewhere, use --models=path/to/models");
|
|
61820
|
+
console.log(" \x1B[36mRead more: https://mongoose-studio.yaasir.dev/docs#no-mongoose-models-registered\x1B[0m");
|
|
61771
61821
|
}
|
|
61772
61822
|
const modelNames = mongoose.modelNames();
|
|
61773
61823
|
console.log(`
|
|
@@ -61776,23 +61826,6 @@ Summary:`);
|
|
|
61776
61826
|
console.warn(" No Mongoose models registered.");
|
|
61777
61827
|
} else {
|
|
61778
61828
|
console.log(` Registered Models (${modelNames.length}):`);
|
|
61779
|
-
for (const name of modelNames) {
|
|
61780
|
-
console.log(`
|
|
61781
|
-
Model: ${name}`);
|
|
61782
|
-
try {
|
|
61783
|
-
const fields = inspectModel(name, mongoose);
|
|
61784
|
-
const tableData = fields.map((f) => ({
|
|
61785
|
-
Field: f.path,
|
|
61786
|
-
Type: f.type,
|
|
61787
|
-
Required: f.required ? "YES" : "no",
|
|
61788
|
-
Default: f.default !== undefined ? String(f.default) : "-",
|
|
61789
|
-
Ref: f.ref || "-"
|
|
61790
|
-
}));
|
|
61791
|
-
console.table(tableData);
|
|
61792
|
-
} catch (err) {
|
|
61793
|
-
console.error(` Could not inspect ${name}: ${err.message}`);
|
|
61794
|
-
}
|
|
61795
|
-
}
|
|
61796
61829
|
}
|
|
61797
61830
|
const uriArg = process.argv.find((arg) => arg.startsWith("--uri="));
|
|
61798
61831
|
const uri = uriArg && uriArg.split("=")[1] || process.env.MONGO_URI || "mongodb://localhost:27017/test";
|
|
@@ -61800,30 +61833,53 @@ Summary:`);
|
|
|
61800
61833
|
Connecting to MongoDB...`);
|
|
61801
61834
|
try {
|
|
61802
61835
|
await mongoose.connect(uri);
|
|
61803
|
-
console.log(" Connected successfully.");
|
|
61836
|
+
console.log(" \x1B[32m\u2714\x1B[0m Connected successfully.");
|
|
61804
61837
|
} catch (err) {
|
|
61805
|
-
console.error(" Connection failed:", err.message);
|
|
61838
|
+
console.error(" \x1B[31m\u2716\x1B[0m Connection failed:", err.message);
|
|
61806
61839
|
console.warn(" Studio will run in Schema Inspection mode only. Data features will be disabled.");
|
|
61807
61840
|
}
|
|
61808
61841
|
const portArg = process.argv.find((arg) => arg.startsWith("--port="));
|
|
61809
|
-
|
|
61810
|
-
|
|
61811
|
-
|
|
61812
|
-
|
|
61813
|
-
|
|
61814
|
-
|
|
61815
|
-
|
|
61842
|
+
let port = portArg && parseInt(portArg.split("=")[1]) || CONFIG.API_PORT;
|
|
61843
|
+
const maxRetries = 10;
|
|
61844
|
+
let serverStarted = false;
|
|
61845
|
+
for (let i = 0;i < maxRetries; i++) {
|
|
61846
|
+
try {
|
|
61847
|
+
Bun.serve(startServer(port, mongoose));
|
|
61848
|
+
serverStarted = true;
|
|
61849
|
+
break;
|
|
61850
|
+
} catch (err) {
|
|
61851
|
+
if (err.code === "EADDRINUSE" || err.message.includes("EADDRINUSE") || err.message.includes("address already in use")) {
|
|
61852
|
+
console.log(` Port ${port} is busy, trying ${port + 1}...`);
|
|
61853
|
+
port++;
|
|
61854
|
+
} else {
|
|
61855
|
+
throw err;
|
|
61856
|
+
}
|
|
61857
|
+
}
|
|
61858
|
+
}
|
|
61859
|
+
if (!serverStarted) {
|
|
61860
|
+
console.error(`
|
|
61861
|
+
\x1B[31m\u2716\x1B[0m Failed to start server after ${maxRetries} attempts. Please specify a free port using --port=NUMBER`);
|
|
61816
61862
|
process.exit(1);
|
|
61817
61863
|
}
|
|
61864
|
+
console.log(`
|
|
61865
|
+
\x1B[36mStudio running at http://localhost:${port}\x1B[0m`);
|
|
61818
61866
|
setTimeout(() => {
|
|
61819
61867
|
const url = `http://localhost:${port}`;
|
|
61820
61868
|
console.log(`
|
|
61821
|
-
|
|
61869
|
+
To access Mongoose Studio, open:
|
|
61870
|
+
\x1B[4m${url}\x1B[0m
|
|
61871
|
+
`);
|
|
61822
61872
|
const openCmd = process.platform === "darwin" ? "open" : process.platform === "linux" ? "xdg-open" : "start";
|
|
61823
|
-
|
|
61873
|
+
try {
|
|
61874
|
+
if (!process.env.NO_OPEN) {
|
|
61875
|
+
Bun.spawn([openCmd, url], {
|
|
61876
|
+
stderr: "ignore",
|
|
61877
|
+
stdout: "ignore"
|
|
61878
|
+
}).unref();
|
|
61879
|
+
}
|
|
61880
|
+
} catch (e) {}
|
|
61824
61881
|
}, 1000);
|
|
61825
|
-
console.log(`
|
|
61826
|
-
Press Ctrl+C to stop.`);
|
|
61882
|
+
console.log(`Press Ctrl+C to stop.`);
|
|
61827
61883
|
process.on("SIGINT", () => {
|
|
61828
61884
|
console.log(`
|
|
61829
61885
|
Stopping Studio...`);
|
package/dist/ui/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--7dgjdiWDtz0_BGbjNnRkW--><html lang="en" class="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/298fc2d040ac93e5.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/177f15bb24010289.js"/><script src="/_next/static/chunks/e08f4a8f5f863401.js" async=""></script><script src="/_next/static/chunks/4642f2face723696.js" async=""></script><script src="/_next/static/chunks/eaa2b3b270716c89.js" async=""></script><script src="/_next/static/chunks/9e71c12d031db5ed.js" async=""></script><script src="/_next/static/chunks/turbopack-061098e08d2d65fd.js" async=""></script><script src="/_next/static/chunks/427ad77fb6b91e0d.js" async=""></script><script src="/_next/static/chunks/f1cfe0e077c7cfd8.js" async=""></script><script src="/_next/static/chunks/15d7561d33aaf44a.js" async=""></script><script src="/_next/static/chunks/0f7f83dee53e9578.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>Mongoose Studio</title><meta name="description" content="A modern GUI for your Mongoose models"/><link rel="icon" href="/favicon.ico?favicon.49110fa3.ico" sizes="48x48" type="image/x-icon"/><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="inter_5972bc34-module__OU16Qa__className bg-zinc-950 text-zinc-200 antialiased"><div hidden=""><!--$--><!--/$--></div><div class="flex h-screen"><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><div class="w-64 bg-zinc-900 border-r border-zinc-800"></div><!--/$--><main class="flex-1 ml-64 overflow-auto"><div class="flex flex-col items-center justify-center h-full"><h2 class="text-xl font-bold mb-4">Not Found</h2><p class="text-zinc-500 mb-4">Could not find requested resource</p><a class="text-emerald-500 hover:underline" href="/">Return Home</a></div><!--$--><!--/$--></main></div><script src="/_next/static/chunks/177f15bb24010289.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"$Sreact.suspense\"\n3:I[4816,[\"/_next/static/chunks/427ad77fb6b91e0d.js\",\"/_next/static/chunks/f1cfe0e077c7cfd8.js\"],\"Sidebar\"]\n4:I[15838,[\"/_next/static/chunks/15d7561d33aaf44a.js\",\"/_next/static/chunks/0f7f83dee53e9578.js\"],\"default\"]\n5:I[7840,[\"/_next/static/chunks/15d7561d33aaf44a.js\",\"/_next/static/chunks/0f7f83dee53e9578.js\"],\"default\"]\n6:I[62504,[\"/_next/static/chunks/427ad77fb6b91e0d.js\",\"/_next/static/chunks/f1cfe0e077c7cfd8.js\"],\"\"]\n7:I[22556,[\"/_next/static/chunks/15d7561d33aaf44a.js\",\"/_next/static/chunks/0f7f83dee53e9578.js\"],\"OutletBoundary\"]\n9:I[22556,[\"/_next/static/chunks/15d7561d33aaf44a.js\",\"/_next/static/chunks/0f7f83dee53e9578.js\"],\"ViewportBoundary\"]\nb:I[22556,[\"/_next/static/chunks/15d7561d33aaf44a.js\",\"/_next/static/chunks/0f7f83dee53e9578.js\"],\"MetadataBoundary\"]\nd:I[32435,[\"/_next/static/chunks/15d7561d33aaf44a.js\",\"/_next/static/chunks/0f7f83dee53e9578.js\"],\"default\"]\n:HL[\"/_next/static/chunks/298fc2d040ac93e5.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"7dgjdiWDtz0_BGbjNnRkW\",\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/298fc2d040ac93e5.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/427ad77fb6b91e0d.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/f1cfe0e077c7cfd8.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"dark\",\"children\":[\"$\",\"body\",null,{\"className\":\"inter_5972bc34-module__OU16Qa__className bg-zinc-950 text-zinc-200 antialiased\",\"children\":[\"$\",\"div\",null,{\"className\":\"flex h-screen\",\"children\":[[\"$\",\"$2\",null,{\"fallback\":[\"$\",\"div\",null,{\"className\":\"w-64 bg-zinc-900 border-r border-zinc-800\"}],\"children\":[\"$\",\"$L3\",null,{}]}],[\"$\",\"main\",null,{\"className\":\"flex-1 ml-64 overflow-auto\",\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"div\",null,{\"className\":\"flex flex-col items-center justify-center h-full\",\"children\":[[\"$\",\"h2\",null,{\"className\":\"text-xl font-bold mb-4\",\"children\":\"Not Found\"}],[\"$\",\"p\",null,{\"className\":\"text-zinc-500 mb-4\",\"children\":\"Could not find requested resource\"}],[\"$\",\"$L6\",null,{\"href\":\"/\",\"className\":\"text-emerald-500 hover:underline\",\"children\":\"Return Home\"}]]}],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"div\",null,{\"className\":\"flex flex-col items-center justify-center h-full\",\"children\":[[\"$\",\"h2\",null,{\"className\":\"text-xl font-bold mb-4\",\"children\":\"Not Found\"}],[\"$\",\"p\",null,{\"className\":\"text-zinc-500 mb-4\",\"children\":\"Could not find requested resource\"}],[\"$\",\"$L6\",null,{\"href\":\"/\",\"className\":\"text-emerald-500 hover:underline\",\"children\":\"Return Home\"}]]}],null,[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$2\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@8\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L9\",null,{\"children\":\"$La\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"$2\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lc\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$d\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"a:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"e:I[97608,[\"/_next/static/chunks/15d7561d33aaf44a.js\",\"/_next/static/chunks/0f7f83dee53e9578.js\"],\"IconMark\"]\n8:null\nc:[[\"$\",\"title\",\"0\",{\"children\":\"Mongoose Studio\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"A modern GUI for your Mongoose models\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.49110fa3.ico\",\"sizes\":\"48x48\",\"type\":\"image/x-icon\"}],[\"$\",\"$Le\",\"3\",{}]]\n"])</script></body></html>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:I[39262,["/_next/static/chunks/15d7561d33aaf44a.js","/_next/static/chunks/0f7f83dee53e9578.js"],"ClientPageRoot"]
|
|
3
|
-
3:I[82010,["/_next/static/chunks/
|
|
3
|
+
3:I[82010,["/_next/static/chunks/427ad77fb6b91e0d.js","/_next/static/chunks/f1cfe0e077c7cfd8.js","/_next/static/chunks/91f078afda525bea.js"],"default"]
|
|
4
4
|
6:I[22556,["/_next/static/chunks/15d7561d33aaf44a.js","/_next/static/chunks/0f7f83dee53e9578.js"],"OutletBoundary"]
|
|
5
5
|
7:"$Sreact.suspense"
|
|
6
|
-
0:{"buildId":"
|
|
6
|
+
0:{"buildId":"7dgjdiWDtz0_BGbjNnRkW","rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/91f078afda525bea.js","async":true}]],["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],"loading":null,"isPartial":false}
|
|
7
7
|
4:{}
|
|
8
8
|
5:"$0:rsc:props:children:0:props:serverProvidedParams:params"
|
|
9
9
|
8:null
|
package/dist/ui/__next._full.txt
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:"$Sreact.suspense"
|
|
3
|
-
3:I[4816,["/_next/static/chunks/
|
|
3
|
+
3:I[4816,["/_next/static/chunks/427ad77fb6b91e0d.js","/_next/static/chunks/f1cfe0e077c7cfd8.js"],"Sidebar"]
|
|
4
4
|
4:I[15838,["/_next/static/chunks/15d7561d33aaf44a.js","/_next/static/chunks/0f7f83dee53e9578.js"],"default"]
|
|
5
5
|
5:I[7840,["/_next/static/chunks/15d7561d33aaf44a.js","/_next/static/chunks/0f7f83dee53e9578.js"],"default"]
|
|
6
|
-
6:I[62504,["/_next/static/chunks/
|
|
6
|
+
6:I[62504,["/_next/static/chunks/427ad77fb6b91e0d.js","/_next/static/chunks/f1cfe0e077c7cfd8.js"],""]
|
|
7
7
|
7:I[39262,["/_next/static/chunks/15d7561d33aaf44a.js","/_next/static/chunks/0f7f83dee53e9578.js"],"ClientPageRoot"]
|
|
8
|
-
8:I[82010,["/_next/static/chunks/
|
|
8
|
+
8:I[82010,["/_next/static/chunks/427ad77fb6b91e0d.js","/_next/static/chunks/f1cfe0e077c7cfd8.js","/_next/static/chunks/91f078afda525bea.js"],"default"]
|
|
9
9
|
b:I[22556,["/_next/static/chunks/15d7561d33aaf44a.js","/_next/static/chunks/0f7f83dee53e9578.js"],"OutletBoundary"]
|
|
10
10
|
d:I[22556,["/_next/static/chunks/15d7561d33aaf44a.js","/_next/static/chunks/0f7f83dee53e9578.js"],"ViewportBoundary"]
|
|
11
11
|
f:I[22556,["/_next/static/chunks/15d7561d33aaf44a.js","/_next/static/chunks/0f7f83dee53e9578.js"],"MetadataBoundary"]
|
|
12
12
|
11:I[32435,[],"default"]
|
|
13
|
-
:HL["/_next/static/chunks/
|
|
13
|
+
:HL["/_next/static/chunks/298fc2d040ac93e5.css","style"]
|
|
14
14
|
:HL["/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
15
|
-
0:{"P":null,"b":"
|
|
15
|
+
0:{"P":null,"b":"7dgjdiWDtz0_BGbjNnRkW","c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/298fc2d040ac93e5.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/427ad77fb6b91e0d.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/f1cfe0e077c7cfd8.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","className":"dark","children":["$","body",null,{"className":"inter_5972bc34-module__OU16Qa__className bg-zinc-950 text-zinc-200 antialiased","children":["$","div",null,{"className":"flex h-screen","children":[["$","$2",null,{"fallback":["$","div",null,{"className":"w-64 bg-zinc-900 border-r border-zinc-800"}],"children":["$","$L3",null,{}]}],["$","main",null,{"className":"flex-1 ml-64 overflow-auto","children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center h-full","children":[["$","h2",null,{"className":"text-xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"text-zinc-500 mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-emerald-500 hover:underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@9","$@a"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/91f078afda525bea.js","async":true,"nonce":"$undefined"}]],["$","$Lb",null,{"children":["$","$2",null,{"name":"Next.MetadataOutlet","children":"$@c"}]}]]}],{},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Ld",null,{"children":"$Le"}],["$","div",null,{"hidden":true,"children":["$","$Lf",null,{"children":["$","$2",null,{"name":"Next.Metadata","children":"$L10"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$11",[]],"S":true}
|
|
16
16
|
9:{}
|
|
17
17
|
a:"$0:f:0:1:1:children:0:props:children:0:props:serverProvidedParams:params"
|
|
18
18
|
e:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
19
19
|
12:I[97608,["/_next/static/chunks/15d7561d33aaf44a.js","/_next/static/chunks/0f7f83dee53e9578.js"],"IconMark"]
|
|
20
20
|
c:null
|
|
21
|
-
10:[["$","title","0",{"children":"Mongoose Studio"}],["$","meta","1",{"name":"description","content":"A modern GUI for your Mongoose models"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.
|
|
21
|
+
10:[["$","title","0",{"children":"Mongoose Studio"}],["$","meta","1",{"name":"description","content":"A modern GUI for your Mongoose models"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.49110fa3.ico","sizes":"48x48","type":"image/x-icon"}],["$","$L12","3",{}]]
|
package/dist/ui/__next._head.txt
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
3:I[22556,["/_next/static/chunks/15d7561d33aaf44a.js","/_next/static/chunks/0f7f83dee53e9578.js"],"MetadataBoundary"]
|
|
4
4
|
4:"$Sreact.suspense"
|
|
5
5
|
5:I[97608,["/_next/static/chunks/15d7561d33aaf44a.js","/_next/static/chunks/0f7f83dee53e9578.js"],"IconMark"]
|
|
6
|
-
0:{"buildId":"
|
|
6
|
+
0:{"buildId":"7dgjdiWDtz0_BGbjNnRkW","rsc":["$","$1","h",{"children":[null,["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Mongoose Studio"}],["$","meta","1",{"name":"description","content":"A modern GUI for your Mongoose models"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.49110fa3.ico","sizes":"48x48","type":"image/x-icon"}],["$","$L5","3",{}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"loading":null,"isPartial":false}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:"$Sreact.suspense"
|
|
3
|
-
3:I[4816,["/_next/static/chunks/
|
|
3
|
+
3:I[4816,["/_next/static/chunks/427ad77fb6b91e0d.js","/_next/static/chunks/f1cfe0e077c7cfd8.js"],"Sidebar"]
|
|
4
4
|
4:I[15838,["/_next/static/chunks/15d7561d33aaf44a.js","/_next/static/chunks/0f7f83dee53e9578.js"],"default"]
|
|
5
5
|
5:I[7840,["/_next/static/chunks/15d7561d33aaf44a.js","/_next/static/chunks/0f7f83dee53e9578.js"],"default"]
|
|
6
|
-
6:I[62504,["/_next/static/chunks/
|
|
7
|
-
:HL["/_next/static/chunks/
|
|
8
|
-
0:{"buildId":"
|
|
6
|
+
6:I[62504,["/_next/static/chunks/427ad77fb6b91e0d.js","/_next/static/chunks/f1cfe0e077c7cfd8.js"],""]
|
|
7
|
+
:HL["/_next/static/chunks/298fc2d040ac93e5.css","style"]
|
|
8
|
+
0:{"buildId":"7dgjdiWDtz0_BGbjNnRkW","rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/298fc2d040ac93e5.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/427ad77fb6b91e0d.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/f1cfe0e077c7cfd8.js","async":true}]],["$","html",null,{"lang":"en","className":"dark","children":["$","body",null,{"className":"inter_5972bc34-module__OU16Qa__className bg-zinc-950 text-zinc-200 antialiased","children":["$","div",null,{"className":"flex h-screen","children":[["$","$2",null,{"fallback":["$","div",null,{"className":"w-64 bg-zinc-900 border-r border-zinc-800"}],"children":["$","$L3",null,{}]}],["$","main",null,{"className":"flex-1 ml-64 overflow-auto","children":["$","$L4",null,{"parallelRouterKey":"children","template":["$","$L5",null,{}],"notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center h-full","children":[["$","h2",null,{"className":"text-xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"text-zinc-500 mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-emerald-500 hover:underline","children":"Return Home"}]]}],[]]}]}]]}]}]}]]}],"loading":null,"isPartial":false}
|
package/dist/ui/__next._tree.txt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
:HL["/_next/static/chunks/
|
|
1
|
+
:HL["/_next/static/chunks/298fc2d040ac93e5.css","style"]
|
|
2
2
|
:HL["/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
3
|
-
0:{"buildId":"
|
|
3
|
+
0:{"buildId":"7dgjdiWDtz0_BGbjNnRkW","tree":{"name":"","paramType":null,"paramKey":"","hasRuntimePrefetch":false,"slots":{"children":{"name":"__PAGE__","paramType":null,"paramKey":"__PAGE__","hasRuntimePrefetch":false,"slots":null,"isRootLayout":false}},"isRootLayout":true},"staleTime":300}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,32435,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return s}});let o=e.r(80663),n=e.r(88871),l={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"},i={fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"},s=function({error:e}){let t=e?.digest;return(0,o.jsxs)("html",{id:"__next_error__",children:[(0,o.jsx)("head",{}),(0,o.jsxs)("body",{children:[(0,o.jsx)(n.HandleISRError,{error:e}),(0,o.jsx)("div",{style:l,children:(0,o.jsxs)("div",{children:[(0,o.jsxs)("h2",{style:i,children:["Application error: a ",t?"server":"client","-side exception has occurred while loading ",window.location.hostname," (see the"," ",t?"server logs":"browser console"," for more information)."]}),t?(0,o.jsx)("p",{style:i,children:`Digest: ${t}`}):null]})})]})]})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},59266,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"HeadManagerContext",{enumerable:!0,get:function(){return o}});let o=e.r(46921)._(e.r(56916)).default.createContext({})}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/2c55a0e60120577a-s.2a48534a.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/9c72aa0f40e4eef8-s.18a48cbc.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/ad66f9afd8947f86-s.7a40eb73.woff2)format("woff2");unicode-range:U+1F??}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/5476f68d60460930-s.c995e352.woff2)format("woff2");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/2bbe8d2671613f1f-s.76dcb0b2.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/1bffadaabf893a1e-s.7cd81963.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/83afe278b6a6bb3c-s.p.3a6ba036.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter Fallback;src:local(Arial);ascent-override:90.44%;descent-override:22.52%;line-gap-override:0.0%;size-adjust:107.12%}.inter_5972bc34-module__OU16Qa__className{font-family:Inter,Inter Fallback;font-style:normal}
|
|
2
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial}}}@layer theme{:root,:host{--color-red-400:#ff6568;--color-red-500:#fb2c36;--color-emerald-50:#ecfdf5;--color-emerald-400:#00d294;--color-emerald-500:#00bb7f;--color-zinc-200:#e4e4e7;--color-zinc-300:#d4d4d8;--color-zinc-400:#9f9fa9;--color-zinc-500:#71717b;--color-zinc-600:#52525c;--color-zinc-700:#3f3f46;--color-zinc-800:#27272a;--color-zinc-900:#18181b;--color-zinc-950:#09090b;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25/1.875);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wider:.05em;--radius-md:.375rem;--radius-lg:.5rem;--animate-spin:spin 1s linear infinite;--blur-md:12px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-geist-sans);--default-mono-font-family:var(--font-geist-mono)}@supports (color:lab(0% 0 0)){:root,:host{--color-red-400:lab(63.7053% 60.745 31.3109);--color-red-500:lab(55.4814% 75.0732 48.8528);--color-emerald-50:lab(97.8462% -6.94966 1.85487);--color-emerald-400:lab(75.0771% -60.7313 19.4147);--color-emerald-500:lab(66.9756% -58.27 19.5419);--color-zinc-200:lab(90.6853% .399232 -1.45452);--color-zinc-300:lab(84.9837% .601262 -2.17986);--color-zinc-400:lab(65.6464% 1.53497 -5.42429);--color-zinc-500:lab(47.8878% 1.65477 -5.77283);--color-zinc-600:lab(35.1166% 1.78212 -6.1173);--color-zinc-700:lab(26.8019% 1.35387 -4.68303);--color-zinc-800:lab(15.7305% .613764 -2.16959);--color-zinc-900:lab(8.30603% .618205 -2.16572);--color-zinc-950:lab(2.51107% .242703 -.886115)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.fixed{position:fixed}.sticky{position:sticky}.top-0{top:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.z-10{z-index:10}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.ml-64{margin-left:calc(var(--spacing)*64)}.flex{display:flex}.inline-flex{display:inline-flex}.h-4{height:calc(var(--spacing)*4)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-full{height:100%}.h-screen{height:100vh}.w-4{width:calc(var(--spacing)*4)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-64{width:calc(var(--spacing)*64)}.max-w-\[300px\]{max-width:300px}.max-w-md{max-width:var(--container-md)}.min-w-\[150px\]{min-width:150px}.min-w-full{min-width:100%}.flex-1{flex:1}.animate-spin{animation:var(--animate-spin)}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing)*2)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-zinc-800>:not(:last-child)){border-color:var(--color-zinc-800)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-emerald-500{border-color:var(--color-emerald-500)}.border-zinc-700{border-color:var(--color-zinc-700)}.border-zinc-800{border-color:var(--color-zinc-800)}.border-zinc-800\/30{border-color:#27272a4d}@supports (color:color-mix(in lab, red, red)){.border-zinc-800\/30{border-color:color-mix(in oklab,var(--color-zinc-800)30%,transparent)}}.bg-emerald-500\/10{background-color:#00bb7f1a}@supports (color:color-mix(in lab, red, red)){.bg-emerald-500\/10{background-color:color-mix(in oklab,var(--color-emerald-500)10%,transparent)}}.bg-red-500\/10{background-color:#fb2c361a}@supports (color:color-mix(in lab, red, red)){.bg-red-500\/10{background-color:color-mix(in oklab,var(--color-red-500)10%,transparent)}}.bg-zinc-800{background-color:var(--color-zinc-800)}.bg-zinc-900{background-color:var(--color-zinc-900)}.bg-zinc-900\/50{background-color:#18181b80}@supports (color:color-mix(in lab, red, red)){.bg-zinc-900\/50{background-color:color-mix(in oklab,var(--color-zinc-900)50%,transparent)}}.bg-zinc-950{background-color:var(--color-zinc-950)}.object-contain{object-fit:contain}.p-1\.5{padding:calc(var(--spacing)*1.5)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-geist-mono)}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.whitespace-nowrap{white-space:nowrap}.text-emerald-50{color:var(--color-emerald-50)}.text-emerald-400{color:var(--color-emerald-400)}.text-emerald-400\/80{color:#00d294cc}@supports (color:color-mix(in lab, red, red)){.text-emerald-400\/80{color:color-mix(in oklab,var(--color-emerald-400)80%,transparent)}}.text-emerald-500{color:var(--color-emerald-500)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-white{color:var(--color-white)}.text-zinc-200{color:var(--color-zinc-200)}.text-zinc-300{color:var(--color-zinc-300)}.text-zinc-400{color:var(--color-zinc-400)}.text-zinc-500{color:var(--color-zinc-500)}.text-zinc-600{color:var(--color-zinc-600)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.last\:border-r-0:last-child{border-right-style:var(--tw-border-style);border-right-width:0}@media (hover:hover){.hover\:bg-zinc-800:hover{background-color:var(--color-zinc-800)}.hover\:bg-zinc-800\/50:hover{background-color:#27272a80}@supports (color:color-mix(in lab, red, red)){.hover\:bg-zinc-800\/50:hover{background-color:color-mix(in oklab,var(--color-zinc-800)50%,transparent)}}.hover\:text-white:hover{color:var(--color-white)}.hover\:underline:hover{text-decoration-line:underline}}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}}:root{--background:#fff;--foreground:#171717}@media (prefers-color-scheme:dark){:root{--background:#0a0a0a;--foreground:#ededed}}body{background:var(--background);color:var(--foreground);font-family:Arial,Helvetica,sans-serif}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,15117,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},76207,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(56916);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=a(e,n)),t&&(o.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},97262,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return a},urlQueryToSearchParams:function(){return i}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});function a(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function u(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,u(e));else t.set(r,u(n));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},46448,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return i},formatWithValidation:function(){return s},urlObjectKeys:function(){return l}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(15357)._(e.r(97262)),u=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",i=e.hash||"",l=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(s+=":"+e.port)),l&&"object"==typeof l&&(l=String(a.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||u.test(n))&&!1!==s?(s="//"+(s||""),o&&"/"!==o[0]&&(o="/"+o)):s||(s=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),o=o.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${s}${o}${c}${i}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return i(e)}},46073,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return g},MiddlewareNotFoundError:function(){return P},MissingStaticPage:function(){return x},NormalizeError:function(){return b},PageNotFoundError:function(){return v},SP:function(){return y},ST:function(){return m},WEB_VITALS:function(){return a},execOnce:function(){return u},getDisplayName:function(){return f},getLocationOrigin:function(){return s},getURL:function(){return c},isAbsoluteUrl:function(){return l},isResSent:function(){return d},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return j}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=["CLS","FCP","FID","INP","LCP","TTFB"];function u(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>i.test(e);function s(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=s();return e.substring(t.length)}function f(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function d(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&d(r))return n;if(!n)throw Object.defineProperty(Error(`"${f(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let y="u">typeof performance,m=y&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class g extends Error{}class b extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class x extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class P extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function j(e){return JSON.stringify({message:e.message,stack:e.stack})}},70838,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(46073),o=e.r(30108);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},46721,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},62504,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},useLinkStatus:function(){return v}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(15357),u=e.r(80663),i=a._(e.r(56916)),l=e.r(46448),s=e.r(47461),c=e.r(76207),f=e.r(46073),d=e.r(45292);e.r(15117);let p=e.r(99747),h=e.r(70838),y=e.r(51743);function m(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}function g(t){var r;let n,o,a,[l,g]=(0,i.useOptimistic)(p.IDLE_LINK_STATUS),v=(0,i.useRef)(null),{href:x,as:P,children:j,prefetch:_=null,passHref:O,replace:E,shallow:S,scroll:N,onClick:T,onMouseEnter:C,onTouchStart:w,legacyBehavior:M=!1,onNavigate:R,ref:L,unstable_dynamicOnHover:k,...A}=t;n=j,M&&("string"==typeof n||"number"==typeof n)&&(n=(0,u.jsx)("a",{children:n}));let $=i.default.useContext(s.AppRouterContext),U=!1!==_,I=!1!==_?null===(r=_)||"auto"===r?y.FetchStrategy.PPR:y.FetchStrategy.Full:y.FetchStrategy.PPR,{href:z,as:F}=i.default.useMemo(()=>{let e=m(x);return{href:e,as:P?m(P):e}},[x,P]);if(M){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});o=i.default.Children.only(n)}let B=M?o&&"object"==typeof o&&o.ref:L,D=i.default.useCallback(e=>(null!==$&&(v.current=(0,p.mountLinkInstance)(e,z,$,I,U,g)),()=>{v.current&&((0,p.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,p.unmountPrefetchableInstance)(e)}),[U,z,$,I,g]),K={ref:(0,c.useMergedRef)(D,B),onClick(t){M||"function"!=typeof T||T(t),M&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!$||t.defaultPrevented||function(t,r,n,o,a,u,l){if("u">typeof window){let s,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((s=t.currentTarget.getAttribute("target"))&&"_self"!==s||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,h.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:f}=e.r(68465);i.default.startTransition(()=>{f(n||r,a?"replace":"push",u??!0,o.current)})}}(t,z,F,v,E,N,R)},onMouseEnter(e){M||"function"!=typeof C||C(e),M&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),$&&U&&(0,p.onNavigationIntent)(e.currentTarget,!0===k)},onTouchStart:function(e){M||"function"!=typeof w||w(e),M&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),$&&U&&(0,p.onNavigationIntent)(e.currentTarget,!0===k)}};return(0,f.isAbsoluteUrl)(F)?K.href=F:M&&!O&&("a"!==o.type||"href"in o.props)||(K.href=(0,d.addBasePath)(F)),a=M?i.default.cloneElement(o,K):(0,u.jsx)("a",{...A,...K,children:n}),(0,u.jsx)(b.Provider,{value:l,children:a})}e.r(46721);let b=(0,i.createContext)(p.IDLE_LINK_STATUS),v=()=>(0,i.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},4816,e=>{"use strict";var t=e.i(80663),r=e.i(62504);let n=(0,e.i(17303).default)("box",[["path",{d:"M21 8a2 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.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);var o=e.i(62553),a=e.i(84345),u=e.i(98385);function i(){let{data:e=[],error:i}=(0,o.default)("/api/models",e=>fetch(e).then(e=>e.json()).then(e=>e.models)),l=(0,a.useSearchParams)().get("model");return(0,t.jsxs)("aside",{className:"w-64 bg-zinc-900 border-r border-zinc-800 text-zinc-300 flex flex-col h-screen fixed left-0 top-0",children:[(0,t.jsxs)("div",{className:"p-4 border-b border-zinc-800 flex items-center gap-2",children:[(0,t.jsx)(u.default,{src:"/logo.png",alt:"Mongoose Studio Logo",className:"w-6 h-6 object-contain"}),(0,t.jsx)("span",{className:"font-bold text-emerald-50 tracking-tight",children:"Mongoose Studio"})]}),(0,t.jsxs)("div",{className:"p-2 space-y-1 overflow-y-auto flex-1",children:[(0,t.jsx)("div",{className:"px-3 py-2 text-xs font-semibold text-zinc-500 uppercase tracking-wider",children:"Models"}),e.map(e=>(0,t.jsxs)(r.default,{href:`/?model=${e}`,className:`flex items-center gap-2 px-3 py-2 text-sm rounded-md transition-colors ${l===e?"bg-emerald-500/10 text-emerald-400":"hover:bg-zinc-800 hover:text-white"}`,children:[(0,t.jsx)(n,{className:"w-4 h-4 opacity-70"}),e]},e)),0===e.length&&!i&&(0,t.jsx)("div",{className:"px-3 py-2 text-sm text-zinc-600 italic",children:"No models found"}),i&&(0,t.jsx)("div",{className:"px-3 py-2 text-sm text-red-500 italic",children:"Failed to load models"})]})]})}e.s(["Sidebar",()=>i],4816)}]);
|