looply-comp-lib 0.1.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +79 -51
- package/dist/components/buttons.d.ts +13 -0
- package/dist/components/calendar.d.ts +1 -0
- package/dist/components/calloutCard.d.ts +16 -0
- package/dist/components/card.d.ts +16 -0
- package/dist/components/chat.d.ts +2 -1
- package/dist/components/dropDown.d.ts +15 -0
- package/dist/components/table.d.ts +11 -0
- package/dist/components/textarea.d.ts +9 -0
- package/dist/components/toggle.d.ts +8 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +11 -4
- package/dist/index.mjs +1 -1
- package/dist/styles.css +1 -0
- package/package.json +26 -6
package/README.md
CHANGED
|
@@ -1,51 +1,79 @@
|
|
|
1
|
-
# looply-comp-lib
|
|
2
|
-
|
|
3
|
-
A simple React component library.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install looply-comp-lib
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
##
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
1
|
+
# looply-comp-lib
|
|
2
|
+
|
|
3
|
+
A simple React component library.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install looply-comp-lib
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Setup
|
|
12
|
+
|
|
13
|
+
### 1. Add the library styles
|
|
14
|
+
|
|
15
|
+
In your root layout file (e.g. `app/layout.tsx`), import the library's CSS:
|
|
16
|
+
|
|
17
|
+
```tsx
|
|
18
|
+
import "looply-comp-lib/styles.css";
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### 2. Add the Tailwind source
|
|
22
|
+
|
|
23
|
+
In your `globals.css` (or wherever you have `@import "tailwindcss"`), add this line so Tailwind generates the utility classes used by the components:
|
|
24
|
+
|
|
25
|
+
```css
|
|
26
|
+
@import "tailwindcss";
|
|
27
|
+
@source "../node_modules/looply-comp-lib/dist";
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
That's it — both lines are required for the components to render correctly.
|
|
31
|
+
|
|
32
|
+
## Usage
|
|
33
|
+
|
|
34
|
+
```tsx
|
|
35
|
+
import { Accordion, Hero, Drawer } from "looply-comp-lib";
|
|
36
|
+
|
|
37
|
+
function App() {
|
|
38
|
+
return (
|
|
39
|
+
<div>
|
|
40
|
+
<Hero
|
|
41
|
+
headerBtn="New"
|
|
42
|
+
header="Welcome"
|
|
43
|
+
subHeader="A simple component library"
|
|
44
|
+
btn1Text="Get Started"
|
|
45
|
+
btn2Text="Learn More"
|
|
46
|
+
/>
|
|
47
|
+
<Accordion items={[{ title: "Question", text: "Answer" }]} />
|
|
48
|
+
<Drawer title="Draw" size={100} colour="#000000" />
|
|
49
|
+
</div>
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Components
|
|
55
|
+
|
|
56
|
+
| Component | Description |
|
|
57
|
+
| ------------- | -------------------------------------- |
|
|
58
|
+
| `Accordion` | Expandable/collapsible content sections |
|
|
59
|
+
| `BarChart` | Simple bar chart visualisation |
|
|
60
|
+
| `CardText` | Card with text content |
|
|
61
|
+
| `Carousel` | Image carousel/slider |
|
|
62
|
+
| `Chat` | Chat interface component |
|
|
63
|
+
| `Drawer` | Slide-out drawer panel |
|
|
64
|
+
| `Hero` | Hero banner section |
|
|
65
|
+
| `ThemeSwitch` | Light/dark theme toggle |
|
|
66
|
+
|
|
67
|
+
## Peer Dependencies
|
|
68
|
+
|
|
69
|
+
These are installed automatically (npm v7+):
|
|
70
|
+
|
|
71
|
+
- `react` >= 18
|
|
72
|
+
- `react-dom` >= 18
|
|
73
|
+
- `next` >= 14
|
|
74
|
+
- `tailwindcss` >= 4
|
|
75
|
+
- `next-themes` >= 0.4
|
|
76
|
+
|
|
77
|
+
## License
|
|
78
|
+
|
|
79
|
+
ISC
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type buttonItems = {
|
|
2
|
+
buttonText: string;
|
|
3
|
+
buttonType?: "neu-flat" | "neu-raised" | "neu-inset";
|
|
4
|
+
buttonX?: number;
|
|
5
|
+
buttonY?: number;
|
|
6
|
+
href?: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
};
|
|
9
|
+
type buttonProps = {
|
|
10
|
+
buttonObj: buttonItems[];
|
|
11
|
+
};
|
|
12
|
+
export default function Buttons({ buttonObj }: buttonProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Calendar(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type calloutContent = {
|
|
2
|
+
header: string;
|
|
3
|
+
subHeader: string;
|
|
4
|
+
buttons?: {
|
|
5
|
+
label: string;
|
|
6
|
+
href?: string;
|
|
7
|
+
}[];
|
|
8
|
+
imageUrl?: string;
|
|
9
|
+
styleType: "neu-soft-edge" | "neu-pressed" | "neu-floating";
|
|
10
|
+
radiusType: "sharp-edge" | "soft-edge" | "pill";
|
|
11
|
+
};
|
|
12
|
+
type calloutoutObject = {
|
|
13
|
+
callOut: calloutContent[];
|
|
14
|
+
};
|
|
15
|
+
export default function CalloutCard({ callOut }: calloutoutObject): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type CardDesign = {
|
|
2
|
+
cardStyle: "neu-soft-edge" | "neu-pressed" | "neu-floating";
|
|
3
|
+
headerText: string;
|
|
4
|
+
subHeaderText: string;
|
|
5
|
+
descriptionText: string;
|
|
6
|
+
buttons?: {
|
|
7
|
+
label: string;
|
|
8
|
+
href?: string;
|
|
9
|
+
}[];
|
|
10
|
+
imageUrl?: string;
|
|
11
|
+
};
|
|
12
|
+
type CardCollection = {
|
|
13
|
+
cards: CardDesign[];
|
|
14
|
+
};
|
|
15
|
+
export default function Card({ cards }: CardCollection): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -2,6 +2,7 @@ type chatBot = {
|
|
|
2
2
|
title: string;
|
|
3
3
|
img: string;
|
|
4
4
|
propt: string;
|
|
5
|
+
endpoint?: string;
|
|
5
6
|
};
|
|
6
|
-
export default function Chat({ title, img, propt }: chatBot): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default function Chat({ title, img, propt, endpoint, }: chatBot): import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type dropdownContent = {
|
|
2
|
+
dropDownURL?: string;
|
|
3
|
+
dropDownLable: string;
|
|
4
|
+
};
|
|
5
|
+
type dropDownMenu = {
|
|
6
|
+
dropDownType: "neu-flat" | "neu-inset" | "neu-raised";
|
|
7
|
+
dropDownMenuLabel: string;
|
|
8
|
+
dropDownItem: dropdownContent[];
|
|
9
|
+
DropdownMenuSeparator?: any;
|
|
10
|
+
};
|
|
11
|
+
type dropDownCollection = {
|
|
12
|
+
dropDowns: dropDownMenu[];
|
|
13
|
+
};
|
|
14
|
+
export default function DropDown({ dropDowns }: dropDownCollection): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type TableProps = {
|
|
2
|
+
label?: string;
|
|
3
|
+
styleType: "neu-flat" | "neu-inset" | "neu-pressed";
|
|
4
|
+
header: string[];
|
|
5
|
+
rows: Record<string, string>[];
|
|
6
|
+
};
|
|
7
|
+
type TableObj = {
|
|
8
|
+
tables: TableProps[];
|
|
9
|
+
};
|
|
10
|
+
export default function Table({ tables }: TableObj): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type TextAreaProps = {
|
|
2
|
+
lable?: string;
|
|
3
|
+
helperText: string;
|
|
4
|
+
resize: "on" | "off";
|
|
5
|
+
errorMessage?: string;
|
|
6
|
+
styleType: "neu-flat" | "neu-inset" | "neu-pressed";
|
|
7
|
+
};
|
|
8
|
+
export default function TextArea({ lable, helperText, resize, errorMessage, styleType, }: TextAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type ToggleProps = {
|
|
2
|
+
lable?: string;
|
|
3
|
+
styleType: "neu-flat" | "neu-inset" | "neu-pressed";
|
|
4
|
+
size: "sm" | "md" | "lg";
|
|
5
|
+
onChange?: (checked: boolean) => void;
|
|
6
|
+
};
|
|
7
|
+
export default function Toggle({ lable, styleType, size, onChange, }: ToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),r=require("react"),t=require("next/image"),a=require("next-themes");const s=["#1a1a1a","#4d4d4d","#999999","#e6e6e6"];const l=e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("circle",{cx:"12",cy:"12",r:"5"}),e.jsx("path",{d:"M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"})]}),o=e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e.jsx("path",{d:"M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"})});exports.Accordion=function({items:t}){const[a,s]=r.useState(Array(t.length).fill(!1));return e.jsx("div",{className:"border border-black dark:border-gray-700 rounded-lg overflow-hidden max-w-3xl bg-white dark:bg-gray-900 font-inter",children:t.map((r,l)=>e.jsxs("div",{className:"border-b border-gray-200 dark:border-gray-700 last:border-b-0",children:[e.jsxs("div",{className:"flex items-center gap-4 p-5 cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors duration-200",onClick:()=>function(e){s(r=>{const a=Array(t.length).fill(!1);return a[e]=!r[e],a})}(l),children:[e.jsx("svg",{className:"w-6 h-6 transition-transform duration-200 text-gray-900 dark:text-gray-100 flex-shrink-0 "+(a[l]?"rotate-180":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})}),e.jsx("h2",{className:"text-lg font-bold text-gray-800 dark:text-gray-100",children:r.title})]}),e.jsx("div",{className:"overflow-hidden transition-all duration-200 "+(a[l]?"max-h-96 opacity-100":"max-h-0 opacity-0"),children:e.jsx("p",{className:"px-5 pb-5 pl-[3.75rem] text-gray-700 dark:text-gray-300 text-sm leading-relaxed",children:r.text})})]},l))})},exports.BarChart=function({content:r}){const t=r.map((e,r)=>s[r%s.length]),a=r.reduce((e,r)=>Math.max(e,r.size),0),l=r.map(e=>e.size/a*300);return e.jsxs("div",{className:"w-[650px] flex flex-row gap-[10px] items-end pl-[25px] pr-[25px] pt-[25px] border-black dark:border-gray-700 border-1 h-[300px] rounded-md dark:bg-gray-900",children:[e.jsxs("div",{className:"border-r-2 border-black dark:border-gray-500 h-full mb-[10px] mr-[10px] flex flex-col justify-between dark:text-gray-300",children:[e.jsxs("p",{children:[Math.floor(Math.max(a))," "]}),e.jsx("p",{children:Math.floor(Math.max(a)/1.5)}),e.jsx("p",{children:Math.floor(Math.max(a)/2)}),e.jsx("p",{children:Math.floor(Math.max(a)/3)}),e.jsx("p",{children:"0"})]}),r.map((r,a)=>e.jsxs("div",{className:"flex flex-col items-center justify-end h-full w-full ",children:[e.jsx("div",{className:"w-full",style:{height:`${l[a]}px`,backgroundColor:t[a]}}),e.jsx("p",{className:"text-xs text-center m-1 dark:text-gray-300",children:r.lable})]},a))]})},exports.CardText=function({header:r,subHeader:t,mainText:a,buttonText1:s,buttonText2:l}){return e.jsx(e.Fragment,{children:e.jsx("div",{className:"",children:e.jsxs("div",{className:"lg:w-[22rem] h-[400px] border border-black dark:border-gray-700 rounded-lg px-7 py-5 flex flex-col gap-6 font-inter sm:w-full md:w-[20rem] dark:bg-gray-900 h-full",children:[e.jsxs("section",{children:[e.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100 mb-1",children:r}),e.jsx("p",{className:"text-gray-500 dark:text-gray-400 text-sm",children:t})]}),e.jsx("section",{children:e.jsx("p",{className:"text-gray-700 dark:text-gray-300 text-sm leading-relaxed",children:a})}),e.jsxs("section",{className:"flex flex-row gap-3 mt-auto",children:[e.jsx("button",{className:"bg-black dark:bg-gray-100 text-white dark:text-black px-5 py-2 rounded-lg font-medium text-sm transition-colors duration-200 hover:bg-gray-800 dark:hover:bg-gray-200 hover:text-gray-200 dark:hover:text-black",children:s}),e.jsx("button",{className:"text-gray-900 dark:text-gray-100 px-5 py-2 rounded-lg font-medium text-sm transition-colors duration-200 hover:bg-gray-200 dark:hover:bg-gray-800 hover:text-black dark:hover:text-gray-100 border dark:border-gray-700 bg-white dark:bg-gray-900",children:l})]})]})})})},exports.Caroulse=function({card:a}){const s=r.useRef(0),l=r.useRef(null);return r.useEffect(()=>{const e=l.current;if(!e)return;const r=e.offsetWidth,t=e.scrollWidth,a=()=>{s.current+=.5,s.current>=t-r&&(s.current=0),e.style.transform=`translateX(-${s.current}px)`,requestAnimationFrame(a)},o=requestAnimationFrame(a);return()=>cancelAnimationFrame(o)},[]),e.jsx("div",{className:"border border-black dark:border-gray-700 rounded-lg max-w-5xl h-[25rem] flex flex-col gap-5 p-10 overflow-hidden bg-white dark:bg-gray-900",children:e.jsx("div",{ref:l,className:"flex flex-row gap-5 flex-1 flex-nowrap",children:a.map((r,a)=>e.jsxs("div",{className:"border border-gray-700 dark:border-gray-700 rounded-lg w-[22rem] flex-shrink-0 bg-white dark:bg-gray-900 overflow-hidden shadow-sm",children:[e.jsx(t,{src:r.image,width:352,height:200,alt:r.text,className:"w-full h-48 object-cover"}),e.jsx("p",{className:"p-5 text-gray-900 dark:text-gray-100 font-inter text-sm",children:r.text})]},a))})})},exports.Chat=function({title:a,img:s,propt:l}){const[o,d]=r.useState(""),[n,i]=r.useState([]),[c,x]=r.useState(!1);async function h(e){x(!0);const r=await fetch("/api/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:e})}),t=(await r.json()).message;i([...n,{user:e,bot:t}]),console.log(n),x(!1)}function g(){h(o),d("")}return e.jsx(e.Fragment,{children:e.jsxs("div",{className:"w-[37rem] border-1 border-black dark:border-gray-700 px-10 py-5 overflow-auto rounded-sm h-full dark:bg-gray-900",children:[e.jsxs("div",{className:"flex flex-row gap-5 pb-2",children:[e.jsx(t,{className:"p-2 bg-gray-50 rounded-full flex flex-row",src:s,width:40,height:40,alt:"chat-img"}),e.jsx("h1",{className:"text-xl text-gray-800 dark:text-gray-100",children:a})]}),e.jsxs("div",{className:"flex flex-col h-51 ",children:[e.jsx("div",{className:"flex justify-center mb-4",children:e.jsx("button",{className:"p-1 pl-3 pr-3 rounded-full text-sm border border-black dark:border-gray-600 dark:text-gray-300",onClick:function(){h(l)},children:l})}),e.jsxs("div",{className:"flex-1 overflow-y-auto",children:[c?e.jsx("p",{children:"Loading..."}):null,n.map((r,t)=>e.jsxs("div",{className:"space-y-3 mb-4",children:[e.jsx("div",{className:"flex justify-end",children:e.jsx("div",{className:"bg-gray-300 dark:bg-gray-700 p-3 rounded-sm",children:e.jsx("p",{className:"text-sm font-medium",children:r.user})})}),e.jsx("div",{className:"flex justify-start",children:e.jsx("div",{className:"bg-gray-100 dark:bg-gray-800 p-3 rounded-sm ",children:r.bot.startsWith("data:image/")?e.jsx("img",{src:r.bot,alt:"Generated image",className:"max-w-full h-auto rounded-sm"}):e.jsx("p",{className:"text-sm",children:r.bot})})})]},t))]}),e.jsxs("div",{className:"flex flex-row gap-2 mt-4",children:[e.jsx("input",{className:"flex-1 border border-gray-500 dark:border-gray-600 rounded-sm px-3 py-2 dark:bg-gray-800 dark:text-gray-100 dark:placeholder-gray-400",value:o,onChange:function(e){d(e.target.value)},onKeyDown:function(e){"Enter"===e.key&&g()},type:"text",placeholder:"Type your message..."}),e.jsx("button",{onClick:g,className:"px-4 py-2 border border-black dark:border-gray-600 rounded-sm hover:bg-gray-100 dark:hover:bg-gray-800 dark:text-gray-100",children:"Send"})]})]})]})})},exports.Drawer=function({title:t,size:a,colour:s}){const[l,o]=r.useState(Array(a).fill(!1)),[d,n]=r.useState(s);return e.jsxs("div",{className:"border border-black dark:border-gray-700 border-1 w-[33rem] p-5 rounded-sm dark:bg-gray-900",children:[e.jsxs("div",{className:"flex gap-10 mb-5",children:[e.jsx("h1",{className:"text-xl font-bold mb-4 dark:text-white",children:t}),e.jsx("button",{onClick:()=>o(Array(a).fill(!1)),className:"cursor-pointer px-5 py-0.5 border dark:border-gray-600 rounded-md text-sm dark:text-gray-300 dark:hover:bg-gray-800",children:"Clear"}),e.jsx("input",{type:"color",id:"favcolor",value:d,onChange:e=>n(e.target.value),className:"w-10 h-10 rounded cursor-pointer"})]}),e.jsx("div",{className:"flex flex-wrap flex-row justify-center",children:Array.from({length:a}).map((r,t)=>e.jsx("div",{onMouseEnter:()=>function(e){const r=[...l];r[e]=!0,o(r)}(t),onMouseLeave:()=>function(e){const r=[...l];r[e]=!1,o(r)}(t),style:{backgroundColor:l[t]?d:"transparent"},className:" w-[1rem] h-[1rem] flex justify-center"},t))})]})},exports.Hero=function({header:r,subHeader:t,btn1Text:a,btn2Text:s,headerBtn:l}){return e.jsxs("div",{className:"flex flex-col items-center mt-[6rem] gap-8 w-full font-inter mb-[6rem]",children:[e.jsxs("button",{className:"bg-gray-200 dark:bg-gray-800 py-1 px-5 rounded-xl text-sm font-thin transition-colors \r\n duration-200 hover:bg-gray-300 dark:hover:bg-gray-700 hover:text-black dark:hover:text-white dark:text-gray-300",children:[l," --\x3e"]}),e.jsx("h1",{className:" text-center w-full text-5xl font-bold dark:text-white",children:r}),e.jsx("p",{className:"text-center lg:w-[69ch] sm:w-[40ch] md:w-[50ch] dark:text-gray-300",children:t}),e.jsxs("div",{className:"flex flex-row gap-4 justify-center w-full",children:[e.jsx("button",{className:"text-sm bg-black dark:bg-white cursor-pointer text-white dark:text-black py-3 px-8 rounded-xl\r\n transition-colors duration-200 hover:bg-gray-800 dark:hover:bg-gray-200 hover:text-gray-200 dark:hover:text-black",children:a}),e.jsx("button",{className:"text-sm cursor-pointer py-3 px-8 rounded-xl transition-colors \r\n duration-200 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-black dark:hover:text-white dark:text-gray-300",children:s})]})]})},exports.ThemeSwitch=function({lightIcon:t,darkIcon:s,label:d}){const{theme:n,setTheme:i}=a.useTheme(),[c,x]=r.useState(!1);if(r.useEffect(()=>{x(!0)},[]),!c)return null;const h="dark"===n;return e.jsx("button",{onClick:function(){i(h?"light":"dark")},"aria-label":null!=d?d:"Toggle theme",children:h?null!=s?s:o:null!=t?t:l})};
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("react"),n=require("next/image");const r=["#1a1a1a","#4d4d4d","#999999","#e6e6e6"];const o={"neu-flat":"neu-btn-flat","neu-raised":"neu-btn-raised","neu-inset":"neu-btn-inset"};function a(t,n,r,o,a){const i=new Date(t,n+1,0).getDate(),s=Array.from({length:i},(e,t)=>t+1);return e.jsx(e.Fragment,{children:e.jsx("div",{className:"grid grid-cols-7 gap-2",children:s.map((t,n)=>e.jsx("div",{onClick:()=>a(t),className:"w-8 h-8 sm:w-10 sm:h-10 flex items-center justify-center text-xs sm:text-sm cursor-pointer transition-all rounded-md "+(t===o?"neu-flat font-bold scale-110 shadow-lg":t===r?"neu-flat font-bold":"neu-inset hover:scale-105"),children:t},n))})})}const i={"neu-soft-edge":"neu-flat","neu-pressed":"neu-inset","neu-floating":"neu-raised"},s={"sharp-edge":"0px","soft-edge":"12px",pill:"30px"};const c={"neu-soft-edge":"neu-flat","neu-pressed":"neu-inset","neu-floating":"neu-raised"};function u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l,f={exports:{}},d={};function p(){if(l)return d;function e(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(e=function(e){return e?r:n})(t)}return l=1,d._=function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=e(n);if(r&&r.has(t))return r.get(t);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var s=a?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(o,i,s):o[i]=t[i]}return o.default=t,r&&r.set(t,o),o},d}var h,m={exports:{}},x={};function g(){return h||(h=1,function(e){function t(e){const t={};for(const[n,r]of e.entries()){const e=t[n];void 0===e?t[n]=r:Array.isArray(e)?e.push(r):t[n]=[e,r]}return t}function n(e){return"string"==typeof e?e:"number"==typeof e&&!isNaN(e)||"boolean"==typeof e?String(e):""}function r(e){const t=new URLSearchParams;for(const[r,o]of Object.entries(e))if(Array.isArray(o))for(const e of o)t.append(r,n(e));else t.set(r,n(o));return t}function o(e,...t){for(const n of t){for(const t of n.keys())e.delete(t);for(const[t,r]of n.entries())e.append(t,r)}return e}Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{assign:function(){return o},searchParamsToUrlQuery:function(){return t},urlQueryToSearchParams:function(){return r}})}(x)),x}var _,y={};function b(){return _||(_=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{formatUrl:function(){return r},formatWithValidation:function(){return a},urlObjectKeys:function(){return o}});const t=p()._(g()),n=/https?|ftp|gopher|file/;function r(e){let{auth:r,hostname:o}=e,a=e.protocol||"",i=e.pathname||"",s=e.hash||"",c=e.query||"",u=!1;r=r?encodeURIComponent(r).replace(/%3A/i,":")+"@":"",e.host?u=r+e.host:o&&(u=r+(~o.indexOf(":")?`[${o}]`:o),e.port&&(u+=":"+e.port)),c&&"object"==typeof c&&(c=String(t.urlQueryToSearchParams(c)));let l=e.search||c&&`?${c}`||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||n.test(a))&&!1!==u?(u="//"+(u||""),i&&"/"!==i[0]&&(i="/"+i)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),l&&"?"!==l[0]&&(l="?"+l),i=i.replace(/[?#]/g,encodeURIComponent),l=l.replace("#","%23"),`${a}${u}${i}${l}${s}`}const o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(e){return"development"===process.env.NODE_ENV&&null!==e&&"object"==typeof e&&Object.keys(e).forEach(e=>{o.includes(e)||console.warn(`Unknown key passed via urlObject into url.format: ${e}`)}),r(e)}}(y)),y}var v,E={};var R,j={};function P(){return R||(R=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{DecodeError:function(){return p},MiddlewareNotFoundError:function(){return g},MissingStaticPage:function(){return x},NormalizeError:function(){return h},PageNotFoundError:function(){return m},SP:function(){return f},ST:function(){return d},WEB_VITALS:function(){return t},execOnce:function(){return n},getDisplayName:function(){return s},getLocationOrigin:function(){return a},getURL:function(){return i},isAbsoluteUrl:function(){return o},isResSent:function(){return c},loadGetInitialProps:function(){return l},normalizeRepeatedSlashes:function(){return u},stringifyError:function(){return _}});const t=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,n=!1;return(...r)=>(n||(n=!0,t=e(...r)),t)}const r=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>r.test(e);function a(){const{protocol:e,hostname:t,port:n}=window.location;return`${e}//${t}${n?":"+n:""}`}function i(){const{href:e}=window.location,t=a();return e.substring(t.length)}function s(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function c(e){return e.finished||e.headersSent}function u(e){const t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function l(e,t){if("production"!==process.env.NODE_ENV&&e.prototype?.getInitialProps){const t=`"${s(e)}.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.`;throw Object.defineProperty(new Error(t),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}const n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await l(t.Component,t.ctx)}:{};const r=await e.getInitialProps(t);if(n&&c(n))return r;if(!r){const t=`"${s(e)}.getInitialProps()" should resolve to an object. But found "${r}" instead.`;throw Object.defineProperty(new Error(t),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}return"production"!==process.env.NODE_ENV&&(0!==Object.keys(r).length||t.ctx||console.warn(`${s(e)} returned an empty object from \`getInitialProps\`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps`)),r}const f="undefined"!=typeof performance,d=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p extends Error{}class h extends Error{}class m extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class x extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class g extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function _(e){return JSON.stringify({message:e.message,stack:e.stack})}}(j)),j}var w,O={exports:{}},N={};function T(){return w||(w=1,function(e){function t(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}})}(N)),N}var S,A,C={};function M(){return S||(S=1,function(e){function t(e){const t=e.indexOf("#"),n=e.indexOf("?"),r=n>-1&&(t<0||n<t);return r||t>-1?{pathname:e.substring(0,r?n:t),query:r?e.substring(n,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}})}(C)),C}function I(){return A||(A=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const n=T(),r=M(),o=e=>{if(!e.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return e;const{pathname:t,query:o,hash:a}=(0,r.parsePath)(e);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(t)?`${(0,n.removeTrailingSlash)(t)}${o}${a}`:t.endsWith("/")?`${t}${o}${a}`:`${t}/${o}${a}`:`${(0,n.removeTrailingSlash)(t)}${o}${a}`};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(O,O.exports)),O.exports}var k,$,D,L={},X={exports:{}},U={};function F(){return k||(k=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return n}});const t=M();function n(e,n){if("string"!=typeof e)return!1;const{pathname:r}=(0,t.parsePath)(e);return r===n||r.startsWith(n+"/")}}(U)),U}function W(){return D||(D=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return r}});const t=P(),n=($||($=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});const n=F(),r=process.env.__NEXT_ROUTER_BASEPATH||"";function o(e){return(0,n.pathHasPrefix)(e,r)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(X,X.exports)),X.exports);function r(e){if(!(0,t.isAbsoluteUrl)(e))return!0;try{const r=(0,t.getLocationOrigin)(),o=new URL(e,r);return o.origin===r&&(0,n.hasBasePath)(o.pathname)}catch(e){return!1}}}(L)),L}var H,z={},B={};var K,G={},Y={},V={},q={};var Q,Z,J,ee,te,ne={};function re(){return Q||(Q=1,function(e){function t(e){return Array.isArray(e)?e[1]:e}function n(e){return"("===e[0]&&e.endsWith(")")}function r(e){return e.startsWith("@")&&"@children"!==e}function o(e,t){if(e.includes(s)){const e=JSON.stringify(t);return"{}"!==e?s+"?"+e:s}return e}function a(e,t){if(!e||0===e.length)return null;const n="children"===t?e[0]:e[e.length-1];return n===c?null:n}function i(e,n,r=!0,o=[]){let a;if(r)a=e[1][n];else{const t=e[1];a=t.children??Object.values(t)[0]}if(!a)return o;let c=t(a[0]);return!c||c.startsWith(s)?o:(o.push(c),i(a,n,!1,o))}Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{DEFAULT_SEGMENT_KEY:function(){return c},PAGE_SEGMENT_KEY:function(){return s},addSearchParamsIfPageSegment:function(){return o},computeSelectedLayoutSegment:function(){return a},getSegmentValue:function(){return t},getSelectedLayoutSegmentPath:function(){return i},isGroupSegment:function(){return n},isParallelRouteSegment:function(){return r}});const s="__PAGE__",c="__DEFAULT__"}(ne)),ne}function oe(){return Z||(Z=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{normalizeAppPath:function(){return r},normalizeRscURL:function(){return o}});const t=(K||(K=1,function(e){function t(e){return e.startsWith("/")?e:`/${e}`}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}})}(q)),q),n=re();function r(e){return(0,t.ensureLeadingSlash)(e.split("/").reduce((e,t,r,o)=>t?(0,n.isGroupSegment)(t)||"@"===t[0]?e:"page"!==t&&"route"!==t||r!==o.length-1?`${e}/${t}`:e:e,""))}function o(e){return e.replace(/\.rsc($|\?)/,"$1")}}(V)),V}function ae(){return J||(J=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{INTERCEPTION_ROUTE_MARKERS:function(){return n},extractInterceptionRouteInformation:function(){return o},isInterceptionRouteAppPath:function(){return r}});const t=oe(),n=["(..)(..)","(.)","(..)","(...)"];function r(e){return void 0!==e.split("/").find(e=>n.find(t=>e.startsWith(t)))}function o(e){let r,o,a;for(const t of e.split("/"))if(o=n.find(e=>t.startsWith(e)),o){[r,a]=e.split(o,2);break}if(!r||!o||!a)throw Object.defineProperty(new Error(`Invalid interception route: ${e}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`),"__NEXT_ERROR_CODE",{value:"E269",enumerable:!1,configurable:!0});switch(r=(0,t.normalizeAppPath)(r),o){case"(.)":a="/"===r?`/${a}`:r+"/"+a;break;case"(..)":if("/"===r)throw Object.defineProperty(new Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`),"__NEXT_ERROR_CODE",{value:"E207",enumerable:!1,configurable:!0});a=r.split("/").slice(0,-1).concat(a).join("/");break;case"(...)":a="/"+a;break;case"(..)(..)":const t=r.split("/");if(t.length<=2)throw Object.defineProperty(new Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`),"__NEXT_ERROR_CODE",{value:"E486",enumerable:!1,configurable:!0});a=t.slice(0,-2).concat(a).join("/");break;default:throw Object.defineProperty(new Error("Invariant: unexpected marker"),"__NEXT_ERROR_CODE",{value:"E112",enumerable:!1,configurable:!0})}return{interceptingRoute:r,interceptedRoute:a}}}(Y)),Y}function ie(){return te||(te=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{getSortedRouteObjects:function(){return t.getSortedRouteObjects},getSortedRoutes:function(){return t.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const t=(H||(H=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{getSortedRouteObjects:function(){return r},getSortedRoutes:function(){return n}});class t{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e="/"){const t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);const n=t.map(t=>this.children.get(t)._smoosh(`${e}${t}/`)).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(`${e}[${this.slugName}]/`)),!this.placeholder){const t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Object.defineProperty(new Error(`You cannot define a route with the same specificity as a optional catch-all route ("${t}" and "${t}[[...${this.optionalRestSlugName}]]").`),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(`${e}[...${this.restSlugName}]/`)),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(`${e}[[...${this.optionalRestSlugName}]]/`)),n}_insert(e,n,r){if(0===e.length)return void(this.placeholder=!1);if(r)throw Object.defineProperty(new Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let a=o.slice(1,-1),i=!1;if(a.startsWith("[")&&a.endsWith("]")&&(a=a.slice(1,-1),i=!0),a.startsWith("…"))throw Object.defineProperty(new Error(`Detected a three-dot character ('…') at ('${a}'). Did you mean ('...')?`),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(a.startsWith("...")&&(a=a.substring(3),r=!0),a.startsWith("[")||a.endsWith("]"))throw Object.defineProperty(new Error(`Segment names may not start or end with extra brackets ('${a}').`),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(a.startsWith("."))throw Object.defineProperty(new Error(`Segment names may not start with erroneous periods ('${a}').`),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});function s(e,t){if(null!==e&&e!==t)throw Object.defineProperty(new Error(`You cannot use different slug names for the same dynamic path ('${e}' !== '${t}').`),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});n.forEach(e=>{if(e===t)throw Object.defineProperty(new Error(`You cannot have the same slug name "${t}" repeat within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Object.defineProperty(new Error(`You cannot have the slug names "${e}" and "${t}" differ only by non-word symbols within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),n.push(t)}if(r)if(i){if(null!=this.restSlugName)throw Object.defineProperty(new Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${e[0]}" ).`),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});s(this.optionalRestSlugName,a),this.optionalRestSlugName=a,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Object.defineProperty(new Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${e[0]}").`),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,configurable:!0});s(this.restSlugName,a),this.restSlugName=a,o="[...]"}else{if(i)throw Object.defineProperty(new Error(`Optional route parameters are not yet supported ("${e[0]}").`),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});s(this.slugName,a),this.slugName=a,o="[]"}}this.children.has(o)||this.children.set(o,new t),this.children.get(o)._insert(e.slice(1),n,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){const n=new t;return e.forEach(e=>n.insert(e)),n.smoosh()}function r(e,t){const r={},o=[];for(let n=0;n<e.length;n++){const a=t(e[n]);r[a]=n,o[n]=a}return n(o).map(t=>e[r[t]])}}(B)),B),n=(ee||(ee=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return o}});const t=ae(),n=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,r=/\/\[[^/]+\](?=\/|$)/;function o(e,o=!0){return(0,t.isInterceptionRouteAppPath)(e)&&(e=(0,t.extractInterceptionRouteInformation)(e).interceptedRoute),o?r.test(e):n.test(e)}}(G)),G)}(z)),z}var se,ce={},ue={},le={},fe={exports:{}};function de(){return se||(se=1,(()=>{"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var e={};(()=>{var t=e;function n(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,a="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0===--o){s++;break}}else if("("===e[s]&&(o++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at ".concat(s));a+=e[s++]}else a+=e[s++]+e[s++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!a)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:a}),n=s}else{for(var i="",s=n+1;s<e.length;){var c=e.charCodeAt(s);if(!(c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;i+=e[s++]}if(!i)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:i}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,o=void 0===r?"./":r,i=t.delimiter,s=void 0===i?"/#?":i,c=[],u=0,l=0,f="",d=function(e){if(l<n.length&&n[l].type===e)return n[l++].value},p=function(e){var t=d(e);if(void 0!==t)return t;var r=n[l],o=r.type,a=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(a,", expected ").concat(e))},h=function(){for(var e,t="";e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t},m=function(e){var t=c[c.length-1],n=e||(t&&"string"==typeof t?t:"");if(t&&!n)throw new TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!n||function(e){for(var t=0,n=s;t<n.length;t++){var r=n[t];if(e.indexOf(r)>-1)return!0}return!1}(n)?"[^".concat(a(s),"]+?"):"(?:(?!".concat(a(n),")[^").concat(a(s),"])+?")};l<n.length;){var x=d("CHAR"),g=d("NAME"),_=d("PATTERN");if(g||_){var y=x||"";-1===o.indexOf(y)&&(f+=y,y=""),f&&(c.push(f),f=""),c.push({name:g||u++,prefix:y,suffix:"",pattern:_||m(y),modifier:d("MODIFIER")||""})}else{var b=x||d("ESCAPED_CHAR");if(b)f+=b;else if(f&&(c.push(f),f=""),d("OPEN")){y=h();var v=d("NAME")||"",E=d("PATTERN")||"",R=h();p("CLOSE"),c.push({name:v||(E?u++:""),pattern:v&&!E?m(y):E,prefix:y,suffix:R,modifier:d("MODIFIER")||""})}else p("END")}}return c}function r(e,t){void 0===t&&(t={});var n=i(t),r=t.encode,o=void 0===r?function(e){return e}:r,a=t.validate,s=void 0===a||a,c=e.map(function(e){if("object"==typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),n)});return function(t){for(var n="",r=0;r<e.length;r++){var a=e[r];if("string"!=typeof a){var i=t?t[a.name]:void 0,u="?"===a.modifier||"*"===a.modifier,l="*"===a.modifier||"+"===a.modifier;if(Array.isArray(i)){if(!l)throw new TypeError('Expected "'.concat(a.name,'" to not repeat, but got an array'));if(0===i.length){if(u)continue;throw new TypeError('Expected "'.concat(a.name,'" to not be empty'))}for(var f=0;f<i.length;f++){var d=o(i[f],a);if(s&&!c[r].test(d))throw new TypeError('Expected all "'.concat(a.name,'" to match "').concat(a.pattern,'", but got "').concat(d,'"'));n+=a.prefix+d+a.suffix}}else if("string"!=typeof i&&"number"!=typeof i){if(!u){var p=l?"an array":"a string";throw new TypeError('Expected "'.concat(a.name,'" to be ').concat(p))}}else{d=o(String(i),a);if(s&&!c[r].test(d))throw new TypeError('Expected "'.concat(a.name,'" to match "').concat(a.pattern,'", but got "').concat(d,'"'));n+=a.prefix+d+a.suffix}}else n+=a}return n}}function o(e,t,n){void 0===n&&(n={});var r=n.decode,o=void 0===r?function(e){return e}:r;return function(n){var r=e.exec(n);if(!r)return!1;for(var a=r[0],i=r.index,s=Object.create(null),c=function(e){if(void 0===r[e])return"continue";var n=t[e-1];"*"===n.modifier||"+"===n.modifier?s[n.name]=r[e].split(n.prefix+n.suffix).map(function(e){return o(e,n)}):s[n.name]=o(r[e],n)},u=1;u<r.length;u++)c(u);return{path:a,index:i,params:s}}}function a(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function i(e){return e&&e.sensitive?"":"i"}function s(e,t,n){void 0===n&&(n={});for(var r=n.strict,o=void 0!==r&&r,s=n.start,c=void 0===s||s,u=n.end,l=void 0===u||u,f=n.encode,d=void 0===f?function(e){return e}:f,p=n.delimiter,h=void 0===p?"/#?":p,m=n.endsWith,x="[".concat(a(void 0===m?"":m),"]|$"),g="[".concat(a(h),"]"),_=c?"^":"",y=0,b=e;y<b.length;y++){var v=b[y];if("string"==typeof v)_+=a(d(v));else{var E=a(d(v.prefix)),R=a(d(v.suffix));if(v.pattern)if(t&&t.push(v),E||R)if("+"===v.modifier||"*"===v.modifier){var j="*"===v.modifier?"?":"";_+="(?:".concat(E,"((?:").concat(v.pattern,")(?:").concat(R).concat(E,"(?:").concat(v.pattern,"))*)").concat(R,")").concat(j)}else _+="(?:".concat(E,"(").concat(v.pattern,")").concat(R,")").concat(v.modifier);else{if("+"===v.modifier||"*"===v.modifier)throw new TypeError('Can not repeat "'.concat(v.name,'" without a prefix and suffix'));_+="(".concat(v.pattern,")").concat(v.modifier)}else _+="(?:".concat(E).concat(R,")").concat(v.modifier)}}if(l)o||(_+="".concat(g,"?")),_+=n.endsWith?"(?=".concat(x,")"):"$";else{var P=e[e.length-1],w="string"==typeof P?g.indexOf(P[P.length-1])>-1:void 0===P;o||(_+="(?:".concat(g,"(?=").concat(x,"))?")),w||(_+="(?=".concat(g,"|").concat(x,")"))}return new RegExp(_,i(n))}function c(e,t,r){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map(function(e){return c(e,t,n).source});return new RegExp("(?:".concat(r.join("|"),")"),i(n))}(e,t,r):function(e,t,r){return s(n(e,r),t,r)}(e,t,r)}Object.defineProperty(t,"__esModule",{value:!0}),t.pathToRegexp=t.tokensToRegexp=t.regexpToFunction=t.match=t.tokensToFunction=t.compile=t.parse=void 0,t.parse=n,t.compile=function(e,t){return r(n(e,t),t)},t.tokensToFunction=r,t.match=function(e,t){var n=[];return o(c(e,n,t),n,t)},t.regexpToFunction=o,t.tokensToRegexp=s,t.pathToRegexp=c})(),fe.exports=e})()),fe.exports}var pe,he,me,xe={};function ge(){return he||(he=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{safeCompile:function(){return o},safePathToRegexp:function(){return r},safeRegexpToFunction:function(){return a},safeRouteMatcher:function(){return i}});const t=de(),n=(pe||(pe=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{PARAM_SEPARATOR:function(){return t},hasAdjacentParameterIssues:function(){return n},normalizeAdjacentParameters:function(){return r},normalizeTokensForRegexp:function(){return o},stripNormalizedSeparators:function(){return a},stripParameterSeparators:function(){return i}});const t="_NEXTSEP_";function n(e){return!("string"!=typeof e||!/\/\(\.{1,3}\):[^/\s]+/.test(e)&&!/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(e))}function r(e){let n=e;return n=n.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${t}:$2`),n=n.replace(/:([^:/\s)]+)(?=:)/g,`:$1${t}`),n}function o(e){return e.map(e=>"object"==typeof e&&null!==e&&"modifier"in e&&("*"===e.modifier||"+"===e.modifier)&&"prefix"in e&&"suffix"in e&&""===e.prefix&&""===e.suffix?{...e,prefix:"/"}:e)}function a(e){return e.replace(new RegExp(`\\)${t}`,"g"),")")}function i(e){const n={};for(const[r,o]of Object.entries(e))"string"==typeof o?n[r]=o.replace(new RegExp(`^${t}`),""):Array.isArray(o)?n[r]=o.map(e=>"string"==typeof e?e.replace(new RegExp(`^${t}`),""):e):n[r]=o;return n}}(xe)),xe);function r(e,r,o){if("string"!=typeof e)return(0,t.pathToRegexp)(e,r,o);const a=(0,n.hasAdjacentParameterIssues)(e),i=a?(0,n.normalizeAdjacentParameters)(e):e;try{return(0,t.pathToRegexp)(i,r,o)}catch(i){if(!a)try{const a=(0,n.normalizeAdjacentParameters)(e);return(0,t.pathToRegexp)(a,r,o)}catch(e){throw i}throw i}}function o(e,r){const o=(0,n.hasAdjacentParameterIssues)(e),a=o?(0,n.normalizeAdjacentParameters)(e):e;try{const e=(0,t.compile)(a,r);return o?t=>(0,n.stripNormalizedSeparators)(e(t)):e}catch(a){if(!o)try{const o=(0,n.normalizeAdjacentParameters)(e),a=(0,t.compile)(o,r);return e=>(0,n.stripNormalizedSeparators)(a(e))}catch(e){throw a}throw a}}function a(e,r){const o=(0,t.regexpToFunction)(e,r||[]);return e=>{const t=o(e);return!!t&&{...t,params:(0,n.stripParameterSeparators)(t.params)}}}function i(e){return t=>{const r=e(t);return!!r&&(0,n.stripParameterSeparators)(r)}}}(le)),le}function _e(){return me||(me=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=P(),n=ge();function r({re:e,groups:r}){return(0,n.safeRouteMatcher)(n=>{const o=e.exec(n);if(!o)return!1;const a=e=>{try{return decodeURIComponent(e)}catch{throw Object.defineProperty(new t.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},i={};for(const[e,t]of Object.entries(r)){const n=o[t.pos];void 0!==n&&(t.repeat?i[e]=n.split("/").map(e=>a(e)):i[e]=a(n))}return i})}}(ue)),ue}var ye,be={},ve={};var Ee,Re={};var je,Pe={},we={};var Oe,Ne={};var Te,Se,Ae,Ce,Me,Ie={};function ke(){return Se||(Se=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{PARAMETER_PATTERN:function(){return i},getDynamicParam:function(){return a},interpolateParallelRouteParams:function(){return o},parseMatchedParameter:function(){return c},parseParameter:function(){return s}});const t=(je||(je=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"InvariantError",{enumerable:!0,get:function(){return t}});class t extends Error{constructor(e,t){super(`Invariant: ${e.endsWith(".")?e:e+"."} This is a bug in Next.js.`,t),this.name="InvariantError"}}}(we)),we),n=(Oe||(Oe=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parseLoaderTree",{enumerable:!0,get:function(){return n}});const t=re();function n(e){const[n,r,o]=e,{layout:a,template:i}=o;let{page:s}=o;return s=n===t.DEFAULT_SEGMENT_KEY?o.defaultPage:s,{page:s,segment:n,modules:o,conventionPath:a?.[1]||i?.[1]||s?.[1],parallelRoutes:r}}}(Ne)),Ne),r=(Te||(Te=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{getParamProperties:function(){return o},getSegmentParam:function(){return n},isCatchAll:function(){return r}});const t=ae();function n(e){const n=t.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return n&&(e=e.slice(n.length)),e.startsWith("[[...")&&e.endsWith("]]")?{type:"optional-catchall",param:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{type:n?`catchall-intercepted-${n}`:"catchall",param:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{type:n?`dynamic-intercepted-${n}`:"dynamic",param:e.slice(1,-1)}:null}function r(e){return"catchall"===e||"catchall-intercepted-(..)(..)"===e||"catchall-intercepted-(.)"===e||"catchall-intercepted-(..)"===e||"catchall-intercepted-(...)"===e||"optional-catchall"===e}function o(e){let t=!1,n=!1;switch(e){case"catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":t=!0;break;case"optional-catchall":t=!0,n=!0}return{repeat:t,optional:n}}}(Ie)),Ie);function o(e,t,o,a){const i=structuredClone(t),s=[{tree:e,depth:0}],c=o.split("/").slice(1);for(;s.length>0;){const{tree:e,depth:t}=s.pop(),{segment:o,parallelRoutes:u}=(0,n.parseLoaderTree)(e),l=(0,r.getSegmentParam)(o);if(l&&!i.hasOwnProperty(l.param)&&!a?.has(l.param))switch(l.type){case"catchall":case"optional-catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":const e=c.slice(t).flatMap(e=>{const t=(0,r.getSegmentParam)(e);return t?i[t.param]:e}).filter(e=>void 0!==e);e.length>0&&(i[l.param]=e);break;case"dynamic":case"dynamic-intercepted-(..)(..)":case"dynamic-intercepted-(.)":case"dynamic-intercepted-(..)":case"dynamic-intercepted-(...)":if(t<c.length){const e=c[t],n=(0,r.getSegmentParam)(e);i[l.param]=n?i[n.param]:e}break;default:l.type}let f=t;o.startsWith("(")&&o.endsWith(")")||""===o||f++;for(const e of Object.values(u))s.push({tree:e,depth:f})}return i}function a(e,n,r,o){let a=function(e,t,n){let r=e[t];if(n?.has(t)){const[e]=n.get(t);r=e}else Array.isArray(r)?r=r.map(e=>encodeURIComponent(e)):"string"==typeof r&&(r=encodeURIComponent(r));return r}(e,n,o);if(!a||0===a.length){if("oc"===r)return{param:n,value:null,type:r,treeSegment:[n,"",r]};throw Object.defineProperty(new t.InvariantError(`Missing value for segment key: "${n}" with dynamic param type: ${r}`),"__NEXT_ERROR_CODE",{value:"E864",enumerable:!1,configurable:!0})}return{param:n,value:a,treeSegment:[n,Array.isArray(a)?a.join("/"):a,r],type:r}}const i=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function s(e){const t=e.match(i);return c(t?t[2]:e)}function c(e){const t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));const n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}}(Pe)),Pe}function $e(){return Ae||(Ae=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{getNamedMiddlewareRegex:function(){return f},getNamedRouteRegex:function(){return l},getRouteRegex:function(){return s}});const t=(ye||(ye=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{ACTION_SUFFIX:function(){return p},APP_DIR_ALIAS:function(){return k},CACHE_ONE_YEAR:function(){return P},DOT_NEXT_ALIAS:function(){return M},ESLINT_DEFAULT_DIRS:function(){return te},GSP_NO_RETURNED_VALUE:function(){return V},GSSP_COMPONENT_MEMBER_ERROR:function(){return Z},GSSP_NO_RETURNED_VALUE:function(){return q},HTML_CONTENT_TYPE_HEADER:function(){return n},INFINITE_CACHE:function(){return w},INSTRUMENTATION_HOOK_FILENAME:function(){return A},JSON_CONTENT_TYPE_HEADER:function(){return r},MATCHED_PATH_HEADER:function(){return i},MIDDLEWARE_FILENAME:function(){return O},MIDDLEWARE_LOCATION_REGEXP:function(){return N},NEXT_BODY_SUFFIX:function(){return x},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return j},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return _},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return y},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return R},NEXT_CACHE_TAGS_HEADER:function(){return g},NEXT_CACHE_TAG_MAX_ITEMS:function(){return v},NEXT_CACHE_TAG_MAX_LENGTH:function(){return E},NEXT_DATA_SUFFIX:function(){return h},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return a},NEXT_META_SUFFIX:function(){return m},NEXT_QUERY_PARAM_PREFIX:function(){return o},NEXT_RESUME_HEADER:function(){return b},NON_STANDARD_NODE_ENV:function(){return J},PAGES_DIR_ALIAS:function(){return C},PRERENDER_REVALIDATE_HEADER:function(){return s},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return c},PROXY_FILENAME:function(){return T},PROXY_LOCATION_REGEXP:function(){return S},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return H},ROOT_DIR_ALIAS:function(){return I},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return W},RSC_ACTION_ENCRYPTION_ALIAS:function(){return F},RSC_ACTION_PROXY_ALIAS:function(){return L},RSC_ACTION_VALIDATE_ALIAS:function(){return D},RSC_CACHE_WRAPPER_ALIAS:function(){return X},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return U},RSC_MOD_REF_PROXY_ALIAS:function(){return $},RSC_PREFETCH_SUFFIX:function(){return u},RSC_SEGMENTS_DIR_SUFFIX:function(){return l},RSC_SEGMENT_SUFFIX:function(){return f},RSC_SUFFIX:function(){return d},SERVER_PROPS_EXPORT_ERROR:function(){return Y},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return B},SERVER_PROPS_SSG_CONFLICT:function(){return K},SERVER_RUNTIME:function(){return ne},SSG_FALLBACK_EXPORT_ERROR:function(){return ee},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return z},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return G},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return t},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return Q},WEBPACK_LAYERS:function(){return ae},WEBPACK_RESOURCE_QUERIES:function(){return ie},WEB_SOCKET_MAX_RECONNECTIONS:function(){return re}});const t="text/plain",n="text/html; charset=utf-8",r="application/json; charset=utf-8",o="nxtP",a="nxtI",i="x-matched-path",s="x-prerender-revalidate",c="x-prerender-revalidate-if-generated",u=".prefetch.rsc",l=".segments",f=".segment.rsc",d=".rsc",p=".action",h=".json",m=".meta",x=".body",g="x-next-cache-tags",_="x-next-revalidated-tags",y="x-next-revalidate-tag-token",b="next-resume",v=128,E=256,R=1024,j="_N_T_",P=31536e3,w=4294967294,O="middleware",N=`(?:src/)?${O}`,T="proxy",S=`(?:src/)?${T}`,A="instrumentation",C="private-next-pages",M="private-dot-next",I="private-next-root-dir",k="private-next-app-dir",$="private-next-rsc-mod-ref-proxy",D="private-next-rsc-action-validate",L="private-next-rsc-server-reference",X="private-next-rsc-cache-wrapper",U="private-next-rsc-track-dynamic-import",F="private-next-rsc-action-encryption",W="private-next-rsc-action-client-wrapper",H="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",z="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",B="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",K="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",G="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",Y="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",V="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",q="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",Q="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",Z="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",J='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',ee="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",te=["app","pages","components","lib","src"],ne={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},re=12,oe={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},ae={...oe,GROUP:{builtinReact:[oe.reactServerComponents,oe.actionBrowser],serverOnly:[oe.reactServerComponents,oe.actionBrowser,oe.instrument,oe.middleware],neutralTarget:[oe.apiNode,oe.apiEdge],clientOnly:[oe.serverSideRendering,oe.appPagesBrowser],bundled:[oe.reactServerComponents,oe.actionBrowser,oe.serverSideRendering,oe.appPagesBrowser,oe.shared,oe.instrument,oe.middleware],appPages:[oe.reactServerComponents,oe.serverSideRendering,oe.appPagesBrowser,oe.actionBrowser]}},ie={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}}(ve)),ve),n=ae(),r=(Ee||(Ee=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return r}});const t=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function r(e){return t.test(e)?e.replace(n,"\\$&"):e}}(Re)),Re),o=T(),a=ke();function i(e,t,i){const s={};let c=1;const u=[];for(const l of(0,o.removeTrailingSlash)(e).slice(1).split("/")){const e=n.INTERCEPTION_ROUTE_MARKERS.find(e=>l.startsWith(e)),o=l.match(a.PARAMETER_PATTERN);if(e&&o&&o[2]){const{key:t,optional:n,repeat:i}=(0,a.parseMatchedParameter)(o[2]);s[t]={pos:c++,repeat:i,optional:n},u.push(`/${(0,r.escapeStringRegexp)(e)}([^/]+?)`)}else if(o&&o[2]){const{key:e,repeat:t,optional:n}=(0,a.parseMatchedParameter)(o[2]);s[e]={pos:c++,repeat:t,optional:n},i&&o[1]&&u.push(`/${(0,r.escapeStringRegexp)(o[1])}`);let l=t?n?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";i&&o[1]&&(l=l.substring(1)),u.push(l)}else u.push(`/${(0,r.escapeStringRegexp)(l)}`);t&&o&&o[3]&&u.push((0,r.escapeStringRegexp)(o[3]))}return{parameterizedRoute:u.join(""),groups:s}}function s(e,{includeSuffix:t=!1,includePrefix:n=!1,excludeOptionalTrailingSlash:r=!1}={}){const{parameterizedRoute:o,groups:a}=i(e,t,n);let s=o;return r||(s+="(?:/)?"),{re:new RegExp(`^${s}$`),groups:a}}function c({interceptionMarker:e,getSafeRouteKey:t,segment:n,routeKeys:o,keyPrefix:i,backreferenceDuplicateKeys:s}){const{key:c,optional:u,repeat:l}=(0,a.parseMatchedParameter)(n);let f=c.replace(/\W/g,"");i&&(f=`${i}${f}`);let d=!1;(0===f.length||f.length>30)&&(d=!0),isNaN(parseInt(f.slice(0,1)))||(d=!0),d&&(f=t());const p=f in o;o[f]=i?`${i}${c}`:c;const h=e?(0,r.escapeStringRegexp)(e):"";let m;return m=p&&s?`\\k<${f}>`:l?`(?<${f}>.+?)`:`(?<${f}>[^/]+?)`,{key:c,pattern:u?`(?:/${h}${m})?`:`/${h}${m}`,cleanedKey:f,optional:u,repeat:l}}function u(e,i,s,u,l,f={names:{},intercepted:{}}){const d=function(){let e=0;return()=>{let t="",n=++e;for(;n>0;)t+=String.fromCharCode(97+(n-1)%26),n=Math.floor((n-1)/26);return t}}(),p={},h=[],m=[];f=structuredClone(f);for(const x of(0,o.removeTrailingSlash)(e).slice(1).split("/")){const e=n.INTERCEPTION_ROUTE_MARKERS.some(e=>x.startsWith(e)),o=x.match(a.PARAMETER_PATTERN),g=e?o?.[1]:void 0;let _;if(g&&o?.[2]?(_=i?t.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,f.intercepted[o[2]]=g):_=o?.[2]&&f.intercepted[o[2]]?i?t.NEXT_INTERCEPTION_MARKER_PREFIX:void 0:i?t.NEXT_QUERY_PARAM_PREFIX:void 0,g&&o&&o[2]){const{key:e,pattern:t,cleanedKey:n,repeat:r,optional:a}=c({getSafeRouteKey:d,interceptionMarker:g,segment:o[2],routeKeys:p,keyPrefix:_,backreferenceDuplicateKeys:l});h.push(t),m.push(`/${o[1]}:${f.names[e]??n}${r?a?"*":"+":""}`),f.names[e]??=n}else if(o&&o[2]){u&&o[1]&&(h.push(`/${(0,r.escapeStringRegexp)(o[1])}`),m.push(`/${o[1]}`));const{key:e,pattern:t,cleanedKey:n,repeat:a,optional:i}=c({getSafeRouteKey:d,segment:o[2],routeKeys:p,keyPrefix:_,backreferenceDuplicateKeys:l});let s=t;u&&o[1]&&(s=s.substring(1)),h.push(s),m.push(`/:${f.names[e]??n}${a?i?"*":"+":""}`),f.names[e]??=n}else h.push(`/${(0,r.escapeStringRegexp)(x)}`),m.push(`/${x}`);s&&o&&o[3]&&(h.push((0,r.escapeStringRegexp)(o[3])),m.push(o[3]))}return{namedParameterizedRoute:h.join(""),routeKeys:p,pathToRegexpPattern:m.join(""),reference:f}}function l(e,t){const n=u(e,t.prefixRouteKeys,t.includeSuffix??!1,t.includePrefix??!1,t.backreferenceDuplicateKeys??!1,t.reference);let r=n.namedParameterizedRoute;return t.excludeOptionalTrailingSlash||(r+="(?:/)?"),{...s(e,t),namedRegex:`^${r}$`,routeKeys:n.routeKeys,pathToRegexpPattern:n.pathToRegexpPattern,reference:n.reference}}function f(e,t){const{parameterizedRoute:n}=i(e,!1,!1),{catchAll:r=!0}=t;if("/"===n){return{namedRegex:`^/${r?".*":""}$`}}const{namedParameterizedRoute:o}=u(e,!1,!1,!1,!1,void 0);return{namedRegex:`^${o}${r?"(?:(/.*)?)":""}$`}}}(be)),be}function De(){return Me||(Me=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});const n=g(),r=b(),o=(v||(v=1,function(e){function t(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}})}(E)),E),a=P(),i=I(),s=W(),c=ie(),u=(Ce||(Ce=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return r}});const t=_e(),n=$e();function r(e,r,o){let a="";const i=(0,n.getRouteRegex)(e),s=i.groups,c=(r!==e?(0,t.getRouteMatcher)(i)(r):"")||o;a=e;const u=Object.keys(s);return u.every(e=>{let t=c[e]||"";const{repeat:n,optional:r}=s[e];let o=`[${n?"...":""}${e}]`;return r&&(o=`${t?"":"/"}[${o}]`),n&&!Array.isArray(t)&&(t=[t]),(r||e in c)&&(a=a.replace(o,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:u,result:a}}}(ce)),ce),l=$e(),f=_e();function d(e,t,d){let p,h="string"==typeof t?t:(0,r.formatWithValidation)(t);const m=h.match(/^[a-z][a-z0-9+.-]*:\/\//i),x=m?h.slice(m[0].length):h;if((x.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error(`Invalid href '${h}' passed to next/router in page: '${e.pathname}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);const t=(0,a.normalizeRepeatedSlashes)(x);h=(m?m[0]:"")+t}if(!(0,s.isLocalURL)(h))return d?[h]:h;try{let t=h.startsWith("#")?e.asPath:e.pathname;if(h.startsWith("?")&&(t=e.asPath,(0,c.isDynamicRoute)(e.pathname))){t=e.pathname;const n=(0,l.getRouteRegex)(e.pathname);(0,f.getRouteMatcher)(n)(e.asPath)||(t=e.asPath)}p=new URL(t,"http://n")}catch(e){p=new URL("/","http://n")}try{const e=new URL(h,p);e.pathname=(0,i.normalizePathTrailingSlash)(e.pathname);let t="";if((0,c.isDynamicRoute)(e.pathname)&&e.searchParams&&d){const a=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:i,params:s}=(0,u.interpolateAs)(e.pathname,e.pathname,a);i&&(t=(0,r.formatWithValidation)({pathname:i,hash:e.hash,query:(0,o.omit)(a,s)}))}const a=e.origin===p.origin?e.href.slice(e.origin.length):e.href;return d?[a,t||a]:a}catch(e){return d?[h]:h}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(m,m.exports)),m.exports}var Le,Xe,Ue,Fe={exports:{}},We={},He={};function ze(){return Le||(Le=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return n}});const t=M();function n(e,n){if(!e.startsWith("/")||!n)return e;const{pathname:r,query:o,hash:a}=(0,t.parsePath)(e);return`${n}${r}${o}${a}`}}(He)),He}function Be(){return Xe||(Xe=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return r}});const t=ze(),n=F();function r(e,r,o,a){if(!r||r===o)return e;const i=e.toLowerCase();if(!a){if((0,n.pathHasPrefix)(i,"/api"))return e;if((0,n.pathHasPrefix)(i,`/${r.toLowerCase()}`))return e}return(0,t.addPathPrefix)(e,`/${r}`)}}(We)),We}var Ke,Ge,Ye={},Ve={};function qe(){if(Ke)return Ve;return Ke=1,Ve._=function(e){return e&&e.__esModule?e:{default:e}},Ve}var Qe,Ze,Je={exports:{}},et={exports:{}};function tt(){return Ze||(Ze=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"useIntersection",{enumerable:!0,get:function(){return u}});const r=t,o=(Qe||(Qe=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});const n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(et,et.exports)),et.exports),a="function"==typeof IntersectionObserver,i=new Map,s=[];function c(e,t,n){const{id:r,observer:o,elements:a}=function(e){const t={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===t.root&&e.margin===t.margin);let r;if(n&&(r=i.get(n),r))return r;const o=new Map,a=new IntersectionObserver(e=>{e.forEach(e=>{const t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return r={id:t,observer:a,elements:o},s.push(t),i.set(t,r),r}(n);return a.set(e,t),o.observe(e),function(){if(a.delete(e),o.unobserve(e),0===a.size){o.disconnect(),i.delete(r);const e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}function u({rootRef:e,rootMargin:t,disabled:n}){const i=n||!a,[s,u]=(0,r.useState)(!1),l=(0,r.useRef)(null),f=(0,r.useCallback)(e=>{l.current=e},[]);(0,r.useEffect)(()=>{if(a){if(i||s)return;const n=l.current;if(n&&n.tagName){return c(n,e=>e&&u(e),{root:e?.current,rootMargin:t})}}else if(!s){const e=(0,o.requestIdleCallback)(()=>u(!0));return()=>(0,o.cancelIdleCallback)(e)}},[i,t,e,s,l.current]);const d=(0,r.useCallback)(()=>{u(!1)},[]);return[f,s,d]}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),e.exports=n.default)}(Je,Je.exports)),Je.exports}var nt,rt,ot={exports:{}},at={exports:{}},it={};function st(){return nt||(nt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});const t=new WeakMap;function n(e,n){if(!n)return{pathname:e};let r,o=t.get(n);o||(o=n.map(e=>e.toLowerCase()),t.set(n,o));const a=e.split("/",2);if(!a[1])return{pathname:e};const i=a[1].toLowerCase(),s=o.indexOf(i);return s<0?{pathname:e}:(r=n[s],{pathname:e=e.slice(r.length+1)||"/",detectedLocale:r})}}(it)),it}var ct,ut,lt,ft={exports:{}},dt={};function pt(){return ct||(ct=1,function(e){function t(e,t,n){if(e){n&&(n=n.toLowerCase());for(const r of e){const e=r.domain?.split(":",1)[0].toLowerCase();if(t===e||n===r.defaultLocale.toLowerCase()||r.locales?.some(e=>e.toLowerCase()===n))return r}}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}})}(dt)),dt}function ht(){return lt||(lt=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}});const n=I(),r=process.env.__NEXT_ROUTER_BASEPATH||"";function o(e,t,o,a){if(process.env.__NEXT_I18N_SUPPORT){const i=(rt||(rt=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});const n=(e,t)=>process.env.__NEXT_I18N_SUPPORT?st().normalizeLocalePath(e,t):{pathname:e,detectedLocale:void 0};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(at,at.exports)),at.exports).normalizeLocalePath,s=(ut||(ut=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return n}});const n=(...e)=>{if(process.env.__NEXT_I18N_SUPPORT)return pt().detectDomainLocale(...e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ft,ft.exports)),ft.exports).detectDomainLocale,c=t||i(e,o).detectedLocale,u=s(a,void 0,c);if(u){const t=`http${u.http?"":"s"}://`,o=c===u.defaultLocale?"":`/${c}`;return`${t}${u.domain}${(0,n.normalizePathTrailingSlash)(`${r}${o}${e}`)}`}return!1}return!1}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ot,ot.exports)),ot.exports}var mt,xt={exports:{}};var gt,_t={exports:{}};var yt,bt,vt,Et,Rt={};function jt(){return bt||(bt=1,function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(r,{default:function(){return w},useLinkStatus:function(){return j}});const o=e,a=p()._(t),i=De(),s=W(),c=b(),u=P(),l=(Ue||(Ue=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}});const n=I(),r=(e,...t)=>process.env.__NEXT_I18N_SUPPORT?(0,n.normalizePathTrailingSlash)(Be().addLocale(e,...t)):e;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Fe,Fe.exports)),Fe.exports),f=(Ge||(Ge=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=qe()._(t).default.createContext(null);"production"!==process.env.NODE_ENV&&(n.displayName="RouterContext")}(Ye)),Ye),d=tt(),h=ht(),m=(mt||(mt=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});const n=ze(),r=I(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function a(e,t){return(0,r.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!t?e:(0,n.addPathPrefix)(e,o))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(xt,xt.exports)),xt.exports),x=(gt||(gt=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"useMergedRef",{enumerable:!0,get:function(){return o}});const r=t;function o(e,t){const n=(0,r.useRef)(null),o=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){const e=n.current;e&&(n.current=null,e());const t=o.current;t&&(o.current=null,t())}else e&&(n.current=a(e,r)),t&&(o.current=a(t,r))},[e,t])}function a(e,t){if("function"==typeof e){const n=e(t);return"function"==typeof n?n:()=>e(null)}return e.current=t,()=>{e.current=null}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),e.exports=n.default)}(_t,_t.exports)),_t.exports),g=(yt||(yt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"errorOnce",{enumerable:!0,get:function(){return t}});let t=e=>{};if("production"!==process.env.NODE_ENV){const e=new Set;t=t=>{e.has(t)||console.error(t),e.add(t)}}}(Rt)),Rt),_=new Set;function y(e,t,n,r){if("undefined"!=typeof window&&(0,s.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){const o=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(_.has(o))return;_.add(o)}e.prefetch(t,n,r).catch(e=>{if("production"!==process.env.NODE_ENV)throw e})}}function v(e){return"string"==typeof e?e:(0,c.formatUrl)(e)}const E=a.default.forwardRef(function(e,t){let n;const{href:r,as:c,children:p,prefetch:_=null,passHref:b,replace:E,shallow:R,scroll:j,locale:P,onClick:w,onNavigate:O,onMouseEnter:N,onTouchStart:T,legacyBehavior:S=!1,...A}=e;n=p,!S||"string"!=typeof n&&"number"!=typeof n||(n=(0,o.jsx)("a",{children:n}));const C=a.default.useContext(f.RouterContext),M=!1!==_;if("production"!==process.env.NODE_ENV){function K(e){return Object.defineProperty(new Error(`Failed prop type: The prop \`${e.key}\` expects a ${e.expected} in \`<Link>\`, but got \`${e.actual}\` instead.`+("undefined"!=typeof window?"\nOpen your browser's console to view the Component stack trace.":"")),"__NEXT_ERROR_CODE",{value:"E319",enumerable:!1,configurable:!0})}const G={href:!0};Object.keys(G).forEach(t=>{if("href"===t&&(null==e[t]||"string"!=typeof e[t]&&"object"!=typeof e[t]))throw K({key:t,expected:"`string` or `object`",actual:null===e[t]?"null":typeof e[t]})});const Y={as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0,onNavigate:!0};Object.keys(Y).forEach(t=>{const n=typeof e[t];if("as"===t){if(e[t]&&"string"!==n&&"object"!==n)throw K({key:t,expected:"`string` or `object`",actual:n})}else if("locale"===t){if(e[t]&&"string"!==n)throw K({key:t,expected:"`string`",actual:n})}else if("onClick"===t||"onMouseEnter"===t||"onTouchStart"===t||"onNavigate"===t){if(e[t]&&"function"!==n)throw K({key:t,expected:"`function`",actual:n})}else if("replace"===t||"scroll"===t||"shallow"===t||"passHref"===t||"legacyBehavior"===t){if(null!=e[t]&&"boolean"!==n)throw K({key:t,expected:"`boolean`",actual:n})}else if("prefetch"===t&&null!=e[t]&&"boolean"!==n&&"auto"!==e[t])throw K({key:t,expected:'`boolean | "auto"`',actual:n})})}const{href:I,as:k}=a.default.useMemo(()=>{if(!C){const e=v(r);return{href:e,as:c?v(c):e}}const[e,t]=(0,i.resolveHref)(C,r,!0);return{href:e,as:c?(0,i.resolveHref)(C,c):t||e}},[C,r,c]),$=a.default.useRef(I),D=a.default.useRef(k);let L;if(S)if("development"===process.env.NODE_ENV){w&&console.warn(`"onClick" was passed to <Link> with \`href\` of \`${r}\` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link`),N&&console.warn(`"onMouseEnter" was passed to <Link> with \`href\` of \`${r}\` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link`);try{L=a.default.Children.only(n)}catch(V){if(!n)throw Object.defineProperty(new Error(`No children were passed to <Link> with \`href\` of \`${r}\` but one child is required https://nextjs.org/docs/messages/link-no-children`),"__NEXT_ERROR_CODE",{value:"E320",enumerable:!1,configurable:!0});throw Object.defineProperty(new Error(`Multiple children were passed to <Link> with \`href\` of \`${r}\` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children`+("undefined"!=typeof window?" \nOpen your browser's console to view the Component stack trace.":"")),"__NEXT_ERROR_CODE",{value:"E266",enumerable:!1,configurable:!0})}}else L=a.default.Children.only(n);else if("development"===process.env.NODE_ENV&&"a"===n?.type)throw Object.defineProperty(new Error("Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.\nLearn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor"),"__NEXT_ERROR_CODE",{value:"E209",enumerable:!1,configurable:!0});const X=S?L&&"object"==typeof L&&L.ref:t,[U,F,W]=(0,d.useIntersection)({rootMargin:"200px"}),H=a.default.useCallback(e=>{D.current===k&&$.current===I||(W(),D.current=k,$.current=I),U(e)},[k,I,W,U]),z=(0,x.useMergedRef)(H,X);a.default.useEffect(()=>{"production"===process.env.NODE_ENV&&C&&F&&M&&y(C,I,k,{locale:P})},[k,I,F,P,M,C?.locale,C]);const B={ref:z,onClick(e){if("production"!==process.env.NODE_ENV&&!e)throw Object.defineProperty(new Error('Component rendered inside next/link has to pass click event to "onClick" prop.'),"__NEXT_ERROR_CODE",{value:"E312",enumerable:!1,configurable:!0});S||"function"!=typeof w||w(e),S&&L.props&&"function"==typeof L.props.onClick&&L.props.onClick(e),C&&(e.defaultPrevented||function(e,t,n,r,o,a,i,c,u){const{nodeName:l}=e.currentTarget;if("A"===l.toUpperCase()&&function(e){const t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))return;if(!(0,s.isLocalURL)(n))return void(o&&(e.preventDefault(),location.replace(n)));e.preventDefault(),(()=>{if(u){let e=!1;if(u({preventDefault:()=>{e=!0}}),e)return}const e=i??!0;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:a,locale:c,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})})()}(e,C,I,k,E,R,j,P,O))},onMouseEnter(e){S||"function"!=typeof N||N(e),S&&L.props&&"function"==typeof L.props.onMouseEnter&&L.props.onMouseEnter(e),C&&y(C,I,k,{locale:P,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:process.env.__NEXT_LINK_NO_TOUCH_START?void 0:function(e){S||"function"!=typeof T||T(e),S&&L.props&&"function"==typeof L.props.onTouchStart&&L.props.onTouchStart(e),C&&y(C,I,k,{locale:P,priority:!0,bypassPrefetchedCheck:!0})}};if((0,u.isAbsoluteUrl)(k))B.href=k;else if(!S||b||"a"===L.type&&!("href"in L.props)){const q=void 0!==P?P:C?.locale,Q=C?.isLocaleDomain&&(0,h.getDomainLocale)(k,q,C?.locales,C?.domainLocales);B.href=Q||(0,m.addBasePath)((0,l.addLocale)(k,q,C?.defaultLocale))}return S?("development"===process.env.NODE_ENV&&(0,g.errorOnce)("`legacyBehavior` is deprecated and will be removed in a future release. A codemod is available to upgrade your components:\n\nnpx @next/codemod@latest new-link .\n\nLearn more: https://nextjs.org/docs/app/building-your-application/upgrading/codemods#remove-a-tags-from-link-components"),a.default.cloneElement(L,B)):(0,o.jsx)("a",{...A,...B,children:n})}),R=(0,a.createContext)({pending:!1}),j=()=>(0,a.useContext)(R),w=E;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),n.exports=r.default)}(f,f.exports)),f.exports}var Pt=u(Et?vt:(Et=1,vt=jt()));const wt={"neu-flat":{base:"neu-flat",hover:"hover:neu-inset"},"neu-raised":{base:"neu-raised",hover:"hover:neu-inset"},"neu-inset":{base:"neu-inset",hover:"hover:neu-flat"}};exports.Accordion=function({items:n}){const[r,o]=t.useState(Array(n.length).fill(!1));return e.jsx("div",{"data-looply":!0,className:"flex flex-col gap-4 max-w-3xl font-inter",children:n.map((t,a)=>e.jsxs("div",{className:"neu-flat p-5 cursor-pointer",onClick:()=>function(e){o(t=>{const r=Array(n.length).fill(!1);return r[e]=!t[e],r})}(a),children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h2",{className:"text-base text-gray-700 dark:text-gray-100",children:t.title}),e.jsx("div",{className:"neu-inset w-8 h-8 flex items-center justify-center flex-shrink-0 !rounded-full",children:e.jsx("svg",{className:"w-4 h-4 transition-transform duration-200 text-gray-500 dark:text-gray-300 "+(r[a]?"rotate-45":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 5v14M5 12h14"})})})]}),e.jsx("div",{className:"overflow-hidden transition-all duration-200 "+(r[a]?"max-h-96 opacity-100 mt-4":"max-h-0 opacity-0"),children:e.jsx("div",{className:"neu-inset p-4",children:e.jsx("p",{className:"text-gray-600 dark:text-gray-300 text-sm leading-relaxed",children:t.text})})})]},a))})},exports.BarChart=function({content:t}){const n=t.map((e,t)=>r[t%r.length]),o=t.reduce((e,t)=>Math.max(e,t.size),0),a=t.map(e=>e.size/o*300);return e.jsxs("div",{"data-looply":!0,className:"w-full max-w-[650px] flex flex-row gap-[10px] items-end px-3 sm:px-[25px] pt-[25px] neu-flat h-[200px] sm:h-[300px]",children:[e.jsxs("div",{className:"border-r border-gray-300 dark:border-gray-600 h-full mb-[10px] mr-[20px] pr-[10px] flex flex-col justify-between text-[10px] sm:text-xs dark:text-gray-300",children:[e.jsxs("p",{children:[Math.floor(Math.max(o))," "]}),e.jsx("p",{children:Math.floor(Math.max(o)/1.5)}),e.jsx("p",{children:Math.floor(Math.max(o)/2)}),e.jsx("p",{children:Math.floor(Math.max(o)/3)}),e.jsx("p",{children:"0"})]}),t.map((t,r)=>e.jsxs("div",{className:"flex flex-col items-center justify-end h-full w-full ",children:[e.jsx("div",{className:"w-full rounded-t-md neu-inset",style:{height:`${a[r]}px`,backgroundColor:n[r]}}),e.jsx("p",{className:"text-[10px] sm:text-xs text-center m-1 dark:text-gray-300 truncate w-full",children:t.lable})]},r))]})},exports.Buttons=function({buttonObj:t}){return e.jsx(e.Fragment,{children:e.jsx("div",{className:"neu-raised p-8 flex flex-row flex-wrap gap-5 sm:h-auto h-auto lg:h-[6rem]",children:t.map((t,n)=>{var r,a,i;const s=o[null!==(r=t.buttonType)&&void 0!==r?r:"neu-flat"];return e.jsx("div",{children:e.jsxs("button",{className:`${s} !rounded-lg cursor-pointer flex items-center gap-2`,style:{paddingInline:`${null!==(a=t.buttonX)&&void 0!==a?a:20}px`,paddingBlock:`${null!==(i=t.buttonY)&&void 0!==i?i:8}px`},onClick:()=>t.href&&(window.location.href=t.href),children:[t.icon&&e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:"w-5 h-5",children:e.jsx("path",{d:t.icon})}),t.buttonText]})},n)})})})},exports.Calendar=function(){const n=(new Date).getMonth(),r=(new Date).getFullYear(),[o,i]=t.useState(n),[s,c]=t.useState(r),[u,l]=t.useState(null),f=o===n&&s===r?(new Date).getDate():-1;return e.jsx(e.Fragment,{children:e.jsxs("div",{className:"neu-inset w-full max-w-[25rem] p-4 sm:p-8",children:[e.jsxs("div",{className:"flex justify-between items-center mb-4",children:[e.jsx("button",{className:"neu-btn px-3 py-1 text-sm",onClick:function(){0===o?(i(11),c(s-1)):i(o-1)},children:"←"}),e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-lg font-semibold",children:new Date(s,o).toLocaleString("default",{month:"long"})}),e.jsx("p",{className:"text-xs text-gray-400",children:s})]}),e.jsx("button",{className:"neu-btn px-3 py-1 text-sm",onClick:function(){11===o?(i(0),c(s+1)):i(o+1)},children:"→"})]}),e.jsx("div",{className:"grid grid-cols-7 gap-2 mb-2",children:["Su","Mo","Tu","We","Th","Fr","Sa"].map(t=>e.jsx("div",{className:"text-center text-xs text-gray-400 font-medium",children:t},t))}),e.jsx("div",{children:a(s,o,f,u,l)})]})})},exports.CalloutCard=function({callOut:t}){return e.jsx(e.Fragment,{children:e.jsx("div",{className:"flex flex-col gap-6 w-full",children:t.map((t,n)=>e.jsxs("div",{className:`${i[t.styleType]} w-full px-10 py-8 flex flex-col md:flex-row items-center justify-between gap-8 overflow-hidden relative`,style:{borderRadius:s[t.radiusType]},children:[e.jsxs("div",{className:"flex flex-col gap-3 w-full md:max-w-[60%] z-10",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:t.header}),e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 leading-relaxed",children:t.subHeader}),t.buttons&&t.buttons.length>0&&e.jsx("div",{className:"flex flex-row gap-3 mt-2",children:t.buttons.map((t,n)=>e.jsx("button",{className:"neu-btn px-6 py-2.5 font-medium text-sm text-gray-900 dark:text-gray-100 cursor-pointer transition-all duration-200",onClick:()=>t.href&&(window.location.href=t.href),children:t.label},n))})]}),t.imageUrl&&e.jsx("div",{className:"w-full md:w-[35%] h-48 flex-shrink-0",children:e.jsx("img",{src:t.imageUrl,alt:t.header,className:"w-full h-full object-contain"})})]},n))})})},exports.Card=function({cards:t}){return e.jsx("div",{className:"flex flex-row gap-5 flex-wrap items-start",children:t.map((t,n)=>{var r;return e.jsx("div",{"data-looply":!0,children:e.jsxs("div",{className:`${c[t.cardStyle]} lg:w-[22rem] h-[400px] px-10 py-8 flex flex-col gap-6 font-inter sm:w-full md:w-[20rem] h-full`,children:[t.imageUrl&&e.jsx("div",{className:"w-full h-40 rounded-lg overflow-hidden -mx-10 -mt-8 mx-auto",style:{width:"calc(100% + 5rem)",marginLeft:"-2.5rem"},children:e.jsx("img",{src:t.imageUrl,alt:t.headerText,className:"w-full h-full object-cover"})}),e.jsxs("section",{children:[e.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100 mb-1",children:t.headerText}),e.jsx("p",{className:"text-gray-500 dark:text-gray-400 text-sm",children:t.subHeaderText})]}),e.jsx("section",{children:e.jsx("p",{className:"text-gray-700 dark:text-gray-300 text-sm leading-relaxed",children:t.descriptionText})}),e.jsx("section",{className:"flex flex-row gap-3 mt-auto",children:null===(r=t.buttons)||void 0===r?void 0:r.map((t,n)=>e.jsx("button",{className:"neu-btn px-5 py-2 font-medium text-sm text-gray-900 dark:text-gray-100",onClick:()=>t.href&&(window.location.href=t.href),children:t.label},n))})]})},n)})})},exports.Carousel=function({card:r}){const o=t.useRef(0),a=t.useRef(null);return t.useEffect(()=>{const e=a.current;if(!e)return;const t=e.offsetWidth,n=e.scrollWidth,r=()=>{o.current+=.5,o.current>=n-t&&(o.current=0),e.style.transform=`translateX(-${o.current}px)`,requestAnimationFrame(r)},i=requestAnimationFrame(r);return()=>cancelAnimationFrame(i)},[]),e.jsx("div",{"data-looply":!0,className:"neu-flat w-full max-w-[calc(100vw-2rem)] sm:max-w-5xl mx-auto h-[25rem] flex flex-col gap-5 p-4 sm:p-10 overflow-hidden",children:e.jsx("div",{ref:a,className:"flex flex-row gap-5 flex-1 flex-nowrap",children:r.map((t,r)=>e.jsxs("div",{className:"neu-inset w-[16rem] sm:w-[22rem] flex-shrink-0 overflow-hidden",children:[e.jsx(n,{src:t.image,width:352,height:200,alt:t.text,className:"w-full h-32 sm:h-48 object-cover rounded-t-[var(--neu-radius)]"}),e.jsx("p",{className:"p-3 sm:p-5 text-gray-900 dark:text-gray-100 font-inter text-xs sm:text-sm",children:t.text})]},r))})})},exports.Chat=function({title:r,img:o,propt:a,endpoint:i="/api/chat"}){const[s,c]=t.useState(""),[u,l]=t.useState([]),[f,d]=t.useState(!1);async function p(e){d(!0);const t=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:e})}),n=(await t.json()).message;l([...u,{user:e,bot:n}]),console.log(u),d(!1)}function h(){p(s),c("")}return e.jsx(e.Fragment,{children:e.jsxs("div",{"data-looply":!0,className:"w-full max-w-[37rem] neu-inset px-5 sm:px-10 py-5 overflow-auto h-full",children:[e.jsxs("div",{className:"flex flex-row gap-5 pb-2",children:[e.jsx(n,{className:"p-2 bg-gray-50 rounded-full flex flex-row",src:o,width:40,height:40,alt:"chat-img"}),e.jsx("h1",{className:"text-xl text-gray-800 dark:text-gray-100",children:r})]}),e.jsxs("div",{className:"flex flex-col h-51 ",children:[e.jsx("div",{className:"flex justify-center mb-4",children:e.jsx("button",{className:"neu-btn p-1 pl-3 pr-3 text-sm dark:text-gray-300",onClick:function(){p(a)},children:a})}),e.jsxs("div",{className:"flex-1 overflow-y-auto",children:[f?e.jsx("p",{children:"Loading..."}):null,u.map((t,n)=>e.jsxs("div",{className:"space-y-3 mb-4",children:[e.jsx("div",{className:"flex justify-end",children:e.jsx("div",{className:"neu-flat p-3",children:e.jsx("p",{className:"text-sm font-medium",children:t.user})})}),e.jsx("div",{className:"flex justify-start",children:e.jsx("div",{className:"neu-inset p-3",children:t.bot.startsWith("data:image/")?e.jsx("img",{src:t.bot,alt:"Generated image",className:"max-w-full h-auto rounded-sm"}):e.jsx("p",{className:"text-sm",children:t.bot})})})]},n))]}),e.jsxs("div",{className:"flex flex-row gap-2 mt-4",children:[e.jsx("input",{className:"flex-1 neu-inset !rounded-lg px-3 py-2 dark:text-gray-100 dark:placeholder-gray-400 outline-none",value:s,onChange:function(e){c(e.target.value)},onKeyDown:function(e){"Enter"===e.key&&h()},type:"text",placeholder:"Type your message..."}),e.jsx("button",{onClick:h,className:"neu-btn px-4 py-2 dark:text-gray-100",children:"Send"})]})]})]})})},exports.Drawer=function({title:n,size:r,colour:o}){const[a,i]=t.useState(Array(r).fill(!1)),[s,c]=t.useState(o);return e.jsxs("div",{"data-looply":!0,className:"neu-inset w-full max-w-[33rem] p-5",children:[e.jsxs("div",{className:"flex gap-10 mb-5",children:[e.jsx("h1",{className:"text-xl font-bold mb-4 dark:text-white",children:n}),e.jsx("button",{onClick:()=>i(Array(r).fill(!1)),className:"neu-btn cursor-pointer px-5 py-0.5 text-sm dark:text-gray-300",children:"Clear"}),e.jsx("input",{type:"color",id:"favcolor",value:s,onChange:e=>c(e.target.value),className:"w-10 h-10 rounded cursor-pointer"})]}),e.jsx("div",{className:"flex flex-wrap flex-row justify-center",children:Array.from({length:r}).map((t,n)=>e.jsx("div",{onMouseEnter:()=>function(e){const t=[...a];t[e]=!0,i(t)}(n),onMouseLeave:()=>function(e){const t=[...a];t[e]=!1,i(t)}(n),style:{backgroundColor:a[n]?s:"transparent"},className:" w-[1rem] h-[1rem] flex justify-center"},n))})]})},exports.DropDown=function({dropDowns:n}){const[r,o]=t.useState(null);return e.jsx(e.Fragment,{children:e.jsx("div",{className:"flex flex-row gap-5 font-inter",children:n.map((t,n)=>{const a=wt[t.dropDownType],i=r===n;return e.jsxs("div",{className:"relative",children:[e.jsxs("button",{onClick:()=>function(e){o(r===e?null:e)}(n),className:`${a.base} !rounded-lg cursor-pointer ${a.hover} transition-all duration-200 px-5 py-2 font-medium text-sm flex items-center gap-2`,children:[t.dropDownMenuLabel,e.jsx("div",{className:"neu-inset w-6 h-6 flex items-center justify-center flex-shrink-0 !rounded-full",children:e.jsx("svg",{className:"w-3 h-3 transition-transform duration-200 text-gray-500 dark:text-gray-300 "+(i?"rotate-180":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),i?e.jsx("div",{className:"absolute mt-2 min-w-[200px] z-10 flex flex-col gap-2 animate-[fadeSlideIn_0.25s_ease-out]",children:t.dropDownItem.map((t,n)=>{var r;return e.jsx(Pt,{href:null!==(r=t.dropDownURL)&&void 0!==r?r:"#",children:e.jsx("div",{className:`${a.base} px-4 py-3 text-sm text-gray-700 dark:text-gray-300 ${a.hover} transition-all duration-200 cursor-pointer`,children:t.dropDownLable})},n)})}):null]},n)})})})},exports.Table=function({tables:t}){return e.jsx("div",{className:"flex flex-col sm:flex-row flex-wrap gap-8 w-full",children:t.map((t,n)=>e.jsxs("div",{className:`no-hover ${t.styleType} p-4 sm:p-6 flex-1 min-w-0 max-w-full overflow-hidden`,children:[t.label&&e.jsx("h2",{className:"text-lg font-semibold mb-4 text-foreground",children:t.label}),e.jsx("div",{className:"overflow-x-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",children:e.jsxs("table",{className:"w-full border-collapse",children:[e.jsx("thead",{children:e.jsx("tr",{children:t.header.map((t,n)=>e.jsx("th",{className:"text-left text-xs sm:text-sm font-semibold text-foreground/70 px-2 sm:px-4 py-2 sm:py-3 border-b border-foreground/10 whitespace-nowrap",children:t},n))})}),e.jsx("tbody",{children:t.rows.map((n,r)=>e.jsx("tr",{className:"transition-colors duration-200 hover:bg-foreground/5",children:t.header.map((t,r)=>e.jsx("td",{className:"px-2 sm:px-4 py-2 sm:py-3 text-xs sm:text-sm text-foreground/90 border-b border-foreground/5 whitespace-nowrap",children:n[t]},r))},r))})]})})]},n))})},exports.TextArea=function({lable:t,helperText:n,resize:r,errorMessage:o,styleType:a}){return e.jsx(e.Fragment,{children:e.jsxs("div",{className:"w-full max-w-[600px]",children:[t&&e.jsx("label",{className:"block text-md font-bold text-foreground mb-2",children:t}),e.jsx("textarea",{placeholder:n,className:` no-hover ${a} w-full min-h-[120px] p-4 rounded-xl bg-transparent text-foreground/90 text-sm placeholder:text-foreground/40 border-none outline-none ${"off"===r?"resize-none":"resize"}`}),o&&e.jsx("p",{className:"text-red-500 text-xs mt-2",children:o})]})})},exports.Toggle=function({lable:n,styleType:r,size:o,onChange:a}){const[i,s]=t.useState(!1),c={sm:{track:"w-[3rem] h-[1.5rem]",thumb:"w-[1.2rem] h-[1.2rem]",translate:"translate-x-[1.5rem]"},md:{track:"w-[4rem] h-[2rem]",thumb:"w-[1.6rem] h-[1.6rem]",translate:"translate-x-[2.1rem]"},lg:{track:"w-[5rem] h-[2.5rem]",thumb:"w-[2rem] h-[2rem]",translate:"translate-x-[2.6rem]"}};return e.jsxs("div",{className:"flex flex-col items-center gap-3",children:[n&&e.jsx("h2",{className:"text-sm dark:text-gray-300",children:n}),e.jsx("div",{onClick:function(){const e=!i;s(e),null==a||a(e)},className:`${r} ${c[o].track} flex items-center rounded-full cursor-pointer p-[3px] no-hover`,children:e.jsx("div",{className:`${r} ${c[o].thumb} rounded-full transition-transform duration-300 bg-gray-900 dark:bg-gray-600 no-hover ${i?c[o].translate:"translate-x-0"}`})})]})};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
+
import "./styles/looply.css";
|
|
2
|
+
import "./app/globals.css";
|
|
1
3
|
export { default as Accordion } from "./components/accordion";
|
|
2
4
|
export { default as BarChart } from "./components/barChart";
|
|
3
|
-
export { default as
|
|
4
|
-
export { default as
|
|
5
|
+
export { default as Buttons } from "./components/buttons";
|
|
6
|
+
export { default as Calendar } from "./components/calendar";
|
|
7
|
+
export { default as CalloutCard } from "./components/calloutCard";
|
|
8
|
+
export { default as Card } from "./components/card";
|
|
9
|
+
export { default as Carousel } from "./components/carousel";
|
|
5
10
|
export { default as Chat } from "./components/chat";
|
|
6
11
|
export { default as Drawer } from "./components/drawer";
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as
|
|
12
|
+
export { default as DropDown } from "./components/dropDown";
|
|
13
|
+
export { default as Table } from "./components/table";
|
|
14
|
+
export { default as TextArea } from "./components/textarea";
|
|
15
|
+
export { default as Toggle } from "./components/toggle";
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as r,Fragment as a}from"react/jsx-runtime";import{useState as t,useRef as l,useEffect as o}from"react";import d from"next/image";import{useTheme as n}from"next-themes";function i({items:a}){const[l,o]=t(Array(a.length).fill(!1));return e("div",{className:"border border-black dark:border-gray-700 rounded-lg overflow-hidden max-w-3xl bg-white dark:bg-gray-900 font-inter",children:a.map((t,d)=>r("div",{className:"border-b border-gray-200 dark:border-gray-700 last:border-b-0",children:[r("div",{className:"flex items-center gap-4 p-5 cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors duration-200",onClick:()=>function(e){o(r=>{const t=Array(a.length).fill(!1);return t[e]=!r[e],t})}(d),children:[e("svg",{className:"w-6 h-6 transition-transform duration-200 text-gray-900 dark:text-gray-100 flex-shrink-0 "+(l[d]?"rotate-180":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})}),e("h2",{className:"text-lg font-bold text-gray-800 dark:text-gray-100",children:t.title})]}),e("div",{className:"overflow-hidden transition-all duration-200 "+(l[d]?"max-h-96 opacity-100":"max-h-0 opacity-0"),children:e("p",{className:"px-5 pb-5 pl-[3.75rem] text-gray-700 dark:text-gray-300 text-sm leading-relaxed",children:t.text})})]},d))})}const c=["#1a1a1a","#4d4d4d","#999999","#e6e6e6"];function s({content:a}){const t=a.map((e,r)=>c[r%c.length]),l=a.reduce((e,r)=>Math.max(e,r.size),0),o=a.map(e=>e.size/l*300);return r("div",{className:"w-[650px] flex flex-row gap-[10px] items-end pl-[25px] pr-[25px] pt-[25px] border-black dark:border-gray-700 border-1 h-[300px] rounded-md dark:bg-gray-900",children:[r("div",{className:"border-r-2 border-black dark:border-gray-500 h-full mb-[10px] mr-[10px] flex flex-col justify-between dark:text-gray-300",children:[r("p",{children:[Math.floor(Math.max(l))," "]}),e("p",{children:Math.floor(Math.max(l)/1.5)}),e("p",{children:Math.floor(Math.max(l)/2)}),e("p",{children:Math.floor(Math.max(l)/3)}),e("p",{children:"0"})]}),a.map((a,l)=>r("div",{className:"flex flex-col items-center justify-end h-full w-full ",children:[e("div",{className:"w-full",style:{height:`${o[l]}px`,backgroundColor:t[l]}}),e("p",{className:"text-xs text-center m-1 dark:text-gray-300",children:a.lable})]},l))]})}function h({header:t,subHeader:l,mainText:o,buttonText1:d,buttonText2:n}){return e(a,{children:e("div",{className:"",children:r("div",{className:"lg:w-[22rem] h-[400px] border border-black dark:border-gray-700 rounded-lg px-7 py-5 flex flex-col gap-6 font-inter sm:w-full md:w-[20rem] dark:bg-gray-900 h-full",children:[r("section",{children:[e("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100 mb-1",children:t}),e("p",{className:"text-gray-500 dark:text-gray-400 text-sm",children:l})]}),e("section",{children:e("p",{className:"text-gray-700 dark:text-gray-300 text-sm leading-relaxed",children:o})}),r("section",{className:"flex flex-row gap-3 mt-auto",children:[e("button",{className:"bg-black dark:bg-gray-100 text-white dark:text-black px-5 py-2 rounded-lg font-medium text-sm transition-colors duration-200 hover:bg-gray-800 dark:hover:bg-gray-200 hover:text-gray-200 dark:hover:text-black",children:d}),e("button",{className:"text-gray-900 dark:text-gray-100 px-5 py-2 rounded-lg font-medium text-sm transition-colors duration-200 hover:bg-gray-200 dark:hover:bg-gray-800 hover:text-black dark:hover:text-gray-100 border dark:border-gray-700 bg-white dark:bg-gray-900",children:n})]})]})})})}function g({card:a}){const t=l(0),n=l(null);return o(()=>{const e=n.current;if(!e)return;const r=e.offsetWidth,a=e.scrollWidth,l=()=>{t.current+=.5,t.current>=a-r&&(t.current=0),e.style.transform=`translateX(-${t.current}px)`,requestAnimationFrame(l)},o=requestAnimationFrame(l);return()=>cancelAnimationFrame(o)},[]),e("div",{className:"border border-black dark:border-gray-700 rounded-lg max-w-5xl h-[25rem] flex flex-col gap-5 p-10 overflow-hidden bg-white dark:bg-gray-900",children:e("div",{ref:n,className:"flex flex-row gap-5 flex-1 flex-nowrap",children:a.map((a,t)=>r("div",{className:"border border-gray-700 dark:border-gray-700 rounded-lg w-[22rem] flex-shrink-0 bg-white dark:bg-gray-900 overflow-hidden shadow-sm",children:[e(d,{src:a.image,width:352,height:200,alt:a.text,className:"w-full h-48 object-cover"}),e("p",{className:"p-5 text-gray-900 dark:text-gray-100 font-inter text-sm",children:a.text})]},t))})})}function m({title:l,img:o,propt:n}){const[i,c]=t(""),[s,h]=t([]),[g,m]=t(!1);async function x(e){m(!0);const r=await fetch("/api/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:e})}),a=(await r.json()).message;h([...s,{user:e,bot:a}]),console.log(s),m(!1)}function b(){x(i),c("")}return e(a,{children:r("div",{className:"w-[37rem] border-1 border-black dark:border-gray-700 px-10 py-5 overflow-auto rounded-sm h-full dark:bg-gray-900",children:[r("div",{className:"flex flex-row gap-5 pb-2",children:[e(d,{className:"p-2 bg-gray-50 rounded-full flex flex-row",src:o,width:40,height:40,alt:"chat-img"}),e("h1",{className:"text-xl text-gray-800 dark:text-gray-100",children:l})]}),r("div",{className:"flex flex-col h-51 ",children:[e("div",{className:"flex justify-center mb-4",children:e("button",{className:"p-1 pl-3 pr-3 rounded-full text-sm border border-black dark:border-gray-600 dark:text-gray-300",onClick:function(){x(n)},children:n})}),r("div",{className:"flex-1 overflow-y-auto",children:[g?e("p",{children:"Loading..."}):null,s.map((a,t)=>r("div",{className:"space-y-3 mb-4",children:[e("div",{className:"flex justify-end",children:e("div",{className:"bg-gray-300 dark:bg-gray-700 p-3 rounded-sm",children:e("p",{className:"text-sm font-medium",children:a.user})})}),e("div",{className:"flex justify-start",children:e("div",{className:"bg-gray-100 dark:bg-gray-800 p-3 rounded-sm ",children:a.bot.startsWith("data:image/")?e("img",{src:a.bot,alt:"Generated image",className:"max-w-full h-auto rounded-sm"}):e("p",{className:"text-sm",children:a.bot})})})]},t))]}),r("div",{className:"flex flex-row gap-2 mt-4",children:[e("input",{className:"flex-1 border border-gray-500 dark:border-gray-600 rounded-sm px-3 py-2 dark:bg-gray-800 dark:text-gray-100 dark:placeholder-gray-400",value:i,onChange:function(e){c(e.target.value)},onKeyDown:function(e){"Enter"===e.key&&b()},type:"text",placeholder:"Type your message..."}),e("button",{onClick:b,className:"px-4 py-2 border border-black dark:border-gray-600 rounded-sm hover:bg-gray-100 dark:hover:bg-gray-800 dark:text-gray-100",children:"Send"})]})]})]})})}function x({title:a,size:l,colour:o}){const[d,n]=t(Array(l).fill(!1)),[i,c]=t(o);return r("div",{className:"border border-black dark:border-gray-700 border-1 w-[33rem] p-5 rounded-sm dark:bg-gray-900",children:[r("div",{className:"flex gap-10 mb-5",children:[e("h1",{className:"text-xl font-bold mb-4 dark:text-white",children:a}),e("button",{onClick:()=>n(Array(l).fill(!1)),className:"cursor-pointer px-5 py-0.5 border dark:border-gray-600 rounded-md text-sm dark:text-gray-300 dark:hover:bg-gray-800",children:"Clear"}),e("input",{type:"color",id:"favcolor",value:i,onChange:e=>c(e.target.value),className:"w-10 h-10 rounded cursor-pointer"})]}),e("div",{className:"flex flex-wrap flex-row justify-center",children:Array.from({length:l}).map((r,a)=>e("div",{onMouseEnter:()=>function(e){const r=[...d];r[e]=!0,n(r)}(a),onMouseLeave:()=>function(e){const r=[...d];r[e]=!1,n(r)}(a),style:{backgroundColor:d[a]?i:"transparent"},className:" w-[1rem] h-[1rem] flex justify-center"},a))})]})}function b({header:a,subHeader:t,btn1Text:l,btn2Text:o,headerBtn:d}){return r("div",{className:"flex flex-col items-center mt-[6rem] gap-8 w-full font-inter mb-[6rem]",children:[r("button",{className:"bg-gray-200 dark:bg-gray-800 py-1 px-5 rounded-xl text-sm font-thin transition-colors \r\n duration-200 hover:bg-gray-300 dark:hover:bg-gray-700 hover:text-black dark:hover:text-white dark:text-gray-300",children:[d," --\x3e"]}),e("h1",{className:" text-center w-full text-5xl font-bold dark:text-white",children:a}),e("p",{className:"text-center lg:w-[69ch] sm:w-[40ch] md:w-[50ch] dark:text-gray-300",children:t}),r("div",{className:"flex flex-row gap-4 justify-center w-full",children:[e("button",{className:"text-sm bg-black dark:bg-white cursor-pointer text-white dark:text-black py-3 px-8 rounded-xl\r\n transition-colors duration-200 hover:bg-gray-800 dark:hover:bg-gray-200 hover:text-gray-200 dark:hover:text-black",children:l}),e("button",{className:"text-sm cursor-pointer py-3 px-8 rounded-xl transition-colors \r\n duration-200 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-black dark:hover:text-white dark:text-gray-300",children:o})]})]})}const u=r("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e("circle",{cx:"12",cy:"12",r:"5"}),e("path",{d:"M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"})]}),f=e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e("path",{d:"M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"})});function y({lightIcon:r,darkIcon:a,label:l}){const{theme:d,setTheme:i}=n(),[c,s]=t(!1);if(o(()=>{s(!0)},[]),!c)return null;const h="dark"===d;return e("button",{onClick:function(){i(h?"light":"dark")},"aria-label":null!=l?l:"Toggle theme",children:h?null!=a?a:f:null!=r?r:u})}export{i as Accordion,s as BarChart,h as CardText,g as Caroulse,m as Chat,x as Drawer,b as Hero,y as ThemeSwitch};
|
|
1
|
+
import e,{jsx as t,jsxs as n,Fragment as r}from"react/jsx-runtime";import o,{useState as a,useRef as i,useEffect as c}from"react";import s from"next/image";function l({items:e}){const[r,o]=a(Array(e.length).fill(!1));return t("div",{"data-looply":!0,className:"flex flex-col gap-4 max-w-3xl font-inter",children:e.map((a,i)=>n("div",{className:"neu-flat p-5 cursor-pointer",onClick:()=>function(t){o(n=>{const r=Array(e.length).fill(!1);return r[t]=!n[t],r})}(i),children:[n("div",{className:"flex items-center justify-between",children:[t("h2",{className:"text-base text-gray-700 dark:text-gray-100",children:a.title}),t("div",{className:"neu-inset w-8 h-8 flex items-center justify-center flex-shrink-0 !rounded-full",children:t("svg",{className:"w-4 h-4 transition-transform duration-200 text-gray-500 dark:text-gray-300 "+(r[i]?"rotate-45":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 5v14M5 12h14"})})})]}),t("div",{className:"overflow-hidden transition-all duration-200 "+(r[i]?"max-h-96 opacity-100 mt-4":"max-h-0 opacity-0"),children:t("div",{className:"neu-inset p-4",children:t("p",{className:"text-gray-600 dark:text-gray-300 text-sm leading-relaxed",children:a.text})})})]},i))})}const u=["#1a1a1a","#4d4d4d","#999999","#e6e6e6"];function f({content:e}){const r=e.map((e,t)=>u[t%u.length]),o=e.reduce((e,t)=>Math.max(e,t.size),0),a=e.map(e=>e.size/o*300);return n("div",{"data-looply":!0,className:"w-full max-w-[650px] flex flex-row gap-[10px] items-end px-3 sm:px-[25px] pt-[25px] neu-flat h-[200px] sm:h-[300px]",children:[n("div",{className:"border-r border-gray-300 dark:border-gray-600 h-full mb-[10px] mr-[20px] pr-[10px] flex flex-col justify-between text-[10px] sm:text-xs dark:text-gray-300",children:[n("p",{children:[Math.floor(Math.max(o))," "]}),t("p",{children:Math.floor(Math.max(o)/1.5)}),t("p",{children:Math.floor(Math.max(o)/2)}),t("p",{children:Math.floor(Math.max(o)/3)}),t("p",{children:"0"})]}),e.map((e,o)=>n("div",{className:"flex flex-col items-center justify-end h-full w-full ",children:[t("div",{className:"w-full rounded-t-md neu-inset",style:{height:`${a[o]}px`,backgroundColor:r[o]}}),t("p",{className:"text-[10px] sm:text-xs text-center m-1 dark:text-gray-300 truncate w-full",children:e.lable})]},o))]})}const d={"neu-flat":"neu-btn-flat","neu-raised":"neu-btn-raised","neu-inset":"neu-btn-inset"};function p({buttonObj:e}){return t(r,{children:t("div",{className:"neu-raised p-8 flex flex-row flex-wrap gap-5 sm:h-auto h-auto lg:h-[6rem]",children:e.map((e,r)=>{var o,a,i;const c=d[null!==(o=e.buttonType)&&void 0!==o?o:"neu-flat"];return t("div",{children:n("button",{className:`${c} !rounded-lg cursor-pointer flex items-center gap-2`,style:{paddingInline:`${null!==(a=e.buttonX)&&void 0!==a?a:20}px`,paddingBlock:`${null!==(i=e.buttonY)&&void 0!==i?i:8}px`},onClick:()=>e.href&&(window.location.href=e.href),children:[e.icon&&t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:"w-5 h-5",children:t("path",{d:e.icon})}),e.buttonText]})},r)})})})}function h(e,n,o,a,i){const c=new Date(e,n+1,0).getDate(),s=Array.from({length:c},(e,t)=>t+1);return t(r,{children:t("div",{className:"grid grid-cols-7 gap-2",children:s.map((e,n)=>t("div",{onClick:()=>i(e),className:"w-8 h-8 sm:w-10 sm:h-10 flex items-center justify-center text-xs sm:text-sm cursor-pointer transition-all rounded-md "+(e===a?"neu-flat font-bold scale-110 shadow-lg":e===o?"neu-flat font-bold":"neu-inset hover:scale-105"),children:e},n))})})}function m(){const e=(new Date).getMonth(),o=(new Date).getFullYear(),[i,c]=a(e),[s,l]=a(o),[u,f]=a(null),d=i===e&&s===o?(new Date).getDate():-1;return t(r,{children:n("div",{className:"neu-inset w-full max-w-[25rem] p-4 sm:p-8",children:[n("div",{className:"flex justify-between items-center mb-4",children:[t("button",{className:"neu-btn px-3 py-1 text-sm",onClick:function(){0===i?(c(11),l(s-1)):c(i-1)},children:"←"}),n("div",{className:"text-center",children:[t("p",{className:"text-lg font-semibold",children:new Date(s,i).toLocaleString("default",{month:"long"})}),t("p",{className:"text-xs text-gray-400",children:s})]}),t("button",{className:"neu-btn px-3 py-1 text-sm",onClick:function(){11===i?(c(0),l(s+1)):c(i+1)},children:"→"})]}),t("div",{className:"grid grid-cols-7 gap-2 mb-2",children:["Su","Mo","Tu","We","Th","Fr","Sa"].map(e=>t("div",{className:"text-center text-xs text-gray-400 font-medium",children:e},e))}),t("div",{children:h(s,i,d,u,f)})]})})}const g={"neu-soft-edge":"neu-flat","neu-pressed":"neu-inset","neu-floating":"neu-raised"},_={"sharp-edge":"0px","soft-edge":"12px",pill:"30px"};function x({callOut:e}){return t(r,{children:t("div",{className:"flex flex-col gap-6 w-full",children:e.map((e,r)=>n("div",{className:`${g[e.styleType]} w-full px-10 py-8 flex flex-col md:flex-row items-center justify-between gap-8 overflow-hidden relative`,style:{borderRadius:_[e.radiusType]},children:[n("div",{className:"flex flex-col gap-3 w-full md:max-w-[60%] z-10",children:[t("h2",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:e.header}),t("p",{className:"text-sm text-gray-500 dark:text-gray-400 leading-relaxed",children:e.subHeader}),e.buttons&&e.buttons.length>0&&t("div",{className:"flex flex-row gap-3 mt-2",children:e.buttons.map((e,n)=>t("button",{className:"neu-btn px-6 py-2.5 font-medium text-sm text-gray-900 dark:text-gray-100 cursor-pointer transition-all duration-200",onClick:()=>e.href&&(window.location.href=e.href),children:e.label},n))})]}),e.imageUrl&&t("div",{className:"w-full md:w-[35%] h-48 flex-shrink-0",children:t("img",{src:e.imageUrl,alt:e.header,className:"w-full h-full object-contain"})})]},r))})})}const y={"neu-soft-edge":"neu-flat","neu-pressed":"neu-inset","neu-floating":"neu-raised"};function b({cards:e}){return t("div",{className:"flex flex-row gap-5 flex-wrap items-start",children:e.map((e,r)=>{var o;return t("div",{"data-looply":!0,children:n("div",{className:`${y[e.cardStyle]} lg:w-[22rem] h-[400px] px-10 py-8 flex flex-col gap-6 font-inter sm:w-full md:w-[20rem] h-full`,children:[e.imageUrl&&t("div",{className:"w-full h-40 rounded-lg overflow-hidden -mx-10 -mt-8 mx-auto",style:{width:"calc(100% + 5rem)",marginLeft:"-2.5rem"},children:t("img",{src:e.imageUrl,alt:e.headerText,className:"w-full h-full object-cover"})}),n("section",{children:[t("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100 mb-1",children:e.headerText}),t("p",{className:"text-gray-500 dark:text-gray-400 text-sm",children:e.subHeaderText})]}),t("section",{children:t("p",{className:"text-gray-700 dark:text-gray-300 text-sm leading-relaxed",children:e.descriptionText})}),t("section",{className:"flex flex-row gap-3 mt-auto",children:null===(o=e.buttons)||void 0===o?void 0:o.map((e,n)=>t("button",{className:"neu-btn px-5 py-2 font-medium text-sm text-gray-900 dark:text-gray-100",onClick:()=>e.href&&(window.location.href=e.href),children:e.label},n))})]})},r)})})}function v({card:e}){const r=i(0),o=i(null);return c(()=>{const e=o.current;if(!e)return;const t=e.offsetWidth,n=e.scrollWidth,a=()=>{r.current+=.5,r.current>=n-t&&(r.current=0),e.style.transform=`translateX(-${r.current}px)`,requestAnimationFrame(a)},i=requestAnimationFrame(a);return()=>cancelAnimationFrame(i)},[]),t("div",{"data-looply":!0,className:"neu-flat w-full max-w-[calc(100vw-2rem)] sm:max-w-5xl mx-auto h-[25rem] flex flex-col gap-5 p-4 sm:p-10 overflow-hidden",children:t("div",{ref:o,className:"flex flex-row gap-5 flex-1 flex-nowrap",children:e.map((e,r)=>n("div",{className:"neu-inset w-[16rem] sm:w-[22rem] flex-shrink-0 overflow-hidden",children:[t(s,{src:e.image,width:352,height:200,alt:e.text,className:"w-full h-32 sm:h-48 object-cover rounded-t-[var(--neu-radius)]"}),t("p",{className:"p-3 sm:p-5 text-gray-900 dark:text-gray-100 font-inter text-xs sm:text-sm",children:e.text})]},r))})})}function E({title:e,img:o,propt:i,endpoint:c="/api/chat"}){const[l,u]=a(""),[f,d]=a([]),[p,h]=a(!1);async function m(e){h(!0);const t=await fetch(c,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:e})}),n=(await t.json()).message;d([...f,{user:e,bot:n}]),console.log(f),h(!1)}function g(){m(l),u("")}return t(r,{children:n("div",{"data-looply":!0,className:"w-full max-w-[37rem] neu-inset px-5 sm:px-10 py-5 overflow-auto h-full",children:[n("div",{className:"flex flex-row gap-5 pb-2",children:[t(s,{className:"p-2 bg-gray-50 rounded-full flex flex-row",src:o,width:40,height:40,alt:"chat-img"}),t("h1",{className:"text-xl text-gray-800 dark:text-gray-100",children:e})]}),n("div",{className:"flex flex-col h-51 ",children:[t("div",{className:"flex justify-center mb-4",children:t("button",{className:"neu-btn p-1 pl-3 pr-3 text-sm dark:text-gray-300",onClick:function(){m(i)},children:i})}),n("div",{className:"flex-1 overflow-y-auto",children:[p?t("p",{children:"Loading..."}):null,f.map((e,r)=>n("div",{className:"space-y-3 mb-4",children:[t("div",{className:"flex justify-end",children:t("div",{className:"neu-flat p-3",children:t("p",{className:"text-sm font-medium",children:e.user})})}),t("div",{className:"flex justify-start",children:t("div",{className:"neu-inset p-3",children:e.bot.startsWith("data:image/")?t("img",{src:e.bot,alt:"Generated image",className:"max-w-full h-auto rounded-sm"}):t("p",{className:"text-sm",children:e.bot})})})]},r))]}),n("div",{className:"flex flex-row gap-2 mt-4",children:[t("input",{className:"flex-1 neu-inset !rounded-lg px-3 py-2 dark:text-gray-100 dark:placeholder-gray-400 outline-none",value:l,onChange:function(e){u(e.target.value)},onKeyDown:function(e){"Enter"===e.key&&g()},type:"text",placeholder:"Type your message..."}),t("button",{onClick:g,className:"neu-btn px-4 py-2 dark:text-gray-100",children:"Send"})]})]})]})})}function R({title:e,size:r,colour:o}){const[i,c]=a(Array(r).fill(!1)),[s,l]=a(o);return n("div",{"data-looply":!0,className:"neu-inset w-full max-w-[33rem] p-5",children:[n("div",{className:"flex gap-10 mb-5",children:[t("h1",{className:"text-xl font-bold mb-4 dark:text-white",children:e}),t("button",{onClick:()=>c(Array(r).fill(!1)),className:"neu-btn cursor-pointer px-5 py-0.5 text-sm dark:text-gray-300",children:"Clear"}),t("input",{type:"color",id:"favcolor",value:s,onChange:e=>l(e.target.value),className:"w-10 h-10 rounded cursor-pointer"})]}),t("div",{className:"flex flex-wrap flex-row justify-center",children:Array.from({length:r}).map((e,n)=>t("div",{onMouseEnter:()=>function(e){const t=[...i];t[e]=!0,c(t)}(n),onMouseLeave:()=>function(e){const t=[...i];t[e]=!1,c(t)}(n),style:{backgroundColor:i[n]?s:"transparent"},className:" w-[1rem] h-[1rem] flex justify-center"},n))})]})}function P(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var O,w={exports:{}},N={};function T(){if(O)return N;function e(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(e=function(e){return e?r:n})(t)}return O=1,N._=function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=e(n);if(r&&r.has(t))return r.get(t);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var c=a?Object.getOwnPropertyDescriptor(t,i):null;c&&(c.get||c.set)?Object.defineProperty(o,i,c):o[i]=t[i]}return o.default=t,r&&r.set(t,o),o},N}var S,j={exports:{}},A={};function C(){return S||(S=1,function(e){function t(e){const t={};for(const[n,r]of e.entries()){const e=t[n];void 0===e?t[n]=r:Array.isArray(e)?e.push(r):t[n]=[e,r]}return t}function n(e){return"string"==typeof e?e:"number"==typeof e&&!isNaN(e)||"boolean"==typeof e?String(e):""}function r(e){const t=new URLSearchParams;for(const[r,o]of Object.entries(e))if(Array.isArray(o))for(const e of o)t.append(r,n(e));else t.set(r,n(o));return t}function o(e,...t){for(const n of t){for(const t of n.keys())e.delete(t);for(const[t,r]of n.entries())e.append(t,r)}return e}Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{assign:function(){return o},searchParamsToUrlQuery:function(){return t},urlQueryToSearchParams:function(){return r}})}(A)),A}var M,I={};function k(){return M||(M=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{formatUrl:function(){return r},formatWithValidation:function(){return a},urlObjectKeys:function(){return o}});const t=T()._(C()),n=/https?|ftp|gopher|file/;function r(e){let{auth:r,hostname:o}=e,a=e.protocol||"",i=e.pathname||"",c=e.hash||"",s=e.query||"",l=!1;r=r?encodeURIComponent(r).replace(/%3A/i,":")+"@":"",e.host?l=r+e.host:o&&(l=r+(~o.indexOf(":")?`[${o}]`:o),e.port&&(l+=":"+e.port)),s&&"object"==typeof s&&(s=String(t.urlQueryToSearchParams(s)));let u=e.search||s&&`?${s}`||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||n.test(a))&&!1!==l?(l="//"+(l||""),i&&"/"!==i[0]&&(i="/"+i)):l||(l=""),c&&"#"!==c[0]&&(c="#"+c),u&&"?"!==u[0]&&(u="?"+u),i=i.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${a}${l}${i}${u}${c}`}const o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(e){return"development"===process.env.NODE_ENV&&null!==e&&"object"==typeof e&&Object.keys(e).forEach(e=>{o.includes(e)||console.warn(`Unknown key passed via urlObject into url.format: ${e}`)}),r(e)}}(I)),I}var $,D={};var L,X={};function U(){return L||(L=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{DecodeError:function(){return p},MiddlewareNotFoundError:function(){return _},MissingStaticPage:function(){return g},NormalizeError:function(){return h},PageNotFoundError:function(){return m},SP:function(){return f},ST:function(){return d},WEB_VITALS:function(){return t},execOnce:function(){return n},getDisplayName:function(){return c},getLocationOrigin:function(){return a},getURL:function(){return i},isAbsoluteUrl:function(){return o},isResSent:function(){return s},loadGetInitialProps:function(){return u},normalizeRepeatedSlashes:function(){return l},stringifyError:function(){return x}});const t=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,n=!1;return(...r)=>(n||(n=!0,t=e(...r)),t)}const r=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>r.test(e);function a(){const{protocol:e,hostname:t,port:n}=window.location;return`${e}//${t}${n?":"+n:""}`}function i(){const{href:e}=window.location,t=a();return e.substring(t.length)}function c(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function l(e){const t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function u(e,t){if("production"!==process.env.NODE_ENV&&e.prototype?.getInitialProps){const t=`"${c(e)}.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.`;throw Object.defineProperty(new Error(t),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}const n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await u(t.Component,t.ctx)}:{};const r=await e.getInitialProps(t);if(n&&s(n))return r;if(!r){const t=`"${c(e)}.getInitialProps()" should resolve to an object. But found "${r}" instead.`;throw Object.defineProperty(new Error(t),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}return"production"!==process.env.NODE_ENV&&(0!==Object.keys(r).length||t.ctx||console.warn(`${c(e)} returned an empty object from \`getInitialProps\`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps`)),r}const f="undefined"!=typeof performance,d=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p extends Error{}class h extends Error{}class m extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class g extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class _ extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function x(e){return JSON.stringify({message:e.message,stack:e.stack})}}(X)),X}var W,F={exports:{}},H={};function z(){return W||(W=1,function(e){function t(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}})}(H)),H}var B,K,G={};function Y(){return B||(B=1,function(e){function t(e){const t=e.indexOf("#"),n=e.indexOf("?"),r=n>-1&&(t<0||n<t);return r||t>-1?{pathname:e.substring(0,r?n:t),query:r?e.substring(n,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}})}(G)),G}function V(){return K||(K=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const n=z(),r=Y(),o=e=>{if(!e.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return e;const{pathname:t,query:o,hash:a}=(0,r.parsePath)(e);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(t)?`${(0,n.removeTrailingSlash)(t)}${o}${a}`:t.endsWith("/")?`${t}${o}${a}`:`${t}/${o}${a}`:`${(0,n.removeTrailingSlash)(t)}${o}${a}`};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(F,F.exports)),F.exports}var q,Q,Z,J={},ee={exports:{}},te={};function ne(){return q||(q=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return n}});const t=Y();function n(e,n){if("string"!=typeof e)return!1;const{pathname:r}=(0,t.parsePath)(e);return r===n||r.startsWith(n+"/")}}(te)),te}function re(){return Z||(Z=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return r}});const t=U(),n=(Q||(Q=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});const n=ne(),r=process.env.__NEXT_ROUTER_BASEPATH||"";function o(e){return(0,n.pathHasPrefix)(e,r)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ee,ee.exports)),ee.exports);function r(e){if(!(0,t.isAbsoluteUrl)(e))return!0;try{const r=(0,t.getLocationOrigin)(),o=new URL(e,r);return o.origin===r&&(0,n.hasBasePath)(o.pathname)}catch(e){return!1}}}(J)),J}var oe,ae={},ie={};var ce,se={},le={},ue={},fe={};var de,pe,he,me,ge,_e={};function xe(){return de||(de=1,function(e){function t(e){return Array.isArray(e)?e[1]:e}function n(e){return"("===e[0]&&e.endsWith(")")}function r(e){return e.startsWith("@")&&"@children"!==e}function o(e,t){if(e.includes(c)){const e=JSON.stringify(t);return"{}"!==e?c+"?"+e:c}return e}function a(e,t){if(!e||0===e.length)return null;const n="children"===t?e[0]:e[e.length-1];return n===s?null:n}function i(e,n,r=!0,o=[]){let a;if(r)a=e[1][n];else{const t=e[1];a=t.children??Object.values(t)[0]}if(!a)return o;let s=t(a[0]);return!s||s.startsWith(c)?o:(o.push(s),i(a,n,!1,o))}Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{DEFAULT_SEGMENT_KEY:function(){return s},PAGE_SEGMENT_KEY:function(){return c},addSearchParamsIfPageSegment:function(){return o},computeSelectedLayoutSegment:function(){return a},getSegmentValue:function(){return t},getSelectedLayoutSegmentPath:function(){return i},isGroupSegment:function(){return n},isParallelRouteSegment:function(){return r}});const c="__PAGE__",s="__DEFAULT__"}(_e)),_e}function ye(){return pe||(pe=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{normalizeAppPath:function(){return r},normalizeRscURL:function(){return o}});const t=(ce||(ce=1,function(e){function t(e){return e.startsWith("/")?e:`/${e}`}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}})}(fe)),fe),n=xe();function r(e){return(0,t.ensureLeadingSlash)(e.split("/").reduce((e,t,r,o)=>t?(0,n.isGroupSegment)(t)||"@"===t[0]?e:"page"!==t&&"route"!==t||r!==o.length-1?`${e}/${t}`:e:e,""))}function o(e){return e.replace(/\.rsc($|\?)/,"$1")}}(ue)),ue}function be(){return he||(he=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{INTERCEPTION_ROUTE_MARKERS:function(){return n},extractInterceptionRouteInformation:function(){return o},isInterceptionRouteAppPath:function(){return r}});const t=ye(),n=["(..)(..)","(.)","(..)","(...)"];function r(e){return void 0!==e.split("/").find(e=>n.find(t=>e.startsWith(t)))}function o(e){let r,o,a;for(const t of e.split("/"))if(o=n.find(e=>t.startsWith(e)),o){[r,a]=e.split(o,2);break}if(!r||!o||!a)throw Object.defineProperty(new Error(`Invalid interception route: ${e}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`),"__NEXT_ERROR_CODE",{value:"E269",enumerable:!1,configurable:!0});switch(r=(0,t.normalizeAppPath)(r),o){case"(.)":a="/"===r?`/${a}`:r+"/"+a;break;case"(..)":if("/"===r)throw Object.defineProperty(new Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`),"__NEXT_ERROR_CODE",{value:"E207",enumerable:!1,configurable:!0});a=r.split("/").slice(0,-1).concat(a).join("/");break;case"(...)":a="/"+a;break;case"(..)(..)":const t=r.split("/");if(t.length<=2)throw Object.defineProperty(new Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`),"__NEXT_ERROR_CODE",{value:"E486",enumerable:!1,configurable:!0});a=t.slice(0,-2).concat(a).join("/");break;default:throw Object.defineProperty(new Error("Invariant: unexpected marker"),"__NEXT_ERROR_CODE",{value:"E112",enumerable:!1,configurable:!0})}return{interceptingRoute:r,interceptedRoute:a}}}(le)),le}function ve(){return ge||(ge=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{getSortedRouteObjects:function(){return t.getSortedRouteObjects},getSortedRoutes:function(){return t.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const t=(oe||(oe=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{getSortedRouteObjects:function(){return r},getSortedRoutes:function(){return n}});class t{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e="/"){const t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);const n=t.map(t=>this.children.get(t)._smoosh(`${e}${t}/`)).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(`${e}[${this.slugName}]/`)),!this.placeholder){const t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Object.defineProperty(new Error(`You cannot define a route with the same specificity as a optional catch-all route ("${t}" and "${t}[[...${this.optionalRestSlugName}]]").`),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(`${e}[...${this.restSlugName}]/`)),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(`${e}[[...${this.optionalRestSlugName}]]/`)),n}_insert(e,n,r){if(0===e.length)return void(this.placeholder=!1);if(r)throw Object.defineProperty(new Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let a=o.slice(1,-1),i=!1;if(a.startsWith("[")&&a.endsWith("]")&&(a=a.slice(1,-1),i=!0),a.startsWith("…"))throw Object.defineProperty(new Error(`Detected a three-dot character ('…') at ('${a}'). Did you mean ('...')?`),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(a.startsWith("...")&&(a=a.substring(3),r=!0),a.startsWith("[")||a.endsWith("]"))throw Object.defineProperty(new Error(`Segment names may not start or end with extra brackets ('${a}').`),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(a.startsWith("."))throw Object.defineProperty(new Error(`Segment names may not start with erroneous periods ('${a}').`),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});function c(e,t){if(null!==e&&e!==t)throw Object.defineProperty(new Error(`You cannot use different slug names for the same dynamic path ('${e}' !== '${t}').`),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});n.forEach(e=>{if(e===t)throw Object.defineProperty(new Error(`You cannot have the same slug name "${t}" repeat within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Object.defineProperty(new Error(`You cannot have the slug names "${e}" and "${t}" differ only by non-word symbols within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),n.push(t)}if(r)if(i){if(null!=this.restSlugName)throw Object.defineProperty(new Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${e[0]}" ).`),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});c(this.optionalRestSlugName,a),this.optionalRestSlugName=a,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Object.defineProperty(new Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${e[0]}").`),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,configurable:!0});c(this.restSlugName,a),this.restSlugName=a,o="[...]"}else{if(i)throw Object.defineProperty(new Error(`Optional route parameters are not yet supported ("${e[0]}").`),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});c(this.slugName,a),this.slugName=a,o="[]"}}this.children.has(o)||this.children.set(o,new t),this.children.get(o)._insert(e.slice(1),n,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){const n=new t;return e.forEach(e=>n.insert(e)),n.smoosh()}function r(e,t){const r={},o=[];for(let n=0;n<e.length;n++){const a=t(e[n]);r[a]=n,o[n]=a}return n(o).map(t=>e[r[t]])}}(ie)),ie),n=(me||(me=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return o}});const t=be(),n=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,r=/\/\[[^/]+\](?=\/|$)/;function o(e,o=!0){return(0,t.isInterceptionRouteAppPath)(e)&&(e=(0,t.extractInterceptionRouteInformation)(e).interceptedRoute),o?r.test(e):n.test(e)}}(se)),se)}(ae)),ae}var Ee,Re={},Pe={},Oe={},we={exports:{}};function Ne(){return Ee||(Ee=1,(()=>{"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var e={};(()=>{var t=e;function n(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,a="";if("?"===e[c=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(c));for(;c<e.length;)if("\\"!==e[c]){if(")"===e[c]){if(0===--o){c++;break}}else if("("===e[c]&&(o++,"?"!==e[c+1]))throw new TypeError("Capturing groups are not allowed at ".concat(c));a+=e[c++]}else a+=e[c++]+e[c++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!a)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:a}),n=c}else{for(var i="",c=n+1;c<e.length;){var s=e.charCodeAt(c);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||95===s))break;i+=e[c++]}if(!i)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:i}),n=c}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,o=void 0===r?"./":r,i=t.delimiter,c=void 0===i?"/#?":i,s=[],l=0,u=0,f="",d=function(e){if(u<n.length&&n[u].type===e)return n[u++].value},p=function(e){var t=d(e);if(void 0!==t)return t;var r=n[u],o=r.type,a=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(a,", expected ").concat(e))},h=function(){for(var e,t="";e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t},m=function(e){var t=s[s.length-1],n=e||(t&&"string"==typeof t?t:"");if(t&&!n)throw new TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!n||function(e){for(var t=0,n=c;t<n.length;t++){var r=n[t];if(e.indexOf(r)>-1)return!0}return!1}(n)?"[^".concat(a(c),"]+?"):"(?:(?!".concat(a(n),")[^").concat(a(c),"])+?")};u<n.length;){var g=d("CHAR"),_=d("NAME"),x=d("PATTERN");if(_||x){var y=g||"";-1===o.indexOf(y)&&(f+=y,y=""),f&&(s.push(f),f=""),s.push({name:_||l++,prefix:y,suffix:"",pattern:x||m(y),modifier:d("MODIFIER")||""})}else{var b=g||d("ESCAPED_CHAR");if(b)f+=b;else if(f&&(s.push(f),f=""),d("OPEN")){y=h();var v=d("NAME")||"",E=d("PATTERN")||"",R=h();p("CLOSE"),s.push({name:v||(E?l++:""),pattern:v&&!E?m(y):E,prefix:y,suffix:R,modifier:d("MODIFIER")||""})}else p("END")}}return s}function r(e,t){void 0===t&&(t={});var n=i(t),r=t.encode,o=void 0===r?function(e){return e}:r,a=t.validate,c=void 0===a||a,s=e.map(function(e){if("object"==typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),n)});return function(t){for(var n="",r=0;r<e.length;r++){var a=e[r];if("string"!=typeof a){var i=t?t[a.name]:void 0,l="?"===a.modifier||"*"===a.modifier,u="*"===a.modifier||"+"===a.modifier;if(Array.isArray(i)){if(!u)throw new TypeError('Expected "'.concat(a.name,'" to not repeat, but got an array'));if(0===i.length){if(l)continue;throw new TypeError('Expected "'.concat(a.name,'" to not be empty'))}for(var f=0;f<i.length;f++){var d=o(i[f],a);if(c&&!s[r].test(d))throw new TypeError('Expected all "'.concat(a.name,'" to match "').concat(a.pattern,'", but got "').concat(d,'"'));n+=a.prefix+d+a.suffix}}else if("string"!=typeof i&&"number"!=typeof i){if(!l){var p=u?"an array":"a string";throw new TypeError('Expected "'.concat(a.name,'" to be ').concat(p))}}else{d=o(String(i),a);if(c&&!s[r].test(d))throw new TypeError('Expected "'.concat(a.name,'" to match "').concat(a.pattern,'", but got "').concat(d,'"'));n+=a.prefix+d+a.suffix}}else n+=a}return n}}function o(e,t,n){void 0===n&&(n={});var r=n.decode,o=void 0===r?function(e){return e}:r;return function(n){var r=e.exec(n);if(!r)return!1;for(var a=r[0],i=r.index,c=Object.create(null),s=function(e){if(void 0===r[e])return"continue";var n=t[e-1];"*"===n.modifier||"+"===n.modifier?c[n.name]=r[e].split(n.prefix+n.suffix).map(function(e){return o(e,n)}):c[n.name]=o(r[e],n)},l=1;l<r.length;l++)s(l);return{path:a,index:i,params:c}}}function a(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function i(e){return e&&e.sensitive?"":"i"}function c(e,t,n){void 0===n&&(n={});for(var r=n.strict,o=void 0!==r&&r,c=n.start,s=void 0===c||c,l=n.end,u=void 0===l||l,f=n.encode,d=void 0===f?function(e){return e}:f,p=n.delimiter,h=void 0===p?"/#?":p,m=n.endsWith,g="[".concat(a(void 0===m?"":m),"]|$"),_="[".concat(a(h),"]"),x=s?"^":"",y=0,b=e;y<b.length;y++){var v=b[y];if("string"==typeof v)x+=a(d(v));else{var E=a(d(v.prefix)),R=a(d(v.suffix));if(v.pattern)if(t&&t.push(v),E||R)if("+"===v.modifier||"*"===v.modifier){var P="*"===v.modifier?"?":"";x+="(?:".concat(E,"((?:").concat(v.pattern,")(?:").concat(R).concat(E,"(?:").concat(v.pattern,"))*)").concat(R,")").concat(P)}else x+="(?:".concat(E,"(").concat(v.pattern,")").concat(R,")").concat(v.modifier);else{if("+"===v.modifier||"*"===v.modifier)throw new TypeError('Can not repeat "'.concat(v.name,'" without a prefix and suffix'));x+="(".concat(v.pattern,")").concat(v.modifier)}else x+="(?:".concat(E).concat(R,")").concat(v.modifier)}}if(u)o||(x+="".concat(_,"?")),x+=n.endsWith?"(?=".concat(g,")"):"$";else{var O=e[e.length-1],w="string"==typeof O?_.indexOf(O[O.length-1])>-1:void 0===O;o||(x+="(?:".concat(_,"(?=").concat(g,"))?")),w||(x+="(?=".concat(_,"|").concat(g,")"))}return new RegExp(x,i(n))}function s(e,t,r){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map(function(e){return s(e,t,n).source});return new RegExp("(?:".concat(r.join("|"),")"),i(n))}(e,t,r):function(e,t,r){return c(n(e,r),t,r)}(e,t,r)}Object.defineProperty(t,"__esModule",{value:!0}),t.pathToRegexp=t.tokensToRegexp=t.regexpToFunction=t.match=t.tokensToFunction=t.compile=t.parse=void 0,t.parse=n,t.compile=function(e,t){return r(n(e,t),t)},t.tokensToFunction=r,t.match=function(e,t){var n=[];return o(s(e,n,t),n,t)},t.regexpToFunction=o,t.tokensToRegexp=c,t.pathToRegexp=s})(),we.exports=e})()),we.exports}var Te,Se,je,Ae={};function Ce(){return Se||(Se=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{safeCompile:function(){return o},safePathToRegexp:function(){return r},safeRegexpToFunction:function(){return a},safeRouteMatcher:function(){return i}});const t=Ne(),n=(Te||(Te=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{PARAM_SEPARATOR:function(){return t},hasAdjacentParameterIssues:function(){return n},normalizeAdjacentParameters:function(){return r},normalizeTokensForRegexp:function(){return o},stripNormalizedSeparators:function(){return a},stripParameterSeparators:function(){return i}});const t="_NEXTSEP_";function n(e){return!("string"!=typeof e||!/\/\(\.{1,3}\):[^/\s]+/.test(e)&&!/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(e))}function r(e){let n=e;return n=n.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${t}:$2`),n=n.replace(/:([^:/\s)]+)(?=:)/g,`:$1${t}`),n}function o(e){return e.map(e=>"object"==typeof e&&null!==e&&"modifier"in e&&("*"===e.modifier||"+"===e.modifier)&&"prefix"in e&&"suffix"in e&&""===e.prefix&&""===e.suffix?{...e,prefix:"/"}:e)}function a(e){return e.replace(new RegExp(`\\)${t}`,"g"),")")}function i(e){const n={};for(const[r,o]of Object.entries(e))"string"==typeof o?n[r]=o.replace(new RegExp(`^${t}`),""):Array.isArray(o)?n[r]=o.map(e=>"string"==typeof e?e.replace(new RegExp(`^${t}`),""):e):n[r]=o;return n}}(Ae)),Ae);function r(e,r,o){if("string"!=typeof e)return(0,t.pathToRegexp)(e,r,o);const a=(0,n.hasAdjacentParameterIssues)(e),i=a?(0,n.normalizeAdjacentParameters)(e):e;try{return(0,t.pathToRegexp)(i,r,o)}catch(i){if(!a)try{const a=(0,n.normalizeAdjacentParameters)(e);return(0,t.pathToRegexp)(a,r,o)}catch(e){throw i}throw i}}function o(e,r){const o=(0,n.hasAdjacentParameterIssues)(e),a=o?(0,n.normalizeAdjacentParameters)(e):e;try{const e=(0,t.compile)(a,r);return o?t=>(0,n.stripNormalizedSeparators)(e(t)):e}catch(a){if(!o)try{const o=(0,n.normalizeAdjacentParameters)(e),a=(0,t.compile)(o,r);return e=>(0,n.stripNormalizedSeparators)(a(e))}catch(e){throw a}throw a}}function a(e,r){const o=(0,t.regexpToFunction)(e,r||[]);return e=>{const t=o(e);return!!t&&{...t,params:(0,n.stripParameterSeparators)(t.params)}}}function i(e){return t=>{const r=e(t);return!!r&&(0,n.stripParameterSeparators)(r)}}}(Oe)),Oe}function Me(){return je||(je=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=U(),n=Ce();function r({re:e,groups:r}){return(0,n.safeRouteMatcher)(n=>{const o=e.exec(n);if(!o)return!1;const a=e=>{try{return decodeURIComponent(e)}catch{throw Object.defineProperty(new t.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},i={};for(const[e,t]of Object.entries(r)){const n=o[t.pos];void 0!==n&&(t.repeat?i[e]=n.split("/").map(e=>a(e)):i[e]=a(n))}return i})}}(Pe)),Pe}var Ie,ke={},$e={};var De,Le={};var Xe,Ue={},We={};var Fe,He={};var ze,Be,Ke,Ge,Ye,Ve={};function qe(){return Be||(Be=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{PARAMETER_PATTERN:function(){return i},getDynamicParam:function(){return a},interpolateParallelRouteParams:function(){return o},parseMatchedParameter:function(){return s},parseParameter:function(){return c}});const t=(Xe||(Xe=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"InvariantError",{enumerable:!0,get:function(){return t}});class t extends Error{constructor(e,t){super(`Invariant: ${e.endsWith(".")?e:e+"."} This is a bug in Next.js.`,t),this.name="InvariantError"}}}(We)),We),n=(Fe||(Fe=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parseLoaderTree",{enumerable:!0,get:function(){return n}});const t=xe();function n(e){const[n,r,o]=e,{layout:a,template:i}=o;let{page:c}=o;return c=n===t.DEFAULT_SEGMENT_KEY?o.defaultPage:c,{page:c,segment:n,modules:o,conventionPath:a?.[1]||i?.[1]||c?.[1],parallelRoutes:r}}}(He)),He),r=(ze||(ze=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{getParamProperties:function(){return o},getSegmentParam:function(){return n},isCatchAll:function(){return r}});const t=be();function n(e){const n=t.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return n&&(e=e.slice(n.length)),e.startsWith("[[...")&&e.endsWith("]]")?{type:"optional-catchall",param:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{type:n?`catchall-intercepted-${n}`:"catchall",param:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{type:n?`dynamic-intercepted-${n}`:"dynamic",param:e.slice(1,-1)}:null}function r(e){return"catchall"===e||"catchall-intercepted-(..)(..)"===e||"catchall-intercepted-(.)"===e||"catchall-intercepted-(..)"===e||"catchall-intercepted-(...)"===e||"optional-catchall"===e}function o(e){let t=!1,n=!1;switch(e){case"catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":t=!0;break;case"optional-catchall":t=!0,n=!0}return{repeat:t,optional:n}}}(Ve)),Ve);function o(e,t,o,a){const i=structuredClone(t),c=[{tree:e,depth:0}],s=o.split("/").slice(1);for(;c.length>0;){const{tree:e,depth:t}=c.pop(),{segment:o,parallelRoutes:l}=(0,n.parseLoaderTree)(e),u=(0,r.getSegmentParam)(o);if(u&&!i.hasOwnProperty(u.param)&&!a?.has(u.param))switch(u.type){case"catchall":case"optional-catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":const e=s.slice(t).flatMap(e=>{const t=(0,r.getSegmentParam)(e);return t?i[t.param]:e}).filter(e=>void 0!==e);e.length>0&&(i[u.param]=e);break;case"dynamic":case"dynamic-intercepted-(..)(..)":case"dynamic-intercepted-(.)":case"dynamic-intercepted-(..)":case"dynamic-intercepted-(...)":if(t<s.length){const e=s[t],n=(0,r.getSegmentParam)(e);i[u.param]=n?i[n.param]:e}break;default:u.type}let f=t;o.startsWith("(")&&o.endsWith(")")||""===o||f++;for(const e of Object.values(l))c.push({tree:e,depth:f})}return i}function a(e,n,r,o){let a=function(e,t,n){let r=e[t];if(n?.has(t)){const[e]=n.get(t);r=e}else Array.isArray(r)?r=r.map(e=>encodeURIComponent(e)):"string"==typeof r&&(r=encodeURIComponent(r));return r}(e,n,o);if(!a||0===a.length){if("oc"===r)return{param:n,value:null,type:r,treeSegment:[n,"",r]};throw Object.defineProperty(new t.InvariantError(`Missing value for segment key: "${n}" with dynamic param type: ${r}`),"__NEXT_ERROR_CODE",{value:"E864",enumerable:!1,configurable:!0})}return{param:n,value:a,treeSegment:[n,Array.isArray(a)?a.join("/"):a,r],type:r}}const i=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function c(e){const t=e.match(i);return s(t?t[2]:e)}function s(e){const t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));const n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}}(Ue)),Ue}function Qe(){return Ke||(Ke=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{getNamedMiddlewareRegex:function(){return f},getNamedRouteRegex:function(){return u},getRouteRegex:function(){return c}});const t=(Ie||(Ie=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{ACTION_SUFFIX:function(){return p},APP_DIR_ALIAS:function(){return k},CACHE_ONE_YEAR:function(){return O},DOT_NEXT_ALIAS:function(){return M},ESLINT_DEFAULT_DIRS:function(){return te},GSP_NO_RETURNED_VALUE:function(){return V},GSSP_COMPONENT_MEMBER_ERROR:function(){return Z},GSSP_NO_RETURNED_VALUE:function(){return q},HTML_CONTENT_TYPE_HEADER:function(){return n},INFINITE_CACHE:function(){return w},INSTRUMENTATION_HOOK_FILENAME:function(){return A},JSON_CONTENT_TYPE_HEADER:function(){return r},MATCHED_PATH_HEADER:function(){return i},MIDDLEWARE_FILENAME:function(){return N},MIDDLEWARE_LOCATION_REGEXP:function(){return T},NEXT_BODY_SUFFIX:function(){return g},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return P},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return x},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return y},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return R},NEXT_CACHE_TAGS_HEADER:function(){return _},NEXT_CACHE_TAG_MAX_ITEMS:function(){return v},NEXT_CACHE_TAG_MAX_LENGTH:function(){return E},NEXT_DATA_SUFFIX:function(){return h},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return a},NEXT_META_SUFFIX:function(){return m},NEXT_QUERY_PARAM_PREFIX:function(){return o},NEXT_RESUME_HEADER:function(){return b},NON_STANDARD_NODE_ENV:function(){return J},PAGES_DIR_ALIAS:function(){return C},PRERENDER_REVALIDATE_HEADER:function(){return c},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return s},PROXY_FILENAME:function(){return S},PROXY_LOCATION_REGEXP:function(){return j},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return H},ROOT_DIR_ALIAS:function(){return I},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return F},RSC_ACTION_ENCRYPTION_ALIAS:function(){return W},RSC_ACTION_PROXY_ALIAS:function(){return L},RSC_ACTION_VALIDATE_ALIAS:function(){return D},RSC_CACHE_WRAPPER_ALIAS:function(){return X},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return U},RSC_MOD_REF_PROXY_ALIAS:function(){return $},RSC_PREFETCH_SUFFIX:function(){return l},RSC_SEGMENTS_DIR_SUFFIX:function(){return u},RSC_SEGMENT_SUFFIX:function(){return f},RSC_SUFFIX:function(){return d},SERVER_PROPS_EXPORT_ERROR:function(){return Y},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return B},SERVER_PROPS_SSG_CONFLICT:function(){return K},SERVER_RUNTIME:function(){return ne},SSG_FALLBACK_EXPORT_ERROR:function(){return ee},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return z},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return G},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return t},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return Q},WEBPACK_LAYERS:function(){return ae},WEBPACK_RESOURCE_QUERIES:function(){return ie},WEB_SOCKET_MAX_RECONNECTIONS:function(){return re}});const t="text/plain",n="text/html; charset=utf-8",r="application/json; charset=utf-8",o="nxtP",a="nxtI",i="x-matched-path",c="x-prerender-revalidate",s="x-prerender-revalidate-if-generated",l=".prefetch.rsc",u=".segments",f=".segment.rsc",d=".rsc",p=".action",h=".json",m=".meta",g=".body",_="x-next-cache-tags",x="x-next-revalidated-tags",y="x-next-revalidate-tag-token",b="next-resume",v=128,E=256,R=1024,P="_N_T_",O=31536e3,w=4294967294,N="middleware",T=`(?:src/)?${N}`,S="proxy",j=`(?:src/)?${S}`,A="instrumentation",C="private-next-pages",M="private-dot-next",I="private-next-root-dir",k="private-next-app-dir",$="private-next-rsc-mod-ref-proxy",D="private-next-rsc-action-validate",L="private-next-rsc-server-reference",X="private-next-rsc-cache-wrapper",U="private-next-rsc-track-dynamic-import",W="private-next-rsc-action-encryption",F="private-next-rsc-action-client-wrapper",H="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",z="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",B="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",K="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",G="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",Y="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",V="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",q="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",Q="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",Z="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",J='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',ee="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",te=["app","pages","components","lib","src"],ne={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},re=12,oe={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},ae={...oe,GROUP:{builtinReact:[oe.reactServerComponents,oe.actionBrowser],serverOnly:[oe.reactServerComponents,oe.actionBrowser,oe.instrument,oe.middleware],neutralTarget:[oe.apiNode,oe.apiEdge],clientOnly:[oe.serverSideRendering,oe.appPagesBrowser],bundled:[oe.reactServerComponents,oe.actionBrowser,oe.serverSideRendering,oe.appPagesBrowser,oe.shared,oe.instrument,oe.middleware],appPages:[oe.reactServerComponents,oe.serverSideRendering,oe.appPagesBrowser,oe.actionBrowser]}},ie={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}}($e)),$e),n=be(),r=(De||(De=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return r}});const t=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function r(e){return t.test(e)?e.replace(n,"\\$&"):e}}(Le)),Le),o=z(),a=qe();function i(e,t,i){const c={};let s=1;const l=[];for(const u of(0,o.removeTrailingSlash)(e).slice(1).split("/")){const e=n.INTERCEPTION_ROUTE_MARKERS.find(e=>u.startsWith(e)),o=u.match(a.PARAMETER_PATTERN);if(e&&o&&o[2]){const{key:t,optional:n,repeat:i}=(0,a.parseMatchedParameter)(o[2]);c[t]={pos:s++,repeat:i,optional:n},l.push(`/${(0,r.escapeStringRegexp)(e)}([^/]+?)`)}else if(o&&o[2]){const{key:e,repeat:t,optional:n}=(0,a.parseMatchedParameter)(o[2]);c[e]={pos:s++,repeat:t,optional:n},i&&o[1]&&l.push(`/${(0,r.escapeStringRegexp)(o[1])}`);let u=t?n?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";i&&o[1]&&(u=u.substring(1)),l.push(u)}else l.push(`/${(0,r.escapeStringRegexp)(u)}`);t&&o&&o[3]&&l.push((0,r.escapeStringRegexp)(o[3]))}return{parameterizedRoute:l.join(""),groups:c}}function c(e,{includeSuffix:t=!1,includePrefix:n=!1,excludeOptionalTrailingSlash:r=!1}={}){const{parameterizedRoute:o,groups:a}=i(e,t,n);let c=o;return r||(c+="(?:/)?"),{re:new RegExp(`^${c}$`),groups:a}}function s({interceptionMarker:e,getSafeRouteKey:t,segment:n,routeKeys:o,keyPrefix:i,backreferenceDuplicateKeys:c}){const{key:s,optional:l,repeat:u}=(0,a.parseMatchedParameter)(n);let f=s.replace(/\W/g,"");i&&(f=`${i}${f}`);let d=!1;(0===f.length||f.length>30)&&(d=!0),isNaN(parseInt(f.slice(0,1)))||(d=!0),d&&(f=t());const p=f in o;o[f]=i?`${i}${s}`:s;const h=e?(0,r.escapeStringRegexp)(e):"";let m;return m=p&&c?`\\k<${f}>`:u?`(?<${f}>.+?)`:`(?<${f}>[^/]+?)`,{key:s,pattern:l?`(?:/${h}${m})?`:`/${h}${m}`,cleanedKey:f,optional:l,repeat:u}}function l(e,i,c,l,u,f={names:{},intercepted:{}}){const d=function(){let e=0;return()=>{let t="",n=++e;for(;n>0;)t+=String.fromCharCode(97+(n-1)%26),n=Math.floor((n-1)/26);return t}}(),p={},h=[],m=[];f=structuredClone(f);for(const g of(0,o.removeTrailingSlash)(e).slice(1).split("/")){const e=n.INTERCEPTION_ROUTE_MARKERS.some(e=>g.startsWith(e)),o=g.match(a.PARAMETER_PATTERN),_=e?o?.[1]:void 0;let x;if(_&&o?.[2]?(x=i?t.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,f.intercepted[o[2]]=_):x=o?.[2]&&f.intercepted[o[2]]?i?t.NEXT_INTERCEPTION_MARKER_PREFIX:void 0:i?t.NEXT_QUERY_PARAM_PREFIX:void 0,_&&o&&o[2]){const{key:e,pattern:t,cleanedKey:n,repeat:r,optional:a}=s({getSafeRouteKey:d,interceptionMarker:_,segment:o[2],routeKeys:p,keyPrefix:x,backreferenceDuplicateKeys:u});h.push(t),m.push(`/${o[1]}:${f.names[e]??n}${r?a?"*":"+":""}`),f.names[e]??=n}else if(o&&o[2]){l&&o[1]&&(h.push(`/${(0,r.escapeStringRegexp)(o[1])}`),m.push(`/${o[1]}`));const{key:e,pattern:t,cleanedKey:n,repeat:a,optional:i}=s({getSafeRouteKey:d,segment:o[2],routeKeys:p,keyPrefix:x,backreferenceDuplicateKeys:u});let c=t;l&&o[1]&&(c=c.substring(1)),h.push(c),m.push(`/:${f.names[e]??n}${a?i?"*":"+":""}`),f.names[e]??=n}else h.push(`/${(0,r.escapeStringRegexp)(g)}`),m.push(`/${g}`);c&&o&&o[3]&&(h.push((0,r.escapeStringRegexp)(o[3])),m.push(o[3]))}return{namedParameterizedRoute:h.join(""),routeKeys:p,pathToRegexpPattern:m.join(""),reference:f}}function u(e,t){const n=l(e,t.prefixRouteKeys,t.includeSuffix??!1,t.includePrefix??!1,t.backreferenceDuplicateKeys??!1,t.reference);let r=n.namedParameterizedRoute;return t.excludeOptionalTrailingSlash||(r+="(?:/)?"),{...c(e,t),namedRegex:`^${r}$`,routeKeys:n.routeKeys,pathToRegexpPattern:n.pathToRegexpPattern,reference:n.reference}}function f(e,t){const{parameterizedRoute:n}=i(e,!1,!1),{catchAll:r=!0}=t;if("/"===n){return{namedRegex:`^/${r?".*":""}$`}}const{namedParameterizedRoute:o}=l(e,!1,!1,!1,!1,void 0);return{namedRegex:`^${o}${r?"(?:(/.*)?)":""}$`}}}(ke)),ke}function Ze(){return Ye||(Ye=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});const n=C(),r=k(),o=($||($=1,function(e){function t(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}})}(D)),D),a=U(),i=V(),c=re(),s=ve(),l=(Ge||(Ge=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return r}});const t=Me(),n=Qe();function r(e,r,o){let a="";const i=(0,n.getRouteRegex)(e),c=i.groups,s=(r!==e?(0,t.getRouteMatcher)(i)(r):"")||o;a=e;const l=Object.keys(c);return l.every(e=>{let t=s[e]||"";const{repeat:n,optional:r}=c[e];let o=`[${n?"...":""}${e}]`;return r&&(o=`${t?"":"/"}[${o}]`),n&&!Array.isArray(t)&&(t=[t]),(r||e in s)&&(a=a.replace(o,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:l,result:a}}}(Re)),Re),u=Qe(),f=Me();function d(e,t,d){let p,h="string"==typeof t?t:(0,r.formatWithValidation)(t);const m=h.match(/^[a-z][a-z0-9+.-]*:\/\//i),g=m?h.slice(m[0].length):h;if((g.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error(`Invalid href '${h}' passed to next/router in page: '${e.pathname}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);const t=(0,a.normalizeRepeatedSlashes)(g);h=(m?m[0]:"")+t}if(!(0,c.isLocalURL)(h))return d?[h]:h;try{let t=h.startsWith("#")?e.asPath:e.pathname;if(h.startsWith("?")&&(t=e.asPath,(0,s.isDynamicRoute)(e.pathname))){t=e.pathname;const n=(0,u.getRouteRegex)(e.pathname);(0,f.getRouteMatcher)(n)(e.asPath)||(t=e.asPath)}p=new URL(t,"http://n")}catch(e){p=new URL("/","http://n")}try{const e=new URL(h,p);e.pathname=(0,i.normalizePathTrailingSlash)(e.pathname);let t="";if((0,s.isDynamicRoute)(e.pathname)&&e.searchParams&&d){const a=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:i,params:c}=(0,l.interpolateAs)(e.pathname,e.pathname,a);i&&(t=(0,r.formatWithValidation)({pathname:i,hash:e.hash,query:(0,o.omit)(a,c)}))}const a=e.origin===p.origin?e.href.slice(e.origin.length):e.href;return d?[a,t||a]:a}catch(e){return d?[h]:h}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(j,j.exports)),j.exports}var Je,et,tt,nt={exports:{}},rt={},ot={};function at(){return Je||(Je=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return n}});const t=Y();function n(e,n){if(!e.startsWith("/")||!n)return e;const{pathname:r,query:o,hash:a}=(0,t.parsePath)(e);return`${n}${r}${o}${a}`}}(ot)),ot}function it(){return et||(et=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return r}});const t=at(),n=ne();function r(e,r,o,a){if(!r||r===o)return e;const i=e.toLowerCase();if(!a){if((0,n.pathHasPrefix)(i,"/api"))return e;if((0,n.pathHasPrefix)(i,`/${r.toLowerCase()}`))return e}return(0,t.addPathPrefix)(e,`/${r}`)}}(rt)),rt}var ct,st,lt={},ut={};function ft(){if(ct)return ut;return ct=1,ut._=function(e){return e&&e.__esModule?e:{default:e}},ut}var dt,pt,ht={exports:{}},mt={exports:{}};function gt(){return pt||(pt=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});const n=o,r=(dt||(dt=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});const n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(mt,mt.exports)),mt.exports),a="function"==typeof IntersectionObserver,i=new Map,c=[];function s(e,t,n){const{id:r,observer:o,elements:a}=function(e){const t={root:e.root||null,margin:e.rootMargin||""},n=c.find(e=>e.root===t.root&&e.margin===t.margin);let r;if(n&&(r=i.get(n),r))return r;const o=new Map,a=new IntersectionObserver(e=>{e.forEach(e=>{const t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return r={id:t,observer:a,elements:o},c.push(t),i.set(t,r),r}(n);return a.set(e,t),o.observe(e),function(){if(a.delete(e),o.unobserve(e),0===a.size){o.disconnect(),i.delete(r);const e=c.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&c.splice(e,1)}}}function l({rootRef:e,rootMargin:t,disabled:o}){const i=o||!a,[c,l]=(0,n.useState)(!1),u=(0,n.useRef)(null),f=(0,n.useCallback)(e=>{u.current=e},[]);(0,n.useEffect)(()=>{if(a){if(i||c)return;const n=u.current;if(n&&n.tagName){return s(n,e=>e&&l(e),{root:e?.current,rootMargin:t})}}else if(!c){const e=(0,r.requestIdleCallback)(()=>l(!0));return()=>(0,r.cancelIdleCallback)(e)}},[i,t,e,c,u.current]);const d=(0,n.useCallback)(()=>{l(!1)},[]);return[f,c,d]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ht,ht.exports)),ht.exports}var _t,xt,yt={exports:{}},bt={exports:{}},vt={};function Et(){return _t||(_t=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});const t=new WeakMap;function n(e,n){if(!n)return{pathname:e};let r,o=t.get(n);o||(o=n.map(e=>e.toLowerCase()),t.set(n,o));const a=e.split("/",2);if(!a[1])return{pathname:e};const i=a[1].toLowerCase(),c=o.indexOf(i);return c<0?{pathname:e}:(r=n[c],{pathname:e=e.slice(r.length+1)||"/",detectedLocale:r})}}(vt)),vt}var Rt,Pt,Ot,wt={exports:{}},Nt={};function Tt(){return Rt||(Rt=1,function(e){function t(e,t,n){if(e){n&&(n=n.toLowerCase());for(const r of e){const e=r.domain?.split(":",1)[0].toLowerCase();if(t===e||n===r.defaultLocale.toLowerCase()||r.locales?.some(e=>e.toLowerCase()===n))return r}}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}})}(Nt)),Nt}function St(){return Ot||(Ot=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}});const n=V(),r=process.env.__NEXT_ROUTER_BASEPATH||"";function o(e,t,o,a){if(process.env.__NEXT_I18N_SUPPORT){const i=(xt||(xt=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});const n=(e,t)=>process.env.__NEXT_I18N_SUPPORT?Et().normalizeLocalePath(e,t):{pathname:e,detectedLocale:void 0};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(bt,bt.exports)),bt.exports).normalizeLocalePath,c=(Pt||(Pt=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return n}});const n=(...e)=>{if(process.env.__NEXT_I18N_SUPPORT)return Tt().detectDomainLocale(...e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(wt,wt.exports)),wt.exports).detectDomainLocale,s=t||i(e,o).detectedLocale,l=c(a,void 0,s);if(l){const t=`http${l.http?"":"s"}://`,o=s===l.defaultLocale?"":`/${s}`;return`${t}${l.domain}${(0,n.normalizePathTrailingSlash)(`${r}${o}${e}`)}`}return!1}return!1}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(yt,yt.exports)),yt.exports}var jt,At={exports:{}};var Ct,Mt={exports:{}};var It,kt,$t,Dt,Lt={};function Xt(){return kt||(kt=1,function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(n,{default:function(){return R},useLinkStatus:function(){return E}});const r=e,a=T()._(o),i=Ze(),c=re(),s=k(),l=U(),u=(tt||(tt=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}});const n=V(),r=(e,...t)=>process.env.__NEXT_I18N_SUPPORT?(0,n.normalizePathTrailingSlash)(it().addLocale(e,...t)):e;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(nt,nt.exports)),nt.exports),f=(st||(st=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return t}});const t=ft()._(o).default.createContext(null);"production"!==process.env.NODE_ENV&&(t.displayName="RouterContext")}(lt)),lt),d=gt(),p=St(),h=(jt||(jt=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});const n=at(),r=V(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function a(e,t){return(0,r.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!t?e:(0,n.addPathPrefix)(e,o))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(At,At.exports)),At.exports),m=(Ct||(Ct=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return r}});const n=o;function r(e,t){const r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){const e=r.current;e&&(r.current=null,e());const t=o.current;t&&(o.current=null,t())}else e&&(r.current=a(e,n)),t&&(o.current=a(t,n))},[e,t])}function a(e,t){if("function"==typeof e){const n=e(t);return"function"==typeof n?n:()=>e(null)}return e.current=t,()=>{e.current=null}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Mt,Mt.exports)),Mt.exports),g=(It||(It=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"errorOnce",{enumerable:!0,get:function(){return t}});let t=e=>{};if("production"!==process.env.NODE_ENV){const e=new Set;t=t=>{e.has(t)||console.error(t),e.add(t)}}}(Lt)),Lt),_=new Set;function x(e,t,n,r){if("undefined"!=typeof window&&(0,c.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){const o=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(_.has(o))return;_.add(o)}e.prefetch(t,n,r).catch(e=>{if("production"!==process.env.NODE_ENV)throw e})}}function y(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}const b=a.default.forwardRef(function(e,t){let n;const{href:o,as:s,children:_,prefetch:b=null,passHref:v,replace:E,shallow:R,scroll:P,locale:O,onClick:w,onNavigate:N,onMouseEnter:T,onTouchStart:S,legacyBehavior:j=!1,...A}=e;n=_,!j||"string"!=typeof n&&"number"!=typeof n||(n=(0,r.jsx)("a",{children:n}));const C=a.default.useContext(f.RouterContext),M=!1!==b;if("production"!==process.env.NODE_ENV){function K(e){return Object.defineProperty(new Error(`Failed prop type: The prop \`${e.key}\` expects a ${e.expected} in \`<Link>\`, but got \`${e.actual}\` instead.`+("undefined"!=typeof window?"\nOpen your browser's console to view the Component stack trace.":"")),"__NEXT_ERROR_CODE",{value:"E319",enumerable:!1,configurable:!0})}const G={href:!0};Object.keys(G).forEach(t=>{if("href"===t&&(null==e[t]||"string"!=typeof e[t]&&"object"!=typeof e[t]))throw K({key:t,expected:"`string` or `object`",actual:null===e[t]?"null":typeof e[t]})});const Y={as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0,onNavigate:!0};Object.keys(Y).forEach(t=>{const n=typeof e[t];if("as"===t){if(e[t]&&"string"!==n&&"object"!==n)throw K({key:t,expected:"`string` or `object`",actual:n})}else if("locale"===t){if(e[t]&&"string"!==n)throw K({key:t,expected:"`string`",actual:n})}else if("onClick"===t||"onMouseEnter"===t||"onTouchStart"===t||"onNavigate"===t){if(e[t]&&"function"!==n)throw K({key:t,expected:"`function`",actual:n})}else if("replace"===t||"scroll"===t||"shallow"===t||"passHref"===t||"legacyBehavior"===t){if(null!=e[t]&&"boolean"!==n)throw K({key:t,expected:"`boolean`",actual:n})}else if("prefetch"===t&&null!=e[t]&&"boolean"!==n&&"auto"!==e[t])throw K({key:t,expected:'`boolean | "auto"`',actual:n})})}const{href:I,as:k}=a.default.useMemo(()=>{if(!C){const e=y(o);return{href:e,as:s?y(s):e}}const[e,t]=(0,i.resolveHref)(C,o,!0);return{href:e,as:s?(0,i.resolveHref)(C,s):t||e}},[C,o,s]),$=a.default.useRef(I),D=a.default.useRef(k);let L;if(j)if("development"===process.env.NODE_ENV){w&&console.warn(`"onClick" was passed to <Link> with \`href\` of \`${o}\` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link`),T&&console.warn(`"onMouseEnter" was passed to <Link> with \`href\` of \`${o}\` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link`);try{L=a.default.Children.only(n)}catch(V){if(!n)throw Object.defineProperty(new Error(`No children were passed to <Link> with \`href\` of \`${o}\` but one child is required https://nextjs.org/docs/messages/link-no-children`),"__NEXT_ERROR_CODE",{value:"E320",enumerable:!1,configurable:!0});throw Object.defineProperty(new Error(`Multiple children were passed to <Link> with \`href\` of \`${o}\` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children`+("undefined"!=typeof window?" \nOpen your browser's console to view the Component stack trace.":"")),"__NEXT_ERROR_CODE",{value:"E266",enumerable:!1,configurable:!0})}}else L=a.default.Children.only(n);else if("development"===process.env.NODE_ENV&&"a"===n?.type)throw Object.defineProperty(new Error("Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.\nLearn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor"),"__NEXT_ERROR_CODE",{value:"E209",enumerable:!1,configurable:!0});const X=j?L&&"object"==typeof L&&L.ref:t,[U,W,F]=(0,d.useIntersection)({rootMargin:"200px"}),H=a.default.useCallback(e=>{D.current===k&&$.current===I||(F(),D.current=k,$.current=I),U(e)},[k,I,F,U]),z=(0,m.useMergedRef)(H,X);a.default.useEffect(()=>{"production"===process.env.NODE_ENV&&C&&W&&M&&x(C,I,k,{locale:O})},[k,I,W,O,M,C?.locale,C]);const B={ref:z,onClick(e){if("production"!==process.env.NODE_ENV&&!e)throw Object.defineProperty(new Error('Component rendered inside next/link has to pass click event to "onClick" prop.'),"__NEXT_ERROR_CODE",{value:"E312",enumerable:!1,configurable:!0});j||"function"!=typeof w||w(e),j&&L.props&&"function"==typeof L.props.onClick&&L.props.onClick(e),C&&(e.defaultPrevented||function(e,t,n,r,o,a,i,s,l){const{nodeName:u}=e.currentTarget;if("A"===u.toUpperCase()&&function(e){const t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))return;if(!(0,c.isLocalURL)(n))return void(o&&(e.preventDefault(),location.replace(n)));e.preventDefault(),(()=>{if(l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}const e=i??!0;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:a,locale:s,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})})()}(e,C,I,k,E,R,P,O,N))},onMouseEnter(e){j||"function"!=typeof T||T(e),j&&L.props&&"function"==typeof L.props.onMouseEnter&&L.props.onMouseEnter(e),C&&x(C,I,k,{locale:O,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:process.env.__NEXT_LINK_NO_TOUCH_START?void 0:function(e){j||"function"!=typeof S||S(e),j&&L.props&&"function"==typeof L.props.onTouchStart&&L.props.onTouchStart(e),C&&x(C,I,k,{locale:O,priority:!0,bypassPrefetchedCheck:!0})}};if((0,l.isAbsoluteUrl)(k))B.href=k;else if(!j||v||"a"===L.type&&!("href"in L.props)){const q=void 0!==O?O:C?.locale,Q=C?.isLocaleDomain&&(0,p.getDomainLocale)(k,q,C?.locales,C?.domainLocales);B.href=Q||(0,h.addBasePath)((0,u.addLocale)(k,q,C?.defaultLocale))}return j?("development"===process.env.NODE_ENV&&(0,g.errorOnce)("`legacyBehavior` is deprecated and will be removed in a future release. A codemod is available to upgrade your components:\n\nnpx @next/codemod@latest new-link .\n\nLearn more: https://nextjs.org/docs/app/building-your-application/upgrading/codemods#remove-a-tags-from-link-components"),a.default.cloneElement(L,B)):(0,r.jsx)("a",{...A,...B,children:n})}),v=(0,a.createContext)({pending:!1}),E=()=>(0,a.useContext)(v),R=b;("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)}(w,w.exports)),w.exports}var Ut=P(Dt?$t:(Dt=1,$t=Xt()));const Wt={"neu-flat":{base:"neu-flat",hover:"hover:neu-inset"},"neu-raised":{base:"neu-raised",hover:"hover:neu-inset"},"neu-inset":{base:"neu-inset",hover:"hover:neu-flat"}};function Ft({dropDowns:e}){const[o,i]=a(null);return t(r,{children:t("div",{className:"flex flex-row gap-5 font-inter",children:e.map((e,r)=>{const a=Wt[e.dropDownType],c=o===r;return n("div",{className:"relative",children:[n("button",{onClick:()=>function(e){i(o===e?null:e)}(r),className:`${a.base} !rounded-lg cursor-pointer ${a.hover} transition-all duration-200 px-5 py-2 font-medium text-sm flex items-center gap-2`,children:[e.dropDownMenuLabel,t("div",{className:"neu-inset w-6 h-6 flex items-center justify-center flex-shrink-0 !rounded-full",children:t("svg",{className:"w-3 h-3 transition-transform duration-200 text-gray-500 dark:text-gray-300 "+(c?"rotate-180":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),c?t("div",{className:"absolute mt-2 min-w-[200px] z-10 flex flex-col gap-2 animate-[fadeSlideIn_0.25s_ease-out]",children:e.dropDownItem.map((e,n)=>{var r;return t(Ut,{href:null!==(r=e.dropDownURL)&&void 0!==r?r:"#",children:t("div",{className:`${a.base} px-4 py-3 text-sm text-gray-700 dark:text-gray-300 ${a.hover} transition-all duration-200 cursor-pointer`,children:e.dropDownLable})},n)})}):null]},r)})})})}function Ht({tables:e}){return t("div",{className:"flex flex-col sm:flex-row flex-wrap gap-8 w-full",children:e.map((e,r)=>n("div",{className:`no-hover ${e.styleType} p-4 sm:p-6 flex-1 min-w-0 max-w-full overflow-hidden`,children:[e.label&&t("h2",{className:"text-lg font-semibold mb-4 text-foreground",children:e.label}),t("div",{className:"overflow-x-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",children:n("table",{className:"w-full border-collapse",children:[t("thead",{children:t("tr",{children:e.header.map((e,n)=>t("th",{className:"text-left text-xs sm:text-sm font-semibold text-foreground/70 px-2 sm:px-4 py-2 sm:py-3 border-b border-foreground/10 whitespace-nowrap",children:e},n))})}),t("tbody",{children:e.rows.map((n,r)=>t("tr",{className:"transition-colors duration-200 hover:bg-foreground/5",children:e.header.map((e,r)=>t("td",{className:"px-2 sm:px-4 py-2 sm:py-3 text-xs sm:text-sm text-foreground/90 border-b border-foreground/5 whitespace-nowrap",children:n[e]},r))},r))})]})})]},r))})}function zt({lable:e,helperText:o,resize:a,errorMessage:i,styleType:c}){return t(r,{children:n("div",{className:"w-full max-w-[600px]",children:[e&&t("label",{className:"block text-md font-bold text-foreground mb-2",children:e}),t("textarea",{placeholder:o,className:` no-hover ${c} w-full min-h-[120px] p-4 rounded-xl bg-transparent text-foreground/90 text-sm placeholder:text-foreground/40 border-none outline-none ${"off"===a?"resize-none":"resize"}`}),i&&t("p",{className:"text-red-500 text-xs mt-2",children:i})]})})}function Bt({lable:e,styleType:r,size:o,onChange:i}){const[c,s]=a(!1),l={sm:{track:"w-[3rem] h-[1.5rem]",thumb:"w-[1.2rem] h-[1.2rem]",translate:"translate-x-[1.5rem]"},md:{track:"w-[4rem] h-[2rem]",thumb:"w-[1.6rem] h-[1.6rem]",translate:"translate-x-[2.1rem]"},lg:{track:"w-[5rem] h-[2.5rem]",thumb:"w-[2rem] h-[2rem]",translate:"translate-x-[2.6rem]"}};return n("div",{className:"flex flex-col items-center gap-3",children:[e&&t("h2",{className:"text-sm dark:text-gray-300",children:e}),t("div",{onClick:function(){const e=!c;s(e),null==i||i(e)},className:`${r} ${l[o].track} flex items-center rounded-full cursor-pointer p-[3px] no-hover`,children:t("div",{className:`${r} ${l[o].thumb} rounded-full transition-transform duration-300 bg-gray-900 dark:bg-gray-600 no-hover ${c?l[o].translate:"translate-x-0"}`})})]})}export{l as Accordion,f as BarChart,p as Buttons,m as Calendar,x as CalloutCard,b as Card,v as Carousel,E as Chat,R as Drawer,Ft as DropDown,Ht as Table,zt as TextArea,Bt as Toggle};
|
package/dist/styles.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[data-looply]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#171717;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;line-height:1.5;margin:0;padding:0}[data-looply],[data-looply] *,[data-looply] :after,[data-looply] :before{box-sizing:border-box}:where(.dark,.dark *) [data-looply]{color:#ededed}@import "tailwindcss";@custom-variant dark (&:where(.dark, .dark *));:root{--background:#f0f0f3;--foreground:#2d2d2d;--neu-shadow-light:#fff;--neu-shadow-dark:rgba(174,174,192,.4);--neu-radius:20px;--neu-raised:-10px -10px 30px 0 var(--neu-shadow-light),10px 10px 30px 0 var(--neu-shadow-dark);--neu-flat:-10px -10px 10px 0 hsla(0,0%,100%,.7),10px 10px 10px 0 rgba(174,174,192,.2);--neu-inset:inset -10px -10px 10px 0 rgba(174,174,192,.25),inset 10px 10px 10px 0 #fff;--neu-btn:-5px -5px 10px 0 var(--neu-shadow-light),5px 5px 10px 0 var(--neu-shadow-dark);--neu-btn-pressed:inset -3px -3px 7px 0 var(--neu-shadow-light),inset 3px 3px 7px 0 var(--neu-shadow-dark)}@theme inline{--color-background:var(--background);--color-foreground:var(--foreground);--font-sans:var(--font-geist-sans);--font-mono:var(--font-geist-mono)}.dark{--background:#2d2d30;--foreground:#ededed;--neu-shadow-light:hsla(0,0%,100%,.08);--neu-shadow-dark:rgba(0,0,0,.5);--neu-flat:-10px -10px 10px 0 hsla(0,0%,100%,.05),10px 10px 10px 0 rgba(0,0,0,.4);--neu-inset:inset -10px -10px 10px 0 hsla(0,0%,100%,.05),inset 10px 10px 10px 0 rgba(0,0,0,.4)}body{background:var(--background);color:var(--foreground);font-family:Inter,sans-serif;margin:1.5rem 5.5rem}@media (max-width:640px){body{margin:.5rem 1rem}}.neu-raised{box-shadow:var(--neu-raised)}.neu-flat,.neu-raised{background:var(--background);border-radius:var(--neu-radius)}.neu-flat{box-shadow:var(--neu-flat)}.neu-inset{background:var(--background);border-radius:var(--neu-radius);box-shadow:var(--neu-inset);transition:box-shadow .3s ease}.neu-inset:hover{box-shadow:var(--neu-flat)}.neu-pressed{background:var(--background);border-radius:12px;box-shadow:inset 4px 4px 8px 0 var(--neu-shadow-dark),inset -4px -4px 8px 0 var(--neu-shadow-light);transition:box-shadow .3s ease}.neu-pressed:hover{box-shadow:var(--neu-flat)}.no-hover.neu-inset:hover{box-shadow:var(--neu-inset)}.no-hover.neu-pressed:hover{box-shadow:inset 4px 4px 8px 0 var(--neu-shadow-dark),inset -4px -4px 8px 0 var(--neu-shadow-light)}.no-hover.neu-flat:hover{box-shadow:var(--neu-flat)}.neu-pressed-code{border-radius:var(--neu-radius)}.mdx-content pre,.neu-pressed-code{background:var(--background);box-shadow:inset 4px 4px 8px 0 var(--neu-shadow-dark),inset -4px -4px 8px 0 var(--neu-shadow-light)}.mdx-content pre,.neu-btn{border-radius:12px}.neu-btn{background:var(--background);border:none;box-shadow:var(--neu-btn);transition:all .2s ease}.neu-btn:hover{box-shadow:var(--neu-inset)}.neu-btn:active{box-shadow:var(--neu-btn-pressed)}.neu-btn-flat{background:var(--background);border-radius:var(--neu-radius);box-shadow:var(--neu-flat);transition:box-shadow .3s ease}.neu-btn-flat:hover{box-shadow:var(--neu-inset)}.neu-btn-flat:active{box-shadow:inset -3px -3px 7px 0 var(--neu-shadow-light),inset 3px 3px 7px 0 var(--neu-shadow-dark)}.neu-btn-raised{background:var(--background);border-radius:var(--neu-radius);box-shadow:var(--neu-raised);transition:box-shadow .3s ease}.neu-btn-raised:hover{box-shadow:var(--neu-flat)}.neu-btn-inset,.neu-btn-raised:active{box-shadow:var(--neu-inset)}.neu-btn-inset{background:var(--background);border-radius:var(--neu-radius);transition:box-shadow .3s ease}.neu-btn-inset:hover{box-shadow:var(--neu-flat)}.neu-btn-inset:active{box-shadow:var(--neu-raised)}@keyframes fadeSlideIn{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
|
package/package.json
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "looply-comp-lib",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.cjs",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"./styles.css": "./dist/styles.css"
|
|
15
|
+
},
|
|
8
16
|
"files": [
|
|
9
17
|
"dist"
|
|
10
18
|
],
|
|
@@ -29,17 +37,26 @@
|
|
|
29
37
|
"dependencies": {
|
|
30
38
|
"@auth/prisma-adapter": "^2.11.1",
|
|
31
39
|
"@huggingface/inference": "^4.13.3",
|
|
40
|
+
"@mdx-js/loader": "^3.1.1",
|
|
41
|
+
"@mdx-js/react": "^3.1.1",
|
|
42
|
+
"@next/mdx": "^16.2.2",
|
|
32
43
|
"@prisma/adapter-neon": "^7.2.0",
|
|
33
44
|
"@prisma/adapter-pg": "^7.1.0",
|
|
34
45
|
"@prisma/client": "^7.1.0",
|
|
46
|
+
"@types/mdx": "^2.0.13",
|
|
35
47
|
"dotenv": "^17.2.3",
|
|
36
|
-
"
|
|
48
|
+
"gray-matter": "^4.0.3",
|
|
49
|
+
"next": ">=14",
|
|
37
50
|
"next-auth": "^5.0.0-beta.30",
|
|
38
|
-
"next-
|
|
51
|
+
"next-mdx-remote": "^6.0.0",
|
|
52
|
+
"next-themes": ">=0.4",
|
|
39
53
|
"openai": "^6.9.1",
|
|
40
54
|
"pg": "^8.16.3",
|
|
41
|
-
"react": "
|
|
42
|
-
"react-dom": "
|
|
55
|
+
"react": ">=18",
|
|
56
|
+
"react-dom": ">=18",
|
|
57
|
+
"rehype-pretty-code": "^0.14.4",
|
|
58
|
+
"remark-gfm": "^4.0.1",
|
|
59
|
+
"shiki": "^4.3.1"
|
|
43
60
|
},
|
|
44
61
|
"devDependencies": {
|
|
45
62
|
"@babel/core": "^7.29.0",
|
|
@@ -70,7 +87,10 @@
|
|
|
70
87
|
"typescript": "^5.9.3"
|
|
71
88
|
},
|
|
72
89
|
"peerDependencies": {
|
|
90
|
+
"next": ">=14",
|
|
91
|
+
"next-themes": ">=0.4",
|
|
73
92
|
"react": ">=18",
|
|
74
|
-
"react-dom": ">=18"
|
|
93
|
+
"react-dom": ">=18",
|
|
94
|
+
"tailwindcss": ">=4"
|
|
75
95
|
}
|
|
76
96
|
}
|