bpms_site/.svn/pristine/88/88ef46d00b0016f0714e40baa8d92d606b86538e.svn-base
2025-11-02 16:38:49 +03:30

6 lines
68 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(()=>{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 i(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 s(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]=s(e),{domain:o,expires:i,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,...i&&{expires:new Date(i)},...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:()=>s,parseSetCookie:()=>l,splitCookiesString:()=>c,stringifyCookie:()=>i}),e.exports=((e,o,i,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let i of n(o))a.call(e,i)||void 0===i||t(e,i,{get:()=>o[i],enumerable:!(s=r(o,i))||s.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,i=[],s=0;function l(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}for(;s<e.length;){for(t=s,o=!1;l();)if(","===(r=e.charAt(s))){for(n=s,s+=1,l(),a=s;s<e.length&&"="!==(r=e.charAt(s))&&";"!==r&&","!==r;)s+=1;s<e.length&&"="===e.charAt(s)?(o=!0,s=a,i.push(e.substring(t,n)),t=s):s=n+1}else s+=1;(!o||s>=e.length)&&i.push(e.substring(t,e.length))}return i}var d=class{constructor(e){this._parsed=new Map,this._headers=e;let t=e.get("cookie");if(t){let e=s(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])=>i(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])=>i(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=i(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(i).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),i=(r||{}).decode||e,s=0;s<o.length;s++){var l=o[s],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,i))}}return a},t.serialize=function(e,t,n){var o=n||{},i=o.encode||r;if("function"!=typeof i)throw TypeError("option encode is invalid");if(!a.test(e))throw TypeError("argument name is invalid");var s=i(t);if(s&&!a.test(s))throw TypeError("argument val is invalid");var l=e+"="+s;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-experimental/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,i,s,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.debug_trace_mode"),T=Symbol.for("react.offscreen"),O=Symbol.for("react.cache"),A=Symbol.for("react.default_value"),j=Symbol.for("react.postpone"),N=Symbol.iterator;function L(e){if(null===e||"object"!=typeof e)return null;var t=N&&e[N]||e["@@iterator"];return"function"==typeof t?t:null}var $={current:null},M={current:null},I={transition:null},D={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1},H={current:null},U={},q=null;U.setExtraStackFrame=function(e){q=e},U.getCurrentStack=null,U.getStackAddendum=function(){var e="";q&&(e+=q);var t=U.getCurrentStack;return t&&(e+=t()||""),e};var B={ReactCurrentDispatcher:$,ReactCurrentCache:M,ReactCurrentBatchConfig:I,ReactCurrentOwner:H};function F(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];W("warn",e,r)}function G(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];W("error",e,r)}function W(e,t,r){var n=B.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)}B.ReactDebugCurrentFrame=U,B.ReactCurrentActQueue=D,B.ContextRegistry={};var V={};function z(e,t){var r=e.constructor,n=r&&(r.displayName||r.name)||"ReactClass",a=n+"."+t;V[a]||(G("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),V[a]=!0)}var Y={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){z(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){z(e,"replaceState")},enqueueSetState:function(e,t,r,n){z(e,"setState")}},K=Object.assign,J={};function Z(e,t,r){this.props=e,this.context=t,this.refs=J,this.updater=r||Y}Object.freeze(J),Z.prototype.isReactComponent={},Z.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")},Z.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var X={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)."]},Q=function(e,t){Object.defineProperty(Z.prototype,e,{get:function(){F("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var ee in X)X.hasOwnProperty(ee)&&Q(ee,X[ee]);function et(){}function er(e,t,r){this.props=e,this.context=t,this.refs=J,this.updater=r||Y}et.prototype=Z.prototype;var en=er.prototype=new et;en.constructor=er,K(en,Z.prototype),en.isPureReactComponent=!0;var ea=Array.isArray;function eo(e){if(function(e){try{return!1}catch(e){return!0}}(0))return G("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 ei(e){return e.displayName||"Context"}function es(e){if(null==e)return null;if("number"==typeof e.tag&&G("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 O:return"Cache"}if("object"==typeof e)switch(e.$$typeof){case w:return ei(e)+".Consumer";case S:return ei(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 es(e.type)||"Memo";case k:var r=e._payload,n=e._init;try{return es(n(r))}catch(e){break}case _:return(e.displayName||e._globalName)+".Provider"}return null}var el=Object.prototype.hasOwnProperty,eu={key:!0,ref:!0,__self:!0,__source:!0};function ec(e){if(el.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function ed(e){if(el.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function ef(e,t,r,n,a,o,i){var s={$$typeof:m,type:e,key:t,ref:r,props:i,_owner:o};return s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s}function ep(e,t,o){var i,s={},l=null,u=null,c=null,d=null;if(null!=t)for(i in ec(t)&&(u=t.ref,function(e){if("string"==typeof e.ref&&H.current&&e.__self&&H.current.stateNode!==e.__self){var t=es(H.current.type);a[t]||(G('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)),ed(t)&&(eo(t.key),l=""+t.key),c=void 0===t.__self?null:t.__self,d=void 0===t.__source?null:t.__source,t)el.call(t,i)&&!eu.hasOwnProperty(i)&&(s[i]=t[i]);var f=arguments.length-2;if(1===f)s.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),s.children=p}if(e&&e.defaultProps){var m=e.defaultProps;for(i in m)void 0===s[i]&&(s[i]=m[i])}if(l||u){var y,g,v="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&((y=function(){r||(r=!0,G("%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(s,"key",{get:y,configurable:!0})),u&&((g=function(){n||(n=!0,G("%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(s,"ref",{get:g,configurable:!0}))}return ef(e,l,u,c,d,H.current,s)}function eh(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=K({},e.props),i=e.key,s=e.ref,l=e._self,u=e._source,c=e._owner;if(null!=t)for(n in ec(t)&&(s=t.ref,c=H.current),ed(t)&&(eo(t.key),i=""+t.key),e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)el.call(t,n)&&!eu.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 ef(e.type,i,s,l,u,c,o)}function em(e){return"object"==typeof e&&null!==e&&e.$$typeof===m}a={};var ey=!1,eg=/\/+/g;function ev(e){return e.replace(eg,"$&/")}function eb(e,t){if("object"==typeof e&&null!==e&&null!=e.key){var r,n;return eo(e.key),r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})}return t.toString(36)}function eS(e,t,r){if(null==e)return e;var n=[],a=0;return function e(t,r,n,a,o){var i=typeof t;("undefined"===i||"boolean"===i)&&(t=null);var s=!1;if(null===t)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case m:case y:s=!0}}if(s){var l,u,c=t,d=o(c),f=""===a?"."+eb(c,0):a;if(ea(d)){var p="";null!=f&&(p=ev(f)+"/"),e(d,r,p,"",function(e){return e})}else null!=d&&(em(d)&&(d.key&&(!c||c.key!==d.key)&&eo(d.key),l=d,u=n+(d.key&&(!c||c.key!==d.key)?ev(""+d.key)+"/":"")+f,d=ef(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(ea(t))for(var v=0;v<t.length;v++)w=g+eb(S=t[v],v),h+=e(S,r,n,w,o);else{var b=L(t);if("function"==typeof b){var S,w,_,x=t;b===x.entries&&(ey||F("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ey=!0);for(var C=b.call(x),R=0;!(_=C.next()).done;)w=g+eb(S=_.value,R++),h+=e(S,r,n,w,o)}else if("object"===i){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 ew(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&&G("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||G("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 e_=Symbol.for("react.client.reference");function ex(e){return"string"==typeof e||"function"==typeof e||e===g||e===b||e===v||e===C||e===R||e===T||e===O||"object"==typeof e&&null!==e&&(e.$$typeof===k||e.$$typeof===P||e.$$typeof===S||e.$$typeof===w||e.$$typeof===x||e.$$typeof===e_||void 0!==e.getModuleId)}function eC(){return new WeakMap}function eR(){return{s:0,v:void 0,o:null,p:null}}function eP(){var e=$.current;return null===e&&G("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 ek=0;function eE(){}eE.__reactDisabledLog=!0;var eT=B.ReactCurrentDispatcher;function eO(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 eA=!1;function ej(e,t){if(!e||eA)return"";var r,n,a=p.get(e);if(void 0!==a)return a;eA=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0,n=eT.current,eT.current=null,function(){if(0===ek){o=console.log,i=console.info,s=console.warn,l=console.error,u=console.group,c=console.groupCollapsed,d=console.groupEnd;var e={configurable:!0,enumerable:!0,value:eE,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ek++}();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{eA=!1,eT.current=n,function(){if(0==--ek){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:K({},e,{value:o}),info:K({},e,{value:i}),warn:K({},e,{value:s}),error:K({},e,{value:l}),group:K({},e,{value:u}),groupCollapsed:K({},e,{value:c}),groupEnd:K({},e,{value:d})})}ek<0&&G("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?eO(w):"";return"function"==typeof e&&p.set(e,_),_}function eN(e,t,r){if(null==e)return"";if("function"==typeof e)return ej(e,!!((n=e.prototype)&&n.isReactComponent));if("string"==typeof e)return eO(e);switch(e){case C:return eO("Suspense");case R:return eO("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case x:return ej(e.render,!1);case P:return eN(e.type,t,r);case k:var n,a=e._payload,o=e._init;try{return eN(o(a),t,r)}catch(e){}}return""}p=new("function"==typeof WeakMap?WeakMap:Map);var eL={},e$=B.ReactDebugCurrentFrame;function eM(e){if(e){var t=e._owner,r=eN(e.type,e._source,t?t.type:null);e$.setExtraStackFrame(r)}else e$.setExtraStackFrame(null)}var eI=Symbol.for("react.client.reference");function eD(e){if(e){var t=e._owner;q=eN(e.type,e._source,t?t.type:null)}else q=null}function eH(){if(H.current){var e=es(H.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}h=!1;var eU={};function eq(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=eH();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(!eU[r]){eU[r]=!0;var n="";e&&e._owner&&e._owner!==H.current&&(n=" It was passed a child from "+es(e._owner.type)+"."),eD(e),G('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),eD(null)}}}function eB(e,t){if("object"==typeof e&&e){if(e.$$typeof===eI);else if(ea(e))for(var r=0;r<e.length;r++){var n=e[r];em(n)&&eq(n,t)}else if(em(e))e._store&&(e._store.validated=!0);else{var a=L(e);if("function"==typeof a&&a!==e.entries)for(var o,i=a.call(e);!(o=i.next()).done;)em(o.value)&&eq(o.value,t)}}}function eF(e){var t,r=e.type;if(null!=r&&"string"!=typeof r&&r.$$typeof!==eI){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=es(r);!function(e,t,r,n,a){var o=Function.call.bind(el);for(var i in e)if(o(e,i)){var s=void 0;try{if("function"!=typeof e[i]){var l=Error((n||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[i](t,i,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(eM(a),G("%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,i,typeof s),eM(null)),s instanceof Error&&!(s.message in eL)&&(eL[s.message]=!0,eM(a),G("Failed %s type: %s",r,s.message),eM(null))}}(t,e.props,"prop",n,e)}else void 0===r.PropTypes||h||(h=!0,G("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",es(r)||"Unknown"));"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||G("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function eG(e,t,r){var n=ex(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 i=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);(i?o+=i:o+=eH(),null===e)?a="null":ea(e)?a="array":void 0!==e&&e.$$typeof===m?(a="<"+(es(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,G("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 s=ep.apply(this,arguments);if(null==s)return s;if(n)for(var l=2;l<arguments.length;l++)eB(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){eD(e),G("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),eD(null);break}}null!==e.ref&&(eD(e),G("Invalid attribute `ref` supplied to `React.Fragment`."),eD(null))}(s):eF(s),s}var eW=!1,eV=B.ContextRegistry,ez=!1,eY=null;function eK(t){if(null===eY)try{var r=("require"+Math.random()).slice(0,7);eY=(e&&e[r]).call(e,"timers").setImmediate}catch(e){eY=function(e){!1===ez&&(ez=!0,"undefined"==typeof MessageChannel&&G("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 eY(t)}var eJ=0,eZ=!1;function eX(e,t){t!==eJ-1&&G("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),eJ=t}function eQ(e,t,r){var n=D.current;if(null!==n){if(0!==n.length)try{e1(n),eK(function(){return eQ(e,t,r)})}catch(e){r(e)}else D.current=null,t(e)}else t(e)}var e0=!1;function e1(e){if(!e0){e0=!0;var t=0;try{for(;t<e.length;t++)for(var r=e[t];;){D.didUsePromise=!1;var n=r(!1);if(null!==n){if(D.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{e0=!1}}}var e2="function"==typeof queueMicrotask?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:eK;t.Children={map:eS,forEach:function(e,t,r){eS(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return eS(e,function(){t++}),t},toArray:function(e){return eS(e,function(e){return e})||[]},only:function(e){if(!em(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=Z,t.Fragment=g,t.Profiler=b,t.PureComponent=er,t.StrictMode=v,t.Suspense=C,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,t.cache=function(e){return function(){var t,r=M.current;if(!r)return e.apply(null,arguments);var n=r.getCacheForType(eC),a=n.get(e);void 0===a?(t=eR(),n.set(e,t)):t=a;for(var o=0,i=arguments.length;o<i;o++){var s=arguments[o];if("function"==typeof s||"object"==typeof s&&null!==s){var l=t.o;null===l&&(t.o=l=new WeakMap);var u=l.get(s);void 0===u?(t=eR(),l.set(s,t)):t=u}else{var c=t.p;null===c&&(t.p=c=new Map);var d=c.get(s);void 0===d?(t=eR(),c.set(s,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=eh.apply(this,arguments),a=2;a<arguments.length;a++)eB(arguments[a],n.type);return eF(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,G("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,G("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||(F("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=eG,t.createFactory=function(e){var t=eG.bind(null,e);return t.type=e,eW||(eW=!0,F("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 F("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(!eV[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||(G("Consumer pattern is not supported by ReactServerContext"),n=!0),null}}}),eV[e]=a}var o=eV[e];if(o._defaultValue===A)o._defaultValue=t,o._currentValue===A&&(o._currentValue=t),o._currentValue2===A&&(o._currentValue2=t);else if(r)throw Error("ServerContext: "+e+" already defined");return o},t.experimental_useEffectEvent=function(e){return eP().useEffectEvent(e)},t.experimental_useOptimistic=function(e,t){return eP().useOptimistic(e,t)},t.forwardRef=function(e){null!=e&&e.$$typeof===P?G("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?G("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&G("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)&&G("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=em,t.lazy=function(e){var t,r,n={$$typeof:k,_payload:{_status:-1,_result:e},_init:ew};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){G("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){G("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){ex(e)||G("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=I.transition;I.transition={};var n=I.transition;I.transition._updatedFibers=new Set;try{e()}finally{if(I.transition=r,null===r&&n._updatedFibers){var a=n._updatedFibers.size;n._updatedFibers.clear(),a>10&&F("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_Cache=O,t.unstable_DebugTracingMode=E,t.unstable_Offscreen=T,t.unstable_SuspenseList=R,t.unstable_act=function(e){var t,r=D.isBatchingLegacy,n=D.current,a=eJ;eJ++;var o=D.current=null!==n?n:[];D.isBatchingLegacy=!0;var i=!1;try{D.didScheduleLegacyUpdate=!1,t=e();var s=D.didScheduleLegacyUpdate;!r&&s&&e1(o),D.isBatchingLegacy=r}catch(e){throw D.isBatchingLegacy=r,eX(n,a),e}if(null!==t&&"object"==typeof t&&"function"==typeof t.then){var l=t;return e2(function(){i||eZ||(eZ=!0,G("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){i=!0,l.then(function(r){if(eX(n,a),0===a)try{e1(o),eK(function(){return eQ(r,e,t)})}catch(e){t(e)}else e(r)},function(e){eX(n,a),t(e)})}}}var u=t;return eX(n,a),0===a&&(e1(o),0!==o.length&&e2(function(){i||eZ||(eZ=!0,G("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(() => ...)"))}),D.current=null),{then:function(e,t){i=!0,0===a?(D.current=o,eK(function(){return eQ(u,e,t)})):e(u)}}},t.unstable_getCacheForType=function(e){var t=M.current;return t?t.getCacheForType(e):e()},t.unstable_getCacheSignal=function(){var e=M.current;if(!e){var t=new AbortController,r=Error("This CacheSignal was requested outside React which means that it is immediately aborted.");return t.abort(r),t.signal}return e.getCacheSignal()},t.unstable_postpone=function(e){var t=Error(e);throw t.$$typeof=j,t},t.unstable_useCacheRefresh=function(){return eP().useCacheRefresh()},t.unstable_useMemoCache=function(e){return eP().useMemoCache(e)},t.use=function(e){return eP().use(e)},t.useCallback=function(e,t){return eP().useCallback(e,t)},t.useContext=function(e){var t=eP();if(void 0!==e._context){var r=e._context;r.Consumer===e?G("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&&G("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 eP().useDebugValue(e,t)},t.useDeferredValue=function(e){return eP().useDeferredValue(e)},t.useEffect=function(e,t){return eP().useEffect(e,t)},t.useId=function(){return eP().useId()},t.useImperativeHandle=function(e,t,r){return eP().useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return eP().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return eP().useLayoutEffect(e,t)},t.useMemo=function(e,t){return eP().useMemo(e,t)},t.useReducer=function(e,t,r){return eP().useReducer(e,t,r)},t.useRef=function(e){return eP().useRef(e)},t.useState=function(e){return eP().useState(e)},t.useSyncExternalStore=function(e,t,r){return eP().useSyncExternalStore(e,t,r)},t.useTransition=function(){return eP().useTransition()},t.version="18.3.0-experimental-2807d781a-20230918","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()},"./dist/compiled/react-experimental/index.js":(e,t,r)=>{"use strict";e.exports=r("./dist/compiled/react-experimental/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,i,s,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(),i=Object.keys(e).find(e=>e.toLowerCase()===o);return x.set(t,i??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 i=r.getAll();if(n=i.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,i=null==(a=r.get(L))?void 0:a.value;this.isEnabled=!!(!o&&i&&e&&i===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 i(e){r&&r.setHeader("Set-Cookie",e)}n&&"previewProps"in n&&(o=n.previewProps);let s={},l={get headers(){return s.headers||(s.headers=function(e){let t=R.from(e);for(let e of _)t.delete(e.toString().toLowerCase());return R.seal(t)}(t.headers)),s.headers},get cookies(){return s.cookies||(s.cookies=function(e){let t=new P.RequestCookies(R.from(e));return E.seal(t)}(t.headers)),s.cookies},get mutableCookies(){return s.mutableCookies||(s.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?i:void 0))),s.mutableCookies},get draftMode(){return s.draftMode||(s.draftMode=new $(o,t,this.cookies,this.mutableCookies)),s.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"}(i||(i={})),(s||(s={})).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:i}=null!=(r=t.nextConfig)?r:{},s={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):i};a&&Q(s.pathname,a)&&(s.pathname=function(e,t){if(!Q(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}(s.pathname,a),s.basePath=a);let l=s.pathname;if(s.pathname.startsWith("/_next/data/")&&s.pathname.endsWith(".json")){let e=s.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),r=e[0];s.buildId=r,l="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(s.pathname=l)}if(o){let e=t.i18nProvider?t.i18nProvider.analyze(s.pathname):ee(s.pathname,o.locales);s.locale=e.detectedLocale,s.pathname=null!=(n=e.pathname)?n:s.pathname,!e.detectedLocale&&s.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(l):ee(l,o.locales)).detectedLocale&&(s.locale=e.detectedLocale)}return s}(this[en].url.pathname,{nextConfig:this[en].options.nextConfig,parseData:!process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE,i18nProvider:this[en].options.i18nProvider}),i=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(i):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,i);let s=(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=s,this[en].basePath=o.basePath??"",this[en].buildId=o.buildId,this[en].locale=o.locale??s,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 ei=require("next/dist/client/components/request-async-storage.external.js");function es(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=ei.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=ei.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=ei.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-experimental/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=ei.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)}},i=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)}),s=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(s(r),"nextUrl"===r)return i;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)=>(s(t),e[t]=r,!0)})}(e,{dynamic:this.dynamic},{headerHooks:this.headerHooks,serverHooks:this.serverHooks,staticGenerationBailout:this.staticGenerationBailout}),s=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",s),(0,q.getTracer)().trace(f.runHandler,{spanName:`executing api route (app) ${s}`,attributes:{"next.route":s}},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,s;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==(s=null==a?void 0:a.next)?void 0:s.internal)===!0;return await (0,q.getTracer)().trace(p?i.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 i,s,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{i=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 s={...a,next:{...null==a?void 0:a.next,fetchType:"origin",fetchIdx:N}};return n(e,s).then(async n=>{if(t||Y(u,{start:d,url:c,cacheReason:r||P,cacheStatus:0===l||r?"skip":"miss",status:n.status,method:s.method||"GET"}),200===n.status&&u.incrementalCache&&i&&j){let t=Buffer.from(await n.arrayBuffer());try{await u.incrementalCache.set(i,{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(i&&u.incrementalCache){M=await u.incrementalCache.lock(i);let e=u.isOnDemandRevalidate?null:await u.incrementalCache.get(i,{fetchCache:!0,revalidate:l,fetchUrl:c,fetchIdx:N,tags:g,softTags:v});if(e?await M():s="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,s).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 s=this.requestAsyncStorage.getStore();if(s&&s.mutableCookies){let e=new Headers(a.headers);if(O(e,s.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(es(e)){let t=es(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})();