PageSourceSearch

https://hoplo.com/_next/static/chunks/vinext-L9bBLKqn.js

js hoplo.com collected 2026-10-05 19:15:05 UTC 133,189 bytes, 32 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_next/static/chunks/hybrid-client-route-owner-BQ9qwVcu.js","_next/static/chunks/query-DugiHe4Q.js"])))=>i.map(i=>d[i]);
2import{n as e,r as t}from"./rolldown-runtime-hePW80VL.js";import{i as n,n as r,r as i}from"./framework-A1pNZAzD.js";var a=t(n(),1);function o(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var s=Symbol.for(`vinext.navigationRuntime`),c=[`boundaries`,`defaults`,`interceptions`,`interceptionsBySlotId`,`layouts`,`pages`,`rootBoundaries`,`routeHandlers`,`routes`,`slotBindings`,`slots`,`templates`];function l(){return{bootstrap:{routeManifest:null,rsc:void 0},functions:{}}}function u(){return window}function d(e){return o(e)?m(Reflect.get(e,`clearNavigationCaches`))&&m(Reflect.get(e,`commitHashNavigation`))&&m(Reflect.get(e,`navigateExternal`))&&m(Reflect.get(e,`navigate`))&&m(Reflect.get(e,`getPrefetchRouterState`))&&m(Reflect.get(e,`notifyLinkNavigationStart`))&&m(Reflect.get(e,`pingVisibleLinks`))&&m(Reflect.get(e,`preparePrefetchResponse`))&&m(Reflect.get(e,`claimCurrentHistoryTreeSnapshot`))&&m(Reflect.get(e,`commitAppOwnedHistoryStateWrite`)):!1}function f(e){return typeof e==`string`||Array.isArray(e)&&e.length===2&&e[0]===3&&typeof e[1]==`string`}function ee(e){if(!o(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 te(e){return o(e)?Object.values(e).every(e=>typeof e==`string`||Array.isArray(e)&&e.every(e=>typeof e==`string`)):!1}function ne(e){if(!o(e))return!1;let t=Reflect.get(e,`done`),n=Reflect.get(e,`dynamicStaleTimeSeconds`),r=Reflect.get(e,`initialCacheKind`),i=Reflect.get(e,`searchParamsFromBrowser`),a=Reflect.get(e,`nav`),s=Reflect.get(e,`params`),c=Reflect.get(e,`rsc`),l=Reflect.get(e,`staleTimeSeconds`);return(t===void 0||typeof t==`boolean`)&&p(n)&&(r===void 0||r===`dynamic`||r===`static`)&&(i===void 0||typeof i==`boolean`)&&(a===void 0||ee(a))&&(s===void 0||te(s))&&Array.isArray(c)&&c.every(f)&&p(l)}function p(e){return e===void 0||typeof e==`number`&&Number.isFinite(e)&&e>=0}function re(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`)}function ie(e){return e===null||typeof e==`string`}function ae(e){return o(e)?typeof e.id==`string`&&typeof e.sourcePattern==`string`&&re(e.sourcePatternParts)&&typeof e.targetPattern==`string`&&re(e.targetPatternParts)&&typeof e.slotId==`string`&&ie(e.ownerLayoutId)&&ie(e.interceptingRouteId)&&ie(e.targetRouteId):!1}function oe(e){return Array.isArray(e)&&e.every(ae)}function se(e){if(!o(e))return!1;let t=Reflect.get(e,`graphVersion`),n=Reflect.get(e,`segmentGraph`);if(typeof t!=`string`||!o(n))return!1;let r=Reflect.get(n,`interceptions`),i=Reflect.get(n,`interceptionsBySlotId`);if(!c.every(e=>Reflect.get(n,e)instanceof Map)||!(r instanceof Map)||!(i instanceof Map))return!1;for(let e of r.values())if(!ae(e))return!1;for(let e of i.values())if(!oe(e))return!1;return!0}function ce(e){if(!o(e))return!1;let t=Reflect.get(e,`routeManifest`),n=Reflect.get(e,`rsc`);return(t===null||se(t))&&(n===void 0||ne(n))}function le(e){if(!o(e)||!(`bootstrap`in e)||!(`functions`in e))return!1;let{bootstrap:t,functions:n}=e;return ce(t)&&d(n)}function m(e){return e===void 0||typeof e==`function`}function h(){let e=u();if(e===null)return null;let t=Reflect.get(e,s);return le(t)?t:null}function ue(){let e=u();if(e===null)return l();let t=Reflect.get(e,s),n=le(t)?t:l();return Reflect.set(e,s,n),n}function de(e){let t=ue();return t.bootstrap={...t.bootstrap,...e},t}function fe(e){let t=ue();return t.functions={...t.functions,...e},t}function pe(){return me(ue())}function me(e){let t=e.bootstrap.rsc;if(t===void 0){let t={rsc:[]};return e.bootstrap.rsc=t,t}return t}function he(){return typeof h()?.functions.navigate==`function`}function ge(){return h()!==null}function _e(e,t,n,r){if(e===n)throw Error(`Conflicting app and page routes found for "${e}"`);
2if(!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;e<Math.min(i.length,a.length);e++){let t=o(i[e]),n=o(a[e]);if(t!==n)return t<n?`pages`:`app`}return i.length===a.length||i.length<a.length?`pages`:`app`}var ve=/([/#?\\]|%(2f|23|3f|5c))/gi;function ye(e){return e.replace(ve,e=>encodeURIComponent(e))}function be(e){try{return ye(decodeURIComponent(e))}catch{return e}}function xe(e){return e.split(`/`).map(e=>be(e)).join(`/`)}function g(e){return xe(e).split(`/`).filter(Boolean)}function Se(e){try{return decodeURIComponent(e)}catch{return e}}function Ce(e){let t=Object.create(null);for(let[n,r]of e)t[n]=r;return t}function we(e){for(let t of Object.keys(e)){let n=e[t];e[t]=Array.isArray(n)?n.map(Se):Se(n)}}function Te(e){return e.startsWith(`[...`)&&e.endsWith(`]`)&&e.length>5}function Ee(e){return e.startsWith(`[[...`)&&e.endsWith(`]]`)&&e.length>7}function De(e,t){return t?e===t||e.startsWith(t+`/`):!1}function _(e,t){return De(e,t)?e.slice(t.length)||`/`:e}function Oe(e,t){return!t||De(e,t)?e:e===`/`?t:`${t}${e}`}function ke(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 Ae=`x-vinext-mw-ctx`,je=`x-vinext-prerender-secret`,Me=`x-vinext-prerender-route-params`,Ne=`x-vinext-prerender-speculative`,Pe=`x-vinext-revalidate-host`,Fe=`x-middleware-override-headers`,Ie=`x-middleware-set-cookie`,Le=`x-middleware-skip`,Re=`x-middleware-`,ze=`Next-Router-State-Tree`,v=`Next-Router-Prefetch`,y=`Next-Router-Segment-Prefetch`,Be=`Next-Url`,Ve=`X-Vinext-Interception-Context`,He=`X-Vinext-Interception-Id`,b=`X-Vinext-Mounted-Slots`,x=`X-Vinext-Rsc-Render-Mode`,S=`X-Vinext-Rsc-State-Fingerprint`,Ue=[`RSC`,ze,v,y,Be,Ve,He,b,x,S].join(`, `),We=new Set(Ue.split(`,`).map(e=>e.trim().toLowerCase()));function Ge(e){return We.has(e.trim().toLowerCase())}var Ke=e({ACTION_FORWARDED_HEADER:()=>Tt,ACTION_REDIRECT_HEADER:()=>Dt,ACTION_REDIRECT_STATUS_HEADER:()=>kt,ACTION_REDIRECT_TYPE_HEADER:()=>Ot,ACTION_REVALIDATED_HEADER:()=>Et,FLIGHT_HEADERS:()=>Ft,INTERNAL_HEADERS:()=>It,MIDDLEWARE_HEADER_PREFIX:()=>Re,MIDDLEWARE_NEXT_HEADER:()=>At,MIDDLEWARE_REWRITE_HEADER:()=>jt,MIDDLEWARE_SET_COOKIE_HEADER:()=>Ie,MIDDLEWARE_SKIP_HEADER:()=>Le,NEXTJS_ACTION_NOT_FOUND_HEADER:()=>xt,NEXTJS_CACHE_HEADER:()=>Je,NEXTJS_DEPLOYMENT_ID_HEADER:()=>wt,NEXT_ACTION_HEADER:()=>bt,NEXT_CACHE_TAGS_HEADER:()=>Ye,NEXT_HTML_REQUEST_ID_HEADER:()=>Pt,NEXT_REQUEST_ID_HEADER:()=>Nt,NEXT_ROUTER_PREFETCH_HEADER:()=>v,NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:()=>y,NEXT_ROUTER_STALE_TIME_HEADER:()=>St,NEXT_ROUTER_STATE_TREE_HEADER:()=>ze,NEXT_URL_HEADER:()=>Be,RSC_ACTION_HEADER:()=>yt,RSC_HEADER:()=>`RSC`,VINEXT_CACHEABILITY_PROBE_HEADER:()=>Qe,VINEXT_CACHEABILITY_PROBE_QUERY_PARAM:()=>et,VINEXT_CACHEABILITY_PROBE_ROUTE_HEADER:()=>$e,VINEXT_CACHE_HEADER:()=>qe,VINEXT_CLIENT_REUSE_MANIFEST_HEADER:()=>gt,VINEXT_DYNAMIC_STALE_TIME_HEADER:()=>ut,VINEXT_EXPECTED_WORKER_VERSION_HEADER:()=>Ze,VINEXT_INTERCEPTION_CONTEXT_HEADER:()=>Ve,VINEXT_INTERCEPTION_ID_HEADER:()=>He,VINEXT_INTERNAL_HEADERS:()=>Lt,VINEXT_METADATA_ROUTE_CACHE_HEADER:()=>ht,VINEXT_MOUNTED_SLOTS_HEADER:()=>b,VINEXT_MW_CTX_HEADER:()=>Ae,VINEXT_PARAMS_HEADER:()=>lt,VINEXT_PRERENDER_CACHE_LIFE_HEADER:()=>pt,VINEXT_PRERENDER_METADATA_ROUTES_PATH:()=>rt,VINEXT_PRERENDER_PAGES_STATIC_PATHS_PATH:()=>nt,VINEXT_PRERENDER_READINESS_HEADER:()=>at,VINEXT_PRERENDER_READINESS_PATH:()=>it,VINEXT_PRERENDER_RENDER_ERROR_HEADER:()=>mt,VINEXT_PRERENDER_ROUTE_PARAMS_HEADER:()=>Me,VINEXT_PRERENDER_SECRET_HEADER:()=>je,VINEXT_PRERENDER_SPECULATIVE_HEADER:()=>Ne,VINEXT_PRERENDER_STATIC_PARAMS_PATH:()=>tt,VINEXT_RENDERED_PATH_AND_SEARCH_HEADER:()=>ft,VINEXT_REVALIDATED_CACHE_TAG_HEADER:()=>st,VINEXT_REVALIDATE_HEADER:()=>ot,VINEXT_REVALIDATE_HOST_HEADER:()=>Pe,VINEXT_RSC_COMPLETION_METADATA_HEADER:()=>dt,VINEXT_RSC_MARKER_HEADER:()=>ct,VINEXT_RSC_REDIRECT_HEADER:()=>_t,VINEXT_RSC_REDIRECT_TYPE_HEADER:()=>vt,VINEXT_RSC_RENDER_MODE_HEADER:()=>x,VINEXT_RSC_STATE_FINGERPRINT_HEADER:()=>S,VINEXT_RSC_VARY_HEADER:()=>Ue,VINEXT_STALE_TIME_PENDING_HEADER:()=>Ct,VINEXT_TIMING_HEADER:()=>Xe,isVinextRscVaryField:()=>Ge}),qe=`X-Vinext-Cache`,Je=`x-nextjs-cache`,Ye=`x-next-cache-tags`,Xe=`x-vinext-timing`,Ze=`X-Vinext-Expected-Worker-Version`,Qe=`X-Vinext-Cacheability-Probe`,$e=`X-Vinext-Cacheability-Probe-Route`,et=`__vinext_cacheability_probe`,tt=`/__vinext/prerender/static-params`,nt=`/__vinext/prerender/pages-static-paths`,rt=`/__vinext/prerender/metadata-routes`,it=`/__vinext/prerender/readiness`,at=`X-Vinext-Prerender-Readiness`,ot=`x-vinext-revalidate`,st=`x-vinext-revalidated-cache-tag`,ct=`x-vinext-rsc`,lt=`X-Vinext-Params`,ut=`X-Vinext-Dynamic-Stale-Time`,dt=`X-Vinext-Rsc-Completion-Metadata`,ft=`X-Vinext-Rendered-Path-And-Search`,pt=`x-vinext-prerender-cache-life`,mt=`x-vinext-prerender-render-error`,ht=`x-vinext-metadata-route-cache`,gt=`X-Vinext-Client-Reuse-Manifest`,_t=`X-Vinext-Rsc-Redirect`,vt=`X-Vinext-Rsc-Redirect-Type`,yt=`x-rsc-action`,bt=`next-action`,xt=`x-nextjs-action-not-found`,St=`x-nextjs-stale-time`,Ct=`X-Vinext-Stale-Time-Pending`,wt=`x-nextjs-deployment-id`,Tt=`x-action-forwarded`,Et=`x-action-revalidated`,Dt=`x-action-redirect`,Ot=`x-action-redirect-type`,kt=`x-action-redirect-status`,At=`x-middleware-next`,jt=`x-middleware-rewrite`,Mt=`x-middleware-redirect`,Nt=`x-nextjs-request-id`,Pt=`x-nextjs-html-request-id`,Ft=[`rsc`,`next-router-state-tree`,`next-router-prefetch`,`next-hmr-refresh`,`next-router-segment-prefetch`,`x-vinext-rsc-state-fingerprint`],It=[jt,Mt,Ie,Le,Fe,At,`x-now-route-matches`,`x-matched-path`,`x-nextjs-data`,`x-next-resume-state-length`,Tt],Lt=[Qe.toLowerCase(),$e.toLowerCase(),Ze.toLowerCase(),Me,Ne,pt,Pe,st];function Rt(e){return e.startsWith(`/`)&&!e.startsWith(`//`)&&!e.includes(`?`)&&!e.includes(`#`)&&!e.includes(`\\`)&&!e.includes(`\0`)}function zt(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 Bt=(e,t)=>
2e<t?-1:+(e>t);function Vt(e,t){return`slot:${e}:${t}`}function Ht(e){if(!e.startsWith(`slot:`))return!1;let t=e.slice(5),n=t.indexOf(`:`);return n>0&&t.charCodeAt(n+1)===47}function Ut(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 Wt(e){return e.startsWith(`/`)?e:null}function C(e){if(e.startsWith(`route:`)){let t=Ut(e.slice(6));return t?{interceptionContext:t.interceptionContext,kind:`route`,path:t.path}:null}if(e.startsWith(`page:`)){let t=Ut(e.slice(5));return t?{interceptionContext:t.interceptionContext,kind:`page`,path:t.path}:null}if(e.startsWith(`layout:`)){let t=Wt(e.slice(7));return t?{kind:`layout`,treePath:t}:null}if(e.startsWith(`template:`)){let t=Wt(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=Wt(t.slice(n+1));return r?{kind:`slot`,name:t.slice(0,n),treePath:r}:null}return null}function Gt(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=t*16777619>>>0;let n=84696351;for(let t=0;t<e.length;t++)n^=e.charCodeAt(t),n=n*16777619>>>0;return t.toString(16).padStart(8,`0`)+n.toString(16).padStart(8,`0`)}var Kt=[`schemaVersion`,`graphVersion`,`deploymentVersion`,`appElementsSchemaVersion`,`rscPayloadSchemaVersion`,`rootBoundaryId`,`renderEpoch`];function qt(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 Jt(e){return typeof e==`string`||e===null}function Yt(e){return e.schemaVersion===1&&e.appElementsSchemaVersion===1&&e.rscPayloadSchemaVersion===1}function Xt(e){return!o(e)||!Yt(e)||!Jt(e.graphVersion)||!Jt(e.deploymentVersion)||!Jt(e.rootBoundaryId)||!Jt(e.renderEpoch)?null:{schemaVersion:1,graphVersion:e.graphVersion,deploymentVersion:e.deploymentVersion,appElementsSchemaVersion:1,rscPayloadSchemaVersion:1,rootBoundaryId:e.rootBoundaryId,renderEpoch:e.renderEpoch}}var w=i(),Zt=new WeakMap;function Qt(e,t){Zt.get(e)?.get(t)?.release()}var $t=`\0`,en=`__sourcePage`,tn=`__artifactCompatibility`,nn=`__cacheEntryReuseProof`,rn=`__dynamicStaleTime`,an=`__interception`,on=`__interceptionContext`,sn=`__layoutIds`,cn=`__layoutFlags`,ln=`__route`,un=`__rootLayout`,dn=`__skippedLayoutIds`,fn=`__srcPage`,pn=`__slotBindings`,T=`__bfcacheSegmentIdentities`,mn=`__staticSiblings`,hn=`__VINEXT_UNMATCHED_SLOT__`,E=Symbol.for(`vinext.unmatchedSlot`),gn=new Set;function _n(e){return new Set(e)}var vn=_n(`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(`.`)),D=Bt;function yn(e,t){return D(e.slotId,t.slotId)}function bn(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(yn)}function xn(e,t){return t===null?e:`${e}${$t}${t}`}function Sn(e,t){return xn(`route:${e}`,t)}function Cn(e,t){return xn(`page:${e}`,t)}function wn(e){return`layout:${e}`}function Tn(e){return`template:${e}`}function En(e,t){return xn(e,t)}function Dn(e){let t=C(e)?.kind;return t===`page`||t===`layout`||t===`template`||t===`slot`}function On(e){return Array.isArray(e)&&e.length>0&&e.every(e=>typeof e==`string`&&e.length>0&&!e.includes(`/`))}function kn(e){if(typeof e!=`string`||!e.startsWith(`/`))return null;let t=e.slice(1).split(`/`);return On(t)?t:null}function An(e){let t=[...e.layoutIds??[]],n=kn(e.sourcePage),r={[ln]:e.routeId,[on]:e.interceptionContext,[sn]:t,[un]:e.rootLayoutTreePath,...e.dynamicStaleTimeSeconds===void 0?{}:{[rn]:e.dynamicStaleTimeSeconds},...e.bfcacheSegmentIdentities&&Object.keys(e.bfcacheSegmentIdentities).length>0?{[T]:e.bfcacheSegmentIdentities}:{},...n===null?{}:{[fn]:n}},i=e.interception?{...r,[an]:e.interception}:r;return e.slotBindings&&e.slotBindings.length>0?{...i,[pn]:bn(e.slotBindings,{layoutIds:t})}:i}function jn(e){let t=!1;for(let[n,r]of Object.entries(e))if(Ht(n)&&r===`__VINEXT_UNMATCHED_SLOT__`){t=!0;break}if(!t)return e;let n={};for(let[t,r]of Object.entries(e))n[t]=Ht(t)&&r===`__VINEXT_UNMATCHED_SLOT__`?E:r;return n}function Mn(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;for(let t of Object.values(e))if(t!==`s`&&t!==`d`)return!1;return!0}function Nn(e){return Mn(e)?e:{}}function Pn(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(C(r)?.kind!==`layout`)throw Error(`[vinext] Invalid ${t} in App Router payload: expected layout ids`);
2n.push(r)}return n}function Fn(e){return Pn(e,sn)}function In(e){return Pn(e,dn)}function Ln(e){return e===`active`||e==="default"||e===`unmatched`}function Rn(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(!o(t))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected objects`);let e=t.slotId;if(typeof e!=`string`||C(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`||C(r)?.kind!==`layout`))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected owner layout ids`);let i=t.state;if(!Ln(i))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected state`);let a=t.activeRouteId;if(a!=null&&(typeof a!=`string`||C(a)?.kind!==`route`))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected route ids`);let s=t.interceptionId;if(s!=null&&(typeof s!=`string`||s.length===0))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected interception ids`);let c=t.interceptionSourceMatchedUrl;if(c!=null&&typeof c!=`string`)throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected interception source URLs`);typeof c==`string`&&Bn(c),n.push({...a===void 0?{}:{activeRouteId:a},...s===void 0?{}:{interceptionId:s},...c===void 0?{}:{interceptionSourceMatchedUrl:c},ownerLayoutId:r,slotId:e,state:i})}return bn(n,t)}function zn(e,t){let n=e[t];if(typeof n!=`string`)throw Error(`[vinext] Invalid __interception in App Router payload: expected strings`);return n}function Bn(e){if(!Rt(e))throw Error(`[vinext] Invalid __interception in App Router payload: expected path URLs`);return e}function Vn(e,t){let n=C(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 Hn(e){if(C(e)?.kind!==`slot`)throw Error(`[vinext] Invalid __interception in App Router payload: expected slot id`);return e}function Un(e){if(e==null)return null;if(!o(e))throw Error(`[vinext] Invalid __interception in App Router payload: expected object`);let t=Bn(zn(e,`sourceMatchedUrl`)),n=Bn(zn(e,`targetMatchedUrl`));return{sourceMatchedUrl:t,sourceRouteId:Vn(zn(e,`sourceRouteId`),t),slotId:Hn(zn(e,`slotId`)),targetMatchedUrl:n,targetRouteId:Vn(zn(e,`targetRouteId`),n)}}function Wn(e){return!(typeof e!=`object`||!e||Array.isArray(e)||(0,a.isValidElement)(e))}function Gn(e,t){return{...e,[cn]:t}}function Kn(e){if(!Wn(e.element))return e.element;let t=qn(e.skipDisposition),n={};for(let[r,i]of Object.entries(e.element)){if(t.has(r)){Qt(e.element,r);continue}n[r]=i===E?hn:i}return n[cn]=e.layoutFlags,t.size>0&&(n[dn]=[...t]),n[tn]=e.artifactCompatibility??qt(),e.cacheEntryReuseProof&&(n[nn]=e.cacheEntryReuseProof),e.dynamicStaleTimeSeconds!==void 0&&(n[rn]=e.dynamicStaleTimeSeconds),n}function qn(e){if(e?.enabled!==!0)return gn;let t=new Set;for(let n of e.skippedEntryIds)C(n)?.kind===`layout`&&t.add(n);return t}function Jn(e){return e===void 0?qt():Xt(e)??qt()}function Yn(e){return e==null?null:typeof e==`string`?e.startsWith(`/`)?e:null:On(e)?`/${e.join(`/`)}`:null}function Xn(){return{kind:`runtime-cache-entry`,decision:null}}function Zn(e){return typeof e==`string`&&vn.has(e)}function Qn(e){return e===`renderFresh`||e===`privateUncacheable`}function $n(e){return e===`affectedOutput`||e===`route`}function er(e){if(e===void 0)return null;if(!o(e)||e.kind!==`runtime-cache-entry`)return Xn();let t=e.decision;return t===null||!o(t)?Xn():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&&Zn(t.code)&&Qn(t.mode)&&$n(t.scope)?{kind:`runtime-cache-entry`,decision:{canReuse:!1,code:t.code,kind:`reject`,mode:t.mode,scope:t.scope}}:Xn()}function tr(e){if(!o(e))return{};let t={};for(let[n,r]of Object.entries(e)){if(typeof r!=`string`||!Dn(n))return{};t[n]=r}return t}function nr(e){let t=e[ln];if(typeof t!=`string`)throw Error(`[vinext] Missing __route string in App Router payload`);let n=e[on];if(n!=null&&typeof n!=`string`)throw Error(`[vinext] Invalid __interceptionContext in App Router payload`);let r=e[un];if(r===void 0)throw Error(`[vinext] Missing __rootLayout key in App Router payload`);
2if(r!==null&&typeof r!=`string`)throw Error(`[vinext] Invalid __rootLayout in App Router payload: expected string or null`);let i=Nn(e[cn]),a=Fn(e[sn]),o=In(e[dn]),s=Rn(e[pn],{layoutIds:a}),c=Un(e[an]),l=Jn(e[tn]),u=er(e[nn]),d=e[rn],f=typeof d==`number`&&Number.isFinite(d)&&d>=0?d:void 0,ee=Object.hasOwn(e,`__srcPage`)?Yn(e[fn]):Yn(e[en]),te=tr(e[T]);return{artifactCompatibility:l,...u?{cacheEntryReuseProof:u}:{},...f===void 0?{}:{dynamicStaleTimeSeconds:f},interception:c,interceptionContext:n??null,layoutIds:a,layoutFlags:i,routeId:t,rootLayoutTreePath:r,bfcacheSegmentIdentities:te,skippedLayoutIds:o,slotBindings:s,sourcePage:ee}}var O={keys:{artifactCompatibility:tn,cacheEntryReuseProof:nn,dynamicStaleTime:rn,interception:an,interceptionContext:on,layoutIds:sn,layoutFlags:cn,rootLayout:un,route:ln,bfcacheSegmentIdentities:T,skippedLayoutIds:dn,slotBindings:pn,sourcePageSegments:fn},unmatchedSlotValue:hn,createMetadataEntries:An,decode:jn,encodeCacheKey:En,encodeLayoutId:wn,encodeOutgoingPayload:Kn,encodePageId:Cn,encodeRouteId:Sn,encodeSlotId:Vt,encodeTemplateId:Tn,isSlotId:Ht,parseElementKey:C,readMetadata:nr,withLayoutFlags:Gn},rr=4096,ir=256,ar=16;function or(e){return e.length===0||e.length>ir?!1:Ht(e)}function sr(e){if(!e||e.length>rr)return null;let t=e.split(/\s+/).filter(e=>e&&or(e));return t.length===0?null:Array.from(new Set(t)).sort().slice(0,ar).join(` `)||null}var cr=e({APP_ARTIFACT_COMPATIBILITY_KEY:()=>tn,APP_BFCACHE_SEGMENT_IDENTITIES_KEY:()=>T,APP_CACHE_ENTRY_REUSE_PROOF_KEY:()=>nn,APP_DYNAMIC_STALE_TIME_KEY:()=>rn,APP_INTERCEPTION_CONTEXT_KEY:()=>on,APP_INTERCEPTION_KEY:()=>an,APP_LAYOUT_FLAGS_KEY:()=>cn,APP_LAYOUT_IDS_KEY:()=>sn,APP_PREFETCH_LOADING_SHELL_MARKER_KEY:()=>lr,APP_ROOT_LAYOUT_KEY:()=>un,APP_ROUTE_KEY:()=>ln,APP_SKIPPED_LAYOUT_IDS_KEY:()=>dn,APP_SLOT_BINDINGS_KEY:()=>pn,APP_SOURCE_PAGE_SEGMENTS_KEY:()=>fn,APP_STATIC_SIBLINGS_KEY:()=>mn,APP_UNMATCHED_SLOT_WIRE_VALUE:()=>hn,AppElementsWire:()=>O,UNMATCHED_SLOT:()=>E,buildOutgoingAppPayload:()=>Kn,compareAppElementsSlotIds:()=>D,getMountedSlotIds:()=>ur,getMountedSlotIdsHeader:()=>dr,isAppElementsRecord:()=>Wn,normalizeAppElements:()=>jn,normalizeAppElementsSlotBindings:()=>bn,readAppElementsMetadata:()=>nr,resolveVisitedResponseInterceptionContext:()=>fr,withLayoutFlags:()=>Gn}),lr=`__prefetchLoadingShell`;function ur(e){return Object.keys(e).filter(t=>{let n=e[t],r=O.parseElementKey(t);return r?.kind===`slot`&&r.name!==`children`&&n!=null&&n!==E}).sort()}function dr(e){return sr(ur(e).join(` `))}function fr(e,t){return t??e}var pr=Symbol.for(`vinext.appRouterContext`),mr=Symbol.for(`vinext.globalLayoutRouterContext`),hr=Symbol.for(`vinext.layoutRouterContext`),gr=Symbol.for(`vinext.missingSlotContext`),_r=Symbol.for(`vinext.templateContext`);function vr(e,t){if(typeof a.createContext!=`function`)return null;let n=globalThis;return n[e]||(n[e]=a.createContext(t)),n[e]??null}var yr=vr(pr,null);vr(mr,null),vr(hr,null),vr(gr,new Set),vr(_r,null);function br(e,t){let n=xr(e,t);return n&&we(n),n}function xr(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 Sr(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 Cr(e,t){let n=0;for(let r=0;r<t.length;r++){let i=t[r],a=r===t.length-1;if(i.startsWith(`:`)&&i.endsWith(`+`))return a&&e.length-n>=1;if(i.startsWith(`:`)&&i.endsWith(`*`))return a;if(n>=e.length)return!1;if(i.startsWith(`:`)){n++;continue}if(e[n]!==i)return!1;n++}return!0}function wr(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&&n(r+1,i+1):r>=e.length||e[r]!==a?!1:n(r+1,i+1)}return n(0,0)}var Tr=``;function Er(e){let t=window.next;if(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);return}window.next={version:e.version??Tr,...e}}function Dr(e){if(Er({}),e===null){delete window.next?.__internal_src_page;return}let t=window.next;t&&(t.__internal_src_page=e)}function Or(e){try{return decodeURIComponent(e)}catch{return e}}function kr(e){let t=Or(e.startsWith(`#`)?e.slice(1):e);if(t===``||t===`top`){window.scrollTo(0,0);return}let n=document.getElementById(t);if(n){n.scrollIntoView({behavior:`auto`});return}let r=document.getElementsByName(t)[0];if(r){r.scrollIntoView({behavior:`auto`});return}window.scrollTo(0,0)}function Ar(e,t){requestAnimationFrame(()=>{(!t||t())&&kr(e)})}function jr(e,t,n){let r=n?.minFrames??0,i=n?.shouldContinue??(()=>!0),a=0,o=()=>
2{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 Mr=Symbol.for(`vinext.layoutSegmentContext`),Nr=Symbol.for(`vinext.serverInsertedHTMLContext`),Pr=Symbol.for(`vinext.bfcacheIdMapContext`),Fr=Symbol.for(`vinext.bfcacheSegmentIdContext`),Ir=Symbol.for(`vinext.navigation.clientHydrationContext`),Lr=Symbol.for(`vinext.navigation.fallback`);function Rr(e){return typeof a.createContext==`function`?a.createContext(e):null}function zr(){let e=globalThis;return e[Nr]||(e[Nr]=Rr(null)),e[Nr]??null}var Br=zr();function Vr(){let e=globalThis;return e[Mr]||(e[Mr]=Rr({children:[]})),e[Mr]??null}function Hr(){let e=globalThis;return e[Pr]||(e[Pr]=Rr(null)),e[Pr]??null}function Ur(){let e=globalThis;return e[Fr]||(e[Fr]=Rr(null)),e[Fr]??null}var Wr=Symbol.for(`vinext.navigation.globalAccessors`);function Gr(){let e=globalThis;return e[Lr]??={serverContext:null,serverInsertedHTMLCallbacks:[]}}function Kr(){return globalThis[Wr]}function qr(){let e=globalThis;if(Object.prototype.hasOwnProperty.call(e,Ir))return e[Ir]??null}function Jr(e){globalThis[Ir]=e}function Yr(){Jr(null)}var Xr=()=>{{let e=qr();return e===void 0?Gr().serverContext:e}},Zr=e=>{Gr().serverContext=e,Jr(e)},Qr=()=>Kr()?.getInsertedHTMLCallbacks()??Gr().serverInsertedHTMLCallbacks,$r=()=>{let e=Kr();e?e.clearInsertedHTMLCallbacks():Gr().serverInsertedHTMLCallbacks=[]};function ei(e){Xr=e.getServerContext,Zr=e.setServerContext,Qr=e.getInsertedHTMLCallbacks,$r=e.clearInsertedHTMLCallbacks}function k(){return Xr()}function ti(e){Zr(e)}function ni(e){Qr().push(e)}function ri(e){let t=Qr(),n=[];for(let e of t)try{let t=e();t!=null&&n.push(t)}catch{}return e&&(t.length=0),n}function ii(){return ri(!0)}function ai(){return ri(!1)}function oi(){$r()}var si=`NEXT_REDIRECT;`;function ci(e){if(!e.startsWith(si))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 li=`NEXT_HTTP_ERROR_FALLBACK`;function ui(e){if(!e||typeof e!=`object`||!(`digest`in e))return!1;let t=String(e.digest);return t===`NEXT_NOT_FOUND`||t.startsWith(`NEXT_HTTP_ERROR_FALLBACK;`)}function di(e){if(e&&typeof e==`object`&&`digest`in e){let t=String(e.digest);if(t===`NEXT_NOT_FOUND`)return 404;if(t.startsWith(`NEXT_HTTP_ERROR_FALLBACK;`))return Number.parseInt(t.split(`;`)[1],10)}return 404}var fi=function(e){return e.push=`push`,e.replace=`replace`,e}({}),pi=class extends Error{digest;constructor(e,t){super(e),this.digest=t}};function mi(e,t){throw new pi(`NEXT_REDIRECT:${e}`,`NEXT_REDIRECT;${t??``};${encodeURIComponent(e)}`)}function hi(e,t=`replace`){throw new pi(`NEXT_REDIRECT:${e}`,`NEXT_REDIRECT;${t};${encodeURIComponent(e)};308`)}function gi(){throw new pi(`NEXT_NOT_FOUND`,`${li};404`)}function _i(){throw new pi(`NEXT_FORBIDDEN`,`${li};403`)}function vi(){throw new pi(`NEXT_UNAUTHORIZED`,`${li};401`)}function yi(e){return!!e&&typeof e==`object`&&`digest`in e&&typeof e.digest==`string`&&e.digest.startsWith(`NEXT_REDIRECT;`)}function bi(e){let t=ci(e);return t?{url:t.url,type:t.type===`push`?`push`:`replace`}:null}function xi(e){return yi(e)||ui(e)}var Si=`BAILOUT_TO_CLIENT_SIDE_RENDERING`,Ci=class extends Error{digest=Si;reason;constructor(e){super(`Bail out to client-side rendering: ${e}`),this.reason=e}};function wi(e){return!!e&&typeof e==`object`&&`digest`in e&&e.digest===Si}var Ti=`DYNAMIC_SERVER_USAGE`,Ei=class extends Error{digest=Ti;description;constructor(e){super(`Dynamic server usage: ${e}`),this.description=e}};function Di(e){return!!e&&typeof e==`object`&&`digest`in e&&e.digest===Ti}function Oi(e){if(xi(e)||wi(e)||Di(e))throw e;e instanceof Error&&`cause`in e&&Oi(e.cause)}var ki=e({default:()=>Ni}),A={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`,curs
2or:`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)`}},Ai=`
3:root {
4  --next-error-bg: #fff;
5  --next-error-text: #171717;
6  --next-error-title: #171717;
7  --next-error-message: #171717;
8  --next-error-digest: #666666;
9  --next-error-btn-text: #fff;
10  --next-error-btn-bg: #171717;
11  --next-error-btn-border: none;
12  --next-error-btn-secondary-text: #171717;
13  --next-error-btn-secondary-bg: transparent;
14  --next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);
15}
16@media (prefers-color-scheme: dark) {
17  :root {
18    --next-error-bg: #0a0a0a;
19    --next-error-text: #ededed;
20    --next-error-title: #ededed;
21    --next-error-message: #ededed;
22    --next-error-digest: #a0a0a0;
23    --next-error-btn-text: #0a0a0a;
24    --next-error-btn-bg: #ededed;
25    --next-error-btn-border: none;
26    --next-error-btn-secondary-text: #ededed;
27    --next-error-btn-secondary-bg: transparent;
28    --next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);
29  }
30}
31body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }
32`.replace(/\n\s*/g,``);function ji(){return(0,w.jsx)(`svg`,{width:`32`,height:`32`,viewBox:`-0.2 -1.5 32 32`,fill:`none`,style:A.icon,children:(0,w.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 Mi(){window.history.length>1?window.history.back():window.location.href=`/`}function Ni({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,w.jsxs)(`html`,{id:`__next_error__`,children:[(0,w.jsx)(`head`,{children:(0,w.jsx)(`style`,{dangerouslySetInnerHTML:{__html:Ai}})}),(0,w.jsxs)(`body`,{children:[(0,w.jsx)(`div`,{style:A.container,children:(0,w.jsxs)(`div`,{style:A.card,children:[(0,w.jsx)(ji,{}),(0,w.jsx)(`h1`,{style:A.title,children:`This page couldn’t load`}),(0,w.jsx)(`p`,{style:A.message,children:r}),(0,w.jsxs)(`div`,{style:A.buttonGroup,children:[(0,w.jsx)(`form`,{style:A.form,children:(0,w.jsx)(`button`,{type:`submit`,style:A.button,children:`Reload`})}),!n&&(0,w.jsx)(`button`,{type:`button`,style:A.buttonSecondary,onClick:Mi,children:`Back`})]})]})}),t&&(0,w.jsxs)(`p`,{style:A.digestFooter,children:[`ERROR `,t]})]})]})}function Pi(){return window.next?.__pendingUrl??null}function Fi(e){let t=Pi();return t===null?null:t.href===new URL(e,window.location.href).href?t:null}function Ii(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 Li(e){return!1}function Ri(){return()=>{}}var zi=class{run(e,t,...n){return t(...n)}getStore(){}enterWith(){}exit(e,...t){return e(...t)}disable(){}},Bi=globalThis,Vi=Symbol.for(`vinext.als.registry`),Hi=Bi[Vi]??=new Set,Ui=class{getStore(){}run(e,t,...n){return t(...n)}exit(e,...t){return e(...t)}enterWith(e){}disable(){}};function Wi(e){let t=Symbol.for(e),n=Bi[t]??=typeof zi==`function`?new zi:new Ui;return Hi.add(n),n}Wi(`vinext.pprFallbackShell.als`),Wi(`vinext.pprFallbackShell.cacheTaskStack.als`);var Gi=Symbol.for(`vinext.clientNavigationState`),Ki=Symbol.for(`vinext.clientNavigationRenderContext`),qi=``;function Ji(){return globalThis[Gi]}function Yi(){return Ji()?.cachedPathname??_(window.location.pathname,qi)}function Xi(){return k()?.pathname??`/`}function Zi(e){let t=Ji();return t?(t.listeners.add(e),()=>t.listeners.delete(e)):()=>{}}function Qi(){let e=globalThis;return e[Ki]??=a.createContext(null)}function $i(){let e=a.useContext(Qi()),t=a.useSyncExternalStore(Zi,Yi,Xi);return e&&(Ji()?.navigationSnapshotActiveCount??0)>0?e.pathname:t}function ea(){if(!yr||typeof a.useContext!=`function`)throw Error(`invariant expected app router to be mou
32nted`);let e=a.useContext(yr);if(e===null)throw Error(`invariant expected app router to be mounted`);return e}var ta=`vinext:dev-error-recovery`;function na(e){return!e||typeof e!=`object`||!(`digest`in e)?null:String(e.digest)}function ra(e){let t=na(e);return t===null?!1:t===`NEXT_NOT_FOUND`||t.startsWith(`NEXT_HTTP_ERROR_FALLBACK;`)||t.startsWith(`NEXT_REDIRECT;`)}var ia=e({DevRecoveryBoundary:()=>Sa,ErrorBoundary:()=>ma,ErrorBoundaryInner:()=>pa,ForbiddenBoundary:()=>ya,ForbiddenBoundaryInner:()=>va,GlobalErrorBoundary:()=>ha,NotFoundBoundary:()=>_a,RedirectBoundary:()=>fa,RedirectErrorBoundary:()=>da,SerializedErrorBoundary:()=>aa,UnauthorizedBoundary:()=>xa,UnauthorizedBoundaryInner:()=>ba});function aa({fallback:e,error:t}){let n=Object.assign(Error(t.message),{digest:t.digest,name:t.name??`Error`,stack:t.stack});return(0,w.jsx)(e,{error:n,reset:()=>globalThis.location?.reload()})}function oa(e){return e==null||e===``?null:e}function j(e){return{previousPathname:e.pathname,previousResetKey:oa(e.resetKey)}}function sa(e,t){let n=oa(e.previousResetKey),r=oa(t.previousResetKey);return n!==null||r!==null?n!==r:e.previousPathname!==t.previousPathname}function ca(e){window.addEventListener(ta,e)}function la(e){window.removeEventListener(ta,e)}function ua({redirect:e,redirectType:t,reset:n}){let r=ea();return a.useEffect(()=>{a.startTransition(()=>{t===`push`?r.push(e):r.replace(e),n()})},[e,t,n,r]),null}var da=class extends a.Component{constructor(e){super(e),this.state={redirect:null,redirectType:null}}static getDerivedStateFromError(e){if(yi(e)){if(`handled`in e&&e.handled)return{redirect:null,redirectType:null};let t=bi(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,w.jsx)(ua,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null,redirectType:null})}):this.props.children}};function fa({children:e}){return(0,w.jsx)(da,{children:e})}var pa=class extends a.Component{constructor(e){super(e),this.state={error:null,...j(e)}}static getDerivedStateFromProps(e,t){let n=j(e);return t.error&&Li(t.error.thrownValue)||t.error&&sa(n,t)?{error:null,...n}:{error:t.error,...n}}static getDerivedStateFromError(e){if(ra(e))throw e;return{error:{thrownValue:e}}}handleDevErrorRecovery=()=>{this.state.error&&this.setState({error:null,...j(this.props)})};componentDidMount(){ca(this.handleDevErrorRecovery)}componentWillUnmount(){la(this.handleDevErrorRecovery)}reset=()=>{this.setState({error:null})};render(){if(this.state.error){let e=this.props.fallback;return(0,w.jsx)(e,{error:this.state.error.thrownValue,reset:this.reset})}return this.props.children}};function ma({fallback:e,children:t,resetKey:n}){let r=$i();return(0,w.jsx)(pa,{pathname:r,resetKey:n,fallback:e,children:t})}function ha({fallback:e,children:t}){let n=$i();return(0,w.jsx)(pa,{pathname:n,fallback:e,isImplicitRootErrorBoundary:e===Ni,children:t})}var ga=class extends a.Component{constructor(e){super(e),this.state={notFound:!1,...j(e)}}static getDerivedStateFromProps(e,t){let n=j(e);return t.notFound&&sa(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,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`meta`,{name:`robots`,content:`noindex`}),this.props.fallback]}):this.props.children}};function _a({fallback:e,children:t,resetKey:n}){let r=$i();return(0,w.jsx)(ga,{pathname:r,resetKey:n,fallback:e,children:t})}var va=class extends a.Component{constructor(e){super(e),this.state={forbidden:!1,...j(e)}}static getDerivedStateFromProps(e,t){let n=j(e);return t.forbidden&&sa(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,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`meta`,{name:`robots`,content:`noindex`}),this.props.fallback]}):this.props.children}};function ya({fallback:e,children:t,resetKey:n}){let r=$i();return(0,w.jsx)(va,{pathname:r,resetKey:n,fallback:e,children:t})}var ba=class extends a.Component{constructor(e){super(e),this.state={unauthorized:!1,...j(e)}}static getDerivedStateFromProps(e,t){let n=j(e);return t.unauthorized&&sa(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_FA
32LLBACK;401`)return{unauthorized:!0};throw e}render(){return this.state.unauthorized?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`meta`,{name:`robots`,content:`noindex`}),this.props.fallback]}):this.props.children}};function xa({fallback:e,children:t,resetKey:n}){let r=$i();return(0,w.jsx)(ba,{pathname:r,resetKey:n,fallback:e,children:t})}var Sa=class extends a.Component{constructor(e){super(e),this.state={error:null,previousResetKey:e.resetKey}}static getDerivedStateFromProps(e,t){return e.resetKey===t.previousResetKey?null:{error:null,previousResetKey:e.resetKey}}static getDerivedStateFromError(e){if(ra(e))throw e;return{error:{thrownValue:e}}}handleDevErrorRecovery=()=>{this.state.error&&this.setState({error:null,previousResetKey:this.props.resetKey})};componentDidMount(){ca(this.handleDevErrorRecovery)}componentWillUnmount(){la(this.handleDevErrorRecovery)}componentDidCatch(){this.props.onCatch?.(this.props.resetKey)}render(){return this.state.error?null:this.props.children}},Ca=Symbol.for(`vinext.appRouterScrollIntent`);function M(){let e=globalThis;return e[Ca]??={nextId:0,pending:null},e[Ca]}function wa(e){let t=M();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 Ta(){let e=M();e.nextId+=1,e.pending=null}function Ea(){return M().pending}function Da(e){return e!=null&&M().nextId===e.id}function Oa(e,t){let n=M(),r=n.pending;e!=null&&r!==null&&r.id===e.id&&(n.pending={...r,commitId:t})}function ka(e,t){let n=M(),r=n.pending;e!=null&&r!==null&&r.id===e.id&&r.commitId===t&&(n.pending={...r,targetHoistedInHead:!0})}function Aa(e,t){if(e==null)return null;let n=M(),r=n.pending;return r===null||r.id!==e.id||t!==void 0&&r.commitId!==t?null:(n.pending=null,r)}var ja=e({AppRouterScrollCommitProvider:()=>Ga,AppRouterScrollTarget:()=>Ka,AppRouterScrollTargetInner:()=>Wa}),Ma=t(r(),1),Na=a.createContext(null),Pa=`__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE`,Fa=[`bottom`,`height`,`left`,`right`,`top`,`width`,`x`,`y`];function Ia(){let e=Reflect.get(Ma,Pa);if(typeof e!=`object`||!e)return null;let t=Reflect.get(e,`findDOMNode`);return typeof t==`function`?t:null}function La(e){let t=Ia();if(!t)return null;let n=t(e);return n instanceof Element||n instanceof Text?n:null}function Ra(e){let t=getComputedStyle(e).position;if(t===`fixed`||t===`sticky`)return!0;let n=e.getBoundingClientRect();return Fa.every(e=>n[e]===0)}function za(e,t){let n=e.getClientRects();if(n.length===0)return!1;let r=1/0;for(let e of n)e.top<r&&(r=e.top);return r>=0&&r<=t}function Ba(e){let t=Or(e.startsWith(`#`)?e.slice(1):e);return t===`top`?document.body:document.getElementById(t)??document.getElementsByName(t)[0]??null}function Va(e){let t=e.ownerDocument?.head;return t!=null&&t.contains(e)}function Ha(e){if(!(e instanceof Element)||Va(e))return null;let t=e;for(;!(t instanceof HTMLElement)||Ra(t);){if(t.nextElementSibling===null)return null;t=t.nextElementSibling}return{kind:`element`,element:t}}function Ua(e,t){if(t!==null){e.scrollIntoView({behavior:`auto`});return}let n=document.documentElement,r=n.clientHeight;za(e,r)||(n.scrollTop=0,za(e,r)||e.scrollIntoView({behavior:`auto`,block:`start`,inline:`nearest`}))}var Wa=class extends a.Component{scheduledCommitId=null;schedulePotentialScroll=()=>{let e=this.props.commitId;this.scheduledCommitId=e,queueMicrotask(()=>{this.scheduledCommitId===e&&this.handlePotentialScroll()})};handlePotentialScroll=()=>{let e=Ea();if(e===null||this.props.commitId===null||e.commitId!==this.props.commitId)return;let t;if(t=e.hash===null?null:Ba(e.hash),t===null){t=La(this);let n=t instanceof Element?t:t?.parentElement;if(t!==null&&n!=null&&Va(t)&&!e.headElements?.has(n)){ka(e,this.props.commitId);return}}let n=Ha(t);if(n===null)return;let r=n.element,i=Aa(e,this.props.commitId);i!==null&&(Ua(r,i.hash),r.focus())};componentDidMount(){this.schedulePotentialScroll()}componentDidUpdate(){this.schedulePotentialScroll()}componentWillUnmount(){this.scheduledCommitId=null}render(){return this.props.children}};function Ga({children:e,commitId:t}){return(0,w.jsx)(Na.Provider,{value:t,children:e})}function Ka({children:e}){let t=a.useContext(Na);return(0,w.jsx)(Wa,{commitId:t,children:e})}
32var qa=`slot:\0vinext_bfcache_segment_`;function Ja(e){let t=encodeURIComponent(e);return`${qa}${t.length}_${t}_`}function Ya(e,t){return`${Ja(e)}${t}:/`}function Xa(e){return e.startsWith(qa)}function Za(e,t){return Xa(e)&&e.startsWith(Ja(t))}function Qa(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])}}var $a=e({BfcacheIdentityMapContext:()=>lo,BfcacheSegmentBoundary:()=>Ao,Children:()=>Io,ChildrenContext:()=>no,ElementsContext:()=>to,ParallelSlot:()=>Lo,ParallelSlotsContext:()=>ro,Slot:()=>Fo,UNMATCHED_SLOT:()=>E,getNonCacheComponentsSegmentKey:()=>jo,mergeElements:()=>Po,resolveBfcacheSegmentStateKey:()=>Mo,stageBfcacheSlotEntryForRender:()=>_o,updateBfcacheSlotEntryOrder:()=>mo}),eo=Object.freeze({}),to=a.createContext(eo),no=a.createContext(null),ro=a.createContext(null),io=Hr(),ao=Ur(),oo=Object.freeze({}),so=3,co=1,lo=a.createContext(oo);function uo(){return!1}function fo(){return uo()?so:co}function po(e){return Number.isFinite(e)?Math.max(1,Math.trunc(e)):1}function mo(e,t,n=fo()){let r=po(n),i=[t];for(let n of e){if(i.length>=r)break;n!==t&&i.push(n)}return i}function ho(e,t){let n=new Set(t);for(let t of e.keys())n.has(t)||e.delete(t)}function go(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function _o(e,t,n,r=fo()){let i=new Map(e);i.set(n.stateKey,n);let a=mo(t,n.stateKey,r);return ho(i,a),{entries:a.map(e=>i.get(e)).filter(e=>e!==void 0),order:a,snapshots:i}}function vo(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=Object.values(e);return t.length>0&&t.every(e=>e===`s`||e===`d`)}function yo(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 bo(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:`ownerLayoutId`in e&&`slotId`in e&&`state`in e}function xo(e){return Array.isArray(e)&&e.length>0&&e.every(bo)}function So(e,t){return e===`__skippedLayoutIds`&&Array.isArray(t)&&t.every(e=>typeof e==`string`)}function Co(e,t){return e!==`__bfcacheSegmentIdentities`||typeof t!=`object`||!t||Array.isArray(t)?!1:Object.entries(t).every(([e,t])=>{let n=O.parseElementKey(e);return n!==null&&n.kind!==`route`&&typeof t==`string`})}function wo(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 To(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:`kind`in e&&e.kind===`runtime-cache-entry`&&`decision`in e}function Eo(e,t){return vo(t)||Co(e,t)||yo(t)||To(t)||wo(t)||So(e,t)||xo(t)}function Do({entry:e,fallbackElements:t,fallbackSegmentId:n,fallbackStateKeyMap:r,SegmentContext:i}){return(0,w.jsx)(lo.Provider,{value:e.stateKeyMap??r,children:(0,w.jsx)(to.Provider,{value:e.elements??t,children:(0,w.jsx)(i.Provider,{value:e.segmentId??n,children:e.content})})})}function Oo(e){let t=a.useRef(new Map),[n,r]=a.useState(()=>[e.stateKey]),i=t.current,o=_o(i,n,e),s=o.order,c=!go(n,s);return a.useLayoutEffect(()=>{t.current=o.snapshots},[o.snapshots]),c&&r(s),o.entries}function ko({activeStateKey:e,content:t,elements:n,id:r,SegmentContext:i,stateKeyMap:o}){let s=Oo({content:t,elements:n,segmentId:r,stateKey:e,stateKeyMap:o});return(0,w.jsx)(w.Fragment,{children:s.map(t=>(0,w.jsx)(a.Activity,{mode:t.stateKey===e?`visible`:`hidden`,children:(0,w.jsx)(Do,{entry:t,fallbackElements:n,fallbackSegmentId:r,fallbackStateKeyMap:o,SegmentContext:i})},t.stateKey))})}function Ao({children:e,id:t,stateKey:n}){let r=a.useContext(to),i=a.useContext(lo),o=Mo(t,i,a.useContext(io));return!ao||o===void 0?(0,w.jsx)(a.Fragment,{children:e},n):uo()?(0,w.jsx)(ko,{activeStateKey:o,content:e,elements:r,id:t,SegmentContext:ao,stateKeyMap:i}):(0,w.jsx)(ao.Provider,{value:t,children:e},o)}function jo(e,t){let n=O.parseElementKey(e);return n!==null&&n.kind!==`route`?t:void 0}
32function Mo(e,t,n){return t[e]??n?.[e]}function No({content:e,id:t}){let n=ao,r=a.useContext(to),i=a.useContext(lo),o=Mo(t,i,a.useContext(io));return n?o===void 0?(0,w.jsx)(n.Provider,{value:t,children:e}):uo()?(0,w.jsx)(ko,{activeStateKey:o,content:e,elements:r,id:t,SegmentContext:n,stateKeyMap:i}):(0,w.jsx)(n.Provider,{value:t,children:e},jo(t,o)):(0,w.jsx)(w.Fragment,{children:e})}function Po(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.preservePreviousSlotIds??[],s={...t},c=new Set;for(let t of a)if(Object.hasOwn(e,t)){let n=e[t];n!==void 0&&(s[t]=n,c.add(t))}let l=new Set([...Object.keys(e),...Object.keys(t)].filter(e=>O.isSlotId(e)&&!Xa(e)));if(r)for(let e of l)Object.hasOwn(t,e)||delete s[e];else if(i){for(let t of l)if(!Object.hasOwn(s,t)&&Object.hasOwn(e,t)){let n=e[t];n!==void 0&&(s[t]=n,c.add(t))}}for(let t of o){if(!O.isSlotId(t)||!Object.hasOwn(e,t))continue;let n=e[t];if(n!==void 0&&n!==E){s[t]=n,c.add(t);for(let n of Object.keys(e)){if(!Za(n,t))continue;let r=e[n];r!==void 0&&(s[n]=r),c.add(n)}}}if(c.size>0){let n=e[T],r=t[T],i=Co(T,n),a=Co(T,r),o=i?{...n}:{},l=a?{...r}:{},u=new Set([...Object.keys(o),...Object.keys(l)]),d=new Set(c);for(let e of d)for(let t of u)Za(t,e)&&c.add(t);for(let e of c){let t=o[e];t===void 0?delete l[e]:l[e]=t}(i||a)&&(s[T]=l)}return s}function Fo({id:e,children:t,parallelSlots:n}){let r=a.useContext(to);if(!Object.hasOwn(r,e))return null;let i=r[e];if(Eo(e,i)||(i===E&&gi(),i===null))return null;let o=(0,w.jsx)(ro.Provider,{value:n??null,children:(0,w.jsx)(no.Provider,{value:t??null,children:i})});return io&&ao?(0,w.jsx)(No,{id:e,content:o}):o}function Io(){return a.useContext(no)}function Lo({name:e}){return a.useContext(ro)?.[e]??null}var Ro=e({APP_RSC_RENDER_MODE_NAVIGATION:()=>zo,APP_RSC_RENDER_MODE_PREFETCH_DYNAMIC_SHELL:()=>Vo,APP_RSC_RENDER_MODE_PREFETCH_EMPTY:()=>Bo,APP_RSC_RENDER_MODE_PREFETCH_LOADING_SHELL:()=>Ho,getRscRenderModeCacheVariant:()=>Uo,parseAppRscRenderMode:()=>Wo}),zo=`navigation`,Bo=`prefetch-empty`,Vo=`prefetch-dynamic-shell`,Ho=`prefetch-loading-shell`;function Uo(e){return e===`prefetch-empty`?`prefetch-empty`:e===`prefetch-dynamic-shell`?`prefetch-dynamic-shell`:e===`prefetch-loading-shell`?`prefetch-loading-shell`:null}function Wo(e){switch(e){case Bo:return Bo;case Vo:return Vo;case Ho:return Ho;default:return zo}}var Go=`x-deployment-id`;function Ko(e,t=void 0){t&&e.set(Go,t)}function qo(e){return Gt(JSON.stringify([e.pathAndSearch,e.routeId]))}var Jo=e({VINEXT_RSC_BUILD_ID_HEADER:()=>Yo,VINEXT_RSC_CACHE_BUSTING_SEARCH_PARAM:()=>N,VINEXT_RSC_COMPATIBILITY_ID_HEADER:()=>P,VINEXT_RSC_CONTENT_TYPE:()=>Xo,VINEXT_RSC_RENDER_MODE_HEADER:()=>x,VINEXT_RSC_VARY_HEADER:()=>Ue,applyRscCompatibilityIdHeader:()=>rs,applyRscDeploymentIdHeader:()=>is,canonicalizeLoadingShellRscRequestHeaders:()=>Cs,canonicalizePrewarmableRscRequestHeaders:()=>Ss,computeRscCacheBustingSearchParam:()=>hs,createCanonicalLoadingShellRscRequestHeaders:()=>bs,createCanonicalRscRequestHeaders:()=>ys,createCanonicalRscRequestUrl:()=>Ts,createRscRedirectLocation:()=>Ds,createRscRequestHeaders:()=>xs,createRscRequestUrl:()=>I,createServerActionRequestUrl:()=>Es,getVinextRscCompatibilityId:()=>ts,hasRscCacheBustingSearchParam:()=>ms,isRscCompatibilityIdCompatible:()=>as,resolveHardNavigationTargetFromRscResponse:()=>os,resolveInvalidRscCacheBustingRequest:()=>Os,resolveRscCompatibilityNavigationDecision:()=>ss,setRscCacheBustingSearchParam:()=>gs,stripRscCacheBustingSearchParam:()=>_s,stripRscSuffix:()=>vs}),N=`_rsc`,Yo=`X-Vinext-RSC-Build-Id`,P=`X-Vinext-RSC-Compatibility-Id`,Xo=`text/x-component`,Zo=12,Qo=new TextEncoder;function $o(e){let t=``;for(let n of e)t+=String.fromCharCode(n);return btoa(t).replaceAll(`+`,`-`).replaceAll(`/`,`_`).replace(/=+$/,``)}function es(e){return e??`0`}function F(e){return e&&e.length>0?e:null}function ts(){return F(`91cc070c-7dbb-4e13-948d-9e5cefd37a36`)}function ns(){return F(`6cdb267e66435d7e78d643ecc7fcc2ca`)}function rs(e,t=ts(),n=ns()){let r=F(t);r?e.set(P,r):e.delete(P);let i=F(n);i?e.set(Yo,i):e.delete(Yo)}function is(e){e.delete(wt)}function as(e,t=ts()){let n=F(e),r=F(t);return r===null||n!==null&&n===r}function os(e,t,n){if(!e)return t;let r=new URL(e,n);_s(r);let i=new URL(t,n),a=vs(r.pathname);i.pathname.length>1&&i.pathname.endsWith(`/`)&&!a.endsWith(`/`)&&(a+=`/`);let o=a+r.search;return i.hash&&(o+=i.hash),o}function ss(e){return as(e.responseCompatibilityId,e.clientCompatibilityId)?{kind:`compatible`}:{hardNavigationTarget:os(e.responseUrl,e.currentHref,e.origin),kind:`hard-navigate`}}function cs(e){let t=Wo(e);return t===`navigation`?null:t}function ls(e,t={}){let n=[e.get(v),e.get(y),e.get(ze),e.get(Be),e.get(Ve),...t.includeInterceptionIdHeader===!1?[]:[e.get(He)],e.get(b),...t.includeRenderModeHeader===!1?[]:[cs(e.get(x))]],r=e.get(S);return t.includeStateFingerprintHeader!==!1&&r!==null&&n.push(r),n.every(e=>e===null)?null:n.map(es).join(`,`)}async function us(e){let t=globalThis.crypto?.subtle;if(!t)return Gt(e);let n=await t.digest(`SHA-256`,Qo.encode(e));return $o(new Uint8Array(n).subarray(0,Zo))}function ds(e){let t=ls(e);return t===null?``:Gt(t)}function fs(e){return(e.search.startsWith(`?`)?e.search.slice(1):e.search).split(`&`).filter(e=>e.length>0&&!ps(e))}function ps(e){let t=e.indexOf(`=`),n=t===-1?e:e.slice(0,t);try{return decodeURIComponent(n.replaceAll(`+`,` `))===N}catch{return n===N}}function ms(e){return(e.search.startsWith(`?`)?e.search.slice(1):e.search).split(`&`).some(e=>e.length>0&&ps(e))}async function hs(e){let t=ls(e);return t===null?``:us(t)}function gs(e,t){let n=fs(e);n.push(t.length>0?`${N}=${t}`:N),e.search=`?${n.join(`&`)}`}function _s(e){let t=fs(e);e.search=t.length>0?`?${t.join(`&`)}`:``}function vs(e){return e.endsWith(`.rsc`)?e.slice(0,-4):e}function ys(e=void 0){let t=new Headers({Accept:Xo,RSC:`1`});return Ko(t,e??void 0),t}function bs(e=void 0){let t=ys(e);return t.set(v,`1`),t.set(y,`1`),t.set(x,Ho),t}function xs(e={}){let t=ys(e.deploymentId);e.prefetchRouterState&&(e.includePrefetchHeader!==!1&&t.set(v,`1`),t.set(ze,encodeURIComponent(JSON.stringify(e.prefetchRouterState))));let n=e.routerState??e.prefetchRouterState;n&&t.set(S,qo(n)),e.nextUrl&&t.set(Be,e.nextUrl),e.interceptionContext!==void 0&&e.interceptionContext!==null&&t.set(Ve,e.interceptionContext),e.interceptionId!==void 0&&e.interceptionId!==null&&t.set(He,e.interceptionId),e.mountedSlotsHeader!==void 0&&e.mountedSlotsHeader!==null&&t.set(b,e.mountedSlotsHeader),e.clientReuseManifestHeader!==void 0&&e.clientReuseManifestHeader!==null&&t.set(gt,e.clientReuseManifestHeader);let r=e.renderMode??`navigation`;return r!==`navigation`&&t.set(x,r),t}function Ss(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(v),e.delete(y),e.delete(ze),e.delete(Be),e.delete(S),e.delete(gt),!0)}function Cs(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(v,`1`),e.set(y,`1`),e.delete(ze),e.delete(Be),e.delete(S),e.delete(gt),!0)}function ws(e){let t=e.indexOf(`#`);return t===-1?e:e.slice(0,t)}async function I(e,t){let n=new URL(ws(e),`http://vinext.local`);return gs(n,await hs(t)),`${n.pathname}${n.search}`}function Ts(e){let t=new URL(ws(e),`http://vinext.local`);return gs(t,``),`${t.pathname}${t.search}`}function Es(e){let t=e.indexOf(`#`),n=t===-1?e:e.slice(0,t),r=new URL(n,`http://vinext.local`);return`${r.pathname}${r.search}`}async function Ds(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 Os(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 hs(e.request.headers);if(n===null&&r===``&&t.pathname.endsWith(`.rsc`))return null;let i=new Set([r]);if(n!==null&&n!==r){i.add(ds(e.request.headers));let t=[],n=e.request.headers.has(He),r=e.request.headers.has(S),a=cs(e.request.headers.get(x))===null;n||t.push({includeInterceptionIdHeader:!1}),r&&(t.push({includeStateFingerprintHeader:!1}),n||t.push({includeInterceptionIdHeader:!1,includeStateFingerprintHeader:!1})),a&&(t.push({includeRenderModeHeader:!1}),n||t.push({includeInterceptionIdHeader:!1,includeRenderModeHeader:!1})),r&&a&&(t.push({includeRenderModeHeader:!1,includeStateFingerprintHeader:!1}),n||t.push({includeInterceptionIdHeader:!1,includeRenderModeHeader:!1,includeStateFingerprintHeader:!1}));for(let n of t){let t=ls(e.request.headers,n);t===null?i.add(``):(i.add(await us(t)),i.add(Gt(t)))}}return n!==null&&i.has(n)?null:(gs(t,r),new Response(null,{status:307,headers:{Location:`${t.pathname}${t.search}`}}))}var ks=null;function As(e){return Object.values(e).some(e=>typeof e==`function`)?e:null}function js(e){return ks=e,ks}function Ms(e,t){ks?.onRouterTransitionStart?.(e,t)}function Ns(e){if(e.routeManifest===null)return null;let t=_(e.currentPathname,e.basePath),n=_(e.targetPathname,e.basePath),r=g(t),i=g(n);for(let n of e.routeManifest.segmentGraph.interceptions.values())if(Cr(r,
32n.sourcePatternParts)&&br(i,n.targetPatternParts)!==null)return t;return null}function Ps(e){if(e.routeManifest===null)return null;let t=_(e.currentPathname,e.basePath),n=e.currentMatchedPathname?_(e.currentMatchedPathname,e.basePath):null,r=_(e.targetPathname,e.basePath),i=g(t),a=n?g(n):null,o=g(r);for(let r of e.routeManifest.segmentGraph.interceptions.values())if(wr(o,r.targetPatternParts)){if(Cr(i,r.sourcePatternParts))return t;if(n!==null&&a!==null&&Cr(a,r.sourcePatternParts))return n}return null}function L(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0}var Fs=`__vinext_previousNextUrl`,Is=`__vinext_historyIndex`,Ls=`__vinext_bfcacheIds`,Rs=`__vinext_bfcacheVersion`,zs=`__vinext_externalHistoryState`,Bs=`__vinext_treeSnapshotId`,R=`__vinext_treeSnapshotClaimed`,Vs=`__vinext_activeRoutePaths`,Hs=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)}resolveRestore(e){let t=uc(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}}},Us=class{#e;#t=0;#n;constructor(e){let t=sc(e.initialHistoryState);this.#e=t===null?0:t+1,this.#n=new Hs({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 cc(e,this.#e)}readCurrentBfcacheVersionHistoryIds(e){if(this.isCacheInvalidationGuarded())return null;let t=oc(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})}resolveHistoryStateSnapshotRestore(e){return this.#n.resolveRestore({currentBfcacheVersion:this.#e,guarded:this.isCacheInvalidationGuarded(),historyState:e})}};function Ws(e){if(!e||typeof e!=`object`)return{};let t={};for(let[n,r]of Object.entries(e))t[n]=r;return t}function z(e){return!e||typeof e!=`object`||Array.isArray(e)?null:e}function Gs(e,t){let n=Ws(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[Vs]:n[Vs]=[...new Set(t.activeRoutePaths)]),t.previousNextUrl===null?delete n[Fs]:n[Fs]=t.previousNextUrl,t.traversalIndex!==void 0&&(L(t.traversalIndex)?n[Is]=t.traversalIndex:delete n[Is]),t.bfcacheIds!==void 0&&(r?(delete n[Ls],delete n[Rs]):n[Ls]={...t.bfcacheIds}),t.bfcacheVersion!==void 0&&(r?delete n[Rs]:L(t.bfcacheVersion)?n[Rs]=t.bfcacheVersion:delete n[Rs]),Object.keys(n).length>0?n:null}function Ks(e,t){let n=ic(t),r=uc(t),i=oc(t),a=sc(t),o=tc(t);return{...Gs(e,{activeRoutePaths:nc(t),bfcacheIds:i,bfcacheVersion:i===null?void 0:a,previousNextUrl:n,traversalIndex:r}),...qs(),...o===null?{}:{[R]:!0,[Bs]:o}}}function qs(){return{[zs]:!0}}function Js(e){return z(e)?.[zs]===!0}function Ys(e){return!Js(e)&&uc(e)!==null}function Xs(e){let t=Ws(e);return delete t[zs],Object.keys(t).length>0?t:null}function Zs(e,t){let n=Ws(e),r=tc(n);return L(t)?(n[Bs]=t,r!==t&&delete n[R]):(delete n[Bs],delete n[R]),Object.keys(n).length>0?n:null}function Qs(e,t){let n=Ws(e);return t&&tc(n)!==null?n[R]=!0:delete n[R],Object.keys(n).length>0?n:null}function $s(e){return z(e)?.[R]===!0}function ec(e){return Zs(e,null)}function tc(e){let t=z(e)?.[Bs];return L(t)?t:null}function nc(e){let t=z(e)?.[Vs];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 rc(e){let t=new Set;for(let n of e){if(n.state!==`active`||n.activeRouteId==null)continue;let e=O.parseElementKey(n.activeRouteId);e?.kind===`route`&&e.interceptionContext===null&&t.add(e.path)}return[...t]}function ic(e){let t=z(e)?.[Fs];return typeof t==`string`?t:null}function ac(e){let t=O.parseElementKey(e);return t?.kind===`layout`||t?.kind===`page`||t?.kind===`slot`||t?.kind===`template`}function oc(e){let t=z(e)?.[Ls];if(!t||typeof t!=`object`||Array.isArray(t))return null;let n={};for(let[e,r]of Object.entries(t)){if(!ac(e)||typeof r!=`string`)return null;n[e]=r}return n}function sc(e){let t=z(e)?.[Rs];return L(t)?t:null}function cc(e,t){let n=sc(e);return n!==null&&n===t}function lc(e){let t=ic(e),n=oc(e),r=sc(e),i=nc(e);return t===null&&n===null&&i===null?null:Gs(null,{activeRoutePaths:i,bfcacheIds:n,bfcacheVersion:n===null?void 0:r,previousNextUrl:t})}function uc(e){let t=z(e)?.[Is];return L(t)?t:null}function dc(e){let t=uc(e.historyState),n=`unknown`;return e.currentHistoryIndex!==null&&t!==null&&(t<e.currentHistoryIndex?n=`back`:t>e.currentHistoryIndex&&(n=`forward`)),{direction:n,historyState:e.historyState,targetHistoryIndex:t}}var fc=`__next-page-redirect`;function pc(e){if(typeof e!=`object`||!e||!(`getElementById`in e))return!1;let{getElementById:t}=e;return typeof t==`function`&&t.call(e,fc)!==null}var mc=class{#e=null;#t=0;reset(){this.#e=null}navigate(e,t,n){let r=this.#e;if(r?.href===t&&r.historyUpdateMode===n)return;let i=this.#t+1;this.#t=i,this.#e={href:t,historyUpdateMode:n,token:i};let a=()=>{let r=this.#e;r?.href===t&&r.historyUpdateMode===n&&r.token===i&&(n===`replace`?e.location.replace(t):e.location.assign(t))};if(typeof e.requestAnimationFrame==`function`){e.requestAnimationFrame(()=>{e.setTimeout(a,0)});return}e.setTimeout(a,0)}};new TextEncoder;var hc=new TextDecoder,B=255,gc=0,_c=2,vc=4,yc=256;function bc(e){return typeof e==`number`&&Number.isFinite(e)&&e>=0}function V(){throw Error(`Invalid or truncated RSC completion metadata footer`)}function xc(e){if(e.byteLength>yc)throw Error(`RSC completion metadata exceeded its framing limit`);if(e.byteLength<6||e[0]!==B||e[1]!==gc)return V();let t=e.byteLength-vc;if(new DataView(e.buffer,e.byteOffset+t,vc).getUint32(0)!==t-_c)return V();try{let n=JSON.parse(hc.decode(e.subarray(_c,t)));if(typeof n!=`object`||!n)return V();let r=n;if(!bc(r.dynamicStaleTimeSeconds))return V();let i=Object.hasOwn(r,`serverStaleTimeSeconds`),a=r.serverStaleTimeSeconds;return i&&a!==null&&!bc(a)?V():{dynamicStaleTimeSeconds:r.dynamicStaleTimeSeconds,...i?{serverStaleTimeSeconds:a}:{}}}catch{return V()}}function Sc(e){let t=new Uint8Array(e),n=t.indexOf(B);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<t.byteLength;e++){let n=t[e];if(n!==B){r[i++]=n;continue}let a=t[++e];if(a===void 0)throw Error(`Truncated RSC completion metadata escape sequence`);if(a===B){r[i++]=B;continue}if(a!==gc)throw Error(`Invalid RSC completion metadata escape sequence`);return{buffer:r.buffer.slice(0,i),metadata:xc(t.subarray(e-1))}}return{buffer:r.buffer.slice(0,i)}}function Cc(e){let t=!1,n;return e.pipeThrough(new TransformStream({transform(e,r){let i=[],a=()=>{i.length!==0&&(r.enqueue(Uint8Array.from(i)),i.length=0)},o=0;for(;o<e.byteLength;){if(n){if(n.push(e[o++]),n.length>yc){r.error(Error(`RSC completion metadata exceeded its framing limit`));return}continue}if(t){let a=e[o++];if(t=!1,a===B){i.push(B);continue}if(a===gc){n=[B,gc];continue}r.error(Error(`Invalid RSC completion metadata escape sequence`));return}let s=e.indexOf(B,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`));return}if(n){let t=Uint8Array.from(n);try{xc(t)}catch(t){e.error(t)}}}}))}function wc(e){return e.headers.get(`X-Vinext-Rsc-Completion-Metadata`)!==`1`||!e.body?e:new Response(Cc(e.body),{headers:e.headers,status:e.status,statusText:e.statusText})}
32var Tc=`[\\u0000-\\u001F \\u200B\\uFEFF]*`,Ec=`[\\r\\n\\t]*`;function Dc(e){let t=e.split(``).join(Ec);return RegExp(`^${Tc}${t}${Ec}:`,`i`)}var Oc=[Dc(`javascript`),Dc(`data`),Dc(`vbscript`)],kc=`Next.js has blocked a javascript: URL as a security precaution.`;function Ac(e){let t=``+e;return Oc.some(e=>e.test(t))}function jc(){console.error(kc)}function Mc(e,t=Error){if(Ac(e))throw jc(),new t(kc)}var Nc=10;function Pc(e,t){return t===null||!Ac(t)?!1:(e.body?.cancel().catch(()=>{}),jc(),!0)}function Fc(e,t){let n=new URL(e,t);return _s(n),`${vs(n.pathname)}${n.search}${n.hash}`}function Ic(e,t){let n=new URL(e,t);return`${n.pathname}${n.search}${n.hash}`}function Lc(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===Fc(e.currentHref,e.origin))return{href:t,kind:`no-redirect`};let n=e.maxRedirectDepth??Nc;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 Rc(e){let t=new URL(e.responseUrl,e.origin);return Lc({...e,redirectedHref:os(t.href,e.currentHref,e.origin),targetUrl:t})}function zc(e){let t=new URL(e.streamedRedirectTarget,e.origin);return Lc({...e,redirectedHref:Ic(e.streamedRedirectTarget,e.origin),targetUrl:t})}var H={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`},Bc={hardNavigate:`NT_HARD_NAVIGATE`,noCommit:`NT_NO_COMMIT`,visibleCommit:`NT_VISIBLE_COMMIT`};function Vc(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 Hc(e,t={}){return{code:e,fields:{...t}}}function U(e,t={}){return{schemaVersion:0,entries:[Hc(e,t)]}}function Uc(e,t,n={}){return{schemaVersion:e.schemaVersion,entries:[Hc(t,n),...e.entries]}}var Wc=[`navigation`,`visibleCommit`,`graphVersion`,`cacheVariant`];function Gc(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 Kc(e,t,n){let r=new Set(n.require),i=new Set([...n.check,...n.require]);for(let n of Wc){if(!i.has(n))continue;let a=Gc(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 qc(e,t){return Kc(e,{activeNavigationId:t.activeNavigationId,visibleCommitVersion:t.visibleCommitVersion,graphVersion:e.graphVersion,installedCacheVariantFingerprint:e.cacheVariantFingerprint??null},{check:[`navigation`,`visibleCommit`],require:[`navigation`,`visibleCommit`]})}
32function Jc(e,t){return Kc(e,{activeNavigationId:e.navigationId,visibleCommitVersion:e.baseVisibleCommitVersion,graphVersion:t.graphVersion,installedCacheVariantFingerprint:t.installedCacheVariantFingerprint},{check:[`graphVersion`,`cacheVariant`],require:[]})}function Yc(e,t){return e===`push`||t===`push`?`push`:`replace`}var Xc=`\0`,Zc=`CP_CACHE_ENTRY_PROOF_MISSING`;function Qc(e){let t=e.work.kind===`traverseFlight`?{traverseDirection:e.work.direction}:{};return{kind:`requestWork`,token:e.state.nextOperationToken,work:e.work,trace:U(H.requestWork,{eventKind:e.eventKind,targetHref:$c(e.work),...t})}}function $c(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 el(e,t={}){return{fetchResultSource:e.source,...t}}function tl(e){return{discardBody:e.discardBody,kind:`hardNavigate`,...e.hardNavigationMode===void 0?{}:{hardNavigationMode:e.hardNavigationMode},reason:e.reason,trace:U(e.reasonCode,el(e.facts,{...e.redirectSignal===void 0?{}:{redirectSignal:e.redirectSignal},redirectDepth:e.facts.redirectDepth,targetHref:e.url})),url:e.url}}function nl(e){return{discardBody:e.discardBody,kind:`followRedirect`,redirect:e.redirect,trace:U(H.redirectFollow,el(e.facts,{redirectDepth:e.redirect.redirectDepth,redirectSignal:e.redirectSignal,targetHref:e.redirect.href}))}}function rl(e){switch(e){case`externalRedirect`:return{hardNavigationReason:`externalRedirectTarget`,traceReasonCode:H.redirectTerminalExternal};case`maxRedirectsExceeded`:return{hardNavigationReason:`redirectDepthExhausted`,traceReasonCode:H.redirectTerminalDepth};default:throw Error(`[vinext] Unknown RSC redirect terminal reason: `+String(e))}}function il(e){if(!e.responseOk||!e.isRscContentType||!e.hasBody){let t=os(e.responseUrl,e.currentHref,e.origin);return tl({discardBody:!1,facts:e,reason:`invalidRscPayload`,reasonCode:H.invalidRscPayload,url:t})}let t=ss({clientCompatibilityId:e.clientCompatibilityId,currentHref:e.currentHref,origin:e.origin,responseCompatibilityId:e.compatibilityIdHeader,responseUrl:e.responseUrl});if(t.kind===`hard-navigate`)return tl({discardBody:!1,facts:e,reason:`rscCompatibilityMismatch`,reasonCode:H.rscCompatibilityMismatch,url:t.hardNavigationTarget});if(e.responseUrl!==null){let t=Rc({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=rl(t.reason);return tl({discardBody:!1,facts:e,reason:n.hardNavigationReason,reasonCode:n.traceReasonCode,redirectSignal:`response-url`,url:t.href})}if(t.kind===`follow`)return nl({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=Yc(e.effectiveHistoryUpdateMode,e.streamedRedirectType),n=zc({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=rl(n.reason);return tl({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`?nl({discardBody:!0,facts:e,redirect:{href:n.href,historyUpdateMode:t,previousNextUrl:n.previousNextUrl,redirectDepth:n.redirectDepth},redirectSignal:`streamed-header`}):tl({discardBody:!0,facts:e,reason:`streamedRedirectLoop`,reasonCode:H.streamedRedirectLoop,redirectSignal:`streamed-header`,url:n.href})}return{discardBody:!1,kind:`proceedToCommit`,trace:U(H.proceedToCommit,el(e))}}function al(e,t){return U(e,{targetHref:t.targetHref})}function ol(e,t,n){return n===`browser`?_(e,t):e}function sl(e){let t,n;try{t=new URL(e.currentHref),n=new URL(e.targetHref,e.currentHref)}catch{return{bypassNavigationCache:!1,kind:`flightNavigation`,trace:al(H.crossDocumentFlight,e)}}let r=ol(t.pathname,e.basePath,e.currentUrlSpace),i=ol(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:al(H.samePageRefresh,e)}:a&&o&&t.hash!==n.hash?{hash:n.hash,kind:`sameDocumentScroll`,mode:e.mode,scroll:e.scroll,trace:al(H.sameDocumentScroll,e)}:a&&!o?{bypassNavigationCache:!0,kind:`flightNavigation`,trace:al(H.samePageSearch,e)}:{bypassNavigationCache:!1,kind:`flightNavigation`,trace:al(H.crossDocumentFlight,e)}}function cl(e){return e.candidate===`missing`?{kind:`miss`}
32:e.mountedSlotsMatch?e.navigationKind===`refresh`?{kind:`evict`,reason:`refresh`}:e.fresh?{kind:`reuse`}:{kind:`evict`,reason:`stale`}:{kind:`evict`,reason:`mountedSlotsMismatch`}}function ll(e,t,n={}){return U(e,{eventKind:t.navigationKind,targetHref:t.targetHref,...n})}function ul(e,t){return{kind:`fetchFresh`,reason:t,trace:ll(H.fetchFresh,e,{freshFetchReason:t})}}function dl(e){return e.navigationKind===`refresh`?ul(e,`refresh`):!e.bypassNavigationCache&&e.visitedResponse.status===`available`?{kind:`reuseVisitedResponse`,trace:ll(H.visitedResponseReuse,e)}:!e.bypassNavigationCache&&e.prefetch.status===`available`?{kind:`consumePrefetch`,trace:ll(H.prefetchResponseReuse,e)}:e.navigationKind===`navigate`?e.optimisticRouteShell.status===`available`?{kind:`attemptOptimisticRouteShell`,trace:ll(H.optimisticRouteShell,e)}:ul(e,e.bypassNavigationCache?`cacheBypassed`:e.optimisticRouteShell.reason):e.bypassNavigationCache?ul(e,`cacheBypassed`):ul(e,`cacheMiss`)}function fl(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 pl(e){return{layoutIds:e.layoutIds,rootBoundaryId:e.rootBoundaryId,rootLayoutTreePath:e.rootBoundaryId,slotBindings:e.slotBindings}}function ml(e){let t=e.indexOf(Xc);return t===-1?e:e.slice(0,t)}function hl(e){let t=ml(e);return t.startsWith(`route:/`)?t.slice(6):null}function gl(e){try{return new URL(e,`https://vinext.local`).pathname}catch{let[t=``]=e.split(`#`),[n=``]=t.split(`?`);return n===``?`/`:n}}function _l(e){return g(gl(e))}function vl(e,t){let n=_l(t);for(let t of e.segmentGraph.routes.values())if(br(n,t.patternParts)!==null)return t;return null}function yl(e,t){return br(_l(t),e.patternParts)!==null}function bl(e){let t=ml(e.routeId),n=e.routeManifest.segmentGraph.routes.get(t);if(n&&yl(n,e.matchedUrl))return n;let r=n===void 0?hl(e.routeId):null;if(r!==null){let t=vl(e.routeManifest,r);if(t!==null)return t}return vl(e.routeManifest,e.matchedUrl)}function xl(e,t){return t.interception===null?bl({matchedUrl:t.matchedUrl,routeId:t.routeId,routeManifest:e}):bl({matchedUrl:t.interception.sourceMatchedUrl,routeId:t.interception.sourceRouteId,routeManifest:e})}function Sl(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)=>D(e.slotId,t.slotId))}function Cl(e,t){return t.rootBoundaryId===null?null:e.segmentGraph.rootBoundaries.get(t.rootBoundaryId)?.treePath??null}function wl(e){let t=e.routeManifest===null?null:xl(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:Cl(e.routeManifest,t),slotBindings:n?Sl(e.routeManifest,t):e.snapshot.slotBindings}}}function Tl(e,t){let n=_l(t.sourceMatchedUrl),r=_l(t.targetMatchedUrl),i=bl({matchedUrl:t.targetMatchedUrl,routeId:t.targetRouteId,routeManifest:e}),a=e.segmentGraph.interceptionsBySlotId.get(t.slotId)??[];for(let e of a){if(!Cr(n,e.sourcePatternParts))continue;let t=br(r,e.targetPatternParts),a=t===null&&wr(r,e.targetPatternParts);if((t!==null||a)&&(a||e.targetRouteId===null||i?.id===e.targetRouteId))return e}return null}function El(e){return e.state.traceFields?{...e.state.traceFields,currentRootLayoutTreePath:e.currentRootLayoutTreePath,nextRootLayoutTreePath:e.nextRootLayoutTreePath}:Vc({currentRootLayoutTreePath:e.currentRootLayoutTreePath,currentVisibleCommitVersion:e.state.visibleCommitVersion,nextRootLayoutTreePath:e.nextRootLayoutTreePath,startedVisibleCommitVersion:e.event.token.baseVisibleCommitVersion})}function Dl(e,t){return e===null||t===null?`rootBoundaryUnknown`:e===t?`currentRootBoundary`:`rootBoundaryChanged`}function Ol(e,t){return kl(pl(e),pl(t))}function kl(e,t){if(Dl(e.rootBoundaryId,t.rootBoundaryId)!==`currentRootBoundary`)return[];let n=[],r=Math.min(e.layoutIds.length,t.layoutIds.length);for(let i=0;i<r;i++){let r=e.layoutIds[i];if(r!==t.layoutIds[i])break;n.push(r)}return n}function Al(e,t){return jl(e,Ol(e,t))}function jl(e,t){if(t.length===0)return[];let n=new Set(t),r=[],i=new Set;for(let t of e.mountedParallelSlots)t.ownerLayoutId!==null&&n.has(t.ownerLayoutId)&&(i.has(t.slotId)||(r.push(t.slotId),i.add(t.slotId)));return r}function Ml(e,t){let n=Ol(e,t);return[...n,...jl(e,n)]}function Nl(e){return kl(e.currentTopology,e.targetTopology)}function Pl(e){if(e.lane===`traverse`)return[];let t=kl(e.currentTopology,e.targetTopology);if(t.length===0)return[];let n=Il({currentSlotBindings:e.currentTopology.slotBindings,preservedLayoutIds:t,targetSlotBindings:e.targetTopology.slotBindings}),r=Fl({currentSlotBindings:e.currentTopology.slotBindings,preservedLayoutIds:t,targetSlotBindings:e.targetTopology.slotBindings});return[...new Set([...n,...r])].sort(D)}function Fl(e){let t=new Set(e.preservedLayoutIds),n=new Set(e.targetSlotBindings.map(e=>e.slotId));return e.currentSlotBindings.filter(e=>{let r=O.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(D)}function Il(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(D)}function Ll(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(D)}function Rl(e){return e.interception?{matchedUrl:e.interception.sourceMatchedUrl,routeId:e.interception.sourceRouteId}:{matchedUrl:hl(e.routeId)??e.matchedUrl,routeId:e.routeId}}function zl(e){return{kind:`hardNavigate`,reason:`interceptionProofRejected`,token:e.event.token,trace:U(e.reasonCode,e.traceFields),url:e.event.result.href}}function Bl(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 Vl(e,t){return t===null?{...e,cacheProofCode:Zc}:{...e,cacheProofCode:t.code,cacheProofMode:t.mode,cacheProofScope:t.scope}}function Hl(e){return{kind:`hardNavigate`,reason:`cacheProofRejected`,token:e.event.token,trace:U(H.cacheProofRejected,Vl(e.traceFields,e.rejection.decision)),url:e.event.result.href}}function Ul(e){return{kind:`hardNavigate`,reason:`cacheReuseTokenRejected`,token:e.event.token,trace:U(H.cacheReuseTokenRejected,{...e.traceFields,cacheReuseTokenReason:e.reason}),url:e.event.result.href}}function Wl(e,t){return t===null?e:{...e,cacheProofCode:t.code,cacheProofReuseClass:t.reuseClass}}function Gl(e){return e===null?{}:{cacheEntryReuseDecision:e}}function Kl(e){let t=e.targetSnapshot.interception;if(!t)return{kind:`rejected`,reasonCode:H.interceptedRejectedMissingProof};if(t.targetMatchedUrl!==e.targetSnapshot.matchedUrl)return{kind:`rejected`,reasonCode:H.interceptedRejectedTargetMismatch};let n=Rl(e.currentSnapshot);if(!e.restoredHistorySnapshot&&(t.sourceMatchedUrl!==n.matchedUrl||t.sourceRouteId!==n.routeId))return{kind:`rejected`,reasonCode:H.interceptedRejectedUnknownSource};let r=e.routeManifest===null?null:Tl(e.routeManifest,t);if(e.routeManifest!==null&&r===null)return{kind:`rejected`,reasonCode:H.interceptedRejectedUndeclaredTopology};let i=kl(e.currentTopology,e.targetTopology);if(i.length===0)return{kind:`rejected`,reasonCode:H.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:H.interceptedRejectedMissingSlotProof};if(r!==null&&o.ownerLayoutId!==r.ownerLayoutId)return{kind:`rejected`,reasonCode:H.interceptedRejectedUndeclaredTopology};let s=Il({currentSlotBindings:e.currentTopology.slotBindings,preservedLayoutIds:i,targetSlotBindings:e.targetTopology.slotBindings}).filter(e=>e!==t.slotId),c=e.lane===`navigation`?Ll({currentSlotBindings:e.currentTopology.slotBindings,preservedLayoutIds:i,targetInterceptionSlotId:t.slotId,targetSlotBindings:e.targetTopology.slotBindings}):[];return{kind:`approved`,preserveElementIds:i,preservePreviousSlotIds:[...new Set([...s,...c])].sort(D)}}function ql(e){let t=e.event.result.targetSnapshot,n=wl({routeManifest:e.routeManifest,slotBindingSource:`snapshot`,snapshot:e.state.visibleSnapshot}),r=wl({routeManifest:e.routeManifest,slotBindingSource:`manifestTarget`,snapshot:t}),i=El({currentRootLayoutTreePath:n.kind===`known`?n.topology.rootLayoutTreePath:null,event:e.event,nextRootLayoutTreePath: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:U(H.prefetchOnly,i)};let a=Bl(e.event.result.cacheEntryReuseProof);if(a.kind===`rejected`)return Hl({event:e.event,rejection:a,traceFields:i});let o=a.decision;if(o!==null){let t=Jc(e.event.token,{graphVersion:e.routeManifest?.graphVersion??null,installedCacheVariantFingerprint:null});if(!t.authorized)return Ul({event:e.event,reason:t.reason,traceFields:i})}let s=Wl(i,o),c=Gl(o);if(t.interception!==null){if(n.kind===`unknown`||r.kind===`unknown`)return zl({event:e.event,reasonCode:H.interceptedRejectedUndeclaredTopology,traceFields:s});let i=Kl({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`?zl({event:e.event,reasonCode:i.reasonCode,traceFields:s}):{kind:`proposeCommit`,proposal:{...c,preserveAbsentSlots:!1,preserveElementIds:i.preserveElementIds,preservePreviousSlotIds:i.preservePreviousSlotIds,reason:`interceptedCurrentRootBoundary`,targetSnapshot:t},token:e.event.token,trace:U(H.interceptedCommitCurrent,s)}}let l=n.kind===`unknown`||r.kind===`unknown`?`rootBoundaryUnknown`:Dl(n.topology.rootBoundaryId,r.topology.rootBoundaryId);if(l===`rootBoundaryChanged`)return{kind:`hardNavigate`,reason:`rootBoundaryChanged`,token:e.event.token,trace:U(H.rootBoundaryChanged,s),url:e.event.result.href};if(l===`rootBoundaryUnknown`)return{kind:`proposeCommit`,proposal:{...c,preserveAbsentSlots:!1,preserveElementIds:[],preservePreviousSlotIds:[],reason:`unprovenTopologyFallback`,targetSnapshot:t},token:e.event.token,trace:U(H.rootBoundaryUnknown,s)};if(n.kind!==`known`||r.kind!==`known`)throw Error(`[vinext] Current-root navigation planning requires manifest topology`);return{kind:`proposeCommit`,proposal:{...c,preserveAbsentSlots:!1,preserveElementIds:Nl({currentTopology:n.topology,lane:e.event.token.lane,targetTopology:r.topology}),preservePreviousSlotIds:Pl({currentTopology:n.topology,lane:e.event.token.lane,targetTopology:r.topology}),reason:`currentRootBoundary`,targetSnapshot:t},token:e.event.token,trace:U(H.commitCurrent,s)}}function Jl(e){switch(e.event.kind){case`navigate`:return Qc({eventKind:e.event.kind,state:e.state,work:{href:e.event.href,kind:`flight`,mode:e.event.mode}});case`refresh`:return Qc({eventKind:e.event.kind,state:e.state,work:{href:e.state.visibleSnapshot.displayUrl,kind:`flight`,mode:`refresh`}});case`traverse`:return Qc({eventKind:e.event.kind,state:e.state,work:{direction:e.event.direction,historyState:e.event.historyState,kind:`traverseFlight`}});case`prefetch`:return Qc({eventKind:e.event.kind,state:e.state,work:{href:e.event.href,kind:`prefetch`}});case`flightResponseArrived`:return ql({event:e.event,routeManifest:e.routeManifest,state:e.state});default:{let t=e.event;throw Error(`[vinext] Unknown navigation event: `+String(t))}}}function Yl(e){if(e.clientCompatibilityId===null||!e.isRscContentType||ss({clientCompatibilityId:e.clientCompatibilityId,currentHref:e.currentHref,origin:e.origin,responseCompatibilityId:e.compatibilityIdHeader,responseUrl:e.responseUrl}).kind===`compatible`)return{kind:`proceed`,trace:U(H.proceedToCommit,{})};if(e.actionRedirectHref!==null)return{kind:`hardNavigate`,url:e.actionRedirectHref,historyMode:e.actionRedirectType===`push`?`assign`:`replace`,clearClientNavigationCaches:!0,reason:`serverActionRedirectCompatibilityMismatch`,trace:U(H.serverActionRedirectCompatibilityMismatch,{targetHref:e.actionRedirectHref})};let t=e.currentHref;return{kind:`hardNavigate`,url:t,clearClientNavigationCaches:!1,reason:`serverActionRscCompatibilityMismatch`,trace:U(H.serverActionRscCompatibilityMismatch,{targetHref:t})}}function Xl(e){return{kind:`hardNavigate`,url:e.currentHref,reason:`rscNavigationError`,trace:U(H.rscNavigationError,{targetHref:e.currentHref})}}var Zl={classifyEarlyNavigationIntent:sl,classifyNavigationPrefetchProbe:fl,classifyNavigationReuse:dl,classifyRscFetchResult:il,classifyRscNavigationError:Xl,classifyRootBoundaryTransition:Dl,classifyServerActionResult:Yl,classifyVisitedResponseCac
32heCandidate:cl,plan:Jl,resolveCurrentRootBoundaryElementPersistence:Ml,resolveMountedParallelSlotPersistence:Al,resolveSameLayoutAncestorPersistence:Ol};function Ql(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)||e.startsWith(`//`)}function $l(){return{staticChildren:new Map,dynamicChild:null,catchAllChild:null,optionalCatchAllChild:null,route:null}}function eu(e){let t=$l();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;t<e.length;t++){let i=e[t];if(i.endsWith(`+`)&&i.startsWith(`:`)){if(t!==e.length-1)break;let a=i.slice(1,-1);r.catchAllChild===null&&(r.catchAllChild={paramName:a,route:n});break}if(i.endsWith(`*`)&&i.startsWith(`:`)){if(t!==e.length-1)break;let a=i.slice(1,-1);r.optionalCatchAllChild===null&&(r.optionalCatchAllChild={paramName:a,route:n});break}if(i.startsWith(`:`)){let a=i.slice(1);r.dynamicChild===null&&(r.dynamicChild={paramName:a,node:$l()}),r=r.dynamicChild.node,t===e.length-1&&r.route===null&&(r.route=n);continue}let a=r.staticChildren.get(i);a||(a=$l(),r.staticChildren.set(i,a)),r=a,t===e.length-1&&r.route===null&&(r.route=n)}}return t}function tu(e,t){let n=nu(e,t);return n&&we(n.params),n}function nu(e,t){return ru(e,t,0,[])}function ru(e,t,n,r){if(n===t.length)return e.route===null?e.optionalCatchAllChild===null?null:{route:e.optionalCatchAllChild.route,params:Ce(r)}:{route:e.route,params:Ce(r)};let i=t[n],a=e.staticChildren.get(i);if(a){let e=ru(a,t,n+1,r);if(e!==null)return e}if(e.dynamicChild!==null){r.push([e.dynamicChild.paramName,i]);let a=ru(e.dynamicChild.node,t,n+1,r);if(a!==null)return a;r.pop()}if(e.catchAllChild!==null){let i=t.slice(n),a=Ce(r);return a[e.catchAllChild.paramName]=i,{route:e.catchAllChild.route,params:a}}if(e.optionalCatchAllChild!==null){let i=Ce(r);return i[e.optionalCatchAllChild.paramName]=t.slice(n),{route:e.optionalCatchAllChild.route,params:i}}return null}function iu(){return new WeakMap}function au(e,t){let n=e.get(t);return n||(n=eu(t),e.set(t,n)),n}function ou(e,t,n){let r=e.split(`?`)[0],i=r===`/`?`/`:r.replace(/\/$/,``);i=xe(i);let a=i.split(`/`).filter(Boolean);return tu(au(n,t),a)}function su(e){if(e)return e.split(`,`,1)[0]?.trim().split(`:`,1)[0]?.toLowerCase()||void 0}function cu(e,t,n){if(!e?.length)return;let r=su(t),i=n?.toLowerCase();for(let t of e)if(r===su(t.domain)||i===t.defaultLocale.toLowerCase()||t.locales?.some(e=>e.toLowerCase()===i))return t}function lu(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 uu(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 du(e,t=``){return t?t+e:e}function fu(e,t,{basePath:n,currentHostname:r,domainItems:i}){if(!i?.length)return;let a=cu(i,void 0,t);if(!a)return;let o=cu(i,r??void 0),s=lu(e,t,a.defaultLocale);if(!(o&&su(o.domain)===su(a.domain)))return`${`http${a.http?``:`s`}://`}${a.domain}${du(s,n)}`}var pu=iu(),mu=iu(),hu=new WeakMap,gu=new WeakMap;function _u(e){return`/`+e.join(`/`)}function vu(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=_(n.pathname,t),i=uu(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 yu(e,t){return vu(e,t)?.appPathname??null}function bu(e,t){let n=t?gu:hu,r=n.get(e);return r||(r=e.filter(e=>!!e.documentOnly===t),n.set(e,r)),r}function xu(e,t){let n=vu(e,t);if(n===null)return{appMatch:null,pagesMatch:null};let r=window.__VINEXT_LINK_PREFETCH_ROUTES__,i=window.__VINEXT_PAGES_LINK_PREFETCH_ROUTES__;return{appMatch:r?ou(n.appPathname,r,pu)?.route??null:null,pagesMatch:i?ou(n.pagesPathname,bu(i,n.pagesApiRequest),mu)?.route??null:null}}function Su({appMatch:e,pagesMatch:t}){if(e===null&&t===null)return null;if(t===null)return e.documentOnly?`document`:`app`;if(e===null)return t.documentOnly?`document`:`pages`;let n=_e(_u(t.patternParts),t.isDynamic,_u(e.patternParts),e.isDynamic);return(n===`app`?e:t).documentOnly?`document`:n}var Cu=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/;function wu(e){let t=e.charCodeAt(0);return(t>=65&&t<=90||t>=97&&t<=122)&&Cu.test(e)}function Tu(e){return wu(e)||e.startsWith(`//`)}function Eu(){let{origin:e,href:t}=window.location;if(e)return e;try{return new URL(t).origin}catch{return null}}function Du(e){let t=Eu();if(!t)return null;try{let n=e.startsWith(`//`)?new URL(e,t):new URL(e);if(n.origin===t)return n.pathname+n.search+n.hash}catch{}return null}function Ou(e,t){let n=Du(e);if(n==null||!t)return n;try{let e=new URL(n,`http://vinext.local`);return De(e.pathname,t)?_(e.pathname,t)+e.search+e.hash:null}catch{return n}}function ku(e){let t=e.indexOf(`#`),n=e.indexOf(`?`),r=n>-1&&(t<0||n<t);return r||t>-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 Au(e){return e.replace(/\/$/,``)||`/`}function ju(e,t){if(!e.startsWith(`/`)||e.startsWith(`//`))return e;let{pathname:n,query:r,hash:i}=ku(e);return t?/\.[^/]+\/?$/.test(n)?`${Au(n)}${r}${i}`:n.endsWith(`/`)?`${n}${r}${i}`:`${n}/${r}${i}`:`${Au(n)}${r}${i}`}function Mu(e,t){return!t||!e.startsWith(`/`)||Tu(e)?e:t+e}function Nu(e,t,n=``){let r=t??window.location.href;if(!r||e.startsWith(`/`)||Tu(e))return e;try{let t=new URL(e,r);return(n&&t.pathname===n?``:n?_(t.pathname,n):t.pathname)+t.search+t.hash}catch{return e}}function Pu(e,t,n=``){let r=Nu(e,t,n);return n?r===``?n:r.startsWith(`?`)||r.startsWith(`#`)?n+r:Mu(r,n):Mu(r,n)}function Fu(e,t,n,r){return ju(Pu(e,t,n),r)}function Iu(e,t,n=``){try{let r=new URL(t),i=new URL(e,t);return _(r.pathname,n)===_(i.pathname,n)&&r.search===i.search&&i.hash!==``}catch{return!1}}var Lu=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|Skype
32UriPreview|Yeti|googleweblight`,Ru=/Googlebot(?!-)|Googlebot$/i,zu=new Map;function Bu(e){let t=e||Lu,n=zu.get(t);if(n)return n;let r=new RegExp(t,`i`);return zu.set(t,r),r}function Vu(e,t){return e?Ru.test(e)?!0:Bu(t).test(e):!1}var Hu=`_b_0_`,Uu=class extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}},W=class extends URLSearchParams{append(){throw new Uu}delete(){throw new Uu}set(){throw new Uu}sort(){throw new Uu}},Wu=Symbol.for(`vinext.navigation.pagesNavigationContextAccessor`);function Gu(){let e=globalThis[Wu];if(!e)return null;try{return e()}catch{return null}}var Ku=e({cancelAppPrefetchFetch:()=>nd,promoteAppPrefetchFetch:()=>rd,releaseAppPrefetchFetchSlot:()=>ed,scheduleAppPrefetchFetch:()=>td}),qu=Symbol.for(`vinext.appPrefetchFetchSlotRelease`),Ju=4,Yu=[],G=new WeakMap,Xu=0,Zu=!1;function Qu(){for(Zu=!1;Xu<Ju;){let e=Yu.shift();if(!e)return;Xu+=1,e()}}function $u(){Zu||(Zu=!0,queueMicrotask(Qu))}function ed(e){let t=e[qu];t!==void 0&&(e[qu]=void 0,t())}function td(e,t){let n=new AbortController;if(t===`high`){let t=e(n.signal);return G.set(t,{cancel:()=>n.abort()}),t.then(e=>{e[qu]=()=>G.delete(t)},()=>G.delete(t)),t}let r,i,a=!1,o=new Promise((t,s)=>{i=s,r=()=>{a=!0;let r=!1,i=()=>{r||(r=!0,G.delete(o),--Xu,Qu())};try{e(n.signal).then(e=>{e[qu]=i,t(e)},e=>{G.delete(o),i(),s(e)})}catch(e){G.delete(o),i(),s(e)}}});return Yu.push(r),G.set(o,{runner:r,cancel:()=>{if(a){n.abort();return}let e=Yu.indexOf(r);e!==-1&&(Yu.splice(e,1),G.delete(o),n.abort(),i(n.signal.reason))}}),$u(),o}function nd(e){e!==void 0&&G.get(e)?.cancel()}function rd(e){if(e===void 0)return;let t=G.get(e)?.runner;if(t===void 0)return;let n=Yu.indexOf(t);n!==-1&&(Yu.splice(n,1),Xu+=1,t())}var id=class extends Error{constructor(...e){super(...e),this.name=`UnrecognizedActionError`}};function ad(e){return!!(e&&typeof e==`object`&&e instanceof id)}var od=`modulepreload`,sd=function(e){return`/`+e},cd={},ld=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),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?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=sd(t,n),t=s(t),t in cd)return;cd[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:od,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}).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)})},ud=e({BailoutToCSRError:()=>Ci,DYNAMIC_NAVIGATION_CACHE_TTL:()=>Ed,DynamicServerError:()=>Ei,GLOBAL_ACCESSORS_KEY:()=>Wr,HTTP_ERROR_FALLBACK_ERROR_CODE:()=>li,MAX_PREFETCH_CACHE_SIZE:()=>Cd,PREFETCH_CACHE_TTL:()=>K,ReadonlyURLSearchParams:()=>W,RedirectType:()=>fi,ServerInsertedHTMLContext:()=>Br,UnrecognizedActionError:()=>id,__basePath:()=>``,_registerStateAccessors:()=>ei,activateNavigationSnapshot:()=>tp,appRouterInstance:()=>Vp,applyAppRouterScrollFallback:()=>Ep,clearPendingPathname:()=>mp,clearServerInsertedHTML:()=>oi,commitClientNavigationState:()=>Q,consumePrefetchResponse:()=>Lf,consumePrefetchResponseForNavigation:()=>zf,createAppPrefetchRequestHeaders:()=>Md,createCachedRscResponseSnapshot:()=>Ef,createClientNavigationRenderSnapshot:()=>op,createSnapshotPathAndSearch:()=>sp,decodeRedirectError:()=>bi,deletePrefetchResponseSnapshot:()=>wf,disableNavigationResponsePrefetchCacheReuse:()=>Sf,discardLearningOnlyPrefetchCacheEntry:()=>hf,fetchRouteTreeGatedPrefetch:()=>Nf,flushServerInsertedHTML:()=>ii,forbidden:()=>_i,getAccessFallbackHTTPStatus:()=>di,getBfcacheIdMapContext:()=>Hr,getBfcacheSegmentIdContext:()=>Ur,getClientNavigationRenderContext:()=>ip,getClientNavigationState:()=>Z,getClientParams:()=>fp,getCurrentInterceptionContext:()=>kd,getCurrentNextUrl:()=>jd,getFreshPrefetchCacheEntry:()=>Nd,getLayoutSegmentContext:()=>Vr,getMountedSlotsHeader:()=>Uf,getNavigationContext:()=>k,getPrefetchCache:()=>q,getPrefetchInterceptionContext:()=>Ad,getPrefetchedUrls:()=>J,hasFreshLearningOnlyPrefetchCacheEntry:()=>Yd,hasPrefetchCacheEntryForNavigation:()=>Jd,hasSearchAgnosticPrefetchShellForRoute:()=>Xd,invalidatePrefetchCache:()=>xf,isBailoutToCSRError:()=>wi,isDynamicServerError:()=>Di,isHTTPAccessFallbackError:()=>ui,isNextRouterError:()=>xi,isRedirectError:()=>yi,navigateClientSide:()=>Np,notFound:()=>gi,peekPrefetchResponseForNavigation:()=>If,permanentRedirect:()=>hi,prefetchRscResponse:()=>Pf,preloadHybridClientRouteOwner:()=>pd,prepareNavigationPrefetchSnapshot:()=>Mf,pushHistoryStateWithoutNotify:()=>Sp,redirect:()=>mi,renderServerInsertedHTML:()=>ai,replaceClientParamsWithoutNotify:()=>dp,replaceHistoryStateWithoutNotify:()=>Cp,resolveCachedRscResponseExpiresAt:()=>Bd,resolveCachedRscResponseTtlMs:()=>
32zd,resolveLoadedHybridClientRewriteHref:()=>md,resolvePrefetchCacheEntryMountedSlotsHeader:()=>Hd,restoreRscResponse:()=>jf,saveScrollPosition:()=>wp,seedPrefetchResponseSnapshot:()=>Cf,setClientParams:()=>up,setMountedSlotsHeader:()=>Hf,setNavigationContext:()=>ti,setPendingPathname:()=>pp,snapshotRscResponse:()=>kf,storePrefetchResponse:()=>Tf,unauthorized:()=>vi,unstable_isUnrecognizedActionError:()=>ad,unstable_rethrow:()=>Oi,useClientNavigationRenderSnapshot:()=>ap,useParams:()=>bp,usePathname:()=>vp,useRouter:()=>Hp,useSearchParams:()=>yp,useSelectedLayoutSegment:()=>Up,useSelectedLayoutSegments:()=>Wp,useServerInsertedHTML:()=>Gp}),dd=null,fd=null;async function pd(){dd||=(fd??=ld(()=>import(`./hybrid-client-route-owner-BQ9qwVcu.js`),__vite__mapDeps([0,1])),await fd)}function md(e,t){return dd?.resolveHybridClientRewriteHref(e,t)??null}function hd(e){return null}function gd(e=`children`){let t=Vr();if(!t)return[];try{return(a.useContext(t)[e]??[]).filter(e=>!e.startsWith(`__PAGE__`))}catch{return[]}}var _d=Symbol(`vinext.navigation.readonlySearchParams`),vd=Symbol(`vinext.navigation.readonlySearchParamsSource`),yd=Symbol(`vinext.navigation.readonlySearchParamsSourceKey`),bd=Symbol.for(`vinext.navigation.pagesNavigationNotify`),xd=``,Sd=!1,Cd=52428800,wd=Cd*.9;function Td(e,t){if(e===void 0||e===``)return t;let n=Number(e);return!Number.isFinite(n)||n<0?t:n*1e3}var Ed=Td(`0`,3e4),K=Td(`300`,3e4),Dd=30,Od=Dd*1e3;function kd(){return _(window.location.pathname,``)}function Ad(e){let t;try{t=new URL(e,window.location.href)}catch{return null}return Ns({basePath:``,currentPathname:window.location.pathname,routeManifest:h()?.bootstrap.routeManifest??null,targetPathname:t.pathname})}function jd(){return window.location.pathname+window.location.search}function Md(e){let t=h()?.functions.getPrefetchRouterState?.()??null;return xs({...e,nextUrl:jd(),includePrefetchHeader:e.prefetchKind!==`full`,prefetchRouterState:t})}function q(){return window.__VINEXT_RSC_PREFETCH_CACHE__||(window.__VINEXT_RSC_PREFETCH_CACHE__=new Map),window.__VINEXT_RSC_PREFETCH_CACHE__}function Nd(e){let t=q(),n=t.get(e);if(n===void 0||n.pending||Y(n)>Date.now())return n;X(t,J(),e,n,!0)}function J(){return window.__VINEXT_RSC_PREFETCHED_URLS__||(window.__VINEXT_RSC_PREFETCHED_URLS__=new Set),window.__VINEXT_RSC_PREFETCHED_URLS__}function Pd(e){return typeof e==`number`&&Number.isFinite(e)&&Number.isInteger(e)&&e>=0}function Fd(e){return typeof e==`number`&&Number.isFinite(e)&&e>=0}function Id(e){if(e===null||e===``)return;let t=Number(e);return Pd(t)?t:void 0}function Ld(e){if(e!==void 0)return e.kind===`pending`?Dd:Math.max(e.seconds,Dd)}function Rd(e){let t=e.dynamicStaleTimeSeconds,n=Ld(e.serverStaleTime);return Pd(t)?n===void 0?t:Math.min(t,n):n}function zd(e,t){let n=Rd(e);return n===void 0?t:n*1e3}function Bd(e,t,n){return Fd(t.expiresAt)?t.expiresAt:e+zd(t,n)}function Vd(e,t,n,r){if(Fd(t.expiresAt))return t.expiresAt;let i=t.serverStaleTime?.kind===`pending`&&r!==`verbatim`?void 0:Ld(t.serverStaleTime);if(i!==void 0)return e+i*1e3;if(r===`ignore`)return e+Math.max(n,Od);let a=Pd(t.dynamicStaleTimeSeconds)?t.dynamicStaleTimeSeconds:void 0;return a===void 0?e+Math.max(n,Od):r===`verbatim`?e+a*1e3:e+Math.max(a===0?n:a*1e3,Od)}function Y(e){return e.expiresAt===void 0?e.snapshot?Bd(e.timestamp,e.snapshot,K):e.timestamp+K:e.expiresAt}function Hd(e){return e.mountedSlotsHeader===void 0?e.snapshot?.mountedSlotsHeader??null:e.mountedSlotsHeader}function Ud(e){try{let t=new URL(e,`http://vinext.local`);return _s(t),`${t.pathname}${t.search}`}catch{return null}}function Wd(e){try{return vs(new URL(e,`http://vinext.local`).pathname)}catch{return null}}function Gd(e){let t=e.indexOf(`\0`);return t===-1?{interceptionContext:null,rscUrl:e}:{interceptionContext:e.slice(t+1),rscUrl:e.slice(0,t)}}function Kd(e,t){return Hd(e)===t||(e.snapshot?.mountedSlotsHeader??null)===t}function qd(e,t,n,r=[]){let i=q(),a=[e,...r];for(let e of a){let r=O.encodeCacheKey(e,t),a=i.get(r);if(a&&a.cacheForNavigation!==!1&&Kd(a,n))return{cacheKey:r,entry:a}}let o=new Set(a.map(e=>Ud(e)).filter(e=>e!==null));if(o.size===0)return null;for(let[e,r]of i){if(r.cacheForNavigation===!1)continue;let i=Gd(e);if(i.interceptionContext!==t)continue;let a=Ud(i.rscUrl);if(a!==null&&o.has(a)&&Kd(r,n))return{cacheKey:e,entry:r}}return null}function Jd(e,t=null,n=null,r={}){let i=qd(e,t,n,r.additionalRscUrls);return i===null?!1:i.entry.pending!==void 0||Y(i.entry)>Date.now()?(nf(q(),i.cacheKey,i.entry),yf(i.cacheKey,i.entry,r.onInvalidate),!0):(X(q(),J(),i.cacheKey,i.entry,r.notifyInvali
32dation??!0),!1)}function Yd(e,t=null){let n=O.encodeCacheKey(e,t),r=q(),i=r.get(n);return i?.cacheForNavigation===!1?i.pending!==void 0||Y(i)>Date.now()?(nf(r,n,i),!0):(X(r,J(),n,i,!0),!1):!1}function Xd(e,t=null,n=null){let r=Wd(e);if(r===null)return!1;let i=q();for(let[e,a]of i){if(a.searchAgnosticShell!==!0)continue;let o=Gd(e);if(o.interceptionContext===t&&Wd(o.rscUrl)===r&&Kd(a,n)){if(a.pending!==void 0||Y(a)>Date.now())return!0;X(i,J(),e,a,!0)}}return!1}function Zd(e){return e.snapshot?.buffer.byteLength??e.size??0}var Qd=null,$d=0;function ef(e){if(Qd===e)return $d;let t=0,n=new Set;for(let r of e.values())n.has(r)||(n.add(r),t+=Zd(r));return Qd=e,$d=t,t}function tf(e,t){Qd===e&&($d=Math.max(0,$d+t))}function nf(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 rf(){let e=q(),t=ef(e);if(t<=52428800)return;let n=Date.now(),r=J();for(let[t,i]of e)Y(i)<=n&&X(e,r,t,i,!0);if(t=ef(e),t<=52428800)return;let i=0;for(;t>wd&&i<e.size;){let n=e.keys().next().value;if(n!==void 0){let a=e.get(n);if(a){let o=Zd(a);if(a.pending!==void 0&&o===0){nf(e,n,a),i+=1;continue}t-=o,X(e,r,n,a,!0),i=0}else e.delete(n),r.delete(n),i+=1}else break}}var af=new Set;function of(e){let t={destination:e,cancelled:!1};return af.add(t),t}function sf(e){for(let t of af)(e===null||t.destination===e)&&(t.cancelled=!0)}function cf(e){let t=e;if(Ql(e)){let n=Ou(e,``);if(n==null)return null;t=n}let n=Fu(t,window.location.href,``,Sd);try{let e=new URL(n,window.location.href);return`${e.pathname}${e.search}`}catch{return n.split(`#`,1)[0]}}function lf(e){e.invalidationTimer!==void 0&&(clearTimeout(e.invalidationTimer),e.invalidationTimer=void 0)}function uf(e){try{e()}catch(e){typeof reportError==`function`?reportError(e):console.error(e)}}function df(e){lf(e);let t=e.onInvalidateCallbacks;if(e.onInvalidateCallbacks=void 0,t!==void 0)for(let e of t)uf(e)}var ff=new Set;function pf(e){let t=e.onInvalidateCallbacks;if(t===void 0||t.size===0)return;let n=Math.max(0,Y(e)-Date.now()),r={callbacks:t,timer:setTimeout(()=>mf(r),n)};ff.add(r)}function mf(e){if(ff.delete(e)){clearTimeout(e.timer);for(let t of e.callbacks)uf(t)}}function X(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&&(tf(e,-Zd(r)),r.cacheKeys=void 0,i?df(r):(lf(r),r.onInvalidateCallbacks=void 0))}function hf(e,t=null){let n=q(),r=J(),i=Ud(e);if(i===null)return!1;let a=[];for(let[e,r]of n){if(r.cacheForNavigation!==!1||r.prefetchKind!==`navigation`)continue;let n=Gd(e);n.interceptionContext===t&&Ud(n.rscUrl)===i&&a.push([e,r])}for(let[e,t]of a)nd(t.fetchPromise),X(n,r,e,t,!0);return a.length>0}function gf(e){let t=q(),n=t.get(e);n&&X(t,J(),e,n,!0)}function _f(e,t){if(t.onInvalidateCallbacks===void 0||t.onInvalidateCallbacks.size===0)return;lf(t);let n=Math.max(0,Y(t)-Date.now());t.invalidationTimer=setTimeout(()=>{gf(e)},n)}function vf(e,t){t!==void 0&&(e.onInvalidateCallbacks===void 0&&(e.onInvalidateCallbacks=new Set),e.onInvalidateCallbacks.add(t))}function yf(e,t,n){n!==void 0&&(vf(t,n),t.outcome===`cache-seeded`&&_f(e,t))}function bf(e,t){if(t===void 0)return;let n=q().get(e);n&&yf(e,n,t)}function xf(){sf(null);let e=q(),t=J();for(let[n,r]of e)X(e,t,n,r,!0);t.clear();for(let e of ff)mf(e);h()?.functions.pingVisibleLinks?.()}function Sf(){let e=!1;for(let t of new Set(q().values()))t.prefetchKind===void 0&&t.reuseAfterHistoryRestore!==!0&&(e||=t.cacheForNavigation!==!1,t.cacheForNavigation=!1);e&&h()?.functions.pingVisibleLinks?.()}function Cf(e,t,n=null,r=null,i=Ed,a=!1){let o=O.encodeCacheKey(e,n),s=q(),c=s.get(o);c&&X(s,J(),o,c,!1);let l=Date.now(),u={cacheForNavigation:!0,cacheKeys:new Set([o]),expiresAt:Bd(l,t,i),mountedSlotsHeader:r,outcome:`cache-seeded`,reuseAfterHistoryRestore:a,size:t.buffer.byteLength,snapshot:t,timestamp:l};s.set(o,u),tf(s,t.buffer.byteLength),J().add(o),_f(o,u),rf()}function wf(e,t,n=null){let r=O.encodeCacheKey(e,n),i=q(),a=i.get(r);a?.snapshot===t&&X(i,J(),r,a,!1)}function Tf(e,t,n=null,r){let i=O.encodeCacheKey(e,n),a=q(),o=J(),s=a.get(i);s&&X(a,o,i,s,!1);
32let c={cacheKeys:new Set([i]),mountedSlotsHeader:null,outcome:`pending`,timestamp:Date.now()};vf(c,r?.onInvalidate),c.pending=kf(t).then(e=>{if(a.get(i)!==c)return;let t=Zd(c);c.mountedSlotsHeader=e.mountedSlotsHeader??null,c.snapshot=e,c.size=e.buffer.byteLength,tf(a,c.size-t),c.expiresAt=Bd(c.timestamp,e,K),rf()}).catch(()=>{X(a,o,i,c,!1)}).finally(()=>{a.get(i)===c&&(c.pending=void 0,c.snapshot&&(c.outcome=`cache-seeded`,_f(i,c)))}),a.set(i,c)}function Ef(e,t,n=null){let r=Id(e.headers.get(ut)),i=e.headers.get(dt),a=i===`1`?Sc(t):{buffer:t},o=i===`resolved`?r:a.metadata?.dynamicStaleTimeSeconds??r,s=o??r,c=Df(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;return{compatibilityIdHeader:e.headers.get(P),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(b),paramsHeader:e.headers.get(lt),renderedPathAndSearch:Of(e.headers.get(ft)),...l===void 0?{}:{serverStaleTime:l},url:n??e.url}}function Df(e){if(e.get(`X-Vinext-Stale-Time-Pending`)===`1`)return{kind:`pending`};let t=Id(e.get(St));return t===void 0?void 0:{kind:`resolved`,seconds:t}}function Of(e){if(e===null||e===``)return null;try{let t=decodeURIComponent(e);return t.startsWith(`/`)?t:null}catch{return null}}async function kf(e){try{let t=Ef(e,await e.arrayBuffer()),n=Af.get(e);return n===void 0?t:{...t,expiresAt:n}}finally{ed(e)}}var Af=new WeakMap;function jf(e,t=!0){let n=new Headers({"content-type":e.contentType});e.mountedSlotsHeader!=null&&n.set(b,e.mountedSlotsHeader),e.compatibilityIdHeader!=null&&n.set(P,e.compatibilityIdHeader),Pd(e.dynamicStaleTimeSeconds)&&n.set(ut,String(e.dynamicStaleTimeSeconds)),Pd(e.completedDynamicStaleTimeSeconds)&&n.set(dt,`resolved`),e.serverStaleTime?.kind===`pending`?n.set(Ct,`1`):e.serverStaleTime!==void 0&&n.set(St,String(e.serverStaleTime.seconds)),e.paramsHeader!=null&&n.set(lt,e.paramsHeader),e.renderedPathAndSearch!=null&&n.set(ft,encodeURIComponent(e.renderedPathAndSearch));let r=new Response(t?e.buffer.slice(0):e.buffer,{status:200,headers:n});return Fd(e.expiresAt)&&Af.set(r,e.expiresAt),r}async function Mf(e){let t=h()?.functions.preparePrefetchResponse;if(!t)throw Error(`App Router prefetch preparation is unavailable`);return await t(jf(e))}async function Nf(e){let{fetchFullRscPayload:t,fetchRouteTree:n,fullHref:r,headers:i,interceptionContext:a,mountedSlotsHeader:o}=e,s=new Headers(i);s.set(v,`1`),s.set(y,`/_tree`);let c=await I(r,s),l=O.encodeCacheKey(c,a),u=Nd(l);u===void 0&&(J().add(l),Pf(c,n(c,s),a,o,void 0,{cacheForNavigation:!1,optimisticRouteShell:!1,prefetchKind:`route-tree`}),u=Nd(l)),await u?.pending?.catch(()=>{}),u=Nd(l);let d=u?.snapshot?.renderedPathAndSearch;if(d){let e=If(await I(d,i),a,o);if(e)return jf(e)}return t()}function Pf(e,t,n=null,r=null,i,a={}){let o=O.encodeCacheKey(e,n),s=q(),c=J(),l=Date.now(),u=s.get(o),d=a.cacheForNavigation??!0;u&&X(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};vf(f,i?.onInvalidate),f.fetchPromise=t,f.pending=t.then(async e=>{if(e.ok){let t=await kf(e);if(s.get(o)!==f)return;let n=Zd(f);if(f.snapshot=t,f.size=t.buffer.byteLength,tf(s,f.size-n),f.expiresAt=Vd(f.timestamp,f.snapshot,a.fallbackTtlMs??K,a.searchAgnosticShell===!0?`ignore`:a.dynamicStaleTime??(a.optimisticRouteShell===!0?`ignore`:`verbatim`)),a.prepareSnapshot)try{let e=await a.prepareSnapshot(t);if(s.get(o)!==f)return;f.preparedElements=e}catch{}Ff(s,c,o,f),rf()}else ed(e),X(s,c,o,f,!1)}).catch(()=>{X(s,c,o,f,!1)}).finally(()=>{s.get(o)===f&&(f.pending=void 0,f.fetchPromise=void 0,f.snapshot&&(f.outcome=`cache-seeded`,_f(o,f)))}),s.set(o,f),rf()}function Ff(e,t,n,r){if(r.cacheForNavigation===!1)return;let i=r.snapshot?.renderedPathAndSearch;if(!i)return;let a=Gd(n),o=O.encodeCacheKey(i,a.interceptionContext);if(o===n)return;let s=e.get(o);s&&s!==r&&X(e,t,o,s,!1),r.cacheKeys??=new Set([n]),r.cacheKeys.add(o),e.set(o,r),t.add(o)}function If(e,t=null,n=null,r){let i=qd(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:Y(o)<=Date.now()?(X(q(),J(),a,o,!0),null):o.expiresAt!==void 0||o.snapshot.expiresAt!==void 0?{...o.snapshot,expiresAt:Y(o)}:o.snapshot}
32function Lf(e,t=null,n=null,r){let i=q(),a=O.encodeCacheKey(e,t),o=i.get(a);o&&o.cacheForNavigation!==!1&&!Kd(o,n)&&X(i,J(),a,o,!1);let s=qd(e,t,n,r?.additionalRscUrls);if(!s)return null;let{cacheKey:c,entry:l}=s;return Rf(c,l,n)}function Rf(e,t,n,r=!1){let i=q();if(t.pending||t.outcome!==`cache-seeded`||t.cacheForNavigation===!1)return null;if(t.snapshot){if(!Kd(t,n))return null;if(!r&&Y(t)<=Date.now())return X(i,J(),e,t,!0),null;pf(t),X(i,J(),e,t,!1);let a=t.snapshot;return t.expiresAt!==void 0||t.snapshot.expiresAt!==void 0?{...a,expiresAt:Y(t),...t.preparedElements?{preparedElements:t.preparedElements}:{}}:t.preparedElements?{...a,preparedElements:t.preparedElements}:a}return null}async function zf(e,t=null,n=null,r){let i=q(),a=qd(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;return s.pending!==void 0&&(rd(s.fetchPromise),await s.pending.catch(()=>{}),i.get(o)!==s||r?.shouldConsume?.()===!1)?null:Rf(o,s,n,c)}var Bf=Symbol.for(`vinext.clientNavigationState`),Vf=Symbol.for(`vinext.mountedSlotsHeader`);function Hf(e){let t=window;t[Vf]=e}function Uf(){return window[Vf]??null}function Z(){let e=window;return e[Bf]??={listeners:new Set,cachedSearch:window.location.search,cachedReadonlySearchParams:new W(window.location.search),cachedPathname:_(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,hasPendingNavigationUpdate:!1,suppressUrlNotifyCount:0,navigationSnapshotActiveCount:0},e[Bf]}function Wf(){let e=Z();if(e)for(let t of e.listeners)t()}globalThis[bd]=Wf;var Gf=null,Kf=new WeakMap,qf=null,Jf=null;function Yf(e){let t=Kf.get(e);if(t)return t;let n=e.toString();if(qf===n&&Jf)return Kf.set(e,Jf),Jf;let r=new W(e);return Kf.set(e,r),qf=n,Jf=r,r}function Xf(){let e=Gu();return e?e.pathname:Z()?.cachedPathname??`/`}var Zf=null;function Qf(){if(k())return ep();let e=Gu();return e?Yf(e.searchParams):Z()?.cachedReadonlySearchParams||(Zf===null&&(Zf=new W),Zf)}function $f(){let e=Z();if(!e)return!1;let t=!1,n=_(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 W(r),t=!0),t}function ep(){let e=k();if(!e){let e=Gu();return e?Yf(e.searchParams):(Gf===null&&(Gf=new W),Gf)}let t=e.searchParams,n=e[_d],r=e[vd];if(n&&r===t)return n;let i=t.toString();if(n&&e[yd]===i)return e[vd]=t,n;let a=new W(t);return e[_d]=a,e[vd]=t,e[yd]=i,a}function tp(){let e=Z();e&&e.navigationSnapshotActiveCount++}var np={},rp=Symbol.for(`vinext.clientNavigationRenderContext`);function ip(){if(typeof a.createContext!=`function`)return null;let e=globalThis;return e[rp]||(e[rp]=a.createContext(null)),e[rp]??null}function ap(){let e=ip();if(!e||typeof a.useContext!=`function`)return null;try{return a.useContext(e)}catch{return null}}function op(e,t){let n=window.location.origin,r=new URL(e,n);return{pathname:_(r.pathname,``),search:r.search,searchParams:new W(r.search),params:t}}function sp(e){return e.pathname+e.search}var cp=np,lp=`{}`;function up(e){let t=Z();if(!t){let t=JSON.stringify(e);t!==lp&&(cp=e,lp=t);return}let n=JSON.stringify(e);n!==t.clientParamsJson&&(t.clientParams=e,t.clientParamsJson=n,t.pendingClientParams=null,t.pendingClientParamsJson=null,Wf())}function dp(e){let t=Z();if(!t)return;let n=JSON.stringify(e);n!==t.clientParamsJson&&n!==t.pendingClientParamsJson&&(t.pendingClientParams=e,t.pendingClientParamsJson=n,t.hasPendingNavigationUpdate=!0)}function fp(){return Z()?.clientParams??cp}function pp(e,t){let n=Z();n&&(n.pendingPathname=_(e,``),n.pendingPathnameNavId=t)}function mp(e){let t=Z();t&&(t.pendingPathnameNavId===null||t.pendingPathnameNavId===e)&&(t.pendingPathname=null,t.pendingPathnameNavId=null)}function hp(){let e=Z(),t=k();if(t)return t.params;let n=Gu();return n?n.params:e?.clientParams??np}function gp(){let e=k();if(e)return e.params;let t=Gu();return t?t.params:np}function _p(e){let t=Z();return t?(t.listeners.add(e),()=>{t.listeners.delete(e)}):()=>{}}function vp(){let e=ap(),t=a.useSyncExternalStore(_p,Xf,()=>{let e=k();if(e)return e.pathname;let t=Gu();return t?t.pathname:`/`});return e&&(Z()?.navigationSnapshotActiveCount??0)>0?e.pathname:t}function yp(){let e=ap(),t=a.useSyncExternalStore(_p,Qf,ep);return e&&(Z()?.navigationSnapshotActiveCount??0)>0?e.searchParams:t}function bp(){let e=ap(),t=a.useSyncExternalStore(_p,hp,gp);return e&&(Z()?.navigationSnapshotActiveCount??0)>0?e.params:t}function xp(e){let t=Z();if(!t)return e();t.suppressUrlNotifyCount+=1;try{return e()}finally{--t.suppressUrlNotifyCount}}function Q(e,t){let n=Z();if(!n)return;(t?.releaseSnapshot??e!==void 0)&&n.navigationSnapshotActiveCount>0&&--n.navigationSnapshotActiveCount;let r=$f(),i=!1;
32n.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)&&Yr(),a&&Wf()}function Sp(e,t,n){xp(()=>{Z()?.originalPushState.call(window.history,e,t,n)})}function Cp(e,t,n){xp(()=>{Z()?.originalReplaceState.call(window.history,e,t,n)})}function wp(){Cp({...window.history.state??{},__vinext_scrollX:window.scrollX,__vinext_scrollY:window.scrollY},``)}function Tp(e,t,n){let r=h()?.functions.commitHashNavigation;if(r){r(e,t,n);return}let i=lc(window.history.state);t===`replace`?Cp(i,``,e):Sp(i,``,e)}function Ep(e){if(typeof document<`u`){if(e.hash!==null){Ar(e.hash,()=>Da(e));return}e.targetHoistedInHead||(document.documentElement.scrollTop=0)}}function Dp(e){queueMicrotask(()=>{let t=Ea();if(t===null||t.id!==e.id)return;let n=Aa(e);n&&Ep(n)})}function Op(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(()=>jr(t,n)):jr(t,n)})}}
32function kp(e,t){t===`replace`?window.location.replace(e):window.location.assign(e)}function Ap(){h()?.functions.notifyLinkNavigationStart?.()}function jp(e){let t=cf(e);t!==null&&!Iu(e,window.location.href,``)&&sf(t),Ap()}function Mp(){let e=cf(window.location.href);e!==null&&sf(e),Ap()}async function Np(e,t,n,r=!1,i=`transition`){jp(e);let a=e;if(Ql(e)){let n=Ou(e,``);if(n==null){Ms(e,t);let n=h()?.functions.navigateExternal;if(n){await n(e,t);return}kp(e,t),await new Promise(()=>{});return}a=n}let o=hd(a);if(o===`pages`||o===`document`){let e=Fu(a,window.location.href,``,Sd);Ms(e,t),t===`push`&&wp(),kp(e,t),await new Promise(()=>{});return}let s=Fu(a,window.location.href,``,Sd);Ms(s,t),t===`push`&&wp();let c=Zl.classifyEarlyNavigationIntent({basePath:``,currentUrlSpace:`browser`,currentHref:window.location.href,mode:t,scroll:n,targetHref:s});if(c.kind===`sameDocumentScroll`){Ta(),Tp(s,c.mode,c.scroll),Ii(s),Q(),c.scroll&&kr(c.hash);return}if(pc(typeof document>`u`?void 0:document)){let e=h()?.functions.navigateExternal;if(e){await e(s,t);return}kp(s,t),await new Promise(()=>{});return}let l=s.indexOf(`#`),u=l===-1?``:s.slice(l),d=n?wa(u||null):null;n||Ta();let f=h()?.functions.navigate;try{f?await f(s,0,`navigate`,t,void 0,r,void 0,d,i,c.bypassNavigationCache):(t===`replace`?Cp(null,``,s):Sp(null,``,s),Q())}catch(e){throw d&&Aa(d),e}d&&Dp(d)}var Pp=0;function Fp(){Pp+=1;let e=!1;return()=>{e||(e=!0,Pp=Math.max(0,Pp-1))}}function Ip(){return Pp>0}function Lp(e){queueMicrotask(e)}var Rp={bfcacheId:`0`,push(e,t){Mc(e),jp(e);let n=Fp();try{a.startTransition(()=>{Np(e,`push`,t?.scroll!==!1,!0)})}catch(e){throw n(),e}Lp(n)},replace(e,t){Mc(e),jp(e);let n=Fp();try{a.startTransition(()=>{Np(e,`replace`,t?.scroll!==!1,!0)})}catch(e){throw n(),e}Lp(n)},back(){window.history.back()},forward(){window.history.forward()},refresh(){if(h()?.functions.clearNavigationCaches?.(),Ip())return;let e=h()?.functions.navigate;e&&a.startTransition(()=>{e(window.location.href,0,`refresh`,void 0,void 0,!0)})},prefetch(e,t){if(Mc(e),Vu(window.navigator?.userAgent??``))return;try{new URL(Mu(e,``),window.location.href)}catch{throw Error(`Cannot prefetch '${e}' because it cannot be converted to a URL.`)}let n=Ql(e)?Ou(e,``):e;if(n==null)return;let r=cf(n);if(r===null)return;let i=Ad(r),a=Uf(),o=Md({fetchPriority:`low`,interceptionContext:i,mountedSlotsHeader:a||null}),s=of(r);(async()=>{let e=hd(r);if(e===`pages`||e===`document`)return;let n=t?.kind===`full`?`full`:`auto`,[{resolveAutoAppRoutePrefetch:c,resolveFullAppRoutePrefetch:l},{resolveAppPrefetchRscRequest:u}]=await Promise.all([ld(()=>Promise.resolve().then(()=>Jp),void 0),ld(()=>Promise.resolve().then(()=>Kp),void 0)]);if(s.cancelled)return;let d=n===`full`?l():c(r),f=d.shouldPrefetch&&d.cacheForNavigation,ee=d.requiresRouteTreePrefetch===!0;f&&n===`full`&&o.delete(v),f&&n===`auto`&&(o.set(v,`1`),o.set(y,ee?`/__PAGE__`:`1`));let te=new URL(r,window.location.href).search!==``;!f&&n===`auto`&&(o.set(v,`1`),o.set(y,`1`),o.set(x,te?Vo:Ho));let{additionalRscUrls:ne,rscUrl:p}=await u({fullHref:r,headers:o,rewrittenPrefetchHref:null});if(s.cancelled)return;let re=O.encodeCacheKey(p,i),ie=J();if(f){if(hf(p,i),Jd(p,i,a,{additionalRscUrls:ne,onInvalidate:t?.onInvalidate}))return}else if(Yd(p,i)){bf(re,t?.onInvalidate);return}ie.add(re);let ae=()=>td(e=>fetch(p,{headers:o,credentials:`include`,priority:`low`,signal:e}),`low`);Pf(p,f&&n===`auto`&&ee?Nf({fetchFullRscPayload:ae,fetchRouteTree:(e,t)=>td(n=>fetch(e,{headers:t,credentials:`include`,priority:`low`,signal:n}),`low`),fullHref:r,headers:o,interceptionContext:i,mountedSlotsHeader:a}):ae(),i,a,t,f?{cacheForNavigation:!0,fallbackTtlMs:d.fallbackTtl===`dynamic`?Ed:K,dynamicStaleTime:d.dynamicStaleTime,optimisticRouteShell:!1,prefetchKind:`navigation`,prepareSnapshot:Mf}:{cacheForNavigation:!1,fallbackTtlMs:d.fallbackTtl===`dynamic`?Ed:K,dynamicStaleTime:d.dynamicStaleTime,optimisticRouteShell:!0,prefetchKind:`navigation`})})().catch(e=>{console.error(`[vinext] RSC prefetch setup error:`,e)}).finally(()=>{af.delete(s)})}};function zp(e){return!e||e===`0`?Hu:e}function Bp(){let e=Ur(),t=Hr();if(!e||!t||typeof a.useContext!=`function`)return zp(null);try{let n=a.useContext(e),r=a.useContext(t);return zp(n===null?null:r?.[n])}catch{return zp(null)}}var Vp=Rp;function Hp(){if(!yr||typeof a.useContext!=`function`||typeof a.useMemo!=`function`)throw Error(`invariant expected app router to be mou
32nted`);let e=a.useContext(yr);if(e===null)throw Error(`invariant expected app router to be mounted`);let t=Bp();return a.useMemo(()=>({...e,bfcacheId:t}),[e,t])}function Up(e){let t=Wp(e);return t.length===0?null:e===void 0||e===`children`?t[0]:t[t.length-1]}function Wp(e){return gd(e)}function Gp(e){typeof document>`u`&&ni(e)}{let e=Z();e&&!e.patchInstalled&&(e.patchInstalled=!0,window.addEventListener(`popstate`,()=>{Mp()}),window.addEventListener(`popstate`,e=>{he()||(Q(),Op(e.state))}),window.history.pushState=function(t,n,r){if(Ys(t)){let i=window.history.state;e.originalPushState.call(window.history,t,n,r),h()?.functions.commitAppOwnedHistoryStateWrite?.(`push`,i);return}let i=window.history.state;e.originalPushState.call(window.history,Ks(t,window.history.state),n,r),h()?.functions.claimCurrentHistoryTreeSnapshot?.(`push`,i),e.suppressUrlNotifyCount===0&&(Ap(),Q())},window.history.replaceState=function(t,n,r){if(Ys(t)){let i=window.history.state;e.originalReplaceState.call(window.history,t,n,r),h()?.functions.commitAppOwnedHistoryStateWrite?.(`replace`,i);return}let i=window.history.state;e.originalReplaceState.call(window.history,Ks(t,window.history.state),n,r),h()?.functions.claimCurrentHistoryTreeSnapshot?.(`replace`,i),e.suppressUrlNotifyCount===0&&(Ap(),Q())})}var Kp=e({resolveAppPrefetchRscRequest:()=>qp});async function qp({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}}var Jp=e({canAutoPrefetchFullAppRoute:()=>$p,resolveAutoAppRoutePrefetch:()=>em,resolveFullAppRoutePrefetch:()=>tm}),Yp=``,Xp=iu();function Zp(e){let t;try{t=new URL(e,window.location.href)}catch{return null}return t.origin===window.location.origin?`${_(t.pathname,Yp)}${t.search}`:null}
32var Qp={cacheForNavigation:!1,dynamicStaleTime:`verbatim`,fallbackTtl:`static`,prefetchShellFirst:!1,shouldPrefetch:!1};function $p(e){return em(e).cacheForNavigation}function em(e){let t=window.__VINEXT_LINK_PREFETCH_ROUTES__;if(!t)return Qp;let n=Zp(e);if(n===null)return Qp;let r=ou(n,t,Xp);if(!r)return Qp;let i=r.route,a=new URL(n,`http://vinext.local`).search!==``;i.patternParts.length===1&&i.patternParts[0]?.startsWith(`:`);let o=i.isDynamic&&!1,s=!a&&!o&&!i.canPrefetchLoadingShell&&i.requiresDynamicNavigationRequest!==!0;return{cacheForNavigation:s,dynamicStaleTime:s?`verbatim`:`ignore`,fallbackTtl:`static`,prefetchShellFirst:a||!i.isDynamic,shouldPrefetch:!0}}function tm(){return{cacheForNavigation:!0,dynamicStaleTime:`full-prefetch`,fallbackTtl:`static`,prefetchShellFirst:!0,shouldPrefetch:!0}}var nm=typeof a.createContext==`function`?a.createContext(void 0):null;function rm(e){return!e||typeof a.useContext!=`function`?function(){}:function(){return a.useContext(e)}}var im=rm(nm);function am(){return im()}var om=a.createContext(null);function sm(){return a.useContext(om)}var cm=new Set([`title`,`meta`,`link`,`style`,`script`,`base`,`noscript`]);Array.from(cm).join(`, `);var lm={script:/<\/(script)/gi,style:/<\/(style)/gi};function um(e,t){let n=lm[t];return n?e.replace(n,`<\\/$1`):e}var dm=e({StreamedIconsInsertion:()=>hm,reconcileStreamedIcons:()=>mm}),fm=`data-vinext-streamed-icon`;function pm(e,t){let n=e.getAttribute(fm),r=`${t}:`;if(!n?.startsWith(r))return null;let i=Number(n.slice(r.length));return Number.isInteger(i)&&i>=0?i:null}function mm(e){document.querySelectorAll(`body link[${fm}]`).forEach(e=>document.head.appendChild(e));let t=[...document.querySelectorAll(`head link[${fm}]`)],n=new Map;for(let r of t){let t=pm(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 hm({metadataKey:e}){return(0,a.useLayoutEffect)(()=>mm(e),[e]),null}var gm=Symbol.for(`vinext.routerContext`),_m=globalThis,vm=_m[gm]??(_m[gm]=(0,a.createContext)(null));function ym({basePath:e,domainLocales:t,hostname:n}){return uu(_(window.location.pathname,e),window.__VINEXT_LOCALES__)||(cu(t,n??void 0)?.defaultLocale??window.__VINEXT_LOCALE__??window.__VINEXT_DEFAULT_LOCALE__)}function bm(){return window.location?.pathname??`/`}function xm(e){return e.nodeEnv===`production`&&e.prefetch!==!1&&!e.isDangerous}function Sm(e){return e.nodeEnv!==`production`||e.isDangerous?!1:e.routerMode===`pages`||e.prefetch!==!1}function Cm(e){let{href:t,basePath:n,currentOrigin:r}=e;if(!Tu(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);return i.origin===e.origin?n?De(i.pathname,n)?_(i.pathname,n)+i.search+i.hash:null:i.pathname+i.search+i.hash:null}catch{return null}}var $=null,wm=!1;function Tm(e){$&&$!==e&&$(!1),$=e,wm=!0}function Em(e){$===e&&($=null)}function Dm(){if(wm){wm=!1;return}$&&=($(!1),null)}export{td as $,Ke as $n,_s as $t,Sf as A,jr as An,Qs as At,Cp as B,fr as Bn,rc as Bt,Q as C,Ni as Cn,wc as Ct,op as D,Hr as Dn,Xs as Dt,Ef as E,yi as En,ec as Et,xf as F,br as Fn,nc as Ft,Cf as G,bn as Gn,Ms as Gt,Hd as H,an as Hn,Ns as Ht,ud as I,yr as In,oc as It,pp as J,zt as Jn,Xo as Jt,up as K,Kt as Kn,js as Kt,If as L,cr as Ln,ic as Lt,Uf as M,Er as Mn,ac as Mt,q as N,Dr as Nn,Js as Nt,sp as O,Vr as On,Ks as Ot,Jd as P,Sr as Pn,$s as Pt,Ku as Q,vt as Qn,ts as Qt,Sp as R,ur as Rn,uc as Rt,mp as S,Ri as Sn,jc as St,zf as T,bi as Tn,Us as Tt,jf as U,pn as Un,Ps as Ut,Bd as V,on as Vn,dc as Vt,wp as W,O as Wn,As as Wt,Hp as X,lt as Xn,xs as Xt,vp as Y,gt as Yn,Jo as Yt,ld as Z,_t as Zn,I as Zt,Ed as _,fa as _n,Vc as _t,xm as a,Po as an,Te as ar,Mu as at,tp as b,Ii as bn,Pc as bt,ym as c,Qa as cn,g as cr,yu as ct,um as d,Ga as dn,he as dr,Ql as dt,vs as en,Oe as er,Vu as et,sm as f,ja as fn,ge as fr,Zl as ft,Kp as g,ha as gn,Bc as gt,tm as h,Aa as hn,o as hr,H as ht,Sm as i,Fo as in,we as ir,Ou as it,ip as j,Ar as jn,Zs as jt,wf as k,ti as kn,Gs as kt,vm as l,Xa as ln,pe as lr,lu as lt,em as m,Oa as mn,fe as mr,qc as mt,Dm as n,lo as nn,_ as nr,ju as nt,Cm as o,$a as on,Ee as or,xu as ot,am as p,wa as pn,de as pr,Il as pt,Hf as q,Gt as qn,P as qt,Tm as r,to as rn,Ce as rr,Fu as rt,bm as s,Ya as sn,xe as sr,Su as st,Em as t,Ro as tn,ke as tr,Tu as tt,dm as u,Za as un,h as ur,fu as ut,K as v,ia as vn,U as vt,Lf as w,ki as wn,mc as wt,Vp as x,Fi as xn,Ac as xt,xd as y,ra as yn,Uc as yt,dp as z,dr as zn,tc as zt};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.