UNPKG

next

Version:

The React Framework

1 lines 119 kB
(()=>{var e,t,r={"./dist/compiled/@edge-runtime/cookies/index.js":function(e){"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,i={},s={RequestCookies:()=>p,ResponseCookies:()=>f,parseCookie:()=>c,parseSetCookie:()=>u,stringifyCookie:()=>l};for(var o in s)t(i,o,{get:s[o],enumerable:!0});function l(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),a=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?a:`${a}; ${r.join("; ")}`}function c(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[a,n]=[r.slice(0,e),r.slice(e+1)];try{t.set(a,decodeURIComponent(null!=n?n:"true"))}catch{}}return t}function u(e){if(!e)return;let[[t,r],...a]=c(e),{domain:n,expires:i,httponly:s,maxage:o,path:l,samesite:u,secure:p,partitioned:f,priority:m}=Object.fromEntries(a.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var g,v,y={name:t,value:decodeURIComponent(r),domain:n,...i&&{expires:new Date(i)},...s&&{httpOnly:!0},..."string"==typeof o&&{maxAge:Number(o)},path:l,...u&&{sameSite:d.includes(g=(g=u).toLowerCase())?g:void 0},...p&&{secure:!0},...m&&{priority:h.includes(v=(v=m).toLowerCase())?v:void 0},...f&&{partitioned:!0}};let e={};for(let t in y)y[t]&&(e[t]=y[t]);return e}}e.exports=((e,i,s,o)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let s of a(i))n.call(e,s)||void 0===s||t(e,s,{get:()=>i[s],enumerable:!(o=r(i,s))||o.enumerable});return e})(t({},"__esModule",{value:!0}),i);var d=["strict","lax","none"],h=["low","medium","high"],p=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,r]of c(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let a="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===a).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,a=this._parsed;return a.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(a).map(([e,t])=>l(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>l(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},f=class{constructor(e){var t,r,a;this._parsed=new Map,this._headers=e;const n=null!=(a=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?a:[];for(const e of Array.isArray(n)?n:function(e){if(!e)return[];var t,r,a,n,i,s=[],o=0;function l(){for(;o<e.length&&/\s/.test(e.charAt(o));)o+=1;return o<e.length}for(;o<e.length;){for(t=o,i=!1;l();)if(","===(r=e.charAt(o))){for(a=o,o+=1,l(),n=o;o<e.length&&"="!==(r=e.charAt(o))&&";"!==r&&","!==r;)o+=1;o<e.length&&"="===e.charAt(o)?(i=!0,o=n,s.push(e.substring(t,a)),t=o):o=a+1}else o+=1;(!i||o>=e.length)&&s.push(e.substring(t,e.length))}return s}(n)){const t=u(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let a="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===a)}has(e){return this._parsed.has(e)}set(...e){let[t,r,a]=1===e.length?[e[0].name,e[0].value,e[0]]:e,n=this._parsed;return n.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...a})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=l(r);t.append("set-cookie",e)}}(n,this._headers),this}delete(...e){let[t,r]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(l).join("; ")}}},"./dist/compiled/cookie/index.js":function(e){(()=>{"use strict";"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var t,r,a,n,i={};i.parse=function(e,r){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var n={},i=e.split(a),s=(r||{}).decode||t,o=0;o<i.length;o++){var l=i[o],c=l.indexOf("=");if(!(c<0)){var u=l.substr(0,c).trim(),d=l.substr(++c,l.length).trim();'"'==d[0]&&(d=d.slice(1,-1)),void 0==n[u]&&(n[u]=function(e,t){try{return t(e)}catch(t){return e}}(d,s))}}return n},i.serialize=function(e,t,a){var i=a||{},s=i.encode||r;if("function"!=typeof s)throw TypeError("option encode is invalid");if(!n.test(e))throw TypeError("argument name is invalid");var o=s(t);if(o&&!n.test(o))throw TypeError("argument val is invalid");var l=e+"="+o;if(null!=i.maxAge){var c=i.maxAge-0;if(isNaN(c)||!isFinite(c))throw TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(c)}if(i.domain){if(!n.test(i.domain))throw TypeError("option domain is invalid");l+="; Domain="+i.domain}if(i.path){if(!n.test(i.path))throw TypeError("option path is invalid");l+="; Path="+i.path}if(i.expires){if("function"!=typeof i.expires.toUTCString)throw TypeError("option expires is invalid");l+="; Expires="+i.expires.toUTCString()}if(i.httpOnly&&(l+="; HttpOnly"),i.secure&&(l+="; Secure"),i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:case"strict":l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"none":l+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return l},t=decodeURIComponent,r=encodeURIComponent,a=/; */,n=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,e.exports=i})()},"./dist/compiled/path-to-regexp/index.js":function(e){(()=>{"use strict";"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var t={};(()=>{function e(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r<e.length;){var a=e[r];if("*"===a||"+"===a||"?"===a){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if("\\"===a){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if("{"===a){t.push({type:"OPEN",index:r,value:e[r++]});continue}if("}"===a){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(":"===a){for(var n="",i=r+1;i<e.length;){var s=e.charCodeAt(i);if(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||95===s){n+=e[i++];continue}break}if(!n)throw TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:n}),r=i;continue}if("("===a){var o=1,l="",i=r+1;if("?"===e[i])throw TypeError('Pattern cannot start with "?" at '.concat(i));for(;i<e.length;){if("\\"===e[i]){l+=e[i++]+e[i++];continue}if(")"===e[i]){if(0==--o){i++;break}}else if("("===e[i]&&(o++,"?"!==e[i+1]))throw TypeError("Capturing groups are not allowed at ".concat(i));l+=e[i++]}if(o)throw TypeError("Unbalanced pattern at ".concat(r));if(!l)throw TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:l}),r=i;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),a=t.prefixes,i=void 0===a?"./":a,s=t.delimiter,o=void 0===s?"/#?":s,l=[],c=0,u=0,d="",h=function(e){if(u<r.length&&r[u].type===e)return r[u++].value},p=function(e){var t=h(e);if(void 0!==t)return t;var a=r[u],n=a.type,i=a.index;throw TypeError("Unexpected ".concat(n," at ").concat(i,", expected ").concat(e))},f=function(){for(var e,t="";e=h("CHAR")||h("ESCAPED_CHAR");)t+=e;return t},m=function(e){for(var t=0;t<o.length;t++){var r=o[t];if(e.indexOf(r)>-1)return!0}return!1},g=function(e){var t=l[l.length-1],r=e||(t&&"string"==typeof t?t:"");if(t&&!r)throw TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!r||m(r)?"[^".concat(n(o),"]+?"):"(?:(?!".concat(n(r),")[^").concat(n(o),"])+?")};u<r.length;){var v=h("CHAR"),y=h("NAME"),b=h("PATTERN");if(y||b){var E=v||"";-1===i.indexOf(E)&&(d+=E,E=""),d&&(l.push(d),d=""),l.push({name:y||c++,prefix:E,suffix:"",pattern:b||g(E),modifier:h("MODIFIER")||""});continue}var x=v||h("ESCAPED_CHAR");if(x){d+=x;continue}if(d&&(l.push(d),d=""),h("OPEN")){var E=f(),_=h("NAME")||"",P=h("PATTERN")||"",R=f();p("CLOSE"),l.push({name:_||(P?c++:""),pattern:_&&!P?g(E):P,prefix:E,suffix:R,modifier:h("MODIFIER")||""});continue}p("END")}return l}function r(e,t){void 0===t&&(t={});var r=i(t),a=t.encode,n=void 0===a?function(e){return e}:a,s=t.validate,o=void 0===s||s,l=e.map(function(e){if("object"==typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),r)});return function(t){for(var r="",a=0;a<e.length;a++){var i=e[a];if("string"==typeof i){r+=i;continue}var s=t?t[i.name]:void 0,c="?"===i.modifier||"*"===i.modifier,u="*"===i.modifier||"+"===i.modifier;if(Array.isArray(s)){if(!u)throw TypeError('Expected "'.concat(i.name,'" to not repeat, but got an array'));if(0===s.length){if(c)continue;throw TypeError('Expected "'.concat(i.name,'" to not be empty'))}for(var d=0;d<s.length;d++){var h=n(s[d],i);if(o&&!l[a].test(h))throw TypeError('Expected all "'.concat(i.name,'" to match "').concat(i.pattern,'", but got "').concat(h,'"'));r+=i.prefix+h+i.suffix}continue}if("string"==typeof s||"number"==typeof s){var h=n(String(s),i);if(o&&!l[a].test(h))throw TypeError('Expected "'.concat(i.name,'" to match "').concat(i.pattern,'", but got "').concat(h,'"'));r+=i.prefix+h+i.suffix;continue}if(!c){var p=u?"an array":"a string";throw TypeError('Expected "'.concat(i.name,'" to be ').concat(p))}}return r}}function a(e,t,r){void 0===r&&(r={});var a=r.decode,n=void 0===a?function(e){return e}:a;return function(r){var a=e.exec(r);if(!a)return!1;for(var i=a[0],s=a.index,o=Object.create(null),l=1;l<a.length;l++)!function(e){if(void 0!==a[e]){var r=t[e-1];"*"===r.modifier||"+"===r.modifier?o[r.name]=a[e].split(r.prefix+r.suffix).map(function(e){return n(e,r)}):o[r.name]=n(a[e],r)}}(l);return{path:i,index:s,params:o}}}function n(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function i(e){return e&&e.sensitive?"":"i"}function s(e,t,r){void 0===r&&(r={});for(var a=r.strict,s=void 0!==a&&a,o=r.start,l=r.end,c=r.encode,u=void 0===c?function(e){return e}:c,d=r.delimiter,h=r.endsWith,p="[".concat(n(void 0===h?"":h),"]|$"),f="[".concat(n(void 0===d?"/#?":d),"]"),m=void 0===o||o?"^":"",g=0;g<e.length;g++){var v=e[g];if("string"==typeof v)m+=n(u(v));else{var y=n(u(v.prefix)),b=n(u(v.suffix));if(v.pattern)if(t&&t.push(v),y||b)if("+"===v.modifier||"*"===v.modifier){var E="*"===v.modifier?"?":"";m+="(?:".concat(y,"((?:").concat(v.pattern,")(?:").concat(b).concat(y,"(?:").concat(v.pattern,"))*)").concat(b,")").concat(E)}else m+="(?:".concat(y,"(").concat(v.pattern,")").concat(b,")").concat(v.modifier);else{if("+"===v.modifier||"*"===v.modifier)throw TypeError('Can not repeat "'.concat(v.name,'" without a prefix and suffix'));m+="(".concat(v.pattern,")").concat(v.modifier)}else m+="(?:".concat(y).concat(b,")").concat(v.modifier)}}if(void 0===l||l)s||(m+="".concat(f,"?")),m+=r.endsWith?"(?=".concat(p,")"):"$";else{var x=e[e.length-1],_="string"==typeof x?f.indexOf(x[x.length-1])>-1:void 0===x;s||(m+="(?:".concat(f,"(?=").concat(p,"))?")),_||(m+="(?=".concat(f,"|").concat(p,")"))}return new RegExp(m,i(r))}function o(t,r,a){if(t instanceof RegExp){var n;if(!r)return t;for(var l=/\((?:\?<(.*?)>)?(?!\?)/g,c=0,u=l.exec(t.source);u;)r.push({name:u[1]||c++,prefix:"",suffix:"",modifier:"",pattern:""}),u=l.exec(t.source);return t}return Array.isArray(t)?(n=t.map(function(e){return o(e,r,a).source}),new RegExp("(?:".concat(n.join("|"),")"),i(a))):s(e(t,a),r,a)}Object.defineProperty(t,"__esModule",{value:!0}),t.pathToRegexp=t.tokensToRegexp=t.regexpToFunction=t.match=t.tokensToFunction=t.compile=t.parse=void 0,t.parse=e,t.compile=function(t,a){return r(e(t,a),a)},t.tokensToFunction=r,t.match=function(e,t){var r=[];return a(o(e,r,t),r,t)},t.regexpToFunction=a,t.tokensToRegexp=s,t.pathToRegexp=o})(),e.exports=t})()},"./dist/compiled/react-is/cjs/react-is.production.js":function(e,t){"use strict";var r=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case n:case s:case i:case u:case d:case f:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case h:case o:return e;default:return t}}case a:return t}}}t.ContextConsumer=o,t.ContextProvider=l,t.Element=r,t.ForwardRef=c,t.Fragment=n,t.Lazy=p,t.Memo=h,t.Portal=a,t.Profiler=s,t.StrictMode=i,t.Suspense=u,t.SuspenseList=d,t.isContextConsumer=function(e){return g(e)===o},t.isContextProvider=function(e){return g(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return g(e)===c},t.isFragment=function(e){return g(e)===n},t.isLazy=function(e){return g(e)===p},t.isMemo=function(e){return g(e)===h},t.isPortal=function(e){return g(e)===a},t.isProfiler=function(e){return g(e)===s},t.isStrictMode=function(e){return g(e)===i},t.isSuspense=function(e){return g(e)===u},t.isSuspenseList=function(e){return g(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===s||e===i||e===u||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===h||e.$$typeof===l||e.$$typeof===o||e.$$typeof===c||e.$$typeof===m||void 0!==e.getModuleId)||!1},t.typeOf=g},"./dist/compiled/react-is/index.js":function(e,t,r){"use strict";e.exports=r("./dist/compiled/react-is/cjs/react-is.production.js")},"./dist/compiled/strip-ansi/index.js":function(e){(()=>{"use strict";var t={511:e=>{e.exports=({onlyFirst:e=!1}={})=>RegExp("[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))",e?void 0:"g")},532:(e,t,r)=>{let a=r(511);e.exports=e=>"string"==typeof e?e.replace(a(),""):e}},r={};function a(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={exports:{}},s=!0;try{t[e](i,i.exports,a),s=!1}finally{s&&delete r[e]}return i.exports}a.ab=__dirname+"/",e.exports=a(532)})()},"./dist/esm/build/output/log.js":function(e,t,r){"use strict";r.d(t,{R8:()=>y});let{env:a,stdout:n}=(null==(f=globalThis)?void 0:f.process)??{},i=a&&!a.NO_COLOR&&(a.FORCE_COLOR||(null==n?void 0:n.isTTY)&&!a.CI&&"dumb"!==a.TERM),s=(e,t,r,a)=>{let n=e.substring(0,a)+r,i=e.substring(a+t.length),o=i.indexOf(t);return~o?n+s(i,t,r,o):n+i},o=(e,t,r=e)=>i?a=>{let n=""+a,i=n.indexOf(t,e.length);return~i?e+s(n,t,r,i)+t:e+n+t}:String,l=o("\x1b[1m","\x1b[22m","\x1b[22m\x1b[1m");o("\x1b[2m","\x1b[22m","\x1b[22m\x1b[2m"),o("\x1b[3m","\x1b[23m"),o("\x1b[4m","\x1b[24m"),o("\x1b[7m","\x1b[27m"),o("\x1b[8m","\x1b[28m"),o("\x1b[9m","\x1b[29m"),o("\x1b[30m","\x1b[39m");let c=o("\x1b[31m","\x1b[39m"),u=o("\x1b[32m","\x1b[39m"),d=o("\x1b[33m","\x1b[39m");o("\x1b[34m","\x1b[39m");let h=o("\x1b[35m","\x1b[39m");o("\x1b[38;2;173;127;168m","\x1b[39m"),o("\x1b[36m","\x1b[39m");let p=o("\x1b[37m","\x1b[39m");o("\x1b[90m","\x1b[39m"),o("\x1b[40m","\x1b[49m"),o("\x1b[41m","\x1b[49m"),o("\x1b[42m","\x1b[49m"),o("\x1b[43m","\x1b[49m"),o("\x1b[44m","\x1b[49m"),o("\x1b[45m","\x1b[49m"),o("\x1b[46m","\x1b[49m"),o("\x1b[47m","\x1b[49m");var f,m=r("./dist/esm/server/lib/lru-cache.js");let g={wait:p(l("○")),error:c(l("⨯")),warn:d(l("⚠")),ready:"▲",info:p(l(" ")),event:u(l("✓")),trace:h(l("\xbb"))},v={log:"log",warn:"warn",error:"error"};function y(...e){!function(e,...t){(""===t[0]||void 0===t[0])&&1===t.length&&t.shift();let r=e in v?v[e]:"log",a=g[e];0===t.length?console[r](""):1===t.length&&"string"==typeof t[0]?console[r](" "+a+" "+t[0]):console[r](" "+a,...t)}("warn",...e)}new m.q(1e4,e=>e.length),new m.q(1e4,e=>e.length)},"./dist/esm/lib/constants.js":function(e,t,r){"use strict";r.d(t,{$1:()=>w,AA:()=>i,EP:()=>f,Oh:()=>S,RM:()=>h,U2:()=>n,UO:()=>R,VC:()=>m,_I:()=>_,bX:()=>E,c1:()=>v,g0:()=>x,h:()=>s,iS:()=>b,j9:()=>a,kz:()=>o,mH:()=>u,pu:()=>c,qF:()=>y,r4:()=>l,tz:()=>d,vS:()=>g,x3:()=>p,xV:()=>P});let a="text/html; charset=utf-8",n="application/json; charset=utf-8",i="nxtP",s="nxtI",o="x-prerender-revalidate",l="x-prerender-revalidate-if-generated",c=".prefetch.rsc",u=".segments",d=".segment.rsc",h=".rsc",p=".json",f=".meta",m="x-next-cache-tags",g="x-next-revalidated-tags",v="x-next-revalidate-tag-token",y=31536e3,b="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",E="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",x="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",_="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",P="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",R="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",w="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",S="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",C={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"};({...C,GROUP:{builtinReact:[C.reactServerComponents,C.actionBrowser],serverOnly:[C.reactServerComponents,C.actionBrowser,C.instrument,C.middleware],neutralTarget:[C.apiNode,C.apiEdge],clientOnly:[C.serverSideRendering,C.appPagesBrowser],bundled:[C.reactServerComponents,C.actionBrowser,C.serverSideRendering,C.appPagesBrowser,C.shared,C.instrument,C.middleware],appPages:[C.reactServerComponents,C.serverSideRendering,C.appPagesBrowser,C.actionBrowser]}})},"./dist/esm/lib/format-dynamic-import-path.js":function(e,t,r){"use strict";r.r(t),r.d(t,{formatDynamicImportPath:()=>s});var a=r("path"),n=r.n(a);let i=require("url"),s=(e,t)=>{let r=n().isAbsolute(t)?t:n().join(e,t);return(0,i.pathToFileURL)(r).toString()}},"./dist/esm/server/api-utils/index.js":function(e,t,r){"use strict";r.d(t,{C4:()=>d,Gx:()=>i,Ic:()=>s,PW:()=>l,Uc:()=>o,wE:()=>u});var a=r("./dist/esm/server/web/spec-extension/adapters/headers.js"),n=r("./dist/esm/lib/constants.js");function i(e,t){let r=a.o.from(e.headers);return{isOnDemandRevalidate:r.get(n.kz)===t.previewModeId,revalidateOnlyGenerated:r.has(n.r4)}}r("../lib/trace/tracer"),r("./dist/esm/server/lib/trace/constants.js");let s="__prerender_bypass",o="__next_preview_data",l=Symbol(o),c=Symbol(s);function u(e,t={}){if(c in e)return e;let{serialize:a}=r("./dist/compiled/cookie/index.js"),n=e.getHeader("Set-Cookie");return e.setHeader("Set-Cookie",[..."string"==typeof n?[n]:Array.isArray(n)?n:[],a(s,"",{expires:new Date(0),httpOnly:!0,sameSite:"none",secure:!0,path:"/",...void 0!==t.path?{path:t.path}:void 0}),a(o,"",{expires:new Date(0),httpOnly:!0,sameSite:"none",secure:!0,path:"/",...void 0!==t.path?{path:t.path}:void 0})]),Object.defineProperty(e,c,{value:!0,enumerable:!1}),e}function d({req:e},t,r){let a={configurable:!0,enumerable:!0},n={...a,writable:!0};Object.defineProperty(e,t,{...a,get:()=>{let a=r();return Object.defineProperty(e,t,{...n,value:a}),a},set:r=>{Object.defineProperty(e,t,{...n,value:r})}})}},"./dist/esm/server/api-utils/node/try-get-preview-data.js":function(e,t,r){"use strict";r.r(t),r.d(t,{tryGetPreviewData:()=>s});var a=r("./dist/esm/server/api-utils/index.js"),n=r("./dist/esm/server/web/spec-extension/cookies.js"),i=r("./dist/esm/server/web/spec-extension/adapters/headers.js");function s(e,t,s,o){var l,c;let u;if(s&&(0,a.Gx)(e,s).isOnDemandRevalidate)return!1;if(a.PW in e)return e[a.PW];let d=i.o.from(e.headers),h=new n.tm(d),p=null==(l=h.get(a.Ic))?void 0:l.value,f=null==(c=h.get(a.Uc))?void 0:c.value;if(p&&!f&&p===s.previewModeId){let t={};return Object.defineProperty(e,a.PW,{value:t,enumerable:!1}),t}if(!p&&!f)return!1;if(!p||!f||p!==s.previewModeId)return o||(0,a.wE)(t),!1;try{u=r("next/dist/compiled/jsonwebtoken").verify(f,s.previewModeSigningKey)}catch{return(0,a.wE)(t),!1}let{decryptWithSecret:m}=r("./dist/esm/server/crypto-utils.js"),g=m(Buffer.from(s.previewModeEncryptionKey),u.data);try{let t=JSON.parse(g);return Object.defineProperty(e,a.PW,{value:t,enumerable:!1}),t}catch{return!1}}},"./dist/esm/server/crypto-utils.js":function(e,t,r){"use strict";r.r(t),r.d(t,{decryptWithSecret:()=>o,encryptWithSecret:()=>s});var a=r("crypto"),n=r.n(a);let i="aes-256-gcm";function s(e,t){let r=n().randomBytes(16),a=n().randomBytes(64),s=n().pbkdf2Sync(e,a,1e5,32,"sha512"),o=n().createCipheriv(i,s,r),l=Buffer.concat([o.update(t,"utf8"),o.final()]),c=o.getAuthTag();return Buffer.concat([a,r,c,l]).toString("hex")}function o(e,t){let r=Buffer.from(t,"hex"),a=r.slice(0,64),s=r.slice(64,80),o=r.slice(80,96),l=r.slice(96),c=n().pbkdf2Sync(e,a,1e5,32,"sha512"),u=n().createDecipheriv(i,c,s);return u.setAuthTag(o),u.update(l)+u.final("utf8")}},"./dist/esm/server/lib/lru-cache.js":function(e,t,r){"use strict";r.d(t,{q:()=>i});class a{constructor(e,t,r){this.prev=null,this.next=null,this.key=e,this.data=t,this.size=r}}class n{constructor(){this.prev=null,this.next=null}}class i{constructor(e,t){this.cache=new Map,this.totalSize=0,this.maxSize=e,this.calculateSize=t,this.head=new n,this.tail=new n,this.head.next=this.tail,this.tail.prev=this.head}addToHead(e){e.prev=this.head,e.next=this.head.next,this.head.next.prev=e,this.head.next=e}removeNode(e){e.prev.next=e.next,e.next.prev=e.prev}moveToHead(e){this.removeNode(e),this.addToHead(e)}removeTail(){let e=this.tail.prev;return this.removeNode(e),e}set(e,t){let r=(null==this.calculateSize?void 0:this.calculateSize.call(this,t))??1;if(r>this.maxSize)return void console.warn("Single item size exceeds maxSize");let n=this.cache.get(e);if(n)n.data=t,this.totalSize=this.totalSize-n.size+r,n.size=r,this.moveToHead(n);else{let n=new a(e,t,r);this.cache.set(e,n),this.addToHead(n),this.totalSize+=r}for(;this.totalSize>this.maxSize&&this.cache.size>0;){let e=this.removeTail();this.cache.delete(e.key),this.totalSize-=e.size}}has(e){return this.cache.has(e)}get(e){let t=this.cache.get(e);if(t)return this.moveToHead(t),t.data}*[Symbol.iterator](){let e=this.head.next;for(;e&&e!==this.tail;){let t=e;yield[t.key,t.data],e=e.next}}remove(e){let t=this.cache.get(e);t&&(this.removeNode(t),this.cache.delete(e),this.totalSize-=t.size)}get size(){return this.cache.size}get currentSize(){return this.totalSize}}},"./dist/esm/server/lib/node-fs-methods.js":function(e,t,r){"use strict";r.d(t,{e:()=>i});let a=require("fs");var n=r.n(a);let i={existsSync:n().existsSync,readFile:n().promises.readFile,readFileSync:n().readFileSync,writeFile:(e,t)=>n().promises.writeFile(e,t),mkdir:e=>n().promises.mkdir(e,{recursive:!0}),stat:e=>n().promises.stat(e)}},"./dist/esm/server/lib/trace/constants.js":function(e,t,r){"use strict";r.d(t,{Fx:()=>s,Wc:()=>l,vr:()=>o});var a,n,i,s=((a=s||{}).compression="NextNodeServer.compression",a.getBuildId="NextNodeServer.getBuildId",a.createComponentTree="NextNodeServer.createComponentTree",a.clientComponentLoading="NextNodeServer.clientComponentLoading",a.getLayoutOrPageModule="NextNodeServer.getLayoutOrPageModule",a.generateStaticRoutes="NextNodeServer.generateStaticRoutes",a.generateFsStaticRoutes="NextNodeServer.generateFsStaticRoutes",a.generatePublicRoutes="NextNodeServer.generatePublicRoutes",a.generateImageRoutes="NextNodeServer.generateImageRoutes.route",a.sendRenderResult="NextNodeServer.sendRenderResult",a.proxyRequest="NextNodeServer.proxyRequest",a.runApi="NextNodeServer.runApi",a.render="NextNodeServer.render",a.renderHTML="NextNodeServer.renderHTML",a.imageOptimizer="NextNodeServer.imageOptimizer",a.getPagePath="NextNodeServer.getPagePath",a.getRoutesManifest="NextNodeServer.getRoutesManifest",a.findPageComponents="NextNodeServer.findPageComponents",a.getFontManifest="NextNodeServer.getFontManifest",a.getServerComponentManifest="NextNodeServer.getServerComponentManifest",a.getRequestHandler="NextNodeServer.getRequestHandler",a.renderToHTML="NextNodeServer.renderToHTML",a.renderError="NextNodeServer.renderError",a.renderErrorToHTML="NextNodeServer.renderErrorToHTML",a.render404="NextNodeServer.render404",a.startResponse="NextNodeServer.startResponse",a.route="route",a.onProxyReq="onProxyReq",a.apiResolver="apiResolver",a.internalFetch="internalFetch",a),o=((n=o||{}).getServerSideProps="Render.getServerSideProps",n.getStaticProps="Render.getStaticProps",n.renderToString="Render.renderToString",n.renderDocument="Render.renderDocument",n.createBodyResult="Render.createBodyResult",n),l=((i=l||{}).renderToString="AppRender.renderToString",i.renderToReadableStream="AppRender.renderToReadableStream",i.getBodyResult="AppRender.getBodyResult",i.fetch="AppRender.fetch",i)},"./dist/esm/server/post-process.js":function(e,t,r){"use strict";function a(e){return null!=e}async function n(e,t){for(let n of[t.optimizeCss?async e=>{let a=new(r("critters"))({ssrMode:!0,reduceInlineStyles:!1,path:t.distDir,publicPath:`${t.assetPrefix}/_next/`,preload:"media",fonts:!1,logLevel:process.env.CRITTERS_LOG_LEVEL||"warn",...t.optimizeCss});return await a.process(e)}:null].filter(a))n&&(e=await n(e));return e}r.d(t,{F:()=>n})},"./dist/esm/server/web/spec-extension/adapters/headers.js":function(e,t,r){"use strict";r.d(t,{o:()=>i});class a{static get(e,t,r){let a=Reflect.get(e,t,r);return"function"==typeof a?a.bind(e):a}static set(e,t,r,a){return Reflect.set(e,t,r,a)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}class n extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers")}static callable(){throw new n}}class i extends Headers{constructor(e){super(),this.headers=new Proxy(e,{get(t,r,n){if("symbol"==typeof r)return a.get(t,r,n);let i=r.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===i);if(void 0!==s)return a.get(t,s,n)},set(t,r,n,i){if("symbol"==typeof r)return a.set(t,r,n,i);let s=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===s);return a.set(t,o??r,n,i)},has(t,r){if("symbol"==typeof r)return a.has(t,r);let n=r.toLowerCase(),i=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0!==i&&a.has(t,i)},deleteProperty(t,r){if("symbol"==typeof r)return a.deleteProperty(t,r);let n=r.toLowerCase(),i=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0===i||a.deleteProperty(t,i)}})}static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"append":case"delete":case"set":return n.callable;default:return a.get(e,t,r)}}})}merge(e){return Array.isArray(e)?e.join(", "):e}static from(e){return e instanceof Headers?e:new i(e)}append(e,t){let r=this.headers[e];"string"==typeof r?this.headers[e]=[r,t]:Array.isArray(r)?r.push(t):this.headers[e]=t}delete(e){delete this.headers[e]}get(e){let t=this.headers[e];return void 0!==t?this.merge(t):null}has(e){return void 0!==this.headers[e]}set(e,t){this.headers[e]=t}forEach(e,t){for(let[r,a]of this.entries())e.call(t,a,r,this)}*entries(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase(),r=this.get(t);yield[t,r]}}*keys(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase();yield t}}*values(){for(let e of Object.keys(this.headers)){let t=this.get(e);yield t}}[Symbol.iterator](){return this.entries()}}},"./dist/esm/server/web/spec-extension/cookies.js":function(e,t,r){"use strict";r.d(t,{tm:()=>a.RequestCookies});var a=r("./dist/compiled/@edge-runtime/cookies/index.js")},"./dist/esm/shared/lib/isomorphic/path.js":function(e,t,r){e.exports=r("path")},"./dist/esm/shared/lib/modern-browserslist-target.js":function(e){e.exports=["chrome 111","edge 111","firefox 111","safari 16.4"]},"./dist/server/ReactDOMServerPages.js":function(e,t,r){"use strict";let a;try{a=r("react-dom/server.edge")}catch(e){if("MODULE_NOT_FOUND"!==e.code&&"ERR_PACKAGE_PATH_NOT_EXPORTED"!==e.code)throw e;a=r("react-dom/server.browser")}e.exports=a},"../lib/router-utils/instrumentation-globals.external.js":function(e){"use strict";e.exports=require("next/dist/server/lib/router-utils/instrumentation-globals.external.js")},"../lib/trace/tracer":function(e){"use strict";e.exports=require("next/dist/server/lib/trace/tracer")},"../load-manifest.external":function(e){"use strict";e.exports=require("next/dist/server/load-manifest.external.js")},critters:function(e){"use strict";e.exports=require("critters")},"next/dist/compiled/jsonwebtoken":function(e){"use strict";e.exports=require("next/dist/compiled/jsonwebtoken")},"react-dom/server.browser":function(e){"use strict";e.exports=require("react-dom/server.browser")},"react-dom/server.edge":function(e){"use strict";e.exports=require("react-dom/server.edge")},crypto:function(e){"use strict";e.exports=require("crypto")},"node:path":function(e){"use strict";e.exports=require("node:path")},path:function(e){"use strict";e.exports=require("path")}},a={};function n(e){var t=a[e];if(void 0!==t)return t.exports;var i=a[e]={exports:{}};return r[e](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(r,a){if(1&a&&(r=this(r)),8&a||"object"==typeof r&&r&&(4&a&&r.__esModule||16&a&&"function"==typeof r.then))return r;var i=Object.create(null);n.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var o=2&a&&r;("object"==typeof o||"function"==typeof o)&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach(e=>{s[e]=()=>r[e]});return s.default=()=>r,n.d(i,s),i},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{"use strict";let e,t,r;n.r(i),n.d(i,{PagesRouteModule:()=>rh,default:()=>rf,renderToHTML:()=>rc,vendored:()=>rp});var a,s,o,l,c={};n.r(c),n.d(c,{HeadManagerContext:()=>tD});var u={};n.r(u),n.d(u,{LoadableContext:()=>tN});var d={};n.r(d),n.d(d,{default:()=>tH});var h={};n.r(h),n.d(h,{RouterContext:()=>tq});var p={};n.r(p),n.d(p,{HtmlContext:()=>tz,useHtmlContext:()=>tG});var f={};n.r(f),n.d(f,{ImageConfigContext:()=>tJ});var m={};n.r(m),n.d(m,{NavigationPromisesContext:()=>t1,PathParamsContext:()=>t0,PathnameContext:()=>tY,SearchParamsContext:()=>tZ,createDevToolsInstrumentedPromise:()=>t2});var g={};n.r(g),n.d(g,{AppRouterContext:()=>t4,GlobalLayoutRouterContext:()=>t8,LayoutRouterContext:()=>t9,MissingSlotContext:()=>t5,TemplateContext:()=>t6});var v={};n.r(v),n.d(v,{ServerInsertedHTMLContext:()=>ru,useServerInsertedHTML:()=>rd});var y={};n.r(y),n.d(y,{AppRouterContext:()=>g,HeadManagerContext:()=>c,HooksClientContext:()=>m,HtmlContext:()=>p,ImageConfigContext:()=>f,Loadable:()=>d,LoadableContext:()=>u,RouterContext:()=>h,ServerInsertedHtml:()=>v}),n("./dist/esm/shared/lib/modern-browserslist-target.js");let b="build-manifest.json";[...process?.features?.typescript?["next.config.mts"]:[]],Symbol("polyfills");let E=["/500"];function x(e){let t=function(e){let t;try{t=new URL(e,"http://n")}catch{}return t}(e);if(!t)return;let r={};for(let e of t.searchParams.keys()){let a=t.searchParams.getAll(e);r[e]=a.length>1?a:a[0]}return{query:r,hash:t.hash,search:t.search,path:t.pathname,pathname:t.pathname,href:`${t.pathname}${t.search}${t.hash}`,host:"",hostname:"",auth:"",protocol:"",slashes:null,port:""}}let _=new WeakMap;function P(e,t){let r;if(!t)return{pathname:e};let a=_.get(t);a||(a=t.map(e=>e.toLowerCase()),_.set(t,a));let n=e.split("/",2);if(!n[1])return{pathname:e};let i=n[1].toLowerCase(),s=a.indexOf(i);return s<0?{pathname:e}:(r=t[s],{pathname:e=e.slice(r.length+1)||"/",detectedLocale:r})}function R(e){return e.startsWith("/")?e:`/${e}`}function w(e){return R(e.split("/").reduce((e,t,r,a)=>t?"("===t[0]&&t.endsWith(")")||"@"===t[0]||("page"===t||"route"===t)&&r===a.length-1?e:`${e}/${t}`:e,""))}function S(e){return e.replace(/\.rsc($|\?)/,"$1")}let C=["(..)(..)","(.)","(..)","(...)"];function O(e){return void 0!==e.split("/").find(e=>C.find(t=>e.startsWith(t)))}let T=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,j=/\/\[[^/]+\](?=\/|$)/;function A(e,t=!0){return(O(e)&&(e=function(e){let t,r,a;for(let n of e.split("/"))if(r=C.find(e=>n.startsWith(e))){[t,a]=e.split(r,2);break}if(!t||!r||!a)throw Object.defineProperty(Error(`Invalid interception route: ${e}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`),"__NEXT_ERROR_CODE",{value:"E269",enumerable:!1,configurable:!0});switch(t=w(t),r){case"(.)":a="/"===t?`/${a}`:t+"/"+a;break;case"(..)":if("/"===t)throw Object.defineProperty(Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`),"__NEXT_ERROR_CODE",{value:"E207",enumerable:!1,configurable:!0});a=t.split("/").slice(0,-1).concat(a).join("/");break;case"(...)":a="/"+a;break;case"(..)(..)":let n=t.split("/");if(n.length<=2)throw Object.defineProperty(Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`),"__NEXT_ERROR_CODE",{value:"E486",enumerable:!1,configurable:!0});a=n.slice(0,-2).concat(a).join("/");break;default:throw Object.defineProperty(Error("Invariant: unexpected marker"),"__NEXT_ERROR_CODE",{value:"E112",enumerable:!1,configurable:!0})}return{interceptingRoute:t,interceptedRoute:a}}(e).interceptedRoute),t)?j.test(e):T.test(e)}function $(e){let t=e.indexOf("#"),r=e.indexOf("?"),a=r>-1&&(t<0||r<t);return a||t>-1?{pathname:e.substring(0,a?r:t),query:a?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}function D(e,t){if("string"!=typeof e)return!1;let{pathname:r}=$(e);return r===t||r.startsWith(t+"/")}function N(e,t){if(!D(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:`/${r}`}var k=n("./dist/compiled/path-to-regexp/index.js"),M=n("./dist/esm/lib/constants.js");let I=/[|\\{}()[\]^$+*?.-]/,F=/[|\\{}()[\]^$+*?.-]/g;function L(e){return I.test(e)?e.replace(F,"\\$&"):e}function U(e){return e.replace(/\/$/,"")||"/"}class H extends Error{constructor(e,t){super(`Invariant: ${e.endsWith(".")?e:e+"."} This is a bug in Next.js.`,t),this.name="InvariantError"}}let q=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function z(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function G(e,{includeSuffix:t=!1,includePrefix:r=!1,excludeOptionalTrailingSlash:a=!1}={}){let{parameterizedRoute:n,groups:i}=function(e,t,r){let a={},n=1,i=[];for(let s of U(e).slice(1).split("/")){let e=C.find(e=>s.startsWith(e)),o=s.match(q);if(e&&o&&o[2]){let{key:t,optional:r,repeat:s}=z(o[2]);a[t]={pos:n++,repeat:s,optional:r},i.push(`/${L(e)}([^/]+?)`)}else if(o&&o[2]){let{key:e,repeat:t,optional:s}=z(o[2]);a[e]={pos:n++,repeat:t,optional:s},r&&o[1]&&i.push(`/${L(o[1])}`);let l=t?s?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";r&&o[1]&&(l=l.substring(1)),i.push(l)}else i.push(`/${L(s)}`);t&&o&&o[3]&&i.push(L(o[3]))}return{parameterizedRoute:i.join(""),groups:a}}(e,t,r),s=n;return a||(s+="(?:/)?"),{re:RegExp(`^${s}$`),groups:i}}function X({interceptionMarker:e,getSafeRouteKey:t,segment:r,routeKeys:a,keyPrefix:n,backreferenceDuplicateKeys:i}){let s,{key:o,optional:l,repeat:c}=z(r),u=o.replace(/\W/g,"");n&&(u=`${n}${u}`);let d=!1;(0===u.length||u.length>30)&&(d=!0),isNaN(parseInt(u.slice(0,1)))||(d=!0),d&&(u=t());let h=u in a;n?a[u]=`${n}${o}`:a[u]=o;let p=e?L(e):"";return s=h&&i?`\\k<${u}>`:c?`(?<${u}>.+?)`:`(?<${u}>[^/]+?)`,{key:o,pattern:l?`(?:/${p}${s})?`:`/${p}${s}`,cleanedKey:u,optional:l,repeat:c}}function W(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function B(e){return e.finished||e.headersSent}async function J(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await J(t.Component,t.ctx)}:{};let a=await e.getInitialProps(t);if(r&&B(r))return a;if(!a)throw Object.defineProperty(Error(`"${W(e)}.getInitialProps()" should resolve to an object. But found "${a}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return a}"undefined"!=typeof performance&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class V extends Error{}class K extends Error{}let Q="_NEXTSEP_";function Z(e){return"string"==typeof e&&!!(/\/\(\.{1,3}\):[^/\s]+/.test(e)||/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(e))}function Y(e){let t=e;return(t=t.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${Q}:$2`)).replace(/:([^:/\s)]+)(?=:)/g,`:$1${Q}`)}function ee(e){return e.replace(RegExp(`\\)${Q}`,"g"),")")}function et(e,t,r){if("string"!=typeof e)return(0,k.pathToRegexp)(e,t,r);let a=Z(e),n=a?Y(e):e;try{return(0,k.pathToRegexp)(n,t,r)}catch(n){if(!a)try{let a=Y(e);return(0,k.pathToRegexp)(a,t,r)}catch(e){}throw n}}function er(e,t){let r=Z(e),a=r?Y(e):e;try{let e=(0,k.compile)(a,t);if(r)return t=>ee(e(t));return e}catch(a){if(!r)try{let r=Y(e),a=(0,k.compile)(r,t);return e=>ee(a(e))}catch(e){}throw a}}function ea({re:e,groups:t}){var r;return r=r=>{let a=e.exec(r);if(!a)return!1;let n=e=>{try{return decodeURIComponent(e)}catch{throw Object.defineProperty(new V("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},i={};for(let[e,r]of Object.entries(t)){let t=a[r.pos];void 0!==t&&(r.repeat?i[e]=t.split("/").map(e=>n(e)):i[e]=n(t))}return i},e=>{let t=r(e);if(!t)return!1;let a={};for(let[e,r]of Object.entries(t))"string"==typeof r?a[e]=r.replace(RegExp(`^${Q}`),""):Array.isArray(r)?a[e]=r.map(e=>"string"==typeof e?e.replace(RegExp(`^${Q}`),""):e):a[e]=r;return a}}function en(e){let t={};for(let[r,a]of e.entries()){let e=t[r];void 0===e?t[r]=a:Array.isArray(e)?e.push(a):t[r]=[e,a]}return t}function ei(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function es(e){return function(){let{cookie:t}=e;if(!t)return{};let{parse:r}=n("./dist/compiled/cookie/index.js");return r(Array.isArray(t)?t.join("; "):t)}}function eo(e){return e.replace(/__ESC_COLON_/gi,":")}function el(e,t){if(!e.includes(":"))return e;for(let r of Object.keys(t))e.includes(`:${r}`)&&(e=e.replace(RegExp(`:${r}\\*`,"g"),`:${r}--ESCAPED_PARAM_ASTERISKS`).replace(RegExp(`:${r}\\?`,"g"),`:${r}--ESCAPED_PARAM_QUESTION`).replace(RegExp(`:${r}\\+`,"g"),`:${r}--ESCAPED_PARAM_PLUS`).replace(RegExp(`:${r}(?!\\w)`,"g"),`--ESCAPED_PARAM_COLON${r}`));return e=e.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g,"\\$1").replace(/--ESCAPED_PARAM_PLUS/g,"+").replace(/--ESCAPED_PARAM_COLON/g,":").replace(/--ESCAPED_PARAM_QUESTION/g,"?").replace(/--ESCAPED_PARAM_ASTERISKS/g,"*"),er(`/${e}`,{validate:!1})(t).slice(1)}function ec(e){for(let t of[M.AA,M.h])if(e!==t&&e.startsWith(t))return e.substring(t.length);return null}function eu(e){try{return decodeURIComponent(e)}catch{return e}}let ed=/https?|ftp|gopher|file/;function eh(e,t){for(let r in delete e.nextInternalLocale,e){let a=r!==M.AA&&r.startsWith(M.AA),n=r!==M.h&&r.startsWith(M.h);(a||n||t.includes(r))&&delete e[r]}}function ep(e,t,r){if(e){for(let a of(r&&(r=r.toLowerCase()),e))if(t===a.domain?.split(":",1)[0].toLowerCase()||r===a.defaultLocale.toLowerCase()||a.locales?.some(e=>e.toLowerCase()===r))return a}}function ef(e,t){let r;if(t?.host&&!Array.isArray(t.host))r=t.host.toString().split(":",1)[0];else{if(!e.hostname)return;r=e.hostname}return r.toLowerCase()}var em=n("./dist/esm/server/api-utils/index.js");function eg(e){return D(e||"/","/_next/data")&&"/index"===(e=e.replace(/\/_next\/data\/[^/]{1,}/,"").replace(/\.json$/,""))?"/":e}let ev=Symbol.for("NextInternalRequestMeta");function ey(e,t){let r=e[ev]||{};return"string"==typeof t?r[t]:r}function eb(e){let t=/^\/index(\/|$)/.test(e)&&!A(e)?`/index${e}`:"/"===e?"/index":R(e);{let{posix:e}=n("path"),r=e.normalize(t);if(r!==t)throw new K(`Requested and resolved page mismatch: ${t} ${r}`)}return t}function eE(e){return e.replace(/\\/g,"/")}let ex=["ico","jpg","jpeg","png","svg"],e_=["jpg","jpeg","png"],eP=["jpg","jpeg","png","gif"],eR=["jpg","jpeg","png","gif"],ew=(e,t)=>t&&0!==t.length?`(?:\\.(${e.join("|")})|(\\.(${t.join("|")})))`:`(\\.(?:${e.join("|")}))`,eS=/^[\\/]favicon\.ico$/,eC=/^[\\/]robots\.txt$/,eO=/^[\\/]manifest\.json$/,eT=/^[\\/]manifest\.webmanifest$/,ej=/[\\/]sitemap\.xml$/,eA=new Map;class e${constructor(){let e,t;this.promise=new Promise((r,a)=>{e=r,t=a}),this.resolve=e,this.reject=t}}class eD{constructor(e,t=e=>e()){this.cacheKeyFn=e,this.schedulerFn=t,this.pending=new Map}static create(e){return new eD(null==e?void 0:e.cacheKeyFn,null==e?void 0:e.schedulerFn)}async batch(e,t){let r=this.cacheKeyFn?await this.cacheKeyFn(e):e;if(null===r)return t({resolve:e=>Promise.resolve(e),key:e});let a=this.pending.get(r);if(a)return a;let{promise:n,resolve:i,reject:s}=new e$;return this.pending.set(r,n),this.schedulerFn(async()=>{try{let r=await t({resolve:i,key:e});i(r)}catch(e){s(e)}finally{this.pending.delete(r)}}),n}}let eN=e=>{Promise.resolve().then(()=>{process.nextTick(e)})};var ek=((a={}).APP_PAGE="APP_PAGE",a.APP_ROUTE="APP_ROUTE",a.PAGES="PAGES",a.FETCH="FETCH",a.REDIRECT="REDIRECT",a.IMAGE="IMAGE",a),eM=((s={}).APP_PAGE="APP_PAGE",s.APP_ROUTE="APP_ROUTE",s.PAGES="PAGES",s.FETCH="FETCH",s.IMAGE="IMAGE",s),eI=n("../lib/trace/tracer"),eF=n("./dist/esm/server/lib/trace/constants.js");function eL(){}new Uint8Array([60,104,116,109,108]),new Uint8Array([60,98,111,100,121]),new Uint8Array([60,47,104,101,97,100,62]),new Uint8Array([60,47,98,111,100,121,62]),new Uint8Array([60,47,104,116,109,108,62]),new Uint8Array([60,47,98,111,100,121,62,60,47,104,116,109,108,62]),new Uint8Array([60,109,101,116,97,32,110,97,109,101,61,34,194,171,110,120,116,45,105,99,111,110,194,187,34]);let eU=new TextEncoder;function eH(e){return new ReadableStream({start(t){t.enqueue(eU.encode(e)),t.close()}})}function eq(e){return new ReadableStream({start(t){t.enqueue(e),t.close()}})}async function ez(e,t){let r=new TextDecoder("utf-8",{fatal:!0}),a="";for await(let n of e){if(null==t?void 0:t.aborted)return a;a+=r.decode(n,{stream:!0})}return a+r.decode()}function eG(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:a,hash:n}=$(e);return`${t}${r}${a}${n}`}function eX(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:a,hash:n}=$(e);return`${r}${t}${a}${n}`}let eW=/(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;function eB(e,t){return new URL(String(e).replace(eW,"localhost"),t&&String(t).replace(eW,"localhost"))}let eJ=Symbol("NextURLInternal");class eV{constructor(e,t,r){let a,n;"object"==typeof t&&"pathname"in t||"string"==typeof t?(a=t,n=r||{}):n=r||t||{},this[eJ]={url:eB(e,a??n.base),options:n,basePath:""},this.analyze()}analyze(){var e,t,r,a,n;let i=function(e,t){let{basePath:r,i18n:a,trailingSlash:n}=t.nextConfig??{},i={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):n};r&&D(i.pathname,r)&&(i.pathname=N(i.pathname,r),i.basePath=r);let s=i.pathname;if(i.pathname.startsWith("/_next/data/")&&i.pathname.endsWith(".json")){let e=i.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");i.buildId=e[0],s="index"!==e[1]?`/${e.slice(1).join("/")}`:"/",!0===t.parseData&&(i.pathname=s)}if(a){let e=t.i18nProvider?t.i18nProvider.analyze(i.pathname):P(i.pathname,a.locales);i.locale=e.detectedLocale,i.pathname=e.pathname??i.pathname,!e.detectedLocale&&i.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(s):P(s,a.locales)).detectedLocale&&(i.locale=e.detectedLocale)}return i}(this[eJ].url.pathname,{nextConfig:this[eJ].options.nextConfig,parseData:!process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE,i18nProvider:this[eJ].options.i18nProvider}),s=ef(this[eJ].url,this[eJ].options.headers);this[eJ].domainLocale=this[eJ].options.i18nProvider?this[eJ].options.i18nProvider.detectDomainLocale(s):ep(null==(t=this[eJ].options.nextConfig)||null==(e=t.i18n)?void 0:e.domains,s);let o=(null==(r=this[eJ].domainLocale)?void 0:r.defaultLocale)||(null==(n=this[eJ].options.nextConfig)||null==(a=n.i18n)?void 0:a.defaultLocale);this[eJ].url.pathname=i.pathname,this[eJ].defaultLocale=o,this[eJ].basePath=i.basePath??"",this[eJ].buildId=i.buildId,this[eJ].locale=i.locale??o,this[eJ].trailingSlash=i.trailingSlash}formatPathname(){var e;let t;return t=function(e,t,r,a){if(!t||t===r)return e;let n=e.toLowerCase();return!a&&(D(n,"/api")||D(n,`/${t.toLowerCase()}`))?e:eG(e,`/${t}`)}((e={basePath:this[eJ].basePath,buildId:this[eJ].buildId,defaultLocale:this[eJ].options.forceLocale?void 0:this[eJ].defaultLocale,locale:this[eJ].locale,pathname:this[eJ].url.pathname,trailingSlash:this[eJ].trailingSlash}).pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix),(e.buildId||!e.trailingSlash)&&(t=U(t)),e.buildId&&(t=eX(eG(t,`/_next/data/${e.buildId}`),"/"===e.pathname?"index.json":".json")),t=eG(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:eX(t,"/"):U(t)}formatSearch(){return this[eJ].url.search}get buildId(){return this[eJ].buildId}set buildId(e){this[eJ].buildId=e}get locale(){return this[eJ].locale??""}set locale(e){var t,r;if(!this[eJ].locale||!(null==(r=this[eJ].options.nextConfig)||null==(t=r.i18n)?void 0:t.locales.includes(e)))throw Object.defineProperty(TypeError(`The NextURL configuration includes no locale "${e}"`),"__NEXT_ERROR_CODE",{value:"E597",enumerable:!1,configurable:!0});this[eJ].locale=e}get defaultLocale(){return this[eJ].defaultLocale}get domainLocale(){return this[eJ].domainLocale}get searchParams(){return this[eJ].url.searchParams}get host(){return this[eJ].url.host}set host(e){this[eJ].url.host=e}get hostname(){return this[eJ].url.hostname}set hostname(e){this[eJ].url.hostname=e}get port(){return this[eJ].url.port}set port(e){this[eJ].url.port=e}get protocol(){return this[eJ].url.protocol}set protocol(e){this[eJ].url.protocol=e}get href(){let e=this.formatPathname(),t=this.formatSearch();return`${this.protocol}//${this.host}${e}${t}${this.hash}`}set href(e){this[eJ].url=eB(e),this.analyze()}get origin(){return this[eJ].url.origin}get pathname(){return this[eJ].url.pathname}set pathname(e){this[eJ].url.pathname=e}get hash(){return this[eJ].url.hash}set hash(e){this[eJ].url.hash=e}get search(){return this[eJ].url.search}set search(e){this[eJ].url.search=e}get password(){return this[eJ].url.password}set password(e){this[eJ].url.password=e}get username(){return this[eJ].url.username}set username(e){this[eJ].url.username=e}get basePath(){return this[eJ].basePath}set basePath(e){this[eJ].basePath=e.startsWith("/")?e:`/${e}`}toString(){return this.href}toJSON(){return this.href}[Symbol.for("edge-runtime.inspect.custom")](){return{href:this.href,origin:this.origin,protocol:this.protocol,username:this.username,password:this.password,host:this.host,hostname:this.hostname,port:this.port,pathname:this.pathname,search:this.search,searchParams:this.searchParams,hash:this.hash}}clone(){return new eV(String(this),this[eJ].options)}}n("./dist/esm/server/web/spec-extension/cookies.js"),Symbol("internal request"),Request,Symbol.for("edge-runtime.inspect.custom");let eK="ResponseAborted";class eQ extends Error{constructor(...e){super(...e),this.name=eK}}let eZ=0,eY=0,e0=0;function e1(e){return(null==e?void 0:e.name)==="AbortError"||(null==e?void 0:e.name)===eK}async function e2(e,t,r){try{let a,{errored:n,destroyed:i}=t;if(n||i)return;let s=(a=new AbortController,t.once("close",()=>{t.writableFinished||a.abort(new eQ)}),a),o=function(e,t){let r=!1,a=new e$;function n(){a.resolve()}e.on("drain",n),e.once("close",()=>{e.off("drain",n),a.resolve()});let i=new e$;return e.once("finish",()=>{i.resolve()}),new WritableStream({write:async t=>{if(!r){if(r=!0,"performance"in globalThis&&process.env.NEXT_OTEL_PERFORMANCE_PREFIX){let e=function(e={}){let t=0===eZ?void 0:{clientComponentLoadStart:eZ,clientComponentLoadTimes:eY,clientComponentLoadCount:e0};return e.reset&&(eZ=0,eY=0,e0=0),t}();e&&performance.measure(`${process.env.NEXT_OTEL_PERFORMANCE_PREFIX}:next-client-component-loading`,{start:e.clientComponentLoadStart,end:e.clientComponentLoadStart+e.clientComponentLoadTimes})}e.flushHeaders(),(0,eI.getTracer)().trace(eF.Fx.startResponse,{spanName:"start response"},()=>void 0)}try{let r=e.write(t);"flush"in e&&"function"==typeof e.flu