(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[179],{7228:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&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}))}))})},877:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEqualNode=o,t.default=function(){var e=null;return{mountedInstances:new Set,updateHead:function(t){var r=e=Promise.resolve().then((function(){if(r===e){e=null;var a={};t.forEach((function(e){if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'.concat(e.props["data-href"],'"]')))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}var t=a[e.type]||[];t.push(e),a[e.type]=t}));var i=a.title?a.title[0]:null,u="";if(i){var s=i.props.children;u="string"===typeof s?s:Array.isArray(s)?s.join(""):""}u!==document.title&&(document.title=u),["meta","base","link","style","script"].forEach((function(e){!function(e,t){var r=document.getElementsByTagName("head")[0],a=r.querySelector("meta[name=next-head-count]");0;for(var i=Number(a.content),u=[],s=0,c=a.previousElementSibling;s0&&void 0!==l[0]?l[0]:{},r=D,e.prev=3,e.next=6,Z.routeLoader.whenEntrypoint("/_app");case 6:if(!("error"in(o=e.sent))){e.next=9;break}throw o.error;case 9:a=o.component,i=o.exports,ne=a,u=i&&i.reportWebVitals,oe=function(e){var t,r=e.id,n=e.name,o=e.startTime,a=e.value,i=e.duration,s=e.entryType,c=e.entries,l="".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12);c&&c.length&&(t=c[0].startTime);var f={id:r||l,name:n,startTime:o||t,value:null==a?i:a,label:"mark"===s||"measure"===s?"custom":"web-vital"};null===u||void 0===u||u(f),C.trackWebVitalMetric(f)},e.next=17;break;case 17:return e.next=19,Z.routeLoader.whenEntrypoint(q);case 19:e.t0=e.sent;case 20:if(!("error"in(s=e.t0))){e.next=23;break}throw s.error;case 23:ue=s.component,e.next=28;break;case 28:e.next=33;break;case 30:e.prev=30,e.t1=e.catch(3),r=O.default(e.t1)?e.t1:new Error(e.t1+"");case 33:if(!window.__NEXT_PRELOADREADY){e.next=37;break}return e.next=37,window.__NEXT_PRELOADREADY(W);case 37:return t.router=re=k.createRouter(q,B,J,{initialProps:F,pageLoader:Z,App:ne,Component:ue,wrapApp:be,err:r,isFallback:Boolean(G),subscription:function(e,t,r){return pe(Object.assign({},e,{App:t,scroll:r}))},locale:V,locales:$,defaultLocale:Q,domainLocales:X,isPreview:K}),pe(c={App:ne,initial:!0,Component:ue,props:F,err:r}),e.abrupt("return",ce);case 44:return e.abrupt("return",{emitter:ce,renderCtx:c});case 45:case"end":return e.stop()}}),e,null,[[3,30]])})))).apply(this,arguments)}function fe(){return(fe=T(n.mark((function e(t){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.err){e.next=4;break}return e.next=3,he(t);case 3:return e.abrupt("return");case 4:return e.prev=4,e.next=7,we(t);case 7:e.next=17;break;case 9:if(e.prev=9,e.t0=e.catch(4),!(r=e.t0 instanceof Error?e.t0:new Error(e.t0+"")).cancelled){e.next=14;break}throw r;case 14:return e.next=17,he(A({},t,{err:r}));case 17:case"end":return e.stop()}}),e,null,[[4,9]])})))).apply(this,arguments)}function pe(e){return fe.apply(this,arguments)}function he(e){var t=e.App,n=e.err;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"),Z.loadPage("/_error").then((function(e){var t=e.page,n=e.styleSheets;return(null===_e||void 0===_e?void 0:_e.Component)===t?r.e(651).then(r.bind(r,9651)).then((function(e){return{ErrorComponent:e.default,styleSheets:[]}})):{ErrorComponent:t,styleSheets:n}})).then((function(r){var o=r.ErrorComponent,a=r.styleSheets,i=be(t),u={Component:o,AppTree:i,router:re,ctx:{err:n,pathname:q,query:B,asPath:J,AppTree:i}};return Promise.resolve(e.props?e.props:w.loadGetInitialProps(t,u)).then((function(t){return we(A({},e,{err:n,Component:o,styleSheets:a,props:t}))}))}))}t.emitter=ce;var de=!0;function ve(){w.ST&&(performance.mark("afterHydrate"),performance.measure("Next.js-before-hydration","navigationStart","beforeRender"),performance.measure("Next.js-hydration","beforeRender","afterHydrate"),oe&&performance.getEntriesByName("Next.js-hydration").forEach(oe),ye())}function me(){if(w.ST){performance.mark("afterRender");var 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"),oe&&(performance.getEntriesByName("Next.js-render").forEach(oe),performance.getEntriesByName("Next.js-route-change-to-render").forEach(oe)),ye(),["Next.js-route-change-to-render","Next.js-render"].forEach((function(e){return performance.clearMeasures(e)})))}}function ye(){["beforeRender","afterHydrate","afterRender","routeChange"].forEach((function(e){return performance.clearMarks(e)}))}function ge(e){var t=e.children;return f.default.createElement(se,{fn:function(e){return he({App:ne,err:e}).catch((function(e){return console.error("Error rendering page: ",e)}))}},f.default.createElement(m.RouterContext.Provider,{value:k.makePublicRouterInstance(re)},f.default.createElement(d.HeadManagerContext.Provider,{value:ae},f.default.createElement(h.StyleRegistry,null,t))))}var _e,be=function(e){return function(t){var r=A({},t,{Component:ue,err:D,router:re});return f.default.createElement(ge,null,f.default.createElement(e,Object.assign({},r)))}};function we(e){var t=e.App,r=e.Component,n=e.props,o=e.err,a=e.__N_RSC,i="initial"in e?void 0:e.styleSheets;r=r||_e.Component;var u=A({},n=n||_e.props,{Component:!!a?undefined:r,err:o,router:re});_e=u;var s,c=!1,l=new Promise((function(e,t){te&&te(),s=function(){te=null,e()},te=function(){c=!0,te=null;var e=new Error("Cancel rendering route");e.cancelled=!0,t(e)}}));function h(){s()}!function(){if(!i)return!1;var e=N(document.querySelectorAll("style[data-n-href]")),t=new Set(e.map((function(e){return e.getAttribute("data-n-href")}))),r=document.querySelector("noscript[data-n-css]"),n=null===r||void 0===r?void 0:r.getAttribute("data-n-css");i.forEach((function(e){var r=e.href,o=e.text;if(!t.has(r)){var a=document.createElement("style");a.setAttribute("data-n-href",r),a.setAttribute("media","x"),n&&a.setAttribute("nonce",n),document.head.appendChild(a),a.appendChild(document.createTextNode(o))}}))}();var d=f.default.createElement(f.default.Fragment,null,f.default.createElement(Se,{callback:function(){if(i&&!c){for(var t=new Set(i.map((function(e){return e.href}))),r=N(document.querySelectorAll("style[data-n-href]")),n=r.map((function(e){return e.getAttribute("data-n-href")})),o=0;o=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){s=!0,i=e},f:function(){try{u||null==r.return||r.return()}finally{if(s)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var f=new Map,p=new Set,h=["onLoad","dangerouslySetInnerHTML","children","onError","strategy"],d=function(e){var t=e.src,r=e.id,o=e.onLoad,a=void 0===o?function(){}:o,u=e.dangerouslySetInnerHTML,s=e.children,c=void 0===s?"":s,l=e.strategy,d=void 0===l?"afterInteractive":l,v=e.onError,m=r||t;if(!m||!p.has(m)){if(f.has(t))return p.add(m),void f.get(t).then(a,v);var y=document.createElement("script"),g=new Promise((function(e,t){y.addEventListener("load",(function(t){e(),a&&a.call(this,t)})),y.addEventListener("error",(function(e){t(e)}))})).catch((function(e){v&&v(e)}));t&&f.set(t,g),p.add(m),u?y.innerHTML=u.__html||"":c?y.textContent="string"===typeof c?c:Array.isArray(c)?c.join(""):"":t&&(y.src=t);for(var _=0,b=Object.entries(e);_>>0,1)},emit:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o-1||r>-1)&&(e=e.substring(0,t>-1?t:r)),e}function T(e){return(e=L(e))===R||e.startsWith(R+"/")}function j(e){return function(e,t){if(!e.startsWith("/")||!t)return e;var r=L(e);return f.normalizePathTrailingSlash("".concat(t).concat(r))+e.substr(r.length)}(e,R)}function M(e){return(e=e.slice(R.length)).startsWith("/")||(e="/".concat(e)),e}function A(e){if(e.startsWith("/")||e.startsWith("#")||e.startsWith("?"))return!0;try{var t=y.getLocationOrigin(),r=new URL(e,t);return r.origin===t&&T(r.pathname)}catch(n){return!1}}function I(e,t,r){var n="",o=S.getRouteRegex(e),a=o.groups,i=(t!==e?x.getRouteMatcher(o)(t):"")||r;n=e;var u=Object.keys(a);return u.every((function(e){var t=i[e]||"",r=a[e],o=r.repeat,u=r.optional,s="[".concat(o?"...":"").concat(e,"]");return u&&(s="".concat(t?"":"/","[").concat(s,"]")),o&&!Array.isArray(t)&&(t=[t]),(u||e in i)&&(n=n.replace(s,o?t.map((function(e){return encodeURIComponent(e)})).join("/"):encodeURIComponent(t))||"/")}))||(n=""),{params:u,result:n}}function N(e,t){var r={};return Object.keys(e).forEach((function(n){t.includes(n)||(r[n]=e[n])})),r}function F(e,t,r){var n,o="string"===typeof t?t:y.formatWithValidation(t),a=o.match(/^[a-zA-Z]{1,}:\/\//),i=a?o.substr(a[0].length):o;if((i.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href passed to next/router: ".concat(o,", repeated forward-slashes (//) or backslashes \\ are not valid in the href"));var u=y.normalizeRepeatedSlashes(i);o=(a?a[0]:"")+u}if(!A(o))return r?[o]:o;try{n=new URL(o.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(m){n=new URL("/","http://n")}try{var s=new URL(o,n);s.pathname=f.normalizePathTrailingSlash(s.pathname);var c="";if(g.isDynamicRoute(s.pathname)&&s.searchParams&&r){var l=b.searchParamsToUrlQuery(s.searchParams),p=I(s.pathname,s.pathname,l),h=p.result,d=p.params;h&&(c=y.formatWithValidation({pathname:h,hash:s.hash,query:N(l,d)}))}var v=s.origin===n.origin?s.href.slice(s.origin.length):s.href;return r?[v,c||v]:v}catch(_){return r?[o]:o}}function D(e){var t=y.getLocationOrigin();return e.startsWith(t)?e.substring(t.length):e}function q(e,t,r){var n=F(e,t,!0),o=s(n,2),a=o[0],i=o[1],u=y.getLocationOrigin(),c=a.startsWith(u),l=i&&i.startsWith(u);a=D(a),i=i?D(i):i;var f=c?a:j(a),p=r?D(F(e,r)):i||a;return{url:f,as:l?p:j(p)}}function B(e,t){var r=f.removePathTrailingSlash(d.denormalizePagePath(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some((function(t){if(g.isDynamicRoute(t)&&S.getRouteRegex(t).re.test(r))return e=t,!0})),f.removePathTrailingSlash(e))}var z=Symbol("SSG_DATA_NOT_FOUND");function H(e,t,r){return fetch(e,{credentials:"same-origin"}).then((function(n){if(!n.ok){if(t>1&&n.status>=500)return H(e,t-1,r);if(404===n.status)return n.json().then((function(e){if(e.notFound)return{notFound:z};throw new Error("Failed to load static props")}));throw new Error("Failed to load static props")}return r.text?n.text():n.json()}))}function U(e,t,r,n,o){var a=new URL(e,window.location.href).href;return void 0!==n[a]?n[a]:n[a]=H(e,t?3:1,{text:r}).catch((function(e){throw t||p.markAssetError(e),e})).then((function(e){return o||delete n[a],e})).catch((function(e){throw delete n[a],e}))}var W=function(){function e(t,r,n,o){var a,u=this,s=o.initialProps,c=o.pageLoader,l=o.App,p=o.wrapApp,h=o.Component,d=o.err,v=o.subscription,m=o.isFallback,b=o.locale,w=(o.locales,o.defaultLocale,o.domainLocales,o.isPreview);(i(this,e),this.sdc={},this.sdr={},this.sde={},this._idx=0,this.onPopState=function(e){var t=e.state;if(t){if(t.__N){var r=t.url,n=t.as,o=t.options,a=t.idx;u._idx=a;var i=_.parseRelativeUrl(r).pathname;u.isSsr&&n===u.asPath&&i===u.pathname||u._bps&&!u._bps(t)||u.change("replaceState",r,n,Object.assign({},o,{shallow:o.shallow&&u._shallow,locale:o.locale||u.defaultLocale}),undefined)}}else{var s=u.pathname,c=u.query;u.changeState("replaceState",y.formatWithValidation({pathname:j(s),query:c}),y.getURL())}},this.route=f.removePathTrailingSlash(t),this.components={},"/_error"!==t)&&(this.components[this.route]={Component:h,initial:!0,props:s,err:d,__N_SSG:s&&s.__N_SSG,__N_SSP:s&&s.__N_SSP,__N_RSC:!!(null===(a=h)||void 0===a?void 0:a.__next_rsc__)});this.components["/_app"]={Component:l,styleSheets:[]},this.events=e.events,this.pageLoader=c,this.pathname=t,this.query=r;var x=g.isDynamicRoute(t)&&self.__NEXT_DATA__.autoExport;if(this.asPath=x?t:n,this.basePath=R,this.sub=v,this.clc=null,this._wrapApp=p,this.isSsr=!0,this.isFallback=m,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!x&&!self.location.search),this.isPreview=!!w,this.isLocaleDomain=!1,"//"!==n.substr(0,2)){var S={locale:b};S._shouldResolveHref=n!==t,this.changeState("replaceState",y.formatWithValidation({pathname:j(t),query:r}),y.getURL(),S)}window.addEventListener("popstate",this.onPopState)}return u(e,[{key:"reload",value:function(){window.location.reload()}},{key:"back",value:function(){window.history.back()}},{key:"push",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n=q(this,e,t);return e=n.url,t=n.as,this.change("pushState",e,t,r)}},{key:"replace",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=q(this,e,t);return e=n.url,t=n.as,this.change("replaceState",e,t,r)}},{key:"change",value:function(){var t=a(n.mark((function t(r,o,a,i,u){var c,d,v,m,b,w,P,E,R,k,F,D,H,U,W,G,V,$,X,K,Q,Y,J,Z,ee,te,re,ne,oe,ae,ie,ue,se,ce,le,fe,pe,he,de,ve;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(A(o)){t.next=3;break}return window.location.href=o,t.abrupt("return",!1);case 3:c=i._h||i._shouldResolveHref||L(o)===L(a),i._h&&(this.isReady=!0),d=this.locale,t.next=18;break;case 18:if(i._h||(this.isSsr=!1),y.ST&&performance.mark("routeChange"),m=i.shallow,b={shallow:void 0!==m&&m},this._inFlightRoute&&this.abortComponentLoad(this._inFlightRoute,b),a=j(O(T(a)?M(a):a,i.locale,this.defaultLocale)),w=C(T(a)?M(a):a,this.locale),this._inFlightRoute=a,P=d!==this.locale,i._h||!this.onlyAHashChange(w)||P){t.next=35;break}return this.asPath=w,e.events.emit("hashChangeStart",a,b),this.changeState(r,o,a,i),this.scrollToHash(w),this.notify(this.components[this.route],null),e.events.emit("hashChangeComplete",a,b),t.abrupt("return",!0);case 35:return E=_.parseRelativeUrl(o),R=E.pathname,k=E.query,t.prev=37,t.next=40,Promise.all([this.pageLoader.getPageList(),p.getClientBuildManifest(),this.pageLoader.getMiddlewareList()]);case 40:D=t.sent,H=s(D,2),F=H[0],H[1].__rewrites,t.next=50;break;case 46:return t.prev=46,t.t0=t.catch(37),window.location.href=a,t.abrupt("return",!1);case 50:if(this.urlIsNew(w)||P||(r="replaceState"),U=a,R=R?f.removePathTrailingSlash(M(R)):R,c&&"/_error"!==R&&(i._shouldResolveHref=!0,E.pathname=B(R,F),E.pathname!==R&&(R=E.pathname,E.pathname=j(R),o=y.formatWithValidation(E))),A(a)){t.next=59;break}t.next=57;break;case 57:return window.location.href=a,t.abrupt("return",!1);case 59:return U=C(M(U),this.locale),t.next=62,this._preflightRequest({as:a,cache:!0,pages:F,pathname:R,query:k});case 62:if("rewrite"!==(W=t.sent).type){t.next=71;break}k=l(l({},k),W.parsedAs.query),U=W.asPath,R=W.resolvedHref,E.pathname=W.resolvedHref,o=y.formatWithValidation(E),t.next=83;break;case 71:if("redirect"!==W.type||!W.newAs){t.next=75;break}return t.abrupt("return",this.change(r,W.newUrl,W.newAs,i));case 75:if("redirect"!==W.type||!W.destination){t.next=80;break}return window.location.href=W.destination,t.abrupt("return",new Promise((function(){})));case 80:if("refresh"!==W.type){t.next=83;break}return window.location.href=a,t.abrupt("return",new Promise((function(){})));case 83:if(G=f.removePathTrailingSlash(R),!g.isDynamicRoute(G)){t.next=99;break}if(V=_.parseRelativeUrl(U),$=V.pathname,X=S.getRouteRegex(G),K=x.getRouteMatcher(X)($),Y=(Q=G===$)?I(G,$,k):{},K&&(!Q||Y.result)){t.next=98;break}if(!((J=Object.keys(X.groups).filter((function(e){return!k[e]}))).length>0)){t.next=96;break}throw new Error((Q?"The provided `href` (".concat(o,") value is missing query values (").concat(J.join(", "),") to be interpolated properly. "):"The provided `as` value (".concat($,") is incompatible with the `href` value (").concat(G,"). "))+"Read more: https://nextjs.org/docs/messages/".concat(Q?"href-interpolation-failed":"incompatible-href-as"));case 96:t.next=99;break;case 98:Q?a=y.formatWithValidation(Object.assign({},V,{pathname:Y.result,query:N(k,Y.params)})):Object.assign(k,K);case 99:return e.events.emit("routeChangeStart",a,b),t.prev=100,t.next=103,this.getRouteInfo(G,R,k,a,U,b);case 103:if(ee=t.sent,re=(te=ee).error,ne=te.props,oe=te.__N_SSG,ae=te.__N_SSP,!oe&&!ae||!ne){t.next=129;break}if(!ne.pageProps||!ne.pageProps.__N_REDIRECT){t.next=115;break}if(!(ie=ne.pageProps.__N_REDIRECT).startsWith("/")||!1===ne.pageProps.__N_REDIRECT_BASE_PATH){t.next=113;break}return(ue=_.parseRelativeUrl(ie)).pathname=B(ue.pathname,F),se=q(this,ie,ie),ce=se.url,le=se.as,t.abrupt("return",this.change(r,ce,le,i));case 113:return window.location.href=ie,t.abrupt("return",new Promise((function(){})));case 115:if(this.isPreview=!!ne.__N_PREVIEW,ne.notFound!==z){t.next=129;break}return t.prev=117,t.next=120,this.fetchComponent("/404");case 120:fe="/404",t.next=126;break;case 123:t.prev=123,t.t1=t.catch(117),fe="/_error";case 126:return t.next=128,this.getRouteInfo(fe,fe,k,a,U,{shallow:!1});case 128:ee=t.sent;case 129:return e.events.emit("beforeHistoryChange",a,b),this.changeState(r,o,a,i),i._h&&"/_error"===R&&500===(null===(v=self.__NEXT_DATA__.props)||void 0===v||null===(Z=v.pageProps)||void 0===Z?void 0:Z.statusCode)&&(null===ne||void 0===ne?void 0:ne.pageProps)&&(ne.pageProps.statusCode=500),pe=i.shallow&&this.route===G,de=null!==(he=i.scroll)&&void 0!==he?he:!pe,ve=de?{x:0,y:0}:null,t.next=137,this.set(G,R,k,w,ee,null!==u&&void 0!==u?u:ve).catch((function(e){if(!e.cancelled)throw e;re=re||e}));case 137:if(!re){t.next=140;break}throw e.events.emit("routeChangeError",re,w,b),re;case 140:return e.events.emit("routeChangeComplete",a,b),t.abrupt("return",!0);case 145:if(t.prev=145,t.t2=t.catch(100),!h.default(t.t2)||!t.t2.cancelled){t.next=149;break}return t.abrupt("return",!1);case 149:throw t.t2;case 150:case"end":return t.stop()}}),t,this,[[37,46],[100,145],[117,123]])})));return function(e,r,n,o,a){return t.apply(this,arguments)}}()},{key:"changeState",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"pushState"===e&&y.getURL()===r||(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,idx:this._idx="pushState"!==e?this._idx:this._idx+1},"",r))}},{key:"handleRouteInfoError",value:function(){var t=a(n.mark((function t(r,o,a,i,u,s){var c,l,f,d;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.cancelled){t.next=2;break}throw r;case 2:if(!p.isAssetError(r)&&!s){t.next=6;break}throw e.events.emit("routeChangeError",r,i,u),window.location.href=i,k();case 6:if(t.prev=6,"undefined"!==typeof c&&"undefined"!==typeof l){t.next=13;break}return t.next=10,this.fetchComponent("/_error");case 10:f=t.sent,c=f.page,l=f.styleSheets;case 13:if((d={props:undefined,Component:c,styleSheets:l,err:r,error:r}).props){t.next=25;break}return t.prev=15,t.next=18,this.getInitialProps(c,{err:r,pathname:o,query:a});case 18:d.props=t.sent,t.next=25;break;case 21:t.prev=21,t.t0=t.catch(15),console.error("Error in error page `getInitialProps`: ",t.t0),d.props={};case 25:return t.abrupt("return",d);case 28:return t.prev=28,t.t1=t.catch(6),t.abrupt("return",this.handleRouteInfoError(h.default(t.t1)?t.t1:new Error(t.t1+""),o,a,i,u,!0));case 31:case"end":return t.stop()}}),t,this,[[6,28],[15,21]])})));return function(e,r,n,o,a,i){return t.apply(this,arguments)}}()},{key:"getRouteInfo",value:function(){var e=a(n.mark((function e(t,r,o,a,i,u){var s,c,l,f,p,d,v,m,g,_,b,w,x=this;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,s=this.components[t],!u.shallow||!s||this.route!==t){e.next=4;break}return e.abrupt("return",s);case 4:if(c=void 0,s&&!("initial"in s)&&(c=s),e.t0=c,e.t0){e.next=11;break}return e.next=10,this.fetchComponent(t).then((function(e){return{Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP,__N_RSC:!!e.page.__next_rsc__}}));case 10:e.t0=e.sent;case 11:l=e.t0,f=l.Component,p=l.__N_SSG,d=l.__N_SSP,v=l.__N_RSC,e.next=17;break;case 17:return(p||d||v)&&(m=this.pageLoader.getDataHref({href:y.formatWithValidation({pathname:r,query:o}),asPath:i,ssg:p,rsc:v,locale:this.locale})),e.next=20,this._getData((function(){return p||d?U(m,x.isSsr,!1,p?x.sdc:x.sdr,!!p&&!x.isPreview):x.getInitialProps(f,{pathname:r,query:o,asPath:a,locale:x.locale,locales:x.locales,defaultLocale:x.defaultLocale})}));case 20:if(g=e.sent,!v){e.next=28;break}return e.next=24,this._getData((function(){return x._getFlightData(m)}));case 24:_=e.sent,b=_.fresh,w=_.data,g.pageProps=Object.assign(g.pageProps,{__flight_serialized__:w,__flight_fresh__:b});case 28:return l.props=g,this.components[t]=l,e.abrupt("return",l);case 33:return e.prev=33,e.t1=e.catch(0),e.abrupt("return",this.handleRouteInfoError(h.default(e.t1)?e.t1:new Error(e.t1+""),r,o,a,u));case 36:case"end":return e.stop()}}),e,this,[[0,33]])})));return function(t,r,n,o,a,i){return e.apply(this,arguments)}}()},{key:"set",value:function(e,t,r,n,o,a){return this.isFallback=!1,this.route=e,this.pathname=t,this.query=r,this.asPath=n,this.notify(o,a)}},{key:"beforePopState",value:function(e){this._bps=e}},{key:"onlyAHashChange",value:function(e){if(!this.asPath)return!1;var t=this.asPath.split("#"),r=s(t,2),n=r[0],o=r[1],a=e.split("#"),i=s(a,2),u=i[0],c=i[1];return!(!c||n!==u||o!==c)||n===u&&o!==c}},{key:"scrollToHash",value:function(e){var t=e.split("#"),r=s(t,2)[1];if(""!==r&&"top"!==r){var n=document.getElementById(r);if(n)n.scrollIntoView();else{var o=document.getElementsByName(r)[0];o&&o.scrollIntoView()}}else window.scrollTo(0,0)}},{key:"urlIsNew",value:function(e){return this.asPath!==e}},{key:"prefetch",value:function(){var e=a(n.mark((function e(t){var r,o,a,i,u,s,c,p,h,d,v,m,g=this,b=arguments;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=b.length>1&&void 0!==b[1]?b[1]:t,o=b.length>2&&void 0!==b[2]?b[2]:{},a=_.parseRelativeUrl(t),i=a.pathname,u=a.query,e.next=7,this.pageLoader.getPageList();case 7:s=e.sent,c=r,e.next=19;break;case 12:h=e.sent,p=h.__rewrites,d=w.default(j(O(r,this.locale)),s,p,a.query,(function(e){return B(e,s)}),this.locales),c=C(M(d.asPath),this.locale),d.matchedPage&&d.resolvedHref&&(i=d.resolvedHref,a.pathname=i,t=y.formatWithValidation(a)),e.next=21;break;case 19:a.pathname=B(a.pathname,s),a.pathname!==i&&(i=a.pathname,a.pathname=i,t=y.formatWithValidation(a));case 21:e.next=23;break;case 23:return e.next=25,this._preflightRequest({as:j(r),cache:!0,pages:s,pathname:i,query:u});case 25:return"rewrite"===(v=e.sent).type&&(a.pathname=v.resolvedHref,i=v.resolvedHref,u=l(l({},u),v.parsedAs.query),c=v.asPath,t=y.formatWithValidation(a)),m=f.removePathTrailingSlash(i),e.next=30,Promise.all([this.pageLoader._isSsg(m).then((function(e){return!!e&&U(g.pageLoader.getDataHref({href:t,asPath:c,ssg:!0,locale:"undefined"!==typeof o.locale?o.locale:g.locale}),!1,!1,g.sdc,!0)})),this.pageLoader[o.priority?"loadPage":"prefetch"](m)]);case 30:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"fetchComponent",value:function(){var e=a(n.mark((function e(t){var r,o,a,i,u=this;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=!1,o=this.clc=function(){r=!0},a=function(){if(r){var e=new Error('Abort fetching component for route: "'.concat(t,'"'));throw e.cancelled=!0,e}o===u.clc&&(u.clc=null)},e.prev=3,e.next=6,this.pageLoader.loadPage(t);case 6:return i=e.sent,a(),e.abrupt("return",i);case 11:throw e.prev=11,e.t0=e.catch(3),a(),e.t0;case 15:case"end":return e.stop()}}),e,this,[[3,11]])})));return function(t){return e.apply(this,arguments)}}()},{key:"_getData",value:function(e){var t=this,r=!1,n=function(){r=!0};return this.clc=n,e().then((function(e){if(n===t.clc&&(t.clc=null),r){var o=new Error("Loading initial props cancelled");throw o.cancelled=!0,o}return e}))}},{key:"_getFlightData",value:function(e){var t=this,r=new URL(e,window.location.href).href;return!this.isPreview&&this.sdc[r]?Promise.resolve({fresh:!1,data:this.sdc[r]}):U(e,!0,!0,this.sdc,!1).then((function(e){return t.sdc[r]=e,{fresh:!0,data:e}}))}},{key:"_preflightRequest",value:function(){var e=a(n.mark((function e(t){var r,o,a,i,u,c,l,p,h,d,m,y;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=C(T(t.as)?M(t.as):t.as,this.locale),e.next=3,this.pageLoader.getMiddlewareList();case 3:if(a=e.sent,a.some((function(e){var t=s(e,2),r=t[0],n=t[1];return x.getRouteMatcher(P.getMiddlewareRegex(r,!n))(o)}))){e.next=7;break}return e.abrupt("return",{type:"next"});case 7:return e.next=9,this._getPreflightData({preflightHref:t.as,shouldCache:t.cache});case 9:if(i=e.sent,!(null===(r=i.rewrite)||void 0===r?void 0:r.startsWith("/"))){e.next=15;break}return u=_.parseRelativeUrl(v.normalizeLocalePath(T(i.rewrite)?M(i.rewrite):i.rewrite,this.locales).pathname),c=f.removePathTrailingSlash(u.pathname),t.pages.includes(c)?(l=!0,p=c):(p=B(c,t.pages))!==u.pathname&&t.pages.includes(p)&&(l=!0),e.abrupt("return",{type:"rewrite",asPath:u.pathname,parsedAs:u,matchedPage:l,resolvedHref:p});case 15:if(!i.redirect){e.next=21;break}if(!i.redirect.startsWith("/")){e.next=20;break}return h=f.removePathTrailingSlash(v.normalizeLocalePath(T(i.redirect)?M(i.redirect):i.redirect,this.locales).pathname),d=q(this,h,h),m=d.url,y=d.as,e.abrupt("return",{type:"redirect",newUrl:m,newAs:y});case 20:return e.abrupt("return",{type:"redirect",destination:i.redirect});case 21:if(!i.refresh||i.ssr){e.next=23;break}return e.abrupt("return",{type:"refresh"});case 23:return e.abrupt("return",{type:"next"});case 24:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_getPreflightData",value:function(e){var t=this,r=e.preflightHref,n=e.shouldCache,o=void 0!==n&&n,a=new URL(r,window.location.href).href;return!this.isPreview&&o&&this.sde[a]?Promise.resolve(this.sde[a]):fetch(r,{method:"HEAD",credentials:"same-origin",headers:{"x-middleware-preflight":"1"}}).then((function(e){if(!e.ok)throw new Error("Failed to preflight request");return{redirect:e.headers.get("Location"),refresh:e.headers.has("x-middleware-refresh"),rewrite:e.headers.get("x-middleware-rewrite"),ssr:!!e.headers.get("x-middleware-ssr")}})).then((function(e){return o&&(t.sde[a]=e),e})).catch((function(e){throw delete t.sde[a],e}))}},{key:"getInitialProps",value:function(e,t){var r=this.components["/_app"].Component,n=this._wrapApp(r);return t.AppTree=n,y.loadGetInitialProps(r,{AppTree:n,Component:e,router:this,ctx:t})}},{key:"abortComponentLoad",value:function(t,r){this.clc&&(e.events.emit("routeChangeError",k(),t,r),this.clc(),this.clc=null)}},{key:"notify",value:function(e,t){return this.sub(e,this.components["/_app"].Component,t)}}]),e}();W.events=m.default(),t.default=W},9422:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatUrl=function(e){var t=e.auth,r=e.hostname,a=e.protocol||"",i=e.pathname||"",u=e.hash||"",s=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?"[".concat(r,"]"):r),e.port&&(c+=":"+e.port));s&&"object"===typeof s&&(s=String(n.urlQueryToSearchParams(s)));var l=e.search||s&&"?".concat(s)||"";a&&":"!==a.substr(-1)&&(a+=":");e.slashes||(!a||o.test(a))&&!1!==c?(c="//"+(c||""),i&&"/"!==i[0]&&(i="/"+i)):c||(c="");u&&"#"!==u[0]&&(u="#"+u);l&&"?"!==l[0]&&(l="?"+l);return i=i.replace(/[?#]/g,encodeURIComponent),l=l.replace("#","%23"),"".concat(a).concat(c).concat(i).concat(l).concat(u)};var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(5880));var o=/https?|ftp|gopher|file/},8792:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r="/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index".concat(e):"".concat(e);return r+t}},3539:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMiddlewareRegex=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=n.getParametrizedRoute(e),o=t?"(?!_next).*":"",a=t?"(?:(/.*)?)":"";if("routeKeys"in r)return"/"===r.parameterizedRoute?{groups:{},namedRegex:"^/".concat(o,"$"),re:new RegExp("^/".concat(o,"$")),routeKeys:{}}:{groups:r.groups,namedRegex:"^".concat(r.namedParameterizedRoute).concat(a,"$"),re:new RegExp("^".concat(r.parameterizedRoute).concat(a,"$")),routeKeys:r.routeKeys};if("/"===r.parameterizedRoute)return{groups:{},re:new RegExp("^/".concat(o,"$"))};return{groups:{},re:new RegExp("^".concat(r.parameterizedRoute).concat(a,"$"))}};var n=r(6927)},9636:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDynamicRoute=function(e){return r.test(e)};var r=/\/\[[^/]+?\](?=\/|$)/},6472:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseRelativeUrl=function(e,t){var r=new URL(n.getLocationOrigin()),a=t?new URL(t,r):r,i=new URL(e,a),u=i.pathname,s=i.searchParams,c=i.search,l=i.hash,f=i.href;if(i.origin!==r.origin)throw new Error("invariant: invalid relative URL, router received ".concat(e));return{pathname:u,query:o.searchParamsToUrlQuery(s),search:c,hash:l,href:f.slice(r.origin.length)}};var n=r(9475),o=r(5880)},5880:function(e,t,r){"use strict";var n=r(3038);function o(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){var t={};return e.forEach((function(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){var t=new URLSearchParams;return Object.entries(e).forEach((function(e){var r=n(e,2),a=r[0],i=r[1];Array.isArray(i)?i.forEach((function(e){return t.append(a,o(e))})):t.set(a,o(i))})),t},t.assign=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=0&&(o||r)&&(t.delta=t.value-(n||0),(t.delta||void 0===n)&&(n=t.value,e(t)))}},l=-1,f=function(){return"hidden"===document.visibilityState?0:1/0},p=function(){u((function(e){var t=e.timeStamp;l=t}),!0)},h=function(){return l<0&&(l=f(),p(),s((function(){setTimeout((function(){l=f(),p()}),0)}))),{get firstHiddenTime(){return l}}},d=function(e,t){var r,n=h(),o=a("FCP"),u=function(e){"first-contentful-paint"===e.name&&(f&&f.disconnect(),e.startTime=0&&r1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var r=function(){_(e,t),o()},n=function(){o()},o=function(){removeEventListener("pointerup",r,y),removeEventListener("pointercancel",n,y)};addEventListener("pointerup",r,y),addEventListener("pointercancel",n,y)}(t,e):_(t,e)}},x=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,w,y)}))},S=new Set;e.getCLS=function(e,t){v||(d((function(e){m=e.value})),v=!0);var r,n=function(t){m>-1&&e(t)},o=a("CLS",0),l=0,f=[],p=function(e){if(!e.hadRecentInput){var t=f[0],n=f[f.length-1];l&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(l+=e.value,f.push(e)):(l=e.value,f=[e]),l>o.value&&(o.value=l,o.entries=f,r())}},h=i("layout-shift",p);h&&(r=c(n,o,t),u((function(){h.takeRecords().map(p),r(!0)})),s((function(){l=0,m=-1,o=a("CLS",0),r=c(n,o,t)})))},e.getFCP=d,e.getFID=function(e,n){var l,f=h(),p=a("FID"),d=function(e){e.startTime1)for(var r=1;r=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),R(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;R(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:O(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),d}},e}(e.exports);try{regeneratorRuntime=t}catch(r){Function("r","regeneratorRuntime = r")(t)}},9887:function(e){"use strict";e.exports=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0}},5919:function(e,t,r){"use strict";t.__esModule=!0,t.useStyleRegistry=t.createStyleRegistry=t.StyleRegistry=void 0;var n=r(8122);t.StyleRegistry=n.StyleRegistry,t.createStyleRegistry=n.createStyleRegistry,t.useStyleRegistry=n.useStyleRegistry},9035:function(e,t,r){"use strict";t.__esModule=!0,t.computeId=function(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;a[n]||(a[n]="jsx-"+(0,o.default)(e+"-"+r));return a[n]},t.computeSelector=function(e,t){"undefined"===typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var r=e+t;a[r]||(a[r]=t.replace(/__jsx-style-dynamic-selector/g,e));return a[r]};var n,o=(n=r(9887))&&n.__esModule?n:{default:n};var a={}},4287:function(e,t,r){"use strict";var n=r(4155);function o(e,t){for(var r=0;r