"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5732,6910],{36910:(e,t,n)=>{let r;n.d(t,{ClientEntry:()=>nj});var a=n(75295),o=n.t(a,2),i=n(46199),s=n.n(i),l=n(15382),c=n.t(l,2),d=n(89078),u=n(22748),f=n(74148),h=n(95851),m=n(65065),p=n(55860),v=n(74345),g=n(61549),w=n(20798),b=n(23929),_=n(34831),x=n(80666),y=n(51796),S=n(85691),j=n(57149),P=n(24658),E=n(56183),k=n(9360),C=n(11880),T=n(20295),N=n(19750),R=n(62516),O=n(48467),A=n(79855),L=n(82425),M=n(53066),I=n(25098),D=n(89259),W=n(92849),F=n(60388),z=n(54673),U=n(94979),H=n(58296),V=n(13949),B=n(94785),q=n(95837),G=n(45607),J=n(17616),$=n(85732),X=n(70097),Z=n(41229);function Y(e){let t=(0,i.lazy)(e);return(0,i.forwardRef)(function(e,n){return(0,a.jsx)(i.Suspense,{children:(0,a.jsx)(t,{...e,ref:n})})})}let K={Calendar:Y(()=>Promise.all([n.e(760),n.e(7773)]).then(n.bind(n,77773)).then(e=>({default:e.Calendar})))},Q={Command:Y(()=>n.e(4140).then(n.bind(n,84140)).then(e=>({default:e.Command}))),CommandDialog:Y(()=>n.e(4140).then(n.bind(n,84140)).then(e=>({default:e.CommandDialog}))),CommandInput:Y(()=>n.e(4140).then(n.bind(n,84140)).then(e=>({default:e.CommandInput}))),CommandList:Y(()=>n.e(4140).then(n.bind(n,84140)).then(e=>({default:e.CommandList}))),CommandEmpty:Y(()=>n.e(4140).then(n.bind(n,84140)).then(e=>({default:e.CommandEmpty}))),CommandGroup:Y(()=>n.e(4140).then(n.bind(n,84140)).then(e=>({default:e.CommandGroup}))),CommandItem:Y(()=>n.e(4140).then(n.bind(n,84140)).then(e=>({default:e.CommandItem}))),CommandShortcut:Y(()=>n.e(4140).then(n.bind(n,84140)).then(e=>({default:e.CommandShortcut}))),CommandSeparator:Y(()=>n.e(4140).then(n.bind(n,84140)).then(e=>({default:e.CommandSeparator})))},ee={ContextMenu:Y(()=>Promise.all([n.e(506),n.e(3836)]).then(n.bind(n,93836)).then(e=>({default:e.ContextMenu}))),ContextMenuTrigger:Y(()=>Promise.all([n.e(506),n.e(3836)]).then(n.bind(n,93836)).then(e=>({default:e.ContextMenuTrigger}))),ContextMenuContent:Y(()=>Promise.all([n.e(506),n.e(3836)]).then(n.bind(n,93836)).then(e=>({default:e.ContextMenuContent}))),ContextMenuItem:Y(()=>Promise.all([n.e(506),n.e(3836)]).then(n.bind(n,93836)).then(e=>({default:e.ContextMenuItem}))),ContextMenuCheckboxItem:Y(()=>Promise.all([n.e(506),n.e(3836)]).then(n.bind(n,93836)).then(e=>({default:e.ContextMenuCheckboxItem}))),ContextMenuRadioItem:Y(()=>Promise.all([n.e(506),n.e(3836)]).then(n.bind(n,93836)).then(e=>({default:e.ContextMenuRadioItem}))),ContextMenuLabel:Y(()=>Promise.all([n.e(506),n.e(3836)]).then(n.bind(n,93836)).then(e=>({default:e.ContextMenuLabel}))),ContextMenuSeparator:Y(()=>Promise.all([n.e(506),n.e(3836)]).then(n.bind(n,93836)).then(e=>({default:e.ContextMenuSeparator}))),ContextMenuShortcut:Y(()=>Promise.all([n.e(506),n.e(3836)]).then(n.bind(n,93836)).then(e=>({default:e.ContextMenuShortcut}))),ContextMenuGroup:Y(()=>Promise.all([n.e(506),n.e(3836)]).then(n.bind(n,93836)).then(e=>({default:e.ContextMenuGroup}))),ContextMenuPortal:Y(()=>Promise.all([n.e(506),n.e(3836)]).then(n.bind(n,93836)).then(e=>({default:e.ContextMenuPortal}))),ContextMenuSub:Y(()=>Promise.all([n.e(506),n.e(3836)]).then(n.bind(n,93836)).then(e=>({default:e.ContextMenuSub}))),ContextMenuSubContent:Y(()=>Promise.all([n.e(506),n.e(3836)]).then(n.bind(n,93836)).then(e=>({default:e.ContextMenuSubContent}))),ContextMenuSubTrigger:Y(()=>Promise.all([n.e(506),n.e(3836)]).then(n.bind(n,93836)).then(e=>({default:e.ContextMenuSubTrigger}))),ContextMenuRadioGroup:Y(()=>Promise.all([n.e(506),n.e(3836)]).then(n.bind(n,93836)).then(e=>({default:e.ContextMenuRadioGroup})))},et={Select:Y(()=>Promise.all([n.e(4087),n.e(7475)]).then(n.bind(n,47475)).then(e=>({default:e.Select}))),SelectContent:Y(()=>Promise.all([n.e(4087),n.e(7475)]).then(n.bind(n,47475)).then(e=>({default:e.SelectContent}))),SelectGroup:Y(()=>Promise.all([n.e(4087),n.e(7475)]).then(n.bind(n,47475)).then(e=>({default:e.SelectGroup}))),SelectItem:Y(()=>Promise.all([n.e(4087),n.e(7475)]).then(n.bind(n,47475)).then(e=>({default:e.SelectItem}))),SelectLabel:Y(()=>Promise.all([n.e(4087),n.e(7475)]).then(n.bind(n,47475)).then(e=>({default:e.SelectLabel}))),SelectSeparator:Y(()=>Promise.all([n.e(4087),n.e(7475)]).then(n.bind(n,47475)).then(e=>({default:e.SelectSeparator}))),SelectTrigger:Y(()=>Promise.all([n.e(4087),n.e(7475)]).then(n.bind(n,47475)).then(e=>({default:e.SelectTrigger}))),SelectValue:Y(()=>Promise.all([n.e(4087),n.e(7475)]).then(n.bind(n,47475)).then(e=>({default:e.SelectValue})))},en={Carousel:Y(()=>Promise.all([n.e(5163),n.e(8293)]).then(n.bind(n,28293)).then(e=>({default:e.Carousel}))),CarouselContent:Y(()=>Promise.all([n.e(5163),n.e(8293)]).then(n.bind(n,28293)).then(e=>({default:e.CarouselContent}))),CarouselItem:Y(()=>Promise.all([n.e(5163),n.e(8293)]).then(n.bind(n,28293)).then(e=>({default:e.CarouselItem}))),CarouselPrevious:Y(()=>Promise.all([n.e(5163),n.e(8293)]).then(n.bind(n,28293)).then(e=>({default:e.CarouselPrevious}))),CarouselNext:Y(()=>Promise.all([n.e(5163),n.e(8293)]).then(n.bind(n,28293)).then(e=>({default:e.CarouselNext})))},er={Drawer:Y(()=>Promise.all([n.e(3935),n.e(6156)]).then(n.bind(n,56156)).then(e=>({default:e.Drawer}))),DrawerPortal:Y(()=>Promise.all([n.e(3935),n.e(6156)]).then(n.bind(n,56156)).then(e=>({default:e.DrawerPortal}))),DrawerOverlay:Y(()=>Promise.all([n.e(3935),n.e(6156)]).then(n.bind(n,56156)).then(e=>({default:e.DrawerOverlay}))),DrawerTrigger:Y(()=>Promise.all([n.e(3935),n.e(6156)]).then(n.bind(n,56156)).then(e=>({default:e.DrawerTrigger}))),DrawerClose:Y(()=>Promise.all([n.e(3935),n.e(6156)]).then(n.bind(n,56156)).then(e=>({default:e.DrawerClose}))),DrawerContent:Y(()=>Promise.all([n.e(3935),n.e(6156)]).then(n.bind(n,56156)).then(e=>({default:e.DrawerContent}))),DrawerHeader:Y(()=>Promise.all([n.e(3935),n.e(6156)]).then(n.bind(n,56156)).then(e=>({default:e.DrawerHeader}))),DrawerFooter:Y(()=>Promise.all([n.e(3935),n.e(6156)]).then(n.bind(n,56156)).then(e=>({default:e.DrawerFooter}))),DrawerTitle:Y(()=>Promise.all([n.e(3935),n.e(6156)]).then(n.bind(n,56156)).then(e=>({default:e.DrawerTitle}))),DrawerDescription:Y(()=>Promise.all([n.e(3935),n.e(6156)]).then(n.bind(n,56156)).then(e=>({default:e.DrawerDescription})))},ea={Pagination:Y(()=>n.e(2255).then(n.bind(n,42255)).then(e=>({default:e.Pagination}))),PaginationContent:Y(()=>n.e(2255).then(n.bind(n,42255)).then(e=>({default:e.PaginationContent}))),PaginationEllipsis:Y(()=>n.e(2255).then(n.bind(n,42255)).then(e=>({default:e.PaginationEllipsis}))),PaginationItem:Y(()=>n.e(2255).then(n.bind(n,42255)).then(e=>({default:e.PaginationItem}))),PaginationLink:Y(()=>n.e(2255).then(n.bind(n,42255)).then(e=>({default:e.PaginationLink}))),PaginationNext:Y(()=>n.e(2255).then(n.bind(n,42255)).then(e=>({default:e.PaginationNext}))),PaginationPrevious:Y(()=>n.e(2255).then(n.bind(n,42255)).then(e=>({default:e.PaginationPrevious})))},eo={ResizablePanelGroup:Y(()=>Promise.all([n.e(1423),n.e(8738)]).then(n.bind(n,58738)).then(e=>({default:e.ResizablePanelGroup}))),ResizablePanel:Y(()=>Promise.all([n.e(1423),n.e(8738)]).then(n.bind(n,58738)).then(e=>({default:e.ResizablePanel}))),ResizableHandle:Y(()=>Promise.all([n.e(1423),n.e(8738)]).then(n.bind(n,58738)).then(e=>({default:e.ResizableHandle})))},ei={"@v0/components/theme-provider":{ThemeProvider:function(e){let{children:t,...n}=e;return(0,a.jsx)(Z.N,{...n,children:t})}},"@v0/styles/globals.css":{__runtime:""},"@v0/app/globals.css":{__runtime:""},"@v0/components/ui/":{__subpath:!0,avatar:u,badge:f,button:h,card:m,checkbox:p,collapsible:v,menubar:g,"radio-group":w,textarea:b,toggle:_,skeleton:x,slider:y,label:S,input:j,"scroll-area":P,switch:U,dialog:E,sheet:k,separator:C,"navigation-menu":T,"hover-card":N,"dropdown-menu":R,accordion:O,alert:A,table:L,popover:M,progress:I,tabs:D,"aspect-ratio":W,tooltip:F,chart:z,calendar:K,"alert-dialog":H,"toggle-group":V,command:Q,"context-menu":ee,select:et,carousel:en,drawer:er,sidebar:B,form:q,"use-mobile":G,breadcrumb:J,pagination:ea,resizable:eo,"input-otp":{InputOTP:Y(()=>n.e(7039).then(n.bind(n,27039)).then(e=>({default:e.InputOTP}))),InputOTPGroup:Y(()=>n.e(7039).then(n.bind(n,27039)).then(e=>({default:e.InputOTPGroup}))),InputOTPSlot:Y(()=>n.e(7039).then(n.bind(n,27039)).then(e=>({default:e.InputOTPSlot}))),InputOTPSeparator:Y(()=>n.e(7039).then(n.bind(n,27039)).then(e=>({default:e.InputOTPSeparator})))},toast:{Toast:Y(()=>Promise.all([n.e(141),n.e(9980)]).then(n.bind(n,99980)).then(e=>({default:e.Toast}))),ToastAction:Y(()=>Promise.all([n.e(141),n.e(9980)]).then(n.bind(n,99980)).then(e=>({default:e.ToastAction}))),ToastClose:Y(()=>Promise.all([n.e(141),n.e(9980)]).then(n.bind(n,99980)).then(e=>({default:e.ToastClose}))),ToastDescription:Y(()=>Promise.all([n.e(141),n.e(9980)]).then(n.bind(n,99980)).then(e=>({default:e.ToastDescription}))),ToastProvider:Y(()=>Promise.all([n.e(141),n.e(9980)]).then(n.bind(n,99980)).then(e=>({default:e.ToastProvider}))),ToastTitle:Y(()=>Promise.all([n.e(141),n.e(9980)]).then(n.bind(n,99980)).then(e=>({default:e.ToastTitle}))),ToastViewport:Y(()=>Promise.all([n.e(141),n.e(9980)]).then(n.bind(n,99980)).then(e=>({default:e.ToastViewport})))},"use-toast":$,toaster:{Toaster:Y(()=>Promise.all([n.e(141),n.e(9009)]).then(n.bind(n,49009)).then(e=>({default:e.Toaster})))}},"@v0/lib/utils":{cn:X.cn},"@v0/hooks/":{__subpath:!0,"use-toast":$,"use-mobile":G},"@nivo/":{__subpath:!0,bar:{ResponsiveBar:Y(()=>Promise.all([n.e(6750),n.e(3753),n.e(4905),n.e(7283),n.e(5231),n.e(7317)]).then(n.bind(n,37317)).then(e=>({default:e.ResponsiveBar})))},pie:{ResponsivePie:Y(()=>Promise.all([n.e(6750),n.e(7283),n.e(4672)]).then(n.bind(n,54672)).then(e=>({default:e.ResponsivePie})))},line:{ResponsiveLine:Y(()=>Promise.all([n.e(6750),n.e(3753),n.e(7283),n.e(5231),n.e(1049),n.e(8862)]).then(n.bind(n,36481)).then(e=>({default:e.ResponsiveLine})))},scatterplot:{ResponsiveScatterPlot:Y(()=>Promise.all([n.e(6750),n.e(3753),n.e(7283),n.e(5231),n.e(1049),n.e(6084)]).then(n.bind(n,46084)).then(e=>({default:e.ResponsiveScatterPlot})))},heatmap:{ResponsiveHeatMap:Y(()=>Promise.all([n.e(6750),n.e(3753),n.e(7283),n.e(5231),n.e(1922)]).then(n.bind(n,81922)).then(e=>({default:e.ResponsiveHeatMap})))}}},es={};for(let e in ei){let t=ei[e];if("__subpath"in t)for(let n in t)"__subpath"!==n&&(es[e+n]=t[n]);else es[e]=t}var el=n(42260);class ec extends i.Component{componentDidCatch(e){this.setState({error:e,errorId:this.props.id})}render(){if(this.props.id===this.state.errorId&&this.state.error){let e=this.props.fallback;return(0,a.jsx)(e,{error:this.state.error})}return this.props.children}constructor(...e){super(...e),this.state={error:null,errorId:void 0}}}function ed(e){let{render:t}=e,n=t&&"function"==typeof t.then?(0,i.use)(t):t;if(n instanceof Error)throw n;return n}function eu(e){window.parent.postMessage({__v0_remote__:1,...e},"*")}let ef={},eh={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:40},desc:{display:"inline-block"},h1:{display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},h2:{fontSize:14,fontWeight:400,lineHeight:"49px",margin:0}};function em(e){let{code:t,message:n,stack:r,cause:o}=e;return(0,i.useEffect)(()=>{let e=Error(n);"string"==typeof r&&(e.stack=r),"string"==typeof o&&(e.cause=o),console.error(e)},[n,r,o]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("title",{children:[t,": ",n]}),(0,a.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,a.jsx)("div",{style:eh.error,children:(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"next-error-h1",style:eh.h1,children:t}),(0,a.jsx)("div",{style:eh.desc,children:(0,a.jsx)("h2",{style:eh.h2,children:n})})]})})]})}var ep=n(13339),ev=n(20769),eg=n(62439),ew=n(51995),eb=n(17860),e_=n(59252);let ex=/^\/(_next\/|api\/v0-edit|api\/cors|cors-proxy-test-page|api\/static-resource|assets\/(tailwind\.js|lite-runtime.js|libs\.js|3d\/|stripe\/)|favicon\.ico|__v0_sw\.js|__nextjs_original-stack-frame|placeholder\.(svg|jpg)|placeholder-(logo|user)\.(svg|png|jpg)|r3f\/|fonts\/)/;var ey=n(17607),eS=n(34455),ej=n(93625),eP=n(33793),eE=n(27482);let ek=e=>{var t;return null===(t=e.split("/").pop())||void 0===t?void 0:t.split(".").shift()},eC=e=>e.startsWith("app/")||e.startsWith("src/app/"),eT=e=>e.startsWith("pages/")||e.startsWith("src/pages/"),eN=e=>e.startsWith("pages/api/")||e.startsWith("src/pages/api/"),eR=e=>e.startsWith("api/")||e.startsWith("src/api/"),eO=e=>eT(e)&&"index"===ek(e),eA=e=>eN(e)&&"index"===ek(e),eL=e=>eC(e)&&"page"===ek(e),eM=e=>eC(e)&&"route"===ek(e),eI=e=>{var t;let{route:n,depth:r}=e,[o,s]=(0,i.useState)(!0),l=n.children&&n.children.length>0,c="file"===n.type?"a":"div",d="file"===n.type?eD(n.path):void 0;return(0,a.jsxs)("li",{children:[(0,a.jsxs)(c,{className:"flex cursor-pointer select-none items-center rounded-md px-2 py-1 transition-colors duration-200 hover:bg-gray-200",href:d,onClick:()=>l&&s(!o),style:{paddingLeft:"".concat((r+1)*.5,"rem")},children:[l?o?(0,a.jsx)(ey.A,{className:"mr-1 h-4 w-4 shrink-0 text-muted-foreground"}):(0,a.jsx)(eS.A,{className:"mr-1 h-4 w-4 shrink-0 text-muted-foreground"}):(0,a.jsx)("span",{className:"mr-1 w-4 shrink-0"}),"folder"===n.type?(0,a.jsx)(ej.A,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}):(0,a.jsx)(eP.A,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),(0,a.jsx)("span",{className:"truncate text-sm",children:n.name})]}),l&&o&&(0,a.jsx)("ul",{className:"mt-1",children:null===(t=n.children)||void 0===t?void 0:t.map(e=>(0,a.jsx)(eI,{depth:r+1,route:e},e.path))})]})},eD=e=>{let t=e.startsWith("./")?e.slice(2):e,n=t.split("/"),r=n[n.length-1],a="app"===n[0],o="pages"===n[0],i=a&&r.startsWith("page"),s=a&&r.startsWith("route"),l=o&&n.includes("api")&&r.startsWith("index"),c=o&&!n.includes("api")&&r.startsWith("index"),d="api"===n[0]&&r.startsWith("route");return i||c||s||l?"/".concat(n.slice(1,-1).join("/")):d?"/".concat(n.slice(0,-1).join("/")):t};function eW(e){let{currentRoute:t,label:n="route"}=e,r=t.split("?")[0];return(0,a.jsx)("header",{className:"mb-4",children:(0,a.jsxs)("p",{className:"flex select-none items-start gap-1.5 rounded-md bg-yellow-100 p-3 text-sm text-gray-500",children:[(0,a.jsx)(eE.A,{className:"size-4 h-5 shrink-0 stroke-2"})," No page at"," ",r," detected. You can select a"," ".concat(n," "),"below."]})})}function eF(e){let{rawPaths:t,currentRoute:n}=e,r=(0,i.useMemo)(()=>(function(e){let t={path:".",name:"Root",type:"folder",children:[]};return e.forEach(e=>{let n=e.replace("@v0/",""),r=n.split("/"),a=t;["app","pages","api","src"].includes(r[0])&&(eN(n)?eA(n):eC(n)?eL(n)||eM(n):eT(n)?eO(n):!!eR(n)&&eM(n))&&r.forEach((e,t)=>{var n;let o=t===r.length-1,i=null===(n=a.children)||void 0===n?void 0:n.find(t=>t.name===e);if(i)a=i;else{let t={path:a.path+"/"+e,name:e,type:o?"file":"folder",children:o?void 0:[]};a.children=a.children||[],a.children.push(t),a=t}})}),t.children||[]})(t),[t]),o=n.split("?")[0],[s,l]=(0,i.useState)(!window.can_redirect),[c,d]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{let e=(function e(t){let n=[];if("file"===t.type&&n.push(t),t.children&&Array.isArray(t.children))for(let r of t.children)n.push(...e(r));return n})({path:"/",name:"Root",type:"folder",children:r}).filter(e=>!e.path.includes("["));l(!0),window.can_redirect?(window.can_redirect=!1,e.length?window.location.href=eD(e[0].path):d(!0)):d(!0)},[o,r]),s&&c)?(0,a.jsxs)("div",{className:"dark mx min-h-screen overflow-auto p-4",children:[(0,a.jsx)(eW,{currentRoute:n}),(0,a.jsx)("main",{className:"max-w-full",children:(0,a.jsx)("ul",{className:"space-y-1",children:r.map(e=>(0,a.jsx)(eI,{depth:0,route:e},e.path))})})]}):null}function ez(e){let{currentRoute:t,rawPath:n}=e,[r,o]=(0,i.useState)(!window.can_redirect),[s,l]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{o(!0),window.can_redirect?(window.can_redirect=!1,window.location.href=eD("/")):l(!0)},[]),r&&s)?(0,a.jsxs)("div",{className:"dark mx min-h-screen overflow-auto p-4",children:[(0,a.jsx)(eW,{currentRoute:t,label:"component"}),(0,a.jsx)("main",{className:"max-w-full",children:(0,a.jsx)("ul",{className:"space-y-1",children:(0,a.jsx)(eI,{depth:0,route:{path:"/",name:n.split("/").pop()||"Root",type:"file"}},"/")})})]}):null}var eU=n(30593);let eH={enabled:!1,readOnly:!0,headers:new Headers};var eV=n(82051);let eB={createServerRef:function(e){return async function(){for(var t=arguments.length,n=Array(t),r=0;r{}),eK.revalidatedPaths.clear(),eK.revalidatedTags.clear(),eK.expiredPaths.clear(),eK.expiredTags.clear();try{return eY=e8(()=>e(...n),!1),await eY}finally{e$&&eK.revalidatedPaths.has(e$.pathname)&&e$.refresh()}}}},eq=(0,i.createContext)({params:{}}),eG=(0,i.createContext)({pathname:"/",push:e=>{},replace:e=>{},refresh:()=>{},back:()=>{},forward:()=>{},prefetch:e=>{}});function eJ(e){return(0,el.G)(Array.from(e))}eJ.__dynamic=!0;let e$=null;function eX(e){let{error:t}=e;if(t&&"__v0__notFound"in t)return(0,a.jsx)(em,{code:404,message:"Page not found.",stack:null==t?void 0:t.stack});if(t&&"__v0__forbidden"in t)return(0,a.jsx)(em,{code:403,message:"Forbidden",stack:null==t?void 0:t.stack});if(t&&"__v0__unauthorized"in t)return(0,a.jsx)(em,{code:401,message:"Unauthorized",stack:null==t?void 0:t.stack});if(t&&"__v0__redirect"in t){let e="replace"===t.__v0__redirectType?"replace":"push";return null==e$||e$[e](t.__v0__redirect),null}throw t}function eZ(e){let{children:t,defaultRoute:n,defaultParams:r,fallback:o,resolver:s,singleComponent:l,potentialEntries:c}=e,[d,u]=(0,i.useState)(n),[f,h]=(0,i.useState)(t),[m,p]=(0,i.useState)(r),v=(0,i.useRef)(d);(0,i.useEffect)(()=>{v.current=d},[d]);let g=(0,i.useRef)(t);(0,i.useEffect)(()=>{g.current=t},[t]);let w=(0,i.useCallback)(async(e,t)=>{let n;if((e.startsWith("http://")||e.startsWith("https://"))&&!e.startsWith(window.location.origin)){window.open(e,"_blank","noopener");return}(e.startsWith("#")||e.startsWith("?"))&&(e="/"+e);let r=s(e),o={},d=e;r?(d=r[0],o=r[1],n=await r[3]()):n=l?new URL(e,"http://n").pathname!==new URL(v.current,"http://n").pathname?(0,a.jsx)(ez,{currentRoute:e,rawPath:c[0]}):g.current:(0,a.jsx)(eF,{currentRoute:e,rawPaths:c}),(0,i.startTransition)(()=>{void 0!==n&&h(n),u(d),p(o)}),e!==v.current&&("push"===t?window.history.pushState({},"",e):"replace"===t&&window.history.replaceState({},"",e),"function"==typeof window.__v0_internal_location_change&&window.__v0_internal_location_change())},[s,l]),b=(0,i.useRef)(w);(0,i.useEffect)(()=>{b.current=w},[w]);let _=(0,i.useRef)(s);(0,i.useEffect)(()=>{_.current!==s&&(b.current(v.current,"skip"),_.current=s)},[s]);let x=(0,i.useMemo)(()=>e$={pathname:d,push:e=>{(0,i.startTransition)(()=>b.current(e,"push"))},replace:e=>{(0,i.startTransition)(()=>b.current(e,"replace"))},refresh:()=>{(0,i.startTransition)(()=>b.current(d,"skip"))},back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:e=>{}},[d]),y=(0,i.useMemo)(()=>({params:m}),[m]);return(0,i.useEffect)(()=>{let e=()=>{(0,i.startTransition)(()=>b.current(window.location.pathname,"skip"))};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}},[]),(0,a.jsx)(eq.Provider,{value:y,children:(0,a.jsx)(eG.Provider,{value:x,children:(0,a.jsx)(ec,{fallback:o,id:d,children:(0,a.jsx)(ec,{fallback:eX,id:d,children:f})})})})}let eY=Promise.resolve(),eK={revalidatedPaths:new Set,revalidatedTags:new Set,expiredPaths:new Set,expiredTags:new Set,cachedTags:new Set};function eQ(e){eK.expiredPaths.add(e)}function e0(e){eK.expiredTags.add(e)}let e1={NOT_FOUND:["Not found","__v0__notFound"],FORBIDDEN:["Forbidden","__v0__forbidden"],UNAUTHORIZED:["Unauthorized","__v0__unauthorized"]},e3=e=>{let[t,n]=e1[e],r=Error(t);return r[n]=!0,r};var e5=function(e){return e.push="push",e.replace="replace",e}(e5||{});function e6(e,t){let n=Error("Redirect");throw n.__v0__redirect=e,t&&(n.__v0__redirectType=t),n}function e2(){return(0,i.useContext)(eG)}class e9{get(e){let t=e_.A.get(e);if(void 0!==t)return{name:e,value:t}}getAll(){let e=e_.A.get(),t=[];for(let[n,r]of Object.entries(e))t.push({name:n,value:r});return t}has(e){return void 0!==e_.A.get(e)}set(e,t,n){let r={...n,sameSite:"None",secure:!0};e_.A.set(e,t,r)}delete(e){e_.A.remove(e,{sameSite:"None",secure:!0})}clear(){for(let e of Object.keys(e_.A.get()))e_.A.remove(e)}toString(){return document.cookie}}function e4(){for(let e of(0,eU.qg)(Error())){if(e.file&&e.file.startsWith("blob:")){let t=ef[e.file];if(t&&t.endsWith("?client_layer"))return"client";if(t&&t.endsWith("?server_layer"))break}if("executeInServerContext"===e.function)break}return"server"}async function e8(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{return eH.enabled=!0,eH.readOnly=t,eH.headers=n,await e()}finally{eH.enabled=!1,eH.readOnly=!0,eH.headers={}}}class e7 extends ep.NextResponse{constructor(e,t){super(e,t)}}let te=new Map,tt={"next/link":function(e){let{href:t,children:n,passHref:r,replace:o,prefetch:l,legacyBehavior:c,as:d,scroll:u,...f}=e,h=(0,i.useContext)(eG),m=e=>{f.onClick&&f.onClick(e),e.preventDefault(),o?h.replace(t):h.push(t)};return r?(0,a.jsx)("div",{onClick:m,children:s().cloneElement(n,{href:t,...f})}):(0,a.jsx)("a",{href:t,...f,onClick:m,children:n})},"next/font/google":eJ,"next/font/local":e=>{let t,{src:n,variable:r,weight:a}=e;if("string"==typeof n){let e=(0,eU.qg)(Error(),{slice:2});if(e[1]){let r=e[1].file;if(r&&/https:\/\/esm.sh\/[^/]+\/geist@/.test(r)){let e=new URL(n,"https://esm.sh/geist/dist/");e.searchParams.set("raw",""),t=e.toString()}}}if(!t)return console.warn("v0 cannot resolve local font from: ",n),{css:"",className:"",fallbackFonts:[],weight:a,style:{},variable:r||"--next-local-font",adjustFontFallback:"sans-serif"};let o=function(e){let{src:t,variable:n}=e,r=JSON.stringify({src:t,variable:n});if(te.has(r))return te.get(r);let a=document.createElement("style"),o="f_"+(~~(1e7*Math.random())).toString(16),i=n?"fv_"+(~~(1e7*Math.random())).toString(16):void 0;a.textContent='@font-face { font-family: "'.concat(o,'"; src: url("').concat(t,'") }\n.').concat(o,' { font-family: "').concat(o,'" }\n').concat(n?".".concat(i," { ").concat(n,': "').concat(o,'" }'):""),document.head.appendChild(a);let s={className:o,style:{fontFamily:'"'.concat(o,'"')},variable:i};return te.set(r,s),s}({src:t,variable:r});return{css:"",fallbackFonts:[],className:o.className,style:o.style,variable:o.variable,weight:a,adjustFontFallback:"sans-serif"}},"next/cache":{revalidatePath:function(e){eK.revalidatedPaths.add(e)},revalidateTag:function(e){eK.revalidatedTags.add(e)},expirePath:eQ,expireTag:e0,unstable_expirePath:eQ,unstable_expireTag:e0,unstable_cacheLife:function(e){},unstable_cacheTag:function(){},unstable_cache:function(e,t,n){return e},unstable_noStore:function(){}},"next/navigation":{notFound:function(){throw e3("NOT_FOUND")},forbidden:function(){throw e3("FORBIDDEN")},redirect:e6,unauthorized:function(){throw e3("UNAUTHORIZED")},permanentRedirect:e6,useSearchParams:function(){return new URLSearchParams(window.location.search)},useRouter:e2,usePathname:function(){return e2().pathname},useParams:function(){return(0,i.useContext)(eq).params},useSelectedLayoutSegments:function(){return[]},useSelectedLayoutSegment:function(){return null},useServerInsertedHTML:function(){},RedirectType:e5},"next/router":{Router:eZ,useRouter:e2},"next/headers":{cookies:function(){if("server"!==e4())throw Error("The cookies() API can only be used in Server Components, Server Actions and Route Handlers.");return new e9},headers:function(){if("server"!==e4())throw Error("The headers() API can only be used in Server Components, Server Actions and Route Handlers.");return new Headers([...Object.entries({"User-Agent":navigator.userAgent,Host:window.location.host,Origin:window.location.origin,Referer:document.referrer,"Accept-Language":navigator.language,"X-Forwarded-Proto":window.location.protocol.slice(0,-1),"X-Forwarded-Host":window.location.host,"X-Forwarded-For":"127.0.0.1","Sec-Ch-Ua":navigator.userAgent.replace(/\/|\)/g,""),"Sec-Ch-Ua-Mobile":/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?"?1":"?0","Sec-Ch-Ua-Platform":navigator.platform,"Upgrade-Insecure-Requests":"1","Sec-Fetch-Site":"same-origin","Sec-Fetch-Mode":"navigate","Sec-Fetch-User":"?1","Sec-Fetch-Dest":"document",Accept:"*/*;q=0.8","Accept-Encoding":"gzip, deflate, br",Cookie:document.cookie}),...eH.headers instanceof Headers?eH.headers.entries():Object.entries(eH.headers)])},draftMode:function(){}},"next/server":{NextResponse:e7,NextRequest:ep.NextRequest,unstable_after:function(e){setTimeout(()=>{e()},0)},connection:tn,userAgent:ep.userAgent,userAgentFromString:ep.userAgentFromString},"next/image":function(e){let{...t}=e;return(0,a.jsx)(ev.default,{...t,unoptimized:!0})},"next/script":eg.default,"next/form":function(e){let{...t}=e;return(0,a.jsx)("form",{...t})},"next/dynamic":ew.default};async function tn(){}let tr=()=>Promise.all([n.e(7406),n.e(2060),n.e(3072),n.e(99),n.e(3680),n.e(7413),n.e(6882),n.e(1796)]).then(n.bind(n,47632)),ta={"framer-motion":()=>n.e(4434).then(n.bind(n,4434)),"motion/react":()=>n.e(4308).then(n.bind(n,44308)),recharts:()=>Promise.all([n.e(6750),n.e(3753),n.e(4905),n.e(7313)]).then(n.bind(n,27313)).then(e=>(function(e){for(let t in e){let n=e[t];n&&Object.defineProperty(n,"__slottable",{value:!1,writable:!1})}return e})(e)),zod:()=>n.e(8830).then(n.bind(n,48830)),"@alexandernanberg/react-pdf-renderer":tr,"@optimizely/optimizely-sdk":()=>Promise.all([n.e(7031),n.e(6304)]).then(n.bind(n,90970)),"@react-pdf/renderer":tr,"@react-stately/searchfield":()=>n.e(6278).then(n.bind(n,76278)),"@react-three/fiber":()=>Promise.all([n.e(7625),n.e(8153),n.e(4284),n.e(4287)]).then(n.bind(n,34287)),"@react-three/drei":()=>Promise.all([n.e(7625),n.e(8153),n.e(2759),n.e(9016),n.e(4284),n.e(7413),n.e(3046)]).then(n.bind(n,81120)),"@react-three/rapier":()=>Promise.all([n.e(7625),n.e(8153),n.e(2740),n.e(4284),n.e(4128)]).then(n.bind(n,64128)),"@react-three/cannon":()=>Promise.all([n.e(7625),n.e(8153),n.e(1099),n.e(4284)]).then(n.bind(n,90964)),"@react-three/postprocessing":()=>Promise.all([n.e(7625),n.e(8153),n.e(825),n.e(4284),n.e(459)]).then(n.bind(n,30459)),meshline:()=>Promise.all([n.e(7625),n.e(5189)]).then(n.bind(n,55189)),"@xyflow/react":()=>Promise.all([n.e(9924),n.e(8146),n.e(7852)]).then(n.bind(n,68972)),"react-aria-components":()=>Promise.all([n.e(302),n.e(651)]).then(n.bind(n,70651)),"react-stately":()=>Promise.all([n.e(302),n.e(1761)]).then(n.bind(n,81761)),reactflow:()=>Promise.all([n.e(4422),n.e(8146),n.e(1)]).then(n.bind(n,70001)),"reactflow/dist/style.css":()=>Promise.all([n.e(2332),n.e(1605)]).then(n.t.bind(n,71605,23)).then(()=>({})),"@stripe/react-stripe-js":()=>n.e(1268).then(n.t.bind(n,41268,23)),"@stripe/stripe-js":()=>n.e(1992).then(n.bind(n,51992)),axios:()=>n.e(2808).then(n.bind(n,32808)),"react-hook-form":()=>Promise.resolve().then(n.bind(n,36437)),"@hookform/resolvers/zod":()=>n.e(195).then(n.bind(n,60195)),"lucide-react":()=>Promise.all([n.e(4498),n.e(4623)]).then(n.bind(n,10568))};Object.values(ta).forEach(e=>{e.__lazy=!0});var to=n(37473),ti=n(1943),ts=n(71270);let tl=ts.bL;ts.l9,ts.bm;let tc=i.forwardRef((e,t)=>{let{className:n,align:r="center",sideOffset:o=4,...i}=e;return(0,a.jsx)(ts.ZL,{children:(0,a.jsx)(ts.UC,{align:r,className:(0,X.cn)("z-50 w-72 rounded-xl bg-white p-4 text-popover-foreground shadow-[shadow:var(--ds-shadow-menu)] outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),ref:t,sideOffset:o,...i})})});tc.displayName=ts.UC.displayName;let td=ts.Mz;function tu(e){let{className:t,...n}=e;return(0,a.jsx)("svg",{className:(0,X.cn)("h-4 w-4",t),fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...n,children:(0,a.jsx)("path",{clipRule:"evenodd",d:"M8.707 1.396a1 1 0 0 0-1.414 0L2.22 6.47 1.69 7l1.06 1.06.53-.53 3.97-3.97V15h1.5V3.56l3.97 3.97.53.53L14.31 7l-.53-.53-5.073-5.074Z",fill:"currentColor",fillRule:"evenodd"})})}let tf=(0,n(1774).F)("inline-flex shrink-0 items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-red-600 text-red-50 shadow-sm hover:bg-red-600/90",destructiveOutline:"border border-destructive bg-background text-destructive shadow-sm hover:bg-destructive hover:text-destructive-foreground",outline:"border border-input bg-background font-medium shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",secondaryInverted:"bg-gray-800 text-primary-foreground hover:bg-gray-700",ghost:"text-gray-500 hover:bg-gray-100 hover:text-gray-900",link:"text-primary underline-offset-4 hover:underline",ghostInverted:"flex items-center justify-center bg-transparent text-white hover:bg-gray-800 focus-visible:bg-gray-800 focus-visible:ring-0"},size:{default:"h-8 px-3 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9",toolbar:"h-8 w-8",mini:"h-6 w-6"}},defaultVariants:{variant:"default",size:"default"}}),th=i.forwardRef((e,t)=>{let{className:n,variant:r,size:o,asChild:i=!1,...s}=e,l=i?ti.DX:"button";return(0,a.jsx)(l,{className:(0,X.cn)(tf({variant:r,size:o,className:n})),ref:t,...s})});th.displayName="Button";var tm=n(59068);function tp(e){let{className:t}=e;return(0,a.jsxs)("svg",{className:t,fill:"currentColor",viewBox:"0 0 40 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M23.3919 0H32.9188C36.7819 0 39.9136 3.13165 39.9136 6.99475V16.0805H36.0006V6.99475C36.0006 6.90167 35.9969 6.80925 35.9898 6.71766L26.4628 16.079C26.4949 16.08 26.5272 16.0805 26.5595 16.0805H36.0006V19.7762H26.5595C22.6964 19.7762 19.4788 16.6139 19.4788 12.7508V3.68923H23.3919V12.7508C23.3919 12.9253 23.4054 13.0977 23.4316 13.2668L33.1682 3.6995C33.0861 3.6927 33.003 3.68923 32.9188 3.68923H23.3919V0Z"}),(0,a.jsx)("path",{d:"M13.7688 19.0956L0 3.68759H5.53933L13.6231 12.7337V3.68759H17.7535V17.5746C17.7535 19.6705 15.1654 20.6584 13.7688 19.0956Z"})]})}let tv={jsxDEV(e,t,n,r,o,s){var l;let{__v0_i:c,__v0_c:d,...u}=t||{};"style"===e&&(!0===u.jsx&&delete u.jsx,!0===u.global&&delete u.global);let f=(0,to.jsxDEV)(e,u,n,r,o,s);if((null==e?void 0:null===(l=e.constructor)||void 0===l?void 0:l.name)==="AsyncFunction"){let t=e8(()=>e({...u}));f=(0,a.jsx)(i.Suspense,{children:(0,a.jsx)(function(){return(0,i.use)(t)},{})})}if(e&&!1===e.__slottable)return f;let h={children:f,__v0_s:o,__v0_c:d};return void 0!==c&&(h.__v0_i=c),(0,to.jsxDEV)(ti.xV,h,n,!1,o,s)},Fragment:to.Fragment},tg=new WeakMap;function tw(e){var t;let{loading:n,setLoading:r,hoverStyle:o}=e,s=o?2:1,l=Math.max(e.bounds.top-s,0),c=Math.max(e.bounds.left-s,0),d=Math.min(e.bounds.right+s,window.innerWidth),u=Math.min(e.bounds.bottom+s,window.innerHeight),f=Math.min(e.bounds.width,d-c-2*s),h=Math.min(e.bounds.height,u-l-2*s),m=(0,a.jsx)("div",{className:(0,X.cn)("fixed select-none border-blue-400",n&&"animate-pulse border-dashed bg-blue-100/60"),"data-v0-devtool-overlay":!0,onClick:e.onClick,onDoubleClick:e.onDoubleClick,style:{borderWidth:s,boxSizing:"content-box",top:l,left:c,width:f,height:h,zIndex:e.locked?99998:99999,pointerEvents:(null===(t=e.contentEditingElement)||void 0===t?void 0:t.element)===e.element?"none":"auto"}}),{formRef:p,onKeyDown:v}=function(e){let t=(0,i.useRef)(null);return{formRef:t,onKeyDown:n=>{let r=n.currentTarget.value.trim();if(e(n)&&r.length>0){var a;null===(a=t.current)||void 0===a||a.requestSubmit(),n.preventDefault()}}}}(e=>"Enter"===e.key&&!e.shiftKey&&!e.nativeEvent.isComposing&&(!tm.nr||!tm.xl||229!==e.keyCode)),[g,w]=(0,i.useState)({}),b="".concat(e.source.fileName,":").concat(e.source.lineNumber,":").concat(e.source.columnNumber),_=g[b],x=(0,i.useCallback)(e=>{w(t=>({...t,[b]:e}))},[b,w]);return e.locked&&e.allowRefinement?(0,a.jsxs)(tl,{open:!n,children:[(0,a.jsx)(td,{asChild:!0,children:m}),(0,a.jsx)(tc,{align:"start",avoidCollisions:!0,className:"z-[2147483647] flex w-[400px] max-w-[calc(100%-10px)] flex-col gap-3 rounded-xl bg-white p-0 text-sm shadow-md ring-[0.5px] ring-gray-950/10",collisionPadding:5,side:"bottom",sideOffset:5,sticky:"always",style:{zIndex:0x7fffffff},children:(0,a.jsx)("form",{className:"flex flex-col items-start justify-start gap-2 p-2 font-sans",onSubmit:t=>{t.preventDefault();let n=e.fileMapping[e.source.fileName];if(!n){alert("Unexpected error: file not found");return}r(!0),setTimeout(()=>{r(!1)},25e3),eu({type:"refine",prompt:_,file:n,line:e.source.lineNumber,column:e.source.columnNumber})},ref:p,children:(0,a.jsxs)("div",{className:"flex w-full items-start gap-1.5 rounded-lg border bg-[#fafafa] p-1.5",children:[(0,a.jsx)("div",{className:"flex size-6 items-center justify-center text-gray-500",children:(0,a.jsx)(tp,{className:"size-5"})}),(0,a.jsx)(tS,{onKeyDown:v,setValue:x,value:_}),(0,a.jsx)(th,{className:"size-6 rounded-md shadow-none disabled:bg-[#ececee] disabled:text-[#a1a1aa]",disabled:!_,size:"icon",type:"submit",children:(0,a.jsx)(tu,{className:"size-3"})})]})})})]},e.id):m}function tb(e){let{enabled:t,setEnabled:n,fileMapping:r,sourceVersion:o,children:s}=e,[l,c]=(0,i.useState)(null),d=(0,i.useRef)(l),[u,f]=(0,i.useState)(null),h=(0,i.useRef)(u),[m,p]=(0,i.useState)(!1),v=(0,i.useRef)(null),[g,w]=(0,i.useState)(!1),[b,_]=(0,i.useState)(0),x=(0,i.useRef)(!0);(0,i.useEffect)(()=>{let e=document.body;t?e.classList.add("v0-lite-dev"):e.classList.remove("v0-lite-dev")},[t]),(0,i.useEffect)(()=>{w(!1)},[t,w]),(0,i.useEffect)(()=>{if((null==u?void 0:u.className)&&u.source){let e=r[u.source.fileName],t=t_(u.element);if(!t)return;let n=t.className;if(!n)return;eu({type:"devtools_selected_state",className:n.value,fileName:e,lineNumber:n.lineNumber,columnNumber:n.columnNumber});return}eu({type:"devtools_selected_state",className:null})},[u,r]),(0,i.useEffect)(()=>{d.current=l},[l]),(0,i.useEffect)(()=>{h.current=u},[u]);let y=(0,i.useCallback)(()=>{if(d.current){let e=d.current.element.getBoundingClientRect(),t={...d.current,bounds:e};c(t),d.current=t}if(h.current){let e=h.current.element.getBoundingClientRect(),t={...h.current,bounds:e};f(t),h.current=t}},[]);(0,i.useEffect)(()=>{y()},[o]);let S=(0,i.useCallback)(e=>{e.stopPropagation(),e.preventDefault()},[]),j=(0,i.useCallback)(()=>{y()},[]),P=(0,i.useCallback)(e=>{" "!==e.key||e.defaultPrevented||(e.preventDefault(),e.stopPropagation(),document.execCommand("insertText",!1," "))},[]),E=(0,i.useCallback)(()=>{let e=h.current;if(!e)return;let t=e.inlineEdit;if(!t||x.current)return;x.current=!0;let n=t.source,[a,o,...i]=t.format.split(":"),s=r[n.fileName],l=e.element.textContent||"",c=i.join(":").length,d=Date.now();_(d),eu({type:"inline_edit",file:s,line:Number(a),column:Number(o),len:c,replace:l,version:d}),f(e=>(e&&k(e.element),null))},[r]),k=(0,i.useCallback)(e=>{E(),e.contentEditable=e.dataset.v0DevContentEditableOldValue||"false",delete e.dataset.v0DevEditing,delete e.dataset.v0DevContentEditableOldValue,e.removeEventListener("click",S),e.removeEventListener("focusout",E),e.removeEventListener("input",j),"BUTTON"===e.tagName&&e.removeEventListener("keydown",P)},[S,E,j,P]),C=(0,i.useCallback)(e=>{x.current=!1,e.dataset.v0DevContentEditableOldValue=e.contentEditable,e.contentEditable="plaintext-only",e.dataset.v0DevEditing="1",e.addEventListener("click",S,{capture:!0}),e.addEventListener("focusout",E),e.addEventListener("input",j),"BUTTON"===e.tagName&&e.addEventListener("keydown",P)},[S,E,j,P]);return(0,i.useEffect)(()=>{if(!t){c(null),f(e=>(e&&k(e.element),null)),d.current=null,h.current=null;return}let e=e=>{var t;if(g)return;let n=document.elementsFromPoint(e.clientX,e.clientY).find(e=>!e.getAttribute("data-v0-devtool-overlay"));if(!n){c(null);return}if(v.current===n)return;v.current=n;let r=t_(n);if(!r){c(null);return}let{source:a,targetElement:o,inlineEdit:i,className:s}=r;if(o===(null===(t=d.current)||void 0===t?void 0:t.element)||!(o instanceof HTMLElement))return;let l=o.getBoundingClientRect(),u=tg.get(o)||Math.random().toString(36).slice(2);tg.set(o,u);let f={element:o,source:a,bounds:l,id:u,inlineEdit:i,className:s};c(f),d.current=f},r=e=>{let t=e.relatedTarget;t&&"HTML"!==t.nodeName||(c(null),d.current=null,v.current=null)},a=e=>{if("Escape"===e.key){let e=h.current;e||n(!1),e&&k(e.element),f(null)}};document.addEventListener("keydown",a),window.addEventListener("resize",y,{passive:!0}),window.addEventListener("scroll",y,{passive:!0});let o=window.matchMedia("(hover:none)").matches;return o?document.addEventListener("pointerdown",e,{passive:!0}):(document.addEventListener("pointermove",e,{passive:!0}),window.addEventListener("mouseout",r,{passive:!0})),()=>{document.removeEventListener("keydown",a),window.removeEventListener("resize",y),window.removeEventListener("scroll",y),o?document.removeEventListener("pointerdown",e):(document.removeEventListener("pointermove",e),window.removeEventListener("mouseout",r))}},[t,n,g,k,y]),(0,a.jsxs)(a.Fragment,{children:[s,o{g||(u&&k(u.element),m?p(!1):f(l))},onDoubleClick:()=>{if(!g){if(u&&k(u.element),l.inlineEdit){p(!0),C(l.element),l.element.focus();let e=document.createRange();e.selectNodeContents(l.element);let t=window.getSelection();null==t||t.removeAllRanges(),null==t||t.addRange(e)}else p(!1);f(l)}},setLoading:w}):null]})}function t_(e){let t=function e(t,n){var r;if(!t)return null;n=t.stateNode||n;let a=ty(t);return(null===(r=a.memoizedProps)||void 0===r?void 0:r.__v0_s)?[a,n]:e(t.return,n)}(function(e){if("__REACT_DEVTOOLS_GLOBAL_HOOK__"in window){let{renderers:t}=window.__REACT_DEVTOOLS_GLOBAL_HOOK__;for(let n of t.values())try{let t=n.findFiberByHostInstance(e);if(t)return t}catch(e){}}if("_reactRootContainer"in e)return e._reactRootContainer._internalRoot.current.child;for(let t in e)if(t.startsWith("__reactFiber"))return e[t]}(e));if(!t)return null;let n=t[0],r=tx(n);if(!r)return null;let a=t[1],o=function e(t,n){var r,a;if(!t)return null;n=t.stateNode||n;let o=ty(t);if((null===(r=o.memoizedProps)||void 0===r?void 0:r.__v0_i)&&(null===(a=o.memoizedProps)||void 0===a?void 0:a.__v0_s)){let e=o.memoizedProps.__v0_i,t="string"==typeof e?[e]:Array.isArray(e)?e:null,r=null==n?void 0:n.textContent;return[o,"string"==typeof r&&t&&t.find(e=>{let[,,...t]=e.split(":");return t.join(":").trim()===r.trim()})||null]}return e(t.return,n)}(n,a);return{source:r,targetElement:a,inlineEdit:o&&o[1]?{source:tx(o[0]),format:o[1]}:null,className:function(e){if(!e||!e.memoizedProps||!e.memoizedProps.__v0_c)return null;let[t,n,...r]=e.memoizedProps.__v0_c.split(":");return{columnNumber:Number(n),lineNumber:Number(t),value:r.join(":")}}(n)}}function tx(e){return e&&e.memoizedProps&&e.memoizedProps.__v0_s?e.memoizedProps.__v0_s:null}function ty(e){return e.alternate&&e.alternate.actualStartTime>e.actualStartTime?e.alternate:e}function tS(e){let{value:t,setValue:n,onKeyDown:r}=e,o=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=o.current;if(!e)return;let t=()=>{e.style.height="auto";let t=Math.min(e.scrollHeight,192);t%24!=0&&(t=24),e.style.height="".concat(t,"px"),e.style.overflowY=e.scrollHeight>t?"auto":"hidden"};return e.addEventListener("input",t),t(),()=>e.removeEventListener("input",t)},[]),(0,a.jsx)("textarea",{autoFocus:!0,className:"w-full flex-1 resize-none bg-transparent leading-6 text-black outline-none",onChange:e=>{let{target:t}=e;return n(t.value)},onKeyDown:r,placeholder:"Apply quick changes here...",ref:o,rows:1,value:t})}let tj=()=>n.e(3680).then(n.t.bind(n,33680,23)).then(e=>(window.__v0_vol=e.vol,window.__v0_fs&&e.vol.fromJSON(Object.fromEntries(window.__v0_fs),"/"),e)),tP={"react-dom/server":()=>Promise.all([n.e(7141),n.e(101),n.e(9491)]).then(n.t.bind(n,29491,19)),"react-dom/client":()=>Promise.resolve().then(n.t.bind(n,45633,19)),fs:tj,"fs/promises":()=>n.e(3680).then(n.t.bind(n,33680,23)).then(e=>(window.__v0_vol=e.vol,window.__v0_fs&&e.vol.fromJSON(Object.fromEntries(window.__v0_fs),"/"),e.promises)),memfs:tj,path:()=>Promise.resolve().then(n.t.bind(n,89078,23))};Object.values(tP).forEach(e=>{e.__lazy=!0});let tE={"@react-email/components":"@react-email/components?bundle","@privy-io/react-auth":"@privy-io/react-auth?bundle","@clerk/nextjs":"@clerk/nextjs?bundle","@chakra-ui/react":"@chakra-ui/react?bundle","@chakra-ui/icons":"@chakra-ui/icons?bundle&external=@chakra-ui/react","@mui/material":"@mui/material?bundle",nuqs:"nuqs?no-bundle","nuqs/adapters/next/app":"nuqs/adapters/next/app?no-bundle","swiper/css":"swiper/swiper.css","swiper/css/bundle":"swiper/swiper-bundle.css"},tk=[e=>e.startsWith("swiper/css/")?"swiper/modules/"+e.slice(11)+".css":null,e=>"/v135/@firebase/app@0.10.16/es2022/app.mjs"===e?"v135/@firebase/app@0.10.17/es2022/app.mjs":null];var tC=n(46385);let tT=new WeakMap;function tN(e){let t,{response:n}=e;if(!(n instanceof Response)){if("$$typeof"in n)return n;throw Error("Invalid response from server: Expected a Response object but got "+typeof n)}let r=n.headers.get("content-type");if(null==r?void 0:r.startsWith("text/")){let e=tT.get(n)||n.text();tT.set(n,e),t=(0,a.jsx)(i.Suspense,{children:(0,a.jsx)(tR,{data:e})})}else if(null==r?void 0:r.startsWith("application/json")){let e=tT.get(n)||n.text();tT.set(n,e),t=(0,a.jsx)(i.Suspense,{children:(0,a.jsx)(tR,{data:e,formatter:e=>{try{return JSON.stringify(JSON.parse(e),null,2)}catch(t){return e}}})})}else t="No preview available for this content type.";return(0,a.jsx)("pre",{className:"font-mono whitespace-pre-wrap text-sm p-1",children:t})}function tR(e){let{data:t,formatter:n}=e,r=(0,i.use)(t);return n?n(r):r}let tO=["layout","template","error","loading","default","page","route"];function tA(e,t){e.endsWith("/")&&(e=e.slice(0,-1)),t.endsWith("/")&&(t=t.slice(0,-1));let n=e.split("/"),r=t.split("/");if(n.length3&&void 0!==arguments[3]?arguments[3]:"page";if(!n)for(let t of e){let e=function(e){let t="/",n=e.split("/");if("page"!==n[n.length-1])return null;for(let e of(n.pop(),"@v0"===n[0]&&n.shift(),"app"===n[0]&&n.shift(),n))!(e.startsWith("(")&&e.endsWith(")"))&&(e.startsWith("@")||(t+=e+"/"));return t}(t);if(e){n=e;break}}if(!n)return null;let s=new URL(n,"http://n"),l=s.pathname,c=Object.fromEntries(s.searchParams.entries()),d={segments:{},params:{}},u=t,f=null,h=null;u.dirs["@v0"]&&(u=u.dirs["@v0"]),u.dirs.app&&(u=u.dirs.app),(null===(r=u.dirs.src)||void 0===r?void 0:r.dirs.app)&&(u=u.dirs.src.dirs.app),function e(t,n,r){for(let[a,o]of Object.entries(n.dirs)){let n=r,i="";a.startsWith("(")&&a.endsWith(")")||(a.startsWith("@")?i=a.slice(1):(n=n+a+"/",i="children"));let s=tA(l,n);if(s){let r={segments:{},params:{}};t.segments[i]=r,r.params={...t.params,...s[0]},e(r,o,n)}}let a=tA(l,r);for(let[e,r]of Object.entries(n.files)){let n=e.split("/"),o=n[n.length-1];"layout"===o?t.layout=r:"template"===o?t.template=r:"error"===o?t.error=r:"loading"===o?t.loading=r:"default"===o?t.default=r:"page"===o?(null==a?void 0:a[1])&&(f=a[0],t.page=r):"route"===o&&(null==a?void 0:a[1])&&(f=a[0],h=r,t.route=r)}}(d,u,"/");let m=Symbol("BAIL_OUT_LAYOUTS");async function p(e){let t=null,n={};for(let[r,a]of Object.entries(e.segments))n[r]=await p(a),"children"===r&&(t=n[r]);let r=e.page||e.default;if(r&&(n.children=t=await tD([[r,"default"]],{params:e.params,searchParams:c})),e.route)throw{type:m,node:(0,a.jsx)(tN,{response:await tD([[e.route,"GET"]],new Request(s.pathname+s.search),{params:e.params})})};if(e.template&&(n.children=t=(0,a.jsx)(tW,{children:await tD([[e.template,"default"]],{...n})})),e.layout&&(t=await tD([[e.layout,"default"]],{...n,params:e.params})),e.loading){let n=await tI(e.loading,"default");t=(0,a.jsx)(i.Suspense,{fallback:(0,a.jsx)(n,{}),children:t})}if(e.error){let n=await tI(e.error,"default");t=(0,a.jsx)(ec,{fallback:n,children:t})}return t}return!f||"page"===o&&h?null:[l,f,h,()=>p(d).catch(e=>e&&"type"in e&&e.type===m?e.node:e)]}async function tM(e,t,n,o){let i=function(e){let t=e.reduce((e,t)=>(e[t]=()=>nh(t),e),{}),n=e.map(e=>{let t=e.split("/");return t[t.length-1]=t[t.length-1].replace(/\.[^/.]+$/,""),t}).sort((e,t)=>{if(e.lengtht.length)return 1;let n=e[e.length-1],r=t[t.length-1];return tO.indexOf(n)-tO.indexOf(r)}),r={files:{},dirs:{}};for(let e of n){let n=e.join("/"),a=r;for(let r=0;rt[i](new ep.NextRequest(o,n),{params:e}),!1,null==n?void 0:n.headers);return new Response(r.body,{status:r.status,headers:r.headers})}catch(e){return console.error(e),new Response("Internal server error",{status:500})}}}}catch(e){return new Response("Internal server error",{status:500})}}else if(o.hostname.includes(".")){if(eH.enabled&&![".amazonaws.com"].some(e=>e.startsWith(".")?o.hostname.endsWith(e):o.host===e))return(0,eV.q)(t,o.toString(),e,n)}else throw TypeError("Failed to fetch");return await t(e,n)},globalThis.fetch.__v0__=!0)}(s);let l=s(t,"all");if(!l){let r=new URL(t,"http://n").pathname,i=null;if("/"===r){let r=e.filter(e=>!e.endsWith("/route")&&!e.endsWith(".css")&&!e.endsWith("/page"));if(r.length)try{let e=await tD(r.toReversed().map(e=>[()=>nh(e),["default","Component",/^[A-Z][A-Za-z0-9_.]+$/]]));if(o)return;return(0,a.jsx)(tF,{children:(0,a.jsx)(eZ,{defaultParams:{},defaultRoute:t,fallback:n,potentialEntries:r,resolver:s,singleComponent:!0,children:e})})}catch(e){i=e}}let l=e.some(e=>e.includes("app/"));return e.length&&l?(0,a.jsx)(eF,{currentRoute:t,rawPaths:e}):1===e.length?(0,a.jsx)(ez,{currentRoute:t,rawPath:e[0]}):i?(0,a.jsx)(em,{code:"Error",message:String(i)}):(0,a.jsx)(em,{code:404,message:"Page not found."})}let c=o?await l[3]():(0,a.jsx)(ed,{render:l[3]()});if(!o)return(0,a.jsx)(eZ,{defaultParams:l[1],defaultRoute:l[0],fallback:n,potentialEntries:e,resolver:s,children:c})}async function tI(e,t){try{let n=(await e())[t];if("AsyncFunction"===n.constructor.name)throw Error("Component is not allowed to be async: "+n);return n}catch(e){return()=>(0,a.jsx)(ed,{render:e})}}async function tD(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;rt(...n));return(0,a.jsx)(t,{...n[0]})}catch(n){if(t===e.length-1)return(0,a.jsx)(ed,{render:n})}}throw Error("Component cannot be found. Please make sure it is a default export.")}function tW(e){let{children:t}=e,{pathname:n}=e2();return(0,a.jsx)(i.Fragment,{children:t},n)}function tF(e){let{children:t}=e,n=(0,i.useRef)(null);return(0,tC.X)(!0,n,!1,null),(0,a.jsx)("div",{className:"contents",ref:n,children:t})}function tz(){return(0,a.jsx)(em,{code:404,message:"This page could not be found."})}let tU=new Set(["react","react/jsx-runtime","react-dom","react-dom/server","react-dom/client","next","axios","path","fs","fs/promises",...Object.keys(tt)]),tH=new Map([["node_fs.js","fs"],["node_path.js","path"]]);function tV(e){return e.replace(/^node:/,"")}let tB="https://esm.sh",tq="https://cdn.skypack.dev";function tG(e){return e.startsWith(tB)||e.startsWith(tq)}let tJ=e=>"".concat(tB,"/").concat(tV(e)),t$=!1;async function tX(){if(!t$){t$=!0;try{if(!(await fetch("".concat(tB,"/ai@4.0.7"))).ok)throw Error("Failed to load esm.sh")}catch(e){tJ=e=>"".concat(tq,"/").concat(tV(e))}}}function tZ(){for(var e=arguments.length,t=Array(e),n=0;n1&&void 0!==arguments[1]&&arguments[1];if(!globalThis.importShim)return e;let n=e;if(ef[e])n=ef[e];else if(e.startsWith("blob:")&&"_r"in importShim){for(let[t,r]of Object.entries(importShim._r))if(r.b===e){let r=ef[t];n=r?ef[e]=r:t;break}}return n=(n=function(e){if(tG(e)){let r=e.startsWith(tB);try{var t,n;let a=new URL(e).pathname.split("/").filter(Boolean),o="";return a.length>=4?(r||a.shift(),o=(null===(t=a[0])||void 0===t?void 0:t.startsWith("@"))?a.slice(0,2).join("/"):a[0]):o=(null===(n=a[0])||void 0===n?void 0:n.startsWith("@"))?a.slice(0,2).join("/"):a[0],o=o.replace(/(.)@.*/,"$1")}catch(e){}}return e}(n)).replace(/^@v0\//,"/"),t||(n=n.replace(/\?(server|client)_layer$/,"")),n}let tK=null,tQ="Failed to fetch dynamically imported module:",t0=/Failed to resolve module specifier "([^"]+)"/,t1=/The requested module '([^']+)' does not provide an export named '([^']+)'/,t3=/Unable to resolve specifier '([^']+)' imported from (.+)/,t5=/The "([^']+)" module does not provide an export named "([^']+)"/,t6=/(https:\/\/[^ ]+) imported from (.+)/;function t2(e){let{error:t}=e;return(0,a.jsx)(t9,{error:t})}function t9(e){let{error:t}=e,n=t&&"message"in t?t.message:"Unknown error";if(n.includes(tQ)){let e=tY(n.slice(n.indexOf(tQ)+tQ.length).trim());return(0,a.jsx)(em,{code:"Import Error",message:'Failed to load "'.concat(e,'".'),stack:null==t?void 0:t.stack,cause:null==t?void 0:t.cause})}if(t0.test(n)){let e=tY(t0.exec(n)[1]);return(0,a.jsx)(em,{code:"Import Error",message:'The file "'.concat(e,'" cannot be found. Make sure the file exists.'),stack:null==t?void 0:t.stack,cause:null==t?void 0:t.cause})}if(t1.test(n)){let[,e,r]=t1.exec(n),o=tY(e);return(0,a.jsx)(em,{code:"Import Error",message:'The "'.concat(o,'" module does not provide an export named "').concat(r,'".'),stack:null==t?void 0:t.stack,cause:null==t?void 0:t.cause})}if(t3.test(n)){let[,e,r]=t3.exec(n),o=tY(e),i=tY(r||"");return(0,a.jsx)(em,{code:"Import Error",message:'The file "'.concat(o,'" cannot be found').concat(i?' (imported in "'.concat(i,'")'):"",". Make sure the file or alias exists in the correct location."),stack:null==t?void 0:t.stack,cause:null==t?void 0:t.cause})}if(t5.test(n)){let[,e,r]=t5.exec(n),o=tY(e);return(0,a.jsx)(em,{code:"Import Error",message:'The "'.concat(o,'" module does not provide an export named "').concat(r,'".'),stack:null==t?void 0:t.stack,cause:null==t?void 0:t.cause})}if(t6.test(n)){let[,e,r]=t6.exec(n),o=tY(r),i=tY(e);return(0,a.jsx)(em,{code:"Import Error",message:'Failed to load "'.concat(i,'" from "').concat(o,'", make sure it exists.'),stack:null==t?void 0:t.stack,cause:null==t?void 0:t.cause})}return"_jsxDEV is not defined"===n?(0,a.jsx)(em,{code:"Runtime Error",message:"The component cannot be rendered. Make sure the component is exported properly."}):(0,a.jsx)(em,{code:"Runtime Error",message:n,stack:null==t?void 0:t.stack,cause:null==t?void 0:t.cause})}window.__v0_modules__={},window.React=i;let t4={...es,...ta,...tP,...tt};async function t8(e){let t=tK||{react:nt("React",i),"react-dom":nt("ReactDOM",c),"react/jsx-runtime":nt("ReactJSXRuntime",o),__v0__:nt("__v0__",i),"__v0__/internal":nt("__v0__/internal",eB),"__v0__/jsx-dev-runtime":nt("__v0__/jsx-dev-runtime",tv),...Object.fromEntries(Object.entries(tt).map(e=>{let[t,n]=e;return n&&("__dynamic"in n||"__lazy"in n)?null:[t,nt(t,n)]}).filter(X.isNonNullable))};function n(e,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];ef[n]=e,(!t[e]||r)&&(t[e]=n)}function r(e,t,n){return"import * as __mod from ".concat(JSON.stringify(e),"\n")+(n?"".concat(n.import,"\n"):"")+Array.from(t).map(e=>"default"===e?"export default ".concat(n?"".concat(n.api,"(__mod.default)"):"__mod.default"):"export const ".concat(e," = ").concat(n?"".concat(n.api,"(__mod[").concat(JSON.stringify(e),"])"):"__mod[".concat(JSON.stringify(e),"]"))).join("\n")}for(let[t,a]of Object.entries(e)){if("script"!==a.type||["react","react-dom"].includes(t))continue;if(t.startsWith("@v0/")){if("string"==typeof a.runtime){if(a.meta.topLevelUseServer){let e=t+"?server_layer",o={import:"import { createServerRef } from '__v0__/internal'",api:"createServerRef"};n(t+"?client_layer",nn(t+"?client_layer",r(e,a.exported,o)),!0),n(t,nn(t,r(e,a.exported,o)),!0),n(e,nn(e,a.runtime),!0)}else if(a.meta.topLevelUseClient){let e=t+"?client_layer";n(t+"?server_layer",nn(t+"?server_layer",r(e,a.exported)),!0),n(t,nn(t,r(e,a.exported)),!0),n(e,nn(e,a.runtime),!0)}else n(t,nn(t,a.runtime),!0),n(t+"?server_layer",nn(t+"?server_layer",a.runtime),!0),n(t+"?client_layer",nn(t+"?client_layer",a.runtime),!0);continue}if(!t4[t])continue}let e=t4[t];if(e){let r=(null==e?void 0:e.__dynamic)?e(a.used):(null==e?void 0:e.__lazy)?await e():e;(null==r?void 0:r.__runtime)?n(t,nn(t,r.__runtime),!0):n(t,nt(t,r))}else n(t,na(t,a.used))}tK=t,window.importShim.addImportMap({imports:t})}async function t7(e,t){if(t&&!(t<17376804e5))try{if(e["@v0/tailwind.config"]){let e=await nh("@v0/tailwind.config");e.default&&window.tailwind&&(window.tailwind.config=e.default)}}catch(e){console.warn("Failed to load global configs:",e)}}let ne={};function nt(e,t){if(ne[e])return ne[e];window.__v0_modules__[e]=t;let n=new Blob(["const mod = window.__v0_modules__[".concat(JSON.stringify(e),"];\n").concat("default"in t?"export default mod.default;":"export { mod as default };","\n").concat(Object.keys(t).map((e,t)=>"default"===e?"":"const __v0_".concat(t," = mod[").concat(JSON.stringify(e),"]; export { __v0_").concat(t," as ").concat(JSON.stringify(e)," };")).join("\n"),"\n\n//# sourceFileName=").concat(e.replace(/^@v0\//,""),"\n")],{type:"application/javascript"});return ne[e]=URL.createObjectURL(n),ef[ne[e]]=e,ne[e]}function nn(e,t){let n=new Blob([t],{type:"application/javascript"});return URL.createObjectURL(n)}let nr={phaser:()=>nn("phaser","import * as phaser from '".concat(tZ("phaser"),"'\nexport * from '").concat(tZ("phaser"),"'\nexport default phaser\n"))};function na(e,t){return t&&e in nr?nr[e](t):tZ(e)}let no=new Set(["mdx-components"]);async function ni(e){let{result:t,rawFiles:n,env:r,defaultPath:o,hmr:i,createdAt:s}=e,l=t.entryModules.filter(e=>{let t=e.split("/").pop();return t&&!no.has(t)});if(!l.length){for(let e of Object.keys(t.modules))if(e.startsWith("@v0/app/")&&e.endsWith("/page")||e.startsWith("@v0/src/app/")&&e.endsWith("/page")){l=[e];break}}if(!l.length)return(0,a.jsx)(tz,{});await Promise.all([nf(),tX()]),function(e){if(ns)return;ns=!0;let t=e.reduce((e,t)=>{let{key:n,value:r}=t;return e[n]=r,e},{});window.process={},window.process.env=new Proxy({NODE_ENV:"development",...t},{get:(e,t)=>e[t]});let n="/";window.process.cwd=()=>n,window.process.chdir=e=>{n=e},window.process.exit=e=>{throw Error("Process exited with code "+e)},window.process.on=()=>{},window.process.version="v20.0.0",window.process.versions={node:"v20.0.0"},window.Deno={...window.process,env:{get:e=>window.process.env[e],set(e,t){window.process.env[e]=t},toObject:()=>window.process.env},pid:0,build:{arch:"unknown",platform:"browser"},mainModule:"",args:[],argv:[]}}([...r,...Object.entries(t.envs).map(e=>{let[t,n]=e;return{key:t,value:n}})]),window.__v0_fs=n,window.__v0_vol&&(window.__v0_vol.reset(),window.__v0_vol.fromJSON(Object.fromEntries(n),"/")),await t8(t.modules),await t7(t.modules,s);try{return await tM(l,o,t2,i)}catch(e){return(0,a.jsx)(t2,{error:e})}}let ns=!1,nl=!1,nc=new Set,nd=/^(text|application)\/css(;|$)/;function nu(e){if(e in t4&&!nc.has(e)){nc.add(e);let t=t4[e];if("function"==typeof t&&t.__lazy)return t4[e]().then(t=>{window.importShim.addImportMap({imports:{[e]:nt(e,t)}})});window.importShim.addImportMap({imports:{[e]:nt(e,t)}})}}async function nf(){if(nl)return;nl=!0,window.esmsInitOptions={mapOverrides:!0,shimMode:!0,async resolve(e,t,n){if(e in tE)return na(tE[e]);for(let t of tk){let n=t(e);if(n)return na(n)}let r=function(e,t){let n=t.startsWith(tB),r=t.startsWith(tq);if(n||r){var a,o,i;let t=(n?null===(a=e.match(/\/(@?[^@]+)(@|$)/))||void 0===a?void 0:a[1]:null===(o=e.match(/\/[^/]+\/(@?[^@]+)(@|$)/))||void 0===o?void 0:o[1])||"",r=tU.has(t)&&(null===(i=e.match(n?e.includes("@^")||e.includes("@~")||e.includes("@>")||e.includes("@<")||e.includes("@=")?/(\/[^/]+)(\/.+)\?.+$/:/(\/[^/]+){2}(\/.+)\.m?js$/:/(\/[^/]+){3}(\/.+)\.m?js$/))||void 0===i?void 0:i[2])||"",s=t+(["/react","/react-dom"].includes(r)?"":r);if(tH.has(s))return tH.get(s);if(s&&tU.has(s))return s}}(e,t);r&&(e=r);try{var a,o;let r=tY(t,!0),i=null===(a=r.match(/\?(server_layer|client_layer)$/))||void 0===a?void 0:a[1],s=null===(o=e.match(/\?(server_layer|client_layer)$/))||void 0===o?void 0:o[1];if(i&&!s)try{return n(e+"?"+i,t)}catch(e){}return n(e,t)}catch(r){if(e in t4){try{return nu(e),n(e,t)}catch(e){}return e}if(e in ta){let t=ta[e];return(null==t?void 0:t.__lazy)?nt(e,await t()):nt(e,t)}throw r}},onimport:nu,async fetch(e,t){let n=await fetch(e,t);if(!n.ok)return n;let r=n.headers.get("content-type")||"";if(nd.test(r)){let e=await n.text();return new Response("var s=new CSSStyleSheet();s.replaceSync(".concat(JSON.stringify(e),");document.adoptedStyleSheets.push(s)"),{headers:{...n.headers,"content-type":"application/javascript"},status:n.status})}return n}},await n.e(5371).then(n.bind(n,55371));let e=/\.(ts|tsx|js|jsx|mjs|cjs)$/i,t=window.URL;window.URL=class extends t{get[Symbol.toStringTag](){return"URL"}constructor(t,n){if(n&&n.startsWith("blob:")){let r=window.importShim.getImportMap().imports;for(let a in r)if(n===r[a]){let n=(0,d.resolve)((0,d.dirname)(a),t),o=r[n.replace(e,"")]||r[n];if(o){super(o);return}}}super(t,n)}}}function nh(e){return window.importShim(e+"?server_layer")}function nm(e,t){let n=Error();if(t)n.stack=t;else{var r,a;null===(a=Error)||void 0===a||null===(r=a.captureStackTrace)||void 0===r||r.call(a,n,nm)}eu({type:"error",error:e,stack:(0,eU.qg)(n,{slice:7}).filter(e=>{let t=e.file;return!!(t&&(t.startsWith("blob:")||tG(t)))}).map(e=>{let t=" at ";return e.function&&(t+=e.function+" "),e.file&&(t+="("+tY(e.file)+")"),t}).join("\n")})}let np={error:["Encountered two children with the same key",'Each child in a list should have a unique "key" prop.',"├─ ⚠︎ Error Invalid color"]},nv={error:["In HTML, cannot be a child of .","In HTML, cannot be a child of
.","You are mounting a new html component when a previous one has not first unmounted","You are mounting a new body component when a previous one has not first unmounted","[Fast Refresh]","Accessing element.ref was removed","`DialogContent` requires a `DialogTitle` for the component to be accessible","[next-auth][error][NO_SECRET]"]},ng=["log","info","warn","error","debug"];!function(){let e={...console};ng.forEach(t=>{console[t]=function(){for(var n=arguments.length,r=Array(n),a=0;a1?t-1:0),r=1;r(e?e+" ":"")+String(t),"");let a=0,o=e.replace(/%([sidfoOc])/g,(e,t)=>{if(a>=n.length)return e;let r=n[a++];switch(t){case"s":return String(r);case"i":case"d":return parseInt(r).toString();case"f":return parseFloat(r).toString();case"o":case"O":try{return JSON.stringify(r)}catch(e){return String(r)}default:return e}}),i=n.slice(a);return i.length>0?"".concat(o," ").concat(i.map(e=>{if("object"==typeof e)try{return JSON.stringify(e)}catch(e){}return String(e)}).join(" ")):o}(r[0],...r.slice(1));if(!(t in nv&&nv[t].some(e=>o.startsWith(e)))){if(t in np&&np[t].some(e=>o.startsWith(e))){e.warn(...r),eu({type:"console",method:"warn",message:o,isServer:eH.enabled,timestamp:new Date().toISOString()});return}if(e[t](...r),"error"===t){if("object"==typeof r[0]&&r[0]instanceof Error){let e=r[0];nm(o+("string"==typeof e.cause?"\n\n"+e.cause:""),e.stack)}else nm(o)}eu({type:"console",method:t,message:o,isServer:eH.enabled,timestamp:new Date().toISOString()})}}})}(),window.onerror=(e,t,n,r,a)=>(nm("Uncaught error: "+String(e),null==a?void 0:a.stack),!1),window.onunhandledrejection=e=>{var t;nm("Unhandled promise rejection: "+String(e.reason),null===(t=e.reason)||void 0===t?void 0:t.stack)};let nw=null,nb=null,n_=null;async function nx(e){let t=e.map(e=>({meta:{file:e[0]},source:e[1]})),n=await fetch("/api/v0-edit",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({files:t})}),{result:r}=await n.json();return r}function ny(e){return(0,a.jsx)(em,{code:"Application Error",message:"Failed to initialize v0",stack:e.stack,cause:e.cause})}function nS(e){let t={};for(let n of Object.values(e.modules))void 0!==n.originalPath&&(t[n.path]=n.originalPath);return t}function nj(e){let{files:t,compiled:n,env:r,defaultPath:o}=e,[s,l]=(0,i.useState)(null),[c,d]=(0,i.useState)(!1),[u,f]=(0,i.useState)({}),h=function(e){let t=(0,i.useRef)(e);return(0,i.useEffect)(()=>{t.current=e},[e]),t}(c),[m,p]=(0,i.useState)(0),v=(0,i.useCallback)((e,t,n)=>{var a,i;return nb=new MessageChannel,null===(i=navigator.serviceWorker)||void 0===i||null===(a=i.controller)||void 0===a||a.postMessage({type:"v0_init",compiled:{staticFiles:e.staticFiles}},[nb.port2]),ni({result:e,rawFiles:t,env:r,defaultPath:o,hmr:n,createdAt:e.createdAt||Date.now()}).catch(ny)},[o,r]);!nw&&n_&&(eu({type:"frame_onload"}),nw=Promise.all([v(n,t),n_]).then(e=>{let[t]=e;return t}).catch(ny)),(0,i.useLayoutEffect)(()=>{let e=new URL(window.location.href);(e.searchParams.has("__v0_token")||e.searchParams.has("__v0"))&&(e.searchParams.delete("__v0_token"),e.searchParams.delete("__v0"),e.searchParams.has("mql")&&e.searchParams.delete("mql"),window.history.replaceState({},"",e.toString()),window.can_redirect=!0),null==nw||nw.then(e=>{l(e),f(nS(n)),eu({type:"frame_ready"})});let t=e=>{if(e.data&&"object"==typeof e.data){if("preview_code"===e.data.type){let t=Object.entries(e.data.code&&"object"==typeof e.data.code.mapping?e.data.code.mapping:e.data.code);nx(t).then(n=>v(n,t,!0).then(()=>{window.__v0_refreshRuntime.performReactRefresh(),f(nS(n)),e.data.version?p(e.data.version):p(e=>e+1)})).catch(ny);return}if(e.data.__v0_remote__)switch(e.data.type){case"navigate_back":window.history.back();break;case"navigate_forward":window.history.forward();break;case"navigate_to":window.location.href=e.data.href;break;case"devtools_enable":d(e=>!e)}}};window.addEventListener("message",t);let r="";function a(){if(r!==document.location.href){var e,t;eu({type:"location_change",href:r=document.location.href,canGoForward:null===(e=window.navigation)||void 0===e?void 0:e.canGoForward,canGoBack:null===(t=window.navigation)||void 0===t?void 0:t.canGoBack}),eu({type:"devtools_state",enabled:h.current})}}globalThis.__v0_internal_location_change=a;let o=new MutationObserver(a);return o.observe(document,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),a(),()=>{window.removeEventListener("message",t),o.disconnect()}},[n,v]);let g=(0,i.useCallback)(e=>{d(e),eu({type:"devtools_state",enabled:e})},[d]);return(0,i.useEffect)(()=>{s&&eu({type:"app_navigation_state",loading:!1})},[s]),(0,i.useEffect)(()=>()=>{eu({type:"app_navigation_state",loading:!0})},[]),(0,a.jsx)(tb,{enabled:c,fileMapping:u,setEnabled:g,sourceVersion:m,children:s})}n_=new Promise((e,t)=>{"serviceWorker"in navigator?navigator.serviceWorker.controller?e():navigator.serviceWorker.register("/__v0_sw.js",{scope:"/"}).then(()=>{e()}).catch(e=>{t(e)}):e()})},82051:(e,t,n)=>{n.d(t,{q:()=>r});async function r(e,t,n,r){let{headers:a={},method:o="GET",body:i,duplex:s,redirect:l,referrer:c,referrerPolicy:d,integrity:u,mode:f,credentials:h,cache:m}=n instanceof Request?n:null!=r?r:{},p={"x-v0-proxy-method":o,"x-v0-proxy-url":t,"x-v0-init-headers":JSON.stringify([...new Headers(a).entries()]),"x-v0-fetch-options":JSON.stringify({method:o,duplex:s,redirect:l,referrer:c,referrerPolicy:d,integrity:u,mode:f,credentials:h,cache:m})},v=new Headers(a);v.has("content-length")&&(p["content-length"]=v.get("content-length")||""),v.has("content-type")&&(p["content-type"]=v.get("content-type")||"");let g=i;if(i instanceof ReadableStream){let e=i.getReader(),t=[];for(;;){let{done:n,value:r}=await e.read();if(n)break;t.push(r)}g=new Blob(t)}let w=await e("/api/cors?original=".concat(encodeURIComponent(t)),{method:"POST",headers:p,body:g,redirect:"manual"}),b=Object.fromEntries(JSON.parse(w.headers.get("x-v0-proxy-headers")||"[]"));if(500===w.status&&w.headers.get("x-v0-proxy-error")){let e=await w.json();if(e.isTypeError)throw TypeError("fetch failed");if(e.isSyntaxError)throw SyntaxError("fetch failed");throw Error("fetch failed")}let _=parseInt(w.headers.get("x-v0-proxy-status")||"200");return new Response(204===_?void 0:w.body,{status:_,statusText:w.statusText,headers:new Headers(b)})}},42260:(e,t,n)=>{function r(e){let t={};for(let n of e){let e=n.replace(/_/g," ");t[n]=t=>{let{weight:n,style:r,display:o="swap",variable:i}=t||{},s=r?[...new Set(Array.isArray(r)?r:[r])]:[],l=n?[...new Set(Array.isArray(n)?n:[n])]:[],c=s.includes("italic"),d=s.includes("normal"),u=function(e,t,n){let r=[];if(t.wght)for(let e of t.wght){var o,i;if(t.ital)for(let n of t.ital)r.push([["ital",n],["wght",e],...null!==(i=t.variableAxes)&&void 0!==i?i:[]]);else r.push([["wght",e],...null!==(o=t.variableAxes)&&void 0!==o?o:[]])}else t.variableAxes&&r.push([...t.variableAxes]);t.variableAxes&&r.forEach(e=>{e.sort((e,t)=>{let[n]=e,[r]=t,a=n.charCodeAt(0)>96,o=r.charCodeAt(0)>96;return a&&!o?-1:o&&!a?1:n>r?1:-1})});let s="https://fonts.googleapis.com/css2?family=".concat(e.replace(/ /g,"+"));return r.length>0&&(s="".concat(s,":").concat(r[0].map(e=>{let[t]=e;return t}).join(","),"@").concat(r.map(e=>e.map(e=>{let[,t]=e;return t}).join(",")).sort(a).join(";"))),s="".concat(s,"&display=").concat(n)}(e,{wght:l,ital:c?[...d?["0"]:[],"1"]:void 0},o),f=function(e){let t=btoa(e);return"f_".concat(t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"))}(e);if("undefined"!=typeof document&&!document.querySelector('link[href="'.concat(u,'"]'))){let t=document.createElement("link");t.href=u,t.rel="stylesheet",document.head.appendChild(t);let n=document.createElement("style");n.innerHTML=".".concat(f,"{\n font-family: '").concat(e,"';\n }").concat(i?".v_".concat(f,"{").concat(i,":'").concat(e,"';}"):""),document.head.appendChild(n)}return{className:f,style:{fontFamily:"'".concat(e,"'")},variable:"v_"+f}}}return t}function a(e,t){if(e.includes(",")&&t.includes(",")){let[n,r]=e.split(",",2),[a,o]=t.split(",",2);return n===a?parseInt(r)-parseInt(o):parseInt(n)-parseInt(a)}return parseInt(e)-parseInt(t)}n.d(t,{G:()=>r})},46385:(e,t,n)=>{n.d(t,{X:()=>a});var r=n(46199);function a(e,t,n,a){let[o,i]=(0,r.useState)(!1);return(0,r.useLayoutEffect)(()=>{if(!e||!t.current)return;i(!0);let r=!1;for(let e of t.current.childNodes)if(e instanceof HTMLElement){if(["SCRIPT","STYLE"].includes(e.tagName))continue;if(e.hasAttribute("data-waiting-since"))return;let t="SECTION"===e.tagName,n=/(^| )w-(\[|\d)/.test(e.className),a=/(^| )max-w-/.test(e.className),o="card"===e.dataset.v0T,i="badge"===e.dataset.v0T,s=["BUTTON","IMG","FORM","INPUT","SPAN","FIELDSET","LABEL","SELECT","TEXTAREA","CODE","PRE","A"].includes(e.tagName);if(!(n||a||s||o||i)||t){r=!0;break}}if(r)document.body.classList.remove("v0-c");else if(document.body.classList.add("v0-c"),n){let e=t.current.getBoundingClientRect(),n=Math.max(1,Math.min((window.innerWidth-256)/Math.max(e.width,1),(window.innerHeight-256)/Math.max(e.height,1),3));t.current.style.transform="scale(".concat(n,")")}},[e,n,t,a]),o}},85732:(e,t,n)=>{n.r(t),n.d(t,{reducer:()=>s,toast:()=>u,useToast:()=>f});var r=n(46199);let a=0,o=new Map,i=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,t)},s=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:n}=t;return n?i(n):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||void 0===n?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],c={toasts:[]};function d(e){c=s(c,e),l.forEach(e=>{e(c)})}function u(e){let{...t}=e,n=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>d({type:"DISMISS_TOAST",toastId:n});return d({type:"ADD_TOAST",toast:{...t,id:n,open:!0,onOpenChange:e=>{e||r()}}}),{id:n,dismiss:r,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:n}})}}function f(){let[e,t]=r.useState(c);return r.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>d({type:"DISMISS_TOAST",toastId:e})}}}}]);