├── .gitignore ├── README.md ├── backend ├── .gitignore ├── admin │ ├── admin.ts │ └── encore.service.ts ├── auth │ ├── auth.ts │ └── encore.service.ts ├── package-lock.json ├── package.json └── tsconfig.json └── frontend ├── .gitignore ├── README.md ├── app ├── admin │ ├── error.tsx │ └── page.tsx ├── auth │ ├── login │ │ └── route.ts │ ├── logout │ │ └── route.ts │ └── unauthenticated │ │ └── page.tsx ├── favicon.ico ├── globals.css ├── layout.tsx ├── lib │ ├── client.ts │ └── getRequestClient.ts └── page.tsx ├── next.config.mjs ├── package-lock.json ├── package.json ├── postcss.config.mjs ├── public ├── next.svg └── vercel.svg ├── tailwind.config.ts └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- 1 | encore.gen.go 2 | encore.gen.cue 3 | /.encore 4 | node_modules 5 | /encore.gen 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Next.js + Encore TS Web App Starter 2 | 3 | This is an [Encore](https://encore.dev/) + [Next.js](https://nextjs.org/) project starter. It's a great way to learn how to combine Encore's backend 4 | capabilities with a modern web framework — perfect for building a web app. 5 | 6 | ## Clone this example 7 | 8 | Go through the following steps to clone this starter: 9 | 10 | 1. When you have [installed Encore](https://encore.dev/docs/install), clone this repo: 11 | 12 | ```bash 13 | git clone --depth=1 https://github.com/encoredev/nextjs-starter.git 14 | ``` 15 | 16 | 2. Install backend dependencies and create a new Encore application: 17 | 18 | ```bash 19 | cd nextjs-starter/backend 20 | npm install # Install dependencies 21 | encore app init # Create a new Encore application. Take note of the App ID 22 | ``` 23 | 24 | 3. Run your Encore application (keep it running): 25 | 26 | ```bash 27 | encore run # Inside the backend directory 28 | ``` 29 | 30 | 4. In the `frontend/package.json`, replace `{{ENCORE_APP_ID}}` with the ID of your Encore application. You can see the app id in the `encore.app` file. 31 | 32 | 33 | 5. Open a new terminal window and generate a new request client: 34 | 35 | ```bash 36 | npm run gen # Inside the frontend directory 37 | ``` 38 | 39 | ### Running locally 40 | 41 | Run your Encore backend: 42 | ```bash 43 | encore run # Inside the backend directory 44 | ``` 45 | 46 | In a different terminal window, run the Next.js frontend: 47 | ```bash 48 | cd frontend 49 | npm install 50 | npm run dev 51 | ``` 52 | 53 | Open [http://localhost:3000](http://localhost:3000) in your browser to see the result. 54 | 55 | ### Encore's Local Development Dashboard 56 | 57 | While `encore run` is running, open [http://localhost:9400](http://localhost:9400) to view Encore's local developer dashboard. 58 | Here you can see the request you just made and a view a trace of the response. 59 | 60 | ### Generating a request client 61 | 62 | Keep the contract between the backend and frontend in sync by regenerating the request client whenever you make a change 63 | to an Encore endpoint. 64 | 65 | In the `gen` npm scripts, replace `next-js-test-ts-9wvi` with the ID of your Encore application. 66 | 67 | ```bash 68 | npm run gen # Will create a new request client frontend/app/lib/client.ts 69 | ``` 70 | 71 | ## Deployment 72 | 73 | ### Encore 74 | 75 | Follow these steps to deploy your backend to a staging environment in Encore's free development cloud. 76 | 77 | 1. Create a GitHub repo, commit and push the app. 78 | 2. Open your app in the Encore [Cloud Dashboard](https://app.encore.dev). 79 | 3. Go to your app settings and set the "Root Directory" to `backend`. We need to do this because the `encore.app` file is not in the repo root. 80 | 4. In the settings as well, link your app to GitHub and select the repo you just created. 81 | 5. Commit and push a change (can be anything) to GitHub to trigger a deploy. 82 | 83 | You can follow the deploy in the Cloud Dashboard. When the deploy is complete, your app will be available in the cloud. 84 | 85 | ### Next.js on Vercel 86 | 87 | 1. Create a repo and push the project to GitHub. 88 | 2. Create a new project on Vercel and point it to your GitHup repo. 89 | 3. Select `frontend` as the root directory for the Vercel project. 90 | 91 | ## CORS configuration 92 | 93 | If you are running into CORS issues when calling your Encore API from your frontend then you may need to specify which 94 | origins are allowed to access your API (via browsers). You do this by specifying the `global_cors` key in the `encore.app` 95 | file, which has the following structure: 96 | 97 | ```js 98 | global_cors: { 99 | // allow_origins_without_credentials specifies the allowed origins for requests 100 | // that don't include credentials. If nil it defaults to allowing all domains 101 | // (equivalent to ["*"]). 102 | "allow_origins_without_credentials": [ 103 | "" 104 | ], 105 | 106 | // allow_origins_with_credentials specifies the allowed origins for requests 107 | // that include credentials. If a request is made from an Origin in this list 108 | // Encore responds with Access-Control-Allow-Origin: . 109 | // 110 | // The URLs in this list may include wildcards (e.g. "https://*.example.com" 111 | // or "https://*-myapp.example.com"). 112 | "allow_origins_with_credentials": [ 113 | "" 114 | ] 115 | } 116 | ``` 117 | 118 | More information on CORS configuration can be found here: https://encore.dev/docs/develop/cors 119 | 120 | ## Learn More 121 | 122 | - [Encore Documentation](https://encore.dev/docs) 123 | - [Next.js Documentation](https://nextjs.org/docs) 124 | -------------------------------------------------------------------------------- /backend/.gitignore: -------------------------------------------------------------------------------- 1 | encore.gen.go 2 | encore.gen.cue 3 | /.encore 4 | /encore.gen 5 | -------------------------------------------------------------------------------- /backend/admin/admin.ts: -------------------------------------------------------------------------------- 1 | import { api } from "encore.dev/api"; 2 | import { getAuthData } from "~encore/auth"; 3 | 4 | // Welcome to Encore! 5 | // 6 | // To run it this starter, execute "encore run" in your favorite shell. 7 | 8 | // ================================================================== 9 | 10 | // Endpoint that responds with a hardcoded value. 11 | // To call it, run in your terminal: 12 | // 13 | // curl --header "Authorization: dummy-token" http://localhost:4000/admin 14 | // 15 | export const getDashboardData = api( 16 | { 17 | expose: true, // Is publicly accessible 18 | auth: true, // Auth handler validation is required 19 | method: "GET", 20 | path: "/admin", 21 | }, 22 | async (): Promise => { 23 | const userID = getAuthData()!.userID; 24 | // Log statements are viewable in the traces: 25 | // 26 | // import log from "encore.dev/log"; 27 | // log.info("Data requested by user", { userID }); 28 | 29 | return { value: "Admin stuff" }; 30 | }, 31 | ); 32 | 33 | interface DashboardData { 34 | value: string; 35 | } 36 | 37 | // ================================================================== 38 | 39 | // Encore comes with a built-in development dashboard for 40 | // exploring your API, viewing documentation, debugging with 41 | // distributed tracing, and more. Visit your API URL in the browser: 42 | // 43 | // http://localhost:9400 44 | // 45 | 46 | // ================================================================== 47 | 48 | // Next steps 49 | // 50 | // 1. Deploy your application to the cloud 51 | // 52 | // git add -A . 53 | // git commit -m 'Commit message' 54 | // git push encore 55 | // 56 | // 2. To continue exploring Encore with TypeScript, check out one of these topics: 57 | // 58 | // Building a REST API: https://encore.dev/docs/tutorials/rest-api 59 | // Services and APIs: https://encore.dev/docs/ts/primitives/services-and-apis 60 | -------------------------------------------------------------------------------- /backend/admin/encore.service.ts: -------------------------------------------------------------------------------- 1 | import { Service } from "encore.dev/service"; 2 | 3 | // Encore will consider this directory and all its subdirectories as part of the "admin" service. 4 | // https://encore.dev/docs/ts/primitives/services 5 | export default new Service("admin"); 6 | -------------------------------------------------------------------------------- /backend/auth/auth.ts: -------------------------------------------------------------------------------- 1 | import { APIError, Gateway, Header, api } from "encore.dev/api"; 2 | import { authHandler } from "encore.dev/auth"; 3 | 4 | interface LoginParams { 5 | email: string; 6 | password: string; 7 | } 8 | 9 | export const login = api( 10 | { expose: true, auth: false, method: "GET", path: "/login" }, 11 | async (params: LoginParams): Promise<{ token: string }> => { 12 | // ... get the userID from database or third party service like Auth0 or Clerk ... 13 | // ... create and sign a token ... 14 | 15 | return { token: "dummy-token" }; 16 | } 17 | ); 18 | 19 | interface AuthParams { 20 | authorization: Header<"Authorization">; 21 | } 22 | 23 | // The function passed to authHandler will be called for all incoming API call that requires authentication. 24 | // Remove if your app does not require authentication. 25 | export const myAuthHandler = authHandler( 26 | async (params: AuthParams): Promise<{ userID: string }> => { 27 | // ... verify and decode token to get the userID ... 28 | // ... get user info from database or third party service like Auth0 or Clerk ... 29 | 30 | if (!params.authorization) { 31 | throw APIError.unauthenticated("no token provided"); 32 | } 33 | if (params.authorization !== "dummy-token") { 34 | throw APIError.unauthenticated("invalid token"); 35 | } 36 | 37 | return { userID: "dummy-user-id" }; 38 | } 39 | ); 40 | 41 | export const gateway = new Gateway({ authHandler: myAuthHandler }); 42 | -------------------------------------------------------------------------------- /backend/auth/encore.service.ts: -------------------------------------------------------------------------------- 1 | import { Service } from "encore.dev/service"; 2 | 3 | // Encore will consider this directory and all its subdirectories as part of the "auth" service. 4 | // https://encore.dev/docs/ts/primitives/services 5 | export default new Service("auth"); 6 | -------------------------------------------------------------------------------- /backend/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "backend", 3 | "version": "0.0.1", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "backend", 9 | "version": "0.0.1", 10 | "license": "MPL-2.0", 11 | "dependencies": { 12 | "encore.dev": "^1.43.9" 13 | }, 14 | "devDependencies": { 15 | "@types/node": "^20", 16 | "typescript": "^5.2.2" 17 | } 18 | }, 19 | "node_modules/@types/node": { 20 | "version": "20.12.7", 21 | "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.7.tgz", 22 | "integrity": "sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg==", 23 | "dev": true, 24 | "dependencies": { 25 | "undici-types": "~5.26.4" 26 | } 27 | }, 28 | "node_modules/encore.dev": { 29 | "version": "1.43.9", 30 | "resolved": "https://registry.npmjs.org/encore.dev/-/encore.dev-1.43.9.tgz", 31 | "integrity": "sha512-X3k5LsPxC7zUYEPr802hGS190TSSoZboLkHsBp0A9aSE8QXxIC7dPVEFaNJkwyEMC5BJAa122qQBibU5KFnATg==", 32 | "license": "MPL-2.0", 33 | "engines": { 34 | "node": ">=18.0.0" 35 | } 36 | }, 37 | "node_modules/typescript": { 38 | "version": "5.2.2", 39 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", 40 | "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", 41 | "dev": true, 42 | "bin": { 43 | "tsc": "bin/tsc", 44 | "tsserver": "bin/tsserver" 45 | }, 46 | "engines": { 47 | "node": ">=14.17" 48 | } 49 | }, 50 | "node_modules/undici-types": { 51 | "version": "5.26.5", 52 | "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", 53 | "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", 54 | "dev": true 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /backend/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "backend", 3 | "private": true, 4 | "version": "0.0.1", 5 | "description": "Encore + Next Starter", 6 | "license": "MPL-2.0", 7 | "type": "module", 8 | "devDependencies": { 9 | "typescript": "^5.2.2", 10 | "@types/node": "^20" 11 | }, 12 | "dependencies": { 13 | "encore.dev": "^1.43.9" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /backend/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/tsconfig", 3 | "compilerOptions": { 4 | "target": "ES2022", 5 | "types": [ 6 | "node" 7 | ], 8 | "paths": { 9 | "~encore/*": [ 10 | "./encore.gen/*" 11 | ] 12 | }, 13 | /* Workspace Settings */ 14 | "composite": true, 15 | "allowSyntheticDefaultImports": true, 16 | "sourceMap": true, 17 | "declaration": true, 18 | /* Advanced Options */ 19 | "forceConsistentCasingInFileNames": true, 20 | "lib": [ 21 | "dom", 22 | "dom.iterable", 23 | "esnext" 24 | ], 25 | "allowJs": true, 26 | "skipLibCheck": true, 27 | "strict": true, 28 | "noEmit": true, 29 | "esModuleInterop": true, 30 | "module": "esnext", 31 | "moduleResolution": "bundler", 32 | "resolveJsonModule": true, 33 | "isolatedModules": true, 34 | "jsx": "preserve", 35 | "incremental": true, 36 | "plugins": [ 37 | { 38 | "name": "next" 39 | } 40 | ] 41 | }, 42 | "include": [ 43 | "next-env.d.ts", 44 | "**/*.ts", 45 | "**/*.tsx", 46 | ".next/types/**/*.ts" 47 | ], 48 | "exclude": [ 49 | "node_modules" 50 | ] 51 | } 52 | -------------------------------------------------------------------------------- /frontend/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | .yarn/install-state.gz 8 | 9 | # testing 10 | /coverage 11 | 12 | # next.js 13 | /.next/ 14 | /out/ 15 | 16 | # production 17 | /build 18 | 19 | # misc 20 | .DS_Store 21 | *.pem 22 | 23 | # debug 24 | npm-debug.log* 25 | yarn-debug.log* 26 | yarn-error.log* 27 | 28 | # local env files 29 | .env*.local 30 | 31 | # vercel 32 | .vercel 33 | 34 | # typescript 35 | *.tsbuildinfo 36 | next-env.d.ts 37 | -------------------------------------------------------------------------------- /frontend/README.md: -------------------------------------------------------------------------------- 1 | This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). 2 | 3 | ## Getting Started 4 | 5 | First, run the development server: 6 | 7 | ```bash 8 | npm run dev 9 | # or 10 | yarn dev 11 | # or 12 | pnpm dev 13 | # or 14 | bun dev 15 | ``` 16 | 17 | Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. 18 | 19 | You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. 20 | 21 | This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. 22 | 23 | ## Learn More 24 | 25 | To learn more about Next.js, take a look at the following resources: 26 | 27 | - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. 28 | - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. 29 | 30 | You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! 31 | 32 | ## Deploy on Vercel 33 | 34 | The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. 35 | 36 | Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. 37 | -------------------------------------------------------------------------------- /frontend/app/admin/error.tsx: -------------------------------------------------------------------------------- 1 | "use client"; // Error components must be Client Components 2 | 3 | import { useEffect } from "react"; 4 | 5 | export default function Error({ 6 | error, 7 | }: { 8 | error: Error & { digest?: string }; 9 | reset: () => void; 10 | }) { 11 | useEffect(() => { 12 | // Log the error to an error reporting service 13 | console.error(error); 14 | }, [error]); 15 | 16 | if (error.message === "invalid auth param") { 17 | return

You need to login to view this data

; 18 | } 19 | 20 | return

Something went wrong!

; 21 | } 22 | -------------------------------------------------------------------------------- /frontend/app/admin/page.tsx: -------------------------------------------------------------------------------- 1 | import {redirect} from "next/navigation"; 2 | import getRequestClient from "../lib/getRequestClient"; 3 | import {admin, APIError, ErrCode} from "../lib/client"; 4 | 5 | export default async function Admin() { 6 | const client = getRequestClient(); 7 | let response: admin.DashboardData | undefined; 8 | let error: APIError | undefined; 9 | 10 | try { 11 | response = await client.admin.getDashboardData(); 12 | } catch (err) { 13 | error = err as APIError; 14 | } 15 | 16 | if (error) { 17 | if (error.code === ErrCode.Unauthenticated) redirect("/auth/unauthenticated?from=%2Fadmin"); 18 | else throw error; 19 | } 20 | 21 | return ( 22 |
23 |

Admin Dashboard

24 |
25 |

{response?.value}

26 |
27 | ); 28 | } 29 | -------------------------------------------------------------------------------- /frontend/app/auth/login/route.ts: -------------------------------------------------------------------------------- 1 | import { redirect } from "next/navigation"; 2 | import type { NextApiResponse } from "next"; 3 | import { cookies } from "next/headers"; 4 | import getRequestClient from "../../lib/getRequestClient"; 5 | 6 | type ResponseData = { 7 | message: string; 8 | }; 9 | 10 | export async function POST(req: Request, res: NextApiResponse) { 11 | const data = await req.formData(); 12 | const email = (data.get("email") as string) || "incognito"; 13 | const password = (data.get("password") as string) || "password"; 14 | 15 | try { 16 | const client = getRequestClient(); 17 | const response = await client.auth.login({ email, password }); 18 | cookies().set("auth-token", response.token); 19 | } catch (error) { 20 | console.error("Error logging in", error); 21 | } 22 | 23 | return redirect("/"); 24 | } 25 | -------------------------------------------------------------------------------- /frontend/app/auth/logout/route.ts: -------------------------------------------------------------------------------- 1 | import { redirect } from "next/navigation"; 2 | import { cookies } from "next/headers"; 3 | 4 | export async function POST() { 5 | cookies().delete("auth-token"); 6 | return redirect("/"); 7 | } 8 | -------------------------------------------------------------------------------- /frontend/app/auth/unauthenticated/page.tsx: -------------------------------------------------------------------------------- 1 | "use client"; 2 | 3 | import { useSearchParams } from "next/navigation"; 4 | 5 | export default function Unauthenticated() { 6 | const searchParams = useSearchParams(); 7 | const fromPage = searchParams.get("from"); 8 | 9 | return ( 10 |
11 |

Unauthenticated

12 |
13 |

14 | You need to be logged in to view {fromPage} 15 |

16 |
17 | ); 18 | } 19 | -------------------------------------------------------------------------------- /frontend/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/encoredev/nextjs-starter/3273aa6f118131dfc0adf602a319f496314ad554/frontend/app/favicon.ico -------------------------------------------------------------------------------- /frontend/app/globals.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | 5 | :root { 6 | --nav-height: 50px; 7 | 8 | --black: #111111; 9 | --white: #EEEEE1; 10 | } 11 | 12 | html, 13 | body { 14 | @apply w-screen overflow-x-hidden; 15 | } 16 | 17 | nav { 18 | height: var(--nav-height); 19 | } 20 | 21 | main { 22 | min-height: calc(100vh - var(--nav-height)); 23 | } 24 | 25 | button { 26 | @apply bg-white text-black px-4 py-1 rounded-sm; 27 | } 28 | 29 | input { 30 | @apply text-black px-2 py-1 rounded-sm; 31 | } 32 | -------------------------------------------------------------------------------- /frontend/app/layout.tsx: -------------------------------------------------------------------------------- 1 | import "./globals.css"; 2 | import type { Metadata } from "next"; 3 | import { Inter } from "next/font/google"; 4 | import Link from "next/link"; 5 | import { cookies } from "next/headers"; 6 | 7 | const inter = Inter({ subsets: ["latin"] }); 8 | 9 | export const metadata: Metadata = { 10 | title: "Encore + Next.js", 11 | }; 12 | 13 | const navLinks = [ 14 | { href: "/", label: "Home" }, 15 | { href: "/admin", label: "Admin Dashboard" }, 16 | ]; 17 | 18 | export default function RootLayout({ 19 | children, 20 | }: { 21 | children: React.ReactNode; 22 | }) { 23 | const isLoggedIn = cookies().has("auth-token"); 24 | 25 | return ( 26 | 27 | 28 |
29 | 50 |
51 | 52 |
{children}
53 | 54 | 55 | ); 56 | } 57 | -------------------------------------------------------------------------------- /frontend/app/lib/client.ts: -------------------------------------------------------------------------------- 1 | // Code generated by the Encore v1.36.3 client generator. DO NOT EDIT. 2 | 3 | // Disable eslint, jshint, and jslint for this file. 4 | /* eslint-disable */ 5 | /* jshint ignore:start */ 6 | /*jslint-disable*/ 7 | 8 | /** 9 | * BaseURL is the base URL for calling the Encore application's API. 10 | */ 11 | export type BaseURL = string 12 | 13 | export const Local: BaseURL = "http://localhost:4000" 14 | 15 | /** 16 | * Environment returns a BaseURL for calling the cloud environment with the given name. 17 | */ 18 | export function Environment(name: string): BaseURL { 19 | return `https://${name}-next-js-test-ts-9wvi.encr.app` 20 | } 21 | 22 | /** 23 | * PreviewEnv returns a BaseURL for calling the preview environment with the given PR number. 24 | */ 25 | export function PreviewEnv(pr: number | string): BaseURL { 26 | return Environment(`pr${pr}`) 27 | } 28 | 29 | /** 30 | * Client is an API client for the next-js-test-ts-9wvi Encore application. 31 | */ 32 | export default class Client { 33 | public readonly admin: admin.ServiceClient 34 | public readonly auth: auth.ServiceClient 35 | 36 | 37 | /** 38 | * Creates a Client for calling the public and authenticated APIs of your Encore application. 39 | * 40 | * @param target The target which the client should be configured to use. See Local and Environment for options. 41 | * @param options Options for the client 42 | */ 43 | constructor(target: BaseURL, options?: ClientOptions) { 44 | const base = new BaseClient(target, options ?? {}) 45 | this.admin = new admin.ServiceClient(base) 46 | this.auth = new auth.ServiceClient(base) 47 | } 48 | } 49 | 50 | /** 51 | * ClientOptions allows you to override any default behaviour within the generated Encore client. 52 | */ 53 | export interface ClientOptions { 54 | /** 55 | * By default the client will use the inbuilt fetch function for making the API requests. 56 | * however you can override it with your own implementation here if you want to run custom 57 | * code on each API request made or response received. 58 | */ 59 | fetcher?: Fetcher 60 | 61 | /** Default RequestInit to be used for the client */ 62 | requestInit?: Omit & { headers?: Record } 63 | 64 | /** 65 | * Allows you to set the authentication data to be used for each 66 | * request either by passing in a static object or by passing in 67 | * a function which returns a new object for each request. 68 | */ 69 | auth?: auth.AuthParams | AuthDataGenerator 70 | } 71 | 72 | export namespace admin { 73 | export interface DashboardData { 74 | value: string 75 | } 76 | 77 | export class ServiceClient { 78 | private baseClient: BaseClient 79 | 80 | constructor(baseClient: BaseClient) { 81 | this.baseClient = baseClient 82 | } 83 | 84 | /** 85 | * Endpoint that responds with a hardcoded value. 86 | * To call it, run in your terminal: 87 | * 88 | * curl --header "Authorization: dummy-token" http://localhost:4000/admin 89 | */ 90 | public async getDashboardData(): Promise { 91 | // Now make the actual call to the API 92 | const resp = await this.baseClient.callAPI("GET", `/admin`) 93 | return await resp.json() as DashboardData 94 | } 95 | } 96 | } 97 | 98 | export namespace auth { 99 | export interface AuthParams { 100 | authorization: string 101 | } 102 | 103 | export interface LoginParams { 104 | email: string 105 | password: string 106 | } 107 | 108 | export class ServiceClient { 109 | private baseClient: BaseClient 110 | 111 | constructor(baseClient: BaseClient) { 112 | this.baseClient = baseClient 113 | } 114 | 115 | public async login(params: LoginParams): Promise<{ 116 | token: string 117 | }> { 118 | // Convert our params into the objects we need for the request 119 | const query = makeRecord({ 120 | email: params.email, 121 | password: params.password, 122 | }) 123 | 124 | // Now make the actual call to the API 125 | const resp = await this.baseClient.callAPI("GET", `/login`, undefined, {query}) 126 | return await resp.json() as { 127 | token: string 128 | } 129 | } 130 | } 131 | } 132 | 133 | 134 | 135 | function encodeQuery(parts: Record): string { 136 | const pairs: string[] = [] 137 | for (const key in parts) { 138 | const val = (Array.isArray(parts[key]) ? parts[key] : [parts[key]]) as string[] 139 | for (const v of val) { 140 | pairs.push(`${key}=${encodeURIComponent(v)}`) 141 | } 142 | } 143 | return pairs.join("&") 144 | } 145 | 146 | // makeRecord takes a record and strips any undefined values from it, 147 | // and returns the same record with a narrower type. 148 | // @ts-ignore - TS ignore because makeRecord is not always used 149 | function makeRecord(record: Record): Record { 150 | for (const key in record) { 151 | if (record[key] === undefined) { 152 | delete record[key] 153 | } 154 | } 155 | return record as Record 156 | } 157 | 158 | // CallParameters is the type of the parameters to a method call, but require headers to be a Record type 159 | type CallParameters = Omit & { 160 | /** Headers to be sent with the request */ 161 | headers?: Record 162 | 163 | /** Query parameters to be sent with the request */ 164 | query?: Record 165 | } 166 | 167 | // AuthDataGenerator is a function that returns a new instance of the authentication data required by this API 168 | export type AuthDataGenerator = () => 169 | | auth.AuthParams 170 | | Promise 171 | | undefined; 172 | 173 | // A fetcher is the prototype for the inbuilt Fetch function 174 | export type Fetcher = typeof fetch; 175 | 176 | const boundFetch = fetch.bind(this); 177 | 178 | class BaseClient { 179 | readonly baseURL: string 180 | readonly fetcher: Fetcher 181 | readonly headers: Record 182 | readonly requestInit: Omit & { headers?: Record } 183 | readonly authGenerator?: AuthDataGenerator 184 | 185 | constructor(baseURL: string, options: ClientOptions) { 186 | this.baseURL = baseURL 187 | this.headers = { 188 | "Content-Type": "application/json", 189 | } 190 | 191 | // Add User-Agent header if the script is running in the server 192 | // because browsers do not allow setting User-Agent headers to requests 193 | if (typeof window === "undefined") { 194 | this.headers["User-Agent"] = "next-js-test-ts-9wvi-Generated-TS-Client (Encore/v1.36.3)"; 195 | } 196 | 197 | this.requestInit = options.requestInit ?? {}; 198 | 199 | // Setup what fetch function we'll be using in the base client 200 | if (options.fetcher !== undefined) { 201 | this.fetcher = options.fetcher 202 | } else { 203 | this.fetcher = boundFetch 204 | } 205 | 206 | // Setup an authentication data generator using the auth data token option 207 | if (options.auth !== undefined) { 208 | const auth = options.auth 209 | if (typeof auth === "function") { 210 | this.authGenerator = auth 211 | } else { 212 | this.authGenerator = () => auth 213 | } 214 | } 215 | 216 | } 217 | 218 | // callAPI is used by each generated API method to actually make the request 219 | public async callAPI(method: string, path: string, body?: BodyInit, params?: CallParameters): Promise { 220 | let { query, headers, ...rest } = params ?? {} 221 | const init = { 222 | ...this.requestInit, 223 | ...rest, 224 | method, 225 | body: body ?? null, 226 | } 227 | 228 | // Merge our headers with any predefined headers 229 | init.headers = {...this.headers, ...init.headers, ...headers} 230 | 231 | // If authorization data generator is present, call it and add the returned data to the request 232 | let authData: auth.AuthParams | undefined 233 | if (this.authGenerator) { 234 | const mayBePromise = this.authGenerator() 235 | if (mayBePromise instanceof Promise) { 236 | authData = await mayBePromise 237 | } else { 238 | authData = mayBePromise 239 | } 240 | } 241 | 242 | // If we now have authentication data, add it to the request 243 | if (authData) { 244 | init.headers["authorization"] = authData.authorization 245 | } 246 | 247 | // Make the actual request 248 | const queryString = query ? '?' + encodeQuery(query) : '' 249 | const response = await this.fetcher(this.baseURL+path+queryString, init) 250 | 251 | // handle any error responses 252 | if (!response.ok) { 253 | // try and get the error message from the response body 254 | let body: APIErrorResponse = { code: ErrCode.Unknown, message: `request failed: status ${response.status}` } 255 | 256 | // if we can get the structured error we should, otherwise give a best effort 257 | try { 258 | const text = await response.text() 259 | 260 | try { 261 | const jsonBody = JSON.parse(text) 262 | if (isAPIErrorResponse(jsonBody)) { 263 | body = jsonBody 264 | } else { 265 | body.message += ": " + JSON.stringify(jsonBody) 266 | } 267 | } catch { 268 | body.message += ": " + text 269 | } 270 | } catch (e) { 271 | // otherwise we just append the text to the error message 272 | body.message += ": " + String(e) 273 | } 274 | 275 | throw new APIError(response.status, body) 276 | } 277 | 278 | return response 279 | } 280 | } 281 | 282 | /** 283 | * APIErrorDetails represents the response from an Encore API in the case of an error 284 | */ 285 | interface APIErrorResponse { 286 | code: ErrCode 287 | message: string 288 | details?: any 289 | } 290 | 291 | function isAPIErrorResponse(err: any): err is APIErrorResponse { 292 | return ( 293 | err !== undefined && err !== null && 294 | isErrCode(err.code) && 295 | typeof(err.message) === "string" && 296 | (err.details === undefined || err.details === null || typeof(err.details) === "object") 297 | ) 298 | } 299 | 300 | function isErrCode(code: any): code is ErrCode { 301 | return code !== undefined && Object.values(ErrCode).includes(code) 302 | } 303 | 304 | /** 305 | * APIError represents a structured error as returned from an Encore application. 306 | */ 307 | export class APIError extends Error { 308 | /** 309 | * The HTTP status code associated with the error. 310 | */ 311 | public readonly status: number 312 | 313 | /** 314 | * The Encore error code 315 | */ 316 | public readonly code: ErrCode 317 | 318 | /** 319 | * The error details 320 | */ 321 | public readonly details?: any 322 | 323 | constructor(status: number, response: APIErrorResponse) { 324 | // extending errors causes issues after you construct them, unless you apply the following fixes 325 | super(response.message); 326 | 327 | // set error name as constructor name, make it not enumerable to keep native Error behavior 328 | // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/new.target#new.target_in_constructors 329 | Object.defineProperty(this, 'name', { 330 | value: 'APIError', 331 | enumerable: false, 332 | configurable: true, 333 | }) 334 | 335 | // fix the prototype chain 336 | if ((Object as any).setPrototypeOf == undefined) { 337 | (this as any).__proto__ = APIError.prototype 338 | } else { 339 | Object.setPrototypeOf(this, APIError.prototype); 340 | } 341 | 342 | // capture a stack trace 343 | if ((Error as any).captureStackTrace !== undefined) { 344 | (Error as any).captureStackTrace(this, this.constructor); 345 | } 346 | 347 | this.status = status 348 | this.code = response.code 349 | this.details = response.details 350 | } 351 | } 352 | 353 | /** 354 | * Typeguard allowing use of an APIError's fields' 355 | */ 356 | export function isAPIError(err: any): err is APIError { 357 | return err instanceof APIError; 358 | } 359 | 360 | export enum ErrCode { 361 | /** 362 | * OK indicates the operation was successful. 363 | */ 364 | OK = "ok", 365 | 366 | /** 367 | * Canceled indicates the operation was canceled (typically by the caller). 368 | * 369 | * Encore will generate this error code when cancellation is requested. 370 | */ 371 | Canceled = "canceled", 372 | 373 | /** 374 | * Unknown error. An example of where this error may be returned is 375 | * if a Status value received from another address space belongs to 376 | * an error-space that is not known in this address space. Also 377 | * errors raised by APIs that do not return enough error information 378 | * may be converted to this error. 379 | * 380 | * Encore will generate this error code in the above two mentioned cases. 381 | */ 382 | Unknown = "unknown", 383 | 384 | /** 385 | * InvalidArgument indicates client specified an invalid argument. 386 | * Note that this differs from FailedPrecondition. It indicates arguments 387 | * that are problematic regardless of the state of the system 388 | * (e.g., a malformed file name). 389 | * 390 | * This error code will not be generated by the gRPC framework. 391 | */ 392 | InvalidArgument = "invalid_argument", 393 | 394 | /** 395 | * DeadlineExceeded means operation expired before completion. 396 | * For operations that change the state of the system, this error may be 397 | * returned even if the operation has completed successfully. For 398 | * example, a successful response from a server could have been delayed 399 | * long enough for the deadline to expire. 400 | * 401 | * The gRPC framework will generate this error code when the deadline is 402 | * exceeded. 403 | */ 404 | DeadlineExceeded = "deadline_exceeded", 405 | 406 | /** 407 | * NotFound means some requested entity (e.g., file or directory) was 408 | * not found. 409 | * 410 | * This error code will not be generated by the gRPC framework. 411 | */ 412 | NotFound = "not_found", 413 | 414 | /** 415 | * AlreadyExists means an attempt to create an entity failed because one 416 | * already exists. 417 | * 418 | * This error code will not be generated by the gRPC framework. 419 | */ 420 | AlreadyExists = "already_exists", 421 | 422 | /** 423 | * PermissionDenied indicates the caller does not have permission to 424 | * execute the specified operation. It must not be used for rejections 425 | * caused by exhausting some resource (use ResourceExhausted 426 | * instead for those errors). It must not be 427 | * used if the caller cannot be identified (use Unauthenticated 428 | * instead for those errors). 429 | * 430 | * This error code will not be generated by the gRPC core framework, 431 | * but expect authentication middleware to use it. 432 | */ 433 | PermissionDenied = "permission_denied", 434 | 435 | /** 436 | * ResourceExhausted indicates some resource has been exhausted, perhaps 437 | * a per-user quota, or perhaps the entire file system is out of space. 438 | * 439 | * This error code will be generated by the gRPC framework in 440 | * out-of-memory and server overload situations, or when a message is 441 | * larger than the configured maximum size. 442 | */ 443 | ResourceExhausted = "resource_exhausted", 444 | 445 | /** 446 | * FailedPrecondition indicates operation was rejected because the 447 | * system is not in a state required for the operation's execution. 448 | * For example, directory to be deleted may be non-empty, an rmdir 449 | * operation is applied to a non-directory, etc. 450 | * 451 | * A litmus test that may help a service implementor in deciding 452 | * between FailedPrecondition, Aborted, and Unavailable: 453 | * (a) Use Unavailable if the client can retry just the failing call. 454 | * (b) Use Aborted if the client should retry at a higher-level 455 | * (e.g., restarting a read-modify-write sequence). 456 | * (c) Use FailedPrecondition if the client should not retry until 457 | * the system state has been explicitly fixed. E.g., if an "rmdir" 458 | * fails because the directory is non-empty, FailedPrecondition 459 | * should be returned since the client should not retry unless 460 | * they have first fixed up the directory by deleting files from it. 461 | * (d) Use FailedPrecondition if the client performs conditional 462 | * REST Get/Update/Delete on a resource and the resource on the 463 | * server does not match the condition. E.g., conflicting 464 | * read-modify-write on the same resource. 465 | * 466 | * This error code will not be generated by the gRPC framework. 467 | */ 468 | FailedPrecondition = "failed_precondition", 469 | 470 | /** 471 | * Aborted indicates the operation was aborted, typically due to a 472 | * concurrency issue like sequencer check failures, transaction aborts, 473 | * etc. 474 | * 475 | * See litmus test above for deciding between FailedPrecondition, 476 | * Aborted, and Unavailable. 477 | */ 478 | Aborted = "aborted", 479 | 480 | /** 481 | * OutOfRange means operation was attempted past the valid range. 482 | * E.g., seeking or reading past end of file. 483 | * 484 | * Unlike InvalidArgument, this error indicates a problem that may 485 | * be fixed if the system state changes. For example, a 32-bit file 486 | * system will generate InvalidArgument if asked to read at an 487 | * offset that is not in the range [0,2^32-1], but it will generate 488 | * OutOfRange if asked to read from an offset past the current 489 | * file size. 490 | * 491 | * There is a fair bit of overlap between FailedPrecondition and 492 | * OutOfRange. We recommend using OutOfRange (the more specific 493 | * error) when it applies so that callers who are iterating through 494 | * a space can easily look for an OutOfRange error to detect when 495 | * they are done. 496 | * 497 | * This error code will not be generated by the gRPC framework. 498 | */ 499 | OutOfRange = "out_of_range", 500 | 501 | /** 502 | * Unimplemented indicates operation is not implemented or not 503 | * supported/enabled in this service. 504 | * 505 | * This error code will be generated by the gRPC framework. Most 506 | * commonly, you will see this error code when a method implementation 507 | * is missing on the server. It can also be generated for unknown 508 | * compression algorithms or a disagreement as to whether an RPC should 509 | * be streaming. 510 | */ 511 | Unimplemented = "unimplemented", 512 | 513 | /** 514 | * Internal errors. Means some invariants expected by underlying 515 | * system has been broken. If you see one of these errors, 516 | * something is very broken. 517 | * 518 | * This error code will be generated by the gRPC framework in several 519 | * internal error conditions. 520 | */ 521 | Internal = "internal", 522 | 523 | /** 524 | * Unavailable indicates the service is currently unavailable. 525 | * This is a most likely a transient condition and may be corrected 526 | * by retrying with a backoff. Note that it is not always safe to retry 527 | * non-idempotent operations. 528 | * 529 | * See litmus test above for deciding between FailedPrecondition, 530 | * Aborted, and Unavailable. 531 | * 532 | * This error code will be generated by the gRPC framework during 533 | * abrupt shutdown of a server process or network connection. 534 | */ 535 | Unavailable = "unavailable", 536 | 537 | /** 538 | * DataLoss indicates unrecoverable data loss or corruption. 539 | * 540 | * This error code will not be generated by the gRPC framework. 541 | */ 542 | DataLoss = "data_loss", 543 | 544 | /** 545 | * Unauthenticated indicates the request does not have valid 546 | * authentication credentials for the operation. 547 | * 548 | * The gRPC framework will generate this error code when the 549 | * authentication metadata is invalid or a Credentials callback fails, 550 | * but also expect authentication middleware to generate it. 551 | */ 552 | Unauthenticated = "unauthenticated", 553 | } 554 | -------------------------------------------------------------------------------- /frontend/app/lib/getRequestClient.ts: -------------------------------------------------------------------------------- 1 | import { cookies } from "next/headers"; 2 | import Client, { Environment } from "./client"; 3 | 4 | /** 5 | * Returns the Encore request client for either the local or staging environment. 6 | * If we are running the frontend locally (development) we assume that our Encore backend is also running locally 7 | * and make requests to that, otherwise we use the staging client. 8 | */ 9 | const getRequestClient = () => { 10 | const token = cookies().get("auth-token")?.value || ""; 11 | const env = 12 | process.env.NODE_ENV === "development" 13 | ? "http://127.0.0.1:4000" 14 | : Environment("staging"); 15 | 16 | return new Client(env, { 17 | auth: { authorization: token }, 18 | }); 19 | }; 20 | 21 | export default getRequestClient; 22 | -------------------------------------------------------------------------------- /frontend/app/page.tsx: -------------------------------------------------------------------------------- 1 | import {FC} from "react"; 2 | 3 | export default async function Home() { 4 | return ( 5 |
6 |

Next.js + Encore Web App Starter

7 | 8 |
9 | 14 | 15 | 20 | 21 | 26 | 27 | 32 |
33 |
34 | ); 35 | } 36 | 37 | const Card: FC<{ href: string; heading: string; desc: string }> = ({href, heading, desc}) => { 38 | return 39 |

{heading} ->

40 |

{desc}

41 |
42 | } 43 | -------------------------------------------------------------------------------- /frontend/next.config.mjs: -------------------------------------------------------------------------------- 1 | /** @type {import('next').NextConfig} */ 2 | const nextConfig = {}; 3 | 4 | export default nextConfig; 5 | -------------------------------------------------------------------------------- /frontend/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "frontend", 3 | "version": "0.1.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "frontend", 9 | "version": "0.1.0", 10 | "dependencies": { 11 | "next": "^14.2.3", 12 | "react": "^18", 13 | "react-dom": "^18" 14 | }, 15 | "devDependencies": { 16 | "@types/node": "^20", 17 | "@types/react": "^18", 18 | "@types/react-dom": "^18", 19 | "postcss": "^8", 20 | "tailwindcss": "^3.4.1", 21 | "typescript": "^5" 22 | } 23 | }, 24 | "node_modules/@alloc/quick-lru": { 25 | "version": "5.2.0", 26 | "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", 27 | "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==", 28 | "dev": true, 29 | "engines": { 30 | "node": ">=10" 31 | }, 32 | "funding": { 33 | "url": "https://github.com/sponsors/sindresorhus" 34 | } 35 | }, 36 | "node_modules/@isaacs/cliui": { 37 | "version": "8.0.2", 38 | "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", 39 | "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", 40 | "dev": true, 41 | "dependencies": { 42 | "string-width": "^5.1.2", 43 | "string-width-cjs": "npm:string-width@^4.2.0", 44 | "strip-ansi": "^7.0.1", 45 | "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", 46 | "wrap-ansi": "^8.1.0", 47 | "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" 48 | }, 49 | "engines": { 50 | "node": ">=12" 51 | } 52 | }, 53 | "node_modules/@jridgewell/gen-mapping": { 54 | "version": "0.3.5", 55 | "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", 56 | "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", 57 | "dev": true, 58 | "dependencies": { 59 | "@jridgewell/set-array": "^1.2.1", 60 | "@jridgewell/sourcemap-codec": "^1.4.10", 61 | "@jridgewell/trace-mapping": "^0.3.24" 62 | }, 63 | "engines": { 64 | "node": ">=6.0.0" 65 | } 66 | }, 67 | "node_modules/@jridgewell/resolve-uri": { 68 | "version": "3.1.2", 69 | "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", 70 | "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", 71 | "dev": true, 72 | "engines": { 73 | "node": ">=6.0.0" 74 | } 75 | }, 76 | "node_modules/@jridgewell/set-array": { 77 | "version": "1.2.1", 78 | "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", 79 | "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", 80 | "dev": true, 81 | "engines": { 82 | "node": ">=6.0.0" 83 | } 84 | }, 85 | "node_modules/@jridgewell/sourcemap-codec": { 86 | "version": "1.4.15", 87 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", 88 | "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", 89 | "dev": true 90 | }, 91 | "node_modules/@jridgewell/trace-mapping": { 92 | "version": "0.3.25", 93 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", 94 | "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", 95 | "dev": true, 96 | "dependencies": { 97 | "@jridgewell/resolve-uri": "^3.1.0", 98 | "@jridgewell/sourcemap-codec": "^1.4.14" 99 | } 100 | }, 101 | "node_modules/@next/env": { 102 | "version": "14.2.3", 103 | "resolved": "https://registry.npmjs.org/@next/env/-/env-14.2.3.tgz", 104 | "integrity": "sha512-W7fd7IbkfmeeY2gXrzJYDx8D2lWKbVoTIj1o1ScPHNzvp30s1AuoEFSdr39bC5sjxJaxTtq3OTCZboNp0lNWHA==" 105 | }, 106 | "node_modules/@next/swc-darwin-arm64": { 107 | "version": "14.2.3", 108 | "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.2.3.tgz", 109 | "integrity": "sha512-3pEYo/RaGqPP0YzwnlmPN2puaF2WMLM3apt5jLW2fFdXD9+pqcoTzRk+iZsf8ta7+quAe4Q6Ms0nR0SFGFdS1A==", 110 | "cpu": [ 111 | "arm64" 112 | ], 113 | "optional": true, 114 | "os": [ 115 | "darwin" 116 | ], 117 | "engines": { 118 | "node": ">= 10" 119 | } 120 | }, 121 | "node_modules/@next/swc-darwin-x64": { 122 | "version": "14.2.3", 123 | "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.2.3.tgz", 124 | "integrity": "sha512-6adp7waE6P1TYFSXpY366xwsOnEXM+y1kgRpjSRVI2CBDOcbRjsJ67Z6EgKIqWIue52d2q/Mx8g9MszARj8IEA==", 125 | "cpu": [ 126 | "x64" 127 | ], 128 | "optional": true, 129 | "os": [ 130 | "darwin" 131 | ], 132 | "engines": { 133 | "node": ">= 10" 134 | } 135 | }, 136 | "node_modules/@next/swc-linux-arm64-gnu": { 137 | "version": "14.2.3", 138 | "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.2.3.tgz", 139 | "integrity": "sha512-cuzCE/1G0ZSnTAHJPUT1rPgQx1w5tzSX7POXSLaS7w2nIUJUD+e25QoXD/hMfxbsT9rslEXugWypJMILBj/QsA==", 140 | "cpu": [ 141 | "arm64" 142 | ], 143 | "optional": true, 144 | "os": [ 145 | "linux" 146 | ], 147 | "engines": { 148 | "node": ">= 10" 149 | } 150 | }, 151 | "node_modules/@next/swc-linux-arm64-musl": { 152 | "version": "14.2.3", 153 | "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.2.3.tgz", 154 | "integrity": "sha512-0D4/oMM2Y9Ta3nGuCcQN8jjJjmDPYpHX9OJzqk42NZGJocU2MqhBq5tWkJrUQOQY9N+In9xOdymzapM09GeiZw==", 155 | "cpu": [ 156 | "arm64" 157 | ], 158 | "optional": true, 159 | "os": [ 160 | "linux" 161 | ], 162 | "engines": { 163 | "node": ">= 10" 164 | } 165 | }, 166 | "node_modules/@next/swc-linux-x64-gnu": { 167 | "version": "14.2.3", 168 | "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.2.3.tgz", 169 | "integrity": "sha512-ENPiNnBNDInBLyUU5ii8PMQh+4XLr4pG51tOp6aJ9xqFQ2iRI6IH0Ds2yJkAzNV1CfyagcyzPfROMViS2wOZ9w==", 170 | "cpu": [ 171 | "x64" 172 | ], 173 | "optional": true, 174 | "os": [ 175 | "linux" 176 | ], 177 | "engines": { 178 | "node": ">= 10" 179 | } 180 | }, 181 | "node_modules/@next/swc-linux-x64-musl": { 182 | "version": "14.2.3", 183 | "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.2.3.tgz", 184 | "integrity": "sha512-BTAbq0LnCbF5MtoM7I/9UeUu/8ZBY0i8SFjUMCbPDOLv+un67e2JgyN4pmgfXBwy/I+RHu8q+k+MCkDN6P9ViQ==", 185 | "cpu": [ 186 | "x64" 187 | ], 188 | "optional": true, 189 | "os": [ 190 | "linux" 191 | ], 192 | "engines": { 193 | "node": ">= 10" 194 | } 195 | }, 196 | "node_modules/@next/swc-win32-arm64-msvc": { 197 | "version": "14.2.3", 198 | "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.2.3.tgz", 199 | "integrity": "sha512-AEHIw/dhAMLNFJFJIJIyOFDzrzI5bAjI9J26gbO5xhAKHYTZ9Or04BesFPXiAYXDNdrwTP2dQceYA4dL1geu8A==", 200 | "cpu": [ 201 | "arm64" 202 | ], 203 | "optional": true, 204 | "os": [ 205 | "win32" 206 | ], 207 | "engines": { 208 | "node": ">= 10" 209 | } 210 | }, 211 | "node_modules/@next/swc-win32-ia32-msvc": { 212 | "version": "14.2.3", 213 | "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.3.tgz", 214 | "integrity": "sha512-vga40n1q6aYb0CLrM+eEmisfKCR45ixQYXuBXxOOmmoV8sYST9k7E3US32FsY+CkkF7NtzdcebiFT4CHuMSyZw==", 215 | "cpu": [ 216 | "ia32" 217 | ], 218 | "optional": true, 219 | "os": [ 220 | "win32" 221 | ], 222 | "engines": { 223 | "node": ">= 10" 224 | } 225 | }, 226 | "node_modules/@next/swc-win32-x64-msvc": { 227 | "version": "14.2.3", 228 | "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.2.3.tgz", 229 | "integrity": "sha512-Q1/zm43RWynxrO7lW4ehciQVj+5ePBhOK+/K2P7pLFX3JaJ/IZVC69SHidrmZSOkqz7ECIOhhy7XhAFG4JYyHA==", 230 | "cpu": [ 231 | "x64" 232 | ], 233 | "optional": true, 234 | "os": [ 235 | "win32" 236 | ], 237 | "engines": { 238 | "node": ">= 10" 239 | } 240 | }, 241 | "node_modules/@nodelib/fs.scandir": { 242 | "version": "2.1.5", 243 | "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", 244 | "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", 245 | "dev": true, 246 | "dependencies": { 247 | "@nodelib/fs.stat": "2.0.5", 248 | "run-parallel": "^1.1.9" 249 | }, 250 | "engines": { 251 | "node": ">= 8" 252 | } 253 | }, 254 | "node_modules/@nodelib/fs.stat": { 255 | "version": "2.0.5", 256 | "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", 257 | "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", 258 | "dev": true, 259 | "engines": { 260 | "node": ">= 8" 261 | } 262 | }, 263 | "node_modules/@nodelib/fs.walk": { 264 | "version": "1.2.8", 265 | "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", 266 | "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", 267 | "dev": true, 268 | "dependencies": { 269 | "@nodelib/fs.scandir": "2.1.5", 270 | "fastq": "^1.6.0" 271 | }, 272 | "engines": { 273 | "node": ">= 8" 274 | } 275 | }, 276 | "node_modules/@pkgjs/parseargs": { 277 | "version": "0.11.0", 278 | "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", 279 | "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", 280 | "dev": true, 281 | "optional": true, 282 | "engines": { 283 | "node": ">=14" 284 | } 285 | }, 286 | "node_modules/@swc/counter": { 287 | "version": "0.1.3", 288 | "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.3.tgz", 289 | "integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==" 290 | }, 291 | "node_modules/@swc/helpers": { 292 | "version": "0.5.5", 293 | "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.5.tgz", 294 | "integrity": "sha512-KGYxvIOXcceOAbEk4bi/dVLEK9z8sZ0uBB3Il5b1rhfClSpcX0yfRO0KmTkqR2cnQDymwLB+25ZyMzICg/cm/A==", 295 | "dependencies": { 296 | "@swc/counter": "^0.1.3", 297 | "tslib": "^2.4.0" 298 | } 299 | }, 300 | "node_modules/@types/node": { 301 | "version": "20.12.7", 302 | "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.7.tgz", 303 | "integrity": "sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg==", 304 | "dev": true, 305 | "dependencies": { 306 | "undici-types": "~5.26.4" 307 | } 308 | }, 309 | "node_modules/@types/prop-types": { 310 | "version": "15.7.12", 311 | "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.12.tgz", 312 | "integrity": "sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==", 313 | "dev": true 314 | }, 315 | "node_modules/@types/react": { 316 | "version": "18.2.79", 317 | "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.79.tgz", 318 | "integrity": "sha512-RwGAGXPl9kSXwdNTafkOEuFrTBD5SA2B3iEB96xi8+xu5ddUa/cpvyVCSNn+asgLCTHkb5ZxN8gbuibYJi4s1w==", 319 | "dev": true, 320 | "dependencies": { 321 | "@types/prop-types": "*", 322 | "csstype": "^3.0.2" 323 | } 324 | }, 325 | "node_modules/@types/react-dom": { 326 | "version": "18.2.25", 327 | "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.25.tgz", 328 | "integrity": "sha512-o/V48vf4MQh7juIKZU2QGDfli6p1+OOi5oXx36Hffpc9adsHeXjVp8rHuPkjd8VT8sOJ2Zp05HR7CdpGTIUFUA==", 329 | "dev": true, 330 | "dependencies": { 331 | "@types/react": "*" 332 | } 333 | }, 334 | "node_modules/ansi-regex": { 335 | "version": "6.0.1", 336 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", 337 | "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", 338 | "dev": true, 339 | "engines": { 340 | "node": ">=12" 341 | }, 342 | "funding": { 343 | "url": "https://github.com/chalk/ansi-regex?sponsor=1" 344 | } 345 | }, 346 | "node_modules/ansi-styles": { 347 | "version": "6.2.1", 348 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", 349 | "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", 350 | "dev": true, 351 | "engines": { 352 | "node": ">=12" 353 | }, 354 | "funding": { 355 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 356 | } 357 | }, 358 | "node_modules/any-promise": { 359 | "version": "1.3.0", 360 | "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", 361 | "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", 362 | "dev": true 363 | }, 364 | "node_modules/anymatch": { 365 | "version": "3.1.3", 366 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", 367 | "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", 368 | "dev": true, 369 | "dependencies": { 370 | "normalize-path": "^3.0.0", 371 | "picomatch": "^2.0.4" 372 | }, 373 | "engines": { 374 | "node": ">= 8" 375 | } 376 | }, 377 | "node_modules/arg": { 378 | "version": "5.0.2", 379 | "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", 380 | "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", 381 | "dev": true 382 | }, 383 | "node_modules/balanced-match": { 384 | "version": "1.0.2", 385 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 386 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 387 | "dev": true 388 | }, 389 | "node_modules/binary-extensions": { 390 | "version": "2.3.0", 391 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", 392 | "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", 393 | "dev": true, 394 | "engines": { 395 | "node": ">=8" 396 | }, 397 | "funding": { 398 | "url": "https://github.com/sponsors/sindresorhus" 399 | } 400 | }, 401 | "node_modules/brace-expansion": { 402 | "version": "2.0.1", 403 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", 404 | "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", 405 | "dev": true, 406 | "dependencies": { 407 | "balanced-match": "^1.0.0" 408 | } 409 | }, 410 | "node_modules/braces": { 411 | "version": "3.0.2", 412 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 413 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 414 | "dev": true, 415 | "dependencies": { 416 | "fill-range": "^7.0.1" 417 | }, 418 | "engines": { 419 | "node": ">=8" 420 | } 421 | }, 422 | "node_modules/busboy": { 423 | "version": "1.6.0", 424 | "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", 425 | "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", 426 | "dependencies": { 427 | "streamsearch": "^1.1.0" 428 | }, 429 | "engines": { 430 | "node": ">=10.16.0" 431 | } 432 | }, 433 | "node_modules/camelcase-css": { 434 | "version": "2.0.1", 435 | "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", 436 | "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", 437 | "dev": true, 438 | "engines": { 439 | "node": ">= 6" 440 | } 441 | }, 442 | "node_modules/caniuse-lite": { 443 | "version": "1.0.30001612", 444 | "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001612.tgz", 445 | "integrity": "sha512-lFgnZ07UhaCcsSZgWW0K5j4e69dK1u/ltrL9lTUiFOwNHs12S3UMIEYgBV0Z6C6hRDev7iRnMzzYmKabYdXF9g==", 446 | "funding": [ 447 | { 448 | "type": "opencollective", 449 | "url": "https://opencollective.com/browserslist" 450 | }, 451 | { 452 | "type": "tidelift", 453 | "url": "https://tidelift.com/funding/github/npm/caniuse-lite" 454 | }, 455 | { 456 | "type": "github", 457 | "url": "https://github.com/sponsors/ai" 458 | } 459 | ] 460 | }, 461 | "node_modules/chokidar": { 462 | "version": "3.6.0", 463 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", 464 | "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", 465 | "dev": true, 466 | "dependencies": { 467 | "anymatch": "~3.1.2", 468 | "braces": "~3.0.2", 469 | "glob-parent": "~5.1.2", 470 | "is-binary-path": "~2.1.0", 471 | "is-glob": "~4.0.1", 472 | "normalize-path": "~3.0.0", 473 | "readdirp": "~3.6.0" 474 | }, 475 | "engines": { 476 | "node": ">= 8.10.0" 477 | }, 478 | "funding": { 479 | "url": "https://paulmillr.com/funding/" 480 | }, 481 | "optionalDependencies": { 482 | "fsevents": "~2.3.2" 483 | } 484 | }, 485 | "node_modules/chokidar/node_modules/glob-parent": { 486 | "version": "5.1.2", 487 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 488 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 489 | "dev": true, 490 | "dependencies": { 491 | "is-glob": "^4.0.1" 492 | }, 493 | "engines": { 494 | "node": ">= 6" 495 | } 496 | }, 497 | "node_modules/client-only": { 498 | "version": "0.0.1", 499 | "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", 500 | "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==" 501 | }, 502 | "node_modules/color-convert": { 503 | "version": "2.0.1", 504 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 505 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 506 | "dev": true, 507 | "dependencies": { 508 | "color-name": "~1.1.4" 509 | }, 510 | "engines": { 511 | "node": ">=7.0.0" 512 | } 513 | }, 514 | "node_modules/color-name": { 515 | "version": "1.1.4", 516 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 517 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 518 | "dev": true 519 | }, 520 | "node_modules/commander": { 521 | "version": "4.1.1", 522 | "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", 523 | "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", 524 | "dev": true, 525 | "engines": { 526 | "node": ">= 6" 527 | } 528 | }, 529 | "node_modules/cross-spawn": { 530 | "version": "7.0.3", 531 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", 532 | "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", 533 | "dev": true, 534 | "dependencies": { 535 | "path-key": "^3.1.0", 536 | "shebang-command": "^2.0.0", 537 | "which": "^2.0.1" 538 | }, 539 | "engines": { 540 | "node": ">= 8" 541 | } 542 | }, 543 | "node_modules/cssesc": { 544 | "version": "3.0.0", 545 | "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", 546 | "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", 547 | "dev": true, 548 | "bin": { 549 | "cssesc": "bin/cssesc" 550 | }, 551 | "engines": { 552 | "node": ">=4" 553 | } 554 | }, 555 | "node_modules/csstype": { 556 | "version": "3.1.3", 557 | "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", 558 | "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", 559 | "dev": true 560 | }, 561 | "node_modules/didyoumean": { 562 | "version": "1.2.2", 563 | "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", 564 | "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==", 565 | "dev": true 566 | }, 567 | "node_modules/dlv": { 568 | "version": "1.1.3", 569 | "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", 570 | "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", 571 | "dev": true 572 | }, 573 | "node_modules/eastasianwidth": { 574 | "version": "0.2.0", 575 | "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", 576 | "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", 577 | "dev": true 578 | }, 579 | "node_modules/emoji-regex": { 580 | "version": "9.2.2", 581 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", 582 | "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", 583 | "dev": true 584 | }, 585 | "node_modules/fast-glob": { 586 | "version": "3.3.2", 587 | "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", 588 | "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", 589 | "dev": true, 590 | "dependencies": { 591 | "@nodelib/fs.stat": "^2.0.2", 592 | "@nodelib/fs.walk": "^1.2.3", 593 | "glob-parent": "^5.1.2", 594 | "merge2": "^1.3.0", 595 | "micromatch": "^4.0.4" 596 | }, 597 | "engines": { 598 | "node": ">=8.6.0" 599 | } 600 | }, 601 | "node_modules/fast-glob/node_modules/glob-parent": { 602 | "version": "5.1.2", 603 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 604 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 605 | "dev": true, 606 | "dependencies": { 607 | "is-glob": "^4.0.1" 608 | }, 609 | "engines": { 610 | "node": ">= 6" 611 | } 612 | }, 613 | "node_modules/fastq": { 614 | "version": "1.17.1", 615 | "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", 616 | "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", 617 | "dev": true, 618 | "dependencies": { 619 | "reusify": "^1.0.4" 620 | } 621 | }, 622 | "node_modules/fill-range": { 623 | "version": "7.0.1", 624 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 625 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 626 | "dev": true, 627 | "dependencies": { 628 | "to-regex-range": "^5.0.1" 629 | }, 630 | "engines": { 631 | "node": ">=8" 632 | } 633 | }, 634 | "node_modules/foreground-child": { 635 | "version": "3.1.1", 636 | "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", 637 | "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", 638 | "dev": true, 639 | "dependencies": { 640 | "cross-spawn": "^7.0.0", 641 | "signal-exit": "^4.0.1" 642 | }, 643 | "engines": { 644 | "node": ">=14" 645 | }, 646 | "funding": { 647 | "url": "https://github.com/sponsors/isaacs" 648 | } 649 | }, 650 | "node_modules/fsevents": { 651 | "version": "2.3.3", 652 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", 653 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", 654 | "dev": true, 655 | "hasInstallScript": true, 656 | "optional": true, 657 | "os": [ 658 | "darwin" 659 | ], 660 | "engines": { 661 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 662 | } 663 | }, 664 | "node_modules/function-bind": { 665 | "version": "1.1.2", 666 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", 667 | "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", 668 | "dev": true, 669 | "funding": { 670 | "url": "https://github.com/sponsors/ljharb" 671 | } 672 | }, 673 | "node_modules/glob": { 674 | "version": "10.3.12", 675 | "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.12.tgz", 676 | "integrity": "sha512-TCNv8vJ+xz4QiqTpfOJA7HvYv+tNIRHKfUWw/q+v2jdgN4ebz+KY9tGx5J4rHP0o84mNP+ApH66HRX8us3Khqg==", 677 | "dev": true, 678 | "dependencies": { 679 | "foreground-child": "^3.1.0", 680 | "jackspeak": "^2.3.6", 681 | "minimatch": "^9.0.1", 682 | "minipass": "^7.0.4", 683 | "path-scurry": "^1.10.2" 684 | }, 685 | "bin": { 686 | "glob": "dist/esm/bin.mjs" 687 | }, 688 | "engines": { 689 | "node": ">=16 || 14 >=14.17" 690 | }, 691 | "funding": { 692 | "url": "https://github.com/sponsors/isaacs" 693 | } 694 | }, 695 | "node_modules/glob-parent": { 696 | "version": "6.0.2", 697 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", 698 | "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", 699 | "dev": true, 700 | "dependencies": { 701 | "is-glob": "^4.0.3" 702 | }, 703 | "engines": { 704 | "node": ">=10.13.0" 705 | } 706 | }, 707 | "node_modules/graceful-fs": { 708 | "version": "4.2.11", 709 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", 710 | "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" 711 | }, 712 | "node_modules/hasown": { 713 | "version": "2.0.2", 714 | "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", 715 | "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", 716 | "dev": true, 717 | "dependencies": { 718 | "function-bind": "^1.1.2" 719 | }, 720 | "engines": { 721 | "node": ">= 0.4" 722 | } 723 | }, 724 | "node_modules/is-binary-path": { 725 | "version": "2.1.0", 726 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 727 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 728 | "dev": true, 729 | "dependencies": { 730 | "binary-extensions": "^2.0.0" 731 | }, 732 | "engines": { 733 | "node": ">=8" 734 | } 735 | }, 736 | "node_modules/is-core-module": { 737 | "version": "2.13.1", 738 | "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", 739 | "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", 740 | "dev": true, 741 | "dependencies": { 742 | "hasown": "^2.0.0" 743 | }, 744 | "funding": { 745 | "url": "https://github.com/sponsors/ljharb" 746 | } 747 | }, 748 | "node_modules/is-extglob": { 749 | "version": "2.1.1", 750 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 751 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 752 | "dev": true, 753 | "engines": { 754 | "node": ">=0.10.0" 755 | } 756 | }, 757 | "node_modules/is-fullwidth-code-point": { 758 | "version": "3.0.0", 759 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 760 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 761 | "dev": true, 762 | "engines": { 763 | "node": ">=8" 764 | } 765 | }, 766 | "node_modules/is-glob": { 767 | "version": "4.0.3", 768 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 769 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 770 | "dev": true, 771 | "dependencies": { 772 | "is-extglob": "^2.1.1" 773 | }, 774 | "engines": { 775 | "node": ">=0.10.0" 776 | } 777 | }, 778 | "node_modules/is-number": { 779 | "version": "7.0.0", 780 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 781 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 782 | "dev": true, 783 | "engines": { 784 | "node": ">=0.12.0" 785 | } 786 | }, 787 | "node_modules/isexe": { 788 | "version": "2.0.0", 789 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 790 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 791 | "dev": true 792 | }, 793 | "node_modules/jackspeak": { 794 | "version": "2.3.6", 795 | "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", 796 | "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", 797 | "dev": true, 798 | "dependencies": { 799 | "@isaacs/cliui": "^8.0.2" 800 | }, 801 | "engines": { 802 | "node": ">=14" 803 | }, 804 | "funding": { 805 | "url": "https://github.com/sponsors/isaacs" 806 | }, 807 | "optionalDependencies": { 808 | "@pkgjs/parseargs": "^0.11.0" 809 | } 810 | }, 811 | "node_modules/jiti": { 812 | "version": "1.21.0", 813 | "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.0.tgz", 814 | "integrity": "sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==", 815 | "dev": true, 816 | "bin": { 817 | "jiti": "bin/jiti.js" 818 | } 819 | }, 820 | "node_modules/js-tokens": { 821 | "version": "4.0.0", 822 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", 823 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" 824 | }, 825 | "node_modules/lilconfig": { 826 | "version": "2.1.0", 827 | "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", 828 | "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==", 829 | "dev": true, 830 | "engines": { 831 | "node": ">=10" 832 | } 833 | }, 834 | "node_modules/lines-and-columns": { 835 | "version": "1.2.4", 836 | "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", 837 | "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", 838 | "dev": true 839 | }, 840 | "node_modules/loose-envify": { 841 | "version": "1.4.0", 842 | "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", 843 | "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", 844 | "dependencies": { 845 | "js-tokens": "^3.0.0 || ^4.0.0" 846 | }, 847 | "bin": { 848 | "loose-envify": "cli.js" 849 | } 850 | }, 851 | "node_modules/lru-cache": { 852 | "version": "10.2.0", 853 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.0.tgz", 854 | "integrity": "sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==", 855 | "dev": true, 856 | "engines": { 857 | "node": "14 || >=16.14" 858 | } 859 | }, 860 | "node_modules/merge2": { 861 | "version": "1.4.1", 862 | "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", 863 | "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", 864 | "dev": true, 865 | "engines": { 866 | "node": ">= 8" 867 | } 868 | }, 869 | "node_modules/micromatch": { 870 | "version": "4.0.5", 871 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", 872 | "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", 873 | "dev": true, 874 | "dependencies": { 875 | "braces": "^3.0.2", 876 | "picomatch": "^2.3.1" 877 | }, 878 | "engines": { 879 | "node": ">=8.6" 880 | } 881 | }, 882 | "node_modules/minimatch": { 883 | "version": "9.0.4", 884 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", 885 | "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", 886 | "dev": true, 887 | "dependencies": { 888 | "brace-expansion": "^2.0.1" 889 | }, 890 | "engines": { 891 | "node": ">=16 || 14 >=14.17" 892 | }, 893 | "funding": { 894 | "url": "https://github.com/sponsors/isaacs" 895 | } 896 | }, 897 | "node_modules/minipass": { 898 | "version": "7.0.4", 899 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz", 900 | "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==", 901 | "dev": true, 902 | "engines": { 903 | "node": ">=16 || 14 >=14.17" 904 | } 905 | }, 906 | "node_modules/mz": { 907 | "version": "2.7.0", 908 | "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", 909 | "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", 910 | "dev": true, 911 | "dependencies": { 912 | "any-promise": "^1.0.0", 913 | "object-assign": "^4.0.1", 914 | "thenify-all": "^1.0.0" 915 | } 916 | }, 917 | "node_modules/nanoid": { 918 | "version": "3.3.7", 919 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", 920 | "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", 921 | "funding": [ 922 | { 923 | "type": "github", 924 | "url": "https://github.com/sponsors/ai" 925 | } 926 | ], 927 | "bin": { 928 | "nanoid": "bin/nanoid.cjs" 929 | }, 930 | "engines": { 931 | "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" 932 | } 933 | }, 934 | "node_modules/next": { 935 | "version": "14.2.3", 936 | "resolved": "https://registry.npmjs.org/next/-/next-14.2.3.tgz", 937 | "integrity": "sha512-dowFkFTR8v79NPJO4QsBUtxv0g9BrS/phluVpMAt2ku7H+cbcBJlopXjkWlwxrk/xGqMemr7JkGPGemPrLLX7A==", 938 | "dependencies": { 939 | "@next/env": "14.2.3", 940 | "@swc/helpers": "0.5.5", 941 | "busboy": "1.6.0", 942 | "caniuse-lite": "^1.0.30001579", 943 | "graceful-fs": "^4.2.11", 944 | "postcss": "8.4.31", 945 | "styled-jsx": "5.1.1" 946 | }, 947 | "bin": { 948 | "next": "dist/bin/next" 949 | }, 950 | "engines": { 951 | "node": ">=18.17.0" 952 | }, 953 | "optionalDependencies": { 954 | "@next/swc-darwin-arm64": "14.2.3", 955 | "@next/swc-darwin-x64": "14.2.3", 956 | "@next/swc-linux-arm64-gnu": "14.2.3", 957 | "@next/swc-linux-arm64-musl": "14.2.3", 958 | "@next/swc-linux-x64-gnu": "14.2.3", 959 | "@next/swc-linux-x64-musl": "14.2.3", 960 | "@next/swc-win32-arm64-msvc": "14.2.3", 961 | "@next/swc-win32-ia32-msvc": "14.2.3", 962 | "@next/swc-win32-x64-msvc": "14.2.3" 963 | }, 964 | "peerDependencies": { 965 | "@opentelemetry/api": "^1.1.0", 966 | "@playwright/test": "^1.41.2", 967 | "react": "^18.2.0", 968 | "react-dom": "^18.2.0", 969 | "sass": "^1.3.0" 970 | }, 971 | "peerDependenciesMeta": { 972 | "@opentelemetry/api": { 973 | "optional": true 974 | }, 975 | "@playwright/test": { 976 | "optional": true 977 | }, 978 | "sass": { 979 | "optional": true 980 | } 981 | } 982 | }, 983 | "node_modules/next/node_modules/postcss": { 984 | "version": "8.4.31", 985 | "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", 986 | "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", 987 | "funding": [ 988 | { 989 | "type": "opencollective", 990 | "url": "https://opencollective.com/postcss/" 991 | }, 992 | { 993 | "type": "tidelift", 994 | "url": "https://tidelift.com/funding/github/npm/postcss" 995 | }, 996 | { 997 | "type": "github", 998 | "url": "https://github.com/sponsors/ai" 999 | } 1000 | ], 1001 | "dependencies": { 1002 | "nanoid": "^3.3.6", 1003 | "picocolors": "^1.0.0", 1004 | "source-map-js": "^1.0.2" 1005 | }, 1006 | "engines": { 1007 | "node": "^10 || ^12 || >=14" 1008 | } 1009 | }, 1010 | "node_modules/normalize-path": { 1011 | "version": "3.0.0", 1012 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 1013 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 1014 | "dev": true, 1015 | "engines": { 1016 | "node": ">=0.10.0" 1017 | } 1018 | }, 1019 | "node_modules/object-assign": { 1020 | "version": "4.1.1", 1021 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 1022 | "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", 1023 | "dev": true, 1024 | "engines": { 1025 | "node": ">=0.10.0" 1026 | } 1027 | }, 1028 | "node_modules/object-hash": { 1029 | "version": "3.0.0", 1030 | "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", 1031 | "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", 1032 | "dev": true, 1033 | "engines": { 1034 | "node": ">= 6" 1035 | } 1036 | }, 1037 | "node_modules/path-key": { 1038 | "version": "3.1.1", 1039 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 1040 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 1041 | "dev": true, 1042 | "engines": { 1043 | "node": ">=8" 1044 | } 1045 | }, 1046 | "node_modules/path-parse": { 1047 | "version": "1.0.7", 1048 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", 1049 | "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", 1050 | "dev": true 1051 | }, 1052 | "node_modules/path-scurry": { 1053 | "version": "1.10.2", 1054 | "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.10.2.tgz", 1055 | "integrity": "sha512-7xTavNy5RQXnsjANvVvMkEjvloOinkAjv/Z6Ildz9v2RinZ4SBKTWFOVRbaF8p0vpHnyjV/UwNDdKuUv6M5qcA==", 1056 | "dev": true, 1057 | "dependencies": { 1058 | "lru-cache": "^10.2.0", 1059 | "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" 1060 | }, 1061 | "engines": { 1062 | "node": ">=16 || 14 >=14.17" 1063 | }, 1064 | "funding": { 1065 | "url": "https://github.com/sponsors/isaacs" 1066 | } 1067 | }, 1068 | "node_modules/picocolors": { 1069 | "version": "1.0.0", 1070 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", 1071 | "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" 1072 | }, 1073 | "node_modules/picomatch": { 1074 | "version": "2.3.1", 1075 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 1076 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 1077 | "dev": true, 1078 | "engines": { 1079 | "node": ">=8.6" 1080 | }, 1081 | "funding": { 1082 | "url": "https://github.com/sponsors/jonschlinkert" 1083 | } 1084 | }, 1085 | "node_modules/pify": { 1086 | "version": "2.3.0", 1087 | "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", 1088 | "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", 1089 | "dev": true, 1090 | "engines": { 1091 | "node": ">=0.10.0" 1092 | } 1093 | }, 1094 | "node_modules/pirates": { 1095 | "version": "4.0.6", 1096 | "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", 1097 | "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", 1098 | "dev": true, 1099 | "engines": { 1100 | "node": ">= 6" 1101 | } 1102 | }, 1103 | "node_modules/postcss": { 1104 | "version": "8.4.38", 1105 | "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz", 1106 | "integrity": "sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==", 1107 | "dev": true, 1108 | "funding": [ 1109 | { 1110 | "type": "opencollective", 1111 | "url": "https://opencollective.com/postcss/" 1112 | }, 1113 | { 1114 | "type": "tidelift", 1115 | "url": "https://tidelift.com/funding/github/npm/postcss" 1116 | }, 1117 | { 1118 | "type": "github", 1119 | "url": "https://github.com/sponsors/ai" 1120 | } 1121 | ], 1122 | "dependencies": { 1123 | "nanoid": "^3.3.7", 1124 | "picocolors": "^1.0.0", 1125 | "source-map-js": "^1.2.0" 1126 | }, 1127 | "engines": { 1128 | "node": "^10 || ^12 || >=14" 1129 | } 1130 | }, 1131 | "node_modules/postcss-import": { 1132 | "version": "15.1.0", 1133 | "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz", 1134 | "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", 1135 | "dev": true, 1136 | "dependencies": { 1137 | "postcss-value-parser": "^4.0.0", 1138 | "read-cache": "^1.0.0", 1139 | "resolve": "^1.1.7" 1140 | }, 1141 | "engines": { 1142 | "node": ">=14.0.0" 1143 | }, 1144 | "peerDependencies": { 1145 | "postcss": "^8.0.0" 1146 | } 1147 | }, 1148 | "node_modules/postcss-js": { 1149 | "version": "4.0.1", 1150 | "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.1.tgz", 1151 | "integrity": "sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==", 1152 | "dev": true, 1153 | "dependencies": { 1154 | "camelcase-css": "^2.0.1" 1155 | }, 1156 | "engines": { 1157 | "node": "^12 || ^14 || >= 16" 1158 | }, 1159 | "funding": { 1160 | "type": "opencollective", 1161 | "url": "https://opencollective.com/postcss/" 1162 | }, 1163 | "peerDependencies": { 1164 | "postcss": "^8.4.21" 1165 | } 1166 | }, 1167 | "node_modules/postcss-load-config": { 1168 | "version": "4.0.2", 1169 | "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.2.tgz", 1170 | "integrity": "sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==", 1171 | "dev": true, 1172 | "funding": [ 1173 | { 1174 | "type": "opencollective", 1175 | "url": "https://opencollective.com/postcss/" 1176 | }, 1177 | { 1178 | "type": "github", 1179 | "url": "https://github.com/sponsors/ai" 1180 | } 1181 | ], 1182 | "dependencies": { 1183 | "lilconfig": "^3.0.0", 1184 | "yaml": "^2.3.4" 1185 | }, 1186 | "engines": { 1187 | "node": ">= 14" 1188 | }, 1189 | "peerDependencies": { 1190 | "postcss": ">=8.0.9", 1191 | "ts-node": ">=9.0.0" 1192 | }, 1193 | "peerDependenciesMeta": { 1194 | "postcss": { 1195 | "optional": true 1196 | }, 1197 | "ts-node": { 1198 | "optional": true 1199 | } 1200 | } 1201 | }, 1202 | "node_modules/postcss-load-config/node_modules/lilconfig": { 1203 | "version": "3.1.1", 1204 | "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.1.tgz", 1205 | "integrity": "sha512-O18pf7nyvHTckunPWCV1XUNXU1piu01y2b7ATJ0ppkUkk8ocqVWBrYjJBCwHDjD/ZWcfyrA0P4gKhzWGi5EINQ==", 1206 | "dev": true, 1207 | "engines": { 1208 | "node": ">=14" 1209 | }, 1210 | "funding": { 1211 | "url": "https://github.com/sponsors/antonk52" 1212 | } 1213 | }, 1214 | "node_modules/postcss-nested": { 1215 | "version": "6.0.1", 1216 | "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.1.tgz", 1217 | "integrity": "sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==", 1218 | "dev": true, 1219 | "dependencies": { 1220 | "postcss-selector-parser": "^6.0.11" 1221 | }, 1222 | "engines": { 1223 | "node": ">=12.0" 1224 | }, 1225 | "funding": { 1226 | "type": "opencollective", 1227 | "url": "https://opencollective.com/postcss/" 1228 | }, 1229 | "peerDependencies": { 1230 | "postcss": "^8.2.14" 1231 | } 1232 | }, 1233 | "node_modules/postcss-selector-parser": { 1234 | "version": "6.0.16", 1235 | "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.16.tgz", 1236 | "integrity": "sha512-A0RVJrX+IUkVZbW3ClroRWurercFhieevHB38sr2+l9eUClMqome3LmEmnhlNy+5Mr2EYN6B2Kaw9wYdd+VHiw==", 1237 | "dev": true, 1238 | "dependencies": { 1239 | "cssesc": "^3.0.0", 1240 | "util-deprecate": "^1.0.2" 1241 | }, 1242 | "engines": { 1243 | "node": ">=4" 1244 | } 1245 | }, 1246 | "node_modules/postcss-value-parser": { 1247 | "version": "4.2.0", 1248 | "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", 1249 | "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", 1250 | "dev": true 1251 | }, 1252 | "node_modules/queue-microtask": { 1253 | "version": "1.2.3", 1254 | "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", 1255 | "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", 1256 | "dev": true, 1257 | "funding": [ 1258 | { 1259 | "type": "github", 1260 | "url": "https://github.com/sponsors/feross" 1261 | }, 1262 | { 1263 | "type": "patreon", 1264 | "url": "https://www.patreon.com/feross" 1265 | }, 1266 | { 1267 | "type": "consulting", 1268 | "url": "https://feross.org/support" 1269 | } 1270 | ] 1271 | }, 1272 | "node_modules/react": { 1273 | "version": "18.2.0", 1274 | "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", 1275 | "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", 1276 | "dependencies": { 1277 | "loose-envify": "^1.1.0" 1278 | }, 1279 | "engines": { 1280 | "node": ">=0.10.0" 1281 | } 1282 | }, 1283 | "node_modules/react-dom": { 1284 | "version": "18.2.0", 1285 | "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz", 1286 | "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==", 1287 | "dependencies": { 1288 | "loose-envify": "^1.1.0", 1289 | "scheduler": "^0.23.0" 1290 | }, 1291 | "peerDependencies": { 1292 | "react": "^18.2.0" 1293 | } 1294 | }, 1295 | "node_modules/read-cache": { 1296 | "version": "1.0.0", 1297 | "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", 1298 | "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", 1299 | "dev": true, 1300 | "dependencies": { 1301 | "pify": "^2.3.0" 1302 | } 1303 | }, 1304 | "node_modules/readdirp": { 1305 | "version": "3.6.0", 1306 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 1307 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 1308 | "dev": true, 1309 | "dependencies": { 1310 | "picomatch": "^2.2.1" 1311 | }, 1312 | "engines": { 1313 | "node": ">=8.10.0" 1314 | } 1315 | }, 1316 | "node_modules/resolve": { 1317 | "version": "1.22.8", 1318 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", 1319 | "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", 1320 | "dev": true, 1321 | "dependencies": { 1322 | "is-core-module": "^2.13.0", 1323 | "path-parse": "^1.0.7", 1324 | "supports-preserve-symlinks-flag": "^1.0.0" 1325 | }, 1326 | "bin": { 1327 | "resolve": "bin/resolve" 1328 | }, 1329 | "funding": { 1330 | "url": "https://github.com/sponsors/ljharb" 1331 | } 1332 | }, 1333 | "node_modules/reusify": { 1334 | "version": "1.0.4", 1335 | "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", 1336 | "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", 1337 | "dev": true, 1338 | "engines": { 1339 | "iojs": ">=1.0.0", 1340 | "node": ">=0.10.0" 1341 | } 1342 | }, 1343 | "node_modules/run-parallel": { 1344 | "version": "1.2.0", 1345 | "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", 1346 | "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", 1347 | "dev": true, 1348 | "funding": [ 1349 | { 1350 | "type": "github", 1351 | "url": "https://github.com/sponsors/feross" 1352 | }, 1353 | { 1354 | "type": "patreon", 1355 | "url": "https://www.patreon.com/feross" 1356 | }, 1357 | { 1358 | "type": "consulting", 1359 | "url": "https://feross.org/support" 1360 | } 1361 | ], 1362 | "dependencies": { 1363 | "queue-microtask": "^1.2.2" 1364 | } 1365 | }, 1366 | "node_modules/scheduler": { 1367 | "version": "0.23.0", 1368 | "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz", 1369 | "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==", 1370 | "dependencies": { 1371 | "loose-envify": "^1.1.0" 1372 | } 1373 | }, 1374 | "node_modules/shebang-command": { 1375 | "version": "2.0.0", 1376 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 1377 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 1378 | "dev": true, 1379 | "dependencies": { 1380 | "shebang-regex": "^3.0.0" 1381 | }, 1382 | "engines": { 1383 | "node": ">=8" 1384 | } 1385 | }, 1386 | "node_modules/shebang-regex": { 1387 | "version": "3.0.0", 1388 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 1389 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 1390 | "dev": true, 1391 | "engines": { 1392 | "node": ">=8" 1393 | } 1394 | }, 1395 | "node_modules/signal-exit": { 1396 | "version": "4.1.0", 1397 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", 1398 | "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", 1399 | "dev": true, 1400 | "engines": { 1401 | "node": ">=14" 1402 | }, 1403 | "funding": { 1404 | "url": "https://github.com/sponsors/isaacs" 1405 | } 1406 | }, 1407 | "node_modules/source-map-js": { 1408 | "version": "1.2.0", 1409 | "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", 1410 | "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==", 1411 | "engines": { 1412 | "node": ">=0.10.0" 1413 | } 1414 | }, 1415 | "node_modules/streamsearch": { 1416 | "version": "1.1.0", 1417 | "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", 1418 | "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", 1419 | "engines": { 1420 | "node": ">=10.0.0" 1421 | } 1422 | }, 1423 | "node_modules/string-width": { 1424 | "version": "5.1.2", 1425 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", 1426 | "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", 1427 | "dev": true, 1428 | "dependencies": { 1429 | "eastasianwidth": "^0.2.0", 1430 | "emoji-regex": "^9.2.2", 1431 | "strip-ansi": "^7.0.1" 1432 | }, 1433 | "engines": { 1434 | "node": ">=12" 1435 | }, 1436 | "funding": { 1437 | "url": "https://github.com/sponsors/sindresorhus" 1438 | } 1439 | }, 1440 | "node_modules/string-width-cjs": { 1441 | "name": "string-width", 1442 | "version": "4.2.3", 1443 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 1444 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 1445 | "dev": true, 1446 | "dependencies": { 1447 | "emoji-regex": "^8.0.0", 1448 | "is-fullwidth-code-point": "^3.0.0", 1449 | "strip-ansi": "^6.0.1" 1450 | }, 1451 | "engines": { 1452 | "node": ">=8" 1453 | } 1454 | }, 1455 | "node_modules/string-width-cjs/node_modules/ansi-regex": { 1456 | "version": "5.0.1", 1457 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 1458 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 1459 | "dev": true, 1460 | "engines": { 1461 | "node": ">=8" 1462 | } 1463 | }, 1464 | "node_modules/string-width-cjs/node_modules/emoji-regex": { 1465 | "version": "8.0.0", 1466 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 1467 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 1468 | "dev": true 1469 | }, 1470 | "node_modules/string-width-cjs/node_modules/strip-ansi": { 1471 | "version": "6.0.1", 1472 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 1473 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 1474 | "dev": true, 1475 | "dependencies": { 1476 | "ansi-regex": "^5.0.1" 1477 | }, 1478 | "engines": { 1479 | "node": ">=8" 1480 | } 1481 | }, 1482 | "node_modules/strip-ansi": { 1483 | "version": "7.1.0", 1484 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", 1485 | "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", 1486 | "dev": true, 1487 | "dependencies": { 1488 | "ansi-regex": "^6.0.1" 1489 | }, 1490 | "engines": { 1491 | "node": ">=12" 1492 | }, 1493 | "funding": { 1494 | "url": "https://github.com/chalk/strip-ansi?sponsor=1" 1495 | } 1496 | }, 1497 | "node_modules/strip-ansi-cjs": { 1498 | "name": "strip-ansi", 1499 | "version": "6.0.1", 1500 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 1501 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 1502 | "dev": true, 1503 | "dependencies": { 1504 | "ansi-regex": "^5.0.1" 1505 | }, 1506 | "engines": { 1507 | "node": ">=8" 1508 | } 1509 | }, 1510 | "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { 1511 | "version": "5.0.1", 1512 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 1513 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 1514 | "dev": true, 1515 | "engines": { 1516 | "node": ">=8" 1517 | } 1518 | }, 1519 | "node_modules/styled-jsx": { 1520 | "version": "5.1.1", 1521 | "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.1.tgz", 1522 | "integrity": "sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==", 1523 | "dependencies": { 1524 | "client-only": "0.0.1" 1525 | }, 1526 | "engines": { 1527 | "node": ">= 12.0.0" 1528 | }, 1529 | "peerDependencies": { 1530 | "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0" 1531 | }, 1532 | "peerDependenciesMeta": { 1533 | "@babel/core": { 1534 | "optional": true 1535 | }, 1536 | "babel-plugin-macros": { 1537 | "optional": true 1538 | } 1539 | } 1540 | }, 1541 | "node_modules/sucrase": { 1542 | "version": "3.35.0", 1543 | "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.0.tgz", 1544 | "integrity": "sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==", 1545 | "dev": true, 1546 | "dependencies": { 1547 | "@jridgewell/gen-mapping": "^0.3.2", 1548 | "commander": "^4.0.0", 1549 | "glob": "^10.3.10", 1550 | "lines-and-columns": "^1.1.6", 1551 | "mz": "^2.7.0", 1552 | "pirates": "^4.0.1", 1553 | "ts-interface-checker": "^0.1.9" 1554 | }, 1555 | "bin": { 1556 | "sucrase": "bin/sucrase", 1557 | "sucrase-node": "bin/sucrase-node" 1558 | }, 1559 | "engines": { 1560 | "node": ">=16 || 14 >=14.17" 1561 | } 1562 | }, 1563 | "node_modules/supports-preserve-symlinks-flag": { 1564 | "version": "1.0.0", 1565 | "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", 1566 | "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", 1567 | "dev": true, 1568 | "engines": { 1569 | "node": ">= 0.4" 1570 | }, 1571 | "funding": { 1572 | "url": "https://github.com/sponsors/ljharb" 1573 | } 1574 | }, 1575 | "node_modules/tailwindcss": { 1576 | "version": "3.4.3", 1577 | "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.3.tgz", 1578 | "integrity": "sha512-U7sxQk/n397Bmx4JHbJx/iSOOv5G+II3f1kpLpY2QeUv5DcPdcTsYLlusZfq1NthHS1c1cZoyFmmkex1rzke0A==", 1579 | "dev": true, 1580 | "dependencies": { 1581 | "@alloc/quick-lru": "^5.2.0", 1582 | "arg": "^5.0.2", 1583 | "chokidar": "^3.5.3", 1584 | "didyoumean": "^1.2.2", 1585 | "dlv": "^1.1.3", 1586 | "fast-glob": "^3.3.0", 1587 | "glob-parent": "^6.0.2", 1588 | "is-glob": "^4.0.3", 1589 | "jiti": "^1.21.0", 1590 | "lilconfig": "^2.1.0", 1591 | "micromatch": "^4.0.5", 1592 | "normalize-path": "^3.0.0", 1593 | "object-hash": "^3.0.0", 1594 | "picocolors": "^1.0.0", 1595 | "postcss": "^8.4.23", 1596 | "postcss-import": "^15.1.0", 1597 | "postcss-js": "^4.0.1", 1598 | "postcss-load-config": "^4.0.1", 1599 | "postcss-nested": "^6.0.1", 1600 | "postcss-selector-parser": "^6.0.11", 1601 | "resolve": "^1.22.2", 1602 | "sucrase": "^3.32.0" 1603 | }, 1604 | "bin": { 1605 | "tailwind": "lib/cli.js", 1606 | "tailwindcss": "lib/cli.js" 1607 | }, 1608 | "engines": { 1609 | "node": ">=14.0.0" 1610 | } 1611 | }, 1612 | "node_modules/thenify": { 1613 | "version": "3.3.1", 1614 | "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", 1615 | "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", 1616 | "dev": true, 1617 | "dependencies": { 1618 | "any-promise": "^1.0.0" 1619 | } 1620 | }, 1621 | "node_modules/thenify-all": { 1622 | "version": "1.6.0", 1623 | "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", 1624 | "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", 1625 | "dev": true, 1626 | "dependencies": { 1627 | "thenify": ">= 3.1.0 < 4" 1628 | }, 1629 | "engines": { 1630 | "node": ">=0.8" 1631 | } 1632 | }, 1633 | "node_modules/to-regex-range": { 1634 | "version": "5.0.1", 1635 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 1636 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 1637 | "dev": true, 1638 | "dependencies": { 1639 | "is-number": "^7.0.0" 1640 | }, 1641 | "engines": { 1642 | "node": ">=8.0" 1643 | } 1644 | }, 1645 | "node_modules/ts-interface-checker": { 1646 | "version": "0.1.13", 1647 | "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", 1648 | "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", 1649 | "dev": true 1650 | }, 1651 | "node_modules/tslib": { 1652 | "version": "2.6.2", 1653 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", 1654 | "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" 1655 | }, 1656 | "node_modules/typescript": { 1657 | "version": "5.4.5", 1658 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", 1659 | "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", 1660 | "dev": true, 1661 | "bin": { 1662 | "tsc": "bin/tsc", 1663 | "tsserver": "bin/tsserver" 1664 | }, 1665 | "engines": { 1666 | "node": ">=14.17" 1667 | } 1668 | }, 1669 | "node_modules/undici-types": { 1670 | "version": "5.26.5", 1671 | "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", 1672 | "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", 1673 | "dev": true 1674 | }, 1675 | "node_modules/util-deprecate": { 1676 | "version": "1.0.2", 1677 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 1678 | "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", 1679 | "dev": true 1680 | }, 1681 | "node_modules/which": { 1682 | "version": "2.0.2", 1683 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 1684 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 1685 | "dev": true, 1686 | "dependencies": { 1687 | "isexe": "^2.0.0" 1688 | }, 1689 | "bin": { 1690 | "node-which": "bin/node-which" 1691 | }, 1692 | "engines": { 1693 | "node": ">= 8" 1694 | } 1695 | }, 1696 | "node_modules/wrap-ansi": { 1697 | "version": "8.1.0", 1698 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", 1699 | "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", 1700 | "dev": true, 1701 | "dependencies": { 1702 | "ansi-styles": "^6.1.0", 1703 | "string-width": "^5.0.1", 1704 | "strip-ansi": "^7.0.1" 1705 | }, 1706 | "engines": { 1707 | "node": ">=12" 1708 | }, 1709 | "funding": { 1710 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 1711 | } 1712 | }, 1713 | "node_modules/wrap-ansi-cjs": { 1714 | "name": "wrap-ansi", 1715 | "version": "7.0.0", 1716 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", 1717 | "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", 1718 | "dev": true, 1719 | "dependencies": { 1720 | "ansi-styles": "^4.0.0", 1721 | "string-width": "^4.1.0", 1722 | "strip-ansi": "^6.0.0" 1723 | }, 1724 | "engines": { 1725 | "node": ">=10" 1726 | }, 1727 | "funding": { 1728 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 1729 | } 1730 | }, 1731 | "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { 1732 | "version": "5.0.1", 1733 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 1734 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 1735 | "dev": true, 1736 | "engines": { 1737 | "node": ">=8" 1738 | } 1739 | }, 1740 | "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { 1741 | "version": "4.3.0", 1742 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 1743 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 1744 | "dev": true, 1745 | "dependencies": { 1746 | "color-convert": "^2.0.1" 1747 | }, 1748 | "engines": { 1749 | "node": ">=8" 1750 | }, 1751 | "funding": { 1752 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 1753 | } 1754 | }, 1755 | "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { 1756 | "version": "8.0.0", 1757 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 1758 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 1759 | "dev": true 1760 | }, 1761 | "node_modules/wrap-ansi-cjs/node_modules/string-width": { 1762 | "version": "4.2.3", 1763 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 1764 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 1765 | "dev": true, 1766 | "dependencies": { 1767 | "emoji-regex": "^8.0.0", 1768 | "is-fullwidth-code-point": "^3.0.0", 1769 | "strip-ansi": "^6.0.1" 1770 | }, 1771 | "engines": { 1772 | "node": ">=8" 1773 | } 1774 | }, 1775 | "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { 1776 | "version": "6.0.1", 1777 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 1778 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 1779 | "dev": true, 1780 | "dependencies": { 1781 | "ansi-regex": "^5.0.1" 1782 | }, 1783 | "engines": { 1784 | "node": ">=8" 1785 | } 1786 | }, 1787 | "node_modules/yaml": { 1788 | "version": "2.4.1", 1789 | "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.1.tgz", 1790 | "integrity": "sha512-pIXzoImaqmfOrL7teGUBt/T7ZDnyeGBWyXQBvOVhLkWLN37GXv8NMLK406UY6dS51JfcQHsmcW5cJ441bHg6Lg==", 1791 | "dev": true, 1792 | "bin": { 1793 | "yaml": "bin.mjs" 1794 | }, 1795 | "engines": { 1796 | "node": ">= 14" 1797 | } 1798 | } 1799 | } 1800 | } 1801 | -------------------------------------------------------------------------------- /frontend/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "frontend", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "dev": "next dev", 7 | "build": "next build", 8 | "start": "next start", 9 | "lint": "next lint", 10 | "gen": "encore gen client {{ENCORE_APP_ID}} --output=./app/lib/client.ts --env=local" 11 | }, 12 | "dependencies": { 13 | "react": "^18", 14 | "react-dom": "^18", 15 | "next": "^14.2.3" 16 | }, 17 | "devDependencies": { 18 | "typescript": "^5", 19 | "@types/node": "^20", 20 | "@types/react": "^18", 21 | "@types/react-dom": "^18", 22 | "postcss": "^8", 23 | "tailwindcss": "^3.4.1" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /frontend/postcss.config.mjs: -------------------------------------------------------------------------------- 1 | /** @type {import('postcss-load-config').Config} */ 2 | const config = { 3 | plugins: { 4 | tailwindcss: {}, 5 | }, 6 | }; 7 | 8 | export default config; 9 | -------------------------------------------------------------------------------- /frontend/public/next.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /frontend/public/vercel.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /frontend/tailwind.config.ts: -------------------------------------------------------------------------------- 1 | import type {Config} from "tailwindcss"; 2 | 3 | const config: Config = { 4 | content: [ 5 | "./pages/**/*.{js,ts,jsx,tsx,mdx}", 6 | "./components/**/*.{js,ts,jsx,tsx,mdx}", 7 | "./app/**/*.{js,ts,jsx,tsx,mdx}", 8 | ], 9 | theme: { 10 | extend: { 11 | colors: { 12 | black: '#111111', 13 | white: '#EEEEE1', 14 | }, 15 | }, 16 | }, 17 | plugins: [], 18 | }; 19 | export default config; 20 | -------------------------------------------------------------------------------- /frontend/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "lib": ["dom", "dom.iterable", "esnext"], 4 | "allowJs": true, 5 | "skipLibCheck": true, 6 | "strict": true, 7 | "noEmit": true, 8 | "esModuleInterop": true, 9 | "module": "esnext", 10 | "moduleResolution": "bundler", 11 | "resolveJsonModule": true, 12 | "isolatedModules": true, 13 | "jsx": "preserve", 14 | "incremental": true, 15 | "plugins": [ 16 | { 17 | "name": "next" 18 | } 19 | ], 20 | "paths": { 21 | "@/*": ["./*"] 22 | } 23 | }, 24 | "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], 25 | "exclude": ["node_modules"] 26 | } 27 | --------------------------------------------------------------------------------