!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e84b8a72-8d94-5ce9-8c0a-fddc7be7fea7")}catch(e){}}(); import{r as a}from"./index-DwaoyV61.js";const c=a.createContext(void 0),m=()=>{const e=a.useContext(c);if(!e)throw new Error("usePage must be used within a PageProvider");return e},u=e=>e?e.replace(/ /g,"+"):"";function i(e,r){const[o,s]=a.useState(()=>{if(typeof window>"u")return r;try{const t=window.localStorage.getItem(e);return t?JSON.parse(t):r}catch(t){return console.error(t),r}});return[o,t=>{try{const n=t instanceof Function?t(o):t;s(n),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(n))}catch(n){console.error(n)}}]}const g=()=>{const[e,r]=i("email",""),o=s=>{r(s)};return[u(e),o]};var d=(e=>(e.SIGNUP_REDIRECTS="signup_redirects",e.EMAIL="email",e))(d||{});export{d as L,c as P,g as a,m as u}; //# sourceMappingURL=local_storage-DRhS2b1Z.js.map //# debugId=e84b8a72-8d94-5ce9-8c0a-fddc7be7fea7