(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,33525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return s}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});function i(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function a(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function s(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,a(e));else t.set(r,a(n));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=e.r(90809)._(e.r(98183)),a=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",s=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(i.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||a.test(n))&&!1!==u?(u="//"+(u||""),o&&"/"!==o[0]&&(o="/"+o)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),o=o.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${o}${c}${s}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return s(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(71645);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=i(e,n)),t&&(o.current=i(t,n))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return g},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return v},NormalizeError:function(){return b},PageNotFoundError:function(){return x},SP:function(){return m},ST:function(){return y},WEB_VITALS:function(){return i},execOnce:function(){return a},getDisplayName:function(){return f},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return l},isResSent:function(){return d},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return C}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function a(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>s.test(e);function u(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=u();return e.substring(t.length)}function f(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function d(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&d(r))return n;if(!n)throw Object.defineProperty(Error(`"${f(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let m="undefined"!=typeof performance,y=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class g extends Error{}class b extends Error{}class x extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class w extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function C(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=e.r(18967),o=e.r(52817);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},useLinkStatus:function(){return x}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=e.r(90809),a=e.r(43476),s=i._(e.r(71645)),l=e.r(95057),u=e.r(8372),c=e.r(18581),f=e.r(18967),d=e.r(5550);e.r(33525);let p=e.r(91949),h=e.r(73668),m=e.r(9396);function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}function g(t){var r;let n,o,i,[l,g]=(0,s.useOptimistic)(p.IDLE_LINK_STATUS),x=(0,s.useRef)(null),{href:v,as:w,children:C,prefetch:k=null,passHref:j,replace:P,shallow:E,scroll:_,onClick:M,onMouseEnter:O,onTouchStart:R,legacyBehavior:T=!1,onNavigate:N,ref:S,unstable_dynamicOnHover:A,...$}=t;n=C,T&&("string"==typeof n||"number"==typeof n)&&(n=(0,a.jsx)("a",{children:n}));let L=s.default.useContext(u.AppRouterContext),I=!1!==k,U=!1!==k?null===(r=k)||"auto"===r?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,{href:z,as:B}=s.default.useMemo(()=>{let e=y(v);return{href:e,as:w?y(w):e}},[v,w]);if(T){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});o=s.default.Children.only(n)}let D=T?o&&"object"==typeof o&&o.ref:S,F=s.default.useCallback(e=>(null!==L&&(x.current=(0,p.mountLinkInstance)(e,z,L,U,I,g)),()=>{x.current&&((0,p.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,p.unmountPrefetchableInstance)(e)}),[I,z,L,U,g]),K={ref:(0,c.useMergedRef)(F,D),onClick(t){T||"function"!=typeof M||M(t),T&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!L||t.defaultPrevented||function(t,r,n,o,i,a,l){if("undefined"!=typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,h.isLocalURL)(r)){i&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:f}=e.r(99781);s.default.startTransition(()=>{f(n||r,i?"replace":"push",a??!0,o.current)})}}(t,z,B,x,P,_,N)},onMouseEnter(e){T||"function"!=typeof O||O(e),T&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),L&&I&&(0,p.onNavigationIntent)(e.currentTarget,!0===A)},onTouchStart:function(e){T||"function"!=typeof R||R(e),T&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),L&&I&&(0,p.onNavigationIntent)(e.currentTarget,!0===A)}};return(0,f.isAbsoluteUrl)(B)?K.href=B:T&&!j&&("a"!==o.type||"href"in o.props)||(K.href=(0,d.addBasePath)(B)),i=T?s.default.cloneElement(o,K):(0,a.jsx)("a",{...$,...K,children:n}),(0,a.jsx)(b.Provider,{value:l,children:i})}e.r(84508);let b=(0,s.createContext)(p.IDLE_LINK_STATUS),x=()=>(0,s.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18566,(e,t,r)=>{t.exports=e.r(76562)},75254,e=>{"use strict";var t=e.i(71645);let r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},n=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,t.forwardRef)(({color:e="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:s="",children:l,iconNode:u,...c},f)=>(0,t.createElement)("svg",{ref:f,...o,width:r,height:r,stroke:e,strokeWidth:a?24*Number(i)/Number(r):i,className:n("lucide",s),...!l&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(c)&&{"aria-hidden":"true"},...c},[...u.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(l)?l:[l]])),a=(e,o)=>{let a=(0,t.forwardRef)(({className:a,...s},l)=>(0,t.createElement)(i,{ref:l,iconNode:o,className:n(`lucide-${r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,a),...s}));return a.displayName=r(e),a};e.s(["default",()=>a],75254)},98919,e=>{"use strict";let t=(0,e.i(75254).default)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);e.s(["Shield",()=>t],98919)},73884,e=>{"use strict";let t=(0,e.i(75254).default)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);e.s(["XCircle",()=>t],73884)},83086,e=>{"use strict";let t=(0,e.i(75254).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["Sparkles",()=>t],83086)},37727,e=>{"use strict";let t=(0,e.i(75254).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",()=>t],37727)},88653,e=>{"use strict";e.i(47167);var t=e.i(43476),r=e.i(71645),n=e.i(31178),o=e.i(47414),i=e.i(74008),a=e.i(21476),s=e.i(72846),l=r,u=e.i(37806);function c(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class f extends l.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,r=(0,s.isHTMLElement)(e)&&e.offsetWidth||0,n=this.props.sizeRef.current;n.height=t.offsetHeight||0,n.width=t.offsetWidth||0,n.top=t.offsetTop,n.left=t.offsetLeft,n.right=r-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function d({children:e,isPresent:n,anchorX:o,root:i}){let a=(0,l.useId)(),s=(0,l.useRef)(null),d=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:p}=(0,l.useContext)(u.MotionConfigContext),h=function(...e){return r.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=c(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t{let{width:e,height:t,top:r,left:l,right:u}=d.current;if(n||!s.current||!e||!t)return;let c="left"===o?`left: ${l}`:`right: ${u}`;s.current.dataset.motionPopId=a;let f=document.createElement("style");p&&(f.nonce=p);let h=i??document.head;return h.appendChild(f),f.sheet&&f.sheet.insertRule(`
[data-motion-pop-id="${a}"] {
position: absolute !important;
width: ${e}px !important;
height: ${t}px !important;
${c}px !important;
top: ${r}px !important;
}
`),()=>{h.contains(f)&&h.removeChild(f)}},[n]),(0,t.jsx)(f,{isPresent:n,childRef:s,sizeRef:d,children:l.cloneElement(e,{ref:h})})}let p=({children:e,initial:n,isPresent:i,onExitComplete:s,custom:l,presenceAffectsLayout:u,mode:c,anchorX:f,root:p})=>{let m=(0,o.useConstant)(h),y=(0,r.useId)(),g=!0,b=(0,r.useMemo)(()=>(g=!1,{id:y,initial:n,isPresent:i,custom:l,onExitComplete:e=>{for(let t of(m.set(e,!0),m.values()))if(!t)return;s&&s()},register:e=>(m.set(e,!1),()=>m.delete(e))}),[i,m,s]);return u&&g&&(b={...b}),(0,r.useMemo)(()=>{m.forEach((e,t)=>m.set(t,!1))},[i]),r.useEffect(()=>{i||m.size||!s||s()},[i]),"popLayout"===c&&(e=(0,t.jsx)(d,{isPresent:i,anchorX:f,root:p,children:e})),(0,t.jsx)(a.PresenceContext.Provider,{value:b,children:e})};function h(){return new Map}var m=e.i(64978);let y=e=>e.key||"";function g(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}let b=({children:e,custom:a,initial:s=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:c="sync",propagate:f=!1,anchorX:d="left",root:h})=>{let[b,x]=(0,m.usePresence)(f),v=(0,r.useMemo)(()=>g(e),[e]),w=f&&!b?[]:v.map(y),C=(0,r.useRef)(!0),k=(0,r.useRef)(v),j=(0,o.useConstant)(()=>new Map),P=(0,r.useRef)(new Set),[E,_]=(0,r.useState)(v),[M,O]=(0,r.useState)(v);(0,i.useIsomorphicLayoutEffect)(()=>{C.current=!1,k.current=v;for(let e=0;e{let r=y(e),n=(!f||!!b)&&(v===M||w.includes(r));return(0,t.jsx)(p,{isPresent:n,initial:(!C.current||!!s)&&void 0,custom:a,presenceAffectsLayout:u,mode:c,root:h,onExitComplete:n?void 0:()=>{if(P.current.has(r)||(P.current.add(r),!j.has(r)))return;j.set(r,!0);let e=!0;j.forEach(t=>{t||(e=!1)}),e&&(T?.(),O(k.current),f&&x?.(),l&&l())},anchorX:d,children:e},r)})})};e.s(["AnimatePresence",()=>b],88653)},95468,e=>{"use strict";let t=(0,e.i(75254).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CheckCircle2",()=>t],95468)},7670,e=>{"use strict";function t(){for(var e,t,r=0,n="",o=arguments.length;rt])},78894,e=>{"use strict";let t=(0,e.i(75254).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["AlertTriangle",()=>t],78894)},52571,e=>{"use strict";let t=(0,e.i(75254).default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);e.s(["Info",()=>t],52571)},72520,e=>{"use strict";let t=(0,e.i(75254).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",()=>t],72520)},42296,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(46932),o=e.i(75157);e.s(["MagneticButton",0,({children:e,className:i,variant:a="primary",onClick:s,disabled:l,type:u="button"})=>{let c=(0,r.useRef)(null),[f,d]=(0,r.useState)({x:0,y:0}),{x:p,y:h}=f;return(0,t.jsxs)(n.motion.button,{ref:c,type:u,disabled:l,onClick:s,onMouseMove:e=>{let{clientX:t,clientY:r}=e,{left:n,top:o,width:i,height:a}=c.current.getBoundingClientRect();d({x:t-(n+i/2),y:r-(o+a/2)})},onMouseLeave:()=>{d({x:0,y:0})},animate:{x:.5*p,y:.5*h},transition:{type:"spring",stiffness:150,damping:15,mass:.1},className:(0,o.cn)("relative overflow-hidden rounded-xl px-8 py-4 font-semibold text-sm transition-all duration-300","primary"===a?"bg-white text-black shadow-[0_0_20px_rgba(255,255,255,0.3)] hover:shadow-[0_0_40px_rgba(255,255,255,0.5)]":"text-white hover:text-white/90",i),children:[(0,t.jsx)("span",{className:"relative z-10 flex items-center justify-center gap-2",children:e}),"primary"===a&&(0,t.jsx)(n.motion.div,{className:"absolute inset-0 z-0 bg-gradient-to-r from-indigo-500/0 via-white/50 to-indigo-500/0 opacity-0 transition-opacity duration-300 group-hover:opacity-100",animate:{x:-(2*p)}})]})}])},42009,e=>{"use strict";let t=(0,e.i(75254).default)("award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);e.s(["Award",()=>t],42009)},92161,e=>{"use strict";let t=(0,e.i(75254).default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);e.s(["Menu",()=>t],92161)},88840,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(46932),o=e.i(88653),i=e.i(95468),a=e.i(73884),s=e.i(78894),l=e.i(52571),u=e.i(37727);let c=(0,r.createContext)(null),f=()=>{let e=(0,r.useContext)(c);if(!e)throw Error("useToast must be used within a ToastProvider");return e},d={success:{icon:i.CheckCircle2,bg:"bg-emerald-500/10",border:"border-emerald-500/20",iconColor:"text-emerald-400"},error:{icon:a.XCircle,bg:"bg-red-500/10",border:"border-red-500/20",iconColor:"text-red-400"},warning:{icon:s.AlertTriangle,bg:"bg-amber-500/10",border:"border-amber-500/20",iconColor:"text-amber-400"},info:{icon:l.Info,bg:"bg-blue-500/10",border:"border-blue-500/20",iconColor:"text-blue-400"}};function p({toast:e,onDismiss:r}){let o=d[e.type]||d.info,i=o.icon;return(0,t.jsxs)(n.motion.div,{layout:!0,initial:{opacity:0,y:-20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-20,scale:.95},transition:{type:"spring",stiffness:400,damping:30},className:`
relative flex items-start gap-3 px-4 py-3 rounded-xl backdrop-blur-xl
border shadow-2xl min-w-[320px] max-w-[420px]
${o.bg} ${o.border}
`,children:[(0,t.jsx)(i,{className:`w-5 h-5 mt-0.5 shrink-0 ${o.iconColor}`}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("p",{className:"text-sm font-medium text-white",children:e.title}),e.message&&(0,t.jsx)("p",{className:"text-xs text-white/60 mt-0.5 line-clamp-2",children:e.message})]}),(0,t.jsx)("button",{onClick:r,className:"shrink-0 p-1 rounded-lg hover:bg-white/10 transition-colors",children:(0,t.jsx)(u.X,{className:"w-4 h-4 text-white/40"})})]})}function h({children:e}){let[n,i]=(0,r.useState)([]),a=(0,r.useCallback)(e=>{let t=`toast-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,r={...e,id:t};i(e=>[...e,r]);let n=e.duration??5e3;n>0&&setTimeout(()=>{i(e=>e.filter(e=>e.id!==t))},n)},[]),s=(0,r.useCallback)(e=>{i(t=>t.filter(t=>t.id!==e))},[]);return(0,t.jsxs)(c.Provider,{value:{showToast:a,dismissToast:s},children:[e,(0,t.jsx)("div",{className:"fixed top-4 right-4 z-[100] flex flex-col gap-2 pointer-events-none",children:(0,t.jsx)(o.AnimatePresence,{mode:"popLayout",children:n.map(e=>(0,t.jsx)("div",{className:"pointer-events-auto",children:(0,t.jsx)(p,{toast:e,onDismiss:()=>s(e.id)})},e.id))})})]})}function m(){let{showToast:e}=f();return{success:(t,r)=>e({type:"success",title:t,message:r}),error:(t,r)=>e({type:"error",title:t,message:r}),warning:(t,r)=>e({type:"warning",title:t,message:r}),info:(t,r)=>e({type:"info",title:t,message:r})}}e.s(["ToastProvider",()=>h,"useToast",0,f,"useToastHelpers",()=>m])}]);