1(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=>{}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=e.r(71645);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=o(e,n)),t&&(a.current=o(t,n))},[e,t])}function o(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)},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return i},searchParamsToUrlQuery:function(){return o},urlQueryToSearchParams:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function o(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 l(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,l(e));else t.set(r,l(n));return t}function i(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 i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(90809)._(e.r(98183)),l=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",s=e.hash||"",i=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)),i&&"object"==typeof i&&(i=String(o.urlQueryToSearchParams(i)));let c=e.search||i&&`?${i}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||l.test(n))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${a}${c}${s}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return s(e)}},18967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return x},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return v},NormalizeError:function(){return b},PageNotFoundError:function(){return y},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return o},execOnce:function(){return l},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return i},isResSent:function(){return f},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return j}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=["CLS","FCP","FID","INP","LCP","TTFB"];function l(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=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 d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(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&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}
1" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let m="undefined"!=typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class x extends Error{}class b extends Error{}class y 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 j(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 o}});let n=e.r(18967),a=e.r(52817);function o(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.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 x},useLinkStatus:function(){return y}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(90809),l=e.r(43476),s=o._(e.r(71645)),i=e.r(95057),u=e.r(8372),c=e.r(18581),d=e.r(18967),f=e.r(5550);e.r(33525);let p=e.r(91949),h=e.r(73668),m=e.r(9396);function g(e){return"string"==typeof e?e:(0,i.formatUrl)(e)}function x(t){var r;let n,a,o,[i,x]=(0,s.useOptimistic)(p.IDLE_LINK_STATUS),y=(0,s.useRef)(null),{href:v,as:w,children:j,prefetch:P=null,passHref:N,replace:S,shallow:E,scroll:_,onClick:O,onMouseEnter:k,onTouchStart:T,legacyBehavior:A=!1,onNavigate:C,ref:R,unstable_dynamicOnHover:$,...L}=t;n=j,A&&("string"==typeof n||"number"==typeof n)&&(n=(0,l.jsx)("a",{children:n}));let I=s.default.useContext(u.AppRouterContext),B=!1!==P,M=!1!==P?null===(r=P)||"auto"===r?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,{href:U,as:F}=s.default.useMemo(()=>{let e=g(v);return{href:e,as:w?g(w):e}},[v,w]);if(A){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=s.default.Children.only(n)}let D=A?a&&"object"==typeof a&&a.ref:R,K=s.default.useCallback(e=>(null!==I&&(y.current=(0,p.mountLinkInstance)(e,U,I,M,B,x)),()=>{y.current&&((0,p.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,p.unmountPrefetchableInstance)(e)}),[B,U,I,M,x]),q={ref:(0,c.useMergedRef)(K,D),onClick(t){A||"function"!=typeof O||O(t),A&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!I||t.defaultPrevented||function(t,r,n,a,o,l,i){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)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);s.default.startTransition(()=>{d(n||r,o?"replace":"push",l??!0,a.current)})}}(t,U,F,y,S,_,C)},onMouseEnter(e){A||"function"!=typeof k||k(e),A&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),I&&B&&(0,p.onNavigationIntent)(e.currentTarget,!0===$)},onTouchStart:function(e){A||"function"!=typeof T||T(e),A&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),I&&B&&(0,p.onNavigationIntent)(e.currentTarget,!0===$)}};return(0,d.isAbsoluteUrl)(F)?q.href=F:A&&!N&&("a"!==a.type||"href"in a.props)||(q.href=(0,f.addBasePath)(F)),o=A?s.default.cloneElement(a,q):(0,l.jsx)("a",{...L,...q,children:n}),(0,l.jsx)(b.Provider,{value:i,children:o})}e.r(84508);let b=(0,s.createContext)(p.IDLE_LINK_STATUS),y=()=>(0,s.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},2355,e=>{"use strict";var t=e.i(47167),r=e.i(71645),n=e.i(18566);function a(){return"undefined"!=typeof window}function o(){return"production"}function l(){return"development"===((a()?window.vam:o())||"production")}function s(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function i(e){return(0,r.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),(0,r.useEffect)(()=>{!function(e={debug:!0}){var t;if(!a())return;!function(e="auto"){if("auto"===e){window.vam=o();return}window.vam=e}(e.mode),window.va||(window.va=function(...e){(window.vaq=window.vaq||[]).push(e)}),e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend));let r=e.scriptSrc?e.scriptSrc:l()?"https://va.vercel-scripts.com/v1/script.debug.js":e.basePath?`${e.basePath}/insights/script.js`:"/_vercel/insights/script.js";if(document.head.querySelector(`script[src*="${r}"]`))return;let n=document.createElement("script");n.src=r,n.defer=!0,n.dataset.sdkn="@vercel/analytics"+(e.framework?`/${e.framework}`:""),n.dataset.sdkv="1.6.1",e.disableAutoTrack&&(n.dataset.disableAutoTrack="1"),e.endpoint?n.dataset.endpoint=e.endpoint:e.basePath&&(n.dataset.endpoint=`${e.basePath}/insights`),e.dsn&&(n.dataset.dsn=e.dsn),n.onerror=()=>{let e=l()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${r}. ${e}`)},l()&&!1===e.debug&&(n.dataset.debug="false"),document.head.appendChild(n)}({framework:e.framework||"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...void 0!==e.route&&{disableAutoTrack:!0},...e})},[]),(0,r.useEffect)(()=>{e.route&&e.path&&function({route:e,path:t}){var r;null==(r=window.va)||r.call(window,"pageview",{route:e,path:t})}({route:e.route,path:e.path})},[e.route,e.path]),null}function u(e){let a,o,l,{route:u,path:c}=(a=(0,n.useParams)(),o=(0,n.useSearchParams)(),l=(0,n.usePathname)(),a?{route:function(e,t){if(!e||!t)return e;let r=e;try{let e=Object.entries(t);for(let[t,n]of e)if(!Array.isArray(n)){let e=s(n);e.test(r)&&(r=r.replace(e,`/[${t}]`))}for(let[t,n]of e)if(Array.isArray(n)){let e=s(n.join("/"));e.test(r)&&(r=r.replace(e,`/[...${t}]`))}return r}catch(t){return e}}(l,Object.keys(a).length?a:Object.fromEntries(o.entries())),path:l}:{route:null,path:l});return r.default.createElement(i,{path:c,route:u,...e,basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}(),framework:"next"})}function c(e){return r.default.createElement(r.Suspense,{fallback:null},r.default.createElement(u,{...e}))}e.s(["Analytics",()=>c])},86608,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(18566),a=e.i(22016),o=e.i(68484);function l(){let e=(0,n.useRouter)(),{login:l,loginWithEmail:s,user:i,status:u}=(0,o.useAuth)(),c=(0,n.useSearchParams)(),[d,f]=(0,r.useState)(""),[p,h]=(0,r.useState)(""),[m,g]=(0,r.useState)(!1),[x,b]=(0,r.useState)(!1),[y,v]=(0,r.useState)(!1),[w,j]=(0,r.useState)(null);if((0,r.useEffect)(()=>{if("authenticated"===u&&i){let t=c.get("next");t?window.location.href=t:"extension"===c.get("source")?e.replace("/dashboard/extension-auth"):e.replace("/dashboard")}},[u,i,e,c]),(0,r.useEffect)(()=>{let e=c.get("error");"google"===e?j("Google sign-in failed. Please try again."):e&&j("Authentication failed. Please try again.")},[c]),"loading"===u)return(0,t.jsx)("div",{className:"min-h-screen w-full flex items-center justify-center bg-white",children:(0,t.jsx)("div",{className:"animate-spin w-8 h-8 border-2 border-purple-600 border-t-transparent rounded-full"})});async function P(t){t.preventDefault(),j(null);let r=d?/^[\w-.]+@[\w-]+\.[a-z]{2,}$/i.test(d)?p?p.length<6?"Password must be at least 6 characters":null:"Password is required":"Enter a valid email":"Email is required";if(r)return void j(r);v(!0);try{await s(d,p),x&&localStorage.setItem("rememberMe","true");let t=c.get("next");t?window.location.href=t:"extension"===c.get("source")?e.push("/dashboard/extension-auth"):e.push("/dashboard")}catch(e){console.error("DEBUG: Login error:",e),j(e.message||"An error occurred. Please try again.")}finally{v(!1)}}return(0,t.jsxs)("div",{className:"min-h-screen w-full flex flex-col lg:flex-row bg-white",children:[(0,t.jsx)("div",{className:"hidden lg:flex lg:w-1/2 relative bg-transparent p-6",children:(0,t.jsxs)("div",{className:"w-full h-full relative rounded-[32px] overflow-hidden",children:[(0,t.jsx)("img",{src:"/log-reg/img1.png",alt:"Login Hero",className:"absolute inset-0 w-full h-full object-cover"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/20 to-transparent"}),(0,t.jsxs)("div",{className:"absolute bottom-0 left-0 p-12 text-white z-10",children:[(0,t.jsx)("h1",{className:"text-5xl font-medium mb-4 font-['Space_Grotesk'] leading-tight",children:"Your Second Brain"}),(0,t.jsx)("p",{className:"text-lg opacity-90 font-['Space_Grotesk'] max-w-md",children:"Your conversations and memory made interexchangable within LLMs"})]})]})}),(0,t.jsx)("div",{className:"flex-1 flex flex-col items-center justify-center px-6 sm:px-12 md:px-20 lg:px-16 xl:px-24 py-12",children:(0,t.jsxs)("div",{className:"w-full max-w-[440px] space-y-8",children:[(0,t.jsxs)("div",{className:"text-center space-y-2",children:[(0,t.jsx)("div",{className:"flex justify-center mb-6",children:(0,t.jsx)("img",{src:"/logomain.png",alt:"Logo",className:"w-12 h-12"})}),(0,t.jsx)("h2",{className:"text-3xl font-semibold text-neutral-900 font-['Space_Grotesk']",children:"Welcome Back"}),(0,t.jsx)("p",{className:"text-neutral-500",children:"Enter your email and password to access your account"})]}),(0,t.jsx)("div",{className:"space-y-3",children:(0,t.jsxs)("button",{onClick:()=>{let e=c.get("next"),t=c.get("source"),r=e||"/dashboard";e||"extension"!==t||(r="/dashboard/extension-auth"),l("google",r)},className:"w-full h-12 flex items-center justify-center gap-3 bg-white border border-neutral-200 rounded-xl hover:bg-neutral-50 transition-colors",children:[(0,t.jsx)("img",{src:"/log-reg/google.png",alt:"Google",className:"w-5 h-5"}),(0,t.jsx)("span",{className:"text-neutral-700 font-medium",children:"Sign in with Google"})]})}),(0,t.jsxs)("div",{className:"relative flex items-center py-2",children:[(0,t.jsx)("div",{className:"flex-grow border-t border-neutral-200"}),(0,t.jsx)("span",{className:"flex-shrink-0 mx-4 text-neutral-400 text-sm",children:"Or continue with email"}),(0,t.jsx)("div",{className:"flex-grow border-t border-neutral-200"})]}),(0,t.jsxs)("form",{onSubmit:P,className:"space-y-5",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("label",{className:"text-sm font-medium text-neutral-700",children:"Email"}),(0,t.jsx)("input",{type:"email",value:d,onChange:e=>f(e.target.value),className:"w-full px-4 py-3 bg-neutral-50 border text-neutral-700 border-neutral-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-purple-500/20 focus:border-purple-500 transition-all",placeholder:"Enter your email"})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("label",{className:"text-sm font-medium text-neutral-700",children:"Password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{type:m?"text":"password",value:p,onChange:e=>h(e.target.value),className:"w-full px-4 py-3 bg-neutral-50 border text-neutral-700 border-neutral-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-purple-500/20 focus:border-purple-500 transition-all pr-12",placeholder:"Enter your password"}),(0,t.jsx)("button",{type:"button",onClick:()=>g(!m),className:"absolute right-4 top-1/2 -translate-y-1/2 text-neutral-400 hover:text-neutral-600",children:(0,t.jsx)("img",{src:m?"/log-reg/eye.png":"/log-reg/hidden.png",alt:"Toggle password",className:"w-5 h-5 opacity-70"})})]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer",children:[(0,t.jsx)("input",{type:"checkbox",checked:x,onChange:e=>b(e.target.checked),className:"w-4 h-4 rounded border-neutral-300 text-purple-600 focus:ring-purple-500"}),(0,t.jsx)("span",{className:"text-sm text-neutral-600",children:"Remember me"})]}),(0,t.jsx)(a.default,{href:`/forgot${c.toString()?"?"+c.toString():""}`,className:"text-sm font-medium text-purple-600 hover:text-purple-700",children:"Forgot Password?"})]}),w&&(0,t.jsx)("div",{className:"p-3 bg-red-50 text-red-600 text-sm rounded-lg text-center",children:w}),(0,t.jsx)("button",{type:"submit",disabled:y,className:"w-full py-3.5 bg-purple-600 hover:bg-purple-700 text-white font-medium rounded-xl transition-all active:scale-[0.98] disabled:opacity-70 disabled:cursor-not-allowed shadow-lg shadow-purple-600/20",children:y?"Signing in...":"Sign In"}),(0,t.jsxs)("p",{className:"text-xs text-center text-neutral-500 mt-4 leading-relaxed px-4",children:["By logging in, you agree to our"," ",(0,t.jsx)(a.default,{href:"/privacy",className:"text-neutral-700 hover:text-purple-600 underline underline-offset-2 transition-colors",children:"Privacy Policy"})," ","and"," ",(0,t.jsx)(a.default,{href:"/terms",className:"text-neutral-700 hover:text-purple-600 underline underline-offset-2 transition-colors",children:"Terms & Conditions"}),"."]})]}),(0,t.jsxs)("p",{className:"text-center text-neutral-600 text-sm",children:["Don't have an account?"," ",(0,t.jsx)(a.default,{href:`/register${c.toString()?"?"+c.toString():""}`,className:"text-purple-600 font-medium hover:underline",children:"Sign Up"})]}),(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)(a.default,{href:"/",className:"text-sm text-neutral-400 hover:text-neutral-600 transition-colors",children:"Back to home"})})]})})]})}e.s(["default",()=>l])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.