(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[179],{18282:function(e,t){"use strict";function r(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(u){return void r(u)}s.done?t(l):Promise.resolve(l).then(n,o)}t.Z=function(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function s(e){r(i,o,a,s,l,"next",e)}function l(e){r(i,o,a,s,l,"throw",e)}s(void 0)}))}}},59419:function(e,t){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}},99094:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addBasePath=function(e,t){0;return o.normalizePathTrailingSlash(n.addPathPrefix(e,""))};var n=r(6592),o=r(34153);("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},37787:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addLocale=void 0;var n=r(34153);t.addLocale=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a{const t={};e.forEach((e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector(`style[data-href="${e.props["data-href"]}"]`))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}const r=t[e.type]||[];r.push(e),t[e.type]=r}));const r=t.title?t.title[0]:null;let a="";if(r){const{children:e}=r.props;a="string"===typeof e?e:Array.isArray(e)?e.join(""):""}a!==document.title&&(document.title=a),["meta","base","link","style","script"].forEach((e=>{!function(e,t){const r=document.getElementsByTagName("head")[0],a=r.querySelector("meta[name=next-head-count]");0;const i=Number(a.content),s=[];for(let n=0,o=a.previousElementSibling;n{for(let t=0,r=s.length;t{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),u.forEach((e=>r.insertBefore(e,a))),a.content=(i-s.length+u.length).toString()}(e,t[e]||[])}))}}},t.isEqualNode=o,t.DOMAttributeNames=void 0;const r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function n(e){let{type:t,props:n}=e;const o=document.createElement(t);for(const s in n){if(!n.hasOwnProperty(s))continue;if("children"===s||"dangerouslySetInnerHTML"===s)continue;if(void 0===n[s])continue;const e=r[s]||s.toLowerCase();"script"!==t||"async"!==e&&"defer"!==e&&"noModule"!==e?o.setAttribute(e,n[s]):o[e]=!!n[s]}const{children:a,dangerouslySetInnerHTML:i}=n;return i?o.innerHTML=i.__html||"":a&&(o.textContent="string"===typeof a?a:Array.isArray(a)?a.join(""):""),o}function o(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){const r=t.getAttribute("nonce");if(r&&!e.getAttribute("nonce")){const n=t.cloneNode(!0);return n.setAttribute("nonce",""),n.nonce=r,r===e.nonce&&e.isEqualNode(n)}}return e.isEqualNode(t)}t.DOMAttributeNames=r,("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8390:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initialize=function(){return W.apply(this,arguments)},t.hydrate=function(e){return re.apply(this,arguments)},t.emitter=t.router=t.version=void 0;var n=r(18282).Z,o=r(59419).Z,a=r(23903).Z;r(30199).Z;r(11541);var i=a(r(2784)),s=r(4523),l=a(r(82430)),u=r(60950),c=r(82201),d=r(21603),f=r(81980),h=r(70297),p=r(23317),m=a(r(18250)),y=a(r(28746)),g=a(r(37814)),v=r(63499),_=r(25564),P=r(10274),b=r(16618),w=r(39641),S=r(39219);const E=r(17029);let j;t.version="12.3.4",t.router=j;const x=l.default();t.emitter=x;const O=e=>[].slice.call(e);let C,R,L,M,A,T,N,$,I,k,D,B=!1;self.__next_require__=r;class q extends i.default.Component{componentDidCatch(e,t){this.props.fn(e,t)}componentDidMount(){this.scrollToHash(),j.isSsr&&"/404"!==C.page&&"/_error"!==C.page&&(C.isFallback||C.nextExport&&(c.isDynamicRoute(j.pathname)||location.search||B)||C.props&&C.props.__N_SSG&&(location.search||B))&&j.replace(j.pathname+"?"+String(d.assign(d.urlQueryToSearchParams(j.query),new URLSearchParams(location.search))),L,{_h:1,shallow:!C.isFallback&&!B}).catch((e=>{if(!e.cancelled)throw e}))}componentDidUpdate(){this.scrollToHash()}scrollToHash(){let{hash:e}=location;if(e=e&&e.substring(1),!e)return;const t=document.getElementById(e);t&&setTimeout((()=>t.scrollIntoView()),0)}render(){return this.props.children}}function W(){return(W=n((function*(){C=JSON.parse(document.getElementById("__NEXT_DATA__").textContent),window.__NEXT_DATA__=C,R=C.defaultLocale;const e=C.assetPrefix||"";r.p=`${e}/_next/`,f.setConfig({serverRuntimeConfig:{},publicRuntimeConfig:C.runtimeConfig||{}}),L=h.getURL(),S.hasBasePath(L)&&(L=w.removeBasePath(L));{const{normalizeLocalePath:e}=r(49574),{detectDomainLocale:t}=r(96692),{parseRelativeUrl:n}=r(3202),{formatUrl:o}=r(81247);if(C.locales){const r=n(L),a=e(r.pathname,C.locales);a.detectedLocale?(r.pathname=a.pathname,L=o(r)):R=C.locale;const i=t(void 0,window.location.hostname);i&&(R=i.defaultLocale)}}if(C.scriptLoader){const{initScriptLoader:e}=r(38528);e(C.scriptLoader)}M=new y.default(C.buildId,e);const t=e=>{let[t,r]=e;return M.routeLoader.onEntrypoint(t,r)};return window.__NEXT_P&&window.__NEXT_P.map((e=>setTimeout((()=>t(e)),0))),window.__NEXT_P=[],window.__NEXT_P.push=t,T=m.default(),T.getIsSsr=()=>j.isSsr,A=document.getElementById("__next"),{assetPrefix:e}}))).apply(this,arguments)}function H(e,t){return i.default.createElement(e,Object.assign({},t))}function U(e){let{children:t}=e;return i.default.createElement(q,{fn:e=>z({App:I,err:e}).catch((e=>console.error("Error rendering page: ",e)))},i.default.createElement(u.RouterContext.Provider,{value:_.makePublicRouterInstance(j)},i.default.createElement(s.HeadManagerContext.Provider,{value:T},i.default.createElement(b.ImageConfigContext.Provider,{value:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}},t))))}const F=e=>t=>{const r=o({},t,{Component:D,err:C.err,router:j});return i.default.createElement(U,null,H(e,r))};function z(e){let{App:t,err:n}=e;return console.error(n),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),M.loadPage("/_error").then((n=>{let{page:o,styleSheets:a}=n;return(null==N?void 0:N.Component)===o?r.e(5374).then(r.bind(r,25374)).then((n=>r.e(1432).then(r.bind(r,81432)).then((r=>(t=r.default,e.App=t,n))))).then((e=>({ErrorComponent:e.default,styleSheets:[]}))):{ErrorComponent:o,styleSheets:a}})).then((r=>{let{ErrorComponent:a,styleSheets:i}=r;var s;const l=F(t),u={Component:a,AppTree:l,router:j,ctx:{err:n,pathname:C.page,query:C.query,asPath:L,AppTree:l}};return Promise.resolve((null==(s=e.props)?void 0:s.err)?e.props:h.loadGetInitialProps(t,u)).then((t=>Q(o({},e,{err:n,Component:a,styleSheets:i,props:t}))))}))}function Z(e){let{callback:t}=e;return i.default.useLayoutEffect((()=>t()),[t]),null}let G=null,V=!0;function K(){["beforeRender","afterHydrate","afterRender","routeChange"].forEach((e=>performance.clearMarks(e)))}function X(){h.ST&&(performance.mark("afterHydrate"),performance.measure("Next.js-before-hydration","navigationStart","beforeRender"),performance.measure("Next.js-hydration","beforeRender","afterHydrate"),k&&performance.getEntriesByName("Next.js-hydration").forEach(k),K())}function J(){if(!h.ST)return;performance.mark("afterRender");const e=performance.getEntriesByName("routeChange","mark");e.length&&(performance.measure("Next.js-route-change-to-render",e[0].name,"beforeRender"),performance.measure("Next.js-render","beforeRender","afterRender"),k&&(performance.getEntriesByName("Next.js-render").forEach(k),performance.getEntriesByName("Next.js-route-change-to-render").forEach(k)),K(),["Next.js-route-change-to-render","Next.js-render"].forEach((e=>performance.clearMeasures(e))))}function Y(e){let{callbacks:t,children:r}=e;return i.default.useLayoutEffect((()=>t.forEach((e=>e()))),[t]),i.default.useEffect((()=>{g.default(k)}),[]),r}function Q(e){let{App:t,Component:r,props:n,err:a}=e,s="initial"in e?void 0:e.styleSheets;r=r||N.Component,n=n||N.props;const l=o({},n,{Component:r,err:a,router:j});N=l;let u,c=!1;const d=new Promise(((e,t)=>{$&&$(),u=()=>{$=null,e()},$=()=>{c=!0,$=null;const e=new Error("Cancel rendering route");e.cancelled=!0,t(e)}}));function f(){u()}!function(){if(!s)return!1;const e=O(document.querySelectorAll("style[data-n-href]")),t=new Set(e.map((e=>e.getAttribute("data-n-href")))),r=document.querySelector("noscript[data-n-css]"),n=null==r?void 0:r.getAttribute("data-n-css");s.forEach((e=>{let{href:r,text:o}=e;if(!t.has(r)){const e=document.createElement("style");e.setAttribute("data-n-href",r),e.setAttribute("media","x"),n&&e.setAttribute("nonce",n),document.head.appendChild(e),e.appendChild(document.createTextNode(o))}}))}();const m=i.default.createElement(i.default.Fragment,null,i.default.createElement(Z,{callback:function(){if(s&&!c){const e=new Set(s.map((e=>e.href))),t=O(document.querySelectorAll("style[data-n-href]")),r=t.map((e=>e.getAttribute("data-n-href")));for(let o=0;o{let{href:t}=e;const r=document.querySelector(`style[data-n-href="${t}"]`);r&&(n.parentNode.insertBefore(r,n.nextSibling),n=r)})),O(document.querySelectorAll("link[data-n-p]")).forEach((e=>{e.parentNode.removeChild(e)}))}if(e.scroll){const t=document.documentElement,r=t.style.scrollBehavior;t.style.scrollBehavior="auto",window.scrollTo(e.scroll.x,e.scroll.y),t.style.scrollBehavior=r}}}),i.default.createElement(U,null,H(t,l),i.default.createElement(p.Portal,{type:"next-route-announcer"},i.default.createElement(v.RouteAnnouncer,null))));return function(e,t){h.ST&&performance.mark("beforeRender");const r=t(V?X:J);G?(0,i.default.startTransition)((()=>{G.render(r)})):(G=E.hydrateRoot(e,r),V=!1)}(A,(e=>i.default.createElement(Y,{callbacks:[e,f]},m))),d}function ee(e){return te.apply(this,arguments)}function te(){return(te=n((function*(e){if(e.err)yield z(e);else try{yield Q(e)}catch(t){const r=P.getProperError(t);if(r.cancelled)throw r;0,yield z(o({},e,{err:r}))}}))).apply(this,arguments)}function re(){return(re=n((function*(e){let r=C.err;try{const e=yield M.routeLoader.whenEntrypoint("/_app");if("error"in e)throw e.error;const{component:t,exports:r}=e;I=t,r&&r.reportWebVitals&&(k=e=>{let{id:t,name:n,startTime:o,value:a,duration:i,entryType:s,entries:l}=e;const u=`${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`;let c;l&&l.length&&(c=l[0].startTime);const d={id:t||u,name:n,startTime:o||c,value:null==a?i:a,label:"mark"===s||"measure"===s?"custom":"web-vital"};r.reportWebVitals(d)});const n=yield M.routeLoader.whenEntrypoint(C.page);if("error"in n)throw n.error;D=n.component}catch(o){r=P.getProperError(o)}window.__NEXT_PRELOADREADY&&(yield window.__NEXT_PRELOADREADY(C.dynamicIds)),t.router=j=_.createRouter(C.page,C.query,L,{initialProps:C.props,pageLoader:M,App:I,Component:D,wrapApp:F,err:r,isFallback:Boolean(C.isFallback),subscription:(e,t,r)=>ee(Object.assign({},e,{App:t,scroll:r})),locale:C.locale,locales:C.locales,defaultLocale:R,domainLocales:C.domainLocales,isPreview:C.isPreview}),B=yield j._initialMatchesMiddlewarePromise;const n={App:I,initial:!0,Component:D,props:C.props,err:r};(null==e?void 0:e.beforeRender)&&(yield e.beforeRender()),ee(n)}))).apply(this,arguments)}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},67881:function(e,t,r){"use strict";var n=r(8390);window.next={version:n.version,get router(){return n.router},emitter:n.emitter},n.initialize({}).then((()=>n.hydrate())).catch(console.error),("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},34153:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePathTrailingSlash=void 0;var n=r(29288),o=r(35692);t.normalizePathTrailingSlash=e=>{if(!e.startsWith("/"))return e;const{pathname:t,query:r,hash:a}=o.parsePath(e);return/\.[^/]+\/?$/.test(t)?`${n.removeTrailingSlash(t)}${r}${a}`:t.endsWith("/")?`${t}${r}${a}`:`${t}/${r}${a}`},("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28746:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(23903).Z,o=r(99094),a=r(32172),i=n(r(27199)),s=r(37787),l=r(82201),u=r(3202),c=r(29288),d=r(46730);t.default=class{getPageList(){return d.getClientBuildManifest().then((e=>e.sortedPages))}getMiddleware(){{const e=[{regexp:"^(?:\\/(_next\\/data\\/[^/]{1,}))?(?:\\/([^/.]{1,}))(?:\\/((?!api|_next).*))(.json)?[\\/#\\?]?$"},{regexp:"^(?:\\/(_next\\/data\\/[^/]{1,}))?(?:\\/([^/.]{1,}))(|\\.json|\\/?index|\\/?index\\.json)?[\\/#\\?]?$"}];return window.__MIDDLEWARE_MATCHERS=e||void 0,window.__MIDDLEWARE_MATCHERS}}getDataHref(e){const{asPath:t,href:r,locale:n}=e,{pathname:d,query:f,search:h}=u.parseRelativeUrl(r),{pathname:p}=u.parseRelativeUrl(t),m=c.removeTrailingSlash(d);if("/"!==m[0])throw new Error(`Route name should start with a "/", got "${m}"`);return(e=>{const t=i.default(c.removeTrailingSlash(s.addLocale(e,n)),".json");return o.addBasePath(`/_next/data/${this.buildId}${t}${h}`,!0)})(e.skipInterpolation?p:l.isDynamicRoute(m)?a.interpolateAs(d,p,f).result:m)}_isSsg(e){return this.promisedSsgManifest.then((t=>t.has(e)))}loadPage(e){return this.routeLoader.loadRoute(e).then((e=>{if("component"in e)return{page:e.component,mod:e.exports,styleSheets:e.styles.map((e=>({href:e.href,text:e.content})))};throw e.error}))}prefetch(e){return this.routeLoader.prefetch(e)}constructor(e,t){this.routeLoader=d.createRouteLoader(t),this.buildId=e,this.assetPrefix=t,this.promisedSsgManifest=new Promise((e=>{window.__SSG_MANIFEST?e(window.__SSG_MANIFEST):window.__SSG_MANIFEST_CB=()=>{e(window.__SSG_MANIFEST)}}))}},("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},37814:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(86590);location.href;let o,a=!1;function i(e){o&&o(e)}t.default=e=>{o=e,a||(a=!0,n.onCLS(i),n.onFID(i),n.onFCP(i),n.onLCP(i),n.onTTFB(i),n.onINP(i))},("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},23317:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Portal=void 0;var n=r(2784),o=r(28316);t.Portal=e=>{let{children:t,type:r}=e;const[a,i]=n.useState(null);return n.useEffect((()=>{const e=document.createElement(r);return document.body.appendChild(e),i(e),()=>{document.body.removeChild(e)}}),[r]),a?o.createPortal(t,a):null},("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39641:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeBasePath=function(e){0;(e=e.slice("".length)).startsWith("/")||(e=`/${e}`);return e};r(39219);("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15851:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeLocale=function(e,t){{const{pathname:r}=n.parsePath(e),o=r.toLowerCase(),a=null==t?void 0:t.toLowerCase();return t&&(o.startsWith(`/${a}/`)||o===`/${a}`)?`${r.length===t.length+1?"/":""}${e.slice(t.length+1)}`:e}return e};var n=r(35692);("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80564:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cancelIdleCallback=t.requestIdleCallback=void 0;const r="undefined"!==typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)};t.requestIdleCallback=r;const n="undefined"!==typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};t.cancelIdleCallback=n,("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63499:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.RouteAnnouncer=void 0;var n=(0,r(23903).Z)(r(2784)),o=r(25564);const a={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},i=()=>{const{asPath:e}=o.useRouter(),[t,r]=n.default.useState(""),i=n.default.useRef(e);return n.default.useEffect((()=>{if(i.current!==e)if(i.current=e,document.title)r(document.title);else{const n=document.querySelector("h1");var t;const o=null!=(t=null==n?void 0:n.innerText)?t:null==n?void 0:n.textContent;r(o||e)}}),[e]),n.default.createElement("p",{"aria-live":"assertive",id:"__next-route-announcer__",role:"alert",style:a},t)};t.RouteAnnouncer=i;var s=i;t.default=s,("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},46730:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.markAssetError=l,t.isAssetError=function(e){return e&&s in e},t.getClientBuildManifest=c,t.createRouteLoader=function(e){const t=new Map,r=new Map,n=new Map,s=new Map;function c(e){{let t=r.get(e.toString());return t||(document.querySelector(`script[src^="${e}"]`)?Promise.resolve():(r.set(e.toString(),t=function(e,t){return new Promise(((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(l(new Error(`Failed to load script: ${e}`))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)}))}(e)),t))}}function f(e){let t=n.get(e);return t||(n.set(e,t=fetch(e).then((t=>{if(!t.ok)throw new Error(`Failed to load stylesheet: ${e}`);return t.text().then((t=>({href:e,content:t})))})).catch((e=>{throw l(e)}))),t)}return{whenEntrypoint:e=>a(e,t),onEntrypoint(e,r){(r?Promise.resolve().then((()=>r())).then((e=>({component:e&&e.default||e,exports:e})),(e=>({error:e}))):Promise.resolve(void 0)).then((r=>{const n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),s.delete(e))}))},loadRoute(r,n){return a(r,s,(()=>u(d(e,r).then((e=>{let{scripts:n,css:o}=e;return Promise.all([t.has(r)?[]:Promise.all(n.map(c)),Promise.all(o.map(f))])})).then((e=>this.whenEntrypoint(r).then((t=>({entrypoint:t,styles:e[1]}))))),3800,l(new Error(`Route did not complete loading: ${r}`))).then((e=>{let{entrypoint:t,styles:r}=e;const n=Object.assign({styles:r},t);return"error"in t?t:n})).catch((e=>{if(n)throw e;return{error:e}})).finally((()=>{}))))},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():d(e,t).then((e=>Promise.all(i?e.scripts.map((e=>{return t=e.toString(),r="script",new Promise(((e,o)=>{const a=`\n link[rel="prefetch"][href^="${t}"],\n link[rel="preload"][href^="${t}"],\n script[src^="${t}"]`;if(document.querySelector(a))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=o,n.href=t,document.head.appendChild(n)}));var t,r,n})):[]))).then((()=>{o.requestIdleCallback((()=>this.loadRoute(t,!0).catch((()=>{}))))})).catch((()=>{}))}}};(0,r(23903).Z)(r(27199));var n=r(86008),o=r(80564);function a(e,t,r){let n,o=t.get(e);if(o)return"future"in o?o.future:Promise.resolve(o);const a=new Promise((e=>{n=e}));return t.set(e,o={resolve:n,future:a}),r?r().then((e=>(n(e),e))).catch((r=>{throw t.delete(e),r})):a}const i=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(t){return!1}}();const s=Symbol("ASSET_LOAD_ERROR");function l(e){return Object.defineProperty(e,s,{})}function u(e,t,r){return new Promise(((n,a)=>{let i=!1;e.then((e=>{i=!0,n(e)})).catch(a),o.requestIdleCallback((()=>setTimeout((()=>{i||a(r)}),t)))}))}function c(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);return u(new Promise((e=>{const t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}})),3800,l(new Error("Failed to load client build manifest")))}function d(e,t){return c().then((r=>{if(!(t in r))throw l(new Error(`Failed to lookup route: ${t}`));const o=r[t].map((t=>e+"/_next/"+encodeURI(t)));return{scripts:o.filter((e=>e.endsWith(".js"))).map((e=>n.__unsafeCreateTrustedScriptURL(e))),css:o.filter((e=>e.endsWith(".css")))}}))}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25564:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Router",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"withRouter",{enumerable:!0,get:function(){return l.default}}),t.useRouter=function(){return o.default.useContext(i.RouterContext)},t.createRouter=function(){for(var e=arguments.length,t=new Array(e),r=0;re())),u.readyCallbacks=[],u.router},t.makePublicRouterInstance=function(e){const t=e,r={};for(const n of c)"object"!==typeof t[n]?r[n]=t[n]:r[n]=Object.assign(Array.isArray(t[n])?[]:{},t[n]);return r.events=a.default.events,d.forEach((e=>{r[e]=function(){return t[e](...arguments)}})),r},t.default=void 0;var n=r(23903).Z,o=n(r(2784)),a=n(r(32172)),i=r(60950),s=n(r(10274)),l=n(r(52786));const u={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],d=["push","replace","reload","back","prefetch","beforePopState"];function f(){if(!u.router){throw new Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n')}return u.router}Object.defineProperty(u,"events",{get:()=>a.default.events}),c.forEach((e=>{Object.defineProperty(u,e,{get:()=>f()[e]})})),d.forEach((e=>{u[e]=function(){const t=f();return t[e](...arguments)}})),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach((e=>{u.ready((()=>{a.default.events.on(e,(function(){const t=`on${e.charAt(0).toUpperCase()}${e.substring(1)}`,r=u;if(r[t])try{r[t](...arguments)}catch(n){console.error(`Error when running the Router event: ${t}`),console.error(s.default(n)?`${n.message}\n${n.stack}`:n+"")}}))}))}));var h=u;t.default=h,("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38528:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleClientScriptLoad=p,t.initScriptLoader=function(e){e.forEach(p),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach((e=>{const t=e.id||e.getAttribute("src");d.add(t)}))},t.default=void 0;var n=r(59419).Z,o=r(30199).Z,a=r(15154).Z,i=o(r(2784)),s=r(4523),l=r(18250),u=r(80564);const c=new Map,d=new Set,f=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy"],h=e=>{const{src:t,id:r,onLoad:n=(()=>{}),onReady:o=null,dangerouslySetInnerHTML:a,children:i="",strategy:s="afterInteractive",onError:u}=e,h=r||t;if(h&&d.has(h))return;if(c.has(t))return d.add(h),void c.get(t).then(n,u);const p=()=>{o&&o(),d.add(h)},m=document.createElement("script"),y=new Promise(((e,t)=>{m.addEventListener("load",(function(t){e(),n&&n.call(this,t),p()})),m.addEventListener("error",(function(e){t(e)}))})).catch((function(e){u&&u(e)}));a?(m.innerHTML=a.__html||"",p()):i?(m.textContent="string"===typeof i?i:Array.isArray(i)?i.join(""):"",p()):t&&(m.src=t,c.set(t,y));for(const[c,d]of Object.entries(e)){if(void 0===d||f.includes(c))continue;const e=l.DOMAttributeNames[c]||c.toLowerCase();m.setAttribute(e,d)}"worker"===s&&m.setAttribute("type","text/partytown"),m.setAttribute("data-nscript",s),document.body.appendChild(m)};function p(e){const{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",(()=>{u.requestIdleCallback((()=>h(e)))})):h(e)}function m(e){const{id:t,src:r="",onLoad:o=(()=>{}),onReady:l=null,strategy:c="afterInteractive",onError:f}=e,p=a(e,["id","src","onLoad","onReady","strategy","onError"]),{updateScripts:m,scripts:y,getIsSsr:g}=i.useContext(s.HeadManagerContext),v=i.useRef(!1);i.useEffect((()=>{const e=t||r;v.current||(l&&e&&d.has(e)&&l(),v.current=!0)}),[l,t,r]);const _=i.useRef(!1);return i.useEffect((()=>{_.current||("afterInteractive"===c?h(e):"lazyOnload"===c&&function(e){"complete"===document.readyState?u.requestIdleCallback((()=>h(e))):window.addEventListener("load",(()=>{u.requestIdleCallback((()=>h(e)))}))}(e),_.current=!0)}),[e,c]),"beforeInteractive"!==c&&"worker"!==c||(m?(y[c]=(y[c]||[]).concat([n({id:t,src:r,onLoad:o,onReady:l,onError:f},p)]),m(y)):g&&g()?d.add(t||r):g&&!g()&&h(e)),null}Object.defineProperty(m,"__nextScript",{value:!0});var y=m;t.default=y,("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86008:function(e,t){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.__unsafeCreateTrustedScriptURL=function(e){var t;return(null==(t=function(){var e;"undefined"===typeof r&&(r=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null);return r}())?void 0:t.createScriptURL(e))||e},("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52786:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t){return n.default.createElement(e,Object.assign({router:o.useRouter()},t))}t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,!1;return t};var n=(0,r(23903).Z)(r(2784)),o=r(25564);("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38233:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeStringRegexp=function(e){if(r.test(e))return e.replace(n,"\\$&");return e};const r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g},4523:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HeadManagerContext=void 0;const n=(0,r(23903).Z)(r(2784)).default.createContext({});t.HeadManagerContext=n},96692:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detectDomainLocale=function(e,t,r){let n;if(e){r&&(r=r.toLowerCase());for(const i of e){var o,a;const e=null==(o=i.domain)?void 0:o.split(":")[0].toLowerCase();if(t===e||r===i.defaultLocale.toLowerCase()||(null==(a=i.locales)?void 0:a.some((e=>e.toLowerCase()===r)))){n=i;break}}}return n}},49574:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeLocalePath=function(e,t){let r;const n=e.split("/");return(t||[]).some((t=>!(!n[1]||n[1].toLowerCase()!==t.toLowerCase())&&(r=t,n.splice(1,1),e=n.join("/")||"/",!0))),{pathname:e,detectedLocale:r}}},16618:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImageConfigContext=void 0;var n=(0,r(23903).Z)(r(2784)),o=r(84234);const a=n.default.createContext(o.imageConfigDefault);t.ImageConfigContext=a},84234:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.imageConfigDefault=t.VALID_LOADERS=void 0;t.VALID_LOADERS=["default","imgix","cloudinary","akamai","custom"];const r={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",remotePatterns:[],unoptimized:!1};t.imageConfigDefault=r},8282:function(e,t){"use strict";function r(e){return Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getObjectClassLabel=r,t.isPlainObject=function(e){if("[object Object]"!==r(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}},82430:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o{e(...n)}))}}}},84933:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.denormalizePagePath=function(e){let t=o.normalizePathSep(e);return t.startsWith("/index/")&&!n.isDynamicRoute(t)?t.slice(6):"/index"!==t?t:"/"};var n=r(60262),o=r(84749)},84749:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePathSep=function(e){return e.replace(/\\/g,"/")}},60950:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RouterContext=void 0;const n=(0,r(23903).Z)(r(2784)).default.createContext(null);t.RouterContext=n},32172:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchesMiddleware=N,t.isLocalURL=D,t.interpolateAs=B,t.resolveHref=q,t.createKey=J,t.default=void 0;var n=r(18282).Z,o=r(59419).Z,a=r(23903).Z,i=r(30199).Z,s=r(34153),l=r(29288),u=r(46730),c=r(38528),d=i(r(10274)),f=r(84933),h=r(49574),p=a(r(82430)),m=r(70297),y=r(82201),g=r(3202),v=r(21603),_=(a(r(72094)),r(2354)),P=r(12436),b=r(81247),w=r(69205),S=r(35692),E=r(37787),j=r(15851),x=r(39641),O=r(99094),C=r(39219),R=r(99159),L=r(92047),M=r(99104),A=r(10925);function T(){return Object.assign(new Error("Route Cancelled"),{cancelled:!0})}function N(e){return $.apply(this,arguments)}function $(){return($=n((function*(e){const t=yield Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;const{pathname:r}=S.parsePath(e.asPath),n=C.hasBasePath(r)?x.removeBasePath(r):r,o=O.addBasePath(E.addLocale(n,e.locale));return t.some((e=>new RegExp(e.regexp).test(o)))}))).apply(this,arguments)}function I(e){const t=m.getLocationOrigin();return e.startsWith(t)?e.substring(t.length):e}function k(e,t){const r={};return Object.keys(e).forEach((n=>{t.includes(n)||(r[n]=e[n])})),r}function D(e){if(!m.isAbsoluteUrl(e))return!0;try{const t=m.getLocationOrigin(),r=new URL(e,t);return r.origin===t&&C.hasBasePath(r.pathname)}catch(t){return!1}}function B(e,t,r){let n="";const o=P.getRouteRegex(e),a=o.groups,i=(t!==e?_.getRouteMatcher(o)(t):"")||r;n=e;const s=Object.keys(a);return s.every((e=>{let t=i[e]||"";const{repeat:r,optional:o}=a[e];let s=`[${r?"...":""}${e}]`;return o&&(s=`${t?"":"/"}[${s}]`),r&&!Array.isArray(t)&&(t=[t]),(o||e in i)&&(n=n.replace(s,r?t.map((e=>encodeURIComponent(e))).join("/"):encodeURIComponent(t))||"/")}))||(n=""),{params:s,result:n}}function q(e,t,r){let n,o="string"===typeof t?t:b.formatWithValidation(t);const a=o.match(/^[a-zA-Z]{1,}:\/\//),i=a?o.slice(a[0].length):o;if((i.split("?")[0]||"").match(/(\/\/|\\)/)){console.error(`Invalid href passed to next/router: ${o}, repeated forward-slashes (//) or backslashes \\ are not valid in the href`);const e=m.normalizeRepeatedSlashes(i);o=(a?a[0]:"")+e}if(!D(o))return r?[o]:o;try{n=new URL(o.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(l){n=new URL("/","http://n")}try{const e=new URL(o,n);e.pathname=s.normalizePathTrailingSlash(e.pathname);let t="";if(y.isDynamicRoute(e.pathname)&&e.searchParams&&r){const r=v.searchParamsToUrlQuery(e.searchParams),{result:n,params:o}=B(e.pathname,e.pathname,r);n&&(t=b.formatWithValidation({pathname:n,hash:e.hash,query:k(r,o)}))}const a=e.origin===n.origin?e.href.slice(e.origin.length):e.href;return r?[a,t||a]:a}catch(u){return r?[o]:o}}function W(e,t,r){let[n,o]=q(e,t,!0);const a=m.getLocationOrigin(),i=n.startsWith(a),s=o&&o.startsWith(a);n=I(n),o=o?I(o):o;const l=i?n:O.addBasePath(n),u=r?I(q(e,r)):o||n;return{url:l,as:s?u:O.addBasePath(u)}}function H(e,t){const r=l.removeTrailingSlash(f.denormalizePagePath(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some((t=>{if(y.isDynamicRoute(t)&&P.getRouteRegex(t).re.test(r))return e=t,!0})),l.removeTrailingSlash(e))}function U(e){return N(e).then((t=>t&&e.fetchData?e.fetchData().then((t=>function(e,t,r){const n={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:Boolean(!0)},a=t.headers.get("x-nextjs-rewrite");let i=a||t.headers.get("x-nextjs-matched-path");const s=t.headers.get("x-matched-path");if(!s||i||s.includes("__next_data_catchall")||s.includes("/_error")||s.includes("/404")||(i=s),i){if(i.startsWith("/")){const t=g.parseRelativeUrl(i),o=R.getNextPathnameInfo(t.pathname,{nextConfig:n,parseData:!0});let s=l.removeTrailingSlash(o.pathname);return Promise.all([r.router.pageLoader.getPageList(),u.getClientBuildManifest()]).then((n=>{let[i,{__rewrites:l}]=n,u=E.addLocale(o.pathname,o.locale);if(y.isDynamicRoute(u)||!a&&i.includes(h.normalizeLocalePath(x.removeBasePath(u),r.router.locales).pathname)){const r=R.getNextPathnameInfo(g.parseRelativeUrl(e).pathname,{parseData:!0});u=O.addBasePath(r.pathname),t.pathname=u}if(!i.includes(s)){const e=H(s,i);e!==s&&(s=e)}const c=i.includes(s)?s:H(h.normalizeLocalePath(x.removeBasePath(t.pathname),r.router.locales).pathname,i);if(y.isDynamicRoute(c)){const e=_.getRouteMatcher(P.getRouteRegex(c))(u);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:c}}))}const t=S.parsePath(e),s=L.formatNextPathnameInfo(o({},R.getNextPathnameInfo(t.pathname,{nextConfig:n,parseData:!0}),{defaultLocale:r.router.defaultLocale,buildId:""}));return Promise.resolve({type:"redirect-external",destination:`${s}${t.query}${t.hash}`})}const c=t.headers.get("x-nextjs-redirect");if(c){if(c.startsWith("/")){const e=S.parsePath(c),t=L.formatNextPathnameInfo(o({},R.getNextPathnameInfo(e.pathname,{nextConfig:n,parseData:!0}),{defaultLocale:r.router.defaultLocale,buildId:""}));return Promise.resolve({type:"redirect-internal",newAs:`${t}${e.query}${e.hash}`,newUrl:`${t}${e.query}${e.hash}`})}return Promise.resolve({type:"redirect-external",destination:c})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e).then((e=>({dataHref:t.dataHref,cacheKey:t.cacheKey,json:t.json,response:t.response,text:t.text,effect:e}))))).catch((e=>null)):null))}const F="scrollRestoration"in window.history&&!!function(){try{let e="__next";return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(e){}}(),z=Symbol("SSG_DATA_NOT_FOUND");function Z(e,t,r){return fetch(e,{credentials:"same-origin",method:r.method||"GET",headers:Object.assign({},r.headers,{"x-nextjs-data":"1"})}).then((n=>!n.ok&&t>1&&n.status>=500?Z(e,t-1,r):n))}const G={};function V(e){const t=document.documentElement,r=t.style.scrollBehavior;t.style.scrollBehavior="auto",e(),t.style.scrollBehavior=r}function K(e){try{return JSON.parse(e)}catch(t){return null}}function X(e){let{dataHref:t,inflightCache:r,isPrefetch:n,hasMiddleware:o,isServerRender:a,parseJSON:i,persistCache:s,isBackground:l,unstable_skipClientCache:c}=e;const{href:d}=new URL(t,window.location.href);var f;const h=e=>Z(t,a?3:1,{headers:n?{purpose:"prefetch"}:{},method:null!=(f=null==e?void 0:e.method)?f:"GET"}).then((r=>r.ok&&"HEAD"===(null==e?void 0:e.method)?{dataHref:t,response:r,text:"",json:{},cacheKey:d}:r.text().then((e=>{if(!r.ok){if(o&&[301,302,307,308].includes(r.status))return{dataHref:t,response:r,text:e,json:{},cacheKey:d};var n;if(!o&&404===r.status)if(null==(n=K(e))?void 0:n.notFound)return{dataHref:t,json:{notFound:z},response:r,text:e,cacheKey:d};const i=new Error("Failed to load static props");throw a||u.markAssetError(i),i}return{dataHref:t,json:i?K(e):null,response:r,text:e,cacheKey:d}})))).then((e=>(s&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete r[d],e))).catch((e=>{throw delete r[d],e}));return c&&s?h({}).then((e=>(r[d]=Promise.resolve(e),e))):void 0!==r[d]?r[d]:r[d]=h(l?{method:"HEAD"}:{})}function J(){return Math.random().toString(36).slice(2,10)}function Y(e){let{url:t,router:r}=e;if(t===O.addBasePath(E.addLocale(r.asPath,r.locale)))throw new Error(`Invariant: attempted to hard navigate to the same URL ${t} ${location.href}`);window.location.href=t}const Q=e=>{let{route:t,router:r}=e,n=!1;const o=r.clc=()=>{n=!0};return()=>{if(n){const e=new Error(`Abort fetching component for route: "${t}"`);throw e.cancelled=!0,e}o===r.clc&&(r.clc=null)}};class ee{reload(){window.location.reload()}back(){window.history.back()}push(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(F)try{sessionStorage.setItem("__next_scroll_"+this._key,JSON.stringify({x:self.pageXOffset,y:self.pageYOffset}))}catch(n){}return({url:e,as:t}=W(this,e,t)),this.change("pushState",e,t,r)}replace(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return({url:e,as:t}=W(this,e,t)),this.change("replaceState",e,t,r)}change(e,t,r,a,i){var s=this;return n((function*(){if(!D(t))return Y({url:t,router:s}),!1;const n=a._h,f=n||a._shouldResolveHref||S.parsePath(t).pathname===S.parsePath(r).pathname,p=o({},s.state),v=!0!==s.isReady;s.isReady=!0;const R=s.isSsr;if(n||(s.isSsr=!1),n&&s.clc)return!1;const L=p.locale;{p.locale=!1===a.locale?s.defaultLocale:a.locale||p.locale,"undefined"===typeof a.locale&&(a.locale=p.locale);const e=g.parseRelativeUrl(C.hasBasePath(r)?x.removeBasePath(r):r),n=h.normalizeLocalePath(e.pathname,s.locales);n.detectedLocale&&(p.locale=n.detectedLocale,e.pathname=O.addBasePath(e.pathname),r=b.formatWithValidation(e),t=O.addBasePath(h.normalizeLocalePath(C.hasBasePath(t)?x.removeBasePath(t):t,s.locales).pathname));let o=!1;var A;(null==(A=s.locales)?void 0:A.includes(p.locale))||(e.pathname=E.addLocale(e.pathname,p.locale),Y({url:b.formatWithValidation(e),router:s}),o=!0);const i=w.detectDomainLocale(s.domainLocales,void 0,p.locale);if(!o&&i&&s.isLocaleDomain&&self.location.hostname!==i.domain){const e=x.removeBasePath(r);Y({url:`http${i.http?"":"s"}://${i.domain}${O.addBasePath(`${p.locale===i.defaultLocale?"":`/${p.locale}`}${"/"===e?"":e}`||"/")}`,router:s}),o=!0}if(o)return new Promise((()=>{}))}m.ST&&performance.mark("routeChange");const{shallow:$=!1,scroll:I=!0}=a,q={shallow:$};s._inFlightRoute&&s.clc&&(R||ee.events.emit("routeChangeError",T(),s._inFlightRoute,q),s.clc(),s.clc=null),r=O.addBasePath(E.addLocale(C.hasBasePath(r)?x.removeBasePath(r):r,a.locale,s.defaultLocale));const U=j.removeLocale(C.hasBasePath(r)?x.removeBasePath(r):r,p.locale);s._inFlightRoute=r;const F=L!==p.locale;if(!n&&s.onlyAHashChange(U)&&!F){p.asPath=U,ee.events.emit("hashChangeStart",r,q),s.changeState(e,t,r,o({},a,{scroll:!1})),I&&s.scrollToHash(U);try{yield s.set(p,s.components[p.route],null)}catch(se){throw d.default(se)&&se.cancelled&&ee.events.emit("routeChangeError",se,U,q),se}return ee.events.emit("hashChangeComplete",r,q),!0}let Z,G,V=g.parseRelativeUrl(t),{pathname:K,query:X}=V;try{[Z,{__rewrites:G}]=yield Promise.all([s.pageLoader.getPageList(),u.getClientBuildManifest(),s.pageLoader.getMiddleware()])}catch(se){return Y({url:r,router:s}),!1}s.urlIsNew(U)||F||(e="replaceState");let J=r;K=K?l.removeTrailingSlash(x.removeBasePath(K)):K;const Q=yield N({asPath:r,locale:p.locale,router:s});if(a.shallow&&Q&&(K=s.pathname),f&&"/_error"!==K&&(a._shouldResolveHref=!0,V.pathname=H(K,Z),V.pathname!==K&&(K=V.pathname,V.pathname=O.addBasePath(K),Q||(t=b.formatWithValidation(V)))),!D(r))return Y({url:r,router:s}),!1;J=j.removeLocale(x.removeBasePath(J),p.locale);let te=l.removeTrailingSlash(K),re=!1;if(y.isDynamicRoute(te)){const e=g.parseRelativeUrl(J),n=e.pathname,o=P.getRouteRegex(te);re=_.getRouteMatcher(o)(n);const a=te===n,i=a?B(te,n,X):{};if(!re||a&&!i.result){const e=Object.keys(o.groups).filter((e=>!X[e]));if(e.length>0&&!Q)throw new Error((a?`The provided \`href\` (${t}) value is missing query values (${e.join(", ")}) to be interpolated properly. `:`The provided \`as\` value (${n}) is incompatible with the \`href\` value (${te}). `)+"Read more: https://nextjs.org/docs/messages/"+(a?"href-interpolation-failed":"incompatible-href-as"))}else a?r=b.formatWithValidation(Object.assign({},e,{pathname:i.result,query:k(X,i.params)})):Object.assign(X,re)}n||ee.events.emit("routeChangeStart",r,q);try{var ne,oe;let l=yield s.getRouteInfo({route:te,pathname:K,query:X,as:r,resolvedAs:J,routeProps:q,locale:p.locale,isPreview:p.isPreview,hasMiddleware:Q});if("route"in l&&Q){K=l.route||te,te=K,q.shallow||(X=Object.assign({},l.query||{},X));const e=C.hasBasePath(V.pathname)?x.removeBasePath(V.pathname):V.pathname;if(re&&K!==e&&Object.keys(re).forEach((e=>{re&&X[e]===re[e]&&delete X[e]})),y.isDynamicRoute(K)){let e=!q.shallow&&l.resolvedAs?l.resolvedAs:O.addBasePath(E.addLocale(new URL(r,location.href).pathname,p.locale),!0);C.hasBasePath(e)&&(e=x.removeBasePath(e));{const t=h.normalizeLocalePath(e,s.locales);p.locale=t.detectedLocale||p.locale,e=t.pathname}const t=P.getRouteRegex(K),n=_.getRouteMatcher(t)(e);n&&Object.assign(X,n)}}if("type"in l)return"redirect-internal"===l.type?s.change(e,l.newUrl,l.newAs,a):(Y({url:l.destination,router:s}),new Promise((()=>{})));let{error:u,props:d,__N_SSG:f,__N_SSP:m}=l;const b=l.Component;if(b&&b.unstable_scriptLoader){[].concat(b.unstable_scriptLoader()).forEach((e=>{c.handleClientScriptLoad(e.props)}))}if((f||m)&&d){if(d.pageProps&&d.pageProps.__N_REDIRECT){a.locale=!1;const t=d.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==d.pageProps.__N_REDIRECT_BASE_PATH){const r=g.parseRelativeUrl(t);r.pathname=H(r.pathname,Z);const{url:n,as:o}=W(s,t,t);return s.change(e,n,o,a)}return Y({url:t,router:s}),new Promise((()=>{}))}if(p.isPreview=!!d.__N_PREVIEW,d.notFound===z){let e;try{yield s.fetchComponent("/404"),e="/404"}catch(le){e="/_error"}if(l=yield s.getRouteInfo({route:e,pathname:e,query:X,as:r,resolvedAs:J,routeProps:{shallow:!1},locale:p.locale,isPreview:p.isPreview}),"type"in l)throw new Error("Unexpected middleware effect on /404")}}var ae;ee.events.emit("beforeHistoryChange",r,q),s.changeState(e,t,r,a),n&&"/_error"===K&&500===(null==(ne=self.__NEXT_DATA__.props)||null==(oe=ne.pageProps)?void 0:oe.statusCode)&&(null==d?void 0:d.pageProps)&&(d.pageProps.statusCode=500);const w=a.shallow&&p.route===(null!=(ae=l.route)?ae:te);var ie;const S=null!=(ie=a.scroll)?ie:!a._h&&!w,j=S?{x:0,y:0}:null,R=o({},p,{route:te,pathname:K,query:X,asPath:U,isFallback:!1}),L=null!=i?i:j;if(!(a._h&&!L&&!v&&!F&&M.compareRouterStates(R,s.state))){if(yield s.set(R,l,L).catch((e=>{if(!e.cancelled)throw e;u=u||e})),u)throw n||ee.events.emit("routeChangeError",u,U,q),u;p.locale&&(document.documentElement.lang=p.locale),n||ee.events.emit("routeChangeComplete",r,q);const e=/#.+$/;S&&e.test(r)&&s.scrollToHash(r)}return!0}catch(ue){if(d.default(ue)&&ue.cancelled)return!1;throw ue}}))()}changeState(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"pushState"===e&&m.getURL()===r||(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:J()},"",r))}handleRouteInfoError(e,t,r,o,a,i){var s=this;return n((function*(){if(console.error(e),e.cancelled)throw e;if(u.isAssetError(e)||i)throw ee.events.emit("routeChangeError",e,o,a),Y({url:o,router:s}),T();try{let o;const{page:a,styleSheets:i}=yield s.fetchComponent("/_error"),l={props:o,Component:a,styleSheets:i,err:e,error:e};if(!l.props)try{l.props=yield s.getInitialProps(a,{err:e,pathname:t,query:r})}catch(n){console.error("Error in error page `getInitialProps`: ",n),l.props={}}return l}catch(l){return s.handleRouteInfoError(d.default(l)?l:new Error(l+""),t,r,o,a,!0)}}))()}getRouteInfo(e){let{route:t,pathname:r,query:a,as:i,resolvedAs:s,routeProps:u,locale:c,hasMiddleware:f,isPreview:p,unstable_skipClientCache:m}=e;var y=this;return n((function*(){let e=t;try{var g,v,_;const t=Q({route:e,router:y});let d=y.components[e];if(u.shallow&&d&&y.route===e)return d;f&&(d=void 0);let P=d&&!("initial"in d)?d:void 0;const w={dataHref:y.pageLoader.getDataHref({href:b.formatWithValidation({pathname:r,query:a}),skipInterpolation:!0,asPath:s,locale:c}),hasMiddleware:!0,isServerRender:y.isSsr,parseJSON:!0,inflightCache:y.sdc,persistCache:!p,isPrefetch:!1,unstable_skipClientCache:m},S=yield U({fetchData:()=>X(w),asPath:s,locale:c,router:y});if(t(),"redirect-internal"===(null==S||null==(g=S.effect)?void 0:g.type)||"redirect-external"===(null==S||null==(v=S.effect)?void 0:v.type))return S.effect;if("rewrite"===(null==S||null==(_=S.effect)?void 0:_.type)&&(e=l.removeTrailingSlash(S.effect.resolvedHref),r=S.effect.resolvedHref,a=o({},a,S.effect.parsedAs.query),s=x.removeBasePath(h.normalizeLocalePath(S.effect.parsedAs.pathname,y.locales).pathname),d=y.components[e],u.shallow&&d&&y.route===e&&!f))return o({},d,{route:e});if("/api"===e||e.startsWith("/api/"))return Y({url:i,router:y}),new Promise((()=>{}));const E=P||(yield y.fetchComponent(e).then((e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP}))));0;const j=E.__N_SSG||E.__N_SSP,{props:O,cacheKey:C}=yield y._getData(n((function*(){if(j){const{json:e,cacheKey:t}=(null==S?void 0:S.json)?S:yield X({dataHref:y.pageLoader.getDataHref({href:b.formatWithValidation({pathname:r,query:a}),asPath:s,locale:c}),isServerRender:y.isSsr,parseJSON:!0,inflightCache:y.sdc,persistCache:!p,isPrefetch:!1,unstable_skipClientCache:m});return{cacheKey:t,props:e||{}}}return{headers:{},cacheKey:"",props:yield y.getInitialProps(E.Component,{pathname:r,query:a,asPath:i,locale:c,locales:y.locales,defaultLocale:y.defaultLocale})}})));return E.__N_SSP&&w.dataHref&&delete y.sdc[C],!y.isPreview&&E.__N_SSG&&X(Object.assign({},w,{isBackground:!0,persistCache:!1,inflightCache:G})).catch((()=>{})),O.pageProps=Object.assign({},O.pageProps),E.props=O,E.route=e,E.query=a,E.resolvedAs=s,y.components[e]=E,E}catch(P){return y.handleRouteInfoError(d.getProperError(P),r,a,i,u)}}))()}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;const[t,r]=this.asPath.split("#"),[n,o]=e.split("#");return!(!o||t!==n||r!==o)||t===n&&r!==o}scrollToHash(e){const[,t=""]=e.split("#");if(""===t||"top"===t)return void V((()=>window.scrollTo(0,0)));const r=decodeURIComponent(t),n=document.getElementById(r);if(n)return void V((()=>n.scrollIntoView()));const o=document.getElementsByName(r)[0];o&&V((()=>o.scrollIntoView()))}urlIsNew(e){return this.asPath!==e}prefetch(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var o=this;return n((function*(){if(A.isBot(window.navigator.userAgent))return;let n=g.parseRelativeUrl(e),{pathname:a,query:i}=n;if(!1===r.locale){a=h.normalizeLocalePath(a,o.locales).pathname,n.pathname=a,e=b.formatWithValidation(n);let i=g.parseRelativeUrl(t);const s=h.normalizeLocalePath(i.pathname,o.locales);i.pathname=s.pathname,r.locale=s.detectedLocale||o.defaultLocale,t=b.formatWithValidation(i)}const s=yield o.pageLoader.getPageList();let u=t;const c="undefined"!==typeof r.locale?r.locale||void 0:o.locale;n.pathname=H(n.pathname,s),y.isDynamicRoute(n.pathname)&&(a=n.pathname,n.pathname=a,Object.assign(i,_.getRouteMatcher(P.getRouteRegex(n.pathname))(S.parsePath(t).pathname)||{}),e=b.formatWithValidation(n));const d=l.removeTrailingSlash(a);yield Promise.all([o.pageLoader._isSsg(d).then((t=>!!t&&X({dataHref:o.pageLoader.getDataHref({href:e,asPath:u,locale:c}),isServerRender:!1,parseJSON:!0,inflightCache:o.sdc,persistCache:!o.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then((()=>!1)))),o.pageLoader[r.priority?"loadPage":"prefetch"](d)])}))()}fetchComponent(e){var t=this;return n((function*(){const r=Q({route:e,router:t});try{const n=yield t.pageLoader.loadPage(e);return r(),n}catch(n){throw r(),n}}))()}_getData(e){let t=!1;const r=()=>{t=!0};return this.clc=r,e().then((e=>{if(r===this.clc&&(this.clc=null),t){const e=new Error("Loading initial props cancelled");throw e.cancelled=!0,e}return e}))}_getFlightData(e){return X({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then((e=>{let{text:t}=e;return{data:t}}))}getInitialProps(e,t){const{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,m.loadGetInitialProps(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,r,n){let{initialProps:o,pageLoader:a,App:i,wrapApp:s,Component:u,err:c,subscription:d,isFallback:f,locale:h,locales:p,defaultLocale:v,domainLocales:_,isPreview:P}=n;this.sdc={},this.isFirstPopStateEvent=!0,this._key=J(),this.onPopState=e=>{const{isFirstPopStateEvent:t}=this;this.isFirstPopStateEvent=!1;const r=e.state;if(!r){const{pathname:e,query:t}=this;return void this.changeState("replaceState",b.formatWithValidation({pathname:O.addBasePath(e),query:t}),m.getURL())}if(r.__NA)return void window.location.reload();if(!r.__N)return;if(t&&this.locale===r.options.locale&&r.as===this.asPath)return;let n;const{url:o,as:a,options:i,key:s}=r;if(F&&this._key!==s){try{sessionStorage.setItem("__next_scroll_"+this._key,JSON.stringify({x:self.pageXOffset,y:self.pageYOffset}))}catch(e){}try{const e=sessionStorage.getItem("__next_scroll_"+s);n=JSON.parse(e)}catch(u){n={x:0,y:0}}}this._key=s;const{pathname:l}=g.parseRelativeUrl(o);this.isSsr&&a===O.addBasePath(this.asPath)&&l===O.addBasePath(this.pathname)||this._bps&&!this._bps(r)||this.change("replaceState",o,a,Object.assign({},i,{shallow:i.shallow&&this._shallow,locale:i.locale||this.defaultLocale,_h:0}),n)};const S=l.removeTrailingSlash(e);this.components={},"/_error"!==e&&(this.components[S]={Component:u,initial:!0,props:o,err:c,__N_SSG:o&&o.__N_SSG,__N_SSP:o&&o.__N_SSP}),this.components["/_app"]={Component:i,styleSheets:[]},this.events=ee.events,this.pageLoader=a;const E=y.isDynamicRoute(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=d,this.clc=null,this._wrapApp=s,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!E&&!self.location.search),this.locales=p,this.defaultLocale=v,this.domainLocales=_,this.isLocaleDomain=!!w.detectDomainLocale(_,self.location.hostname),this.state={route:S,pathname:e,query:t,asPath:E?e:r,isPreview:!!P,locale:h,isFallback:f},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!r.startsWith("//")){const n={locale:h},o=m.getURL();this._initialMatchesMiddlewarePromise=N({router:this,locale:h,asPath:o}).then((a=>(n._shouldResolveHref=r!==e,this.changeState("replaceState",a?o:b.formatWithValidation({pathname:O.addBasePath(e),query:t}),o,n),a)))}window.addEventListener("popstate",this.onPopState),F&&(window.history.scrollRestoration="manual")}}ee.events=p.default(),t.default=ee},96476:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addLocale=function(e,t,r,a){if(t&&t!==r&&(a||!o.pathHasPrefix(e.toLowerCase(),`/${t.toLowerCase()}`)&&!o.pathHasPrefix(e.toLowerCase(),"/api")))return n.addPathPrefix(e,`/${t}`);return e};var n=r(6592),o=r(37640)},6592:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addPathPrefix=function(e,t){if(!e.startsWith("/")||!t)return e;const{pathname:r,query:o,hash:a}=n.parsePath(e);return`${t}${r}${o}${a}`};var n=r(35692)},73470:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addPathSuffix=function(e,t){if(!e.startsWith("/")||!t)return e;const{pathname:r,query:o,hash:a}=n.parsePath(e);return`${r}${t}${o}${a}`};var n=r(35692)},99104:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compareRouterStates=function(e,t){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){const o=r[n];if("query"===o){const r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){const o=r[n];if(!t.query.hasOwnProperty(o)||e.query[o]!==t.query[o])return!1}}else if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}},92047:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatNextPathnameInfo=function(e){let t=i.addLocale(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);e.buildId&&(t=a.addPathSuffix(o.addPathPrefix(t,`/_next/data/${e.buildId}`),"/"===e.pathname?"index.json":".json"));return t=o.addPathPrefix(t,e.basePath),e.trailingSlash?e.buildId||t.endsWith("/")?t:a.addPathSuffix(t,"/"):n.removeTrailingSlash(t)};var n=r(29288),o=r(6592),a=r(73470),i=r(96476)},81247:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatUrl=a,t.formatWithValidation=function(e){0;return a(e)},t.urlObjectKeys=void 0;var n=(0,r(30199).Z)(r(21603));const o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,a=e.protocol||"",i=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(n.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||o.test(a))&&!1!==u?(u="//"+(u||""),i&&"/"!==i[0]&&(i="/"+i)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),i=i.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${a}${u}${i}${c}${s}`}t.urlObjectKeys=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"]},27199:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r="/"===e?"/index":/^\/index(\/|$)/.test(e)?`/index${e}`:`${e}`;return r+t}},99159:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNextPathnameInfo=function(e,t){var r;const{basePath:i,i18n:s,trailingSlash:l}=null!=(r=t.nextConfig)?r:{},u={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):l};i&&a.pathHasPrefix(u.pathname,i)&&(u.pathname=o.removePathPrefix(u.pathname,i),u.basePath=i);if(!0===t.parseData&&u.pathname.startsWith("/_next/data/")&&u.pathname.endsWith(".json")){const e=u.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),t=e[0];u.pathname="index"!==e[1]?`/${e.slice(1).join("/")}`:"/",u.buildId=t}if(s){const e=n.normalizeLocalePath(u.pathname,s.locales);u.locale=null==e?void 0:e.detectedLocale,u.pathname=(null==e?void 0:e.pathname)||u.pathname}return u};var n=r(49574),o=r(95282),a=r(37640)},60262:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return n.getSortedRoutes}}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return o.isDynamicRoute}});var n=r(10310),o=r(82201)},10925:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBot=function(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}},82201:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDynamicRoute=function(e){return r.test(e)};const r=/\/\[[^/]+?\](?=\/|$)/},35692:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parsePath=function(e){const t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1)return{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""};return{pathname:e,query:"",hash:""}}},3202:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseRelativeUrl=function(e,t){const r=new URL(n.getLocationOrigin()),a=t?new URL(t,r):e.startsWith(".")?new URL(window.location.href):r,{pathname:i,searchParams:s,search:l,hash:u,href:c,origin:d}=new URL(e,a);if(d!==r.origin)throw new Error(`invariant: invalid relative URL, router received ${e}`);return{pathname:i,query:o.searchParamsToUrlQuery(s),search:l,hash:u,href:c.slice(r.origin.length)}};var n=r(70297),o=r(21603)},37640:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pathHasPrefix=function(e,t){if("string"!==typeof e)return!1;const{pathname:r}=n.parsePath(e);return r===t||r.startsWith(t+"/")};var n=r(35692)},21603:function(e,t){"use strict";function r(e){return"string"===typeof e||"number"===typeof e&&!isNaN(e)||"boolean"===typeof e?String(e):""}Object.defineProperty(t,"__esModule",{value:!0}),t.searchParamsToUrlQuery=function(e){const t={};return e.forEach(((e,r)=>{"undefined"===typeof t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]})),t},t.urlQueryToSearchParams=function(e){const t=new URLSearchParams;return Object.entries(e).forEach((e=>{let[n,o]=e;Array.isArray(o)?o.forEach((e=>t.append(n,r(e)))):t.set(n,r(o))})),t},t.assign=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n{Array.from(t.keys()).forEach((t=>e.delete(t))),t.forEach(((t,r)=>e.append(r,t)))})),e}},95282:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removePathPrefix=function(e,t){if(n.pathHasPrefix(e,t)){const r=e.slice(t.length);return r.startsWith("/")?r:`/${r}`}return e};var n=r(37640)},29288:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeTrailingSlash=function(e){return e.replace(/\/$/,"")||"/"}},2354:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRouteMatcher=function(e){let{re:t,groups:r}=e;return e=>{const o=t.exec(e);if(!o)return!1;const a=e=>{try{return decodeURIComponent(e)}catch(t){throw new n.DecodeError("failed to decode param")}},i={};return Object.keys(r).forEach((e=>{const t=r[e],n=o[t.pos];void 0!==n&&(i[e]=~n.indexOf("/")?n.split("/").map((e=>a(e))):t.repeat?[a(n)]:a(n))})),i}};var n=r(70297)},12436:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRouteRegex=l,t.getNamedRouteRegex=function(e){const t=u(e);return n({},l(e),{namedRegex:`^${t.namedParameterizedRoute}(?:/)?$`,routeKeys:t.routeKeys})},t.getNamedMiddlewareRegex=function(e,t){const{parameterizedRoute:r}=s(e),{catchAll:n=!0}=t;if("/"===r){return{namedRegex:`^/${n?".*":""}$`}}const{namedParameterizedRoute:o}=u(e);return{namedRegex:`^${o}${n?"(?:(/.*)?)":""}$`}};var n=r(59419).Z,o=r(38233),a=r(29288);function i(e){const t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));const r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function s(e){const t=a.removeTrailingSlash(e).slice(1).split("/"),r={};let n=1;return{parameterizedRoute:t.map((e=>{if(e.startsWith("[")&&e.endsWith("]")){const{key:t,optional:o,repeat:a}=i(e.slice(1,-1));return r[t]={pos:n++,repeat:a,optional:o},a?o?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}return`/${o.escapeStringRegexp(e)}`})).join(""),groups:r}}function l(e){const{parameterizedRoute:t,groups:r}=s(e);return{re:new RegExp(`^${t}(?:/)?$`),groups:r}}function u(e){const t=a.removeTrailingSlash(e).slice(1).split("/"),r=function(){let e=97,t=1;return()=>{let r="";for(let n=0;n122&&(t++,e=97);return r}}(),n={};return{namedParameterizedRoute:t.map((e=>{if(e.startsWith("[")&&e.endsWith("]")){const{key:t,optional:o,repeat:a}=i(e.slice(1,-1));let s=t.replace(/\W/g,""),l=!1;return(0===s.length||s.length>30)&&(l=!0),isNaN(parseInt(s.slice(0,1)))||(l=!0),l&&(s=r()),n[s]=t,a?o?`(?:/(?<${s}>.+?))?`:`/(?<${s}>.+?)`:`/(?<${s}>[^/]+?)`}return`/${o.escapeStringRegexp(e)}`})).join(""),routeKeys:n}}},10310:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSortedRoutes=function(e){const t=new r;return e.forEach((e=>t.insert(e))),t.smoosh()};class r{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/";const t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);const r=t.map((t=>this.children.get(t)._smoosh(`${e}${t}/`))).reduce(((e,t)=>[...e,...t]),[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(`${e}[${this.slugName}]/`)),!this.placeholder){const t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw new Error(`You cannot define a route with the same specificity as a optional catch-all route ("${t}" and "${t}[[...${this.optionalRestSlugName}]]").`);r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(`${e}[...${this.restSlugName}]/`)),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(`${e}[[...${this.optionalRestSlugName}]]/`)),r}_insert(e,t,n){if(0===e.length)return void(this.placeholder=!1);if(n)throw new Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let a=o.slice(1,-1),i=!1;if(a.startsWith("[")&&a.endsWith("]")&&(a=a.slice(1,-1),i=!0),a.startsWith("...")&&(a=a.substring(3),n=!0),a.startsWith("[")||a.endsWith("]"))throw new Error(`Segment names may not start or end with extra brackets ('${a}').`);if(a.startsWith("."))throw new Error(`Segment names may not start with erroneous periods ('${a}').`);function s(e,r){if(null!==e&&e!==r)throw new Error(`You cannot use different slug names for the same dynamic path ('${e}' !== '${r}').`);t.forEach((e=>{if(e===r)throw new Error(`You cannot have the same slug name "${r}" repeat within a single dynamic path`);if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw new Error(`You cannot have the slug names "${e}" and "${r}" differ only by non-word symbols within a single dynamic path`)})),t.push(r)}if(n)if(i){if(null!=this.restSlugName)throw new Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${e[0]}" ).`);s(this.optionalRestSlugName,a),this.optionalRestSlugName=a,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw new Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${e[0]}").`);s(this.restSlugName,a),this.restSlugName=a,o="[...]"}else{if(i)throw new Error(`Optional route parameters are not yet supported ("${e[0]}").`);s(this.slugName,a),this.slugName=a,o="[]"}}this.children.has(o)||this.children.set(o,new r),this.children.get(o)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}},81980:function(e,t){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.setConfig=function(e){r=e},t.default=void 0;t.default=()=>r,("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70297:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.execOnce=function(e){let t,r=!1;return function(){return r||(r=!0,t=e(...arguments)),t}},t.getLocationOrigin=a,t.getURL=function(){const{href:e}=window.location,t=a();return e.substring(t.length)},t.getDisplayName=i,t.isResSent=s,t.normalizeRepeatedSlashes=function(e){const t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")},t.loadGetInitialProps=l,t.ST=t.SP=t.warnOnce=t.isAbsoluteUrl=void 0;var n=r(18282).Z;const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/;function a(){const{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function i(e){return"string"===typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function l(e,t){return u.apply(this,arguments)}function u(){return(u=n((function*(e,t){const r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:yield l(t.Component,t.ctx)}:{};const n=yield e.getInitialProps(t);if(r&&s(r))return n;if(!n){const t=`"${i(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`;throw new Error(t)}return n}))).apply(this,arguments)}t.isAbsoluteUrl=e=>o.test(e);const c="undefined"!==typeof performance;t.SP=c;const d=c&&["mark","measure","getEntriesByName"].every((e=>"function"===typeof performance[e]));t.ST=d;class f extends Error{}t.DecodeError=f;class h extends Error{}t.NormalizeError=h;class p extends Error{constructor(e){super(),this.code="ENOENT",this.message=`Cannot find module for page: ${e}`}}t.PageNotFoundError=p;class m extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}t.MissingStaticPage=m;class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}t.MiddlewareNotFoundError=y,t.warnOnce=e=>{}},11541:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){throw r}))}))}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce((function(e,t){return e[t[0]]=t[1],e}),{})})},86590:function(e){!function(){"use strict";var t={d:function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}};"undefined"!==typeof t&&(t.ab="//");var r={};t.r(r),t.d(r,{getCLS:function(){return S},getFCP:function(){return P},getFID:function(){return L},getINP:function(){return W},getLCP:function(){return U},getTTFB:function(){return z},onCLS:function(){return S},onFCP:function(){return P},onFID:function(){return L},onINP:function(){return W},onLCP:function(){return U},onTTFB:function(){return z}});var n,o,a,i,s,l=-1,u=function(e){addEventListener("pageshow",(function(t){t.persisted&&(l=t.timeStamp,e(t))}),!0)},c=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},d=function(){var e=c();return e&&e.activationStart||0},f=function(e,t){var r=c(),n="navigate";return l>=0?n="back-forward-cache":r&&(n=document.prerendering||d()>0?"prerender":r.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},h=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver((function(e){t(e.getEntries())}));return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(e){}},p=function(e,t){var r=function r(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||(e(n),t&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},m=function(e,t,r,n){var o,a;return function(i){t.value>=0&&(i||n)&&((a=t.value-(o||0))||void 0===o)&&(o=t.value,t.delta=a,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,r),e(t))}},y=-1,g=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},v=function(){p((function(e){var t=e.timeStamp;y=t}),!0)},_=function(){return y<0&&(y=g(),v(),u((function(){setTimeout((function(){y=g(),v()}),0)}))),{get firstHiddenTime(){return y}}},P=function(e,t){t=t||{};var r,n=[1800,3e3],o=_(),a=f("FCP"),i=function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(l&&l.disconnect(),e.startTime-1&&e(t)},a=f("CLS",0),i=0,s=[],l=function(e){e.forEach((function(e){if(!e.hadRecentInput){var t=s[0],r=s[s.length-1];i&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,s.push(e)):(i=e.value,s=[e]),i>a.value&&(a.value=i,a.entries=s,n())}}))},c=h("layout-shift",l);c&&(n=m(o,a,r,t.reportAllChanges),p((function(){l(c.takeRecords()),n(!0)})),u((function(){i=0,w=-1,a=f("CLS",0),n=m(o,a,r,t.reportAllChanges)})))},E={passive:!0,capture:!0},j=new Date,x=function(e,t){n||(n=t,o=e,a=new Date,R(removeEventListener),O())},O=function(){if(o>=0&&o1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var r=function(){x(e,t),o()},n=function(){o()},o=function(){removeEventListener("pointerup",r,E),removeEventListener("pointercancel",n,E)};addEventListener("pointerup",r,E),addEventListener("pointercancel",n,E)}(t,e):x(t,e)}},R=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,C,E)}))},L=function(e,t){t=t||{};var r,a=[100,300],s=_(),l=f("FID"),c=function(e){e.startTimet.latency){if(r)r.entries.push(e),r.latency=Math.max(r.latency,e.duration);else{var n={id:e.interactionId,latency:e.duration,entries:[e]};B[n.id]=n,D.push(n)}D.sort((function(e,t){return t.latency-e.latency})),D.splice(10).forEach((function(e){delete B[e.id]}))}},W=function(e,t){t=t||{};var r=[200,500];"interactionCount"in performance||s||(s=h("event",N,{type:"event",buffered:!0,durationThreshold:0}));var n,o=f("INP"),a=function(e){e.forEach((function(e){e.interactionId&&q(e),"first-input"===e.entryType&&!D.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&q(e)}));var t,r=(t=Math.min(D.length-1,Math.floor(k()/50)),D[t]);r&&r.latency!==o.value&&(o.value=r.latency,o.entries=r.entries,n())},i=h("event",a,{durationThreshold:t.durationThreshold||40});n=m(e,o,r,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),p((function(){a(i.takeRecords()),o.value<0&&k()>0&&(o.value=0,o.entries=[]),n(!0)})),u((function(){D=[],I=$(),o=f("INP"),n=m(e,o,r,t.reportAllChanges)})))},H={},U=function(e,t){t=t||{};var r,n=[2500,4e3],o=_(),a=f("LCP"),i=function(e){var t=e[e.length-1];if(t){var n=t.startTime-d();nperformance.now())return;n.entries=[a],o(!0),u((function(){n=f("TTFB",0),(o=m(e,n,r,t.reportAllChanges))(!0)}))}}))};e.exports=r}()},10274:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o,t.getProperError=function(e){if(o(e))return e;0;return new Error(n.isPlainObject(e)?JSON.stringify(e):e+"")};var n=r(8282);function o(e){return"object"===typeof e&&null!==e&&"name"in e&&"message"in e}},72094:function(){}},function(e){e.O(0,[9774],(function(){return t=67881,e(e.s=t);var t}));var t=e.O();_N_E=t}]);