"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7122],{88146:function(e,t,n){n.d(t,{default:function(){return i.a}});var r=n(16340),i=n.n(r)},99976:function(e,t,n){Object.defineProperty(t,"$",{enumerable:!0,get:function(){return i}});let r=n(43503);function i(e){let{createServerReference:t}=n(18786);return t(e,r.callServer)}},63919:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(24812);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;ro?e.prefetch(t,i):e.prefetch(t,n,r))().catch(e=>{})}}function v(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}let P=o.default.forwardRef(function(e,t){let n,r;let{href:a,as:y,children:P,prefetch:_=null,passHref:R,replace:O,shallow:j,scroll:w,locale:S,onClick:C,onMouseEnter:E,onTouchStart:x,legacyBehavior:I=!1,...M}=e;n=P,I&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let N=o.default.useContext(f.RouterContext),k=o.default.useContext(d.AppRouterContext),Z=null!=N?N:k,T=!N,U=!1!==_,L=null===_?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:A,as:D}=o.default.useMemo(()=>{if(!N){let e=v(a);return{href:e,as:y?v(y):e}}let[e,t]=(0,l.resolveHref)(N,a,!0);return{href:e,as:y?(0,l.resolveHref)(N,y):t||e}},[N,a,y]),W=o.default.useRef(A),$=o.default.useRef(D);I&&(r=o.default.Children.only(n));let B=I?r&&"object"==typeof r&&r.ref:t,[q,z,F]=(0,h.useIntersection)({rootMargin:"200px"}),K=o.default.useCallback(e=>{($.current!==D||W.current!==A)&&(F(),$.current=D,W.current=A),q(e),B&&("function"==typeof B?B(e):"object"==typeof B&&(B.current=e))},[D,B,A,F,q]);o.default.useEffect(()=>{Z&&z&&U&&b(Z,A,D,{locale:S},{kind:L},T)},[D,A,z,S,U,null==N?void 0:N.locale,Z,T,L]);let G={ref:K,onClick(e){I||"function"!=typeof C||C(e),I&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),Z&&!e.defaultPrevented&&function(e,t,n,r,i,l,a,s,c){let{nodeName:f}=e.currentTarget;if("A"===f.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,u.isLocalURL)(n)))return;e.preventDefault();let d=()=>{let e=null==a||a;"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:l,locale:s,scroll:e}):t[i?"replace":"push"](r||n,{scroll:e})};c?o.default.startTransition(d):d()}(e,Z,A,D,O,j,w,S,T)},onMouseEnter(e){I||"function"!=typeof E||E(e),I&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),Z&&(U||!T)&&b(Z,A,D,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},T)},onTouchStart:function(e){I||"function"!=typeof x||x(e),I&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),Z&&(U||!T)&&b(Z,A,D,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},T)}};if((0,s.isAbsoluteUrl)(D))G.href=D;else if(!I||R||"a"===r.type&&!("href"in r.props)){let e=void 0!==S?S:null==N?void 0:N.locale,t=(null==N?void 0:N.isLocaleDomain)&&(0,p.getDomainLocale)(D,e,null==N?void 0:N.locales,null==N?void 0:N.domainLocales);G.href=t||(0,m.addBasePath)((0,c.addLocale)(D,e,null==N?void 0:N.defaultLocale))}return I?o.default.cloneElement(r,G):(0,i.jsx)("a",{...M,...G,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96588:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},58998:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});let r=n(52297),i=n(60121),o=n(24199),l=n(20672),u=n(24812),a=n(85277),s=n(4948),c=n(84903);function f(e,t,n){let f;let d="string"==typeof t?t:(0,i.formatWithValidation)(t),h=d.match(/^[a-zA-Z]{1,}:\/\//),p=h?d.slice(h[0].length):d;if((p.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,l.normalizeRepeatedSlashes)(p);d=(h?h[0]:"")+t}if(!(0,a.isLocalURL)(d))return n?[d]:d;try{f=new URL(d.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(d,f);e.pathname=(0,u.normalizePathTrailingSlash)(e.pathname);let t="";if((0,s.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:l,params:u}=(0,c.interpolateAs)(e.pathname,e.pathname,n);l&&(t=(0,i.formatWithValidation)({pathname:l,hash:e.hash,query:(0,o.omit)(n,u)}))}let l=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return n?[l,t||l]:l}catch(e){return n?[d]:d}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26951:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return a}});let r=n(7653),i=n(96588),o="function"==typeof IntersectionObserver,l=new Map,u=[];function a(e){let{rootRef:t,rootMargin:n,disabled:a}=e,s=a||!o,[c,f]=(0,r.useState)(!1),d=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{d.current=e},[]);return(0,r.useEffect)(()=>{if(o){if(s||c)return;let e=d.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:i,elements:o}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=u.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=l.get(r)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},u.push(n),l.set(n,t),t}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),l.delete(r);let e=u.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&u.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,i.requestIdleCallback)(()=>f(!0));return()=>(0,i.cancelIdleCallback)(e)}},[s,n,t,c,d.current]),[h,c,(0,r.useCallback)(()=>{f(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},78164:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return i}});let n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function i(e){return n.test(e)?e.replace(r,"\\$&"):e}},74125:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(11887)._(n(7653)).default.createContext(null)},60121:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return o},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}});let r=n(79766)._(n(52297)),i=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:n}=e,o=e.protocol||"",l=e.pathname||"",u=e.hash||"",a=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:n&&(s=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(s+=":"+e.port)),a&&"object"==typeof a&&(a=String(r.urlQueryToSearchParams(a)));let c=e.search||a&&"?"+a||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||i.test(o))&&!1!==s?(s="//"+(s||""),l&&"/"!==l[0]&&(l="/"+l)):s||(s=""),u&&"#"!==u[0]&&(u="#"+u),c&&"?"!==c[0]&&(c="?"+c),""+o+s+(l=l.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+u}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return o(e)}},4948:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return i.isDynamicRoute}});let r=n(73602),i=n(23457)},84903:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return o}});let r=n(40059),i=n(82986);function o(e,t,n){let o="",l=(0,i.getRouteRegex)(e),u=l.groups,a=(t!==e?(0,r.getRouteMatcher)(l)(t):"")||n;o=e;let s=Object.keys(u);return s.every(e=>{let t=a[e]||"",{repeat:n,optional:r}=u[e],i="["+(n?"...":"")+e+"]";return r&&(i=(t?"":"/")+"["+i+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in a)&&(o=o.replace(i,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(o=""),{params:s,result:o}}},23457:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return o}});let r=n(29433),i=/\/\[[^/]+?\](?=\/|$)/;function o(e){return(0,r.isInterceptionRouteAppPath)(e)&&(e=(0,r.extractInterceptionRouteInformation)(e).interceptedRoute),i.test(e)}},85277:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return o}});let r=n(20672),i=n(50485);function o(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,i.hasBasePath)(n.pathname)}catch(e){return!1}}},24199:function(e,t){function n(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},52297:function(e,t){function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,i]=e;Array.isArray(i)?i.forEach(e=>t.append(n,r(e))):t.set(n,r(i))}),t}function o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return o},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i}})},40059:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return i}});let r=n(20672);function i(e){let{re:t,groups:n}=e;return e=>{let i=t.exec(e);if(!i)return!1;let o=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},l={};return Object.keys(n).forEach(e=>{let t=n[e],r=i[t.pos];void 0!==r&&(l[e]=~r.indexOf("/")?r.split("/").map(e=>o(e)):t.repeat?[o(r)]:o(r))}),l}}},82986:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getNamedMiddlewareRegex:function(){return d},getNamedRouteRegex:function(){return f},getRouteRegex:function(){return a},parseParameter:function(){return l}});let r=n(29433),i=n(78164),o=n(59244);function l(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function u(e){let t=(0,o.removeTrailingSlash)(e).slice(1).split("/"),n={},u=1;return{parameterizedRoute:t.map(e=>{let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),o=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&o){let{key:e,optional:r,repeat:a}=l(o[1]);return n[e]={pos:u++,repeat:a,optional:r},"/"+(0,i.escapeStringRegexp)(t)+"([^/]+?)"}if(!o)return"/"+(0,i.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:r}=l(o[1]);return n[e]={pos:u++,repeat:t,optional:r},t?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function a(e){let{parameterizedRoute:t,groups:n}=u(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function s(e){let{interceptionMarker:t,getSafeRouteKey:n,segment:r,routeKeys:o,keyPrefix:u}=e,{key:a,optional:s,repeat:c}=l(r),f=a.replace(/\W/g,"");u&&(f=""+u+f);let d=!1;(0===f.length||f.length>30)&&(d=!0),isNaN(parseInt(f.slice(0,1)))||(d=!0),d&&(f=n()),u?o[f]=""+u+a:o[f]=a;let h=t?(0,i.escapeStringRegexp)(t):"";return c?s?"(?:/"+h+"(?<"+f+">.+?))?":"/"+h+"(?<"+f+">.+?)":"/"+h+"(?<"+f+">[^/]+?)"}function c(e,t){let n;let l=(0,o.removeTrailingSlash)(e).slice(1).split("/"),u=(n=0,()=>{let e="",t=++n;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),a={};return{namedParameterizedRoute:l.map(e=>{let n=r.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),o=e.match(/\[((?:\[.*\])|.+)\]/);if(n&&o){let[n]=e.split(o[0]);return s({getSafeRouteKey:u,interceptionMarker:n,segment:o[1],routeKeys:a,keyPrefix:t?"nxtI":void 0})}return o?s({getSafeRouteKey:u,segment:o[1],routeKeys:a,keyPrefix:t?"nxtP":void 0}):"/"+(0,i.escapeStringRegexp)(e)}).join(""),routeKeys:a}}function f(e,t){let n=c(e,t);return{...a(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function d(e,t){let{parameterizedRoute:n}=u(e),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:i}=c(e,!1);return{namedRegex:"^"+i+(r?"(?:(/.*)?)":"")+"$"}}},73602:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let 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);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let i=e[0];if(i.startsWith("[")&&i.endsWith("]")){let n=i.slice(1,-1),l=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),l=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function o(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===i.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(l){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');o(this.optionalRestSlugName,n),this.optionalRestSlugName=n,i="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');o(this.restSlugName,n),this.restSlugName=n,i="[...]"}}else{if(l)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');o(this.slugName,n),this.slugName=n,i="[]"}}this.children.has(i)||this.children.set(i,new n),this.children.get(i)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},20672:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DecodeError:function(){return p},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return y},NormalizeError:function(){return m},PageNotFoundError:function(){return g},SP:function(){return d},ST:function(){return h},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return a},getLocationOrigin:function(){return l},getURL:function(){return u},isAbsoluteUrl:function(){return o},isResSent:function(){return s},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return v}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,i=Array(r),o=0;oi.test(e);function l(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function u(){let{href:e}=window.location,t=l();return e.substring(t.length)}function a(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&s(n))return r;if(!r)throw Error('"'+a(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let d="undefined"!=typeof performance,h=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(e){return JSON.stringify({message:e.message,stack:e.stack})}},95647:function(e,t,n){n.d(t,{Z:function(){return m}});var r=n(86488),i=n(88210),o=n(8052);class l{constructor(e,t,n,r=!1,i=!1,o=-1){this.id=e,this.placementId=t,this.html=n,this.At=r,this.isControl=i,this.Gt=o,this.id=e,this.placementId=t,this.html=n,this.At=r,this.isControl=i,this.Gt=o,this.Ht=!1}Jt(){return this.isControl}bt(){return{id:this.id,o:this.placementId,html:this.html,t:this.At,i:this.isControl,u:this.Gt}}}var u=n(62816),a=n(28662),s=n(36624),c=n(89067),f=n(56733),d=n(22993);class h extends i.Z{constructor(e,t,n,i){super(),this.B=e,this.S=t,this.C=n,this.T=i,this.banners={},this.B=e,this.S=t,this.C=n,this.T=i,this.R=10,this.I=null,this.q=null,this.F=new c.Z,r.ZP.N(this.F),this.k=null,this.D=null}U(e){if(this.L()&&null!=e&&e.banners){this.banners={};let n=e.banners;for(let e in n){var t;let r=n[e],i=null;null!=r&&null!=r.banner&&(i=new l((t=r.banner).id,t.placement_id,t.html,t.is_test_send,t.is_control,t.expires_at)),i&&(this.banners[e]=i)}this.M(),this.F.X(this.banners)}}$(e,t,n,r=!0){var i;let o=()=>{"function"==typeof n&&n()};if(!this.L())return void(null===(i=this.B)||void 0===i||i.A(()=>{this.$(e,t,n)}));let l=this.S;if(!l)return void o();r&&this.G();let c=l.H({},!0),f=[];for(let t of e)f.push({id:t});c.placements=f;let d=l.J(c,u.Z.O.K),h=!1;l.V(c,(r=-1)=>{let i=this.S;if(!i)return void o();let l=new Date().valueOf();u.Z.W(this.C,u.Z.O.K,l),-1!==r&&d.push(["X-Braze-Req-Tokens-Remaining",r.toString()]),a.Z.Y({url:`${i.Z()}/banners/sync`,headers:d,data:c,tt:e=>{if(!i.st(c,e,d))return h=!0,void o();i.it(),this.U(e),h=!1,"function"==typeof t&&t()},error:e=>{i.et(e,"retrieving banners"),h=!0,o()},nt:(r,o)=>{let l;if(this.D=e,h){let e=this.I;(null==e||e<1e3*this.R)&&(e=1e3*this.R),l=Math.min(3e5,(0,s.R)(1e3*this.R,3*e))}i.rt(o,()=>{this.$(e,t,n,!1)},u.Z.O.K,e=>this.ot(e),()=>this.G(),l)}})},u.Z.O.K,n)}ht(){return this.D}lt(e,t){let n={id:e.id};return t&&(n.bid=t),f.Z.ut(d.G.ct,n).tt}G(){null!=this.q&&(clearTimeout(this.q),this.q=null)}ot(e){this.G(),this.q=e}dt(){let e={};this.C&&(e=this.C.ft(o.I.gt.vt));let t={};for(let r in e){var n;let i=null;null!=e[r]&&(i=new l((n=e[r]).id,n.o,n.html,n.t,n.i,n.u)),i&&(t[i.placementId]=i)}return t}M(){var e;if(!this.C)return;let t={};for(let n in this.banners){let r=(null===(e=this.banners[n])||void 0===e?void 0:e.bt())||null;t[n]=r}this.C.Bt(o.I.gt.vt,t),this.jt()}jt(){var e,t;null===(e=this.C)||void 0===e||e.Bt(o.I.gt.yt,null===(t=this.T)||void 0===t?void 0:t.St())}wt(){var e;return(null===(e=this.C)||void 0===e?void 0:e.ft(o.I.gt.yt))||null}Ct(){return this.k}Tt(e){this.k=e}Rt(){var e;let t=null===(e=this.T)||void 0===e?void 0:e.St(),n=this.wt();return null!=n&&t===n}It(){var e;let t=null===(e=this.T)||void 0===e?void 0:e.St(),n=this.wt();return null==n||t===n}qt(e){return this.F.Ft(e)}Nt(){var e;return(null===(e=this.C)||void 0===e?void 0:e.ft(o.I.gt.kt))||{}}xt(e){this.C&&this.C.Bt(o.I.gt.kt,e)}changeUser(){this.zt()}L(){return!!this.B&&(!!this.B.Dt()||(0!==this.B.Et()&&this.zt(),!1))}zt(){this.banners={},this.C&&(this.C.Ut(o.I.gt.vt),this.C.Ut(o.I.gt.kt)),this.F.X({})}}let p={l:!1,provider:null,m:()=>(p.p(),p.provider||(p.provider=new h(r.ZP.v(),r.ZP.g(),r.ZP.j(),r.ZP.P()),r.ZP._(p.provider)),p.provider),p:()=>{p.l||(r.ZP.h(p),p.l=!0)},destroy:()=>{p.provider=null,p.l=!1}};var m=p},60113:function(e,t,n){n.d(t,{E:function(){return l}});var r=n(86488),i=n(95647),o=n(72890);function l(){if(!r.ZP.rr())return;let e={},t=r.ZP.v();if(t&&!t.Dt())return e;let n=i.Z.m().dt();for(let t in n)e[t]=function(e,t){let n=e[t];if(!n)return null;let r=n.Gt,i=new Date().valueOf();return -1!==r&&1e3*r{e(t,n,s)});let d=c.ne();t.length>d&&(r.Z.warn(`Number of placement IDs requested exceeds the max allowed. Trimming placementIds array from length ${t.length} to ${d} (max allowed).`),t=t.slice(0,d)),0!==(t=t.filter(e=>!!(0,u.Ey)(e)||(r.Z.warn(`Placement ID should be a valid utf8 string with no whitespaces, filtering out: ${e}`),!1))).length&&(r.Z.info(`Requesting banners for placement IDs: ${JSON.stringify(t)}`),a.Z.m().$(t,n,s))}}});var r=n(72890),i=n(69717),o=n(86488),l=n(271),u=n(72015),a=n(95647)},83623:function(e,t,n){n.d(t,{o:function(){return l}});var r=n(86488),i=n(95647),o=n(60113);function l(e){var t;if(!r.ZP.rr())return;let n=i.Z.m();if(n.It()){let t=(0,o.E)();t&&"function"==typeof e&&e(t)}let l=n.qt(e);if(!n.Ct()){let e=null===(t=r.ZP.nn())||void 0===t?void 0:t.rn(()=>{let e=n.ht();e&&e.length>0&&n.$(e)});e&&n.Tt(e)}return l}},360:function(e,t,n){n.d(t,{j:function(){return i}});var r=n(86488);function i(e,t){return r.ZP.initialize(e,t)}},2343:function(e,t,n){n.d(t,{U:function(){return a}});var r=n(86488),i=n(28757),o=n(72890),l=n(8334),u=n(39825);function a(){if(!r.ZP.rr())return;let e=r.ZP.nn();if(!e)return;e.openSession();let t=i.Z.Ls.Fs,n=new i.Z(t,o.Z);n.cr(t.Ms.jr,(r,i)=>{let a=i.lastClick,s=i.trackingString;o.Z.info(`Firing push click trigger from ${s} push click at ${a}`);let c=e.lr(a,s),f=function(){u.n.m().Ce(l.Z.hr,[s],c)};e.br(f,f),n.ge(t.Ms.jr,r)}),n.Ns(t.Ms.kr,function(t){e.vr(t)})}}}]);