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=>{}},18967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return w},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return E},NormalizeError:function(){return y},PageNotFoundError:function(){return S},SP:function(){return g},ST:function(){return m},WEB_VITALS:function(){return i},execOnce:function(){return a},getDisplayName:function(){return f},getLocationOrigin:function(){return c},getURL:function(){return l},isAbsoluteUrl:function(){return u},isResSent:function(){return d},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return P}};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+\-.]*?:/,u=e=>s.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function l(){let{href:e}=window.location,t=c();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 h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(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:"E1025",enumerable:!1,configurable:!0});return n}let g="u">typeof performance,m=g&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class w extends Error{}class y extends Error{}class S extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class E extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function P(e){return JSON.stringify({message:e.message,stack:e.stack})}},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return u},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 u(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}},89699,e=>{"use strict";var t=e.i(17927),r=e.i(37684);let n=!1,o=null;async function i(){n||(await (0,r.initCSRF)(),o=(0,r.setupAutoRefresh)(),n=!0)}async function a(){let e={"Content-Type":"application/json"};if("u">typeof document){let t=document.cookie.split(";").find(e=>e.trim().startsWith("rendune_session_id="));if(t){let r=t.split("=")[1];e["x-session-id"]=r}let n=await (0,r.getCSRFToken)();n&&(e["X-CSRF-Token"]=n)}try{let{data:{session:r},error:n}=await (0,t.getSupabase)().auth.getSession();r?.access_token&&!n&&(e.Authorization=`Bearer ${r.access_token}`)}catch(e){}return e}e.s(["cleanupCSRF",0,function(){o&&(o(),o=null),n=!1},"getApiHeaders",0,a,"initializeCSRF",0,i])},4012,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(17927),o=e.i(89699),i=e.i(37684);let a=(0,r.createContext)(void 0);e.s(["AuthProvider",0,function({children:e}){let[s,u]=(0,r.useState)(null),[c,l]=(0,r.useState)(!0);(0,r.useEffect)(()=>{(async()=>{try{(0,n.sanitizeAuthStorage)(),await (0,o.initializeCSRF)();let{data:{session:e},error:t}=await n.supabase.auth.getSession();t&&console.error("Error getting session:",t),u(e?.user??null),l(!1)}catch(e){console.error("Error in getInitialSession:",e),l(!1)}})();let{data:{subscription:e}}=n.supabase.auth.onAuthStateChange(async(e,t)=>{u(t?.user??null),l(!1),("SIGNED_IN"===e||"TOKEN_REFRESHED"===e)&&await (0,i.refreshCSRFToken)()});return()=>{e.unsubscribe(),(0,o.cleanupCSRF)()}},[]);let f=async()=>{try{let{data:{session:e}}=await n.supabase.auth.getSession();e?.user&&localStorage.setItem("anonymous_session_id",e.user.id);let t=window.location.pathname+window.location.search;localStorage.setItem("auth_redirect_url",t);let{data:r,error:o}=await n.supabase.auth.signInWithOAuth({provider:"google",options:{redirectTo:`${window.location.origin}/auth/callback`}});if(o)throw console.error("Error signing in with Google:",o),o;return r}catch(e){throw console.error("Google sign-in failed:",e),e}},d=async()=>{try{(0,i.clearCSRFToken)(),localStorage.clear(),sessionStorage.clear(),document.cookie.split(";
1").forEach(e=>{let t=e.indexOf("="),r=t>-1?e.substr(0,t):e;document.cookie=r+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/",document.cookie=r+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain="+window.location.hostname,document.cookie=r+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=."+window.location.hostname});let{error:e}=await n.supabase.auth.signOut();if(e)throw console.error("Error signing out:",e),e;window.location.href="/"}catch(e){throw console.error("Sign out failed:",e),window.location.href="/",e}};return(0,t.jsx)(a.Provider,{value:{user:s,loading:c,signInWithGoogle:f,signOut:d,isAuthenticated:!!s},children:e})},"useAuth",0,function(){let e=(0,r.useContext)(a);if(void 0===e)throw Error("useAuth must be used within an AuthProvider");return e}])},11737,e=>{e.v(e=>Promise.resolve().then(()=>e(6085)))}]);
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.