(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[433],{36528:function(e,t){"use strict";function r(e){return e.endsWith("/")&&"/"!==e?e.slice(0,-1):e}t.__esModule=!0,t.removePathTrailingSlash=r,t.normalizePathTrailingSlash=void 0;var n=r;t.normalizePathTrailingSlash=n},98391:function(e,t){"use strict";t.__esModule=!0,t.cancelIdleCallback=t.requestIdleCallback=void 0;var r="undefined"!==typeof self&&self.requestIdleCallback||function(e){var t=Date.now();return setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)};t.requestIdleCallback=r;var n="undefined"!==typeof self&&self.cancelIdleCallback||function(e){return clearTimeout(e)};t.cancelIdleCallback=n},7599:function(e,t,r){"use strict";var n=r(809),a=r(53848),o=r(38561),i=r(62426);t.__esModule=!0,t.markAssetError=h,t.isAssetError=function(e){return e&&l in e},t.getClientBuildManifest=p,t.default=void 0;i(r(77892));var s=r(98391);function u(e,t,r){var n,a=t.get(e);if(a)return"future"in a?a.future:Promise.resolve(a);var o=new Promise((function(e){n=e}));return t.set(e,a={resolve:n,future:o}),r?r().then((function(e){return n(e),e})):o}var c=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(t){return!1}}();var l=Symbol("ASSET_LOAD_ERROR");function h(e){return Object.defineProperty(e,l,{})}function f(e,t,r){return new Promise((function(n,a){var o=!1;e.then((function(e){o=!0,n(e)})).catch(a),(0,s.requestIdleCallback)((function(){return setTimeout((function(){o||a(r)}),t)}))}))}function p(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):f(new Promise((function(e){var t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=function(){e(self.__BUILD_MANIFEST),t&&t()}})),3800,h(new Error("Failed to load client build manifest")))}function d(e,t){return p().then((function(r){if(!(t in r))throw h(new Error("Failed to lookup route: ".concat(t)));var n=r[t].map((function(t){return e+"/_next/"+encodeURI(t)}));return{scripts:n.filter((function(e){return e.endsWith(".js")})),css:n.filter((function(e){return e.endsWith(".css")}))}}))}var v=function(e){var t=new Map,r=new Map,i=new Map,l=new Map;function p(e){var t=r.get(e);return t||(document.querySelector('script[src^="'.concat(e,'"]'))?Promise.resolve():(r.set(e,t=function(e,t){return new Promise((function(r,n){(t=document.createElement("script")).onload=r,t.onerror=function(){return n(h(new Error("Failed to load script: ".concat(e))))},t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)}))}(e)),t))}function v(e){var t=i.get(e);return t||(i.set(e,t=fetch(e).then((function(t){if(!t.ok)throw new Error("Failed to load stylesheet: ".concat(e));return t.text().then((function(t){return{href:e,content:t}}))})).catch((function(e){throw h(e)}))),t)}return{whenEntrypoint:function(e){return u(e,t)},onEntrypoint:function(e,r){Promise.resolve(r).then((function(e){return e()})).then((function(e){return{component:e&&e.default||e,exports:e}}),(function(e){return{error:e}})).then((function(r){var n=t.get(e);t.set(e,r),n&&"resolve"in n&&n.resolve(r)}))},loadRoute:function(r){var i=this;return u(r,l,o(n.mark((function o(){var s,u,c,l,m,g,y,_;return n.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,d(e,r);case 3:return s=n.sent,u=s.scripts,c=s.css,n.next=8,Promise.all([t.has(r)?[]:Promise.all(u.map(p)),Promise.all(c.map(v))]);case 8:return l=n.sent,m=a(l,2),g=m[1],n.next=13,f(i.whenEntrypoint(r),3800,h(new Error("Route did not complete loading: ".concat(r))));case 13:return y=n.sent,_=Object.assign({styles:g},y),n.abrupt("return","error"in y?y:_);case 18:return n.prev=18,n.t0=n.catch(0),n.abrupt("return",{error:n.t0});case 21:case"end":return n.stop()}}),o,null,[[0,18]])}))))},prefetch:function(t){var r,n=this;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():d(e,t).then((function(e){return Promise.all(c?e.scripts.map((function(e){return t=e,r="script",new Promise((function(e,a){if(document.querySelector('link[rel="prefetch"][href^="'.concat(t,'"]')))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=a,n.href=t,document.head.appendChild(n)}));var t,r,n})):[])})).then((function(){(0,s.requestIdleCallback)((function(){return n.loadRoute(t)}))})).catch((function(){}))}}};t.default=v},72441:function(e,t,r){"use strict";var n=r(41280);function a(e,t){var r;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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,s=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r>>0,1)},emit:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a-1||r>-1)&&(e=e.substring(0,t>-1?t:r)),e}function k(e){return""===(e=x(e))||e.startsWith("/")}function S(e){return function(e,t){return t&&e.startsWith("/")?"/"===e?(0,u.normalizePathTrailingSlash)(t):"".concat(t).concat("/"===x(e)?e.substring(1):e):e}(e,"")}function R(e){return(e=e.slice("".length)).startsWith("/")||(e="/".concat(e)),e}function C(e){if(e.startsWith("/")||e.startsWith("#"))return!0;try{var t=(0,f.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&k(r.pathname)}catch(n){return!1}}function E(e,t,r){var n="",a=(0,y.getRouteRegex)(e),o=a.groups,i=(t!==e?(0,g.getRouteMatcher)(a)(t):"")||r;n=e;var s=Object.keys(o);return s.every((function(e){var t=i[e]||"",r=o[e],a=r.repeat,s=r.optional,u="[".concat(a?"...":"").concat(e,"]");return s&&(u="".concat(t?"":"/","[").concat(u,"]")),a&&!Array.isArray(t)&&(t=[t]),(s||e in i)&&(n=n.replace(u,a?t.map((function(e){return encodeURIComponent(e)})).join("/"):encodeURIComponent(t))||"/")}))||(n=""),{params:s,result:n}}function L(e,t){var r={};return Object.keys(e).forEach((function(n){t.includes(n)||(r[n]=e[n])})),r}function I(e,t,r){var n=new URL(e,"http://n"),a="string"===typeof t?t:(0,f.formatWithValidation)(t);if(!C(a))return r?[a]:a;try{var o=new URL(a,n);o.pathname=(0,u.normalizePathTrailingSlash)(o.pathname);var i="";if((0,p.isDynamicRoute)(o.pathname)&&o.searchParams&&r){var s=(0,v.searchParamsToUrlQuery)(o.searchParams),c=E(o.pathname,o.pathname,s),l=c.result,h=c.params;l&&(i=(0,f.formatWithValidation)({pathname:l,hash:o.hash,query:L(s,h)}))}var d=o.origin===n.origin?o.href.slice(o.origin.length):o.href;return r?[d,i||d]:d}catch(m){return r?[a]:a}}function A(e){var t=(0,f.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function O(e,t,r){var n=I(e.pathname,t,!0),a=s(n,2),o=a[0],i=a[1],u=(0,f.getLocationOrigin)(),c=o.startsWith(u),l=i&&i.startsWith(u);o=A(o),i=i?A(i):i;var h=c?o:S(o),p=r?A(I(e.pathname,r)):i||o;return{url:h,as:l?p:S(p)}}function T(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=e.pathname,a=(0,u.removePathTrailingSlash)((0,l.denormalizePagePath)(r?R(n):n));return"/404"===a||"/_error"===a||(t.includes(a)||t.some((function(t){if((0,p.isDynamicRoute)(t)&&(0,y.getRouteRegex)(t).re.test(a))return e.pathname=r?S(t):t,!0})),e.pathname=(0,u.removePathTrailingSlash)(e.pathname)),e}var M=Symbol("SSG_DATA_NOT_FOUND");function j(e,t){return fetch(e,{credentials:"same-origin"}).then((function(r){if(!r.ok){if(t>1&&r.status>=500)return j(e,t-1);if(404===r.status)return r.json().then((function(e){if(e.notFound)return{notFound:M};throw new Error("Failed to load static props")}));throw new Error("Failed to load static props")}return r.json()}))}function D(e,t){return j(e,t?3:1).catch((function(e){throw t||(0,c.markAssetError)(e),e}))}var U=function(){function e(t,r,n,a){var i=this,s=a.initialProps,c=a.pageLoader,l=a.App,h=a.wrapApp,v=a.Component,m=a.err,g=a.subscription,y=a.isFallback,_=a.locale,b=(a.locales,a.defaultLocale,a.domainLocales,a.isPreview);o(this,e),this.route=void 0,this.pathname=void 0,this.query=void 0,this.asPath=void 0,this.basePath=void 0,this.components=void 0,this.sdc={},this.sdr={},this.sub=void 0,this.clc=void 0,this.pageLoader=void 0,this._bps=void 0,this.events=void 0,this._wrapApp=void 0,this.isSsr=void 0,this.isFallback=void 0,this._inFlightRoute=void 0,this._shallow=void 0,this.locale=void 0,this.locales=void 0,this.defaultLocale=void 0,this.domainLocales=void 0,this.isReady=void 0,this.isPreview=void 0,this.isLocaleDomain=void 0,this._idx=0,this.onPopState=function(e){var t=e.state;if(t){if(t.__N){var r=t.url,n=t.as,a=t.options,o=t.idx;i._idx=o;var s=(0,d.parseRelativeUrl)(r).pathname;i.isSsr&&n===i.asPath&&s===i.pathname||i._bps&&!i._bps(t)||i.change("replaceState",r,n,Object.assign({},a,{shallow:a.shallow&&i._shallow,locale:a.locale||i.defaultLocale}),undefined)}}else{var u=i.pathname,c=i.query;i.changeState("replaceState",(0,f.formatWithValidation)({pathname:S(u),query:c}),(0,f.getURL)())}},this.route=(0,u.removePathTrailingSlash)(t),this.components={},"/_error"!==t&&(this.components[this.route]={Component:v,initial:!0,props:s,err:m,__N_SSG:s&&s.__N_SSG,__N_SSP:s&&s.__N_SSP}),this.components["/_app"]={Component:l,styleSheets:[]},this.events=e.events,this.pageLoader=c,this.pathname=t,this.query=r;var w=(0,p.isDynamicRoute)(t)&&self.__NEXT_DATA__.autoExport;this.asPath=w?t:n,this.basePath="",this.sub=g,this.clc=null,this._wrapApp=h,this.isSsr=!0,this.isFallback=y,this.isReady=!(!self.__NEXT_DATA__.gssp&&!self.__NEXT_DATA__.gip&&(w||self.location.search)),this.isPreview=!!b,this.isLocaleDomain=!1,"//"!==n.substr(0,2)&&this.changeState("replaceState",(0,f.formatWithValidation)({pathname:S(t),query:r}),(0,f.getURL)(),{locale:_}),window.addEventListener("popstate",this.onPopState)}return i(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=O(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=O(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,a,o,i,s){var l,h,v,m,_,b,x,I,A,j,D,U,N,W,F,q,B,V,H,G,z,$,Q,X,K,Y,J,Z,ee,te,re,ne,ae,oe,ie;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(C(a)){t.next=3;break}return window.location.href=a,t.abrupt("return",!1);case 3:i._h&&(this.isReady=!0),i.scroll=!(null!=(l=i.scroll)&&!l),h=i.locale!==this.locale,t.next=18;break;case 18:if(i._h||(this.isSsr=!1),f.ST&&performance.mark("routeChange"),v=i.shallow,m={shallow:void 0!==v&&v},this._inFlightRoute&&this.abortComponentLoad(this._inFlightRoute,m),o=S(w(k(o)?R(o):o,i.locale,this.defaultLocale)),_=P(k(o)?R(o):o,this.locale),this._inFlightRoute=o,i._h||!this.onlyAHashChange(_)){t.next=34;break}return this.asPath=_,e.events.emit("hashChangeStart",o,m),this.changeState(r,a,o,i),this.scrollToHash(_),this.notify(this.components[this.route],null),e.events.emit("hashChangeComplete",o,m),t.abrupt("return",!0);case 34:return b=(0,d.parseRelativeUrl)(a),I=(x=b).pathname,A=x.query,t.prev=36,t.next=39,this.pageLoader.getPageList();case 39:return j=t.sent,t.next=42,(0,c.getClientBuildManifest)();case 42:D=t.sent,D.__rewrites,t.next=50;break;case 46:return t.prev=46,t.t0=t.catch(36),window.location.href=o,t.abrupt("return",!1);case 50:if((b=T(b,j)).pathname!==I&&(I=b.pathname,a=(0,f.formatWithValidation)(b)),I=I?(0,u.removePathTrailingSlash)(R(I)):I,this.urlIsNew(_)||h||(r="replaceState"),U=(0,u.removePathTrailingSlash)(I),N=o,C(o)){t.next=62;break}t.next=60;break;case 60:return window.location.href=o,t.abrupt("return",!1);case 62:if(N=P(R(N),this.locale),!(0,p.isDynamicRoute)(U)){t.next=78;break}if(W=(0,d.parseRelativeUrl)(N),F=W.pathname,q=(0,y.getRouteRegex)(U),B=(0,g.getRouteMatcher)(q)(F),H=(V=U===F)?E(U,F,A):{},B&&(!V||H.result)){t.next=77;break}if(!((G=Object.keys(q.groups).filter((function(e){return!A[e]}))).length>0)){t.next=75;break}throw new Error((V?"The provided `href` (".concat(a,") value is missing query values (").concat(G.join(", "),") to be interpolated properly. "):"The provided `as` value (".concat(F,") is incompatible with the `href` value (").concat(U,"). "))+"Read more: https://err.sh/vercel/next.js/".concat(V?"href-interpolation-failed":"incompatible-href-as"));case 75:t.next=78;break;case 77:V?o=(0,f.formatWithValidation)(Object.assign({},W,{pathname:H.result,query:L(A,H.params)})):Object.assign(A,B);case 78:return e.events.emit("routeChangeStart",o,m),t.prev=79,t.next=82,this.getRouteInfo(U,I,A,o,N,m);case 82:if(Q=t.sent,K=(X=Q).error,Y=X.props,J=X.__N_SSG,Z=X.__N_SSP,!J&&!Z||!Y){t.next=109;break}if(!Y.pageProps||!Y.pageProps.__N_REDIRECT){t.next=95;break}if(!(ee=Y.pageProps.__N_REDIRECT).startsWith("/")){t.next=93;break}if(T(te=(0,d.parseRelativeUrl)(ee),j,!1),!j.includes(te.pathname)){t.next=93;break}return re=O(this,ee,ee),ne=re.url,ae=re.as,t.abrupt("return",this.change(r,ne,ae,i));case 93:return window.location.href=ee,t.abrupt("return",new Promise((function(){})));case 95:if(this.isPreview=!!Y.__N_PREVIEW,Y.notFound!==M){t.next=109;break}return t.prev=97,t.next=100,this.fetchComponent("/404");case 100:oe="/404",t.next=106;break;case 103:t.prev=103,t.t1=t.catch(97),oe="/_error";case 106:return t.next=108,this.getRouteInfo(oe,oe,A,o,N,{shallow:!1});case 108:Q=t.sent;case 109:return e.events.emit("beforeHistoryChange",o,m),this.changeState(r,a,o,i),ie=i.shallow&&this.route===U,i._h&&"/_error"===I&&500===(null==(z=self.__NEXT_DATA__.props)||null==($=z.pageProps)?void 0:$.statusCode)&&null!=Y&&Y.pageProps&&(Y.pageProps.statusCode=500),t.next=116,this.set(U,I,A,_,Q,s||(ie||!i.scroll?null:{x:0,y:0})).catch((function(e){if(!e.cancelled)throw e;K=K||e}));case 116:if(!K){t.next=119;break}throw e.events.emit("routeChangeError",K,_,m),K;case 119:return e.events.emit("routeChangeComplete",o,m),t.abrupt("return",!0);case 124:if(t.prev=124,t.t2=t.catch(79),!t.t2.cancelled){t.next=128;break}return t.abrupt("return",!1);case 128:throw t.t2;case 129:case"end":return t.stop()}}),t,this,[[36,46],[79,124],[97,103]])})));return function(e,r,n,a,o){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&&(0,f.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,a,o,i,s,u){var l,h,f,p;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(!(0,c.isAssetError)(r)&&!u){t.next=6;break}throw e.events.emit("routeChangeError",r,i,s),window.location.href=i,b();case 6:if(t.prev=6,"undefined"!==typeof l&&"undefined"!==typeof h){t.next=14;break}return t.next=11,this.fetchComponent("/_error");case 11:f=t.sent,l=f.page,h=f.styleSheets;case 14:if((p={props:undefined,Component:l,styleSheets:h,err:r,error:r}).props){t.next=26;break}return t.prev=16,t.next=19,this.getInitialProps(l,{err:r,pathname:a,query:o});case 19:p.props=t.sent,t.next=26;break;case 22:t.prev=22,t.t0=t.catch(16),console.error("Error in error page `getInitialProps`: ",t.t0),p.props={};case 26:return t.abrupt("return",p);case 29:return t.prev=29,t.t1=t.catch(6),t.abrupt("return",this.handleRouteInfoError(t.t1,a,o,i,s,!0));case 32:case"end":return t.stop()}}),t,this,[[6,29],[16,22]])})));return function(e,r,n,a,o,i){return t.apply(this,arguments)}}()},{key:"getRouteInfo",value:function(){var e=a(n.mark((function e(t,r,a,o,i,s){var u,c,l,h,p,d,v,m,g=this;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,u=this.components[t],!s.shallow||!u||this.route!==t){e.next=4;break}return e.abrupt("return",u);case 4:if(!(c=u&&"initial"in u?void 0:u)){e.next=9;break}e.t0=c,e.next=12;break;case 9:return e.next=11,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}}));case 11:e.t0=e.sent;case 12:l=e.t0,h=l.Component,p=l.__N_SSG,d=l.__N_SSP,e.next=18;break;case 18:return(p||d)&&(v=this.pageLoader.getDataHref((0,f.formatWithValidation)({pathname:r,query:a}),i,p,this.locale)),e.next=21,this._getData((function(){return p?g._getStaticData(v):d?g._getServerData(v):g.getInitialProps(h,{pathname:r,query:a,asPath:o})}));case 21:return m=e.sent,l.props=m,this.components[t]=l,e.abrupt("return",l);case 27:return e.prev=27,e.t1=e.catch(0),e.abrupt("return",this.handleRouteInfoError(e.t1,r,a,o,s));case 30:case"end":return e.stop()}}),e,this,[[0,27]])})));return function(t,r,n,a,o,i){return e.apply(this,arguments)}}()},{key:"set",value:function(e,t,r,n,a,o){return this.isFallback=!1,this.route=e,this.pathname=t,this.query=r,this.asPath=n,this.notify(a,o)}},{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],a=r[1],o=e.split("#"),i=s(o,2),u=i[0],c=i[1];return!(!c||n!==u||a!==c)||n===u&&a!==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 a=document.getElementsByName(r)[0];a&&a.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,a,o,i,s,c,l,h,p,v,g=this,y=arguments;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=y.length>1&&void 0!==y[1]?y[1]:t,a=y.length>2&&void 0!==y[2]?y[2]:{},o=(0,d.parseRelativeUrl)(t),i=o.pathname,e.next=7,this.pageLoader.getPageList();case 7:s=e.sent,(o=T(o,s,!1)).pathname!==i&&(i=o.pathname,t=(0,f.formatWithValidation)(o)),c=(0,u.removePathTrailingSlash)(i),l=r,e.next=19;break;case 15:p=e.sent,h=p.__rewrites,(v=(0,m.default)(S(w(R(r),this.locale)),s,h,o.query,(function(e){return T({pathname:e},s).pathname}),this.locales)).matchedPage&&v.resolvedHref&&(c=v.resolvedHref,i=v.resolvedHref,o.pathname=i,t=(0,f.formatWithValidation)(o),l=v.asPath);case 19:e.next=21;break;case 21:return e.next=23,Promise.all([this.pageLoader._isSsg(t).then((function(e){return!!e&&g._getStaticData(g.pageLoader.getDataHref(t,l,!0,"undefined"!==typeof a.locale?a.locale:g.locale))})),this.pageLoader[a.priority?"loadPage":"prefetch"](c)]);case 23: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,a,o,i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=!1,a=this.clc=function(){r=!0},e.next=4,this.pageLoader.loadPage(t);case 4:if(o=e.sent,!r){e.next=9;break}throw(i=new Error('Abort fetching component for route: "'.concat(t,'"'))).cancelled=!0,i;case 9:return a===this.clc&&(this.clc=null),e.abrupt("return",o);case 11:case"end":return e.stop()}}),e,this)})));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 a=new Error("Loading initial props cancelled");throw a.cancelled=!0,a}return e}))}},{key:"_getStaticData",value:function(e){var t=this,r=new URL(e,window.location.href).href;return!this.isPreview&&this.sdc[r]?Promise.resolve(this.sdc[r]):D(e,this.isSsr).then((function(e){return t.sdc[r]=e,e}))}},{key:"_getServerData",value:function(e){var t=this,r=new URL(e,window.location.href).href;return this.sdr[r]?this.sdr[r]:this.sdr[r]=D(e,this.isSsr).then((function(e){return delete t.sdr[r],e})).catch((function(e){throw delete t.sdr[r],e}))}},{key:"getInitialProps",value:function(e,t){var r=this.components["/_app"].Component,n=this._wrapApp(r);return t.AppTree=n,(0,f.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}},{key:"abortComponentLoad",value:function(t,r){this.clc&&(e.events.emit("routeChangeError",b(),t,r),this.clc(),this.clc=null)}},{key:"notify",value:function(e,t){return this.sub(e,this.components["/_app"].Component,t)}}]),e}();t.default=U,U.events=(0,h.default)()},7687:function(e,t,r){"use strict";t.__esModule=!0,t.formatUrl=function(e){var t=e.auth,r=e.hostname,a=e.protocol||"",i=e.pathname||"",s=e.hash||"",u=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));u&&"object"===typeof u&&(u=String(n.urlQueryToSearchParams(u)));var l=e.search||u&&"?".concat(u)||"";a&&":"!==a.substr(-1)&&(a+=":");e.slashes||(!a||o.test(a))&&!1!==c?(c="//"+(c||""),i&&"/"!==i[0]&&(i="/"+i)):c||(c="");s&&"#"!==s[0]&&(s="#"+s);l&&"?"!==l[0]&&(l="?"+l);return i=i.replace(/[?#]/g,encodeURIComponent),l=l.replace("#","%23"),"".concat(a).concat(c).concat(i).concat(l).concat(s)};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(r(74915));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}var o=/https?|ftp|gopher|file/},77892:function(e,t){"use strict";t.__esModule=!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}},93288:function(e,t){"use strict";t.__esModule=!0,t.isDynamicRoute=function(e){return r.test(e)};var r=/\/\[[^/]+?\](?=\/|$)/},94436:function(e,t,r){"use strict";t.__esModule=!0,t.parseRelativeUrl=function(e,t){var r=new URL((0,n.getLocationOrigin)()),o=t?new URL(t,r):r,i=new URL(e,o),s=i.pathname,u=i.searchParams,c=i.search,l=i.hash,h=i.href;if(i.origin!==r.origin)throw new Error("invariant: invalid relative URL, router received ".concat(e));return{pathname:s,query:(0,a.searchParamsToUrlQuery)(u),search:c,hash:l,href:h.slice(r.origin.length)}};var n=r(13937),a=r(74915)},74915:function(e,t,r){"use strict";var n=r(53848);function a(e){return"string"===typeof e||"number"===typeof e&&!isNaN(e)||"boolean"===typeof e?String(e):""}t.__esModule=!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),o=r[0],i=r[1];Array.isArray(i)?i.forEach((function(e){return t.append(o,a(e))})):t.set(o,a(i))})),t},t.assign=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n