1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,74855,16989,e=>{"use strict";e.s(["default",0,function(e){return"string"==typeof e}],74855);let t=e.i(65944).default;e.s(["default",0,t],16989)},65944,e=>{"use strict";var t=e.i(91788);e.s(["default",0,function(e,r){return t.isValidElement(e)&&-1!==r.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)}])},54471,(e,t,r)=>{"use strict";e.i(50461),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getDomainLocale",{enumerable:!0,get:function(){return o}});let a=e.r(70090);function o(t,r,o,n){{let i=e.r(2531).normalizeLocalePath,l=e.r(62205).detectDomainLocale,s=r||i(t,o).detectedLocale,u=l(n,void 0,s);if(u){let e=`http${u.http?"":"s"}://`,r=s===u.defaultLocale?"":`/${s}`;return`${e}${u.domain}${(0,a.normalizePathTrailingSlash)(`${r}${t}`)}`}return!1}}("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)},39149,(e,t,r)=>{"use strict";e.i(50461),Object.defineProperty(r,"__esModule",{value:!0});var a={default:function(){return G},useLinkStatus:function(){return E}};for(var o in a)Object.defineProperty(r,o,{enumerable:!0,get:a[o]});let n=e.r(52456),i=e.r(91398),l=n._(e.r(91788)),s=e.r(60472),u=e.r(71112),c=e.r(28169),p=e.r(89129),d=e.r(14862),f=e.r(25479),h=e.r(71914),g=e.r(54471),y=e.r(44113),m=e.r(63230),v=new Set;function b(e,t,r,a){if(!("u"<typeof window)&&(0,u.isLocalURL)(t)){if(!a.bypassPrefetchedCheck){let o=t+"%"+r+"%"+(void 0!==a.locale?a.locale:"locale"in e?e.locale:void 0);if(v.has(o))return;v.add(o)}e.prefetch(t,r,a).catch(e=>{})}}function k(e){return"string"==typeof e?e:(0,c.formatUrl)(e)}let w=l.default.forwardRef(function(e,t){let r,a,{href:o,as:n,children:c,prefetch:v=null,passHref:w,replace:P,shallow:E,scroll:G,locale:O,onClick:x,onNavigate:C,onMouseEnter:T,onTouchStart:S,legacyBehavior:L=!1,transitionTypes:A,..._}=e;r=c,L&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let N=l.default.useContext(f.RouterContext),j=!1!==v,{href:I,as:M}=l.default.useMemo(()=>{if(!N){let e=k(o);return{href:e,as:n?k(n):e}}let[e,t]=(0,s.resolveHref)(N,o,!0);return{href:e,as:n?(0,s.resolveHref)(N,n):t||e}},[N,o,n]),$=l.default.useRef(I),U=l.default.useRef(M);L&&(a=l.default.Children.only(r));let F=L?a&&"object"==typeof a&&a.ref:t,[D,R,W]=(0,h.useIntersection)({rootMargin:"200px"}),z=l.default.useCallback(e=>{(U.current!==M||$.current!==I)&&(W(),U.current=M,$.current=I),D(e)},[M,I,W,D]),H=(0,m.useMergedRef)(z,F);l.default.useEffect(()=>{!N||R&&j&&b(N,I,M,{bypassPrefetchedCheck:!1,locale:O})},[M,I,R,O,j,N?.locale,N]);let V={ref:H,onClick(e){L||"function"!=typeof x||x(e),L&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(e),!N||e.defaultPrevented||function(e,t,r,a,o,n,i,l,s){let c,{nodeName:p}=e.currentTarget;if(!("A"===p.toUpperCase()&&((c=e.currentTarget.getAttribute("target"))&&"_self"!==c||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))){if(!(0,u.isLocalURL)(r)){o&&(e.preventDefault(),location.replace(r));return}e.preventDefault(),(()=>{if(s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}let e=i??!0;"beforePopState"in t?t[o?"replace":"push"](r,a,{shallow:n,locale:l,scroll:e}):t[o?"replace":"push"](a||r,{scroll:e})})()}}(e,N,I,M,P,E,G,O,C)},onMouseEnter(e){L||"function"!=typeof T||T(e),L&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),N&&b(N,I,M,{locale:O,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){L||"function"!=typeof S||S(e),L&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),N&&b(N,I,M,{locale:O,priority:!0,bypassPrefetchedCheck:!0})}};if((0,p.isAbsoluteUrl)(M))V.href=M;else if(!L||w||"a"===a.type&&!("href"in a.props)){let e=void 0!==O?O:N?.locale;V.href=N?.isLocaleDomain&&(0,g.getDomainLocale)(M,e,N?.locales,N?.domainLocales)||(0,y.addBasePath)((0,d.addLocale)(M,e,N?.defaultLocale))}return L?l.default.cloneElement(a,V):(0,i.jsx)("a",{..._,...V,children:r})}),P=(0,l.createContext)({pending:!1}),E=()=>(0,l.useContext)(P),G=w;("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)},41158,(e,t,r)=>{t.exports=e.r(39149)},2531,(e,t,r)=>{"use strict";e.i(50461),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"normalizeLocalePath",{enumerable:!0,get:function(){return a}});let a=(t,r)=>e.r(92090).normalizeLocalePath(t,r);("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)},71914,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useIntersection",{enumerable:!0,get:function(){return s}});let a=e.r(91788),o=e.r(99604),n="function"==typeof IntersectionObserver,i=new Map,l=[];function s({rootRef:e,rootMargin:t,disabled:r}){let u=r||!n,[c,p]=(0,a.useState)(!1),d=(0,a.useRef)(null),f=(0,a.useCallback)(e=>{d.current=e},[]);return(0,a.useEffect)(()=>{if(n){if(u||c)return;let r=d.current;if(r&&r.tagName)return function(e,t,r){let{id:a,observer:o,elements:n}=function(e){let t,r={root:e.root||null,margin:e.rootMargin||""},a=l.find(e=>e.root===r.root&&e.margin===r.margin);if(a&&(t=i.get(a)))return t;let o=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:o},l.push(r),i.set(r,t),t}(r);return n.set(e,t),o.observe(e),function(){if(n.delete(e),o.unobserve(e),0===n.size){o.disconnect(),i.delete(a);let e=l.findIndex(e=>e.root===a.root&&e.margin===a.margin);e>-1&&l.splice(e,1)}}}(r,e=>e&&p(e),{root:e?.current,rootMargin:t})}else if(!c){let e=(0,o.requestIdleCallback)(()=>p(!0));return()=>(0,o.cancelIdleCallback)(e)}},[u,t,e,c,d.current]),[f,c,(0,a.useCallback)(()=>{p(!1)},[])]}("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)},89129,(e,t,r)=>{"use strict";e.i(50461),Object.defineProperty(r,"__esModule",{value:!0});var a={DecodeError:function(){return m},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return k},NormalizeError:function(){return v},PageNotFoundError:function(){return b},SP:function(){return g},ST:function(){return y},WEB_VITALS:function(){return n},execOnce:function(){return i},getDisplayName:function(){return p},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return s},isResSent:function(){return d},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return f},stringifyError:function(){return P}};for(var o in a)Object.defineProperty(r,o,{enumerable:!0,get:a[o]});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...a)=>(r||(r=!0,t=e(...a)),t)}let l=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&l.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 p(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function d(e){return e.finished||e.headersSent}function f(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 a=await e.getInitialProps(t);if(r&&d(r))return a;if(!a)throw Object.defineProperty(Error(`"${p(e)}.getInitialProps()" should resolve to an object. But found "${a}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return a}let g="u">typeof performance,y=g&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class m extends Error{}class v extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}
1class k 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 P(e){return JSON.stringify({message:e.message,stack:e.stack})}},58678,(e,t,r)=>{t.exports=e.r(80963)},76025,e=>{"use strict";var t=e.i(91788),r=e.i(58678);function a(){return(a=Object.assign.bind()).apply(this,arguments)}function o(e,t){if(null==e)return{};var r,a,o={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(o[r]=e[r]);return o}var n=["keyOverride"],i=["crossOrigin"],l={templateTitle:"",noindex:!1,nofollow:!1,norobots:!1,defaultOpenGraphImageWidth:0,defaultOpenGraphImageHeight:0,defaultOpenGraphVideoWidth:0,defaultOpenGraphVideoHeight:0},s=function(e,r,a){void 0===r&&(r=[]);var o=void 0===a?{}:a,n=o.defaultWidth,i=o.defaultHeight;return r.reduce(function(r,a,o){return r.push(t.default.createElement("meta",{key:"og:"+e+":0"+o,property:"og:"+e,content:a.url})),a.alt&&r.push(t.default.createElement("meta",{key:"og:"+e+":alt0"+o,property:"og:"+e+":alt",content:a.alt})),a.secureUrl&&r.push(t.default.createElement("meta",{key:"og:"+e+":secure_url0"+o,property:"og:"+e+":secure_url",content:a.secureUrl.toString()})),a.type&&r.push(t.default.createElement("meta",{key:"og:"+e+":type0"+o,property:"og:"+e+":type",content:a.type.toString()})),a.width?r.push(t.default.createElement("meta",{key:"og:"+e+":width0"+o,property:"og:"+e+":width",content:a.width.toString()})):n&&r.push(t.default.createElement("meta",{key:"og:"+e+":width0"+o,property:"og:"+e+":width",content:n.toString()})),a.height?r.push(t.default.createElement("meta",{key:"og:"+e+":height"+o,property:"og:"+e+":height",content:a.height.toString()})):i&&r.push(t.default.createElement("meta",{key:"og:"+e+":height"+o,property:"og:"+e+":height",content:i.toString()})),r},[])},u=function(e){var r,u,c,p,d,f=[];e.titleTemplate&&(l.templateTitle=e.titleTemplate);var h="";e.title?(h=e.title,l.templateTitle&&(h=l.templateTitle.replace(/%s/g,function(){return h}))):e.defaultTitle&&(h=e.defaultTitle),h&&f.push(t.default.createElement("title",{key:"title"},h));var g=void 0===e.noindex?l.noindex||e.dangerouslySetAllPagesToNoIndex:e.noindex,y=void 0===e.nofollow?l.nofollow||e.dangerouslySetAllPagesToNoFollow:e.nofollow,m=e.norobots||l.norobots,v="";if(e.robotsProps){var b=e.robotsProps,k=b.nosnippet,w=b.maxSnippet,P=b.maxImagePreview,E=b.maxVideoPreview,G=b.noarchive,O=b.noimageindex,x=b.notranslate,C=b.unavailableAfter;v=(k?",nosnippet":"")+(w?",max-snippet:"+w:"")+(P?",max-image-preview:"+P:"")+(G?",noarchive":"")+(C?",unavailable_after:"+C:"")+(O?",noimageindex":"")+(E?",max-video-preview:"+E:"")+(x?",notranslate":"")}if(e.norobots&&(l.norobots=!0),g||y?(e.dangerouslySetAllPagesToNoIndex&&(l.noindex=!0),e.dangerouslySetAllPagesToNoFollow&&(l.nofollow=!0),f.push(t.default.createElement("meta",{key:"robots",name:"robots",content:(g?"noindex":"index")+","+(y?"nofollow":"follow")+v}))):(!m||v)&&f.push(t.default.createElement("meta",{key:"robots",name:"robots",content:"index,follow"+v})),e.description&&f.push(t.default.createElement("meta",{key:"description",name:"description",content:e.description})),e.themeColor&&f.push(t.default.createElement("meta",{key:"theme-color",name:"theme-color",content:e.themeColor})),e.mobileAlternate&&f.push(t.default.createElement("link",{rel:"alternate",key:"mobileAlternate",media:e.mobileAlternate.media,href:e.mobileAlternate.href})),e.languageAlternates&&e.languageAlternates.length>0&&e.languageAlternates.forEach(function(e){f.push(t.default.createElement("link",{rel:"alternate",key:"languageAlternate-"+e.hrefLang,hrefLang:e.hrefLang,href:e.href}))}),e.twitter&&(e.twitter.cardType&&f.push(t.default.createElement("meta",{key:"twitter:card",name:"twitter:card",content:e.twitter.cardType})),e.twitter.site&&f.push(t.default.createElement("meta",{key:"twitter:site",name:"twitter:site",content:e.twitter.site})),e.twitter.handle&&f.push(t.default.createElement("meta",{key:"twitter:creator",name:"twitter:creator",content:e.twitter.handle}))),e.facebook&&e.facebook.appId&&f.push(t.default.createElement("meta",{key:"fb:app_id",property:"fb:app_id",content:e.facebook.appId})),(null!=(r=e.openGraph)&&r.title||h)&&f.push(t.default.createElement("meta",{key:"og:title",property:"og:title",content:(null==(p=e.openGraph)?void 0:p.title)||h})),(null!=(u=e.openGraph)&&u.description||e.description)&&f.push(t.default.createElement("meta",{key:"og:description",property:"og:description",content:(null==(d=e.openGraph)?void 0:d.description)||e.description})),e.openGraph){if((e.openGraph.url||e.canonical)&&f.push(t.default.createElement("meta",{key:"og:url",property:"og:url",content:e.openGraph.url||e.canonical})),e.openGraph.type){var T=e.openGraph.type.toLowerCase();f.push(t.default.createElement("meta",{key:"og:type",property:"og:type",content:T})),"profile"===T&&e.openGraph.profile?(e.openGraph.profile.firstName&&f.push(t.default.createElement("meta",{key:"profile:first_name",property:"profile:first_name",content:e.openGraph.profile.firstName})),e.openGraph.profile.lastName&&f.push(t.default.createElement("meta",{key:"profile:last_name",property:"profile:last_name",content:e.openGraph.profile.lastName})),e.openGraph.profile.username&&f.push(t.default.createElement("meta",{key:"profile:username",property:"profile:username",content:e.openGraph.profile.username})),e.openGraph.profile.gender&&f.push(t.default.createElement("meta",{key:"profile:gender",property:"profile:gender",content:e.openGraph.profile.gender}))):"book"===T&&e.openGraph.book?(e.openGraph.book.authors&&e.openGraph.book.authors.length&&e.openGraph.book.authors.forEac
1h(function(e,r){f.push(t.default.createElement("meta",{key:"book:author:0"+r,property:"book:author",content:e}))}),e.openGraph.book.isbn&&f.push(t.default.createElement("meta",{key:"book:isbn",property:"book:isbn",content:e.openGraph.book.isbn})),e.openGraph.book.releaseDate&&f.push(t.default.createElement("meta",{key:"book:release_date",property:"book:release_date",content:e.openGraph.book.releaseDate})),e.openGraph.book.tags&&e.openGraph.book.tags.length&&e.openGraph.book.tags.forEach(function(e,r){f.push(t.default.createElement("meta",{key:"book:tag:0"+r,property:"book:tag",content:e}))})):"article"===T&&e.openGraph.article?(e.openGraph.article.publishedTime&&f.push(t.default.createElement("meta",{key:"article:published_time",property:"article:published_time",content:e.openGraph.article.publishedTime})),e.openGraph.article.modifiedTime&&f.push(t.default.createElement("meta",{key:"article:modified_time",property:"article:modified_time",content:e.openGraph.article.modifiedTime})),e.openGraph.article.expirationTime&&f.push(t.default.createElement("meta",{key:"article:expiration_time",property:"article:expiration_time",content:e.openGraph.article.expirationTime})),e.openGraph.article.authors&&e.openGraph.article.authors.length&&e.openGraph.article.authors.forEach(function(e,r){f.push(t.default.createElement("meta",{key:"article:author:0"+r,property:"article:author",content:e}))}),e.openGraph.article.section&&f.push(t.default.createElement("meta",{key:"article:section",property:"article:section",content:e.openGraph.article.section})),e.openGraph.article.tags&&e.openGraph.article.tags.length&&e.openGraph.article.tags.forEach(function(e,r){f.push(t.default.createElement("meta",{key:"article:tag:0"+r,property:"article:tag",content:e}))})):("video.movie"===T||"video.episode"===T||"video.tv_show"===T||"video.other"===T)&&e.openGraph.video&&(e.openGraph.video.actors&&e.openGraph.video.actors.length&&e.openGraph.video.actors.forEach(function(e,r){e.profile&&f.push(t.default.createElement("meta",{key:"video:actor:0"+r,property:"video:actor",content:e.profile})),e.role&&f.push(t.default.createElement("meta",{key:"video:actor:role:0"+r,property:"video:actor:role",content:e.role}))}),e.openGraph.video.directors&&e.openGraph.video.directors.length&&e.openGraph.video.directors.forEach(function(e,r){f.push(t.default.createElement("meta",{key:"video:director:0"+r,property:"video:director",content:e}))}),e.openGraph.video.writers&&e.openGraph.video.writers.length&&e.openGraph.video.writers.forEach(function(e,r){f.push(t.default.createElement("meta",{key:"video:writer:0"+r,property:"video:writer",content:e}))}),e.openGraph.video.duration&&f.push(t.default.createElement("meta",{key:"video:duration",property:"video:duration",content:e.openGraph.video.duration.toString()})),e.openGraph.video.releaseDate&&f.push(t.default.createElement("meta",{key:"video:release_date",property:"video:release_date",content:e.openGraph.video.releaseDate})),e.openGraph.video.tags&&e.openGraph.video.tags.length&&e.openGraph.video.tags.forEac
1h(function(e,r){f.push(t.default.createElement("meta",{key:"video:tag:0"+r,property:"video:tag",content:e}))}),e.openGraph.video.series&&f.push(t.default.createElement("meta",{key:"video:series",property:"video:series",content:e.openGraph.video.series})))}e.defaultOpenGraphImageWidth&&(l.defaultOpenGraphImageWidth=e.defaultOpenGraphImageWidth),e.defaultOpenGraphImageHeight&&(l.defaultOpenGraphImageHeight=e.defaultOpenGraphImageHeight),e.openGraph.images&&e.openGraph.images.length&&f.push.apply(f,s("image",e.openGraph.images,{defaultWidth:l.defaultOpenGraphImageWidth,defaultHeight:l.defaultOpenGraphImageHeight})),e.defaultOpenGraphVideoWidth&&(l.defaultOpenGraphVideoWidth=e.defaultOpenGraphVideoWidth),e.defaultOpenGraphVideoHeight&&(l.defaultOpenGraphVideoHeight=e.defaultOpenGraphVideoHeight),e.openGraph.videos&&e.openGraph.videos.length&&f.push.apply(f,s("video",e.openGraph.videos,{defaultWidth:l.defaultOpenGraphVideoWidth,defaultHeight:l.defaultOpenGraphVideoHeight})),e.openGraph.audio&&f.push.apply(f,s("audio",e.openGraph.audio)),e.openGraph.locale&&f.push(t.default.createElement("meta",{key:"og:locale",property:"og:locale",content:e.openGraph.locale})),(e.openGraph.siteName||e.openGraph.site_name)&&f.push(t.default.createElement("meta",{key:"og:site_name",property:"og:site_name",content:e.openGraph.siteName||e.openGraph.site_name}))}return e.canonical&&f.push(t.default.createElement("link",{rel:"canonical",href:e.canonical,key:"canonical"})),e.additionalMetaTags&&e.additionalMetaTags.length>0&&e.additionalMetaTags.forEach(function(e){var r,i,l=e.keyOverride,s=o(e,n);f.push(t.default.createElement("meta",a({key:"meta:"+(null!=(r=null!=(i=null!=l?l:s.name)?i:s.property)?r:s.httpEquiv)},s)))}),null!=(c=e.additionalLinkTags)&&c.length&&e.additionalLinkTags.forEach(function(e){var r,n=e.crossOrigin,l=o(e,i);f.push(t.default.createElement("link",a({key:"link"+(null!=(r=l.keyOverride)?r:l.href)+l.rel},l,{crossOrigin:"anonymous"===n||"use-credentials"===n||""===n?n:void 0})))}),f},c=function(e){return t.default.createElement(r.default,null,u(e))},p=function(e,t){var r=t;return Array.isArray(r)&&1===r.length&&(r=a({},t[0])),{__html:JSON.stringify(Array.isArray(r)?r.map(function(t){return d(e,t)}):d(e,r),y)}},d=function(e,t){var r=t.id,o=a({},(void 0===r?void 0:r)?{"@id":t.id}:{},t);return delete o.id,a({"@context":"https://schema.org","@type":e},o)},f=Object.freeze({"&":"&","<":"<",">":">",'"':""","'":"'"}),h=RegExp("["+Object.keys(f).join("")+"]","g"),g=function(e){return f[e]},y=function(e,t){switch(typeof t){case"object":if(null===t)return;return t;case"number":case"boolean":case"bigint":return t;case"string":return t.replace(h,g);default:return}},m=["type","keyOverride","scriptKey","scriptId","dataArray","useAppDir"];function v(e){var n=e.type,i=void 0===n?"Thing":n,l=e.keyOverride,s=e.scriptKey,u=e.scriptId,c=void 0===u?void 0:u,d=e.dataArray,f=e.useAppDir,h=o(e,m),g=function(){return t.default.createElement("script",{type:"application/ld+json",id:c,"data-testid":c,dangerouslySetInnerHTML:p(i,void 0===d?a({},h):d),key:"jsonld-"+s+(l?"-"+l:"")})};return void 0!==f&&f?t.default.createElement(g,null):t.default.createElement(r.default,null,g())}function b(e){if("string"==typeof e)return{"@type":"Person",name:e};if(e.name){var t;return{"@type":null!=(t=null==e?void 0:e.type)?t:"Person",name:e.name,url:null==e?void 0:e.url}}}function k(e){return"string"==typeof e?e:a({"@type":"PostalAddress"},e)}function w(e){if(e)return a({},e,{"@type":"CreativeWork"})}var P=["type","keyOverride","hasPart"],E=["type","keyOverride","address","contactPoints","contactPoint"],G=["type","keyOverride","url","title","images","datePublished","dateModified","authorName","publisherName","publisherL
1ogo","description","isAccessibleForFree"];e.s(["ArticleJsonLd",0,function(e){var r=e.type,n=e.keyOverride,i=e.url,l=e.title,s=e.images,u=e.datePublished,c=e.dateModified,p=e.authorName,d=e.publisherName,f=e.publisherLogo,h=e.description,g=e.isAccessibleForFree,y=o(e,G),m=a({datePublished:u,description:h,mainEntityOfPage:{"@type":"WebPage","@id":i},headline:l,image:s,dateModified:c||u,author:Array.isArray(p)?p.map(function(e){return b(e)}).filter(function(e){return!!e}):p?b(p):void 0,publisher:function(e,t){if(e)return{"@type":"Organization",name:e,logo:function(e){if(e)return{"@type":"ImageObject",url:e}}(t)}}(void 0===d?void 0:d,void 0===f?void 0:f),isAccessibleForFree:g},y);return t.default.createElement(v,a({type:void 0===r?"Article":r,keyOverride:n},m,{scriptKey:"article"}))},"CollectionPageJsonLd",0,function(e){var r=e.type,n=e.keyOverride,i=e.hasPart,l=o(e,P),s=a({},l,{hasPart:i.map(w)});return t.default.createElement(v,a({type:void 0===r?"CollectionPage":r,keyOverride:n},s,{scriptKey:"CollectionPage"}))},"DefaultSeo",0,function(e){var r=e.title,a=e.titleTemplate,o=e.defaultTitle,n=e.themeColor,i=e.dangerouslySetAllPagesToNoIndex,l=e.dangerouslySetAllPagesToNoFollow,s=e.description,u=e.canonical,p=e.facebook,d=e.openGraph,f=e.additionalMetaTags,h=e.twitter,g=e.defaultOpenGraphImageWidth,y=e.defaultOpenGraphImageHeight,m=e.defaultOpenGraphVideoWidth,v=e.defaultOpenGraphVideoHeight,b=e.mobileAlternate,k=e.languageAlternates,w=e.additionalLinkTags,P=e.robotsProps,E=e.norobots;return t.default.createElement(c,{title:r,titleTemplate:a,defaultTitle:o,themeColor:n,dangerouslySetAllPagesToNoIndex:void 0!==i&&i,dangerouslySetAllPagesToNoFollow:void 0!==l&&l,description:s,canonical:u,facebook:p,openGraph:d,additionalMetaTags:f,twitter:h,defaultOpenGraphImageWidth:g,defaultOpenGraphImageHeight:y,defaultOpenGraphVideoWidth:m,defaultOpenGraphVideoHeight:v,mobileAlternate:b,languageAlternates:k,additionalLinkTags:w,robotsProps:P,norobots:E})},"NextSeo",0,function(e){var r=e.title,a=e.themeColor,o=e.noindex,n=e.nofollow,i=e.robotsProps,l=e.description,s=e.canonical,u=e.openGraph,p=e.facebook,d=e.twitter,f=e.additionalMetaTags,h=e.titleTemplate,g=e.defaultTitle,y=e.mobileAlternate,m=e.languageAlternates,v=e.additionalLinkTags;return t.default.createElement(t.default.Fragment,null,t.default.createElement(c,{title:r,themeColor:a,noindex:o,nofollow:n,robotsProps:i,description:l,canonical:s,facebook:p,openGraph:u,additionalMetaTags:f,twitter:d,titleTemplate:h,defaultTitle:g,mobileAlternate:y,languageAlternates:m,additionalLinkTags:v}))},"OrganizationJsonLd",0,function(e){var r=e.type,n=e.keyOverride,i=e.address,l=e.contactPoints,s=e.contactPoint,u=o(e,E),c=a({},u,{address:function(e){if(e)return Array.isArray(e)?1===e.length?k(e[0]):e.map(k):k(e)}(i),contactPoint:function(e){if(e&&e.length)return e.map(function(e){return a({"@type":"ContactPoint"},e)})}(s||l)});return t.default.createElement(v,a({type:void 0===r?"Organization":r,keyOverride:n},c,{scriptKey:"organization"}))}])},14148,85291,69392,e=>{"use strict";var t=e.i(91398),r=e.i(41158),a=e.i(91788),o=e.i(56206),n=e.i(3060),i=e.i(961);function l(e){try{return e.matches(":focus-visible")}catch(e){}return!1}e.s(["default",0,l],85291);var s=e.i(64107),u=e.i(80445),c=e.i(51221),p=e.i(90117),d=e.i(54723),f=e.i(95724),h=e.i(15871),g=e.i(13149),y=e.i(46739);function m(e){return(0,y.default)("MuiLink",e)}let v=(0,g.default)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var b=e.i(43732);let k={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},w=(0,u.styled)(h.default,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`underline${(0,s.default)(r.underline)}`],"button"===r.component&&t.button]}})((0,p.default)(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:t})=>"always"===e&&"inherit"!==t.color,style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter((0,d.default)()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainCh
1annel} / 0.4)`:(0,n.alpha)(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,n.alpha)(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:(0,n.alpha)(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${v.focusVisible}`]:{outline:"auto"}}}]}))),P=a.forwardRef(function(e,r){let u=(0,f.useDefaultProps)({props:e,name:"MuiLink"}),p=(0,c.useTheme)(),{className:d,color:h="primary",component:g="a",onBlur:y,onFocus:v,TypographyClasses:P,underline:E="always",variant:G="inherit",sx:O,...x}=u,[C,T]=a.useState(!1),S={...u,color:h,component:g,focusVisible:C,underline:E,variant:G},L=(e=>{let{classes:t,component:r,focusVisible:a,underline:o}=e,n={root:["root",`underline${(0,s.default)(o)}`,"button"===r&&"button",a&&"focusVisible"]};return(0,i.default)(n,m,t)})(S);return(0,t.jsx)(w,{color:h,className:(0,o.default)(L.root,d),classes:P,component:g,onBlur:e=>{l(e.target)||T(!1),y&&y(e)},onFocus:e=>{l(e.target)&&T(!0),v&&v(e)},ref:r,ownerState:S,variant:G,...x,sx:[...void 0===k[h]?[{color:h}]:[],...Array.isArray(O)?O:[O]],style:{...x.style,..."always"===E&&"inherit"!==h&&!k[h]&&{"--Link-underlineColor":(({theme:e,ownerState:t})=>{let r=t.color,a=(0,b.getPath)(e,`palette.${r}.main`,!1)||(0,b.getPath)(e,`palette.${r}`,!1)||t.color,o=(0,b.getPath)(e,`palette.${r}.mainChannel`)||(0,b.getPath)(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:(0,n.alpha)(a,.4)})({theme:p,ownerState:S})}}})});e.s(["Link",0,P],69392),e.s(["default",0,function({href:e,color:a,children:o,target:n,rel:i,underline:l,variant:s,sx:u}){return(0,t.jsx)(P,{component:r.default,href:e,color:a,target:n,rel:i,underline:l,variant:s,sx:u,children:o})}],14148)},62752,e=>{"use strict";var t=e.i(91398),r=e.i(91788);e.i(64376);var a=e.i(67853),a=a,o=a,n=a,i=a,l=a,s=a,u=a,c=a,p=e.i(30031),d=e.i(43504);let f=()=>(0,p.createDefaultUserProfile)("",""),h=(e,t)=>{switch(t.type){case"authRequest":return{...e,loading:!0,error:void 0,message:void 0};case"authStateChanged":return{...e,user:t.user,status:"logged",message:t.message,loading:!1,error:void 0};case"authError":return{...e,error:t.error,status:"non-logged",loading:!1,user:void 0};case"signOut":return{...e,user:void 0,status:"non-logged",loading:!1,error:void 0,message:void 0,userProfile:f()};case"setUserProfile":return{...e,userProfile:t.userProfile,profileLoading:!1,message:void 0};case"profileLoadStarted":return{...e,profileLoading:!0};case"networkError":return{...e,networkError:!0,error:t.error,loading:!1,profileLoading:!1};case"sessionExpired":return{...e,sessionExpired:!0,user:void 0,status:"non-logged",error:"Your session has expired. Please log in again.",loading:!1,profileLoading:!1,userProfile:f()};case"clearMessages":return{...e,error:void 0,message:void 0}}},g=e=>{if(!(e instanceof Error))return"An unexpected error occurred. Please try again.";switch(e.code){case"auth/invalid-email":return"Please enter a valid email address.";case"auth/user-disabled":return"This account has been disabled. Please contact support.";case"auth/user-not-found":return"No account found with this email address.";case"auth/wrong-password":return"Incorrect password. Please try again.";case"auth/email-already-in-use":return"An account with this email already exists.";case"auth/weak-password":return"Password is too weak. Please use at least 6 characters with uppercase and lowercase letters.";case"auth/operation-not-allowed":return"This sign-in method is not enabled. Please contact support.";case"auth/account-exists-with-different-credential":return"An account already exists with the same email but different sign-in method.";case"auth/invalid-credential":return"Invalid credentials. Please try again.";case"auth/popup-closed-by-user":case"auth/redirect-cancelled-by-user":return"Sign-in was cancelled. Please try again.";case"auth/popup-blocked":return"Sign-in was blocked. Please try again.";case"auth/network-request-failed":return"Network error. Please check your connection and try again.";case"auth/too-many-requests":return"Too many failed attempts. Please try again later.";case"auth/requires-recent-login":return"Please log in again to complete this action.";default:if(e.message.includes("network"))return"Network error. Please check your connection and try again.";if(e.message.includes("session"))return"Your session has expired. Please log in again.";return e.message||"An error occurred. Please try again."}},y=e=>e instanceof Error&&("auth/network-request-failed"===e.code||e.message.includes("network")||e.message.includes("fetch")||e.message.includes("connection"));var m=e.i(3828);let v=r.default.createContext({message:void 0,error:void 0,user:void 0,loading:!1,profileLoading:!1,networkError:!1,sessionExpired:!1,status:"non-logged",userProfile:(0,p.createDefaultUserProfile)("",""),signUp:async()=>!1,signIn:async()=>!1,signOut:async()=>!1,signInWithGoogle:async()=>!1,signInWithFacebook:async()=>!1,sendPasswordResetEmail:async()=>!1,updateUserProfile:()=>{},loadUserProfile:async()=>{},saveUserProfile:async()=>{},cleanUserProfile:()=>{},updateActionState:async()=>!1,clearError:()=>{},retryLastOperation:async()=>{}});e.s(["FirebaseContext",0,v,"FirebaseProvider",0,({children:e})=>{let{pathname:f}=(0,m.useRouter)(),b=f?.startsWith("/profile"),k=(0,r.useRef)(void 0),w=(0,r.useRef)(!1),[P,E]=(0,r.useReducer)(h,{message:void 0,error:void 0,user:void 0,loading:!1,profileLoading:!1,networkError:!1,sessionExpired:!1,status:"non-logged",userProfile:(0,p.createDefaultUserProfile)("","")}),G=(0,r.useCallback)(e=>E({type:"setUserProfile",userProfile:e}),[]),O=(0,r.useCallback)(()=>
1{if(k.current)return k.current;try{let e=(0,p.initializeFirebase)();return k.current=e,(0,u.x)(e.auth,async t=>{if(t){if(!w.current)try{let e=await t.getIdToken();await fetch(`${window.location.origin}/api/auth/session/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idToken:e})})}catch(e){console.error("Failed to refresh session cookie:",e)}E({type:"authStateChanged",user:t,message:`Welcome back ${t.email}`}),E({type:"profileLoadStarted"});try{let r=await (0,p.loadUserFirebaseProfile)(e.store,t.uid);G(r)}catch(e){console.error("Profile load failed:",e)}}else try{(await fetch(`${window.location.origin}/api/auth/verify`)).ok||E({type:"signOut"})}catch{E({type:"signOut"})}}),e}catch(e){console.error("Firebase initialization error:",e),E({type:"authError",error:"Error initializing authentication"});return}},[G]),x=(0,r.useCallback)(async e=>{E({type:"authRequest"}),w.current=!0;try{let t=(await e()).user,r=await t.getIdToken(),a=await fetch(`${window.location.origin}/api/auth/session/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idToken:r})});if(!a.ok){let e=await a.json().catch(()=>({}));throw Error(e.error||"Failed to create session")}let o=new URLSearchParams(window.location.search).get("redirect"),n="/profile/home";if(o){let e=o.replace(/\/$/,"");e.startsWith("/")&&!e.startsWith("//")&&(n=e)}return window.location.href=n,!0}catch(t){w.current=!1;let e=g(t);return y(t)?E({type:"networkError",error:e}):E({type:"authError",error:e}),!1}},[]),C=(0,r.useCallback)(async(e,t)=>{let r=k.current||O();if(!r)return E({type:"authError",error:"Authentication not initialized"}),!1;try{let o=(await (0,a.ab)(r.auth,e,t)).user;await (0,p.initializeNewUser)(r.store,o.uid,e);let n=await o.getIdToken(),i=await fetch(`${window.location.origin}/api/auth/session/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idToken:n})});if(!i.ok){let e=await i.json().catch(()=>({}));throw Error(e.error||"Failed to create session")}let l=new URLSearchParams(window.location.search).get("redirect"),s="/profile/home";if(l){let e=l.replace(/\/$/,"");e.startsWith("/")&&!e.startsWith("//")&&(s=e)}return window.location.href=s,!0}catch(t){let e=g(t);return y(t)?E({type:"networkError",error:e}):E({type:"authError",error:e}),!1}},[O]),T=(0,r.useCallback)(async(e,t)=>{let r=k.current||O();return void 0!==r&&await x(()=>(0,o.ac)(r.auth,e,t))},[O,x]),S=(0,r.useCallback)(async()=>{let e=k.current||O();if(void 0===e)return!1;let t=new i.Y;return await x(()=>(0,s.d)(e.auth,t))},[O,x]),L=(0,r.useCallback)(async()=>{let e=k.current||O();if(void 0===e)return!1;let t=new l.X;return await x(()=>(0,s.d)(e.auth,t))},[O,x]),A=(0,r.useCallback)(async()=>{let e=k.current;if(!e)return!1;try{return await (0,n.D)(e.auth),await fetch(`${window.location.origin}/api/auth/logout/`,{method:"POST"}),E({type:"signOut"}),!0}catch(e){return console.error("Sign out error:",e),E({type:"signOut"}),!1}},[]),_=(0,r.useCallback)((e,t)=>{E({type:"setUserProfile",userProfile:{...P.userProfile,[e]:t}})},[P.userProfile]),N=(0,r.useCallback)(async(e,t)=>{G("non-logged"===P.status||void 0===e?(0,d.loadUserLocalStorageProfile)():await (0,p.loadUserFirebaseProfile)(e,t))},[P?.status,G]),j=(0,r.useCallback)(async e=>{if("non-logged"===P.status||void 0===e)(0,d.saveUserLocalStorageProfile)(P.userProfile);else try{let t=P.user;t&&await (0,p.saveUserFirebaseProfile)(e,t.uid,P.userProfile),(0,d.saveUserLocalStorageProfile)(P.userProfile)}catch(e){console.error("Error saving user profile:",e),(0,d.saveUserLocalStorageProfile)(P.userProfile)}},[P?.status,P?.userProfile,P?.user]),I=(0,r.useCallback)(()=>{G((0,p.createDefaultUserProfile)("","")),(0,d.cleanUserLocalStorageProfile)()},[G]),M=(0,r.useCallback)(async e=>{let t=k.current||O();if(void 0===t)return E({type:"authError",error:"Failed to initialize authentication. Please refresh the page."}),!1;E({type:"authRequest"});try{return await (0,c.a6)(t.auth,e),E({type:"authStateChanged",user:P.user,message:"Password reset email sent. Please check your inbox."}),!0}catch(t){let e=g(t);return y(t)?E({type:"networkError",error:e}):E({type:"authError",error:e}),!1}},[O,P.user]),$=(0,r.useCallback)(async(e,t,r)=>{try{let a=await fetch(`${window.location.origin}/api/actions/update`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({actionId:e,toState:t,note:r})});if(!a.ok){if(await a.json().catch(()=>({})),401===a.status)return E({type:"sessionExpired"}),!1;return navigator.onLine||E({type:"networkError",error:"No internet connection. Changes will sync
1when connection is restored."}),!1}let o=await a.json();return o.profile&&G({...P.userProfile,actionsInProgress:o.profile.actionsInProgress,actionsCompleted:o.profile.actionsCompleted,actionsSaved:o.profile.actionsSaved,actionsNotForMe:o.profile.actionsNotForMe,actionsCompletedTiming:o.profile.actionsCompletedTiming,actionsNotes:o.profile.actionsNotes}),!0}catch(e){return(!navigator.onLine||y(e))&&E({type:"networkError",error:"No internet connection. Changes will sync when connection is restored."}),!1}},[P.userProfile,G]),U=(0,r.useCallback)(()=>{E({type:"clearMessages"})},[]),F=(0,r.useCallback)(async()=>{E({type:"clearMessages"})},[]);return((0,r.useEffect)(()=>{b&&O()},[b,O]),b)?(0,t.jsx)(v.Provider,{value:{userProfile:P?.userProfile,updateUserProfile:_,loadUserProfile:N,saveUserProfile:j,cleanUserProfile:I,updateActionState:$,user:P?.user,message:P?.message,error:P?.error,loading:P?.loading,profileLoading:P?.profileLoading,networkError:P?.networkError,sessionExpired:P?.sessionExpired,status:P?.status,signUp:C,signIn:T,signOut:A,signInWithGoogle:S,signInWithFacebook:L,sendPasswordResetEmail:M,clearError:U,retryLastOperation:F},children:e}):(0,t.jsx)(t.Fragment,{children:e})}],62752)}]);
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.