6 lines
67 KiB
Plaintext
6 lines
67 KiB
Plaintext
(()=>{var e={"./dist/compiled/@edge-runtime/cookies/index.js":e=>{"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o={};function s(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}`].filter(Boolean);return`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}; ${r.join("; ")}`}function i(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[n,a]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=a?a:"true"))}catch{}}return t}function l(e){var t;if(!e)return;let[[r,n],...a]=i(e),{domain:o,expires:s,httponly:l,maxage:c,path:d,samesite:f,secure:p}=Object.fromEntries(a.map(([e,t])=>[e.toLowerCase(),t])),h={name:r,value:decodeURIComponent(n),domain:o,...s&&{expires:new Date(s)},...l&&{httpOnly:!0},..."string"==typeof c&&{maxAge:Number(c)},path:d,...f&&{sameSite:u.includes(t=(t=f).toLowerCase())?t:void 0},...p&&{secure:!0}};return function(e){let t={};for(let r in e)e[r]&&(t[r]=e[r]);return t}(h)}((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(o,{RequestCookies:()=>d,ResponseCookies:()=>f,parseCookie:()=>i,parseSetCookie:()=>l,splitCookiesString:()=>c,stringifyCookie:()=>s}),e.exports=((e,o,s,i)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let s of n(o))a.call(e,s)||void 0===s||t(e,s,{get:()=>o[s],enumerable:!(i=r(o,s))||i.enumerable});return e})(t({},"__esModule",{value:!0}),o);var u=["strict","lax","none"];function c(e){if(!e)return[];var t,r,n,a,o,s=[],i=0;function l(){for(;i<e.length&&/\s/.test(e.charAt(i));)i+=1;return i<e.length}for(;i<e.length;){for(t=i,o=!1;l();)if(","===(r=e.charAt(i))){for(n=i,i+=1,l(),a=i;i<e.length&&"="!==(r=e.charAt(i))&&";"!==r&&","!==r;)i+=1;i<e.length&&"="===e.charAt(i)?(o=!0,i=a,s.push(e.substring(t,n)),t=i):i=n+1}else i+=1;(!o||i>=e.length)&&s.push(e.substring(t,e.length))}return s}var d=class{constructor(e){this._parsed=new Map,this._headers=e;let t=e.get("cookie");if(t){let e=i(t);for(let[t,r]of e)this._parsed.set(t,{name:t,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 n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).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,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>s(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])=>s(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;this._parsed=new Map,this._headers=e;let r=null==(t=e.getSetCookie)?void 0:t.call(e);e.get("set-cookie");let n=Array.isArray(r)?r:c(r);for(let e of n){let t=l(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 n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,a=this._parsed;return a.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,...n})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=s(r);t.append("set-cookie",e)}}(a,this._headers),this}delete(...e){let[t,r,n]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0].path,e[0].domain];return this.set({name:t,path:r,domain:n,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(s).join("; ")}}},"./dist/compiled/cookie/index.js":e=>{(()=>{"use strict";"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var t={};(()=>{/*!
|
||
* cookie
|
||
* Copyright(c) 2012-2014 Roman Shtylman
|
||
* Copyright(c) 2015 Douglas Christopher Wilson
|
||
* MIT Licensed
|
||
*/t.parse=function(t,r){if("string"!=typeof t)throw TypeError("argument str must be a string");for(var a={},o=t.split(n),s=(r||{}).decode||e,i=0;i<o.length;i++){var l=o[i],u=l.indexOf("=");if(!(u<0)){var c=l.substr(0,u).trim(),d=l.substr(++u,l.length).trim();'"'==d[0]&&(d=d.slice(1,-1)),void 0==a[c]&&(a[c]=function(e,t){try{return t(e)}catch(t){return e}}(d,s))}}return a},t.serialize=function(e,t,n){var o=n||{},s=o.encode||r;if("function"!=typeof s)throw TypeError("option encode is invalid");if(!a.test(e))throw TypeError("argument name is invalid");var i=s(t);if(i&&!a.test(i))throw TypeError("argument val is invalid");var l=e+"="+i;if(null!=o.maxAge){var u=o.maxAge-0;if(isNaN(u)||!isFinite(u))throw TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(u)}if(o.domain){if(!a.test(o.domain))throw TypeError("option domain is invalid");l+="; Domain="+o.domain}if(o.path){if(!a.test(o.path))throw TypeError("option path is invalid");l+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw TypeError("option expires is invalid");l+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(l+="; HttpOnly"),o.secure&&(l+="; Secure"),o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.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};var e=decodeURIComponent,r=encodeURIComponent,n=/; */,a=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/})(),e.exports=t})()},"./dist/compiled/react/cjs/react.development.js":(e,t,r)=>{"use strict";e=r.nmd(e),function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var r,n,a,o,s,i,l,u,c,d,f,p,h,m=Symbol.for("react.element"),y=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),w=Symbol.for("react.context"),_=Symbol.for("react.server_context"),x=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),T=Symbol.for("react.cache"),O=Symbol.for("react.default_value"),A=Symbol.iterator;function j(e){if(null===e||"object"!=typeof e)return null;var t=A&&e[A]||e["@@iterator"];return"function"==typeof t?t:null}var N={current:null},L={current:null},$={transition:null},M={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1},I={current:null},D={},H=null;D.setExtraStackFrame=function(e){H=e},D.getCurrentStack=null,D.getStackAddendum=function(){var e="";H&&(e+=H);var t=D.getCurrentStack;return t&&(e+=t()||""),e};var U={ReactCurrentDispatcher:N,ReactCurrentCache:L,ReactCurrentBatchConfig:$,ReactCurrentOwner:I};function q(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];F("warn",e,r)}function B(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];F("error",e,r)}function F(e,t,r){var n=U.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var a=r.map(function(e){return String(e)});a.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,a)}U.ReactDebugCurrentFrame=D,U.ReactCurrentActQueue=M,U.ContextRegistry={};var G={};function W(e,t){var r=e.constructor,n=r&&(r.displayName||r.name)||"ReactClass",a=n+"."+t;G[a]||(B("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,n),G[a]=!0)}var V={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){W(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){W(e,"replaceState")},enqueueSetState:function(e,t,r,n){W(e,"setState")}},z=Object.assign,Y={};function K(e,t,r){this.props=e,this.context=t,this.refs=Y,this.updater=r||V}Object.freeze(Y),K.prototype.isReactComponent={},K.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},K.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var J={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Z=function(e,t){Object.defineProperty(K.prototype,e,{get:function(){q("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var X in J)J.hasOwnProperty(X)&&Z(X,J[X]);function Q(){}function ee(e,t,r){this.props=e,this.context=t,this.refs=Y,this.updater=r||V}Q.prototype=K.prototype;var et=ee.prototype=new Q;et.constructor=ee,z(et,K.prototype),et.isPureReactComponent=!0;var er=Array.isArray;function en(e){if(function(e){try{return!1}catch(e){return!0}}(0))return B("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.","function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"),""+e}function ea(e){return e.displayName||"Context"}function eo(e){if(null==e)return null;if("number"==typeof e.tag&&B("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case g:return"Fragment";case y:return"Portal";case b:return"Profiler";case v:return"StrictMode";case C:return"Suspense";case R:return"SuspenseList";case T:return"Cache"}if("object"==typeof e)switch(e.$$typeof){case w:return ea(e)+".Consumer";case S:return ea(e._context)+".Provider";case x:return function(e,t,r){var n=e.displayName;if(n)return n;var a=t.displayName||t.name||"";return""!==a?r+"("+a+")":r}(e,e.render,"ForwardRef");case P:var t=e.displayName||null;if(null!==t)return t;return eo(e.type)||"Memo";case k:var r=e._payload,n=e._init;try{return eo(n(r))}catch(e){break}case _:return(e.displayName||e._globalName)+".Provider"}return null}var es=Object.prototype.hasOwnProperty,ei={key:!0,ref:!0,__self:!0,__source:!0};function el(e){if(es.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function eu(e){if(es.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function ec(e,t,r,n,a,o,s){var i={$$typeof:m,type:e,key:t,ref:r,props:s,_owner:o};return i._store={},Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(i,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(i,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i}function ed(e,t,o){var s,i={},l=null,u=null,c=null,d=null;if(null!=t)for(s in el(t)&&(u=t.ref,function(e){if("string"==typeof e.ref&&I.current&&e.__self&&I.current.stateNode!==e.__self){var t=eo(I.current.type);a[t]||(B('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),a[t]=!0)}}(t)),eu(t)&&(en(t.key),l=""+t.key),c=void 0===t.__self?null:t.__self,d=void 0===t.__source?null:t.__source,t)es.call(t,s)&&!ei.hasOwnProperty(s)&&(i[s]=t[s]);var f=arguments.length-2;if(1===f)i.children=o;else if(f>1){for(var p=Array(f),h=0;h<f;h++)p[h]=arguments[h+2];Object.freeze&&Object.freeze(p),i.children=p}if(e&&e.defaultProps){var m=e.defaultProps;for(s in m)void 0===i[s]&&(i[s]=m[s])}if(l||u){var y,g,v="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&((y=function(){r||(r=!0,B("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",v))}).isReactWarning=!0,Object.defineProperty(i,"key",{get:y,configurable:!0})),u&&((g=function(){n||(n=!0,B("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",v))}).isReactWarning=!0,Object.defineProperty(i,"ref",{get:g,configurable:!0}))}return ec(e,l,u,c,d,I.current,i)}function ef(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n,a,o=z({},e.props),s=e.key,i=e.ref,l=e._self,u=e._source,c=e._owner;if(null!=t)for(n in el(t)&&(i=t.ref,c=I.current),eu(t)&&(en(t.key),s=""+t.key),e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)es.call(t,n)&&!ei.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==a?o[n]=a[n]:o[n]=t[n]);var d=arguments.length-2;if(1===d)o.children=r;else if(d>1){for(var f=Array(d),p=0;p<d;p++)f[p]=arguments[p+2];o.children=f}return ec(e.type,s,i,l,u,c,o)}function ep(e){return"object"==typeof e&&null!==e&&e.$$typeof===m}a={};var eh=!1,em=/\/+/g;function ey(e){return e.replace(em,"$&/")}function eg(e,t){if("object"==typeof e&&null!==e&&null!=e.key){var r,n;return en(e.key),r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})}return t.toString(36)}function ev(e,t,r){if(null==e)return e;var n=[],a=0;return function e(t,r,n,a,o){var s=typeof t;("undefined"===s||"boolean"===s)&&(t=null);var i=!1;if(null===t)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case m:case y:i=!0}}if(i){var l,u,c=t,d=o(c),f=""===a?"."+eg(c,0):a;if(er(d)){var p="";null!=f&&(p=ey(f)+"/"),e(d,r,p,"",function(e){return e})}else null!=d&&(ep(d)&&(d.key&&(!c||c.key!==d.key)&&en(d.key),l=d,u=n+(d.key&&(!c||c.key!==d.key)?ey(""+d.key)+"/":"")+f,d=ec(l.type,u,l.ref,l._self,l._source,l._owner,l.props)),r.push(d));return 1}var h=0,g=""===a?".":a+":";if(er(t))for(var v=0;v<t.length;v++)w=g+eg(S=t[v],v),h+=e(S,r,n,w,o);else{var b=j(t);if("function"==typeof b){var S,w,_,x=t;b===x.entries&&(eh||q("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),eh=!0);for(var C=b.call(x),R=0;!(_=C.next()).done;)w=g+eg(S=_.value,R++),h+=e(S,r,n,w,o)}else if("object"===s){var P=String(t);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===P?"object with keys {"+Object.keys(t).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}}return h}(e,n,"","",function(e){return t.call(r,e,a++)}),n}function eb(e){if(-1===e._status){var t=(0,e._result)();t.then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status){var r=e._result;return void 0===r&&B("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",r),"default"in r||B("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",r),r.default}throw e._result}var eS=Symbol.for("react.client.reference");function ew(e){return"string"==typeof e||"function"==typeof e||e===g||e===b||e===v||e===C||e===R||e===E||"object"==typeof e&&null!==e&&(e.$$typeof===k||e.$$typeof===P||e.$$typeof===S||e.$$typeof===w||e.$$typeof===x||e.$$typeof===eS||void 0!==e.getModuleId)}function e_(){return new WeakMap}function ex(){return{s:0,v:void 0,o:null,p:null}}function eC(){var e=N.current;return null===e&&B("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}var eR=0;function eP(){}eP.__reactDisabledLog=!0;var ek=U.ReactCurrentDispatcher;function eE(e,t,r){if(void 0===f)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);f=n&&n[1]||""}return"\n"+f+e}var eT=!1;function eO(e,t){if(!e||eT)return"";var r,n,a=p.get(e);if(void 0!==a)return a;eT=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0,n=ek.current,ek.current=null,function(){if(0===eR){o=console.log,s=console.info,i=console.warn,l=console.error,u=console.group,c=console.groupCollapsed,d=console.groupEnd;var e={configurable:!0,enumerable:!0,value:eP,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}eR++}();try{if(t){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(h,[])}catch(e){r=e}Reflect.construct(e,[],h)}else{try{h.call()}catch(e){r=e}e.call(h.prototype)}}else{try{throw Error()}catch(e){r=e}var m=e();m&&"function"==typeof m.catch&&m.catch(function(){})}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var y=t.stack.split("\n"),g=r.stack.split("\n"),v=y.length-1,b=g.length-1;v>=1&&b>=0&&y[v]!==g[b];)b--;for(;v>=1&&b>=0;v--,b--)if(y[v]!==g[b]){if(1!==v||1!==b)do if(v--,--b<0||y[v]!==g[b]){var S="\n"+y[v].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),"function"==typeof e&&p.set(e,S),S}while(v>=1&&b>=0)break}}}finally{eT=!1,ek.current=n,function(){if(0==--eR){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},e,{value:o}),info:z({},e,{value:s}),warn:z({},e,{value:i}),error:z({},e,{value:l}),group:z({},e,{value:u}),groupCollapsed:z({},e,{value:c}),groupEnd:z({},e,{value:d})})}eR<0&&B("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=f}var w=e?e.displayName||e.name:"",_=w?eE(w):"";return"function"==typeof e&&p.set(e,_),_}function eA(e,t,r){if(null==e)return"";if("function"==typeof e)return eO(e,!!((n=e.prototype)&&n.isReactComponent));if("string"==typeof e)return eE(e);switch(e){case C:return eE("Suspense");case R:return eE("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case x:return eO(e.render,!1);case P:return eA(e.type,t,r);case k:var n,a=e._payload,o=e._init;try{return eA(o(a),t,r)}catch(e){}}return""}p=new("function"==typeof WeakMap?WeakMap:Map);var ej={},eN=U.ReactDebugCurrentFrame;function eL(e){if(e){var t=e._owner,r=eA(e.type,e._source,t?t.type:null);eN.setExtraStackFrame(r)}else eN.setExtraStackFrame(null)}var e$=Symbol.for("react.client.reference");function eM(e){if(e){var t=e._owner;H=eA(e.type,e._source,t?t.type:null)}else H=null}function eI(){if(I.current){var e=eo(I.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}h=!1;var eD={};function eH(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=eI();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!eD[r]){eD[r]=!0;var n="";e&&e._owner&&e._owner!==I.current&&(n=" It was passed a child from "+eo(e._owner.type)+"."),eM(e),B('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),eM(null)}}}function eU(e,t){if("object"==typeof e&&e){if(e.$$typeof===e$);else if(er(e))for(var r=0;r<e.length;r++){var n=e[r];ep(n)&&eH(n,t)}else if(ep(e))e._store&&(e._store.validated=!0);else{var a=j(e);if("function"==typeof a&&a!==e.entries)for(var o,s=a.call(e);!(o=s.next()).done;)ep(o.value)&&eH(o.value,t)}}}function eq(e){var t,r=e.type;if(null!=r&&"string"!=typeof r&&r.$$typeof!==e$){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==x&&r.$$typeof!==P)return;t=r.propTypes}if(t){var n=eo(r);!function(e,t,r,n,a){var o=Function.call.bind(es);for(var s in e)if(o(e,s)){var i=void 0;try{if("function"!=typeof e[s]){var l=Error((n||"React class")+": "+r+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}i=e[s](t,s,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){i=e}!i||i instanceof Error||(eL(a),B("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",r,s,typeof i),eL(null)),i instanceof Error&&!(i.message in ej)&&(ej[i.message]=!0,eL(a),B("Failed %s type: %s",r,i.message),eL(null))}}(t,e.props,"prop",n,e)}else void 0===r.PropTypes||h||(h=!0,B("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",eo(r)||"Unknown"));"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||B("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function eB(e,t,r){var n=ew(e);if(!n){var a,o="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(o+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var s=function(e){if(null!=e){var t;return void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":""}return""}(t);(s?o+=s:o+=eI(),null===e)?a="null":er(e)?a="array":void 0!==e&&e.$$typeof===m?(a="<"+(eo(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,B("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",a,o)}var i=ed.apply(this,arguments);if(null==i)return i;if(n)for(var l=2;l<arguments.length;l++)eU(arguments[l],e);return e===g?function(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){eM(e),B("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),eM(null);break}}null!==e.ref&&(eM(e),B("Invalid attribute `ref` supplied to `React.Fragment`."),eM(null))}(i):eq(i),i}var eF=!1,eG=U.ContextRegistry,eW=!1,eV=null;function ez(t){if(null===eV)try{var r=("require"+Math.random()).slice(0,7);eV=(e&&e[r]).call(e,"timers").setImmediate}catch(e){eV=function(e){!1===eW&&(eW=!0,"undefined"==typeof MessageChannel&&B("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}return eV(t)}var eY=0,eK=!1;function eJ(e,t){t!==eY-1&&B("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),eY=t}function eZ(e,t,r){var n=M.current;if(null!==n){if(0!==n.length)try{eQ(n),ez(function(){return eZ(e,t,r)})}catch(e){r(e)}else M.current=null,t(e)}else t(e)}var eX=!1;function eQ(e){if(!eX){eX=!0;var t=0;try{for(;t<e.length;t++)for(var r=e[t];;){M.didUsePromise=!1;var n=r(!1);if(null!==n){if(M.didUsePromise){e[t]=r,e.splice(0,t);return}r=n}else break}e.length=0}catch(r){throw e.splice(0,t+1),r}finally{eX=!1}}}var e0="function"==typeof queueMicrotask?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:ez;t.Children={map:ev,forEach:function(e,t,r){ev(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return ev(e,function(){t++}),t},toArray:function(e){return ev(e,function(e){return e})||[]},only:function(e){if(!ep(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=K,t.Fragment=g,t.Profiler=b,t.PureComponent=ee,t.StrictMode=v,t.Suspense=C,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,t.cache=function(e){return function(){var t,r=L.current;if(!r)return e.apply(null,arguments);var n=r.getCacheForType(e_),a=n.get(e);void 0===a?(t=ex(),n.set(e,t)):t=a;for(var o=0,s=arguments.length;o<s;o++){var i=arguments[o];if("function"==typeof i||"object"==typeof i&&null!==i){var l=t.o;null===l&&(t.o=l=new WeakMap);var u=l.get(i);void 0===u?(t=ex(),l.set(i,t)):t=u}else{var c=t.p;null===c&&(t.p=c=new Map);var d=c.get(i);void 0===d?(t=ex(),c.set(i,t)):t=d}}if(1===t.s)return t.v;if(2===t.s)throw t.v;try{var f=e.apply(null,arguments),p=t;return p.s=1,p.v=f,f}catch(e){var h=t;throw h.s=2,h.v=e,e}}},t.cloneElement=function(e,t,r){for(var n=ef.apply(this,arguments),a=2;a<arguments.length;a++)eU(arguments[a],n.type);return eq(n),n},t.createContext=function(e){var t={$$typeof:w,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:S,_context:t};var r=!1,n=!1,a=!1,o={$$typeof:w,_context:t};return Object.defineProperties(o,{Provider:{get:function(){return n||(n=!0,B("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return r||(r=!0,B("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){a||(q("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),a=!0)}}}),t.Consumer=o,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=eB,t.createFactory=function(e){var t=eB.bind(null,e);return t.type=e,eF||(eF=!0,q("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return q("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},t.createRef=function(){var e={current:null};return Object.seal(e),e},t.createServerContext=function(e,t){var r=!0;if(!eG[e]){r=!1;var n,a={$$typeof:_,_currentValue:t,_currentValue2:t,_defaultValue:t,_threadCount:0,Provider:null,Consumer:null,_globalName:e};a.Provider={$$typeof:S,_context:a},a._currentRenderer=null,a._currentRenderer2=null,Object.defineProperties(a,{Consumer:{get:function(){return n||(B("Consumer pattern is not supported by ReactServerContext"),n=!0),null}}}),eG[e]=a}var o=eG[e];if(o._defaultValue===O)o._defaultValue=t,o._currentValue===O&&(o._currentValue=t),o._currentValue2===O&&(o._currentValue2=t);else if(r)throw Error("ServerContext: "+e+" already defined");return o},t.forwardRef=function(e){null!=e&&e.$$typeof===P?B("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?B("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&B("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null!=e.defaultProps||null!=e.propTypes)&&B("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var t,r={$$typeof:x,render:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r,e.name||e.displayName||(e.displayName=r)}}),r},t.isValidElement=ep,t.lazy=function(e){var t,r,n={$$typeof:k,_payload:{_status:-1,_result:e},_init:eb};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){B("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){B("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},t.memo=function(e,t){ew(e)||B("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var r,n={$$typeof:P,type:e,compare:void 0===t?null:t};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t,e.name||e.displayName||(e.displayName=t)}}),n},t.startTransition=function(e,t){var r=$.transition;$.transition={};var n=$.transition;$.transition._updatedFibers=new Set;try{e()}finally{if($.transition=r,null===r&&n._updatedFibers){var a=n._updatedFibers.size;n._updatedFibers.clear(),a>10&&q("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")}}},t.unstable_act=function(e){var t,r=M.isBatchingLegacy,n=M.current,a=eY;eY++;var o=M.current=null!==n?n:[];M.isBatchingLegacy=!0;var s=!1;try{M.didScheduleLegacyUpdate=!1,t=e();var i=M.didScheduleLegacyUpdate;!r&&i&&eQ(o),M.isBatchingLegacy=r}catch(e){throw M.isBatchingLegacy=r,eJ(n,a),e}if(null!==t&&"object"==typeof t&&"function"==typeof t.then){var l=t;return e0(function(){s||eK||(eK=!0,B("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(e,t){s=!0,l.then(function(r){if(eJ(n,a),0===a)try{eQ(o),ez(function(){return eZ(r,e,t)})}catch(e){t(e)}else e(r)},function(e){eJ(n,a),t(e)})}}}var u=t;return eJ(n,a),0===a&&(eQ(o),0!==o.length&&e0(function(){s||eK||(eK=!0,B("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),M.current=null),{then:function(e,t){s=!0,0===a?(M.current=o,ez(function(){return eZ(u,e,t)})):e(u)}}},t.unstable_useCacheRefresh=function(){return eC().useCacheRefresh()},t.use=function(e){return eC().use(e)},t.useCallback=function(e,t){return eC().useCallback(e,t)},t.useContext=function(e){var t=eC();if(void 0!==e._context){var r=e._context;r.Consumer===e?B("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&B("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},t.useDebugValue=function(e,t){return eC().useDebugValue(e,t)},t.useDeferredValue=function(e){return eC().useDeferredValue(e)},t.useEffect=function(e,t){return eC().useEffect(e,t)},t.useId=function(){return eC().useId()},t.useImperativeHandle=function(e,t,r){return eC().useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return eC().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return eC().useLayoutEffect(e,t)},t.useMemo=function(e,t){return eC().useMemo(e,t)},t.useReducer=function(e,t,r){return eC().useReducer(e,t,r)},t.useRef=function(e){return eC().useRef(e)},t.useState=function(e){return eC().useState(e)},t.useSyncExternalStore=function(e,t,r){return eC().useSyncExternalStore(e,t,r)},t.useTransition=function(){return eC().useTransition()},t.version="18.3.0-canary-2807d781a-20230918","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()},"./dist/compiled/react/index.js":(e,t,r)=>{"use strict";e.exports=r("./dist/compiled/react/cjs/react.development.js")},"./dist/esm/lib/web/chalk.js":(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});let n=new Proxy(e=>e,{get:(e,t)=>["hex","rgb","ansi256","bgHex","bgRgb","bgAnsi256"].includes(t)?()=>n:n}),a=n}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n](o,o.exports,r),o.loaded=!0,o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};(()=>{"use strict";let e;r.r(n),r.d(n,{AppRouteRouteModule:()=>ek,default:()=>eE});var t,a,o,s,i,l,u,c,d,f,p,h,m,y,g={};r.r(g),r.d(g,{DYNAMIC_ERROR_CODE:()=>ec,DynamicServerError:()=>ed});var v={};r.r(v),r.d(v,{cookies:()=>eb,draftMode:()=>eS,headers:()=>ev});var b={};r.r(b),r.d(b,{AppRouterContext:()=>ex,CacheStates:()=>y,GlobalLayoutRouterContext:()=>eR,LayoutRouterContext:()=>eC,TemplateContext:()=>eP});var S={};r.r(S),r.d(S,{appRouterContext:()=>b});class w{constructor({userland:e,definition:t}){this.userland=e,this.definition=t}}let _=[["RSC"],["Next-Router-State-Tree"],["Next-Router-Prefetch"]];class x{static get(e,t,r){let n=Reflect.get(e,t,r);return"function"==typeof n?n.bind(e):n}static set(e,t,r,n){return Reflect.set(e,t,r,n)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}class C extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers")}static callable(){throw new C}}class R extends Headers{constructor(e){super(),this.headers=new Proxy(e,{get(t,r,n){if("symbol"==typeof r)return x.get(t,r,n);let a=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===a);if(void 0!==o)return x.get(t,o,n)},set(t,r,n,a){if("symbol"==typeof r)return x.set(t,r,n,a);let o=r.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===o);return x.set(t,s??r,n,a)},has(t,r){if("symbol"==typeof r)return x.has(t,r);let n=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0!==a&&x.has(t,a)},deleteProperty(t,r){if("symbol"==typeof r)return x.deleteProperty(t,r);let n=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0===a||x.deleteProperty(t,a)}})}static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"append":case"delete":case"set":return C.callable;default:return x.get(e,t,r)}}})}merge(e){return Array.isArray(e)?e.join(", "):e}static from(e){return e instanceof Headers?e:new R(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,n]of this.entries())e.call(t,n,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()}}var P=r("./dist/compiled/@edge-runtime/cookies/index.js");class k extends Error{constructor(){super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#cookiessetname-value-options")}static callable(){throw new k}}class E{static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"clear":case"delete":case"set":return k.callable;default:return x.get(e,t,r)}}})}}let T=Symbol.for("next.mutated.cookies");function O(e,t){let r=function(e){let t=e[T];return t&&Array.isArray(t)&&0!==t.length?t:[]}(t);if(0===r.length)return!1;let n=new P.ResponseCookies(e),a=n.getAll();for(let e of r)n.set(e);for(let e of a)n.set(e);return!0}class A{static wrap(e,t){let r=new P.ResponseCookies(new Headers);for(let t of e.getAll())r.set(t);let n=[],a=new Set,o=()=>{var e;let o=null==fetch.__nextGetStaticStore?void 0:null==(e=fetch.__nextGetStaticStore.call(fetch))?void 0:e.getStore();o&&(o.pathWasRevalidated=!0);let s=r.getAll();if(n=s.filter(e=>a.has(e.name)),t){let e=[];for(let t of n){let r=new P.ResponseCookies(new Headers);r.set(t),e.push(r.toString())}t(e)}};return new Proxy(r,{get(e,t,r){switch(t){case T:return n;case"delete":return function(...t){a.add("string"==typeof t[0]?t[0]:t[0].name);try{e.delete(...t)}finally{o()}};case"set":return function(...t){a.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.set(...t)}finally{o()}};default:return x.get(e,t,r)}}})}}let j="_N_T_",N={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"};({...N,GROUP:{server:[N.reactServerComponents,N.actionBrowser,N.appMetadataRoute,N.appRouteHandler],nonClientServerTarget:[N.middleware,N.api],app:[N.reactServerComponents,N.actionBrowser,N.appMetadataRoute,N.appRouteHandler,N.serverSideRendering,N.appPagesBrowser]}});let L="__prerender_bypass";Symbol("__next_preview_data"),Symbol(L);class ${constructor(e,t,r,n){var a;let o=e&&function(e,t){let r=R.from(e.headers),n=r.get("x-prerender-revalidate"),a=n===t.previewModeId,o=r.has("x-prerender-revalidate-if-generated");return{isOnDemandRevalidate:a,revalidateOnlyGenerated:o}}(t,e).isOnDemandRevalidate,s=null==(a=r.get(L))?void 0:a.value;this.isEnabled=!!(!o&&s&&e&&s===e.previewModeId),this._previewModeId=null==e?void 0:e.previewModeId,this._mutableCookies=n}enable(){if(!this._previewModeId)throw Error("Invariant: previewProps missing previewModeId this should never happen");this._mutableCookies.set({name:L,value:this._previewModeId,httpOnly:!0,sameSite:"lax",secure:!1,path:"/"})}disable(){this._mutableCookies.set({name:L,value:"",httpOnly:!0,sameSite:"lax",secure:!1,path:"/",expires:new Date(0)})}}let M={wrap(e,{req:t,res:r,renderOpts:n},a){let o;function s(e){r&&r.setHeader("Set-Cookie",e)}n&&"previewProps"in n&&(o=n.previewProps);let i={},l={get headers(){return i.headers||(i.headers=function(e){let t=R.from(e);for(let e of _)t.delete(e.toString().toLowerCase());return R.seal(t)}(t.headers)),i.headers},get cookies(){return i.cookies||(i.cookies=function(e){let t=new P.RequestCookies(R.from(e));return E.seal(t)}(t.headers)),i.cookies},get mutableCookies(){return i.mutableCookies||(i.mutableCookies=function(e,t){let r=new P.RequestCookies(R.from(e));return A.wrap(r,t)}(t.headers,(null==n?void 0:n.onUpdateCookies)||(r?s:void 0))),i.mutableCookies},get draftMode(){return i.draftMode||(i.draftMode=new $(o,t,this.cookies,this.mutableCookies)),i.draftMode}};return e.run(l,a,l)}},I={wrap(e,{urlPathname:t,renderOpts:r},n){let a=!r.supportsDynamicHTML&&!r.isDraftMode&&!r.isServerAction,o={isStaticGeneration:a,urlPathname:t,pagePath:r.originalPathname,incrementalCache:r.incrementalCache||globalThis.__incrementalCache,isRevalidate:r.isRevalidate,isPrerendering:r.nextExport,fetchCache:r.fetchCache,isOnDemandRevalidate:r.isOnDemandRevalidate,isDraftMode:r.isDraftMode};return r.store=o,e.run(o,n,o)}};function D(){return new Response(null,{status:400})}function H(){return new Response(null,{status:405})}let U=["GET","HEAD","OPTIONS","POST","PUT","DELETE","PATCH"];(function(e){e.handleRequest="BaseServer.handleRequest",e.run="BaseServer.run",e.pipe="BaseServer.pipe",e.getStaticHTML="BaseServer.getStaticHTML",e.render="BaseServer.render",e.renderToResponseWithComponents="BaseServer.renderToResponseWithComponents",e.renderToResponse="BaseServer.renderToResponse",e.renderToHTML="BaseServer.renderToHTML",e.renderError="BaseServer.renderError",e.renderErrorToResponse="BaseServer.renderErrorToResponse",e.renderErrorToHTML="BaseServer.renderErrorToHTML",e.render404="BaseServer.render404"})(t||(t={})),function(e){e.loadDefaultErrorComponents="LoadComponents.loadDefaultErrorComponents",e.loadComponents="LoadComponents.loadComponents"}(a||(a={})),function(e){e.getRequestHandler="NextServer.getRequestHandler",e.getServer="NextServer.getServer",e.getServerRequestHandler="NextServer.getServerRequestHandler",e.createServer="createServer.createServer"}(o||(o={})),function(e){e.compression="NextNodeServer.compression",e.getBuildId="NextNodeServer.getBuildId",e.generateStaticRoutes="NextNodeServer.generateStaticRoutes",e.generateFsStaticRoutes="NextNodeServer.generateFsStaticRoutes",e.generatePublicRoutes="NextNodeServer.generatePublicRoutes",e.generateImageRoutes="NextNodeServer.generateImageRoutes.route",e.sendRenderResult="NextNodeServer.sendRenderResult",e.proxyRequest="NextNodeServer.proxyRequest",e.runApi="NextNodeServer.runApi",e.render="NextNodeServer.render",e.renderHTML="NextNodeServer.renderHTML",e.imageOptimizer="NextNodeServer.imageOptimizer",e.getPagePath="NextNodeServer.getPagePath",e.getRoutesManifest="NextNodeServer.getRoutesManifest",e.findPageComponents="NextNodeServer.findPageComponents",e.getFontManifest="NextNodeServer.getFontManifest",e.getServerComponentManifest="NextNodeServer.getServerComponentManifest",e.getRequestHandler="NextNodeServer.getRequestHandler",e.renderToHTML="NextNodeServer.renderToHTML",e.renderError="NextNodeServer.renderError",e.renderErrorToHTML="NextNodeServer.renderErrorToHTML",e.render404="NextNodeServer.render404",e.route="route",e.onProxyReq="onProxyReq",e.apiResolver="apiResolver",e.internalFetch="internalFetch"}(s||(s={})),(i||(i={})).startServer="startServer.startServer",function(e){e.getServerSideProps="Render.getServerSideProps",e.getStaticProps="Render.getStaticProps",e.renderToString="Render.renderToString",e.renderDocument="Render.renderDocument",e.createBodyResult="Render.createBodyResult"}(l||(l={})),function(e){e.renderToString="AppRender.renderToString",e.renderToReadableStream="AppRender.renderToReadableStream",e.getBodyResult="AppRender.getBodyResult",e.fetch="AppRender.fetch"}(u||(u={})),(c||(c={})).executeRoute="Router.executeRoute",(d||(d={})).runHandler="Node.runHandler",(f||(f={})).runHandler="AppRouteRouteHandlers.runHandler",(p||(p={})).generateMetadata="ResolveMetadata.generateMetadata";let q=require("next/dist/server/lib/trace/tracer");e=r("./dist/esm/lib/web/chalk.js").Z;let B={wait:e.white(e.bold("○")),error:e.red(e.bold("⨯")),warn:e.yellow(e.bold("⚠")),ready:e.bold("▲"),info:e.white(e.bold(" ")),event:e.green(e.bold("✓")),trace:e.magenta(e.bold("\xbb"))},F={log:"log",warn:"warn",error:"error"};function G(e,...t){(""===t[0]||void 0===t[0])&&1===t.length&&t.shift();let r=e in F?F[e]:"log",n=B[e];0===t.length?console[r](""):console[r](" "+n,...t)}function W(...e){G("error",...e)}let V=e=>{let t=["/layout"];if(e.startsWith("/")){let r=e.split("/");for(let e=1;e<r.length+1;e++){let n=r.slice(0,e).join("/");n&&(n.endsWith("/page")||n.endsWith("/route")||(n=`${n}${n.endsWith("/")?"":"/"}layout`),t.push(n))}}return t};function z(e){var t,r;let n=[];if(!e)return n;let{pagePath:a,urlPathname:o}=e;if(Array.isArray(e.tags)||(e.tags=[]),a){let r=V(a);for(let a of r)a=`${j}${a}`,(null==(t=e.tags)?void 0:t.includes(a))||e.tags.push(a),n.push(a)}if(o){let t=`${j}${o}`;(null==(r=e.tags)?void 0:r.includes(t))||e.tags.push(t),n.push(t)}return n}function Y(e,t){if(!e)return;e.fetchMetrics||(e.fetchMetrics=[]);let r=["url","status","method"];e.fetchMetrics.some(e=>r.every(r=>e[r]===t[r]))||e.fetchMetrics.push({url:t.url,cacheStatus:t.cacheStatus,cacheReason:t.cacheReason,status:t.status,method:t.method,start:t.start,end:Date.now(),idx:e.nextFetchId||0})}function K(e){return e.replace(/\/$/,"")||"/"}function J(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r<t);return n||t>-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}function Z(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:n,hash:a}=J(e);return""+t+r+n+a}function X(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:n,hash:a}=J(e);return""+r+t+n+a}function Q(e,t){if("string"!=typeof e)return!1;let{pathname:r}=J(e);return r===t||r.startsWith(t+"/")}function ee(e,t){let r;let n=e.split("/");return(t||[]).some(t=>!!n[1]&&n[1].toLowerCase()===t.toLowerCase()&&(r=t,n.splice(1,1),e=n.join("/")||"/",!0)),{pathname:e,detectedLocale:r}}let et=/(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;function er(e,t){return new URL(String(e).replace(et,"localhost"),t&&String(t).replace(et,"localhost"))}let en=Symbol("NextURLInternal");class ea{constructor(e,t,r){let n,a;"object"==typeof t&&"pathname"in t||"string"==typeof t?(n=t,a=r||{}):a=r||t||{},this[en]={url:er(e,n??a.base),options:a,basePath:""},this.analyze()}analyze(){var e,t,r,n,a;let o=function(e,t){var r,n;let{basePath:a,i18n:o,trailingSlash:s}=null!=(r=t.nextConfig)?r:{},i={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):s};a&&Q(i.pathname,a)&&(i.pathname=function(e,t){if(!Q(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}(i.pathname,a),i.basePath=a);let l=i.pathname;if(i.pathname.startsWith("/_next/data/")&&i.pathname.endsWith(".json")){let e=i.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),r=e[0];i.buildId=r,l="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(i.pathname=l)}if(o){let e=t.i18nProvider?t.i18nProvider.analyze(i.pathname):ee(i.pathname,o.locales);i.locale=e.detectedLocale,i.pathname=null!=(n=e.pathname)?n:i.pathname,!e.detectedLocale&&i.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(l):ee(l,o.locales)).detectedLocale&&(i.locale=e.detectedLocale)}return i}(this[en].url.pathname,{nextConfig:this[en].options.nextConfig,parseData:!process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE,i18nProvider:this[en].options.i18nProvider}),s=function(e,t){let r;if((null==t?void 0:t.host)&&!Array.isArray(t.host))r=t.host.toString().split(":")[0];else{if(!e.hostname)return;r=e.hostname}return r.toLowerCase()}(this[en].url,this[en].options.headers);this[en].domainLocale=this[en].options.i18nProvider?this[en].options.i18nProvider.detectDomainLocale(s):function(e,t,r){if(e)for(let o of(r&&(r=r.toLowerCase()),e)){var n,a;let e=null==(n=o.domain)?void 0:n.split(":")[0].toLowerCase();if(t===e||r===o.defaultLocale.toLowerCase()||(null==(a=o.locales)?void 0:a.some(e=>e.toLowerCase()===r)))return o}}(null==(t=this[en].options.nextConfig)?void 0:null==(e=t.i18n)?void 0:e.domains,s);let i=(null==(r=this[en].domainLocale)?void 0:r.defaultLocale)||(null==(a=this[en].options.nextConfig)?void 0:null==(n=a.i18n)?void 0:n.defaultLocale);this[en].url.pathname=o.pathname,this[en].defaultLocale=i,this[en].basePath=o.basePath??"",this[en].buildId=o.buildId,this[en].locale=o.locale??i,this[en].trailingSlash=o.trailingSlash}formatPathname(){var e;let t;return t=function(e,t,r,n){if(!t||t===r)return e;let a=e.toLowerCase();return!n&&(Q(a,"/api")||Q(a,"/"+t.toLowerCase()))?e:Z(e,"/"+t)}((e={basePath:this[en].basePath,buildId:this[en].buildId,defaultLocale:this[en].options.forceLocale?void 0:this[en].defaultLocale,locale:this[en].locale,pathname:this[en].url.pathname,trailingSlash:this[en].trailingSlash}).pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix),(e.buildId||!e.trailingSlash)&&(t=K(t)),e.buildId&&(t=X(Z(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=Z(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:X(t,"/"):K(t)}formatSearch(){return this[en].url.search}get buildId(){return this[en].buildId}set buildId(e){this[en].buildId=e}get locale(){return this[en].locale??""}set locale(e){var t,r;if(!this[en].locale||!(null==(r=this[en].options.nextConfig)?void 0:null==(t=r.i18n)?void 0:t.locales.includes(e)))throw TypeError(`The NextURL configuration includes no locale "${e}"`);this[en].locale=e}get defaultLocale(){return this[en].defaultLocale}get domainLocale(){return this[en].domainLocale}get searchParams(){return this[en].url.searchParams}get host(){return this[en].url.host}set host(e){this[en].url.host=e}get hostname(){return this[en].url.hostname}set hostname(e){this[en].url.hostname=e}get port(){return this[en].url.port}set port(e){this[en].url.port=e}get protocol(){return this[en].url.protocol}set protocol(e){this[en].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[en].url=er(e),this.analyze()}get origin(){return this[en].url.origin}get pathname(){return this[en].url.pathname}set pathname(e){this[en].url.pathname=e}get hash(){return this[en].url.hash}set hash(e){this[en].url.hash=e}get search(){return this[en].url.search}set search(e){this[en].url.search=e}get password(){return this[en].url.password}set password(e){this[en].url.password=e}get username(){return this[en].url.username}set username(e){this[en].url.username=e}get basePath(){return this[en].basePath}set basePath(e){this[en].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 ea(String(this),this[en].options)}}function eo(e){let t=new URL(e);return t.host="localhost:3000",t.search="",t.protocol="http",t.toString()}let es=require("next/dist/client/components/request-async-storage.external.js");function ei(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,r,n,a]=e.digest.split(";",4);return"NEXT_REDIRECT"===t&&("replace"===r||"push"===r)&&"string"==typeof n&&("true"===a||"false"===a)}!function(e){e.push="push",e.replace="replace"}(h||(h={}));let el=["HEAD","OPTIONS"],eu=["OPTIONS","POST","PUT","DELETE","PATCH"];!function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE"}(m||(m={}));let ec="DYNAMIC_SERVER_USAGE";class ed extends Error{constructor(e){super("Dynamic server usage: "+e),this.digest=ec}}let ef=require("next/dist/client/components/action-async-storage.external.js"),ep=require("next/dist/client/components/static-generation-async-storage.external.js");class eh extends Error{constructor(...e){super(...e),this.code="NEXT_STATIC_GEN_BAILOUT"}}function em(e,t){let{dynamic:r,link:n}=t||{};return"Page"+(r?' with `dynamic = "'+r+'"`':"")+" couldn't be rendered statically because it used `"+e+"`."+(n?" See more info here: "+n:"")}let ey=(e,t)=>{let r=ep.staticGenerationAsyncStorage.getStore();if(null==r?void 0:r.forceStatic)return!0;if(null==r?void 0:r.dynamicShouldError){var n;throw new eh(em(e,{...t,dynamic:null!=(n=null==t?void 0:t.dynamic)?n:"error"}))}if(r&&(r.revalidate=0),null==r?void 0:r.isStaticGeneration){let n=new ed(em(e,{...t,link:"https://nextjs.org/docs/messages/dynamic-server-error"}));throw r.dynamicUsageDescription=e,r.dynamicUsageStack=n.stack,n}return!1};class eg{get isEnabled(){return this._provider.isEnabled}enable(){if(!ey("draftMode().enable()"))return this._provider.enable()}disable(){if(!ey("draftMode().disable()"))return this._provider.disable()}constructor(e){this._provider=e}}function ev(){if(ey("headers",{link:"https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering"}))return R.seal(new Headers({}));let e=es.requestAsyncStorage.getStore();if(!e)throw Error("Invariant: headers() expects to have requestAsyncStorage, none available.");return e.headers}function eb(){if(ey("cookies",{link:"https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering"}))return E.seal(new P.RequestCookies(new Headers({})));let e=es.requestAsyncStorage.getStore();if(!e)throw Error("Invariant: cookies() expects to have requestAsyncStorage, none available.");let t=ef.actionAsyncStorage.getStore();return t&&(t.isAction||t.isAppRoute)?e.mutableCookies:e.cookies}function eS(){let e=es.requestAsyncStorage.getStore();if(!e)throw Error("Invariant: draftMode() expects to have requestAsyncStorage, none available.");return new eg(e.draftMode)}var ew=r("./dist/compiled/react/index.js"),e_=r.n(ew);!function(e){e.LAZY_INITIALIZED="LAZYINITIALIZED",e.DATA_FETCH="DATAFETCH",e.READY="READY"}(y||(y={}));let ex=e_().createContext(null),eC=e_().createContext(null),eR=e_().createContext(null),eP=e_().createContext(null);ex.displayName="AppRouterContext",eC.displayName="LayoutRouterContext",eR.displayName="GlobalLayoutRouterContext",eP.displayName="TemplateContext";class ek extends w{static #e=this.sharedModules=S;static is(e){return e.definition.kind===m.APP_ROUTE}constructor({userland:e,definition:t,resolvedPagePath:r,nextConfigOutput:n}){if(super({userland:e,definition:t}),this.requestAsyncStorage=es.requestAsyncStorage,this.staticGenerationAsyncStorage=ep.staticGenerationAsyncStorage,this.serverHooks=g,this.headerHooks=v,this.staticGenerationBailout=ey,this.actionAsyncStorage=ef.actionAsyncStorage,this.resolvedPagePath=r,this.nextConfigOutput=n,this.methods=function(e){let t=U.reduce((t,r)=>({...t,[r]:e[r]??H}),{}),r=new Set(U.filter(t=>e[t])),n=el.filter(e=>!r.has(e));for(let a of n){if("HEAD"===a){if(!e.GET)break;t.HEAD=e.GET,r.add("HEAD");continue}if("OPTIONS"===a){let e=["OPTIONS",...r];!r.has("HEAD")&&r.has("GET")&&e.push("HEAD");let n={Allow:e.sort().join(", ")};t.OPTIONS=()=>new Response(null,{status:204,headers:n}),r.add("OPTIONS");continue}throw Error(`Invariant: should handle all automatic implementable methods, got method: ${a}`)}return t}(e),this.nonStaticMethods=function(e){let t=eu.filter(t=>e[t]);return 0!==t.length&&t}(e),this.dynamic=this.userland.dynamic,"export"===this.nextConfigOutput){if(this.dynamic&&"auto"!==this.dynamic){if("force-dynamic"===this.dynamic)throw Error(`export const dynamic = "force-dynamic" on page "${t.pathname}" cannot be used with "output: export". See more info here: https://nextjs.org/docs/advanced-features/static-html-export`)}else this.dynamic="error"}{let e=U.map(e=>e.toLowerCase());for(let t of e)t in this.userland&&W(`Detected lowercase method '${t}' in '${this.resolvedPagePath}'. Export the uppercase '${t.toUpperCase()}' method name to fix this error.`);"default"in this.userland&&W(`Detected default export in '${this.resolvedPagePath}'. Export a named export for each HTTP method instead.`),U.some(e=>e in this.userland)||W(`No HTTP methods exported in '${this.resolvedPagePath}'. Export a named export for each HTTP method.`)}}resolve(e){return U.includes(e)?this.methods[e]:D}async execute(e,t){let r=this.resolve(e.method),n={req:e};n.renderOpts={previewProps:t.prerenderManifest.preview};let a={urlPathname:e.nextUrl.pathname,renderOpts:t.staticGenerationContext??{supportsDynamicHTML:!1,originalPathname:this.definition.pathname}};a.renderOpts.fetchCache=this.userland.fetchCache;let o=await this.actionAsyncStorage.run({isAppRoute:!0},()=>M.wrap(this.requestAsyncStorage,n,()=>I.wrap(this.staticGenerationAsyncStorage,a,n=>{var a;switch(this.nonStaticMethods&&this.staticGenerationBailout(`non-static methods used ${this.nonStaticMethods.join(", ")}`),this.dynamic){case"force-dynamic":n.forceDynamic=!0,this.staticGenerationBailout("force-dynamic",{dynamic:this.dynamic});break;case"force-static":n.forceStatic=!0;break;case"error":n.dynamicShouldError=!0}n.revalidate??=this.userland.revalidate??!1;let o=function(e,{dynamic:t},r){function n(e){switch(e){case"search":case"searchParams":case"toString":case"href":case"origin":r.staticGenerationBailout(`nextUrl.${e}`);return;default:return}}let a={},o=(e,t)=>{switch(t){case"search":return"";case"searchParams":return a.searchParams||(a.searchParams=new URLSearchParams),a.searchParams;case"url":case"href":return a.url||(a.url=eo(e)),a.url;case"toJSON":case"toString":return a.url||(a.url=eo(e)),a.toString||(a.toString=()=>a.url),a.toString;case"headers":return a.headers||(a.headers=new Headers),a.headers;case"cookies":return a.headers||(a.headers=new Headers),a.cookies||(a.cookies=new P.RequestCookies(a.headers)),a.cookies;case"clone":return a.url||(a.url=eo(e)),()=>new ea(a.url)}},s=new Proxy(e.nextUrl,{get(e,r){if(n(r),"force-static"===t&&"string"==typeof r){let t=o(e.href,r);if(void 0!==t)return t}let a=e[r];return"function"==typeof a?a.bind(e):a},set:(e,t,r)=>(n(t),e[t]=r,!0)}),i=e=>{switch(e){case"headers":r.headerHooks.headers();return;case"url":case"body":case"blob":case"json":case"text":case"arrayBuffer":case"formData":r.staticGenerationBailout(`request.${e}`);return;default:return}};return new Proxy(e,{get(e,r){if(i(r),"nextUrl"===r)return s;if("force-static"===t&&"string"==typeof r){let t=o(e.url,r);if(void 0!==t)return t}let n=e[r];return"function"==typeof n?n.bind(e):n},set:(e,t,r)=>(i(t),e[t]=r,!0)})}(e,{dynamic:this.dynamic},{headerHooks:this.headerHooks,serverHooks:this.serverHooks,staticGenerationBailout:this.staticGenerationBailout}),i=function(e){let t="/app/";e.includes(t)||(t="\\app\\");let[,...r]=e.split(t),n=t[0]+r.join(t),a=n.split(".").slice(0,-1).join(".");return a}(this.resolvedPagePath);return null==(a=(0,q.getTracer)().getRootSpanAttributes())||a.set("next.route",i),(0,q.getTracer)().trace(f.runHandler,{spanName:`executing api route (app) ${i}`,attributes:{"next.route":i}},async()=>{var e;!function({serverHooks:e,staticGenerationAsyncStorage:t}){if(globalThis._nextOriginalFetch||(globalThis._nextOriginalFetch=globalThis.fetch),globalThis.fetch.__nextPatched)return;let{DynamicServerError:r}=e,n=globalThis._nextOriginalFetch;globalThis.fetch=async(e,a)=>{var o,i;let l;try{(l=new URL(e instanceof Request?e.url:e)).username="",l.password=""}catch{l=void 0}let c=(null==l?void 0:l.href)??"",d=Date.now(),f=(null==a?void 0:null==(o=a.method)?void 0:o.toUpperCase())||"GET",p=(null==(i=null==a?void 0:a.next)?void 0:i.internal)===!0;return await (0,q.getTracer)().trace(p?s.internalFetch:u.fetch,{kind:q.SpanKind.CLIENT,spanName:["fetch",f,c].filter(Boolean).join(" "),attributes:{"http.url":c,"http.method":f,"net.peer.name":null==l?void 0:l.hostname,"net.peer.port":(null==l?void 0:l.port)||void 0}},async()=>{var o;let s,i,l;let u=t.getStore()||(null==fetch.__nextGetStaticStore?void 0:fetch.__nextGetStaticStore.call(fetch)),f=e&&"object"==typeof e&&"string"==typeof e.method,h=t=>(f?e[t]:null)||(null==a?void 0:a[t]);if(!u||p||u.isDraftMode)return n(e,a);let m=t=>{var r,n,o;return void 0!==(null==a?void 0:null==(r=a.next)?void 0:r[t])?null==a?void 0:null==(n=a.next)?void 0:n[t]:f?null==(o=e.next)?void 0:o[t]:void 0},y=m("revalidate"),g=function(e,t){let r=[],n=[];for(let t of e)"string"!=typeof t?n.push({tag:t,reason:"invalid type, must be a string"}):t.length>256?n.push({tag:t,reason:"exceeded max length of 256"}):r.push(t);if(n.length>0)for(let{tag:e,reason:r}of(console.warn(`Warning: invalid tags passed to ${t}: `),n))console.log(`tag: "${e}" ${r}`);return r}(m("tags")||[],`fetch ${e.toString()}`);if(Array.isArray(g))for(let e of(u.tags||(u.tags=[]),g))u.tags.includes(e)||u.tags.push(e);let v=z(u),b="only-cache"===u.fetchCache,S="force-cache"===u.fetchCache,w="default-cache"===u.fetchCache,_="default-no-store"===u.fetchCache,x="only-no-store"===u.fetchCache,C="force-no-store"===u.fetchCache,R=h("cache"),P="";"string"==typeof R&&void 0!==y&&(function(...e){G("warn",...e)}(`fetch for ${c} on ${u.urlPathname} specified "cache: ${R}" and "revalidate: ${y}", only one should be specified.`),R=void 0),"force-cache"===R&&(y=!1),["no-cache","no-store"].includes(R||"")&&(y=0,P=`cache: ${R}`),("number"==typeof y||!1===y)&&(l=y);let k=h("headers"),E="function"==typeof(null==k?void 0:k.get)?k:new Headers(k||{}),T=E.get("authorization")||E.get("cookie"),O=!["get","head"].includes((null==(o=h("method"))?void 0:o.toLowerCase())||"get"),A=(T||O)&&0===u.revalidate;if(C&&(l=0,P="fetchCache = force-no-store"),x){if("force-cache"===R||0===l)throw Error(`cache: 'force-cache' used on fetch for ${c} with 'export const fetchCache = 'only-no-store'`);l=0,P="fetchCache = only-no-store"}if(b&&"no-store"===R)throw Error(`cache: 'no-store' used on fetch for ${c} with 'export const fetchCache = 'only-cache'`);S&&(void 0===y||0===y)&&(P="fetchCache = force-cache",l=!1),void 0===l?w?(l=!1,P="fetchCache = default-cache"):A?(l=0,P="auto no cache"):_?(l=0,P="fetchCache = default-no-store"):(P="auto cache",l="boolean"!=typeof u.revalidate&&void 0!==u.revalidate&&u.revalidate):P||(P=`revalidate: ${l}`),!A&&(void 0===u.revalidate||"number"==typeof l&&(!1===u.revalidate||"number"==typeof u.revalidate&&l<u.revalidate))&&(u.revalidate=l);let j="number"==typeof l&&l>0||!1===l;if(u.incrementalCache&&j)try{s=await u.incrementalCache.fetchCacheKey(c,f?e:a)}catch(t){console.error("Failed to generate cache key for",e)}let N=u.nextFetchId??1;u.nextFetchId=N+1;let L="number"!=typeof l?31536e3:l,$=async(t,r)=>{let o=["cache","credentials","headers","integrity","keepalive","method","mode","redirect","referrer","referrerPolicy","window","duplex",...t?[]:["signal"]];if(f){let t=e,r={body:t._ogBody||t.body};for(let e of o)r[e]=t[e];e=new Request(t.url,r)}else if(a){let e=a;for(let t of(a={body:a._ogBody||a.body},o))a[t]=e[t]}let i={...a,next:{...null==a?void 0:a.next,fetchType:"origin",fetchIdx:N}};return n(e,i).then(async n=>{if(t||Y(u,{start:d,url:c,cacheReason:r||P,cacheStatus:0===l||r?"skip":"miss",status:n.status,method:i.method||"GET"}),200===n.status&&u.incrementalCache&&s&&j){let t=Buffer.from(await n.arrayBuffer());try{await u.incrementalCache.set(s,{kind:"FETCH",data:{headers:Object.fromEntries(n.headers.entries()),body:t.toString("base64"),status:n.status,url:n.url},revalidate:L},{fetchCache:!0,revalidate:l,fetchUrl:c,fetchIdx:N,tags:g})}catch(t){console.warn("Failed to set fetch cache",e,t)}let r=new Response(t,{headers:new Headers(n.headers),status:n.status});return Object.defineProperty(r,"url",{value:n.url}),r}return n})},M=()=>Promise.resolve();if(s&&u.incrementalCache){M=await u.incrementalCache.lock(s);let e=u.isOnDemandRevalidate?null:await u.incrementalCache.get(s,{fetchCache:!0,revalidate:l,fetchUrl:c,fetchIdx:N,tags:g,softTags:v});if(e?await M():i="cache-control: no-cache (hard refresh)",(null==e?void 0:e.value)&&"FETCH"===e.value.kind&&!(u.isRevalidate&&e.isStale)){let t;e.isStale&&(u.pendingRevalidates||(u.pendingRevalidates=[]),u.pendingRevalidates.push($(!0).catch(console.error)));let r=e.value.data;t=Buffer.from(r.body,"base64").subarray(),Y(u,{start:d,url:c,cacheReason:P,cacheStatus:"hit",status:r.status||200,method:(null==a?void 0:a.method)||"GET"});let n=new Response(t,{headers:r.headers,status:r.status});return Object.defineProperty(n,"url",{value:e.value.data.url}),n}}if(u.isStaticGeneration&&a&&"object"==typeof a){let t=a.cache;if("no-store"===t){u.revalidate=0;let t=`no-store fetch ${e}${u.urlPathname?` ${u.urlPathname}`:""}`,n=new r(t);u.dynamicUsageErr=n,u.dynamicUsageStack=n.stack,u.dynamicUsageDescription=t}let n="next"in a,o=a.next||{};if("number"==typeof o.revalidate&&(void 0===u.revalidate||"number"==typeof u.revalidate&&o.revalidate<u.revalidate)){let t=u.forceDynamic;if(t&&0===o.revalidate||(u.revalidate=o.revalidate),!t&&0===o.revalidate){let t=`revalidate: ${o.revalidate} fetch ${e}${u.urlPathname?` ${u.urlPathname}`:""}`,n=new r(t);u.dynamicUsageErr=n,u.dynamicUsageStack=n.stack,u.dynamicUsageDescription=t}}n&&delete a.next}return $(!1,i).finally(M)})},globalThis.fetch.__nextGetStaticStore=()=>t,globalThis.fetch.__nextPatched=!0}({serverHooks:this.serverHooks,staticGenerationAsyncStorage:this.staticGenerationAsyncStorage});let a=await r(o,{params:t.params?function(e){let t={};for(let[r,n]of Object.entries(e))void 0!==n&&(t[r]=n);return t}(t.params):void 0});if(!(a instanceof Response))throw Error(`No response is returned from route handler '${this.resolvedPagePath}'. Ensure you return a \`Response\` or a \`NextResponse\` in all branches of your handler.`);t.staticGenerationContext.fetchMetrics=n.fetchMetrics,await Promise.all(n.pendingRevalidates||[]),z(n),t.staticGenerationContext.fetchTags=null==(e=n.tags)?void 0:e.join(",");let i=this.requestAsyncStorage.getStore();if(i&&i.mutableCookies){let e=new Headers(a.headers);if(O(e,i.mutableCookies))return new Response(a.body,{status:a.status,statusText:a.statusText,headers:e})}return a})})));if(!(o instanceof Response))return new Response(null,{status:500});if(o.headers.has("x-middleware-rewrite"))throw Error("NextResponse.rewrite() was used in a app route handler, this is not currently supported. Please remove the invocation to continue.");if("1"===o.headers.get("x-middleware-next"))throw Error("NextResponse.next() was used in a app route handler, this is not supported. See here for more info: https://nextjs.org/docs/messages/next-response-next-in-app-route-handler");return o}async handle(e,t){try{let r=await this.execute(e,t);return r}catch(t){let e=function(e){if(ei(e)){let t=ei(e)?e.digest.split(";",3)[2]:null;if(!t)throw Error("Invariant: Unexpected redirect url format");return function(e,t){let r=new Headers({location:e});return O(r,t),new Response(null,{status:307,headers:r})}(t,e.mutableCookies)}return(null==e?void 0:e.digest)==="NEXT_NOT_FOUND"&&new Response(null,{status:404})}(t);if(!e)throw t;return e}}}let eE=ek})(),module.exports=n})(); |