//# allFunctionsCalledOnLoad import{n as e,r as t}from"./CcyWYbDU.js";import{i as n,n as r,r as i}from"./B0PXqnjO.js";var a=t(n(),1),o=Symbol.for(`vinext.client.instrumentationHooks`);function s(e){return Object.values(e).some(e=>typeof e==`function`)?e:null}function c(e){return Reflect.set(globalThis,o,e),e}function l(){return Reflect.get(globalThis,o)??null}function u(e,t){l()?.onRouterTransitionStart?.(e,t)}var d=`_b_0_`;function f(e,t){return t?e===t||e.startsWith(t+`/`):!1}function p(e,t){return f(e,t)?e.slice(t.length)||`/`:e}function m(e,t){return t?e===`/`?t:`${t}${e}`:e}function ee(e){if(e===`/`)return`/`;let t=e.length;for(;t>0&&e.charCodeAt(t-1)===47;)t--;return t===0?`/`:e.slice(0,t)}var h=class extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}},g=class extends URLSearchParams{append(){throw new h}delete(){throw new h}set(){throw new h}sort(){throw new h}},te=class{run(e,t,...n){return t(...n)}getStore(){}enterWith(){}exit(e,...t){return e(...t)}disable(){}},ne=globalThis,re=Symbol.for(`vinext.als.registry`),ie=ne[re]??=new Set,ae=class{getStore(){}run(e,t,...n){return t(...n)}exit(e,...t){return e(...t)}enterWith(e){}disable(){}};function oe(e){let t=Symbol.for(e),n=ne[t]??=typeof te==`function`?new te:new ae;return ie.add(n),n}oe(`vinext.pprFallbackShell.als`),oe(`vinext.pprFallbackShell.cacheTaskStack.als`);var se=`NEXT_REDIRECT;`;function ce(e){if(!e.startsWith(se))return null;let t=e.indexOf(`;`,14);if(t===-1)return null;let n=e.slice(t+1),r=n.match(/;(303|307|308);?$/),i=n!==``&&e.endsWith(`;`);if(i&&!r)return null;let a=r?n.slice(0,-r[0].length):n,o=a;if(!i)try{o=decodeURIComponent(a)}catch{return null}return{status:r?Number(r[1]):307,type:e.slice(14,t)||null,url:o}}var le=`NEXT_HTTP_ERROR_FALLBACK`,ue=Symbol.for(`vinext.navigationError.thrown`),de=class extends Error{digest;[ue]=!0;constructor(e,t){super(e),this.digest=t}};function fe(){throw new de(`NEXT_NOT_FOUND`,`${le};404`)}function pe(){throw new de(`NEXT_FORBIDDEN`,`${le};403`)}function me(){throw new de(`NEXT_UNAUTHORIZED`,`${le};401`)}function he(e){return!!e&&typeof e==`object`&&`digest`in e&&typeof e.digest==`string`&&e.digest.startsWith(`NEXT_REDIRECT;`)}function ge(e){let t=ce(e);return t?{url:t.url,type:t.type===`push`?`push`:`replace`}:null}var _e=`BAILOUT_TO_CLIENT_SIDE_RENDERING`;function ve(e){return!!e&&typeof e==`object`&&`digest`in e&&e.digest===_e}var ye=Symbol.for(`vinext.appRouterContext`),be=Symbol.for(`vinext.globalLayoutRouterContext`),xe=Symbol.for(`vinext.layoutRouterContext`),Se=Symbol.for(`vinext.missingSlotContext`),Ce=Symbol.for(`vinext.templateContext`);function we(e,t){if(typeof a.createContext!=`function`)return null;let n=globalThis;return n[e]||(n[e]=a.createContext(t)),n[e]??null}var Te=we(ye,null);we(be,null),we(xe,null),we(Se,new Set),we(Ce,null);var Ee=Symbol.for(`vinext.navigation.pagesNavigationContextAccessor`);function De(){let e=globalThis[Ee];if(!e)return null;try{return e()}catch{return null}}var Oe=Symbol.for(`vinext.layoutSegmentContext`),ke=Symbol.for(`vinext.serverInsertedHTMLContext`),Ae=Symbol.for(`vinext.bfcacheIdMapContext`),je=Symbol.for(`vinext.bfcacheSegmentIdContext`),Me=Symbol.for(`vinext.navigation.clientHydrationContext`),Ne=Symbol.for(`vinext.navigation.fallback`);function Pe(e){return typeof a.createContext==`function`?a.createContext(e):null}function Fe(){let e=globalThis;return e[ke]||(e[ke]=Pe(null)),e[ke]??null}Fe();function Ie(){let e=globalThis;return e[Oe]||(e[Oe]=Pe({children:[]})),e[Oe]??null}function Le(){let e=globalThis;return e[Ae]||(e[Ae]=Pe(null)),e[Ae]??null}function Re(){let e=globalThis;return e[je]||(e[je]=Pe(null)),e[je]??null}function ze(){let e=globalThis;return e[Ne]??={serverContext:null,serverInsertedHTMLCallbacks:[]}}function Be(){let e=globalThis;if(Object.prototype.hasOwnProperty.call(e,Me))return e[Me]??null}function Ve(e){globalThis[Me]=e}function He(){Ve(null)}var Ue=()=>{{let e=Be();return e===void 0?ze().serverContext:e}},We=e=>{ze().serverContext=e,Ve(e)};function Ge(){return Ue()}function Ke(e){We(e)}var qe=Symbol.for(`vinext.navigation.readonlySearchParams`),Je=Symbol.for(`vinext.navigation.readonlySearchParamsSource`),Ye=Symbol.for(`vinext.navigation.readonlySearchParamsSourceKey`),Xe=Symbol.for(`vinext.navigation.pagesNavigationNotify`),Ze=Symbol.for(`vinext.clientNavigationState`);function _(){let e=window;return e[Ze]??={listeners:new Set,cachedSearch:window.location.search,cachedReadonlySearchParams:new g(window.location.search),cachedPathname:p(window.location.pathname,``),clientParams:{},clientParamsJson:`{}`,pendingClientParams:null,pendingClientParamsJson:null,pendingPathname:null,pendingPathnameNavId:null,originalPushState:window.history.pushState.bind(window.history),originalReplaceState:window.history.replaceState.bind(window.history),patchInstalled:!1,routerHistoryWriteDepth:0,routerHistoryWrite:null,hasPendingNavigationUpdate:!1,suppressUrlNotifyCount:0,navigationSnapshotActiveCount:0},e[Ze]}function Qe(){let e=_();if(e)for(let t of e.listeners)t()}globalThis[Xe]=Qe;var $e=null,et=new WeakMap,tt=null,nt=null;function rt(e){let t=et.get(e);if(t)return t;let n=e.toString();if(tt===n&&nt)return et.set(e,nt),nt;let r=new g(e);return et.set(e,r),tt=n,nt=r,r}var it=null;function at(){let e=Ge()!==null,t=De();if(!e&&t)return rt(t.searchParams);let n=_();return n?(e&&st(n),n.cachedReadonlySearchParams):(it===null&&(it=new g),it)}var ot=null;function st(e){let t=lt();t!==e.cachedReadonlySearchParams&&t!==ot&&(ot=t,t.toString()===e.cachedReadonlySearchParams.toString()&&(e.cachedReadonlySearchParams=t))}function ct(){let e=_();if(!e)return!1;let t=!1,n=p(window.location.pathname,``);n!==e.cachedPathname&&(e.cachedPathname=n,t=!0);let r=window.location.search;return r!==e.cachedSearch&&(e.cachedSearch=r,e.cachedReadonlySearchParams=new g(r),t=!0),t}function lt(){let e=Ge();if(!e){let e=De();return e?rt(e.searchParams):($e===null&&($e=new g),$e)}let t=e.searchParams,n=e[qe],r=e[Je];if(n&&r===t)return n;let i=t.toString();if(n&&e[Ye]===i)return e[Je]=t,n;let a=new g(t);return e[qe]=a,e[Je]=t,e[Ye]=i,a}function ut(){let e=_();e&&e.navigationSnapshotActiveCount++}var dt=Symbol.for(`vinext.clientNavigationRenderContext`);function ft(){if(typeof a.createContext!=`function`)return null;let e=globalThis;return e[dt]||(e[dt]=a.createContext(null)),e[dt]??null}function pt(){let e=ft();if(!e||typeof a.useContext!=`function`)return null;try{return a.useContext(e)}catch{return null}}function mt(e,t,n){let r=window.location.origin,i=new URL(e,r);return{pathname:p(i.pathname,``),search:i.search,searchParams:new g(i.search),params:t,...n==null?{}:{renderedSearch:new URL(n,r).search}}}function ht(e){return e.pathname+e.search}var gt=`{}`;function _t(e){let t=_();if(!t){let t=JSON.stringify(e);t!==gt&&(gt=t);return}let n=JSON.stringify(e);n!==t.clientParamsJson&&(t.clientParams=e,t.clientParamsJson=n,t.pendingClientParams=null,t.pendingClientParamsJson=null,Qe())}function vt(e){let t=_();if(!t)return;let n=JSON.stringify(e);n!==t.clientParamsJson&&n!==t.pendingClientParamsJson&&(t.pendingClientParams=e,t.pendingClientParamsJson=n,t.hasPendingNavigationUpdate=!0)}function yt(e,t){let n=_();n&&(n.pendingPathname=p(e,``),n.pendingPathnameNavId=t)}function bt(e){let t=_();t&&(t.pendingPathnameNavId===null||t.pendingPathnameNavId===e)&&(t.pendingPathname=null,t.pendingPathnameNavId=null)}function xt(e){let t=_();return t?(t.listeners.add(e),()=>{t.listeners.delete(e)}):()=>{}}function St(){let e=pt(),t=a.useSyncExternalStore(xt,at,lt);return e&&(_()?.navigationSnapshotActiveCount??0)>0?e.searchParams:t}function Ct(e,t){let n=_();if(!n)return;(t?.releaseSnapshot??e!==void 0)&&n.navigationSnapshotActiveCount>0&&--n.navigationSnapshotActiveCount;let r=ct(),i=!1;n.pendingClientParams!==null&&n.pendingClientParamsJson!==null&&(n.clientParams=n.pendingClientParams,n.clientParamsJson=n.pendingClientParamsJson,n.pendingClientParams=null,n.pendingClientParamsJson=null,i=!0),(n.pendingPathnameNavId===null||e!==void 0&&n.pendingPathnameNavId===e)&&(n.pendingPathname=null,n.pendingPathnameNavId=null);let a=r||n.hasPendingNavigationUpdate;n.hasPendingNavigationUpdate=!1,(r||i)&&He(),a&&Qe()}function wt(e){return!e||e===`0`?d:e}function Tt(){let e=Re(),t=Le();if(!e||!t||typeof a.useContext!=`function`)return wt(null);try{let n=a.useContext(e),r=a.useContext(t);return wt(n===null?null:r?.[n])}catch{return wt(null)}}function Et(){if(!Te||typeof a.useContext!=`function`||typeof a.useMemo!=`function`)throw Error(`invariant expected app router to be mounted`);let e=a.useContext(Te);if(e===null)throw Error(`invariant expected app router to be mounted`);let t=Tt();return a.useMemo(()=>({...e,bfcacheId:t}),[e,t])}function Dt(e,t,n,r){if(e===n)throw Error(`Conflicting app and page routes found for "${e}"`);if(!t)return r?`pages`:`app`;if(!r)return`app`;let i=e.split(`/`).filter(Boolean),a=n.split(`/`).filter(Boolean),o=e=>e.startsWith(`:`)?e.endsWith(`*`)?3:e.endsWith(`+`)?2:1:0;for(let e=0;eencodeURIComponent(e))}function At(e){try{return kt(decodeURIComponent(e))}catch{return e}}function jt(e){return e.split(`/`).map(e=>At(e)).join(`/`)}function v(e){return jt(e).split(`/`).filter(Boolean)}function Mt(e){try{return decodeURIComponent(e)}catch{return e}}function y(e){let t=Object.create(null);for(let[n,r]of e)t[n]=r;return t}function Nt(e){for(let t of Object.keys(e)){let n=e[t];e[t]=Array.isArray(n)?n.map(Mt):Mt(n)}}function Pt(e){return e.split(`/`).filter(Boolean)}function Ft(e){return e.startsWith(`[...`)&&e.endsWith(`]`)&&e.length>5}function It(e){return e.startsWith(`[[...`)&&e.endsWith(`]]`)&&e.length>7}function Lt(){return{catchAllChild:null,dynamicChild:null,optionalCatchAllChild:null,route:null,staticChildren:new Map}}function Rt(e,t){let n=Lt();for(let r of e){let e=n,i=r.patternParts;if(i.length===0)e.route??=r;else for(let[n,a]of i.entries()){let o=n===i.length-1;if(a.startsWith(`:`)&&a.endsWith(`+`)){o&&e.catchAllChild===null&&(e.catchAllChild={paramName:a.slice(1,-1),route:r});break}if(a.startsWith(`:`)&&a.endsWith(`*`)){o&&e.optionalCatchAllChild===null&&(e.optionalCatchAllChild={paramName:a.slice(1,-1),route:r});break}if(a.startsWith(`:`)){let n=a.slice(1);e.dynamicChild===null?e.dynamicChild={node:Lt(),paramName:n}:e.dynamicChild.paramName!==n&&t?.(e.dynamicChild.paramName,a),e=e.dynamicChild.node,o&&(e.route??=r);continue}let s=e.staticChildren.get(a);s===void 0&&(s=Lt(),e.staticChildren.set(a,s)),e=s,o&&(e.route??=r)}}return n}function zt(e,t,n,r){if(n===t.length)return e.route===null?e.optionalCatchAllChild===null?null:{route:e.optionalCatchAllChild.route,params:y(r)}:{route:e.route,params:y(r)};let i=t[n],a=e.staticChildren.get(i);if(a!==void 0)return zt(a,t,n+1,r);if(e.dynamicChild!==null){r.push([e.dynamicChild.paramName,i]);let a=zt(e.dynamicChild.node,t,n+1,r);if(a!==null)return a;r.pop()}if(e.catchAllChild!==null){let i=y(r);return i[e.catchAllChild.paramName]=t.slice(n),{route:e.catchAllChild.route,params:i}}if(e.optionalCatchAllChild!==null){let i=y(r);return i[e.optionalCatchAllChild.paramName]=t.slice(n),{route:e.optionalCatchAllChild.route,params:i}}return null}function Bt(e,t){return zt(e,t,0,[])}function Vt(e){return`route:/${e.join(`/`)}`}function Ht(e){return new Map(e.map(e=>[e.id,e]))}function Ut(e){let t=Ht(e.interceptions);return{graphVersion:e.graphVersion,segmentGraph:{routes:Ht(e.routes.map(e=>({...e,id:e.id??Vt(e.patternParts)}))),layouts:Ht(e.layouts),slotBindings:Ht(e.slotBindings),interceptions:t,interceptionsBySlotId:new Map(e.interceptionsBySlotId.map(([e,n])=>[e,n.flatMap(e=>t.get(e)??[])])),rootBoundaries:Ht(e.rootBoundaries)}}}function b(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var Wt=`__VINEXT_RSC_FORM_STATE__`,Gt=Symbol.for(`vinext.navigationRuntime`),Kt=[`interceptions`,`interceptionsBySlotId`,`layouts`,`rootBoundaries`,`routes`,`slotBindings`];function qt(){return{bootstrap:{routeManifest:null,rsc:void 0},functions:{}}}function Jt(){return window}function Yt(e){return b(e)?x(Reflect.get(e,`clearNavigationCaches`))&&x(Reflect.get(e,`commitHashNavigation`))&&x(Reflect.get(e,`navigateExternal`))&&x(Reflect.get(e,`navigate`))&&x(Reflect.get(e,`getPrefetchRouterState`))&&x(Reflect.get(e,`notifyLinkNavigationStart`))&&x(Reflect.get(e,`pingVisibleLinks`))&&x(Reflect.get(e,`preparePrefetchResponse`))&&x(Reflect.get(e,`readVisitedResponseForFullPrefetch`))&&x(Reflect.get(e,`claimCurrentHistoryTreeSnapshot`))&&x(Reflect.get(e,`commitAppOwnedHistoryStateWrite`))&&x(Reflect.get(e,`discardPendingNavigation`))&&x(Reflect.get(e,`flushCommittingNavigationUrl`))&&x(Reflect.get(e,`loadRouteManifest`)):!1}function Xt(e){return typeof e==`string`||Array.isArray(e)&&e.length===2&&e[0]===3&&typeof e[1]==`string`}function Zt(e){if(!b(e))return!1;let t=Reflect.get(e,`pathname`),n=Reflect.get(e,`searchParams`);return typeof t==`string`&&Array.isArray(n)&&n.every(e=>Array.isArray(e)&&e.length===2&&typeof e[0]==`string`&&typeof e[1]==`string`)}function Qt(e){return b(e)?Object.values(e).every(e=>typeof e==`string`||Array.isArray(e)&&e.every(e=>typeof e==`string`)):!1}function $t(e){if(!b(e))return!1;let t=Reflect.get(e,`compatibilityId`),n=Reflect.get(e,`done`),r=Reflect.get(e,`dynamicStaleTimeSeconds`),i=Reflect.get(e,`initialCacheKind`),a=Reflect.get(e,`searchParamsFromBrowser`),o=Reflect.get(e,`nav`),s=Reflect.get(e,`params`),c=Reflect.get(e,`renderedSearch`),l=Reflect.get(e,`rsc`),u=Reflect.get(e,`staleTimeSeconds`);return(t===void 0||typeof t==`string`)&&(n===void 0||typeof n==`boolean`)&&en(r)&&(i===void 0||i===`dynamic`||i===`static`)&&(a===void 0||typeof a==`boolean`)&&(o===void 0||Zt(o))&&(s===void 0||Qt(s))&&(c===void 0||typeof c==`string`)&&Array.isArray(l)&&l.every(Xt)&&en(u)}function en(e){return e===void 0||typeof e==`number`&&Number.isFinite(e)&&e>=0}function tn(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`)}function nn(e){return e===null||typeof e==`string`}function rn(e){return b(e)?typeof e.id==`string`&&tn(e.sourcePatternParts)&&tn(e.targetPatternParts)&&typeof e.slotId==`string`&&nn(e.ownerLayoutId)&&nn(e.targetRouteId):!1}function an(e){return Array.isArray(e)&&e.every(rn)}function on(e){if(!b(e))return!1;let t=Reflect.get(e,`graphVersion`),n=Reflect.get(e,`segmentGraph`);if(typeof t!=`string`||!b(n))return!1;let r=Reflect.get(n,`interceptions`),i=Reflect.get(n,`interceptionsBySlotId`);if(!Kt.every(e=>Reflect.get(n,e)instanceof Map)||!(r instanceof Map)||!(i instanceof Map))return!1;for(let e of r.values())if(!rn(e))return!1;for(let e of i.values())if(!an(e))return!1;return!0}function sn(e){if(!b(e))return!1;let t=Reflect.get(e,`routeManifest`),n=Reflect.get(e,`rsc`);return(t===null||on(t))&&(n===void 0||$t(n))}function cn(e){if(!b(e)||!(`bootstrap`in e)||!(`functions`in e))return!1;let{bootstrap:t,functions:n}=e;return sn(t)&&Yt(n)}function x(e){return e===void 0||typeof e==`function`}function S(){let e=Jt();if(e===null)return null;let t=Reflect.get(e,Gt);return cn(t)?t:null}function ln(){let e=Jt();if(e===null)return qt();let t=Reflect.get(e,Gt),n=cn(t)?t:qt();return Reflect.set(e,Gt,n),n}function un(e){let t=ln();return t.bootstrap={...t.bootstrap,...e},t}function dn(e){let t=ln();return t.functions={...t.functions,...e},t}function fn(){return pn(ln())}function pn(e){let t=e.bootstrap.rsc;if(t===void 0){let t={rsc:[]};return e.bootstrap.rsc=t,t}return t}function mn(e){let t=!1,n=!1,r=null;return()=>t?null:(r??=e().then(({default:e})=>(un({routeManifest:e===null?null:Ut(e)}),t=!0,!0)).catch(e=>(r=null,n||(n=!0,console.error(`[vinext] Failed to load the App Router route manifest:`,e)),!1)),r)}function hn(){return S()?.functions.loadRouteManifest?.()??null}function gn(){return typeof S()?.functions.navigate==`function`}var _n=`Next-Router-State-Tree`,C=`Next-Router-Prefetch`,w=`Next-Router-Segment-Prefetch`,vn=`Next-Url`,yn=`X-Vinext-Interception-Context`,bn=`X-Vinext-Interception-Id`,xn=`X-Vinext-Mounted-Slots`,T=`X-Vinext-Rsc-Render-Mode`,Sn=`X-Vinext-Rsc-State-Fingerprint`,Cn=[`RSC`,_n,C,w,vn,yn,bn,xn,T,Sn].join(`, `),wn=new Set(Cn.split(`,`).map(e=>e.trim().toLowerCase()));function Tn(e){return wn.has(e.trim().toLowerCase())}var En=`1.4.5`;function Dn(e){let t=window.next;t?(e.version!==void 0&&(t.version=e.version),e.appDir!==void 0&&(t.appDir=e.appDir),e.router!==void 0&&(t.router=e.router),e.__pendingUrl!==void 0&&(t.__pendingUrl=e.__pendingUrl),e.__internal_src_page!==void 0&&(t.__internal_src_page=e.__internal_src_page)):window.next={version:e.version??En,...e}}function On(e){if(Dn({}),e===null){delete window.next?.__internal_src_page;return}let t=window.next;t&&(t.__internal_src_page=e)}function kn(){return window.next?.__pendingUrl??null}function An(e){let t=kn();return t===null?null:t.href===new URL(e,window.location.href).href?t:null}function jn(e){if(window.next?.__pendingUrl!==void 0){if(e instanceof URL){if(window.next.__pendingUrl!==e)return}else if(e!==void 0&&window.next.__pendingUrl.href!==new URL(e,window.location.href).href)return;delete window.next.__pendingUrl}}function Mn(e){return!1}function Nn(){return()=>{}}function Pn(e,t){return`slot:${e}:${t}`}function Fn(e){if(!e.startsWith(`slot:`))return!1;let t=e.slice(5),n=t.indexOf(`:`);return n>0&&t.charCodeAt(n+1)===47}function In(e){let t=e.indexOf(`\0`),n=t===-1?e:e.slice(0,t);return n.startsWith(`/`)?{interceptionContext:t===-1?null:e.slice(t+1),path:n}:null}function Ln(e){return e.startsWith(`/`)?e:null}function E(e){if(e.startsWith(`route:`)){let t=In(e.slice(6));return t?{interceptionContext:t.interceptionContext,kind:`route`,path:t.path}:null}if(e.startsWith(`page:`)){let t=In(e.slice(5));return t?{interceptionContext:t.interceptionContext,kind:`page`,path:t.path}:null}if(e.startsWith(`layout:`)){let t=Ln(e.slice(7));return t?{kind:`layout`,treePath:t}:null}if(e.startsWith(`template:`)){let t=Ln(e.slice(9));return t?{kind:`template`,treePath:t}:null}if(e.startsWith(`slot:`)){let t=e.slice(5),n=t.indexOf(`:`);if(n<=0)return null;let r=Ln(t.slice(n+1));return r?{kind:`slot`,name:t.slice(0,n),treePath:r}:null}return null}var Rn=4096,zn=256,Bn=16;function Vn(e){return e.length===0||e.length>zn?!1:Fn(e)}function Hn(e){if(!e||e.length>Rn)return null;let t=e.split(/\s+/).filter(e=>e&&Vn(e));return t.length===0?null:Array.from(new Set(t)).sort().slice(0,Bn).join(` `)||null}function Un(e){let t=2166136261;for(let n=0;n>>0;let n=84696351;for(let t=0;t>>0;return t.toString(16).padStart(8,`0`)+n.toString(16).padStart(8,`0`)}function Wn(e={}){return{schemaVersion:1,graphVersion:e.graphVersion??null,deploymentVersion:e.deploymentVersion??null,appElementsSchemaVersion:1,rscPayloadSchemaVersion:1,rootBoundaryId:e.rootBoundaryId??null,renderEpoch:e.renderEpoch??null}}function Gn(e){return typeof e==`string`||e===null}function Kn(e){return e.schemaVersion===1&&e.appElementsSchemaVersion===1&&e.rscPayloadSchemaVersion===1}function qn(e){return!b(e)||!Kn(e)||!Gn(e.graphVersion)||!Gn(e.deploymentVersion)||!Gn(e.rootBoundaryId)||!Gn(e.renderEpoch)?null:{schemaVersion:1,graphVersion:e.graphVersion,deploymentVersion:e.deploymentVersion,appElementsSchemaVersion:1,rscPayloadSchemaVersion:1,rootBoundaryId:e.rootBoundaryId,renderEpoch:e.renderEpoch}}function Jn(e){return e.startsWith(`/`)&&!e.startsWith(`//`)&&!e.includes(`?`)&&!e.includes(`#`)&&!e.includes(`\\`)&&!e.includes(`\0`)}function Yn(e){if(e===`/`||e.length>1&&e[0]===`/`&&!e.includes(`//`)&&!e.includes(`/./`)&&!e.includes(`/../`)&&!e.endsWith(`/.`)&&!e.endsWith(`/..`))return e;let t=e.split(`/`),n=[];for(let e of t)e!==``&&e!==`.`&&(e===`..`?n.pop():n.push(e));return`/`+n.join(`/`)}var Xn=(e,t)=>et),Zn=`\0`,Qn=`__sourcePage`,$n=`__artifactCompatibility`,er=`__cacheEntryReuseProof`,tr=`__dynamicStaleTime`,nr=`__interception`,rr=`__interceptionContext`,ir=`__layoutIds`,ar=`__route`,or=`__rootLayout`,sr=`__skippedLayoutIds`,cr=`__srcPage`,lr=`__slotBindings`,D=`__bfcacheSegmentIdentities`,ur=`__staticSiblings`,dr=`__VINEXT_UNMATCHED_SLOT__`,fr=Symbol.for(`vinext.unmatchedSlot`);function pr(e){return new Set(e)}var mr=pr(`CP_CACHE_ENTRY_PROOF_MISSING.CP_MODEL_DISABLED.CP_ARTIFACT_COMPATIBILITY_INCOMPATIBLE.CP_ARTIFACT_COMPATIBILITY_UNKNOWN.CP_DIMENSION_COUNT_EXCEEDED.CP_DIMENSION_NAME_MISSING.CP_DIMENSION_NAME_TOO_LONG.CP_DIMENSION_VALUE_COUNT_EXCEEDED.CP_DIMENSION_VALUE_TOO_LONG.CP_DIMENSION_VALUES_MISSING.CP_ENCODED_VARIANT_TOO_LONG.CP_INVALID_VARIANT_BUDGET.CP_ROUTE_VARIANT_BUDGET_ROUTE_MISMATCH.CP_ROUTE_VARIANT_CEILING_EXCEEDED.CP_UNSAFE_PUBLIC_DIMENSION.CP_BOUNDARY_OUTCOME_MISMATCH.CP_BOUNDARY_OUTCOME_UNKNOWN.CP_PRIVATE_DYNAMIC_DOWNGRADE.CP_STATIC_LAYOUT_CANDIDATE_OUTPUT_KIND.CP_STATIC_LAYOUT_CURRENT_OUTPUT_KIND.CP_STATIC_LAYOUT_ID_MISMATCH.CP_STATIC_LAYOUT_OBSERVATION_OUTPUT_KIND.CP_STATIC_LAYOUT_OBSERVATION_OUTPUT_MISMATCH.CP_STATIC_LAYOUT_PRIVATE_DYNAMIC_DOWNGRADE.CP_STATIC_LAYOUT_REQUEST_API_OBSERVED.CP_STATIC_LAYOUT_REQUEST_API_UNKNOWN.CP_STATIC_LAYOUT_ROOT_BOUNDARY_MISMATCH.CP_STATIC_LAYOUT_ROOT_BOUNDARY_UNKNOWN.CP_STATIC_LAYOUT_VARIANT_DIMENSION_UNPROVEN`.split(`.`)),O=Xn;function hr(e,t){return O(e.slotId,t.slotId)}function gr(e,t={}){let n=t.layoutIds?new Set(t.layoutIds):null,r=new Set,i=[];for(let t of e){if(r.has(t.slotId))throw Error(`[vinext] Invalid __slotBindings in App Router payload: duplicate slot id`);if(r.add(t.slotId),n&&t.ownerLayoutId!==null&&!n.has(t.ownerLayoutId))throw Error(`[vinext] Invalid __slotBindings in App Router payload: owner layout id missing from __layoutIds`);i.push({...t})}return i.sort(hr)}function _r(e,t){return t===null?e:`${e}${Zn}${t}`}function vr(e,t){return _r(`route:${e}`,t)}function yr(e,t){return _r(`page:${e}`,t)}function br(e){return`layout:${e}`}function xr(e){return`template:${e}`}function Sr(e,t){return _r(e,t)}function Cr(e){let t=e.indexOf(Zn);return t===-1?{interceptionContext:null,rscUrl:e}:{interceptionContext:e.slice(t+1),rscUrl:e.slice(0,t)}}function wr(e){let t=E(e)?.kind;return t===`page`||t===`layout`||t===`template`||t===`slot`}function Tr(e){return Array.isArray(e)&&e.length>0&&e.every(e=>typeof e==`string`&&e.length>0&&!e.includes(`/`))}function Er(e){if(typeof e!=`string`||!e.startsWith(`/`))return null;let t=e.slice(1).split(`/`);return Tr(t)?t:null}function Dr(e){let t=[...e.layoutIds??[]],n=Er(e.sourcePage),r={[ar]:e.routeId,[rr]:e.interceptionContext,[ir]:t,[or]:e.rootLayoutTreePath,...e.dynamicStaleTimeSeconds===void 0?{}:{[tr]:e.dynamicStaleTimeSeconds},...e.bfcacheSegmentIdentities&&Object.keys(e.bfcacheSegmentIdentities).length>0?{[D]:e.bfcacheSegmentIdentities}:{},...n===null?{}:{[cr]:n}},i=e.interception?{...r,[nr]:e.interception}:r;return e.slotBindings&&e.slotBindings.length>0?{...i,[lr]:gr(e.slotBindings,{layoutIds:t})}:i}function Or(e){let t=!1;for(let[n,r]of Object.entries(e))if(Fn(n)&&r===`__VINEXT_UNMATCHED_SLOT__`){t=!0;break}if(!t)return e;let n={};for(let[t,r]of Object.entries(e))n[t]=Fn(t)&&r===`__VINEXT_UNMATCHED_SLOT__`?fr:r;return n}function kr(e,t){if(e===void 0)return[];if(!Array.isArray(e))throw Error(`[vinext] Invalid ${t} in App Router payload: expected layout id string[]`);let n=[];for(let r of e){if(typeof r!=`string`)throw Error(`[vinext] Invalid ${t} in App Router payload: expected layout id string[]`);if(E(r)?.kind!==`layout`)throw Error(`[vinext] Invalid ${t} in App Router payload: expected layout ids`);n.push(r)}return n}function Ar(e){return kr(e,ir)}function jr(e){return kr(e,sr)}function Mr(e){return e===`active`||e==="default"||e===`unmatched`}function Nr(e,t={}){if(e===void 0)return[];if(!Array.isArray(e))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected array`);let n=[];for(let t of e){if(!b(t))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected objects`);let e=t.slotId;if(typeof e!=`string`||E(e)?.kind!==`slot`)throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected slot ids`);let r=t.ownerLayoutId;if(r!==null&&(typeof r!=`string`||E(r)?.kind!==`layout`))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected owner layout ids`);let i=t.state;if(!Mr(i))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected state`);let a=t.activeRouteId;if(a!=null&&(typeof a!=`string`||E(a)?.kind!==`route`))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected route ids`);let o=t.interceptionId;if(o!=null&&(typeof o!=`string`||o.length===0))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected interception ids`);let s=t.interceptionSourceMatchedUrl;if(s!=null&&typeof s!=`string`)throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected interception source URLs`);typeof s==`string`&&Fr(s),n.push({...a===void 0?{}:{activeRouteId:a},...o===void 0?{}:{interceptionId:o},...s===void 0?{}:{interceptionSourceMatchedUrl:s},ownerLayoutId:r,slotId:e,state:i})}return gr(n,t)}function Pr(e,t){let n=e[t];if(typeof n!=`string`)throw Error(`[vinext] Invalid __interception in App Router payload: expected strings`);return n}function Fr(e){if(!Jn(e))throw Error(`[vinext] Invalid __interception in App Router payload: expected path URLs`);return e}function Ir(e,t){let n=E(e);if(n?.kind!==`route`||n.path!==t||n.interceptionContext!==null)throw Error(`[vinext] Invalid __interception in App Router payload: expected route ids`);return e}function Lr(e){if(E(e)?.kind!==`slot`)throw Error(`[vinext] Invalid __interception in App Router payload: expected slot id`);return e}function Rr(e){if(e==null)return null;if(!b(e))throw Error(`[vinext] Invalid __interception in App Router payload: expected object`);let t=Fr(Pr(e,`sourceMatchedUrl`)),n=Fr(Pr(e,`targetMatchedUrl`));return{sourceMatchedUrl:t,sourceRouteId:Ir(Pr(e,`sourceRouteId`),t),slotId:Lr(Pr(e,`slotId`)),targetMatchedUrl:n,targetRouteId:Ir(Pr(e,`targetRouteId`),n)}}function zr(e){return!(typeof e!=`object`||!e||Array.isArray(e)||(0,a.isValidElement)(e))}function Br(e){if(!zr(e.element))return e.element;let t={};for(let[n,r]of Object.entries(e.element))t[n]=r===fr?dr:r;return t[$n]=e.artifactCompatibility??Wn(),e.cacheEntryReuseProof&&(t[er]=e.cacheEntryReuseProof),e.dynamicStaleTimeSeconds!==void 0&&(t[tr]=e.dynamicStaleTimeSeconds),t}function Vr(e){return e===void 0?Wn():qn(e)??Wn()}function Hr(e){return e==null?null:typeof e==`string`?e.startsWith(`/`)?e:null:Tr(e)?`/${e.join(`/`)}`:null}function Ur(){return{kind:`runtime-cache-entry`,decision:null}}function Wr(e){return typeof e==`string`&&mr.has(e)}function Gr(e){return e===`renderFresh`||e===`privateUncacheable`}function Kr(e){return e===`affectedOutput`||e===`route`}function qr(e){if(e===void 0)return null;if(!b(e)||e.kind!==`runtime-cache-entry`)return Ur();let t=e.decision;return t===null||!b(t)?Ur():t.kind===`reuse`&&t.canReuse===!0&&t.code===`CP_STATIC_LAYOUT_REUSE_PROVEN`&&t.reuseClass===`static-layout`?{kind:`runtime-cache-entry`,decision:{canReuse:!0,code:t.code,kind:`reuse`,reuseClass:t.reuseClass}}:t.kind===`reject`&&t.canReuse===!1&&Wr(t.code)&&Gr(t.mode)&&Kr(t.scope)?{kind:`runtime-cache-entry`,decision:{canReuse:!1,code:t.code,kind:`reject`,mode:t.mode,scope:t.scope}}:Ur()}function Jr(e){if(!b(e))return{};let t={};for(let[n,r]of Object.entries(e)){if(typeof r!=`string`||!wr(n))return{};t[n]=r}return t}function Yr(e){let t=e[ar];if(typeof t!=`string`)throw Error(`[vinext] Missing __route string in App Router payload`);let n=e[rr];if(n!=null&&typeof n!=`string`)throw Error(`[vinext] Invalid __interceptionContext in App Router payload`);let r=e[or];if(r===void 0)throw Error(`[vinext] Missing __rootLayout key in App Router payload`);if(r!==null&&typeof r!=`string`)throw Error(`[vinext] Invalid __rootLayout in App Router payload: expected string or null`);let i=Ar(e[ir]),a=jr(e[sr]),o=Nr(e[lr],{layoutIds:i}),s=Rr(e[nr]),c=Vr(e[$n]),l=qr(e[er]),u=e[tr],d=typeof u==`number`&&Number.isFinite(u)&&u>=0?u:void 0,f=Object.hasOwn(e,`__srcPage`)?Hr(e[cr]):Hr(e[Qn]),p=Jr(e[D]);return{artifactCompatibility:c,...l?{cacheEntryReuseProof:l}:{},...d===void 0?{}:{dynamicStaleTimeSeconds:d},interception:s,interceptionContext:n??null,layoutIds:i,routeId:t,rootLayoutTreePath:r,bfcacheSegmentIdentities:p,skippedLayoutIds:a,slotBindings:o,sourcePage:f}}var k={keys:{artifactCompatibility:$n,cacheEntryReuseProof:er,dynamicStaleTime:tr,interception:nr,interceptionContext:rr,layoutIds:ir,rootLayout:or,route:ar,bfcacheSegmentIdentities:D,skippedLayoutIds:sr,slotBindings:lr,sourcePageSegments:cr},unmatchedSlotValue:dr,createMetadataEntries:Dr,decode:Or,decodeCacheKey:Cr,encodeCacheKey:Sr,encodeLayoutId:br,encodeOutgoingPayload:Br,encodePageId:yr,encodeRouteId:vr,encodeSlotId:Pn,encodeTemplateId:xr,isSlotId:Fn,parseElementKey:E,readMetadata:Yr},Xr=e({APP_ARTIFACT_COMPATIBILITY_KEY:()=>$n,APP_BFCACHE_SEGMENT_IDENTITIES_KEY:()=>D,APP_CACHE_ENTRY_REUSE_PROOF_KEY:()=>er,APP_DYNAMIC_STALE_TIME_KEY:()=>tr,APP_INTERCEPTION_CONTEXT_KEY:()=>rr,APP_INTERCEPTION_KEY:()=>nr,APP_LAYOUT_IDS_KEY:()=>ir,APP_PREFETCH_LOADING_SHELL_MARKER_KEY:()=>Zr,APP_ROOT_LAYOUT_KEY:()=>or,APP_ROUTE_KEY:()=>ar,APP_SKIPPED_LAYOUT_IDS_KEY:()=>sr,APP_SLOT_BINDINGS_KEY:()=>lr,APP_SOURCE_PAGE_SEGMENTS_KEY:()=>cr,APP_STATIC_SIBLINGS_KEY:()=>ur,APP_STREAMING_METADATA_BODY_ID_PREFIX:()=>ti,APP_UNMATCHED_SLOT_WIRE_VALUE:()=>dr,AppElementsWire:()=>k,UNMATCHED_SLOT:()=>fr,buildOutgoingAppPayload:()=>Br,compareAppElementsSlotIds:()=>O,getMountedSlotIds:()=>ni,getMountedSlotIdsHeader:()=>ri,isAppElementsRecord:()=>zr,normalizeAppElements:()=>Or,normalizeAppElementsSlotBindings:()=>gr,readAppElementsMetadata:()=>Yr,readOptimisticStateKeyRebinder:()=>ei,resolveVisitedResponseInterceptionContext:()=>ii,setOptimisticStateKeyRebinder:()=>$r}),Zr=`__prefetchLoadingShell`,Qr=`__optimisticStateKeyRebinder`;function $r(e,t){e[Qr]=t}function ei(e){let t=Reflect.get(e,Qr);return typeof t==`function`?t:null}var ti=`__vinext_streaming_metadata_body:`;function ni(e){return Object.keys(e).filter(t=>{let n=e[t],r=k.parseElementKey(t);return r?.kind===`slot`&&r.name!==`children`&&n!=null&&n!==fr}).sort()}function ri(e){return Hn(ni(e).join(` `))}function ii(e,t){return t??e}function ai(e,t){let n=oi(e,t);return n&&Nt(n),n}function oi(e,t){let n=Object.create(null);function r(i,a){if(a===t.length)return i===e.length;let o=t[a];if(o.startsWith(`:`)&&(o.endsWith(`+`)||o.endsWith(`*`))){let t=o.slice(1,-1),s=+!!o.endsWith(`+`);for(let o=i+s;o<=e.length;o++){let s=e.slice(i,o);if(s.length>0?n[t]=s:delete n[t],r(o,a+1))return!0}return delete n[t],!1}if(o.startsWith(`:`)){if(i>=e.length)return!1;let t=o.slice(1);return n[t]=e[i],r(i+1,a+1)?!0:(delete n[t],!1)}return i>=e.length||e[i]!==o?!1:r(i+1,a+1)}return r(0,0)?n:null}function si(e,t){let n=Object.create(null),r=0;for(let i of e){if(!i.startsWith(`:`)){r+=1;continue}let e=i.endsWith(`+`)||i.endsWith(`*`),a=i.slice(1,e?-1:void 0);if(e){let e=t.slice(r);e.length>0&&(n[a]=[...e]);break}let o=t[r];o!==void 0&&(n[a]=o),r+=1}return n}function ci(e,t){let n=0;for(let r=0;r=1;if(i.startsWith(`:`)&&i.endsWith(`*`))return a;if(n>=e.length)return!1;if(i.startsWith(`:`))n++;else{if(e[n]!==i)return!1;n++}}return!0}function li(e,t){function n(r,i){if(i===t.length)return r===e.length;let a=t[i];if(a.startsWith(`:`)&&(a.endsWith(`+`)||a.endsWith(`*`))){let t=+!!a.endsWith(`+`);for(let a=r+t;a<=e.length;a++)if(n(a,i+1))return!0;return!1}return a.startsWith(`:`)?n(r,i+1)||r=e.length||e[r]!==a?!1:n(r+1,i+1)}return n(0,0)}function ui(e){if(e.routeManifest===null)return null;let t=p(e.currentPathname,e.basePath),n=p(e.targetPathname,e.basePath),r=v(t),i=v(n);for(let n of e.routeManifest.segmentGraph.interceptions.values())if(ci(r,n.sourcePatternParts)&&ai(i,n.targetPatternParts)!==null)return t;return null}function di(e){if(e.routeManifest===null)return null;let t=p(e.currentPathname,e.basePath),n=e.currentMatchedPathname?p(e.currentMatchedPathname,e.basePath):null,r=p(e.targetPathname,e.basePath),i=v(t),a=n?v(n):null,o=v(r);for(let r of e.routeManifest.segmentGraph.interceptions.values())if(li(o,r.targetPatternParts)){if(ci(i,r.sourcePatternParts))return t;if(n!==null&&a!==null&&ci(a,r.sourcePatternParts))return fi(n)}return null}function fi(e){if(/%25(?:2f|23|3f|5c)/i.test(e))return null;let t;try{t=new URL(e.replace(/%(?!(?:25)?(?:2f|23|3f|5c))/gi,`%25`),`http://n`).pathname}catch{return null}return Yn(jt(t))===e?t:null}function pi(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0}var mi=`slot:\0vinext_bfcache_segment_`;function hi(e){let t=encodeURIComponent(e);return`${mi}${t.length}_${t}_`}function gi(e,t){return`${hi(e)}${t}:/`}function _i(e){return e.startsWith(mi)}function vi(e,t){return _i(e)&&e.startsWith(hi(t))}function yi(e){switch(e.kind){case`page`:case`layout`:case`template`:return JSON.stringify([e.kind,e.graphId,e.rootBoundaryId,e.boundSegmentKey]);case`slot-shell`:return JSON.stringify([`slot-shell`,e.slotGraphId,e.ownerLayoutGraphId,e.boundOwnerSegmentKey]);case`slot`:return JSON.stringify([`slot`,e.slotGraphId,e.ownerLayoutGraphId,e.state,e.activeRouteGraphId,e.interceptionTargetRouteGraphId,e.boundSegmentKey]);case`sibling-interception`:return JSON.stringify([`sibling-interception`,e.sourceRouteGraphId,e.interceptionGraphId,e.rootBoundaryId,e.boundSegmentKey,e.sourceBoundSegmentKey])}}function bi(e){let t=k.parseElementKey(e);return t?.kind===`layout`||t?.kind===`page`||t?.kind===`slot`||t?.kind===`template`}var xi=0;function Si(e){let t=/^_b_(\d+)_$/.exec(e);t&&(xi=Math.max(xi,Number(t[1])))}function Ci(){return xi+=1,`_b_${xi}_`}function wi(e){try{return k.readMetadata(e)}catch{return null}}function Ti(e,t){let n=new Set(Object.keys(e)),r=t===void 0?wi(e):t;for(let e of r?.layoutIds??[])n.add(e);for(let e of Object.keys(r?.bfcacheSegmentIdentities??{}))n.add(e);return Array.from(n).filter(bi)}function Ei(e){let t={};for(let n of Ti(e))t[n]=`0`;return t}function Di(e){return wi(e.elements)?.bfcacheSegmentIdentities??{}}function Oi(e){let t=e.reuseCurrent===!1?{}:e.current;for(let e of Object.values(t))Si(e);for(let t of Object.values(e.restored??{}))Si(t);let n=wi(e.currentElements),r=wi(e.elements),i={};for(let a of Ti(e.elements,r)){let o=n?.bfcacheSegmentIdentities[a],s=r?.bfcacheSegmentIdentities[a],c=o!==void 0&&o===s?t[a]:void 0,l=(s===void 0?void 0:e.restored?.[a])??c??Ci();i[a]=l,Si(l)}return i}function ki(e){let t={},n=new Set(e.preservePreviousIds??[]),r=new Set(e.preservedElementIds??[]),i=[...r],a=Di({elements:e.elements});for(let o of Ti(e.elements)){let s=i.some(e=>vi(o,e)),c=(r.has(o)||s)&&a[o]===void 0?Ci():n.has(o)||s?e.previous[o]??e.next[o]:e.next[o]??e.previous[o];c!==void 0&&(t[o]=c,Si(c))}return t}var Ai=`__vinext_previousNextUrl`,ji=`__vinext_historyIndex`,Mi=`__vinext_bfcacheIds`,Ni=`__vinext_bfcacheVersion`,Pi=`__vinext_externalHistoryState`,Fi=`__vinext_treeSnapshotId`,A=`__vinext_treeSnapshotClaimed`,Ii=`__vinext_activeRoutePaths`,Li=class{#e;#t=new Map;constructor(e){this.#e=e.maxEntries}clear(){this.#t.clear()}remember(e){if(e.historyIndex===null||(this.#t.delete(e.historyIndex),this.#t.set(e.historyIndex,{bfcacheVersion:e.bfcacheVersion,state:e.state}),this.#t.size<=this.#e))return;let t=this.#t.keys().next().value;typeof t==`number`&&this.#t.delete(t)}replaceState(e,t){for(let n of this.#t.values())n.state===e&&(n.state=t)}resolveRestore(e){let t=M(e.historyState);if(t===null)return{kind:`skip`,reason:`missing-history-index`,targetHistoryIndex:t};let n=this.#t.get(t);return n?e.guarded?{kind:`skip`,reason:`guarded`,targetHistoryIndex:t}:n.bfcacheVersion===e.currentBfcacheVersion?{kind:`restore`,state:n.state,targetHistoryIndex:t}:(this.#t.delete(t),{kind:`skip`,reason:`stale-bfcache-version`,targetHistoryIndex:t}):{kind:`skip`,reason:`missing-snapshot`,targetHistoryIndex:t}}},Ri=class{#e;#t=0;#n;constructor(e){let t=na(e.initialHistoryState);this.#e=t===null?0:t+1,this.#n=new Li({maxEntries:e.maxHistoryStateSnapshots})}get currentBfcacheVersion(){return this.#e}beginCacheInvalidationGuard(){this.#t+=1;let e=!1;return()=>{e||(e=!0,this.#t=Math.max(0,this.#t-1))}}isCacheInvalidationGuarded(){return this.#t>0}isCurrentBfcacheVersion(e){return ra(e,this.#e)}readCurrentBfcacheVersionHistoryIds(e){if(this.isCacheInvalidationGuarded())return null;let t=ta(e);return t===null?null:this.isCurrentBfcacheVersion(e)?t:null}#r(){this.#e+=1}invalidateClientState(){this.#n.clear(),this.#r()}rememberHistoryStateSnapshot(e){this.#n.remember({bfcacheVersion:this.#e,historyIndex:e.historyIndex,state:e.state})}replaceHistoryStateSnapshots(e,t){this.#n.replaceState(e,t)}resolveHistoryStateSnapshotRestore(e){return this.#n.resolveRestore({currentBfcacheVersion:this.#e,guarded:this.isCacheInvalidationGuarded(),historyState:e})}};function zi(e){if(!e||typeof e!=`object`)return{};let t={};for(let[n,r]of Object.entries(e))t[n]=r;return t}function j(e){return!e||typeof e!=`object`||Array.isArray(e)?null:e}function Bi(e,t){let n=zi(e),r=t.bfcacheIds!==void 0&&(t.bfcacheIds===null||Object.keys(t.bfcacheIds).length===0);return t.activeRoutePaths!==void 0&&(t.activeRoutePaths===null||t.activeRoutePaths.length===0?delete n[Ii]:n[Ii]=[...new Set(t.activeRoutePaths)]),t.previousNextUrl===null?delete n[Ai]:n[Ai]=t.previousNextUrl,t.traversalIndex!==void 0&&(pi(t.traversalIndex)?n[ji]=t.traversalIndex:delete n[ji]),t.bfcacheIds!==void 0&&(r?(delete n[Mi],delete n[Ni]):n[Mi]={...t.bfcacheIds}),t.bfcacheVersion!==void 0&&(r?delete n[Ni]:pi(t.bfcacheVersion)?n[Ni]=t.bfcacheVersion:delete n[Ni]),Object.keys(n).length>0?n:null}function Vi(e,t){let n=ea(t),r=M(t),i=ta(t),a=na(t),o=Xi(t);return{...Bi(e,{activeRoutePaths:Qi(t),bfcacheIds:i,bfcacheVersion:i===null?void 0:a,previousNextUrl:n,traversalIndex:r}),...Hi(),...o===null?{}:{[A]:!0,[Fi]:o}}}function Hi(){return{[Pi]:!0}}function Ui(e){return j(e)?.[Pi]===!0}function Wi(e){return!Ui(e)&&M(e)!==null}function Gi(e){let t=zi(e);return delete t[Pi],Object.keys(t).length>0?t:null}function Ki(e,t){let n=zi(e),r=Xi(n);return Zi(t)?(n[Fi]=t,r!==t&&delete n[A]):(delete n[Fi],delete n[A]),Object.keys(n).length>0?n:null}function qi(e,t){let n=zi(e);return t&&Xi(n)!==null?n[A]=!0:delete n[A],Object.keys(n).length>0?n:null}function Ji(e){return j(e)?.[A]===!0}function Yi(e){return Ki(e,null)}function Xi(e){let t=j(e)?.[Fi];return Zi(t)?t:null}function Zi(e){return typeof e==`string`&&e.length>0}function Qi(e){let t=j(e)?.[Ii];if(!Array.isArray(t))return null;let n=[];for(let e of t){if(typeof e!=`string`||!e.startsWith(`/`)||e.startsWith(`//`)||e.includes(`?`)||e.includes(`#`)||e.includes(`\\`)||e.includes(`\0`))return null;n.push(e)}return n.length>0?[...new Set(n)]:null}function $i(e){let t=new Set;for(let n of e){if(n.state!==`active`||n.activeRouteId==null)continue;let e=k.parseElementKey(n.activeRouteId);e?.kind===`route`&&e.interceptionContext===null&&t.add(e.path)}return[...t]}function ea(e){let t=j(e)?.[Ai];return typeof t==`string`?t:null}function ta(e){let t=j(e)?.[Mi];if(!t||typeof t!=`object`||Array.isArray(t))return null;let n={};for(let[e,r]of Object.entries(t)){if(!bi(e)||typeof r!=`string`)return null;n[e]=r}return n}function na(e){let t=j(e)?.[Ni];return pi(t)?t:null}function ra(e,t){let n=na(e);return n!==null&&n===t}function ia(e){let t=ea(e),n=ta(e),r=na(e),i=Qi(e);return t===null&&n===null&&i===null?null:Bi(null,{activeRoutePaths:i,bfcacheIds:n,bfcacheVersion:n===null?void 0:r,previousNextUrl:t})}function M(e){let t=j(e)?.[ji];return pi(t)?t:null}function aa(e){let t=M(e.historyState),n=`unknown`;return e.currentHistoryIndex!==null&&t!==null&&(te.currentHistoryIndex&&(n=`forward`)),{direction:n,historyState:e.historyState,targetHistoryIndex:t}}function oa(e){return Un(JSON.stringify([e.pathAndSearch,e.routeId]))}var sa=e({APP_RSC_RENDER_MODE_NAVIGATION:()=>ca,APP_RSC_RENDER_MODE_PREFETCH_DYNAMIC_SHELL:()=>ua,APP_RSC_RENDER_MODE_PREFETCH_EMPTY:()=>la,APP_RSC_RENDER_MODE_PREFETCH_LOADING_SHELL:()=>da,getRscRenderModeCacheVariant:()=>fa,parseAppRscRenderMode:()=>pa}),ca=`navigation`,la=`prefetch-empty`,ua=`prefetch-dynamic-shell`,da=`prefetch-loading-shell`;function fa(e){return e===`prefetch-empty`?`prefetch-empty`:e===`prefetch-dynamic-shell`?`prefetch-dynamic-shell`:e===`prefetch-loading-shell`?`prefetch-loading-shell`:null}function pa(e){switch(e){case la:return la;case ua:return ua;case da:return da;default:return ca}}var ma=`x-vinext-mw-ctx`,ha=`x-vinext-prerender-secret`,ga=`x-vinext-prerender-route-params`,_a=`x-vinext-prerender-speculative`,va=`x-vinext-revalidate-host`,ya=`x-middleware-override-headers`,ba=`x-middleware-set-cookie`,xa=`x-middleware-skip`,Sa=`x-middleware-`,Ca=e({ACTION_FORWARDED_HEADER:()=>lo,ACTION_REDIRECT_HEADER:()=>fo,ACTION_REDIRECT_STATUS_HEADER:()=>mo,ACTION_REDIRECT_TYPE_HEADER:()=>po,ACTION_REVALIDATED_HEADER:()=>uo,FLIGHT_HEADERS:()=>bo,INTERNAL_HEADERS:()=>xo,MIDDLEWARE_HEADER_PREFIX:()=>Sa,MIDDLEWARE_NEXT_HEADER:()=>ho,MIDDLEWARE_REWRITE_HEADER:()=>go,MIDDLEWARE_SET_COOKIE_HEADER:()=>ba,MIDDLEWARE_SKIP_HEADER:()=>xa,NEXTJS_ACTION_NOT_FOUND_HEADER:()=>ao,NEXTJS_CACHE_HEADER:()=>Ta,NEXTJS_DEPLOYMENT_ID_HEADER:()=>co,NEXT_ACTION_HEADER:()=>io,NEXT_CACHE_TAGS_HEADER:()=>Ea,NEXT_HTML_REQUEST_ID_HEADER:()=>yo,NEXT_REQUEST_ID_HEADER:()=>vo,NEXT_ROUTER_PREFETCH_HEADER:()=>C,NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:()=>w,NEXT_ROUTER_STALE_TIME_HEADER:()=>oo,NEXT_ROUTER_STATE_TREE_HEADER:()=>_n,NEXT_URL_HEADER:()=>vn,RSC_ACTION_HEADER:()=>ro,RSC_HEADER:()=>`RSC`,VINEXT_CACHEABILITY_PROBE_HEADER:()=>Ma,VINEXT_CACHEABILITY_PROBE_QUERY_PARAM:()=>Pa,VINEXT_CACHEABILITY_PROBE_ROUTE_HEADER:()=>Na,VINEXT_CACHE_HEADER:()=>wa,VINEXT_DYNAMIC_STALE_TIME_HEADER:()=>Wa,VINEXT_EXPECTED_WORKER_VERSION_HEADER:()=>ja,VINEXT_INTERCEPTION_CONTEXT_HEADER:()=>yn,VINEXT_INTERCEPTION_ID_HEADER:()=>bn,VINEXT_INTERNAL_HEADERS:()=>So,VINEXT_METADATA_ROUTE_CACHE_HEADER:()=>$a,VINEXT_MOUNTED_LAYOUTS_HEADER:()=>eo,VINEXT_MOUNTED_SLOTS_HEADER:()=>xn,VINEXT_MW_CTX_HEADER:()=>ma,VINEXT_PARAMS_HEADER:()=>Ua,VINEXT_PRERENDER_CACHE_LIFE_HEADER:()=>Ya,VINEXT_PRERENDER_METADATA_ROUTES_PATH:()=>La,VINEXT_PRERENDER_PAGES_STATIC_PATHS_PATH:()=>Ia,VINEXT_PRERENDER_READINESS_HEADER:()=>za,VINEXT_PRERENDER_READINESS_PATH:()=>Ra,VINEXT_PRERENDER_RENDER_ERROR_HEADER:()=>Za,VINEXT_PRERENDER_REWRITTEN_HEADER:()=>Xa,VINEXT_PRERENDER_ROUTE_PARAMS_HEADER:()=>ga,VINEXT_PRERENDER_SECRET_HEADER:()=>ha,VINEXT_PRERENDER_SPECIAL_ERROR_HEADER:()=>Qa,VINEXT_PRERENDER_SPECULATIVE_HEADER:()=>_a,VINEXT_PRERENDER_STATIC_PARAMS_PATH:()=>Fa,VINEXT_RENDERED_PATH_AND_SEARCH_HEADER:()=>Ja,VINEXT_REVALIDATED_CACHE_TAG_HEADER:()=>Va,VINEXT_REVALIDATE_HEADER:()=>Ba,VINEXT_REVALIDATE_HOST_HEADER:()=>va,VINEXT_ROUTE_MISS_HEADER:()=>qa,VINEXT_RSC_COMPLETION_METADATA_HEADER:()=>Ga,VINEXT_RSC_MARKER_HEADER:()=>Ha,VINEXT_RSC_REDIRECT_HEADER:()=>to,VINEXT_RSC_REDIRECT_TYPE_HEADER:()=>no,VINEXT_RSC_RENDER_MODE_HEADER:()=>T,VINEXT_RSC_STATE_FINGERPRINT_HEADER:()=>Sn,VINEXT_RSC_VARY_HEADER:()=>Cn,VINEXT_SPECIAL_ERROR_STATUS_HEADER:()=>Ka,VINEXT_STALE_TIME_PENDING_HEADER:()=>so,VINEXT_TIMING_HEADER:()=>Da,VINEXT_TRACE_BUFFERED_BODY_HEADER:()=>Aa,VINEXT_TRACE_ERROR_HEADER:()=>ka,VINEXT_TRACE_ROUTE_HEADER:()=>Oa,isVinextRscVaryField:()=>Tn}),wa=`X-Vinext-Cache`,Ta=`x-nextjs-cache`,Ea=`x-next-cache-tags`,Da=`x-vinext-timing`,Oa=`X-Vinext-Trace-Route`,ka=`X-Vinext-Trace-Error`,Aa=`X-Vinext-Trace-Buffered-Body`,ja=`X-Vinext-Expected-Worker-Version`,Ma=`X-Vinext-Cacheability-Probe`,Na=`X-Vinext-Cacheability-Probe-Route`,Pa=`__vinext_cacheability_probe`,Fa=`/__vinext/prerender/static-params`,Ia=`/__vinext/prerender/pages-static-paths`,La=`/__vinext/prerender/metadata-routes`,Ra=`/__vinext/prerender/readiness`,za=`X-Vinext-Prerender-Readiness`,Ba=`x-vinext-revalidate`,Va=`x-vinext-revalidated-cache-tag`,Ha=`x-vinext-rsc`,Ua=`X-Vinext-Params`,Wa=`X-Vinext-Dynamic-Stale-Time`,Ga=`X-Vinext-Rsc-Completion-Metadata`,Ka=`x-vinext-special-error-status`,qa=`x-vinext-route-miss`,Ja=`X-Vinext-Rendered-Path-And-Search`,Ya=`x-vinext-prerender-cache-life`,Xa=`x-vinext-prerender-rewritten`,Za=`x-vinext-prerender-render-error`,Qa=`x-vinext-prerender-special-error`,$a=`x-vinext-metadata-route-cache`,eo=`X-Vinext-Mounted-Layouts`,to=`X-Vinext-Rsc-Redirect`,no=`X-Vinext-Rsc-Redirect-Type`,ro=`x-rsc-action`,io=`next-action`,ao=`x-nextjs-action-not-found`,oo=`x-nextjs-stale-time`,so=`X-Vinext-Stale-Time-Pending`,co=`x-nextjs-deployment-id`,lo=`x-action-forwarded`,uo=`x-action-revalidated`,fo=`x-action-redirect`,po=`x-action-redirect-type`,mo=`x-action-redirect-status`,ho=`x-middleware-next`,go=`x-middleware-rewrite`,_o=`x-middleware-redirect`,vo=`x-nextjs-request-id`,yo=`x-nextjs-html-request-id`,bo=[`rsc`,`next-router-state-tree`,`next-router-prefetch`,`next-hmr-refresh`,`next-router-segment-prefetch`,`x-vinext-rsc-state-fingerprint`,`x-vinext-mounted-layouts`],xo=[go,_o,ba,xa,ya,ho,`x-now-route-matches`,`x-matched-path`,`x-nextjs-data`,`x-next-resume-state-length`,lo],So=[Ma.toLowerCase(),Na.toLowerCase(),ja.toLowerCase(),ma,ga,_a,Ya,Xa,va,Va,ka.toLowerCase(),Aa.toLowerCase(),Oa.toLowerCase()],Co=`x-deployment-id`;function wo(e,t=void 0){t&&e.set(Co,t)}var To=e({VINEXT_RSC_BUILD_ID_HEADER:()=>Eo,VINEXT_RSC_CACHE_BUSTING_SEARCH_PARAM:()=>N,VINEXT_RSC_COMPATIBILITY_ID_HEADER:()=>Do,VINEXT_RSC_CONTENT_TYPE:()=>Oo,VINEXT_RSC_RENDER_MODE_HEADER:()=>T,VINEXT_RSC_VARY_HEADER:()=>Cn,applyRscCompatibilityIdHeader:()=>Io,applyRscDeploymentIdHeader:()=>Lo,canonicalizeDynamicShellRscRequestHeaders:()=>ns,canonicalizeLoadingShellRscRequestHeaders:()=>rs,canonicalizePrewarmableRscRequestHeaders:()=>ts,computeRscCacheBustingSearchParam:()=>Jo,createCanonicalLoadingShellRscRequestHeaders:()=>$o,createCanonicalRscRequestHeaders:()=>Qo,createCanonicalRscRequestUrl:()=>os,createRscRedirectLocation:()=>cs,createRscRequestHeaders:()=>es,createRscRequestUrl:()=>I,createServerActionRequestUrl:()=>ss,formatRscRequestPath:()=>F,getVinextRscCompatibilityId:()=>Po,hasRscCacheBustingSearchParam:()=>qo,isRscCompatibilityIdCompatible:()=>Ro,keepOnlyValidatedRscCacheBustingSearchParam:()=>Zo,parseRscRequestPath:()=>P,resolveHardNavigationTargetFromRscResponse:()=>zo,resolveInvalidRscCacheBustingRequest:()=>ls,resolveRscCompatibilityNavigationDecision:()=>Bo,setRscCacheBustingSearchParam:()=>Yo,stripRscCacheBustingSearchParam:()=>Xo,toPathAbsolutePathname:()=>as}),N=`_rsc`,Eo=`X-Vinext-RSC-Build-Id`,Do=`X-Vinext-RSC-Compatibility-Id`,Oo=`text/x-component`,ko=12,Ao=new TextEncoder;function jo(e){let t=``;for(let n of e)t+=String.fromCharCode(n);return btoa(t).replaceAll(`+`,`-`).replaceAll(`/`,`_`).replace(/=+$/,``)}function Mo(e){return e===null?`0`:e===`0`?`\\0`:e.replaceAll(`\\`,`\\\\`).replaceAll(`,`,`\\,`)}function No(e){return e&&e.length>0?e:null}function Po(){return No(``)}function Fo(){return No(``)}function Io(e,t=Po(),n=Fo()){let r=No(t);r?e.set(Do,r):e.delete(Do);let i=No(n);i?e.set(Eo,i):e.delete(Eo)}function Lo(e){e.delete(co)}function Ro(e,t=Po()){let n=No(e),r=No(t);return r===null||n!==null&&n===r}function zo(e,t,n){if(!e)return t;let r=new URL(e,n);Xo(r);let i=new URL(t,n),a=r.pathname;i.pathname.length>1&&i.pathname.endsWith(`/`)&&!a.endsWith(`/`)&&(a+=`/`);let o=as(a)+r.search;return i.hash&&(o+=i.hash),o}function Bo(e){return Ro(e.responseCompatibilityId,e.clientCompatibilityId)?{kind:`compatible`}:{hardNavigationTarget:zo(e.responseUrl,e.currentHref,e.origin),kind:`hard-navigate`}}function Vo(e){let t=pa(e);return t===`navigation`?null:t}function Ho(e){let t=[e.get(C),e.get(w),e.get(_n),e.get(vn),e.get(yn),e.get(bn),e.get(xn),Vo(e.get(T))],n=e.get(Sn);return n!==null&&t.push(n),t.every(e=>e===null)?null:t.map(Mo).join(`,`)}async function Uo(e){let t=globalThis.crypto?.subtle;if(!t)return Un(e);let n=await t.digest(`SHA-256`,Ao.encode(e));return jo(new Uint8Array(n).subarray(0,ko))}function Wo(e){let t=Ho(e);return t===null?``:Un(t)}function Go(e){return(e.search.startsWith(`?`)?e.search.slice(1):e.search).split(`&`).filter(e=>e.length>0&&!Ko(e))}function Ko(e){let t=e.indexOf(`=`),n=t===-1?e:e.slice(0,t);try{return decodeURIComponent(n.replaceAll(`+`,` `))===N}catch{return n===N}}function qo(e){return(e.search.startsWith(`?`)?e.search.slice(1):e.search).split(`&`).some(e=>e.length>0&&Ko(e))}async function Jo(e){let t=Ho(e);return t===null?``:Uo(t)}function Yo(e,t){let n=Go(e);n.push(t.length>0?`${N}=${t}`:N),e.search=`?${n.join(`&`)}`}function Xo(e){let t=Go(e);e.search=t.length>0?`?${t.join(`&`)}`:``}function Zo(e,t){let n=t?e.searchParams.get(N):null;e.search=``,n!==null&&Yo(e,n)}function Qo(e=void 0){let t=new Headers({Accept:Oo,RSC:`1`});return wo(t,e??void 0),t}function $o(e=void 0){let t=Qo(e);return t.set(C,`1`),t.set(w,`1`),t.set(T,da),t}function es(e={}){let t=Qo(e.deploymentId);e.prefetchRouterState&&(e.includePrefetchHeader!==!1&&t.set(C,`1`),t.set(_n,encodeURIComponent(JSON.stringify(e.prefetchRouterState))));let n=e.routerState??e.prefetchRouterState;n&&t.set(Sn,oa(n)),e.nextUrl&&t.set(vn,e.nextUrl),e.interceptionContext!==void 0&&e.interceptionContext!==null&&t.set(yn,e.interceptionContext),e.interceptionId!==void 0&&e.interceptionId!==null&&t.set(bn,e.interceptionId),e.mountedSlotsHeader!==void 0&&e.mountedSlotsHeader!==null&&t.set(xn,e.mountedSlotsHeader),e.mountedLayoutsHeader!==void 0&&e.mountedLayoutsHeader!==null&&t.set(eo,e.mountedLayoutsHeader);let r=e.renderMode??`navigation`;return r!==`navigation`&&t.set(T,r),t}function ts(e){return e.has(`X-Vinext-Rsc-Render-Mode`)||e.has(`X-Vinext-Interception-Context`)||e.has(`X-Vinext-Interception-Id`)||e.has(`X-Vinext-Mounted-Slots`)?!1:(e.delete(C),e.delete(w),e.delete(_n),e.delete(vn),e.delete(eo),e.delete(Sn),!0)}function ns(e){return e.get(`X-Vinext-Rsc-Render-Mode`)!==`prefetch-dynamic-shell`||e.has(`X-Vinext-Interception-Context`)||e.has(`X-Vinext-Interception-Id`)||e.has(`X-Vinext-Mounted-Slots`)?!1:(e.delete(T),ts(e))}function rs(e){return e.get(`X-Vinext-Rsc-Render-Mode`)!==`prefetch-loading-shell`||e.has(`X-Vinext-Interception-Context`)||e.has(`X-Vinext-Interception-Id`)||e.has(`X-Vinext-Mounted-Slots`)?!1:(e.set(C,`1`),e.set(w,`1`),e.delete(_n),e.delete(vn),e.delete(eo),e.delete(Sn),!0)}var is=`http://vinext.local`;function P(e){let t=e.indexOf(`#`),n=t===-1?e:e.slice(0,t);return n.startsWith(`/`)||n.startsWith(`\\`)?new URL(`${is}${n}`):new URL(n,is)}function as(e){return e.startsWith(`//`)?`/.${e}`:e}function F(e){return`${as(e.pathname)}${e.search}`}async function I(e,t){let n=P(e);return Yo(n,await Jo(t)),F(n)}function os(e){let t=P(e);return Yo(t,``),F(t)}function ss(e){return F(P(e))}async function cs(e,t){let n=new URL(t.url),r=new URL(e,n);if(r.origin!==n.origin)return r.toString();let i=await I(`${r.pathname}${r.search}`,t.headers);return`${r.origin}${i}`}async function ls(e){if(!e.isRscRequest||e.request.method!==`GET`&&e.request.method!==`HEAD`)return null;let t=new URL(e.request.url),n=t.searchParams.get(N),r=await Jo(e.request.headers);return n!==null&&(n===r||n===Wo(e.request.headers))?null:(Yo(t,r),new Response(null,{status:307,headers:{Location:F(t)}}))}var us=`__next-page-redirect`;function ds(e){if(typeof e!=`object`||!e||!(`getElementById`in e))return!1;let{getElementById:t}=e;return typeof t==`function`&&t.call(e,us)!==null}var fs=class{#e=null;#t=0;reset(){this.#e=null}navigate(e,t,n){if(this.#e?.href===t)return;let r=this.#t+1;this.#t=r,this.#e={href:t,token:r};let i=()=>{this.#e?.token===r&&(n===`replace`?e.location.replace(t):e.location.assign(t))};e.document?.visibilityState===`hidden`?i():typeof e.requestAnimationFrame==`function`?e.requestAnimationFrame(()=>{e.setTimeout(i,0)}):e.setTimeout(i,0)}};new TextEncoder;var ps=new TextDecoder,L=255,ms=0,hs=2,gs=4,_s=256;function vs(e){return typeof e==`number`&&Number.isFinite(e)&&e>=0}function ys(){throw Error(`Invalid or truncated RSC completion metadata footer`)}function bs(e){if(e.byteLength>_s)throw Error(`RSC completion metadata exceeded its framing limit`);if(e.byteLength<6||e[0]!==L||e[1]!==ms)return ys();let t=e.byteLength-gs;if(new DataView(e.buffer,e.byteOffset+t,gs).getUint32(0)!==t-hs)return ys();try{let n=JSON.parse(ps.decode(e.subarray(hs,t)));if(typeof n!=`object`||!n)return ys();let r=n;if(!vs(r.dynamicStaleTimeSeconds))return ys();let i=Object.hasOwn(r,`serverStaleTimeSeconds`),a=r.serverStaleTimeSeconds;return i&&a!==null&&!vs(a)?ys():{dynamicStaleTimeSeconds:r.dynamicStaleTimeSeconds,...i?{serverStaleTimeSeconds:a}:{}}}catch{return ys()}}function xs(e){let t=new Uint8Array(e),n=t.indexOf(L);if(n===-1)return{buffer:e};let r=new Uint8Array(t.byteLength);r.set(t.subarray(0,n));let i=n;for(let e=n;e{i.length!==0&&(r.enqueue(Uint8Array.from(i)),i.length=0)},o=0;for(;o_s){r.error(Error(`RSC completion metadata exceeded its framing limit`));return}continue}if(t){let a=e[o++];if(t=!1,a===L){i.push(L);continue}if(a===ms){n=[L,ms];continue}r.error(Error(`Invalid RSC completion metadata escape sequence`));return}let s=e.indexOf(L,o);if(s===-1){a(),r.enqueue(e.subarray(o));return}s>o&&(a(),r.enqueue(e.subarray(o,s))),t=!0,o=s+1}a()},flush(e){if(t)e.error(Error(`Truncated RSC completion metadata escape sequence`));else if(n){let t=Uint8Array.from(n);try{bs(t)}catch(t){e.error(t)}}}}))}function Cs(e){return e.headers.get(`X-Vinext-Rsc-Completion-Metadata`)!==`1`||!e.body?e:new Response(Ss(e.body),{headers:e.headers,status:e.status,statusText:e.statusText})}var ws=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/;function Ts(e){let t=e.charCodeAt(0);return(t>=65&&t<=90||t>=97&&t<=122)&&ws.test(e)}function Es(e){return Ts(e)||e.startsWith(`//`)}function Ds(){let{origin:e,href:t}=window.location;if(e)return e;try{return new URL(t).origin}catch{return null}}function Os(e){return e.replace(/^\/{2,}/,`/`)}function ks(e){let t=Ds();if(!t)return null;try{let n=e.startsWith(`//`)?new URL(e,t):new URL(e);if(n.origin===t)return Os(n.pathname)+n.search+n.hash}catch{}return null}function As(e,t){let n=ks(e);if(n==null||!t)return n;try{let e=new URL(n,`http://vinext.local`);return f(e.pathname,t)?Os(p(e.pathname,t))+e.search+e.hash:null}catch{return n}}function js(e){let t=e.indexOf(`#`),n=e.indexOf(`?`),r=n>-1&&(t<0||n-1?{pathname:e.substring(0,r?n:t),query:r?e.substring(n,t>-1?t:void 0):``,hash:t>-1?e.slice(t):``}:{pathname:e,query:``,hash:``}}function Ms(e){return e.replace(/\/$/,``)||`/`}function Ns(e,t){if(!e.startsWith(`/`)||e.startsWith(`//`))return e;let{pathname:n,query:r,hash:i}=js(e);return t?Ps(n)?`${Ms(n)}${r}${i}`:n.endsWith(`/`)?`${n}${r}${i}`:`${n}/${r}${i}`:`${Ms(n)}${r}${i}`}function Ps(e){let t=e.endsWith(`/`)?e.length-1:e.length,n=e.indexOf(`.`,e.lastIndexOf(`/`,t-1)+1);return n!==-1&&ne.test(t))}function Ks(){console.error(Ws)}function qs(e,t=Error){if(Gs(e))throw Ks(),new t(Ws)}var Js=10;function Ys(e,t){return t===null||!Gs(t)?!1:(e.body?.cancel().catch(()=>{}),Ks(),!0)}function Xs(e,t){let n=new URL(e,t);return Xo(n),`${as(n.pathname)}${n.search}${n.hash}`}function Zs(e){return`${as(e.pathname)}${e.search}${e.hash}`}function Qs(e){if(e.targetUrl.origin!==e.origin)return{href:e.targetUrl.href,kind:`terminal-hard-navigation`,reason:`externalRedirect`,redirectDepth:e.redirectDepth};let t=e.redirectedHref;if(t===Xs(e.currentHref,e.origin))return{href:t,kind:`no-redirect`};let n=e.maxRedirectDepth??Js;return e.redirectDepth>=n?{href:t,kind:`terminal-hard-navigation`,reason:`maxRedirectsExceeded`,redirectDepth:e.redirectDepth}:{href:t,historyUpdateMode:e.historyUpdateMode,kind:`follow`,previousNextUrl:e.requestPreviousNextUrl,redirectDepth:e.redirectDepth+1}}function $s(e){let t=new URL(e.responseUrl,e.origin);return Qs({...e,redirectedHref:zo(t.href,e.currentHref,e.origin),targetUrl:t})}function ec(e){let t=new URL(e.currentHref,e.origin),n=new URL(e.streamedRedirectTarget,t);return Qs({...e,redirectedHref:Zs(n),targetUrl:n})}var R={cacheProofRejected:`NC_CACHE_REJECT`,cacheReuseTokenRejected:`NC_CACHE_TOKEN_REJECT`,commitCurrent:`NC_COMMIT`,crossDocumentFlight:`NC_CROSS_DOC_FLIGHT`,fetchFresh:`NC_FETCH_FRESH`,invalidRscPayload:`NC_RSC_INVALID`,interceptedCommitCurrent:`NC_INTERCEPT_COMMIT`,interceptedRejectedIncompatibleRoot:`NC_INTERCEPT_REJECT_ROOT`,interceptedRejectedMissingProof:`NC_INTERCEPT_REJECT_MISSING_PROOF`,interceptedRejectedMissingSlotProof:`NC_INTERCEPT_REJECT_SLOT`,interceptedRejectedTargetMismatch:`NC_INTERCEPT_REJECT_TARGET`,interceptedRejectedUndeclaredTopology:`NC_INTERCEPT_REJECT_GRAPH`,interceptedRejectedUnknownSource:`NC_INTERCEPT_REJECT_SOURCE`,optimisticRouteShell:`NC_OPTIMISTIC_SHELL`,prefetchOnly:`NC_PREFETCH_ONLY`,prefetchResponseReuse:`NC_PREFETCH_REUSE`,proceedToCommit:`NC_RSC_PROCEED`,redirectFollow:`NC_RSC_REDIRECT_FOLLOW`,redirectTerminalDepth:`NC_RSC_REDIRECT_DEPTH`,redirectTerminalExternal:`NC_RSC_REDIRECT_EXTERNAL`,requestWork:`NC_REQUEST`,rootBoundaryChanged:`NC_ROOT`,rootBoundaryUnknown:`NC_ROOT_UNKNOWN`,rscCompatibilityMismatch:`NC_RSC_COMPAT_MISMATCH`,rscNavigationError:`NC_RSC_NAV_ERROR`,sameDocumentScroll:`NC_SAME_DOC_SCROLL`,samePageRefresh:`NC_SAME_PAGE_REFRESH`,samePageSearch:`NC_SAME_PAGE_SEARCH`,serverActionRedirectCompatibilityMismatch:`NC_SA_REDIRECT_COMPAT`,serverActionRscCompatibilityMismatch:`NC_SA_RSC_COMPAT`,staleOperation:`NC_STALE`,streamedRedirectLoop:`NC_RSC_STREAMED_REDIRECT_LOOP`,visitedResponseReuse:`NC_VISITED_REUSE`},tc={hardNavigate:`NT_HARD_NAVIGATE`,noCommit:`NT_NO_COMMIT`,visibleCommit:`NT_VISIBLE_COMMIT`};function nc(e){return{...e.activeNavigationId===void 0?{}:{activeNavigationId:e.activeNavigationId},currentRootLayoutTreePath:e.currentRootLayoutTreePath,currentVisibleCommitVersion:e.currentVisibleCommitVersion,nextRootLayoutTreePath:e.nextRootLayoutTreePath,...e.startedNavigationId===void 0?{}:{startedNavigationId:e.startedNavigationId},startedVisibleCommitVersion:e.startedVisibleCommitVersion}}function rc(e,t={}){return{code:e,fields:{...t}}}function z(e,t={}){return{schemaVersion:0,entries:[rc(e,t)]}}function ic(e,t,n={}){return{schemaVersion:e.schemaVersion,entries:[rc(t,n),...e.entries]}}var ac=[`navigation`,`visibleCommit`,`graphVersion`,`cacheVariant`];function oc(e,t,n){switch(e){case`navigation`:return t.navigationId===n.activeNavigationId?{kind:`satisfied`}:{kind:`mismatch`,reason:`staleNavigation`};case`visibleCommit`:return t.baseVisibleCommitVersion===n.visibleCommitVersion?{kind:`satisfied`}:{kind:`mismatch`,reason:`staleVisibleCommit`};case`graphVersion`:return t.graphVersion===null||n.graphVersion===null?{kind:`absent`,missingReason:`graphVersionMissing`}:t.graphVersion===n.graphVersion?{kind:`satisfied`}:{kind:`mismatch`,reason:`graphVersionMismatch`};case`cacheVariant`:{let e=t.cacheVariantFingerprint,r=n.installedCacheVariantFingerprint;return e===void 0||r===null?{kind:`absent`,missingReason:`cacheVariantMissing`}:e===r?{kind:`satisfied`}:{kind:`mismatch`,reason:`cacheVariantMismatch`}}default:throw Error(`[vinext] Unknown operation-token dimension: `+String(e))}}function sc(e,t,n){let r=new Set(n.require),i=new Set([...n.check,...n.require]);for(let n of ac){if(!i.has(n))continue;let a=oc(n,e,t);if(a.kind===`mismatch`)return{authorized:!1,reason:a.reason};if(a.kind===`absent`&&r.has(n))return{authorized:!1,reason:a.missingReason}}return{authorized:!0,token:e}}function cc(e,t){return sc(e,{activeNavigationId:t.activeNavigationId,visibleCommitVersion:t.visibleCommitVersion,graphVersion:e.graphVersion,installedCacheVariantFingerprint:e.cacheVariantFingerprint??null},{check:[`navigation`,`visibleCommit`],require:[`navigation`,`visibleCommit`]})}function lc(e,t){return sc(e,{activeNavigationId:e.navigationId,visibleCommitVersion:e.baseVisibleCommitVersion,graphVersion:t.graphVersion,installedCacheVariantFingerprint:t.installedCacheVariantFingerprint},{check:[`graphVersion`,`cacheVariant`],require:[]})}function uc(e,t){return e===`push`||t===`push`?`push`:`replace`}var dc=`\0`,fc=`CP_CACHE_ENTRY_PROOF_MISSING`;function pc(e){let t=e.work.kind===`traverseFlight`?{traverseDirection:e.work.direction}:{};return{kind:`requestWork`,token:e.state.nextOperationToken,work:e.work,trace:z(R.requestWork,{eventKind:e.eventKind,targetHref:mc(e.work),...t})}}function mc(e){switch(e.kind){case`flight`:case`prefetch`:return e.href;case`traverseFlight`:return null;default:throw Error(`[vinext] Unknown requested navigation work: `+String(e))}}function hc(e,t={}){return{fetchResultSource:e.source,...t}}function gc(e){return{discardBody:e.discardBody,kind:`hardNavigate`,...e.hardNavigationMode===void 0?{}:{hardNavigationMode:e.hardNavigationMode},reason:e.reason,trace:z(e.reasonCode,hc(e.facts,{...e.redirectSignal===void 0?{}:{redirectSignal:e.redirectSignal},redirectDepth:e.facts.redirectDepth,targetHref:e.url})),url:e.url}}function _c(e){return{discardBody:e.discardBody,kind:`followRedirect`,redirect:e.redirect,trace:z(R.redirectFollow,hc(e.facts,{redirectDepth:e.redirect.redirectDepth,redirectSignal:e.redirectSignal,targetHref:e.redirect.href}))}}function vc(e){switch(e){case`externalRedirect`:return{hardNavigationReason:`externalRedirectTarget`,traceReasonCode:R.redirectTerminalExternal};case`maxRedirectsExceeded`:return{hardNavigationReason:`redirectDepthExhausted`,traceReasonCode:R.redirectTerminalDepth};default:throw Error(`[vinext] Unknown RSC redirect terminal reason: `+String(e))}}function yc(e){if(!e.responseOk||!e.isRscContentType||!e.hasBody){let t=zo(e.responseUrl,e.currentHref,e.origin);return gc({discardBody:!1,facts:e,reason:`invalidRscPayload`,reasonCode:R.invalidRscPayload,url:t})}let t=Bo({clientCompatibilityId:e.clientCompatibilityId,currentHref:e.currentHref,origin:e.origin,responseCompatibilityId:e.compatibilityIdHeader,responseUrl:e.responseUrl});if(t.kind===`hard-navigate`)return gc({discardBody:!1,facts:e,reason:`rscCompatibilityMismatch`,reasonCode:R.rscCompatibilityMismatch,url:t.hardNavigationTarget});if(e.responseUrl!==null){let t=$s({currentHref:e.currentHref,historyUpdateMode:e.effectiveHistoryUpdateMode,origin:e.origin,redirectDepth:e.redirectDepth,requestPreviousNextUrl:e.requestPreviousNextUrl,responseUrl:e.responseUrl});if(t.kind===`terminal-hard-navigation`){let n=vc(t.reason);return gc({discardBody:!1,facts:e,reason:n.hardNavigationReason,reasonCode:n.traceReasonCode,redirectSignal:`response-url`,url:t.href})}if(t.kind===`follow`)return _c({discardBody:!1,facts:e,redirect:{href:t.href,historyUpdateMode:e.effectiveHistoryUpdateMode,previousNextUrl:t.previousNextUrl,redirectDepth:t.redirectDepth},redirectSignal:`response-url`})}if(e.streamedRedirectTarget!==null){let t=uc(e.effectiveHistoryUpdateMode,e.streamedRedirectType),n=ec({currentHref:e.currentHref,historyUpdateMode:t,origin:e.origin,redirectDepth:e.redirectDepth,requestPreviousNextUrl:e.requestPreviousNextUrl,streamedRedirectTarget:e.streamedRedirectTarget});if(n.kind===`terminal-hard-navigation`){let r=vc(n.reason);return gc({discardBody:!0,facts:e,reason:r.hardNavigationReason,reasonCode:r.traceReasonCode,redirectSignal:`streamed-header`,hardNavigationMode:t===`push`?`assign`:`replace`,url:n.href})}return n.kind===`follow`?_c({discardBody:!0,facts:e,redirect:{href:n.href,historyUpdateMode:t,previousNextUrl:n.previousNextUrl,redirectDepth:n.redirectDepth},redirectSignal:`streamed-header`}):gc({discardBody:!0,facts:e,reason:`streamedRedirectLoop`,reasonCode:R.streamedRedirectLoop,redirectSignal:`streamed-header`,url:n.href})}return{discardBody:!1,kind:`proceedToCommit`,trace:z(R.proceedToCommit,hc(e))}}function bc(e,t){return z(e,{targetHref:t.targetHref})}function xc(e,t,n){return n===`browser`?p(e,t):e}function Sc(e){let t,n;try{t=new URL(e.currentHref),n=new URL(e.targetHref,e.currentHref)}catch{return{bypassNavigationCache:!1,kind:`flightNavigation`,trace:bc(R.crossDocumentFlight,e)}}let r=xc(t.pathname,e.basePath,e.currentUrlSpace),i=xc(n.pathname,e.basePath,`browser`),a=t.origin===n.origin&&r===i,o=t.searchParams.toString()===n.searchParams.toString();return a&&t.search===n.search&&t.hash===n.hash?{bypassNavigationCache:!0,kind:`flightNavigation`,trace:bc(R.samePageRefresh,e)}:a&&o&&t.hash!==n.hash?{hash:n.hash,kind:`sameDocumentScroll`,mode:e.mode,scroll:e.scroll,trace:bc(R.sameDocumentScroll,e)}:a&&!o?{bypassNavigationCache:!0,kind:`flightNavigation`,trace:bc(R.samePageSearch,e)}:{bypassNavigationCache:!1,kind:`flightNavigation`,trace:bc(R.crossDocumentFlight,e)}}function Cc(e){return e.candidate===`missing`?{kind:`miss`}:e.mountedSlotsMatch?e.navigationKind===`refresh`?{kind:`evict`,reason:`refresh`}:e.fresh?{kind:`reuse`}:{kind:`evict`,reason:`stale`}:{kind:`evict`,reason:`mountedSlotsMismatch`}}function wc(e,t,n={}){return z(e,{eventKind:t.navigationKind,targetHref:t.targetHref,...n})}function Tc(e,t){return{kind:`fetchFresh`,reason:t,trace:wc(R.fetchFresh,e,{freshFetchReason:t})}}function Ec(e){return e.navigationKind===`refresh`?Tc(e,`refresh`):e.bypassNavigationCache?Tc(e,`cacheBypassed`):e.visitedResponse.status===`available`?{kind:`reuseVisitedResponse`,trace:wc(R.visitedResponseReuse,e)}:e.prefetch.status===`available`?{kind:`consumePrefetch`,trace:wc(R.prefetchResponseReuse,e)}:e.navigationKind===`navigate`?e.optimisticRouteShell.status===`available`?{kind:`attemptOptimisticRouteShell`,trace:wc(R.optimisticRouteShell,e)}:Tc(e,e.optimisticRouteShell.reason):Tc(e,`cacheMiss`)}function Dc(e){return e.visitedResponse.status===`available`?{kind:`skip`,reason:`visitedResponseAvailable`}:e.navigationKind===`refresh`?{kind:`skip`,reason:`refresh`}:e.bypassNavigationCache?{kind:`skip`,reason:`cacheBypassed`}:{kind:`probe`}}function Oc(e){return{layoutIds:e.layoutIds,rootBoundaryId:e.rootBoundaryId,rootLayoutTreePath:e.rootBoundaryId,slotBindings:e.slotBindings}}function kc(e){let t=e.indexOf(dc);return t===-1?e:e.slice(0,t)}function Ac(e){let t=kc(e);return t.startsWith(`route:/`)?t.slice(6):null}function jc(e){try{return new URL(e,`https://vinext.local`).pathname}catch{let[t=``]=e.split(`#`),[n=``]=t.split(`?`);return n===``?`/`:n}}function Mc(e){return v(jc(e))}function Nc(e,t){let n=Mc(t);for(let t of e.segmentGraph.routes.values())if(ai(n,t.patternParts)!==null)return t;return null}function Pc(e,t){return ai(Mc(t),e.patternParts)!==null}function Fc(e){let t=kc(e.routeId),n=e.routeManifest.segmentGraph.routes.get(t);if(n&&Pc(n,e.matchedUrl))return n;let r=n===void 0?Ac(e.routeId):null;if(r!==null){let t=Nc(e.routeManifest,r);if(t!==null)return t}return Nc(e.routeManifest,e.matchedUrl)}function Ic(e,t){return t.interception===null?Fc({matchedUrl:t.matchedUrl,routeId:t.routeId,routeManifest:e}):Fc({matchedUrl:t.interception.sourceMatchedUrl,routeId:t.interception.sourceRouteId,routeManifest:e})}function Lc(e,t){let n=[];for(let r of t.slotIds){let i=e.segmentGraph.slotBindings.get(`${t.id}::${r}`);i&&n.push({ownerLayoutId:i.ownerLayoutId,slotId:i.slotId,state:i.state})}return n.sort((e,t)=>O(e.slotId,t.slotId))}function Rc(e,t){return t.rootBoundaryId===null?null:e.segmentGraph.rootBoundaries.get(t.rootBoundaryId)?.treePath??null}function zc(e){let t=e.routeManifest===null?null:Ic(e.routeManifest,e.snapshot);if(t===null||e.routeManifest===null)return{kind:`unknown`};let n=e.slotBindingSource===`manifestTarget`&&e.snapshot.interception===null;return{kind:`known`,topology:{layoutIds:t.layoutIds,rootBoundaryId:t.rootBoundaryId,rootLayoutTreePath:Rc(e.routeManifest,t),slotBindings:n?Lc(e.routeManifest,t):e.snapshot.slotBindings}}}function Bc(e,t){let n=Mc(t.sourceMatchedUrl),r=Mc(t.targetMatchedUrl),i=Fc({matchedUrl:t.targetMatchedUrl,routeId:t.targetRouteId,routeManifest:e}),a=e.segmentGraph.interceptionsBySlotId.get(t.slotId)??[];for(let e of a){if(!ci(n,e.sourcePatternParts))continue;let t=ai(r,e.targetPatternParts),a=t===null&&li(r,e.targetPatternParts);if((t!==null||a)&&(a||e.targetRouteId===null||i?.id===e.targetRouteId))return e}return null}function Vc(e){return e.state.traceFields?{...e.state.traceFields,currentRootLayoutTreePath:e.currentRootLayoutTreePath,nextRootLayoutTreePath:e.nextRootLayoutTreePath}:nc({currentRootLayoutTreePath:e.currentRootLayoutTreePath,currentVisibleCommitVersion:e.state.visibleCommitVersion,nextRootLayoutTreePath:e.nextRootLayoutTreePath,startedVisibleCommitVersion:e.event.token.baseVisibleCommitVersion})}function Hc(e,t){return e===null||t===null?`rootBoundaryUnknown`:e===t?`currentRootBoundary`:`rootBoundaryChanged`}function Uc(e,t){return Wc(Oc(e),Oc(t))}function Wc(e,t){if(Hc(e.rootBoundaryId,t.rootBoundaryId)!==`currentRootBoundary`)return[];let n=[],r=Math.min(e.layoutIds.length,t.layoutIds.length);for(let i=0;ie.slotId));return e.currentSlotBindings.filter(e=>{let r=k.parseElementKey(e.slotId);return e.state===`active`&&e.ownerLayoutId!==null&&t.has(e.ownerLayoutId)&&r?.kind===`slot`&&r.name===`children`&&!n.has(e.slotId)}).map(e=>e.slotId).sort(O)}function Zc(e){let t=new Set(e.preservedLayoutIds),n=new Set;for(let t of e.currentSlotBindings)t.state!==`unmatched`&&n.add(t.slotId);let r=[],i=new Set;for(let a of e.targetSlotBindings)a.ownerLayoutId!==null&&t.has(a.ownerLayoutId)&&a.state!==`active`&&n.has(a.slotId)&&(i.has(a.slotId)||(r.push(a.slotId),i.add(a.slotId)));return r.sort(O)}function Qc(e){let t=new Map(e.currentSlotBindings.map(e=>[e.slotId,e])),n=new Set(e.preservedLayoutIds),r=[];for(let i of e.targetSlotBindings){if(i.slotId===e.targetInterceptionSlotId||i.state!==`active`||i.ownerLayoutId===null||!n.has(i.ownerLayoutId))continue;let a=t.get(i.slotId);a?.state===`active`&&a.ownerLayoutId===i.ownerLayoutId&&(a.activeRouteId&&i.activeRouteId&&a.activeRouteId!==i.activeRouteId||r.push(i.slotId))}return r.sort(O)}function $c(e){return e.interception?{matchedUrl:e.interception.sourceMatchedUrl,routeId:e.interception.sourceRouteId}:{matchedUrl:Ac(e.routeId)??e.matchedUrl,routeId:e.routeId}}function el(e){return{kind:`hardNavigate`,reason:`interceptionProofRejected`,token:e.event.token,trace:z(e.reasonCode,e.traceFields),url:e.event.result.href}}function tl(e){return e===void 0?{kind:`accepted`,decision:null}:e.decision===null?{kind:`rejected`,decision:null}:e.decision.canReuse?{kind:`accepted`,decision:e.decision}:{kind:`rejected`,decision:e.decision}}function nl(e,t){return t===null?{...e,cacheProofCode:fc}:{...e,cacheProofCode:t.code,cacheProofMode:t.mode,cacheProofScope:t.scope}}function rl(e){return{kind:`hardNavigate`,reason:`cacheProofRejected`,token:e.event.token,trace:z(R.cacheProofRejected,nl(e.traceFields,e.rejection.decision)),url:e.event.result.href}}function il(e){return{kind:`hardNavigate`,reason:`cacheReuseTokenRejected`,token:e.event.token,trace:z(R.cacheReuseTokenRejected,{...e.traceFields,cacheReuseTokenReason:e.reason}),url:e.event.result.href}}function al(e,t){return t===null?e:{...e,cacheProofCode:t.code,cacheProofReuseClass:t.reuseClass}}function ol(e){return e===null?{}:{cacheEntryReuseDecision:e}}function sl(e){let t=e.targetSnapshot.interception;if(!t)return{kind:`rejected`,reasonCode:R.interceptedRejectedMissingProof};if(t.targetMatchedUrl!==e.targetSnapshot.matchedUrl)return{kind:`rejected`,reasonCode:R.interceptedRejectedTargetMismatch};let n=$c(e.currentSnapshot);if(!e.restoredHistorySnapshot&&(t.sourceMatchedUrl!==n.matchedUrl||t.sourceRouteId!==n.routeId))return{kind:`rejected`,reasonCode:R.interceptedRejectedUnknownSource};let r=e.routeManifest===null?null:Bc(e.routeManifest,t);if(e.routeManifest!==null&&r===null)return{kind:`rejected`,reasonCode:R.interceptedRejectedUndeclaredTopology};let i=Wc(e.currentTopology,e.targetTopology);if(i.length===0)return{kind:`rejected`,reasonCode:R.interceptedRejectedIncompatibleRoot};let a=new Set(i),o=e.targetTopology.slotBindings.find(e=>e.slotId===t.slotId);if(!o||o.state!==`active`||o.ownerLayoutId===null||!a.has(o.ownerLayoutId))return{kind:`rejected`,reasonCode:R.interceptedRejectedMissingSlotProof};if(r!==null&&o.ownerLayoutId!==r.ownerLayoutId)return{kind:`rejected`,reasonCode:R.interceptedRejectedUndeclaredTopology};let s=Zc({currentSlotBindings:e.currentTopology.slotBindings,preservedLayoutIds:i,targetSlotBindings:e.targetTopology.slotBindings}).filter(e=>e!==t.slotId),c=e.lane===`navigation`?Qc({currentSlotBindings:e.currentTopology.slotBindings,preservedLayoutIds:i,targetInterceptionSlotId:t.slotId,targetSlotBindings:e.targetTopology.slotBindings}):[];return{kind:`approved`,preserveElementIds:i,preservePreviousSlotIds:[...new Set([...s,...c])].sort(O)}}function cl(e){let t=e.event.result.targetSnapshot,n=zc({routeManifest:e.routeManifest,slotBindingSource:`snapshot`,snapshot:e.state.visibleSnapshot}),r=zc({routeManifest:e.routeManifest,slotBindingSource:`manifestTarget`,snapshot:t}),i=Hc(e.state.visibleSnapshot.rootBoundaryId,t.rootBoundaryId)===`rootBoundaryChanged`,a=Vc({currentRootLayoutTreePath:i?e.state.visibleSnapshot.rootBoundaryId:n.kind===`known`?n.topology.rootLayoutTreePath:null,event:e.event,nextRootLayoutTreePath:i?t.rootBoundaryId:r.kind===`known`?r.topology.rootLayoutTreePath:null,state:e.state});if(e.event.token.lane===`prefetch`)return{kind:`noCommit`,reason:`prefetchOnly`,token:e.event.token,trace:z(R.prefetchOnly,a)};let o=tl(e.event.result.cacheEntryReuseProof);if(o.kind===`rejected`)return rl({event:e.event,rejection:o,traceFields:a});let s=o.decision;if(s!==null){let t=lc(e.event.token,{graphVersion:e.routeManifest?.graphVersion??null,installedCacheVariantFingerprint:null});if(!t.authorized)return il({event:e.event,reason:t.reason,traceFields:a})}let c=al(a,s),l=ol(s);if(i)return{kind:`hardNavigate`,reason:`rootBoundaryChanged`,token:e.event.token,trace:z(R.rootBoundaryChanged,c),url:e.event.result.href};if(t.interception!==null){if(n.kind===`unknown`||r.kind===`unknown`)return el({event:e.event,reasonCode:R.interceptedRejectedUndeclaredTopology,traceFields:c});let i=sl({currentSnapshot:e.state.visibleSnapshot,currentTopology:n.topology,lane:e.event.token.lane,restoredHistorySnapshot:e.event.result.restoredHistorySnapshot===!0,routeManifest:e.routeManifest,targetSnapshot:t,targetTopology:r.topology});return i.kind===`rejected`?el({event:e.event,reasonCode:i.reasonCode,traceFields:c}):{kind:`proposeCommit`,proposal:{...l,preserveAbsentSlots:!1,preserveElementIds:i.preserveElementIds,preservePreviousSlotIds:i.preservePreviousSlotIds,reason:`interceptedCurrentRootBoundary`,targetSnapshot:t},token:e.event.token,trace:z(R.interceptedCommitCurrent,c)}}let u=n.kind===`unknown`||r.kind===`unknown`?`rootBoundaryUnknown`:Hc(n.topology.rootBoundaryId,r.topology.rootBoundaryId);if(u===`rootBoundaryChanged`)return{kind:`hardNavigate`,reason:`rootBoundaryChanged`,token:e.event.token,trace:z(R.rootBoundaryChanged,c),url:e.event.result.href};if(u===`rootBoundaryUnknown`)return{kind:`proposeCommit`,proposal:{...l,preserveAbsentSlots:!1,preserveElementIds:[],preservePreviousSlotIds:[],reason:`unprovenTopologyFallback`,targetSnapshot:t},token:e.event.token,trace:z(R.rootBoundaryUnknown,c)};if(n.kind!==`known`||r.kind!==`known`)throw Error(`[vinext] Current-root navigation planning requires manifest topology`);return{kind:`proposeCommit`,proposal:{...l,preserveAbsentSlots:!1,preserveElementIds:Jc({currentTopology:n.topology,lane:e.event.token.lane,targetTopology:r.topology}),preservePreviousSlotIds:Yc({currentTopology:n.topology,lane:e.event.token.lane,targetTopology:r.topology}),reason:`currentRootBoundary`,targetSnapshot:t},token:e.event.token,trace:z(R.commitCurrent,c)}}function ll(e){switch(e.event.kind){case`navigate`:return pc({eventKind:e.event.kind,state:e.state,work:{href:e.event.href,kind:`flight`,mode:e.event.mode}});case`refresh`:return pc({eventKind:e.event.kind,state:e.state,work:{href:e.state.visibleSnapshot.displayUrl,kind:`flight`,mode:`refresh`}});case`traverse`:return pc({eventKind:e.event.kind,state:e.state,work:{direction:e.event.direction,historyState:e.event.historyState,kind:`traverseFlight`}});case`prefetch`:return pc({eventKind:e.event.kind,state:e.state,work:{href:e.event.href,kind:`prefetch`}});case`flightResponseArrived`:return cl({event:e.event,routeManifest:e.routeManifest,state:e.state});default:{let t=e.event;throw Error(`[vinext] Unknown navigation event: `+String(t))}}}function ul(e){if(e.clientCompatibilityId===null||!e.isRscContentType||Bo({clientCompatibilityId:e.clientCompatibilityId,currentHref:e.currentHref,origin:e.origin,responseCompatibilityId:e.compatibilityIdHeader,responseUrl:e.responseUrl}).kind===`compatible`)return{kind:`proceed`,trace:z(R.proceedToCommit,{})};if(e.actionRedirectHref!==null)return{kind:`hardNavigate`,url:e.actionRedirectHref,historyMode:e.actionRedirectType===`push`?`assign`:`replace`,clearClientNavigationCaches:!0,reason:`serverActionRedirectCompatibilityMismatch`,trace:z(R.serverActionRedirectCompatibilityMismatch,{targetHref:e.actionRedirectHref})};let t=e.currentHref;return{kind:`hardNavigate`,url:t,clearClientNavigationCaches:!1,reason:`serverActionRscCompatibilityMismatch`,trace:z(R.serverActionRscCompatibilityMismatch,{targetHref:t})}}function dl(e){return{kind:`hardNavigate`,url:e.currentHref,reason:`rscNavigationError`,trace:z(R.rscNavigationError,{targetHref:e.currentHref})}}var fl={classifyEarlyNavigationIntent:Sc,classifyNavigationPrefetchProbe:Dc,classifyNavigationReuse:Ec,classifyRscFetchResult:yc,classifyRscNavigationError:dl,classifyRootBoundaryTransition:Hc,classifyServerActionResult:ul,classifyVisitedResponseCacheCandidate:Cc,plan:ll,resolveCurrentRootBoundaryElementPersistence:qc,resolveMountedParallelSlotPersistence:Gc,resolveSameLayoutAncestorPersistence:Uc},pl=String.raw`(?:^|[^\w-])[\w-]+-Google|Google-[\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|meta-externalagent|meta-externalfetcher|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight`,ml=/Googlebot(?!-)|Googlebot$/i,hl=new Map;function gl(e){let t=e||pl,n=hl.get(t);if(n)return n;let r=new RegExp(t,`i`);return hl.set(t,r),r}function _l(e,t){return e?ml.test(e)?!0:gl(t).test(e):!1}function vl(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)||e.startsWith(`//`)}function yl(e){return Un(e).slice(0,8)}function bl(e){return`/`+v(e).map(yl).join(`/`)}function xl(){return{staticChildren:new Map,dynamicChild:null,catchAllChild:null,optionalCatchAllChild:null,route:null}}function Sl(e){let t=xl();for(let n of e){let e=n.patternParts;if(e.length===0){t.route===null&&(t.route=n);continue}let r=t;for(let t=0;te.toLowerCase()===i))return t}function Ml(e,t,n){let r=t.toLowerCase();if(r===n.toLowerCase())return e;let i=e.startsWith(`/`)?e:`/${e}`,a=(i.split(/[?#]/,1)[0]??i).toLowerCase(),o=`/${r}`;return a===o||a.startsWith(`${o}/`)?e.startsWith(`/`)?e:i:`/${t}${i}`}function Nl(e,t){if(!t?.length)return;let n=e.startsWith(`/`)?e:`/${e}`,r=(n.split(/[?#]/,1)[0]??n).split(`/`).find(Boolean);if(!r)return;let i=r.toLowerCase();return t.find(e=>e.toLowerCase()===i)}function Pl(e,t=``){return t?t+e:e}function Fl(e,t,{basePath:n,currentHostname:r,domainItems:i}){if(!i?.length)return;let a=jl(i,void 0,t);if(!a)return;let o=jl(i,r??void 0),s=Ml(/^[/?#]/.test(e)?e:`/${e}`,t,a.defaultLocale);if(!(o&&Al(o.domain)===Al(a.domain)))return`${`http${a.http?``:`s`}://`}${a.domain}${Pl(s,n)}`}var Il=El(),Ll=El(),Rl=El();function zl(e){return`/`+e.join(`/`)}function Bl(e,t){let n;try{n=new URL(e,window.location.href)}catch{return null}if(n.origin!==window.location.origin)return null;let r=p(n.pathname,t),i=Nl(r,window.__VINEXT_LOCALES__),a=i?i.length+1:0,o=i?r.length===a?`/`:r.slice(a):r;return{appPathname:r,pagesApiRequest:r===`/api`||r.startsWith(`/api/`),pagesPathname:o}}function Vl(e,t){return Bl(e,t)?.appPathname??null}function Hl(e){return e===void 0?0:e.startsWith(`:`)?e.endsWith(`+`)?3:e.endsWith(`*`)?4:2:1}function Ul(e,t){if(e===null||t===null)return e??t;let n=Math.max(e.patternParts.length,t.patternParts.length);for(let r=0;r{(!t||t())&&Jl(e)})}function Xl(e,t,n){let r=n?.minFrames??0,i=n?.shouldContinue??(()=>!0),a=0,o=()=>{if(!i())return;window.scrollTo(e,t);let n=Math.abs(window.scrollY-t)<=1;!i()||n&&a>=r||a>=60||(a+=1,requestAnimationFrame(o))};o()}var Zl=Symbol.for(`vinext.appRouterScrollIntent`);function B(){let e=globalThis;return e[Zl]??={nextId:0,pending:null},e[Zl]}function Ql(e){let t=B();t.nextId+=1;let n={commitId:null,hash:e,headElements:typeof document>`u`?null:new Set(document.head?.children??[]),id:t.nextId,targetHoistedInHead:!1};return t.pending=n,n}function $l(){let e=B();e.nextId+=1,e.pending=null}function eu(){return B().pending}function tu(e){return e!=null&&B().nextId===e.id}function nu(e,t){let n=B(),r=n.pending;e!=null&&r!==null&&r.id===e.id&&(n.pending={...r,commitId:t})}function ru(e,t){let n=B(),r=n.pending;e!=null&&r!==null&&r.id===e.id&&r.commitId===t&&(n.pending={...r,targetHoistedInHead:!0})}function iu(e,t){if(e==null)return null;let n=B(),r=n.pending;return r===null||r.id!==e.id||t!==void 0&&r.commitId!==t?null:(n.pending=null,r)}var au=Symbol.for(`vinext.appPrefetchFetchSlotRelease`),ou=4,su=[],V=new WeakMap,cu=new WeakMap,lu=0,uu=0,du=!1;function fu(){for(du=!1;uur.abort()}),t.then(e=>{e[au]=()=>V.delete(t)},()=>V.delete(t)),t}let i,a,o=!1,s=new Promise((t,c)=>{a=c,i=(i=!1)=>{if(!i&&n?.()===!1){V.delete(s),--uu,c(new DOMException(`Prefetch is no longer wanted`,`AbortError`));return}o=!0;let a=!1,l=()=>{a||(a=!0,V.delete(s),--uu,fu())};try{e(r.signal).then(e=>{e[au]=l,t(e)},e=>{V.delete(s),l(),c(e)})}catch(e){V.delete(s),l(),c(e)}}}),c=()=>{if(o)return;let e=su.indexOf(i);e!==-1&&(su.splice(e,1),V.delete(s),r.abort(),a(r.signal.reason))};return su.push(i),V.set(s,{runner:i,cancelQueued:c,cancel:()=>{o?r.abort():c()}}),pu(),s}function gu(e){V.get(e)?.cancelQueued?.()}function _u(e){e!==void 0&&V.get(e)?.cancel()}function vu(e,t=()=>!0){if(e===void 0)return()=>{};let n=cu.get(e);n===void 0&&(n=new Map,cu.set(e,n)),n.set(t,++lu);let r=()=>{n.delete(t)},i=V.get(e)?.runner;if(i===void 0)return r;let a=su.indexOf(i);return a===-1||(su.splice(a,1),uu+=1,i(!0)),r}function yu(e,t=1/0){let n=e&&cu.get(e);if(!n)return!1;for(let[e,r]of n)if(r<=t&&e())return!0;return!1}function bu(){return lu}var xu=`modulepreload`,Su=function(e){return`/`+e},Cu={},wu=function(e){return e.pathname.endsWith(`.css`)},Tu=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},Eu=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=Su(t,n);let r=s(t),i=wu(r);return Tu(Cu,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:xu,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{let i=a=>{t.removeEventListener(`load`,i),t.removeEventListener(`error`,i),a.type===`error`?n(Error(`Unable to preload CSS for ${r}`)):e(a)};t.addEventListener(`load`,i),t.addEventListener(`error`,i)})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Du=e({DYNAMIC_NAVIGATION_CACHE_TTL:()=>Lu,MAX_PREFETCH_CACHE_SIZE:()=>Pu,PREFETCH_CACHE_TTL:()=>H,appRouterInstance:()=>Of,applyAppRouterScrollFallback:()=>ff,consumePrefetchResponse:()=>Zd,consumePrefetchResponseForNavigation:()=>$d,createAppPrefetchRequestHeaders:()=>Uu,createCachedRscResponseSnapshot:()=>zd,deletePrefetchResponseSnapshot:()=>Rd,disableNavigationResponsePrefetchCacheReuse:()=>Pd,discardLearningOnlyPrefetchCacheEntry:()=>wd,fetchRouteTreeGatedPrefetch:()=>Kd,getCurrentInterceptionContext:()=>Bu,getCurrentNextUrl:()=>Hu,getFreshPrefetchCacheEntry:()=>Wu,getMountedSlotsHeader:()=>nf,getPrefetchCache:()=>U,getPrefetchInterceptionContext:()=>Vu,getPrefetchedUrls:()=>W,hasFreshLearningOnlyPrefetchCacheEntry:()=>id,hasNavigationFreshVisitedResponse:()=>Ld,hasPrefetchCacheEntryForNavigation:()=>rd,hasSearchAgnosticPrefetchShellForRoute:()=>ad,invalidateDynamicPrefetchCache:()=>Md,invalidatePrefetchCache:()=>jd,invalidateVisitedResponsePrefetches:()=>Nd,navigateClientSide:()=>yf,parseRenderedPathAndSearchHeader:()=>Vd,peekPrefetchResponseForNavigation:()=>Xd,prefetchRscResponse:()=>Jd,preloadHybridClientRouteOwner:()=>Au,prepareNavigationPrefetchSnapshot:()=>Gd,promotePrefetchCacheEntryForNavigation:()=>Td,pushHistoryStateWithoutNotify:()=>cf,replaceHistoryStateWithoutNotify:()=>lf,resolveCachedRscResponseExpiresAt:()=>Xu,resolveCachedRscResponseTtlMs:()=>Yu,resolveLoadedHybridClientRewriteHref:()=>ju,resolvePrefetchCacheEntryMountedSlotsHeader:()=>Qu,restoreRscResponse:()=>Wd,saveScrollPosition:()=>uf,seedFullPrefetchFromVisitedResponse:()=>Id,seedPrefetchResponseSnapshot:()=>Fd,setMountedSlotsHeader:()=>tf,snapshotRscResponse:()=>Hd,trackAppRouterNavigationInFlight:()=>Ef}),Ou=null,ku=null;async function Au(){Ou||=(ku??=Eu(()=>import(`./CfYPS8gn.js`),[]),await ku)}function ju(e,t){return Ou?.resolveHybridClientRewriteHref(e,t)??null}function Mu(e){return null}var Nu=!1,Pu=52428800,Fu=Pu*.9;function Iu(e,t){if(e===void 0||e===``)return t;let n=Number(e);return!Number.isFinite(n)||n<0?t:n*1e3}var Lu=Iu(`0`,3e4),H=Iu(`300`,3e4),Ru=30,zu=Ru*1e3;function Bu(){return p(window.location.pathname,``)}function Vu(e,t){let n;try{n=new URL(e,window.location.href)}catch{return null}return ui({basePath:``,currentPathname:t??window.location.pathname,routeManifest:S()?.bootstrap.routeManifest??null,targetPathname:n.pathname})}function Hu(){return window.location.pathname+window.location.search}function Uu(e){let t=S()?.functions.getPrefetchRouterState?.()??null;return es({...e,nextUrl:Hu(),includePrefetchHeader:e.prefetchKind!==`full`,prefetchRouterState:t})}function U(){return window.__VINEXT_RSC_PREFETCH_CACHE__||(window.__VINEXT_RSC_PREFETCH_CACHE__=new Map),window.__VINEXT_RSC_PREFETCH_CACHE__}function Wu(e){let t=U(),n=t.get(e);if(n===void 0||n.pending||K(n)>Date.now())return n;q(t,W(),e,n,!0)}function W(){return window.__VINEXT_RSC_PREFETCHED_URLS__||(window.__VINEXT_RSC_PREFETCHED_URLS__=new Set),window.__VINEXT_RSC_PREFETCHED_URLS__}function G(e){return typeof e==`number`&&Number.isFinite(e)&&Number.isInteger(e)&&e>=0}function Gu(e){return typeof e==`number`&&Number.isFinite(e)&&e>=0}function Ku(e){if(e===null||e===``)return;let t=Number(e);return G(t)?t:void 0}function qu(e){if(e!==void 0)return e.kind===`pending`?Ru:Math.max(e.seconds,Ru)}function Ju(e){let t=e.dynamicStaleTimeSeconds,n=qu(e.serverStaleTime);return G(t)?n===void 0?t:Math.min(t,n):n}function Yu(e,t){let n=Ju(e);return n===void 0?t:n*1e3}function Xu(e,t,n){return Gu(t.expiresAt)?t.expiresAt:e+Yu(t,n)}function Zu(e,t,n,r){if(Gu(t.expiresAt))return t.expiresAt;let i=t.serverStaleTime?.kind===`pending`&&r!==`verbatim`?void 0:qu(t.serverStaleTime);if(i!==void 0)return e+i*1e3;if(r===`ignore`)return e+Math.max(n,zu);let a=G(t.dynamicStaleTimeSeconds)?t.dynamicStaleTimeSeconds:void 0;return a===void 0?e+Math.max(n,zu):r===`verbatim`?e+a*1e3:e+Math.max(a===0?n:a*1e3,zu)}function K(e){return e.expiresAt===void 0?e.snapshot?Xu(e.timestamp,e.snapshot,H):e.timestamp+H:e.expiresAt}function Qu(e){return e.mountedSlotsHeader===void 0?e.snapshot?.mountedSlotsHeader??null:e.mountedSlotsHeader}function $u(e){try{let t=P(e);return Xo(t),`${t.pathname}${t.search}`}catch{return null}}function ed(e){try{return P(e).pathname}catch{return null}}function td(e,t){return Qu(e)===t||(e.snapshot?.mountedSlotsHeader??null)===t}function nd(e,t,n,r=[]){let i=U(),a=[e,...r];for(let e of a){let r=k.encodeCacheKey(e,t),a=i.get(r);if(a&&a.cacheForNavigation!==!1&&td(a,n))return{cacheKey:r,entry:a}}let o=new Set(a.map(e=>$u(e)).filter(e=>e!==null));if(o.size===0)return null;for(let[e,r]of i){if(r.cacheForNavigation===!1)continue;let i=k.decodeCacheKey(e);if(i.interceptionContext!==t)continue;let a=$u(i.rscUrl);if(a!==null&&o.has(a)&&td(r,n))return{cacheKey:e,entry:r}}return null}function rd(e,t=null,n=null,r={}){let i=nd(e,t,n,r.additionalRscUrls);return i===null||i.entry.pending!==void 0&&r.reusePending===!1?!1:i.entry.pending!==void 0||K(i.entry)>Date.now()?(dd(U(),i.cacheKey,i.entry),kd(i.cacheKey,i.entry,r.onInvalidate),r.onReuse?.(i.entry,i.cacheKey),!0):(q(U(),W(),i.cacheKey,i.entry,r.notifyInvalidation??!0),!1)}function id(e,t=null){let n=k.encodeCacheKey(e,t),r=U(),i=r.get(n);return i?.cacheForNavigation===!1?i.pending!==void 0||K(i)>Date.now()?(dd(r,n,i),!0):(q(r,W(),n,i,!0),!1):!1}function ad(e,t=null,n=null){let r=ed(e);if(r===null)return!1;let i=U();for(let[e,a]of i){if(a.searchAgnosticShell!==!0)continue;let o=k.decodeCacheKey(e);if(o.interceptionContext===t&&ed(o.rscUrl)===r&&td(a,n)){if(a.pending!==void 0||K(a)>Date.now())return!0;q(i,W(),e,a,!0)}}return!1}function od(e){return e.snapshot?.buffer.byteLength??e.size??0}var sd=null,cd=0;function ld(e){if(sd===e)return cd;let t=0,n=new Set;for(let r of e.values())n.has(r)||(n.add(r),t+=od(r));return sd=e,cd=t,t}function ud(e,t){sd===e&&(cd=Math.max(0,cd+t))}function dd(e,t,n){if(e.get(t)===n){e.delete(t),e.set(t,n);for(let r of n.cacheKeys??[])r!==t&&e.get(r)===n&&(e.delete(r),e.set(r,n))}}function fd(){let e=U(),t=ld(e);if(t<=52428800)return;let n=Date.now(),r=W();for(let[t,i]of e)K(i)<=n&&q(e,r,t,i,!0);if(t=ld(e),t<=52428800)return;let i=0;for(;t>Fu&&iCd(i),r)};bd.add(i)}function Cd(e){if(bd.delete(e)){clearTimeout(e.timer);for(let t of e.callbacks)vd(t)}}function q(e,t,n,r,i){let a=r.cacheKeys??new Set([n]),o=!1;for(let n of a)e.get(n)===r&&(e.delete(n),t.delete(n),o=!0);o&&(ud(e,-od(r)),r.cacheKeys=void 0,i?yd(r):(_d(r),r.onInvalidateCallbacks=void 0))}function wd(e,t=null,n=null){let r=U(),i=W(),a=$u(e);if(a===null)return!1;let o=[];for(let[e,i]of r){if(i.cacheForNavigation!==!1||i.prefetchKind!==`navigation`)continue;let r=k.decodeCacheKey(e);r.interceptionContext===t&&$u(r.rscUrl)===a&&td(i,n)&&o.push([e,i])}for(let[e,t]of o)_u(t.fetchPromise),q(r,i,e,t,!0);return o.length>0}function Td(e,t){t.dynamicStaleTime===`learning-only`?t.cacheForNavigation!==!1&&(t.dynamicStaleTime=`full-prefetch`,t.snapshot!==void 0&&(t.expiresAt=Zu(t.timestamp,t.snapshot,t.fallbackTtlMs??H,`full-prefetch`),Dd(e,t))):t.cacheForNavigation=!0}function Ed(e){let t=U(),n=t.get(e);n&&q(t,W(),e,n,!0)}function Dd(e,t){if(t.onInvalidateCallbacks===void 0||t.onInvalidateCallbacks.size===0)return;_d(t);let n=Math.max(0,K(t)-Date.now());t.invalidationTimer=setTimeout(()=>{Ed(e)},n)}function Od(e,t){t!==void 0&&(e.onInvalidateCallbacks===void 0&&(e.onInvalidateCallbacks=new Set),e.onInvalidateCallbacks.add(t))}function kd(e,t,n){n!==void 0&&(Od(t,n),t.outcome===`cache-seeded`&&Dd(e,t))}function Ad(e,t){if(t===void 0)return;let n=U().get(e);n&&kd(e,n,t)}function jd(e={}){hd(null);let t=U(),n=W();for(let[e,r]of t)q(t,n,e,r,!0);n.clear();for(let e of bd)Cd(e);e.pingVisibleLinks!==!1&&S()?.functions.pingVisibleLinks?.()}function Md(){let e=U(),t=W(),n=[];for(let[t,r]of e)r.prefetchKind===`route-tree`||r.prefetchKind!==void 0&&(r.dynamicStaleTime===`full-prefetch`||r.snapshot!==void 0&&!G(r.snapshot.dynamicStaleTimeSeconds))||n.push([t,r]);for(let[r,i]of n)q(e,t,r,i,!0)}function Nd(){for(let e of bd)e.forVisitedResponse===!0&&Cd(e)}function Pd(){let e=!1;for(let t of new Set(U().values()))t.prefetchKind===void 0&&t.reuseAfterHistoryRestore!==!0&&(e||=t.cacheForNavigation!==!1,t.cacheForNavigation=!1);e&&S()?.functions.pingVisibleLinks?.()}function Fd(e,t,n=null,r=null,i=Lu,a=!1,o=Xu(Date.now(),t,i)){let s=k.encodeCacheKey(e,n),c=U(),l=c.get(s);l&&q(c,W(),s,l,!1);let u=Date.now(),d={cacheForNavigation:!0,cacheKeys:new Set([s]),expiresAt:o,mountedSlotsHeader:r,outcome:`cache-seeded`,reuseAfterHistoryRestore:a,size:t.buffer.byteLength,snapshot:t,timestamp:u};c.set(s,d),ud(c,t.buffer.byteLength),W().add(s),Dd(s,d),fd()}function Id(e,t,n,r=[],i){let a=S()?.functions.readVisitedResponseForFullPrefetch?.([e,...r],t,n);if(!a)return!1;let o=a.navigatedAt+Math.max(H,zu);if(o<=Date.now())return!1;Fd(e,a.response,t,n,void 0,!0,o);let s=k.encodeCacheKey(e,t);return U().get(s)?.snapshot===a.response&&(Ad(s,i),!0)}function Ld(e,t,n,r=[],i){let a=S()?.functions.readVisitedResponseForFullPrefetch?.([e,...r],t,n)?.navigationFreshUntil;return a!=null&&(i!==void 0&&Sd(new Set([i]),a,!0),!0)}function Rd(e,t,n=null){let r=k.encodeCacheKey(e,n),i=U(),a=i.get(r);a?.snapshot===t&&q(i,W(),r,a,!1)}function zd(e,t,n=null){let r=Ku(e.headers.get(Wa)),i=e.headers.get(Ga),a=i===`1`?xs(t):{buffer:t},o=i===`resolved`?r:a.metadata?.dynamicStaleTimeSeconds??r,s=o??r,c=Bd(e.headers),l=a.metadata!==void 0&&Object.hasOwn(a.metadata,`serverStaleTimeSeconds`)?a.metadata?.serverStaleTimeSeconds===null?void 0:{kind:`resolved`,seconds:a.metadata.serverStaleTimeSeconds}:c,u=e.headers.get(to),d=e.headers.get(no);return{compatibilityIdHeader:e.headers.get(Do),buffer:a.buffer,...o===void 0?{}:{completedDynamicStaleTimeSeconds:o},contentType:e.headers.get(`content-type`)??`text/x-component`,...s===void 0?{}:{dynamicStaleTimeSeconds:s},mountedSlotsHeader:e.headers.get(xn),paramsHeader:e.headers.get(Ua),receivedAt:Date.now(),...u===null?{}:{redirectHeader:u},...d===null?{}:{redirectTypeHeader:d},renderedPathAndSearch:Vd(e.headers.get(Ja)),...l===void 0?{}:{serverStaleTime:l},url:n??e.url}}function Bd(e){if(e.get(`X-Vinext-Stale-Time-Pending`)===`1`)return{kind:`pending`};let t=Ku(e.get(oo));return t===void 0?void 0:{kind:`resolved`,seconds:t}}function Vd(e){if(e===null||e===``)return null;try{let t=decodeURIComponent(e);return t.startsWith(`/`)?t:null}catch{return null}}async function Hd(e){try{let t=zd(e,await e.arrayBuffer()),n=Ud.get(e);return n===void 0?t:{...t,expiresAt:n}}finally{mu(e)}}var Ud=new WeakMap;function Wd(e,t=!0){let n=new Headers({"content-type":e.contentType});e.mountedSlotsHeader!=null&&n.set(xn,e.mountedSlotsHeader),e.compatibilityIdHeader!=null&&n.set(Do,e.compatibilityIdHeader),G(e.dynamicStaleTimeSeconds)&&n.set(Wa,String(e.dynamicStaleTimeSeconds)),G(e.completedDynamicStaleTimeSeconds)&&n.set(Ga,`resolved`),e.serverStaleTime?.kind===`pending`?n.set(so,`1`):e.serverStaleTime!==void 0&&n.set(oo,String(e.serverStaleTime.seconds)),e.paramsHeader!=null&&n.set(Ua,e.paramsHeader),e.redirectHeader!==void 0&&n.set(to,e.redirectHeader),e.redirectTypeHeader!==void 0&&n.set(no,e.redirectTypeHeader),e.renderedPathAndSearch!=null&&n.set(Ja,encodeURIComponent(e.renderedPathAndSearch));let r=new Response(t?e.buffer.slice(0):e.buffer,{status:200,headers:n});return Gu(e.expiresAt)&&Ud.set(r,e.expiresAt),r}async function Gd(e){let t=S()?.functions.preparePrefetchResponse;if(!t)throw Error(`App Router prefetch preparation is unavailable`);return await t(Wd(e))}async function Kd(e){let{fetchFullRscPayload:t,fetchRouteTree:n,fullHref:r,headers:i,interceptionContext:a,mountedSlotsHeader:o}=e,s=new Headers(i);s.set(C,`1`),s.set(w,`/_tree`);let c=await I(r,s),l=k.encodeCacheKey(c,a),u=Wu(l);u===void 0&&(W().add(l),Jd(c,n(c,s),a,o,void 0,{cacheForNavigation:!1,optimisticRouteShell:!1,prefetchKind:`route-tree`}),u=Wu(l)),await u?.pending?.catch(()=>{}),u=Wu(l);let d=u?.snapshot?.renderedPathAndSearch;if(d){let e=Xd(await I(d,i),a,o);if(e)return Wd(e)}return t()}function qd(e){return e.ok?e.headers.get(`content-type`)?.toLowerCase().startsWith(Oo)===!0:!1}function Jd(e,t,n=null,r=null,i,a={}){let o=k.encodeCacheKey(e,n),s=U(),c=W(),l=Date.now(),u=s.get(o),d=a.cacheForNavigation??!0;u&&q(s,c,o,u,!1);let f={cacheForNavigation:d,cacheKeys:new Set([o]),mountedSlotsHeader:r,optimisticRouteShell:a.optimisticRouteShell===!0,outcome:`pending`,prefetchKind:a.prefetchKind??(a.optimisticRouteShell===!0?`loading-shell`:`navigation`),searchAgnosticShell:a.searchAgnosticShell===!0,timestamp:l};a.dynamicStaleTime===`learning-only`&&a.searchAgnosticShell!==!0?(f.dynamicStaleTime=`learning-only`,f.fallbackTtlMs=a.fallbackTtlMs??H):a.dynamicStaleTime===`full-prefetch`&&(f.dynamicStaleTime=`full-prefetch`),Od(f,i?.onInvalidate),f.fetchPromise=t,f.pending=t.then(async e=>{if(qd(e)){let t=await Hd(e);if(s.get(o)!==f)return;let n=od(f);f.snapshot=t,f.size=t.buffer.byteLength,ud(s,f.size-n);let r=a.fallbackTtlMs??H,i=a.searchAgnosticShell===!0?`ignore`:f.dynamicStaleTime??a.dynamicStaleTime??(a.optimisticRouteShell===!0?`ignore`:`verbatim`);if(i===`learning-only`&&G(t.dynamicStaleTimeSeconds)?(f.cacheForNavigation=!1,f.expiresAt=f.timestamp+Math.max(r,zu)):f.expiresAt=Zu(f.timestamp,f.snapshot,r,i===`learning-only`?`verbatim`:i),a.prepareSnapshot&&f.cacheForNavigation&&t.redirectHeader===void 0)try{let e=await a.prepareSnapshot(t);if(s.get(o)!==f)return;f.preparedElements=e}catch{}Yd(s,c,o,f),fd()}else mu(e),e.body?.cancel().catch(()=>{}),q(s,c,o,f,!1)}).catch(()=>{q(s,c,o,f,!1)}).finally(()=>{s.get(o)===f&&(f.pending=void 0,f.fetchPromise=void 0,f.snapshot&&(f.outcome=`cache-seeded`,Dd(o,f)))}),s.set(o,f),fd()}function Yd(e,t,n,r){if(r.cacheForNavigation===!1)return;let i=r.snapshot?.renderedPathAndSearch;if(!i)return;let a=k.decodeCacheKey(n),o=k.encodeCacheKey(i,a.interceptionContext);if(o===n)return;let s=e.get(o);s&&s!==r&&q(e,t,o,s,!1),r.cacheKeys??=new Set([n]),r.cacheKeys.add(o),e.set(o,r),t.add(o)}function Xd(e,t=null,n=null,r){let i=nd(e,t,n,r?.additionalRscUrls);if(!i)return null;let{cacheKey:a,entry:o}=i;return o.pending||o.outcome!==`cache-seeded`||o.cacheForNavigation===!1||!o.snapshot?null:K(o)<=Date.now()?(q(U(),W(),a,o,!0),null):o.expiresAt!==void 0||o.snapshot.expiresAt!==void 0?{...o.snapshot,expiresAt:K(o)}:o.snapshot}function Zd(e,t=null,n=null,r){let i=U(),a=k.encodeCacheKey(e,t),o=i.get(a);o&&o.cacheForNavigation!==!1&&!td(o,n)&&q(i,W(),a,o,!1);let s=nd(e,t,n,r?.additionalRscUrls);if(!s)return null;let{cacheKey:c,entry:l}=s;return Qd(c,l,n)}function Qd(e,t,n,r=!1){let i=U();if(t.pending||t.outcome!==`cache-seeded`||t.cacheForNavigation===!1)return null;if(t.snapshot){if(!td(t,n))return null;if(!r&&K(t)<=Date.now())return q(i,W(),e,t,!0),null;xd(t),q(i,W(),e,t,!1);let a=t.snapshot;return t.expiresAt!==void 0||t.snapshot.expiresAt!==void 0?{...a,expiresAt:K(t),...t.preparedElements?{preparedElements:t.preparedElements}:{}}:t.preparedElements?{...a,preparedElements:t.preparedElements}:a}return null}async function $d(e,t=null,n=null,r){let i=U(),a=nd(e,t,n,r?.additionalRscUrls);if(!a)return null;let{cacheKey:o,entry:s}=a;if(r?.shouldConsume?.()===!1)return null;let c=s.pending!==void 0;if(s.pending!==void 0){let e=vu(s.fetchPromise,r?.shouldConsume);try{await s.pending.catch(()=>{})}finally{e()}if(i.get(o)!==s||r?.shouldConsume?.()===!1)return null}return Qd(o,s,n,c)}var ef=Symbol.for(`vinext.mountedSlotsHeader`);function tf(e){let t=window;t[ef]=e}function nf(){return window[ef]??null}function rf(e){let t=_();if(!t)return e();t.suppressUrlNotifyCount+=1;try{return e()}finally{--t.suppressUrlNotifyCount}}function af(e,t){try{return JSON.stringify(e)===JSON.stringify(t)}catch{return!1}}function of(e,t,n,r,i){let a=e.routerHistoryWrite;if(a?.method!==t)return!1;if(a.threw){if(i==null||new URL(i,window.location.href).href!==a.href||a.data!==n&&!(Wi(n)&&M(n)===M(a.data)))return!1}else if(a.data!==n||a.url!==i)return!1;if(a.landed)return!0;e.routerHistoryWrite=null;let o=a.land?.(n),s=t===`pushState`?e.originalPushState:e.originalReplaceState,c=o?o.data:n,l=window.history.state;try{s.call(window.history,c,r,i)}catch(t){let n=window.history.state!==l&&window.location.href===a.href&&af(window.history.state,c);throw n&&o?.commit(),e.routerHistoryWrite={...a,threw:!0,landed:n},t}return o?.commit(),a.threw&&(e.routerHistoryWrite={...a,landed:!0}),!0}function sf(e,t,n,r,i){rf(()=>{let a=_();if(!a)return;if(r==null){(e===`pushState`?a.originalPushState:a.originalReplaceState).call(window.history,t,n,r);return}let o=a.routerHistoryWrite;a.routerHistoryWriteDepth+=1,a.routerHistoryWrite={method:e,data:t,url:r,href:new URL(r,window.location.href).href,land:i,threw:!1,landed:!1};try{window.history[e](t,n,r)}finally{--a.routerHistoryWriteDepth,a.routerHistoryWrite=o}})}function cf(e,t,n,r){sf(`pushState`,e,t,n,r)}function lf(e,t,n,r){sf(`replaceState`,e,t,n,r)}function uf(){lf({...window.history.state??{},__vinext_scrollX:window.scrollX,__vinext_scrollY:window.scrollY},``)}function df(e,t,n){let r=S()?.functions.commitHashNavigation;if(r){r(e,t,n);return}let i=ia(window.history.state);t===`replace`?lf(i,``,e):cf(i,``,e)}function ff(e){if(typeof document<`u`){if(e.hash!==null){let t=e.hash;requestAnimationFrame(()=>{tu(e)&&Kl(()=>{Jl(t)})})}else e.targetHoistedInHead||Kl(()=>{document.documentElement.scrollTop=0})}}function pf(e){queueMicrotask(()=>{let t=eu();if(t===null||t.id!==e.id)return;let n=iu(e);n&&ff(n)})}function mf(e){if(e&&typeof e==`object`&&`__vinext_scrollY`in e){let{__vinext_scrollX:t,__vinext_scrollY:n}=e;Promise.resolve().then(()=>{let e=window.__VINEXT_RSC_PENDING__??null;e?e.then(()=>Xl(t,n)):Xl(t,n)})}}function hf(e,t){t===`replace`?window.location.replace(e):window.location.assign(e)}function gf(){S()?.functions.notifyLinkNavigationStart?.()}function _f(e){let t=gd(e);t!==null&&!zs(e,window.location.href,``)&&hd(t),gf()}function vf(){let e=gd(window.location.href);e!==null&&hd(e),gf()}async function yf(e,t,n,r=!1,i=`transition`){_f(e);let a=e;if(vl(e)){let n=As(e,``);if(n==null){u(e,t);let n=S()?.functions.navigateExternal;if(n){await n(e,t);return}hf(e,t),await new Promise(()=>{});return}a=n}let o=Mu(a);if(o===`pages`||o===`document`){let e=Rs(a,window.location.href,``,Nu);u(e,t),t===`push`&&uf();let n=S()?.functions.navigateExternal;if(n){await n(e,t);return}hf(e,t),await new Promise(()=>{});return}let s=Rs(a,window.location.href,``,Nu);u(s,t),t===`push`&&uf();let c=fl.classifyEarlyNavigationIntent({basePath:``,currentUrlSpace:`browser`,currentHref:window.location.href,mode:t,scroll:n,targetHref:s});if(c.kind===`sameDocumentScroll`){$l(),df(s,c.mode,c.scroll),jn(s),Ct(),c.scroll&&Jl(c.hash);return}if(ds(typeof document>`u`?void 0:document)){let e=S()?.functions.navigateExternal;if(e){await e(s,t);return}hf(s,t),await new Promise(()=>{});return}let l=s.indexOf(`#`),d=l===-1?``:s.slice(l),f=n?Ql(d||null):null;n||$l();let p=S()?.functions.navigate;try{p?await p(s,0,`navigate`,t,void 0,r,void 0,f,i,c.bypassNavigationCache):(t===`replace`?lf(null,``,s):cf(null,``,s),Ct())}catch(e){throw f&&iu(f),e}f&&pf(f)}var bf=0;function xf(){bf+=1;let e=!1;return()=>{e||(e=!0,bf=Math.max(0,bf-1))}}function Sf(){return bf>0}function Cf(e){queueMicrotask(e)}var wf=0,Tf=!1;function Ef(){wf+=1;let e=!1;return()=>{e||(e=!0,wf=Math.max(0,wf-1),wf===0&&Tf&&(Tf=!1,S()?.functions.pingVisibleLinks?.()))}}function Df(){wf>0?Tf=!0:S()?.functions.pingVisibleLinks?.()}var Of={bfcacheId:`0`,push(e,t){qs(e),_f(e);let n=xf();try{a.startTransition(()=>{yf(e,`push`,t?.scroll!==!1,!0)})}catch(e){throw n(),e}Cf(n)},replace(e,t){qs(e),_f(e);let n=xf();try{a.startTransition(()=>{yf(e,`replace`,t?.scroll!==!1,!0)})}catch(e){throw n(),e}Cf(n)},back(){window.history.back()},forward(){window.history.forward()},refresh(){S()?.functions.clearNavigationCaches?.({pingVisibleLinks:!1});let e=S()?.functions.navigate;Sf()||!e?S()?.functions.pingVisibleLinks?.():a.startTransition(()=>{e(window.location.href,0,`refresh`,void 0,void 0,!0).finally(Df)})},prefetch(e,t){if(qs(e),_l(window.navigator?.userAgent??``))return;try{new URL(Fs(e,``),window.location.href)}catch{throw Error(`Cannot prefetch '${e}' because it cannot be converted to a URL.`)}let n=vl(e)?As(e,``):e;if(n==null)return;let r=gd(n);if(r===null)return;let i=window.location.pathname,a=Vu(r,i),o=nf(),s=Uu({fetchPriority:`low`,interceptionContext:a,mountedSlotsHeader:o||null}),c=md(r);(async()=>{let e=hn();if(e!==null){if(!await e||c.cancelled)return;a=Vu(r,i),a!==null&&s.set(yn,a)}let n=Mu(r);if(n===`pages`||n===`document`)return;let l=t?.kind===`full`?`full`:`auto`,[{resolveAutoAppRoutePrefetch:u,resolveFullAppRoutePrefetch:d},{resolveAppPrefetchRscRequest:f}]=await Promise.all([Eu(()=>Promise.resolve().then(()=>eh),void 0),Eu(()=>Promise.resolve().then(()=>Ch),void 0)]);if(c.cancelled)return;let p=l===`full`?d():u(r,a),m=p.shouldPrefetch&&p.cacheForNavigation,ee=p.requiresRouteTreePrefetch===!0;m&&l===`full`&&s.delete(C),m&&l===`auto`&&(s.set(C,`1`),s.set(w,ee?`/__PAGE__`:`1`)),new URL(r,window.location.href).search,!m&&l===`auto`&&(s.set(C,`1`),s.set(w,`1`),s.set(T,da));let{additionalRscUrls:h,rscUrl:g}=await f({fullHref:r,headers:s,rewrittenPrefetchHref:null});if(c.cancelled)return;let te=k.encodeCacheKey(g,a),ne=W();if(p.dynamicStaleTime!==`full-prefetch`&&id(g,a)){Ad(te,t?.onInvalidate);return}if(m&&(wd(g,a,o),rd(g,a,o,{additionalRscUrls:h,onInvalidate:t?.onInvalidate,onReuse:p.dynamicStaleTime===`full-prefetch`?(e,t)=>Td(t,e):void 0})||p.dynamicStaleTime===`full-prefetch`&&Id(g,a,o,h,t?.onInvalidate))||p.dynamicStaleTime!==`full-prefetch`&&Ld(g,a,o,h,t?.onInvalidate))return;ne.add(te);let re=()=>hu(e=>fetch(g,{headers:s,credentials:`include`,priority:`low`,signal:e}),`low`),ie=m&&l===`auto`&&ee?Kd({fetchFullRscPayload:re,fetchRouteTree:(e,t)=>hu(n=>fetch(e,{headers:t,credentials:`include`,priority:`low`,signal:n}),`low`),fullHref:r,headers:s,interceptionContext:a,mountedSlotsHeader:o}):re(),ae={fallbackTtlMs:p.fallbackTtl===`dynamic`?Lu:H,dynamicStaleTime:p.dynamicStaleTime,prefetchKind:`navigation`};Jd(g,ie,a,o,t,m?{...ae,cacheForNavigation:!0,optimisticRouteShell:!1,prepareSnapshot:Gd}:{...ae,cacheForNavigation:!1,optimisticRouteShell:!0})})().catch(e=>{console.error(`[vinext] RSC prefetch setup error:`,e)}).finally(()=>{pd.delete(c)})}};{let e=_();e&&!e.patchInstalled&&(e.patchInstalled=!0,e.originalPushState=window.history.pushState.bind(window.history),e.originalReplaceState=window.history.replaceState.bind(window.history),window.addEventListener(`popstate`,()=>{vf()}),window.addEventListener(`popstate`,e=>{gn()||(Ct(),mf(e.state))}),window.history.pushState=function(t,n,r){if(of(e,`pushState`,t,n,r))return;if(e.routerHistoryWriteDepth===0&&S()?.functions.flushCommittingNavigationUrl?.(),Wi(t)){let i=window.history.state;e.originalPushState.call(window.history,t,n,r),S()?.functions.commitAppOwnedHistoryStateWrite?.(`push`,i);return}let i=window.history.state;e.originalPushState.call(window.history,Vi(t,window.history.state),n,r),S()?.functions.claimCurrentHistoryTreeSnapshot?.(`push`,i),e.suppressUrlNotifyCount===0&&(gf(),r&&S()?.functions.discardPendingNavigation?.(),Ct())},window.history.replaceState=function(t,n,r){if(of(e,`replaceState`,t,n,r))return;if(e.routerHistoryWriteDepth===0&&S()?.functions.flushCommittingNavigationUrl?.(),Wi(t)){let i=window.history.state;e.originalReplaceState.call(window.history,t,n,r),S()?.functions.commitAppOwnedHistoryStateWrite?.(`replace`,i);return}let i=window.history.state;e.originalReplaceState.call(window.history,Vi(t,window.history.state),n,r),S()?.functions.claimCurrentHistoryTreeSnapshot?.(`replace`,i),e.suppressUrlNotifyCount===0&&(gf(),r&&S()?.functions.discardPendingNavigation?.(),Ct())})}var J=i(),kf=t(r(),1),Af=a.createContext(null),jf=`__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE`,Mf=[`bottom`,`height`,`left`,`right`,`top`,`width`,`x`,`y`];function Nf(){let e=Reflect.get(kf,jf);if(typeof e!=`object`||!e)return null;let t=Reflect.get(e,`findDOMNode`);return typeof t==`function`?t:null}function Pf(e){let t=Nf();if(!t)return null;let n=t(e);return n instanceof Element||n instanceof Text?n:null}function Ff(e){let t=getComputedStyle(e).position;if(t===`fixed`||t===`sticky`)return!0;let n=e.getBoundingClientRect();return Mf.every(e=>n[e]===0)}function If(e,t){let n=e.getClientRects();if(n.length===0)return!1;let r=1/0;for(let e of n)e.top=0&&r<=t}function Lf(e){let t=ql(e.startsWith(`#`)?e.slice(1):e);return t===`top`?document.body:document.getElementById(t)??document.getElementsByName(t)[0]??null}function Rf(e){let t=e.ownerDocument?.head;return t!=null&&t.contains(e)}function zf(e){if(!(e instanceof Element)||Rf(e))return null;let t=e;for(;!(t instanceof HTMLElement)||Ff(t);){if(t.nextElementSibling===null)return null;t=t.nextElementSibling}return{kind:`element`,element:t}}function Bf(e,t){if(t!==null){e.scrollIntoView({behavior:`auto`});return}let n=document.documentElement,r=n.clientHeight;If(e,r)||(n.scrollTop=0,If(e,r)||e.scrollIntoView({behavior:`auto`,block:`start`,inline:`nearest`}))}var Vf=class extends a.Component{scheduledCommitId=null;schedulePotentialScroll=()=>{let e=this.props.commitId;this.scheduledCommitId=e,queueMicrotask(()=>{this.scheduledCommitId===e&&this.handlePotentialScroll()})};handlePotentialScroll=()=>{let e=eu();if(e===null||this.props.commitId===null||e.commitId!==this.props.commitId)return;let t;if(t=e.hash===null?null:Lf(e.hash),t===null){t=Pf(this);let n=t instanceof Element?t:t?.parentElement;if(t!==null&&n!=null&&Rf(t)&&!e.headElements?.has(n)){ru(e,this.props.commitId);return}}let n=zf(t);if(n===null)return;let r=n.element,i=iu(e,this.props.commitId);i!==null&&(Kl(()=>{Bf(r,i.hash)}),r.focus())};componentDidMount(){this.schedulePotentialScroll()}componentDidUpdate(){this.schedulePotentialScroll()}componentWillUnmount(){this.scheduledCommitId=null}render(){return this.props.children}};function Hf({children:e,commitId:t}){return(0,J.jsx)(Af.Provider,{value:t,children:e})}function Uf({children:e}){let t=a.useContext(Af);return(0,J.jsx)(Vf,{commitId:t,children:e})}var Wf=Object.freeze({}),Gf=a.createContext(Wf),Kf=a.createContext(null),qf=a.createContext(null),Jf=a.createContext(void 0),Yf=new WeakMap;function Xf(e,t){for(let n of Object.values(e))typeof n==`object`&&n&&Yf.set(n,t)}function Zf(e,t){for(let n of Object.values(e))typeof n==`object`&&n&&!Yf.has(n)&&Yf.set(n,t)}function Qf(e){if(typeof e!=`object`||!e)return;let t=Yf.get(e);return typeof t==`object`?t.renderedSearch??t.search:t}var $f=Le(),Y=Re(),ep=Object.freeze({}),tp=3,np=1,rp=new Map;function ip(e){return ap(rp,e)}function ap(e,t){for(let n of e.values())if(n.keys.includes(t)||n.hiddenKeys.includes(t)||ap(n.activeReports,t))return!0;return!1}var op=a.createContext(rp);function sp(e,t){for(let n of e.values()){for(let e of n.keys)t.add(e);for(let e of n.hiddenKeys)t.add(e);sp(n.activeReports,t)}}var cp=a.createContext(ep);function lp(){return!1}function up(){return lp()?tp:np}function dp(e){return Number.isFinite(e)?Math.max(1,Math.trunc(e)):1}function fp(e,t,n=up()){let r=dp(n),i=[t];for(let n of e){if(i.length>=r)break;n!==t&&i.push(n)}return i}function pp(e,t){let n=new Set(t);for(let t of e.keys())n.has(t)||e.delete(t)}function mp(e,t){if(e.length!==t.length)return!1;for(let n=0;ni.get(e)).filter(e=>e!==void 0),order:a,snapshots:i}}function gp(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:`schemaVersion`in e&&`appElementsSchemaVersion`in e&&`rscPayloadSchemaVersion`in e&&`graphVersion`in e&&`deploymentVersion`in e&&`rootBoundaryId`in e&&`renderEpoch`in e}function _p(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:`ownerLayoutId`in e&&`slotId`in e&&`state`in e}function vp(e){return Array.isArray(e)&&e.length>0&&e.every(_p)}function yp(e,t){return e===`__skippedLayoutIds`&&Array.isArray(t)&&t.every(e=>typeof e==`string`)}function bp(e,t){return e!==`__bfcacheSegmentIdentities`||typeof t!=`object`||!t||Array.isArray(t)?!1:Object.entries(t).every(([e,t])=>{let n=k.parseElementKey(e);return n!==null&&n.kind!==`route`&&typeof t==`string`})}function xp(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:`sourceMatchedUrl`in e&&typeof e.sourceMatchedUrl==`string`&&`sourceRouteId`in e&&typeof e.sourceRouteId==`string`&&`slotId`in e&&typeof e.slotId==`string`&&`targetMatchedUrl`in e&&typeof e.targetMatchedUrl==`string`&&`targetRouteId`in e&&typeof e.targetRouteId==`string`}function Sp(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:`kind`in e&&e.kind===`runtime-cache-entry`&&`decision`in e}function Cp(e,t){return bp(e,t)||gp(t)||Sp(t)||xp(t)||yp(e,t)||vp(t)}function wp({entry:e,fallbackElements:t,fallbackSegmentId:n,fallbackStateKeyMap:r,retainedKeysReports:i,SegmentContext:a}){return(0,J.jsx)(cp.Provider,{value:e.stateKeyMap??r,children:(0,J.jsx)(Gf.Provider,{value:e.elements??t,children:(0,J.jsx)(a.Provider,{value:e.segmentId??n,children:(0,J.jsx)(op.Provider,{value:i,children:e.content})})})})}function Tp(e,t){let n=a.useRef(new Map),[r,i]=a.useState(()=>[t.stateKey]),[o]=a.useState(()=>new Map),s=e=>{let t=o.get(e);return t||(t=new Map,o.set(e,t)),t},c=n.current,l=hp(c,r,t);for(let[e,n]of l.entries.entries()){if(n.stateKey===t.stateKey||n.retainedKeys)continue;let r=new Set([n.stateKey]);sp(s(n.stateKey),r);let i={...n,retainedKeys:[...r]};l.entries[e]=i,l.snapshots.set(n.stateKey,i)}let u=l.order,d=!mp(r,u);a.useLayoutEffect(()=>{n.current=l.snapshots;for(let e of o.keys())l.snapshots.has(e)||o.delete(e)},[o,l.snapshots]);let f=[...new Set(l.entries.flatMap(e=>e.retainedKeys??[]))],p=a.useContext(op),m={activeReports:s(t.stateKey),hiddenKeys:f,keys:l.entries.map(e=>e.stateKey)};return a.useLayoutEffect(()=>{p.set(e,m)}),d&&i(u),{entries:l.entries,getRetainedKeysReports:s}}function Ep({activeStateKey:e,content:t,elements:n,id:r,SegmentContext:i,stateKeyMap:o}){let{entries:s,getRetainedKeysReports:c}=Tp(r,{content:t,elements:n,segmentId:r,stateKey:e,stateKeyMap:o});return(0,J.jsx)(J.Fragment,{children:s.map(t=>(0,J.jsx)(a.Activity,{mode:t.stateKey===e?`visible`:`hidden`,children:(0,J.jsx)(wp,{entry:t,fallbackElements:n,fallbackSegmentId:r,fallbackStateKeyMap:o,retainedKeysReports:c(t.stateKey),SegmentContext:i})},t.stateKey))})}function Dp({children:e,id:t,stateKey:n}){let r=a.useContext(Gf),i=a.useContext(cp),o=jp(t,i,a.useContext($f));return!Y||o===void 0?(0,J.jsx)(a.Fragment,{children:e},n):lp()?(0,J.jsx)(Ep,{activeStateKey:o,content:e,elements:r,id:t,SegmentContext:Y,stateKeyMap:i}):(0,J.jsx)(Y.Provider,{value:t,children:e},o)}function Op({children:e,id:t,stateKey:n}){return!$f||!Y||!lp()?(0,J.jsx)(J.Fragment,{children:e}):(0,J.jsx)(kp,{id:t,IdMapContext:$f,SegmentContext:Y,stateKey:n,children:e})}function kp({children:e,id:t,IdMapContext:n,SegmentContext:r,stateKey:i}){let o=a.useContext(Gf),s=a.useContext(cp),c=a.useContext(n),l=a.useContext(r),u=ei(o),d=i===void 0?t===void 0?void 0:jp(t,s,c):u?.(i)??i;return l===null||d===void 0?(0,J.jsx)(J.Fragment,{children:e}):(0,J.jsx)(Ep,{activeStateKey:d,content:e,elements:o,id:l,SegmentContext:r,stateKeyMap:s})}function Ap(e,t){let n=k.parseElementKey(e);return n!==null&&n.kind!==`route`?t:void 0}function jp(e,t,n){return t[e]??n?.[e]}function Mp({content:e,id:t}){let n=Y,r=a.useContext(Gf),i=a.useContext(cp),o=jp(t,i,a.useContext($f));return n?o===void 0?(0,J.jsx)(n.Provider,{value:t,children:e}):lp()?(0,J.jsx)(Ep,{activeStateKey:o,content:e,elements:r,id:t,SegmentContext:n,stateKeyMap:i}):(0,J.jsx)(n.Provider,{value:t,children:e},Ap(t,o)):(0,J.jsx)(J.Fragment,{children:e})}function Np(e,t,n={}){let r=typeof n==`boolean`?n:n.clearAbsentSlots??!1,i=typeof n==`boolean`?!n:n.preserveAbsentSlots??!0,a=typeof n==`boolean`?[]:n.preserveElementIds??[],o=typeof n==`boolean`?[]:n.preserveElementSeedIds??[],s=typeof n==`boolean`?[]:n.preservePreviousSlotIds??[],c={...t},l=new Set;for(let t of a)if(Object.hasOwn(e,t)){let n=e[t];n!==void 0&&(c[t]=n,l.add(t))}for(let t of o){if(l.has(t)||!Object.hasOwn(e,t))continue;let n=e[t];n!==void 0&&(c[t]=n)}let u=new Set([...Object.keys(e),...Object.keys(t)].filter(e=>k.isSlotId(e)&&!_i(e)));if(r)for(let e of u)Object.hasOwn(t,e)||delete c[e];else if(i){for(let t of u)if(!Object.hasOwn(c,t)&&Object.hasOwn(e,t)){let n=e[t];n!==void 0&&(c[t]=n,l.add(t))}}for(let t of s){if(!k.isSlotId(t)||!Object.hasOwn(e,t))continue;let n=e[t];if(n!==void 0&&n!==fr){c[t]=n,l.add(t);for(let n of Object.keys(e)){if(!vi(n,t))continue;let r=e[n];r!==void 0&&(c[n]=r),l.add(n)}}}if(l.size>0){let n=e[D],r=t[D],i=bp(D,n),a=bp(D,r),o=i?{...n}:{},s=a?{...r}:{},u=new Set([...Object.keys(o),...Object.keys(s)]),d=new Set(l);for(let e of d)for(let t of u)vi(t,e)&&l.add(t);for(let e of l){let t=o[e];t===void 0?delete s[e]:s[e]=t}(i||a)&&(c[D]=s)}return c}function Pp({id:e,children:t,parallelSlots:n}){let r=a.useContext(Gf);if(!Object.hasOwn(r,e))return null;let i=r[e];if(Cp(e,i)||(i===fr&&fe(),i===null))return null;let o=(0,J.jsx)(Jf.Provider,{value:Qf(i),children:(0,J.jsx)(qf.Provider,{value:n??null,children:(0,J.jsx)(Kf.Provider,{value:t??null,children:i})})});return $f&&Y?(0,J.jsx)(Mp,{id:e,content:o}):o}function Fp(){return a.useContext(Kf)}function Ip({name:e}){return a.useContext(qf)?.[e]??null}var Lp=Symbol.for(`vinext.clientNavigationState`),Rp=Symbol.for(`vinext.clientNavigationRenderContext`),zp=``,Bp=!1;function Vp(){return globalThis[Lp]}function Hp(){return Vp()?.cachedPathname??p(window.location.pathname,zp)}function Up(){return Ge()?.pathname??`/`}function Wp(e){let t=Vp();return t?(t.listeners.add(e),()=>t.listeners.delete(e)):()=>{}}function Gp(){let e=globalThis;return e[Rp]??=a.createContext(null)}function Kp(){let e=a.useContext(Gp()),t=a.useSyncExternalStore(Wp,Hp,Up);return e&&(Vp()?.navigationSnapshotActiveCount??0)>0?e.pathname:t}function qp(){if(!Te||typeof a.useContext!=`function`)throw Error(`invariant expected app router to be mounted`);let e=a.useContext(Te);if(e===null)throw Error(`invariant expected app router to be mounted`);return e}function Jp(e){try{let t=new URL(window.location.href),n=new URL(Rs(As(e,zp)??e,t.href,zp,Bp),t.href);return n.hash===t.hash&&n.origin===t.origin&&n.pathname===t.pathname&&n.search===t.search}catch{return!1}}var X={container:{fontFamily:`system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"`,height:`100vh`,display:`flex`,alignItems:`center`,justifyContent:`center`},card:{marginTop:`-32px`,maxWidth:`325px`,padding:`32px 28px`,textAlign:`left`},icon:{marginBottom:`24px`},title:{fontSize:`24px`,fontWeight:500,letterSpacing:`-0.02em`,lineHeight:`32px`,margin:`0 0 12px 0`,color:`var(--next-error-title)`},message:{fontSize:`14px`,fontWeight:400,lineHeight:`21px`,margin:`0 0 20px 0`,color:`var(--next-error-message)`},form:{margin:0},buttonGroup:{display:`flex`,gap:`8px`,alignItems:`center`},button:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,height:`32px`,padding:`0 12px`,fontSize:`14px`,fontWeight:500,lineHeight:`20px`,borderRadius:`6px`,cursor:`pointer`,color:`var(--next-error-btn-text)`,background:`var(--next-error-btn-bg)`,border:`var(--next-error-btn-border)`},buttonSecondary:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,height:`32px`,padding:`0 12px`,fontSize:`14px`,fontWeight:500,lineHeight:`20px`,borderRadius:`6px`,cursor:`pointer`,color:`var(--next-error-btn-secondary-text)`,background:`var(--next-error-btn-secondary-bg)`,border:`var(--next-error-btn-secondary-border)`},digestFooter:{position:`fixed`,bottom:`32px`,left:`0`,right:`0`,textAlign:`center`,fontFamily:`ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace`,fontSize:`12px`,lineHeight:`18px`,fontWeight:400,margin:`0`,color:`var(--next-error-digest)`}},Yp=` :root { --next-error-bg: #fff; --next-error-text: #171717; --next-error-title: #171717; --next-error-message: #171717; --next-error-digest: #666666; --next-error-btn-text: #fff; --next-error-btn-bg: #171717; --next-error-btn-border: none; --next-error-btn-secondary-text: #171717; --next-error-btn-secondary-bg: transparent; --next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08); } @media (prefers-color-scheme: dark) { :root { --next-error-bg: #0a0a0a; --next-error-text: #ededed; --next-error-title: #ededed; --next-error-message: #ededed; --next-error-digest: #a0a0a0; --next-error-btn-text: #0a0a0a; --next-error-btn-bg: #ededed; --next-error-btn-border: none; --next-error-btn-secondary-text: #ededed; --next-error-btn-secondary-bg: transparent; --next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14); } } body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); } `.replace(/\n\s*/g,``);function Xp(){return(0,J.jsx)(`svg`,{width:`32`,height:`32`,viewBox:`-0.2 -1.5 32 32`,fill:`none`,style:X.icon,children:(0,J.jsx)(`path`,{d:`M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z`,fill:`var(--next-error-title)`})})}function Zp(){window.history.length>1?window.history.back():window.location.href=`/`}function Qp({error:e}){let t=e?.digest,n=!!t,r=n?`A server error occurred. Reload to try again.`:`Reload to try again, or go back.`;return(0,J.jsxs)(`html`,{id:`__next_error__`,children:[(0,J.jsx)(`head`,{children:(0,J.jsx)(`style`,{dangerouslySetInnerHTML:{__html:Yp}})}),(0,J.jsxs)(`body`,{children:[(0,J.jsx)(`div`,{style:X.container,children:(0,J.jsxs)(`div`,{style:X.card,children:[(0,J.jsx)(Xp,{}),(0,J.jsx)(`h1`,{style:X.title,children:`This page couldn’t load`}),(0,J.jsx)(`p`,{style:X.message,children:r}),(0,J.jsxs)(`div`,{style:X.buttonGroup,children:[(0,J.jsx)(`form`,{style:X.form,children:(0,J.jsx)(`button`,{type:`submit`,style:X.button,children:`Reload`})}),!n&&(0,J.jsx)(`button`,{type:`button`,style:X.buttonSecondary,onClick:Zp,children:`Back`})]})]})}),t&&(0,J.jsxs)(`p`,{style:X.digestFooter,children:[`ERROR `,t]})]})]})}var $p=`vinext:dev-error-recovery`;function em(e){return!e||typeof e!=`object`||!(`digest`in e)?null:String(e.digest)}function tm(e){let t=em(e);return t===null?!1:t===`NEXT_NOT_FOUND`||t.startsWith(`NEXT_HTTP_ERROR_FALLBACK;`)||t.startsWith(`NEXT_REDIRECT;`)}var nm=Symbol.for(`vinext.caughtNotFoundBoundariesContext`),rm=`__VINEXT_CAUGHT_NOT_FOUND__`;function im(){if(typeof a.createContext!=`function`)return null;let e=globalThis;return e[nm]??=a.createContext(null),e[nm]}var am=im();function om(e){return a.useContext(am),e!==void 0&&globalThis[rm]?.includes(e)===!0}function sm(e){if(e===void 0)return;let t=globalThis[rm],n=t?.indexOf(e)??-1;n!==-1&&t.splice(n,1)}function cm({fallback:e,error:t}){let n=Object.assign(Error(t.message),{digest:t.digest,name:t.name??`Error`,stack:t.stack});return(0,J.jsx)(e,{error:n,reset:()=>globalThis.location?.reload()})}function lm(e){return e==null||e===``?null:e}function Z(e){return{previousPathname:e.pathname,previousResetKey:lm(e.resetKey)}}function um(e,t){return e.previousPathname!==t.previousPathname||lm(e.previousResetKey)!==lm(t.previousResetKey)}function dm(e){window.addEventListener($p,e)}function fm(e){window.removeEventListener($p,e)}function pm({redirect:e,redirectType:t,reset:n,stopsSelfRedirect:r}){let i=qp();return a.useEffect(()=>{r&&Jp(e)?console.error(`[vinext] redirect() resolved to the current URL — not following it, to prevent an infinite loop.`):a.startTransition(()=>{t===`push`?i.push(e):i.replace(e),n()})},[e,t,n,i,r]),null}var mm=class extends a.Component{constructor(e){super(e),this.state={redirect:null,redirectType:null,previousResetKey:lm(e.resetKey)}}static getDerivedStateFromProps(e,t){let n=lm(e.resetKey);return n===t.previousResetKey?null:{redirect:null,redirectType:null,previousResetKey:n}}static getDerivedStateFromError(e){if(he(e)){if(`handled`in e&&e.handled)return{redirect:null,redirectType:null};let t=ge(e.digest);if(!t)throw e;return{redirect:t.url,redirectType:t.type}}throw e}render(){let{redirect:e,redirectType:t}=this.state;return e!==null&&t!==null?(0,J.jsx)(pm,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null,redirectType:null}),stopsSelfRedirect:this.props.resetKey!==void 0}):this.props.children}};function hm({children:e,resetKey:t}){return(0,J.jsx)(mm,{resetKey:t,children:e})}var gm=class extends a.Component{constructor(e){super(e),this.state={error:null,...Z(e)}}static getDerivedStateFromProps(e,t){let n=Z(e);return t.error&&Mn(t.error.thrownValue)||t.error&&um(n,t)?{error:null,...n}:{error:t.error,...n}}static getDerivedStateFromError(e){if(tm(e))throw e;return{error:{thrownValue:e}}}handleDevErrorRecovery=()=>{this.state.error&&this.setState({error:null,...Z(this.props)})};componentDidMount(){dm(this.handleDevErrorRecovery)}componentWillUnmount(){fm(this.handleDevErrorRecovery)}reset=()=>{this.setState({error:null})};render(){if(this.state.error){let e=this.props.fallback;return(0,J.jsx)(e,{error:this.state.error.thrownValue,reset:this.reset})}return this.props.children}};function _m({fallback:e,children:t,isGlobalErrorBoundary:n,resetKey:r}){let i=Kp();return(0,J.jsx)(gm,{pathname:i,resetKey:r,fallback:e,isGlobalErrorBoundary:n,children:t})}function vm({fallback:e,children:t,wrapsGlobalErrorBoundary:n}){let r=Kp();return(0,J.jsx)(gm,{pathname:r,fallback:e,isImplicitRootErrorBoundary:e===Qp,wrapsGlobalErrorBoundary:n,children:t})}var ym=class extends a.Component{constructor(e){super(e),this.state={notFound:e.initiallyNotFound===!0,...Z(e)}}componentDidMount(){this.props.initiallyNotFound===!0&&sm(this.props.caughtId)}static getDerivedStateFromProps(e,t){let n=Z(e);return t.notFound&&um(n,t)?{notFound:!1,...n}:{notFound:t.notFound,...n}}static getDerivedStateFromError(e){if(e&&typeof e==`object`&&`digest`in e){let t=String(e.digest);if(t===`NEXT_NOT_FOUND`||t===`NEXT_HTTP_ERROR_FALLBACK;404`)return{notFound:!0}}throw e}render(){return this.state.notFound?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`meta`,{name:`robots`,content:`noindex`}),this.props.fallback]}):this.props.children}};function bm({status:e}){e===403&&pe(),e===401&&me(),fe()}function xm({fallback:e,children:t,resetKey:n,caughtId:r}){let i=Kp(),a=om(r);return(0,J.jsx)(ym,{pathname:i,resetKey:n,fallback:e,caughtId:r,initiallyNotFound:a,children:t})}var Sm=class extends a.Component{constructor(e){super(e),this.state={forbidden:!1,...Z(e)}}static getDerivedStateFromProps(e,t){let n=Z(e);return t.forbidden&&um(n,t)?{forbidden:!1,...n}:{forbidden:t.forbidden,...n}}static getDerivedStateFromError(e){if(e&&typeof e==`object`&&`digest`in e&&String(e.digest)===`NEXT_HTTP_ERROR_FALLBACK;403`)return{forbidden:!0};throw e}render(){return this.state.forbidden?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`meta`,{name:`robots`,content:`noindex`}),this.props.fallback]}):this.props.children}};function Cm({fallback:e,children:t,resetKey:n}){let r=Kp();return(0,J.jsx)(Sm,{pathname:r,resetKey:n,fallback:e,children:t})}var wm=class extends a.Component{constructor(e){super(e),this.state={unauthorized:!1,...Z(e)}}static getDerivedStateFromProps(e,t){let n=Z(e);return t.unauthorized&&um(n,t)?{unauthorized:!1,...n}:{unauthorized:t.unauthorized,...n}}static getDerivedStateFromError(e){if(e&&typeof e==`object`&&`digest`in e&&String(e.digest)===`NEXT_HTTP_ERROR_FALLBACK;401`)return{unauthorized:!0};throw e}render(){return this.state.unauthorized?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`meta`,{name:`robots`,content:`noindex`}),this.props.fallback]}):this.props.children}};function Tm({fallback:e,children:t,resetKey:n}){let r=Kp();return(0,J.jsx)(wm,{pathname:r,resetKey:n,fallback:e,children:t})}a.Component;var Em={module:`m`,preload:`p`},Dm=new Map;function Q(e,t){Dm.set(e,t)}var Om=new Proxy({},{get(e,t){if(typeof t==`string`&&t!==`then`)return async()=>{let e=Dm.get(t);if(!e)throw Error(`client reference not found '${t}'`);return e}}});function km(e,t){for(let n of document.getElementsByTagName(`link`))if(n.href===e&&(!t||n.rel===`stylesheet`))return!0;return!1}function Am(e,t){let n=new URL(e,document.baseURI).href;if(km(n,t))return null;let r=document.createElement(`link`);r.rel=t?`stylesheet`:`modulepreload`,t||(r.as=`script`),r.crossOrigin=``,r.href=n;let i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);return a&&r.setAttribute(`nonce`,a),document.head.appendChild(r),r}var jm=new Map;function Mm(e){let t=new URL(e,document.baseURI).href,n=jm.get(t);if(n)return n;let r=Am(e,!0);return n=r?new Promise(t=>{r.addEventListener(`load`,()=>t()),r.addEventListener(`error`,()=>{let n=new Event(`vite:preloadError`,{cancelable:!0});n.payload=Error(`Unable to preload CSS for ${e}`),window.dispatchEvent(n),t()})}):Promise.resolve(),jm.set(t,n),n}function Nm(e){let t=e.slice(1);switch(e[0]){case Em.module:{let[e,...n]=t.split(` `);return Promise.all(n.map(Mm)).then(()=>import(e))}case Em.preload:return Am(t,!1),Promise.resolve();default:return Promise.reject(Error(`[vinext] Unknown client reference chunk '${e}'`))}}globalThis.__webpack_chunk_load__=Nm;function Pm(e){let t=Object.create(null);return e?.forEach((e,n)=>{let r=t[n];Array.isArray(r)?t[n]=[...r,e]:r===void 0?t[n]=e:t[n]=[r,e]}),t}function Fm(e){return typeof e==`string`?e:typeof e==`number`&&!isNaN(e)||typeof e==`boolean`?String(e):``}function Im(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,Fm(e));else t.set(n,Fm(r));return t}function Lm(e,t){let n=e.indexOf(`?`);if(n===-1)return t;let r=e.slice(n+1).split(`#`)[0];if(!r)return t;let i=t.indexOf(`#`),a=i===-1?t:t.slice(0,i),o=i===-1?``:t.slice(i),s=a.indexOf(`?`),c=s===-1?a:a.slice(0,s),l=s===-1?``:a.slice(s+1),u=new URLSearchParams(r),d=new URLSearchParams(l),f=new Set;for(let e of d.keys())f.add(e);for(let e of f)u.delete(e);for(let[e,t]of d)u.append(e,t);let p=u.toString();return`${c}${p?`?${p}`:``}${o}`}var Rm=new Set([`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toString`,`valueOf`,`toLocaleString`,`then`,`catch`,`finally`,`status`,`value`,`error`,`displayName`,`_debugInfo`,`toJSON`,`$$typeof`,`__esModule`,`@@iterator`]);function zm(e){return Rm.has(e)}function Bm(e){return e===`hasOwnProperty`||e===`propertyIsEnumerable`}function Vm(){return!1}function Hm(e){let t={...Pm(e)},n=Promise.resolve(t),r=e=>typeof e==`string`&&!zm(e)&&Object.hasOwn(t,e);return new Proxy(n,{get(e,n,i){if(r(n))return t[n];let a=Reflect.get(e,n);return typeof a==`function`?a.bind(Bm(n)?i:e):a},getOwnPropertyDescriptor(e,n){return r(n)?{configurable:!0,enumerable:!0,value:t[n],writable:!0}:Reflect.getOwnPropertyDescriptor(e,n)},has(e,t){return r(t)||Reflect.has(e,t)},ownKeys(){return Object.keys(t).filter(e=>!zm(e))}})}var Um=new WeakMap;function Wm(e,t){let n=Um.get(e);if(n)return n;let r=null;if(!t){let e=ft(),t=e?(0,a.use)(e):null;r=(0,a.use)(Jf)??(t?t.renderedSearch??t.search:window.location.search)}let i=Hm(r===null?null:new URLSearchParams(r));return Um.set(e,i),i}function Gm(e){let t=St();return(0,a.useMemo)(()=>Hm(e?null:t),[e,t])}function Km({Component:e,pageProps:t,emptySearchParams:n}){let r;return r=Vm()?Gm(n===!0):Wm(t,n===!0),(0,a.useMemo)(()=>(0,a.createElement)(e,{...t,searchParams:r}),[e,t,r])}var qm=`data-vinext-streamed-icon`;function Jm(e,t){let n=e.getAttribute(qm),r=`${t}:`;if(!n?.startsWith(r))return null;let i=Number(n.slice(r.length));return Number.isInteger(i)&&i>=0?i:null}function Ym(e){document.querySelectorAll(`body link[${qm}]`).forEach(e=>document.head.appendChild(e));let t=[...document.querySelectorAll(`head link[${qm}]`)],n=new Map;for(let r of t){let t=Jm(r,e);if(t===null){r.remove();continue}let i=n.get(t);i&&i.remove(),n.set(t,r)}for(let[,e]of[...n].sort(([e],[t])=>e-t))document.head.appendChild(e)}function Xm({metadataKey:e}){return(0,a.useLayoutEffect)(()=>Ym(e),[e]),null}Q(`5ac0c34bf6a1`,{get AppRouterScrollTarget(){return Uf}}),Q(`2f3e39b00223`,{get ClientPageRoot(){return Km}}),Q(`fa3f34eb82d2`,{get default(){return Qp}}),Q(`a54e148db4d5`,{get ErrorBoundary(){return _m},get ForbiddenBoundary(){return Cm},get GlobalErrorBoundary(){return vm},get HttpAccessFallbackPassthrough(){return bm},get NotFoundBoundary(){return xm},get RedirectBoundary(){return hm},get SerializedErrorBoundary(){return cm},get UnauthorizedBoundary(){return Tm}}),Q(`ef7b7d49b2c7`,{get BfcacheChildrenBoundary(){return Op},get BfcacheSegmentBoundary(){return Dp},get Children(){return Fp},get ParallelSlot(){return Ip},get Slot(){return Pp}}),Q(`c00582bc5f9b`,{get StreamedIconsInsertion(){return Xm}});function Zm(e){return e.nodeEnv===`production`&&e.prefetch!==!1&&!e.isDangerous}function Qm(e){return e.nodeEnv!==`production`||e.isDangerous?!1:e.routerMode===`pages`||e.prefetch!==!1}function $m(e){let{href:t,basePath:n,currentOrigin:r}=e;if(!Es(t))return t;if(r===void 0)return null;try{let e=new URL(r),i=t.startsWith(`//`)?new URL(t,e.origin):new URL(t);if(i.origin!==e.origin)return null;let a=Os(i.pathname);return n?f(a,n)?Os(p(a,n))+i.search+i.hash:null:a+i.search+i.hash}catch{return null}}var eh=e({canAutoPrefetchFullAppRoute:()=>ah,resolveAutoAppRoutePrefetch:()=>sh,resolveFullAppRoutePrefetch:()=>ch}),th=``,nh=El();function rh(e){let t;try{t=new URL(e,window.location.href)}catch{return null}return t.origin===window.location.origin?`${p(t.pathname,th)}${t.search}`:null}var ih={cacheForNavigation:!1,dynamicStaleTime:`verbatim`,fallbackTtl:`static`,prefetchShellFirst:!1,shouldPrefetch:!1};function ah(e){return sh(e).cacheForNavigation}function oh(e,t,n,r){if(n!==null&&t.intercepts){let i=Pt(r),a=Pt(n),o=t.intercepts.filter(e=>oi(i,e.targetPatternParts)!==null&&ci(a,e.sourcePatternParts));if(o.length>0)return o.some(e=>e.rendersDynamically===!0)||kl(n,e,nh)?.route.rendersDynamically===!0}return t.rendersDynamically===!0}function sh(e,t=null){let n=window.__VINEXT_LINK_PREFETCH_ROUTES__;if(!n)return ih;let r=rh(e);if(r===null)return ih;let i=Ol(r,n,nh);if(!i)return ih;let a=i.route,o=new URL(r,`http://vinext.local`),s=o.search!==``;a.patternParts.length===1&&a.patternParts[0]?.startsWith(`:`);let c=a.isDynamic&&!1,l=oh(n,a,t,o.pathname),u=!s&&!c&&!a.canPrefetchLoadingShell&&a.requiresDynamicNavigationRequest!==!0&&!l;return{cacheForNavigation:u,dynamicStaleTime:u?`learning-only`:`ignore`,fallbackTtl:`static`,prefetchShellFirst:s||!a.isDynamic,...l?{rendersDynamically:!0}:{},shouldPrefetch:!0}}function ch(){return{cacheForNavigation:!0,dynamicStaleTime:`full-prefetch`,fallbackTtl:`static`,prefetchShellFirst:!0,shouldPrefetch:!0}}var lh=Symbol.for(`vinext.routerContext`),uh=globalThis,dh=uh[lh]??(uh[lh]=(0,a.createContext)(null));function fh({basePath:e,domainLocales:t,hostname:n}){let r=window.__VINEXT_LOCALES__;return(r?.length?Nl(p(window.location.pathname,e),r):void 0)||(jl(t,n??void 0)?.defaultLocale??window.__VINEXT_LOCALE__??window.__VINEXT_DEFAULT_LOCALE__)}var $=null,ph=!1;function mh(e){$&&$!==e&&$(!1),$=e,ph=!0}function hh(e){$===e&&($=null)}function gh(){ph?ph=!1:$&&=($(!1),null)}function _h(){return window.__NEXT_DATA__?.page??window.location?.pathname??`/`}function vh(e,t){let n=e.match(/^[a-z][a-z0-9+.-]*:\/\//i)?.[0]??``,r=n?e.slice(n.length):e;if(!/(\/\/|\\)/.test(r.split(`?`,1)[0]??``))return e;console.error(`Invalid href '${e}' passed to next/router in page: '${t}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);let[i,...a]=r.split(`?`);return n+i.replace(/\\/g,`/`).replace(/\/\/+/g,`/`)+(a[0]?`?${a.join(`?`)}`:``)}function yh(e,t,n){let r=vh(e,t.pathname);if(Ts(r)){let e=Ds();if(!e)return r;try{let t=new URL(r,e);if(t.origin!==e||n!==``&&!f(t.pathname,n))return r}catch{return r}}try{let e=new URL(r.startsWith(`#`)||r.startsWith(`?`)?t.asPath:t.pathname,`http://n`),n=new URL(r,e);return n.origin===e.origin?n.href.slice(n.origin.length):n.href}catch{return r}}var bh=/https?|ftp|gopher|file/;function xh(e){let{auth:t,hostname:n}=e,r=e.protocol||``,i=e.pathname||``,a=e.hash||``,o=e.query||``,s=!1;t=t?`${encodeURIComponent(t).replace(/%3A/i,`:`)}@`:``,e.host?s=t+e.host:n&&(s=t+(n.includes(`:`)?`[${n}]`:n),e.port&&(s+=`:${e.port}`)),o&&typeof o==`object`&&(o=String(Im(o)));let c=e.search||o&&`?${o}`||``;return r&&!r.endsWith(`:`)&&(r+=`:`),e.slashes||(!r||bh.test(r))&&s!==!1?(s=`//${s||``}`,i&&!i.startsWith(`/`)&&(i=`/${i}`)):s||=``,a&&!a.startsWith(`#`)&&(a=`#${a}`),c&&!c.startsWith(`?`)&&(c=`?${c}`),i=i.replace(/[?#]/g,encodeURIComponent),c=c.replace(`#`,`%23`),`${r}${s}${i}${c}${a}`}function Sh(e){return xh(e)}var Ch=e({resolveAppPrefetchRscRequest:()=>wh});async function wh({fullHref:e,headers:t,rewrittenPrefetchHref:n}){let[r,...i]=await Promise.all([I(e,t),...n!==null&&n!==e?[I(n,t)]:[]]);return{additionalRscUrls:i,rscUrl:r}}export{Wd as $,S as $n,Ja as $t,Xf as A,si as An,he as Ar,Ys as At,Pd as B,lr as Bn,Do as Bt,Qp as C,ki as Cn,Le as Cr,Zc as Ct,Zf as D,vi as Dn,Te as Dr,nc as Dt,Pp as E,_i as En,Ke as Er,tc as Et,Du as F,ii as Fn,u as Fr,Rs as Ft,jd as G,jn as Gn,F as Gt,U as H,gr as Hn,To as Ht,Zd as I,$r as In,c as Ir,As as It,Xd as J,Dn as Jn,Xo as Jt,Nd as K,An as Kn,Ro as Kt,$d as L,D as Ln,Fs as Lt,Lu as M,Xr as Mn,m as Mr,Ks as Mt,H as N,ni as Nn,p as Nr,Es as Nt,ip as O,ui as On,ge as Or,z as Ot,Of as P,ri as Pn,s as Pr,Ns as Pt,Qu as Q,fn as Qn,Ua as Qt,zd as R,rr as Rn,Cs as Rt,tm as S,Oi as Sn,Et as Sr,fl as St,Gf as T,yi as Tn,Ge as Tr,R as Tt,rd as U,Yn as Un,es as Ut,nf as V,k as Vn,Oo as Vt,Md as W,Un as Wn,I as Wt,lf as X,Gt as Xn,So as Xt,cf as Y,On as Yn,xo as Yt,Xu as Z,mn as Zn,eo as Zt,Lm as _,Xi as _n,ht as _r,Vl as _t,yh as a,Yi as an,b as ar,gu as at,vm as b,Di as bn,_t as br,vl as bt,gh as c,Bi as cn,Nt as cr,hu as ct,dh as d,Ui as dn,jt as dr,$l as dt,to as en,Yt as er,uf as et,sh as f,Ji as fn,v as fr,iu as ft,$m as g,M as gn,mt as gr,Gl as gt,Zm as h,ea as hn,Ct as hr,Wl as ht,vh as i,Ri as in,Wt as ir,Eu as it,Hf as j,ai as jn,ee as jr,Gs as jt,Np as k,di as kn,ve as kr,ic as kt,mh as l,qi as ln,Ft as lr,Ql as lt,Qm as m,ta as mn,bt as mr,Yl as mt,xh as n,Ca as nn,un as nr,tf as nt,_h as o,Gi as on,Rt as or,bu as ot,ch as p,Qi as pn,ut as pr,Xl as pt,Vd as q,Nn as qn,P as qt,Sh as r,sa as rn,dn as rr,Ef as rt,hh as s,Vi as sn,Bt as sr,yu as st,Ch as t,no as tn,hn as tr,Fd as tt,fh as u,Ki as un,It as ur,nu as ut,Om as v,$i as vn,ft as vr,Ml as vt,cp as w,gi as wn,Ie as wr,cc as wt,hm as x,Ei as xn,yt as xr,_l as xt,Q as y,aa as yn,vt as yr,Fl as yt,Rd as z,nr as zn,fs as zt};