1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_next/static/chunks/hybrid-client-route-owner-ysZ4Qx8j.js","_next/static/chunks/query-DugiHe4Q.js"])))=>i.map(i=>d[i]); 2import{n as e,r as t,t as n}from"./rolldown-runtime-hePW80VL.js";import{i as r,n as i,r as a}from"./framework-BlZLPK95.js";var o=t(r(),1);function s(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var c=Symbol.for(`vinext.navigationRuntime`),l=[`boundaries`,`defaults`,`interceptions`,`interceptionsBySlotId`,`layouts`,`pages`,`rootBoundaries`,`routeHandlers`,`routes`,`slotBindings`,`slots`,`templates`];function u(){return{bootstrap:{routeManifest:null,rsc:void 0},functions:{}}}function d(){return window}function f(e){return s(e)?h(Reflect.get(e,`clearNavigationCaches`))&&h(Reflect.get(e,`commitHashNavigation`))&&h(Reflect.get(e,`navigateExternal`))&&h(Reflect.get(e,`navigate`))&&h(Reflect.get(e,`getPrefetchRouterState`))&&h(Reflect.get(e,`notifyLinkNavigationStart`))&&h(Reflect.get(e,`pingVisibleLinks`))&&h(Reflect.get(e,`preparePrefetchResponse`))&&h(Reflect.get(e,`claimCurrentHistoryTreeSnapshot`))&&h(Reflect.get(e,`commitAppOwnedHistoryStateWrite`)):!1}function p(e){return typeof e==`string`||Array.isArray(e)&&e.length===2&&e[0]===3&&typeof e[1]==`string`}function ee(e){if(!s(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 s(e)?Object.values(e).every(e=>typeof e==`string`||Array.isArray(e)&&e.every(e=>typeof e==`string`)):!1}function ne(e){if(!s(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`),o=Reflect.get(e,`params`),c=Reflect.get(e,`rsc`),l=Reflect.get(e,`staleTimeSeconds`);return(t===void 0||typeof t==`boolean`)&&m(n)&&(r===void 0||r===`dynamic`||r===`static`)&&(i===void 0||typeof i==`boolean`)&&(a===void 0||ee(a))&&(o===void 0||te(o))&&Array.isArray(c)&&c.every(p)&&m(l)}function m(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 s(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(!s(e))return!1;let t=Reflect.get(e,`graphVersion`),n=Reflect.get(e,`segmentGraph`);if(typeof t!=`string`||!s(n))return!1;let r=Reflect.get(n,`interceptions`),i=Reflect.get(n,`interceptionsBySlotId`);if(!l.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(!s(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(!s(e)||!(`bootstrap`in e)||!(`functions`in e))return!1;let{bootstrap:t,functions:n}=e;return ce(t)&&f(n)}function h(e){return e===void 0||typeof e==`function`}function g(){let e=d();if(e===null)return null;let t=Reflect.get(e,c);return le(t)?t:null}function ue(){let e=d();if(e===null)return u();let t=Reflect.get(e,c),n=le(t)?t:u();return Reflect.set(e,c,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 g()?.functions.navigate==`function`}function ge(){return g()!==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 _(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 v(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=e({ACTION_FORWARDED_HEADER:()=>vt,ACTION_REDIRECT_HEADER:()=>bt,ACTION_REDIRECT_STATUS_HEADER:()=>St,ACTION_REDIRECT_TYPE_HEADER:()=>xt,ACTION_REVALIDATED_HEADER:()=>yt,FLIGHT_HEADERS:()=>At,INTERNAL_HEADERS:()=>jt,MIDDLEWARE_HEADER_PREFIX:()=>Re,MIDDLEWARE_NEXT_HEADER:()=>Ct,MIDDLEWARE_REWRITE_HEADER:()=>wt,MIDDLEWARE_SET_COOKIE_HEADER:()=>Ie,MIDDLEWARE_SKIP_HEADER:()=>Le,NEXTJS_ACTION_NOT_FOUND_HEADER:()=>mt,NEXTJS_CACHE_HEADER:()=>Ve,NEXTJS_DEPLOYMENT_ID_HEADER:()=>_t,NEXT_ACTION_HEADER:()=>pt,NEXT_CACHE_TAGS_HEADER:()=>He,NEXT_HTML_REQUEST_ID_HEADER:()=>kt,NEXT_REQUEST_ID_HEADER:()=>Ot,NEXT_ROUTER_PREFETCH_HEADER:()=>S,NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:()=>C,NEXT_ROUTER_STALE_TIME_HEADER:()=>ht,NEXT_ROUTER_STATE_TREE_HEADER:()=>Et,NEXT_URL_HEADER:()=>w,RSC_ACTION_HEADER:()=>ft,RSC_HEADER:()=>`RSC`,VINEXT_CACHEABILITY_PROBE_HEADER:()=>Ge,VINEXT_CACHEABILITY_PROBE_QUERY_PARAM:()=>Ke,VINEXT_CACHE_HEADER:()=>Be,VINEXT_CLIENT_REUSE_MANIFEST_HEADER:()=>lt,VINEXT_DYNAMIC_STALE_TIME_HEADER:()=>tt,VINEXT_EXPECTED_WORKER_VERSION_HEADER:()=>We,VINEXT_INTERCEPTION_CONTEXT_HEADER:()=>st,VINEXT_INTERCEPTION_ID_HEADER:()=>ct,VINEXT_INTERNAL_HEADERS:()=>Mt,VINEXT_METADATA_ROUTE_CACHE_HEADER:()=>ot,VINEXT_MOUNTED_SLOTS_HEADER:()=>y,VINEXT_MW_CTX_HEADER:()=>Ae,VINEXT_PARAMS_HEADER:()=>et,VINEXT_PRERENDER_CACHE_LIFE_HEADER:()=>it,VINEXT_PRERENDER_METADATA_ROUTES_PATH:()=>Ye,VINEXT_PRERENDER_PAGES_STATIC_PATHS_PATH:()=>Je,VINEXT_PRERENDER_READINESS_HEADER:()=>Ze,VINEXT_PRERENDER_READINESS_PATH:()=>Xe,VINEXT_PRERENDER_RENDER_ERROR_HEADER:()=>at,VINEXT_PRERENDER_ROUTE_PARAMS_HEADER:()=>Me,VINEXT_PRERENDER_SECRET_HEADER:()=>je,VINEXT_PRERENDER_SPECULATIVE_HEADER:()=>Ne,VINEXT_PRERENDER_STATIC_PARAMS_PATH:()=>qe,VINEXT_RENDERED_PATH_AND_SEARCH_HEADER:()=>rt,VINEXT_REVALIDATE_HEADER:()=>Qe,VINEXT_REVALIDATE_HOST_HEADER:()=>Pe,VINEXT_RSC_COMPLETION_METADATA_HEADER:()=>nt,VINEXT_RSC_MARKER_HEADER:()=>$e,VINEXT_RSC_REDIRECT_HEADER:()=>ut,VINEXT_RSC_REDIRECT_TYPE_HEADER:()=>dt,VINEXT_RSC_RENDER_MODE_HEADER:()=>b,VINEXT_RSC_STATE_FINGERPRINT_HEADER:()=>x,VINEXT_RSC_VARY_HEADER:()=>Dt,VINEXT_STALE_TIME_PENDING_HEADER:()=>gt,VINEXT_TIMING_HEADER:()=>Ue}),Be=`X-Vinext-Cache`,Ve=`x-nextjs-cache`,He=`x-next-cache-tags`,Ue=`x-vinext-timing`,We=`X-Vinext-Expected-Worker-Version`,Ge=`X-Vinext-Cacheability-Probe`,Ke=`__vinext_cacheability_probe`,qe=`/__vinext/prerender/static-params`,Je=`/__vinext/prerender/pages-static-paths`,Ye=`/__vinext/prerender/metadata-routes`,Xe=`/__vinext/prerender/readiness`,Ze=`X-Vinext-Prerender-Readiness`,Qe=`x-vinext-revalidate`,$e=`x-vinext-rsc`,et=`X-Vinext-Params`,y=`X-Vinext-Mounted-Slots`,tt=`X-Vinext-Dynamic-Stale-Time`,nt=`X-Vinext-Rsc-Completion-Metadata`,rt
2=`X-Vinext-Rendered-Path-And-Search`,it=`x-vinext-prerender-cache-life`,at=`x-vinext-prerender-render-error`,ot=`x-vinext-metadata-route-cache`,st=`X-Vinext-Interception-Context`,ct=`X-Vinext-Interception-Id`,b=`X-Vinext-Rsc-Render-Mode`,x=`X-Vinext-Rsc-State-Fingerprint`,lt=`X-Vinext-Client-Reuse-Manifest`,ut=`X-Vinext-Rsc-Redirect`,dt=`X-Vinext-Rsc-Redirect-Type`,ft=`x-rsc-action`,pt=`next-action`,mt=`x-nextjs-action-not-found`,ht=`x-nextjs-stale-time`,gt=`X-Vinext-Stale-Time-Pending`,_t=`x-nextjs-deployment-id`,vt=`x-action-forwarded`,yt=`x-action-revalidated`,bt=`x-action-redirect`,xt=`x-action-redirect-type`,St=`x-action-redirect-status`,Ct=`x-middleware-next`,wt=`x-middleware-rewrite`,Tt=`x-middleware-redirect`,Et=`Next-Router-State-Tree`,S=`Next-Router-Prefetch`,C=`Next-Router-Segment-Prefetch`,w=`Next-Url`,Dt=[`RSC`,Et,S,C,w,st,ct,y,b,x].join(`, `),Ot=`x-nextjs-request-id`,kt=`x-nextjs-html-request-id`,At=[`rsc`,`next-router-state-tree`,`next-router-prefetch`,`next-hmr-refresh`,`next-router-segment-prefetch`,`x-vinext-rsc-state-fingerprint`],jt=[wt,Tt,Ie,Le,Fe,Ct,`x-now-route-matches`,`x-matched-path`,`x-nextjs-data`,`x-next-resume-state-length`,vt],Mt=[Ge.toLowerCase(),We.toLowerCase(),Me,Ne,it,Pe];function Nt(e){return e.startsWith(`/`)&&!e.startsWith(`//`)&&!e.includes(`?`)&&!e.includes(`#`)&&!e.includes(`\\`)&&!e.includes(`\0`)}function Pt(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 Ft=(e,t)=>e<t?-1:+(e>t);function It(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 Lt=[`schemaVersion`,`graphVersion`,`deploymentVersion`,`appElementsSchemaVersion`,`rscPayloadSchemaVersion`,`rootBoundaryId`,`renderEpoch`];function Rt(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 zt(e){return typeof e==`string`||e===null}function Bt(e){return e.schemaVersion===1&&e.appElementsSchemaVersion===1&&e.rscPayloadSchemaVersion===1}function Vt(e){return!s(e)||!Bt(e)||!zt(e.graphVersion)||!zt(e.deploymentVersion)||!zt(e.rootBoundaryId)||!zt(e.renderEpoch)?null:{schemaVersion:1,graphVersion:e.graphVersion,deploymentVersion:e.deploymentVersion,appElementsSchemaVersion:1,rscPayloadSchemaVersion:1,rootBoundaryId:e.rootBoundaryId,renderEpoch:e.renderEpoch}}var T=a(),Ht=new WeakMap;function Ut(e,t){Ht.get(e)?.get(t)?.release()}var Wt=`\0`,Gt=`__sourcePage`,Kt=`__artifactCompatibility`,qt=`__cacheEntryReuseProof`,Jt=`__dynamicStaleTime`,Yt=`__interception`,Xt=`__interceptionContext`,Zt=`__layoutIds`,Qt=`__layoutFlags`,$t=`__route`,en=`__rootLayout`,tn=`__skippedLayoutIds`,nn=`__srcPage`,rn=`__slotBindings`,E=`__bfcacheSegmentIdentities`,an=`__staticSiblings`,on=`__VINEXT_UNMATCHED_SLOT__`,D=Symbol.for(`vinext.unmatchedSlot`),sn=new Set;function cn(e){return new Set(e)}var ln=cn(`CP_CACHE_ENTRY_PROOF_MISSING.CP_MODEL_DISABLED.CP_ARTIFACT_COMPATIBILITY_INCOMPATIBLE.CP_ARTIFACT_COMPATIBILITY_UNKNOWN.CP_DIMENSION_COUNT_EXCEEDED.CP_DIMENSION_NAME_MISSING.CP_DIMENSION_NAME_TOO_LONG.CP_DIMENSION_VALUE_COUNT_EXCEEDED.CP_DIMENSION_VALUE_TOO_LONG.CP_DIMENSION_VALUES_MISSING.CP_ENCODED_VARIANT_TOO_LONG.CP_INVALID_VARIANT_BUDGET.CP_ROUTE_VARIANT_BUDGET_ROUTE_MISMATCH.CP_ROUTE_VARIANT_CEILING_EXCEEDED.CP_UNSAFE_PUBLIC_DIMENSION.CP_BOUNDARY_OUTCOME_MISMATCH.CP_BOUNDARY_OUTCOME_UNKNOWN.CP_PRIVATE_DYNAMIC_DOWNGRADE.CP_STATIC_LAYOUT_CANDIDATE_OUTPUT_KIND.CP_STATIC_LAYOUT_CURRENT_OUTPUT_KIND.CP_STATIC_LAYOUT_ID_MISMATCH.CP_STATIC_LAYOUT_OBSERVATION_OUTPUT_KIND.CP_STATIC_LAYOUT_OBSERVATION_OUTPUT_MISMATCH.CP_STATIC_LAYOUT_PRIVATE_DYNAMIC_DOWNGRADE.CP_STATIC_LAYOUT_REQUEST_API_OBSERVED.CP_STATIC_LAYOUT_REQUEST_API_UNKNOWN.CP_STATIC_LAYOUT_ROOT_BOUNDARY_MISMATCH.CP_STATIC_LAYOUT_ROOT_BOUNDARY_UNKNOWN.CP_STATIC_LAYOUT_VARIANT_DIMENSION_UNPROVEN`.split(`.`)),O=Ft;function un(e,t){return O(e.slotId,t.slotId)}function dn(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`);
2if(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(un)}function fn(e,t){return t===null?e:`${e}${Wt}${t}`}function pn(e,t){return fn(`route:${e}`,t)}function mn(e,t){return fn(`page:${e}`,t)}function hn(e){return`layout:${e}`}function gn(e){return`template:${e}`}function _n(e,t){return`slot:${e}:${t}`}function vn(e,t){return fn(e,t)}function yn(e){let t=e.indexOf(Wt),n=t===-1?e:e.slice(0,t);return n.startsWith(`/`)?{interceptionContext:t===-1?null:e.slice(t+1),path:n}:null}function bn(e){return e.startsWith(`/`)?e:null}function k(e){if(e.startsWith(`route:`)){let t=yn(e.slice(6));return t?{interceptionContext:t.interceptionContext,kind:`route`,path:t.path}:null}if(e.startsWith(`page:`)){let t=yn(e.slice(5));return t?{interceptionContext:t.interceptionContext,kind:`page`,path:t.path}:null}if(e.startsWith(`layout:`)){let t=bn(e.slice(7));return t?{kind:`layout`,treePath:t}:null}if(e.startsWith(`template:`)){let t=bn(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=t.slice(0,n),i=bn(t.slice(n+1));return i?{kind:`slot`,name:r,treePath:i}:null}return null}function xn(e){let t=k(e)?.kind;return t===`page`||t===`layout`||t===`template`||t===`slot`}function Sn(e){if(!e.startsWith(`slot:`))return!1;let t=e.slice(5),n=t.indexOf(`:`);return n>0&&t.charCodeAt(n+1)===47}function Cn(e){return Array.isArray(e)&&e.length>0&&e.every(e=>typeof e==`string`&&e.length>0&&!e.includes(`/`))}function wn(e){if(typeof e!=`string`||!e.startsWith(`/`))return null;let t=e.slice(1).split(`/`);return Cn(t)?t:null}function Tn(e){let t=[...e.layoutIds??[]],n=wn(e.sourcePage),r={[$t]:e.routeId,[Xt]:e.interceptionContext,[Zt]:t,[en]:e.rootLayoutTreePath,...e.dynamicStaleTimeSeconds===void 0?{}:{[Jt]:e.dynamicStaleTimeSeconds},...e.bfcacheSegmentIdentities&&Object.keys(e.bfcacheSegmentIdentities).length>0?{[E]:e.bfcacheSegmentIdentities}:{},...n===null?{}:{[nn]:n}},i=e.interception?{...r,[Yt]:e.interception}:r;return e.slotBindings&&e.slotBindings.length>0?{...i,[rn]:dn(e.slotBindings,{layoutIds:t})}:i}function En(e){let t=!1;for(let[n,r]of Object.entries(e))if(Sn(n)&&r===`__VINEXT_UNMATCHED_SLOT__`){t=!0;break}if(!t)return e;let n={};for(let[t,r]of Object.entries(e))n[t]=Sn(t)&&r===`__VINEXT_UNMATCHED_SLOT__`?D:r;return n}function Dn(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 On(e){return Dn(e)?e:{}}function kn(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(k(r)?.kind!==`layout`)throw Error(`[vinext] Invalid ${t} in App Router payload: expected layout ids`);n.push(r)}return n}function An(e){return kn(e,Zt)}function jn(e){return kn(e,tn)}function Mn(e){return e===`active`||e==="default"||e===`unmatched`}function Nn(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(!s(t))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected objects`);let e=t.slotId;if(typeof e!=`string`||k(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`||k(r)?.kind!==`layout`))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected owner layout ids`);let i=t.state;if(!Mn(i))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected state`);let a=t.activeRouteId;if(a!=null&&(typeof a!=`string`||k(a)?.kind!==`route`))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected route ids`);let o=t.interceptionId;if(o!=null&&(typeof o!=`string`||o.length===0))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected interception ids`);let 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`&&Fn(c),n.push({...a===void 0?{}:{activeRouteId:a},...o===void 0?{}:{interceptionId:o},...c===void 0?{}:{interceptionSourceMatchedUrl:c},ownerLayoutId:r,slotId:e,state:i})}return dn(n,t)}function Pn(e,t){let n=e[t];if(typeof n!=`string`)throw Error(`[vinext] Invalid __interception in App Router payload: expected strings`);return n}function Fn(e){if(!Nt(e))throw Error(`[vinext] Invalid __interception in App Router payload: expected path URLs`);return e}function In(e,t){let n=k(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 Ln(e){if(k(e)?.kind!==`slot`)throw Error(`[vinext] Invalid __interception in App Router payload: expected slot id`);return e}function Rn(e){if(e==null)return null;if(!s(e))throw Error(`[vinext] Invalid __interception in App Router payload: expected object`);let t=Fn(Pn(e,`sourceMatchedUrl`)),n=Fn(Pn(e,`targetMatchedUrl`));return{sourceMatchedUrl:t,sourceRouteId:In(Pn(e,`sourceRouteId`),t),slotId:Ln(Pn(e,`slotId`)),targetMatchedUrl:n,targetRouteId:In(Pn(e,`targetRouteId`),n)}}function zn(e){return!(typeof e!=`object`||!e||Array.isArray(e)||(0,o.isValidElement)(e))}function Bn(e,t){return{...e,[Qt]:t}}function Vn(e){if(!zn(e.element))return e.element;
2let t=Hn(e.skipDisposition),n={};for(let[r,i]of Object.entries(e.element)){if(t.has(r)){Ut(e.element,r);continue}n[r]=i===D?on:i}return n[Qt]=e.layoutFlags,t.size>0&&(n[tn]=[...t]),n[Kt]=e.artifactCompatibility??Rt(),e.cacheEntryReuseProof&&(n[qt]=e.cacheEntryReuseProof),e.dynamicStaleTimeSeconds!==void 0&&(n[Jt]=e.dynamicStaleTimeSeconds),n}function Hn(e){if(e?.enabled!==!0)return sn;let t=new Set;for(let n of e.skippedEntryIds)k(n)?.kind===`layout`&&t.add(n);return t}function Un(e){return e===void 0?Rt():Vt(e)??Rt()}function Wn(e){return e==null?null:typeof e==`string`?e.startsWith(`/`)?e:null:Cn(e)?`/${e.join(`/`)}`:null}function Gn(){return{kind:`runtime-cache-entry`,decision:null}}function Kn(e){return typeof e==`string`&&ln.has(e)}function qn(e){return e===`renderFresh`||e===`privateUncacheable`}function Jn(e){return e===`affectedOutput`||e===`route`}function Yn(e){if(e===void 0)return null;if(!s(e)||e.kind!==`runtime-cache-entry`)return Gn();let t=e.decision;return t===null||!s(t)?Gn():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&&Kn(t.code)&&qn(t.mode)&&Jn(t.scope)?{kind:`runtime-cache-entry`,decision:{canReuse:!1,code:t.code,kind:`reject`,mode:t.mode,scope:t.scope}}:Gn()}function Xn(e){if(!s(e))return{};let t={};for(let[n,r]of Object.entries(e)){if(typeof r!=`string`||!xn(n))return{};t[n]=r}return t}function Zn(e){let t=e[$t];if(typeof t!=`string`)throw Error(`[vinext] Missing __route string in App Router payload`);let n=e[Xt];if(n!=null&&typeof n!=`string`)throw Error(`[vinext] Invalid __interceptionContext in App Router payload`);let r=e[en];if(r===void 0)throw Error(`[vinext] Missing __rootLayout key in App Router payload`);if(r!==null&&typeof r!=`string`)throw Error(`[vinext] Invalid __rootLayout in App Router payload: expected string or null`);let i=On(e[Qt]),a=An(e[Zt]),o=jn(e[tn]),s=Nn(e[rn],{layoutIds:a}),c=Rn(e[Yt]),l=Un(e[Kt]),u=Yn(e[qt]),d=e[Jt],f=typeof d==`number`&&Number.isFinite(d)&&d>=0?d:void 0,p=Object.hasOwn(e,`__srcPage`)?Wn(e[nn]):Wn(e[Gt]),ee=Xn(e[E]);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:ee,skippedLayoutIds:o,slotBindings:s,sourcePage:p}}var A={keys:{artifactCompatibility:Kt,cacheEntryReuseProof:qt,dynamicStaleTime:Jt,interception:Yt,interceptionContext:Xt,layoutIds:Zt,layoutFlags:Qt,rootLayout:en,route:$t,bfcacheSegmentIdentities:E,skippedLayoutIds:tn,slotBindings:rn,sourcePageSegments:nn},unmatchedSlotValue:on,createMetadataEntries:Tn,decode:En,encodeCacheKey:vn,encodeLayoutId:hn,encodeOutgoingPayload:Vn,encodePageId:mn,encodeRouteId:pn,encodeSlotId:_n,encodeTemplateId:gn,isSlotId:Sn,parseElementKey:k,readMetadata:Zn,withLayoutFlags:Bn},Qn=4096,$n=256,er=16;function tr(e){return e.length===0||e.length>$n?!1:A.isSlotId(e)}function nr(e){if(!e||e.length>Qn)return null;let t=e.split(/\s+/).filter(e=>e&&tr(e));return t.length===0?null:Array.from(new Set(t)).sort().slice(0,er).join(` `)||null}var rr=e({APP_ARTIFACT_COMPATIBILITY_KEY:()=>Kt,APP_BFCACHE_SEGMENT_IDENTITIES_KEY:()=>E,APP_CACHE_ENTRY_REUSE_PROOF_KEY:()=>qt,APP_DYNAMIC_STALE_TIME_KEY:()=>Jt,APP_INTERCEPTION_CONTEXT_KEY:()=>Xt,APP_INTERCEPTION_KEY:()=>Yt,APP_LAYOUT_FLAGS_KEY:()=>Qt,APP_LAYOUT_IDS_KEY:()=>Zt,APP_PREFETCH_LOADING_SHELL_MARKER_KEY:()=>ir,APP_ROOT_LAYOUT_KEY:()=>en,APP_ROUTE_KEY:()=>$t,APP_SKIPPED_LAYOUT_IDS_KEY:()=>tn,APP_SLOT_BINDINGS_KEY:()=>rn,APP_SOURCE_PAGE_SEGMENTS_KEY:()=>nn,APP_STATIC_SIBLINGS_KEY:()=>an,APP_UNMATCHED_SLOT_WIRE_VALUE:()=>on,AppElementsWire:()=>A,UNMATCHED_SLOT:()=>D,buildOutgoingAppPayload:()=>Vn,compareAppElementsSlotIds:()=>O,getMountedSlotIds:()=>ar,getMountedSlotIdsHeader:()=>or,isAppElementsRecord:()=>zn,normalizeAppElements:()=>En,normalizeAppElementsSlotBindings:()=>dn,readAppElementsMetadata:()=>Zn,resolveVisitedResponseInterceptionContext:()=>sr,withLayoutFlags:()=>Bn}),ir=`__prefetchLoadingShell`;function ar(e){return Object.keys(e).filter(t=>{let n=e[t],r=A.parseElementKey(t);return r?.kind===`slot`&&r.name!==`children`&&n!=null&&n!==D}).sort()}function or(e){return nr(ar(e).join(` `))}function sr(e,t){return t??e}
2var cr=Symbol.for(`vinext.appRouterContext`),lr=Symbol.for(`vinext.globalLayoutRouterContext`),ur=Symbol.for(`vinext.layoutRouterContext`),dr=Symbol.for(`vinext.missingSlotContext`),fr=Symbol.for(`vinext.templateContext`);function pr(e,t){if(typeof o.createContext!=`function`)return null;let n=globalThis;return n[e]||(n[e]=o.createContext(t)),n[e]??null}var mr=pr(cr,null);pr(lr,null),pr(ur,null),pr(dr,new Set),pr(fr,null);function hr(e,t){let n=gr(e,t);return n&&we(n),n}function gr(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 _r(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 vr(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 yr(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 br=`1.0.0-beta.9`;function xr(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??br,...e}}function Sr(e){if(xr({}),e===null){delete window.next?.__internal_src_page;return}let t=window.next;t&&(t.__internal_src_page=e)}function Cr(e){try{return decodeURIComponent(e)}catch{return e}}function wr(e){let t=Cr(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 Tr(e,t){requestAnimationFrame(()=>{(!t||t())&&wr(e)})}function Er(e,t,n){let r=n?.minFrames??0,i=n?.shouldContinue??(()=>!0),a=0,o=()=>{if(!i())return;window.scrollTo(e,t);let n=Math.abs(window.scrollY-t)<=1;!i()||n&&a>=r||a>=60||(a+=1,requestAnimationFrame(o))};o()}var Dr=Symbol.for(`vinext.layoutSegmentContext`),Or=Symbol.for(`vinext.serverInsertedHTMLContext`),kr=Symbol.for(`vinext.bfcacheIdMapContext`),Ar=Symbol.for(`vinext.bfcacheSegmentIdContext`),jr=Symbol.for(`vinext.navigation.clientHydrationContext`),Mr=Symbol.for(`vinext.navigation.fallback`);function Nr(e){return typeof o.createContext==`function`?o.createContext(e):null}function Pr(){let e=globalThis;return e[Or]||(e[Or]=Nr(null)),e[Or]??null}var Fr=Pr();function Ir(){let e=globalThis;return e[Dr]||(e[Dr]=Nr({children:[]})),e[Dr]??null}function Lr(){let e=globalThis;return e[kr]||(e[kr]=Nr(null)),e[kr]??null}function Rr(){let e=globalThis;return e[Ar]||(e[Ar]=Nr(null)),e[Ar]??null}var zr=Symbol.for(`vinext.navigation.globalAccessors`);function Br(){let e=globalThis;return e[Mr]??={serverContext:null,serverInsertedHTMLCallbacks:[]}}function Vr(){return globalThis[zr]}function Hr(){let e=globalThis;if(Object.prototype.hasOwnProperty.call(e,jr))return e[jr]??null}function Ur(e){globalThis[jr]=e}function Wr(){Ur(null)}var Gr=()=>{{let e=Hr();return e===void 0?Br().serverContext:e}},Kr=e=>{Br().serverContext=e,Ur(e)},qr=()=>Vr()?.getInsertedHTMLCallbacks()??Br().serverInsertedHTMLCallbacks,Jr=()=>{let e=Vr();e?e.clearInsertedHTMLCallbacks():Br().serverInsertedHTMLCallbacks=[]};function Yr(e){Gr=e.getServerContext,Kr=e.setServerContext,qr=e.getInsertedHTMLCallbacks,Jr=e.clearInsertedHTMLCallbacks}function j(){return Gr()}function Xr(e){Kr(e)}function Zr(e){qr().push(e)}function Qr(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 $r(){return Qr(!0)}function ei(){return Qr(!1)}function ti(){Jr()}var ni=`NEXT_REDIRECT;`;function ri(e){if(!e.startsWith(ni))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}}
2var ii=`NEXT_HTTP_ERROR_FALLBACK`;function ai(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 oi(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 si=function(e){return e.push=`push`,e.replace=`replace`,e}({}),ci=class extends Error{digest;constructor(e,t){super(e),this.digest=t}};function li(e,t){throw new ci(`NEXT_REDIRECT:${e}`,`NEXT_REDIRECT;${t??``};${encodeURIComponent(e)}`)}function ui(e,t=`replace`){throw new ci(`NEXT_REDIRECT:${e}`,`NEXT_REDIRECT;${t};${encodeURIComponent(e)};308`)}function di(){throw new ci(`NEXT_NOT_FOUND`,`${ii};404`)}function fi(){throw new ci(`NEXT_FORBIDDEN`,`${ii};403`)}function pi(){throw new ci(`NEXT_UNAUTHORIZED`,`${ii};401`)}function mi(e){return!!e&&typeof e==`object`&&`digest`in e&&typeof e.digest==`string`&&e.digest.startsWith(`NEXT_REDIRECT;`)}function hi(e){let t=ri(e);return t?{url:t.url,type:t.type===`push`?`push`:`replace`}:null}function gi(e){return mi(e)||ai(e)}var _i=`BAILOUT_TO_CLIENT_SIDE_RENDERING`,vi=class extends Error{digest=_i;reason;constructor(e){super(`Bail out to client-side rendering: ${e}`),this.reason=e}};function yi(e){return!!e&&typeof e==`object`&&`digest`in e&&e.digest===_i}var bi=`DYNAMIC_SERVER_USAGE`,xi=class extends Error{digest=bi;description;constructor(e){super(`Dynamic server usage: ${e}`),this.description=e}};function Si(e){return!!e&&typeof e==`object`&&`digest`in e&&e.digest===bi}function Ci(e){if(gi(e)||yi(e)||Si(e))throw e;e instanceof Error&&`cause`in e&&Ci(e.cause)}var wi=e({default:()=>Oi}),M={container:{fontFamily:`system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"`,height:`100vh`,display:`flex`,alignItems:`center`,justifyContent:`center`},card:{marginTop:`-32px`,maxWidth:`325px`,padding:`32px 28px`,textAlign:`left`},icon:{marginBottom:`24px`},title:{fontSize:`24px`,fontWeight:500,letterSpacing:`-0.02em`,lineHeight:`32px`,margin:`0 0 12px 0`,color:`var(--next-error-title)`},message:{fontSize:`14px`,fontWeight:400,lineHeight:`21px`,margin:`0 0 20px 0`,color:`var(--next-error-message)`},form:{margin:0},buttonGroup:{display:`flex`,gap:`8px`,alignItems:`center`},button:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,height:`32px`,padding:`0 12px`,fontSize:`14px`,fontWeight:500,lineHeight:`20px`,borderRadius:`6px`,cursor:`pointer`,color:`var(--next-error-btn-text)`,background:`var(--next-error-btn-bg)`,border:`var(--next-error-btn-border)`},buttonSecondary:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,height:`32px`,padding:`0 12px`,fontSize:`14px`,fontWeight:500,lineHeight:`20px`,borderRadius:`6px`,cursor:`pointer`,color:`var(--next-error-btn-secondary-text)`,background:`var(--next-error-btn-secondary-bg)`,border:`var(--next-error-btn-secondary-border)`},digestFooter:{position:`fixed`,bottom:`32px`,left:`0`,right:`0`,textAlign:`center`,fontFamily:`ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace`,fontSize:`12px`,lineHeight:`18px`,fontWeight:400,margin:`0`,color:`var(--next-error-digest)`}},Ti=` 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 Ei(){return(0,T.jsx)(`svg`,{width:`32`,height:`32`,viewBox:`-0.2 -1.5 32 32`,fill:`none`,style:M.icon,children:(0,T.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 Di(){window.history.length>1?window.history.back():window.location.href=`/`}function Oi({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,T.jsxs)(`html`,{id:`__next_error__`,children:[(0,T.jsx)(`head`,{children:(0,T.jsx)(`style`,{dangerouslySetInnerHTML:{__html:Ti}})}),(0,T.jsxs)(`body`,{children:[(0,T.jsx)(`div`,{style:M.container,children:(0,T.jsxs)(`div`,{style:M.card,children:[(0,T.jsx)(Ei,{}),(0,T.jsx)(`h1`,{style:M.title,children:`This page couldnât load`}),(0,T.jsx)(`p`,{style:M.message,children:r}),(0,T.jsxs)(`div`,{style:M.buttonGroup,children:[(0,T.jsx)(`form`,{style:M.form,children:(0,T.jsx)(`button`,{type:`submit`,style:M.button,children:`Reload`})}),!n&&(0,T.jsx)(`button`,{type:`button`,style:M.buttonSecondary,onClick:Di,children:`Back`})]})]})}),t&&(0,T.jsxs)(`p`,{style:M.digestFooter,children:[`ERROR `,t]})]})]})}function ki(){return window.next?.__pendingUrl??null}function Ai(e){let t=ki();return t===null?null:t.href===new URL(e,window.location.href).href?t:null}function ji(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 Mi(e){return!1}function Ni(){return()=>{}}var Pi=class{run(e,t,...n){return t(...n)}getStore(){}enterWith(){}exit(e,...t){return e(...t)}disable(){}},Fi=globalThis,Ii=Symbol.for(`vinext.als.registry`),Li=Fi[Ii]??=new Set,Ri=class{getStore(){}run(e,t,...n){return t(...n)}exit(e,...t){return e(...t)}enterWith(e){}disable(){}};function zi(e){let t=Symbol.for(e),n=Fi[t]??=typeof Pi==`function`?new Pi:new Ri;return Li.add(n),n}zi(`vinext.pprFallbackShell.als`),zi(`vinext.pprFallbackShell.cacheTaskStack.als`);var Bi=Symbol.for(`vinext.clientNavigationState`),Vi=Symbol.for(`vinext.clientNavigationRenderContext`),Hi=``;
32function Ui(){return globalThis[Bi]}function Wi(){return Ui()?.cachedPathname??v(window.location.pathname,Hi)}function Gi(){return j()?.pathname??`/`}function Ki(e){let t=Ui();return t?(t.listeners.add(e),()=>t.listeners.delete(e)):()=>{}}function qi(){let e=globalThis;return e[Vi]??=o.createContext(null)}function Ji(){let e=o.useContext(qi()),t=o.useSyncExternalStore(Ki,Wi,Gi);return e&&(Ui()?.navigationSnapshotActiveCount??0)>0?e.pathname:t}function Yi(){if(!mr||typeof o.useContext!=`function`)throw Error(`invariant expected app router to be mounted`);let e=o.useContext(mr);if(e===null)throw Error(`invariant expected app router to be mounted`);return e}var Xi=`vinext:dev-error-recovery`;function Zi(e){return!e||typeof e!=`object`||!(`digest`in e)?null:String(e.digest)}function Qi(e){let t=Zi(e);return t===null?!1:t===`NEXT_NOT_FOUND`||t.startsWith(`NEXT_HTTP_ERROR_FALLBACK;`)||t.startsWith(`NEXT_REDIRECT;`)}var $i=e({DevRecoveryBoundary:()=>_a,ErrorBoundary:()=>la,ErrorBoundaryInner:()=>ca,ForbiddenBoundary:()=>ma,ForbiddenBoundaryInner:()=>pa,GlobalErrorBoundary:()=>ua,NotFoundBoundary:()=>fa,RedirectBoundary:()=>sa,RedirectErrorBoundary:()=>oa,SerializedErrorBoundary:()=>ea,UnauthorizedBoundary:()=>ga,UnauthorizedBoundaryInner:()=>ha});function ea({fallback:e,error:t}){return(0,T.jsx)(e,{error:Object.assign(Error(t.message),{digest:t.digest,name:t.name??`Error`,stack:t.stack}),reset:()=>globalThis.location?.reload()})}function ta(e){return e==null||e===``?null:e}function N(e){return{previousPathname:e.pathname,previousResetKey:ta(e.resetKey)}}function na(e,t){let n=ta(e.previousResetKey),r=ta(t.previousResetKey);return n!==null||r!==null?n!==r:e.previousPathname!==t.previousPathname}function ra(e){window.addEventListener(Xi,e)}function ia(e){window.removeEventListener(Xi,e)}function aa({redirect:e,redirectType:t,reset:n}){let r=Yi();return o.useEffect(()=>{o.startTransition(()=>{t===`push`?r.push(e):r.replace(e),n()})},[e,t,n,r]),null}var oa=class extends o.Component{constructor(e){super(e),this.state={redirect:null,redirectType:null}}static getDerivedStateFromError(e){if(mi(e)){if(`handled`in e&&e.handled)return{redirect:null,redirectType:null};let t=hi(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,T.jsx)(aa,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null,redirectType:null})}):this.props.children}};function sa({children:e}){return(0,T.jsx)(oa,{children:e})}var ca=class extends o.Component{constructor(e){super(e),this.state={error:null,...N(e)}}static getDerivedStateFromProps(e,t){let n=N(e);return t.error&&Mi(t.error.thrownValue)||t.error&&na(n,t)?{error:null,...n}:{error:t.error,...n}}static getDerivedStateFromError(e){if(Qi(e))throw e;return{error:{thrownValue:e}}}handleDevErrorRecovery=()=>{this.state.error&&this.setState({error:null,...N(this.props)})};componentDidMount(){ra(this.handleDevErrorRecovery)}componentWillUnmount(){ia(this.handleDevErrorRecovery)}reset=()=>{this.setState({error:null})};render(){if(this.state.error){let e=this.props.fallback;return(0,T.jsx)(e,{error:this.state.error.thrownValue,reset:this.reset})}return this.props.children}};function la({fallback:e,children:t,resetKey:n}){return(0,T.jsx)(ca,{pathname:Ji(),resetKey:n,fallback:e,children:t})}function ua({fallback:e,children:t}){return(0,T.jsx)(ca,{pathname:Ji(),fallback:e,isImplicitRootErrorBoundary:e===Oi,children:t})}var da=class extends o.Component{constructor(e){super(e),this.state={notFound:!1,...N(e)}}static getDerivedStateFromProps(e,t){let n=N(e);return t.notFound&&na(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,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`meta`,{name:`robots`,content:`noindex`}),this.props.fallback]}):this.props.children}};function fa({fallback:e,children:t,resetKey:n}){return(0,T.jsx)(da,{pathname:Ji(),resetKey:n,fallback:e,children:t})}var pa=class extends o.Component{constructor(e){super(e),this.state={forbidden:!1,...N(e)}}static getDerivedStateFromProps(e,t){let n=N(e);return t.forbidden&&na(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_FA
32LLBACK;403`)return{forbidden:!0};throw e}render(){return this.state.forbidden?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`meta`,{name:`robots`,content:`noindex`}),this.props.fallback]}):this.props.children}};function ma({fallback:e,children:t,resetKey:n}){return(0,T.jsx)(pa,{pathname:Ji(),resetKey:n,fallback:e,children:t})}var ha=class extends o.Component{constructor(e){super(e),this.state={unauthorized:!1,...N(e)}}static getDerivedStateFromProps(e,t){let n=N(e);return t.unauthorized&&na(n,t)?{unauthorized:!1,...n}:{unauthorized:t.unauthorized,...n}}static getDerivedStateFromError(e){if(e&&typeof e==`object`&&`digest`in e&&String(e.digest)===`NEXT_HTTP_ERROR_FALLBACK;401`)return{unauthorized:!0};throw e}render(){return this.state.unauthorized?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`meta`,{name:`robots`,content:`noindex`}),this.props.fallback]}):this.props.children}};function ga({fallback:e,children:t,resetKey:n}){return(0,T.jsx)(ha,{pathname:Ji(),resetKey:n,fallback:e,children:t})}var _a=class extends o.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(Qi(e))throw e;return{error:{thrownValue:e}}}handleDevErrorRecovery=()=>{this.state.error&&this.setState({error:null,previousResetKey:this.props.resetKey})};componentDidMount(){ra(this.handleDevErrorRecovery)}componentWillUnmount(){ia(this.handleDevErrorRecovery)}componentDidCatch(){this.props.onCatch?.(this.props.resetKey)}render(){return this.state.error?null:this.props.children}},va=Symbol.for(`vinext.appRouterScrollIntent`);function P(){let e=globalThis;return e[va]??={nextId:0,pending:null},e[va]}function ya(e){let t=P();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 ba(){let e=P();e.nextId+=1,e.pending=null}function xa(){return P().pending}function Sa(e){return e!=null&&P().nextId===e.id}function Ca(e,t){let n=P(),r=n.pending;e!=null&&r!==null&&r.id===e.id&&(n.pending={...r,commitId:t})}function wa(e,t){let n=P(),r=n.pending;e!=null&&r!==null&&r.id===e.id&&r.commitId===t&&(n.pending={...r,targetHoistedInHead:!0})}function Ta(e,t){if(e==null)return null;let n=P(),r=n.pending;return r===null||r.id!==e.id||t!==void 0&&r.commitId!==t?null:(n.pending=null,r)}var Ea=e({AppRouterScrollCommitProvider:()=>Ba,AppRouterScrollTarget:()=>Va,AppRouterScrollTargetInner:()=>za}),Da=t(i(),1),Oa=o.createContext(null),ka=`__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE`,Aa=[`bottom`,`height`,`left`,`right`,`top`,`width`,`x`,`y`];function ja(){let e=Reflect.get(Da,ka);if(typeof e!=`object`||!e)return null;let t=Reflect.get(e,`findDOMNode`);return typeof t==`function`?t:null}function Ma(e){let t=ja();if(!t)return null;let n=t(e);return n instanceof Element||n instanceof Text?n:null}function Na(e){let t=getComputedStyle(e).position;if(t===`fixed`||t===`sticky`)return!0;let n=e.getBoundingClientRect();return Aa.every(e=>n[e]===0)}function Pa(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 Fa(e){let t=Cr(e.startsWith(`#`)?e.slice(1):e);return t===`top`?document.body:document.getElementById(t)??document.getElementsByName(t)[0]??null}function Ia(e){let t=e.ownerDocument?.head;return t!=null&&t.contains(e)}function La(e){if(!(e instanceof Element)||Ia(e))return null;let t=e;for(;!(t instanceof HTMLElement)||Na(t);){if(t.nextElementSibling===null)return null;t=t.nextElementSibling}return{kind:`element`,element:t}}function Ra(e,t){if(t!==null){e.scrollIntoView({behavior:`auto`});return}let n=document.documentElement,r=n.clientHeight;Pa(e,r)||(n.scrollTop=0,Pa(e,r)||e.scrollIntoView({behavior:`auto`,block:`start`,inline:`nearest`}))}var za=class extends o.Component{scheduledCommitId=null;schedulePotentialScroll=()=>{let e=this.props.commitId;this.scheduledCommitId=e,queueMicrotask(()=>{this.scheduledCommitId===e&&this.handlePotentialScroll()})};handlePotentialScroll=()=>{let e=xa();if(e===null||this.props.commitId===null||e.commitId!==this.props.commitId)return;let t;
32if(t=e.hash===null?null:Fa(e.hash),t===null){t=Ma(this);let n=t instanceof Element?t:t?.parentElement;if(t!==null&&n!=null&&Ia(t)&&!e.headElements?.has(n)){wa(e,this.props.commitId);return}}let n=La(t);if(n===null)return;let r=n.element,i=Ta(e,this.props.commitId);i!==null&&(Ra(r,i.hash),r.focus())};componentDidMount(){this.schedulePotentialScroll()}componentDidUpdate(){this.schedulePotentialScroll()}componentWillUnmount(){this.scheduledCommitId=null}render(){return this.props.children}};function Ba({children:e,commitId:t}){return(0,T.jsx)(Oa.Provider,{value:t,children:e})}function Va({children:e}){return(0,T.jsx)(za,{commitId:o.useContext(Oa),children:e})}var Ha=`slot:\0vinext_bfcache_segment_`;function Ua(e){let t=encodeURIComponent(e);return`${Ha}${t.length}_${t}_`}function Wa(e,t){return`${Ua(e)}${t}:/`}function Ga(e){return e.startsWith(Ha)}function Ka(e,t){return Ga(e)&&e.startsWith(Ua(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 Ja=e({BfcacheIdentityMapContext:()=>ro,BfcacheSegmentBoundary:()=>wo,Children:()=>Ao,ChildrenContext:()=>Xa,ElementsContext:()=>F,ParallelSlot:()=>jo,ParallelSlotsContext:()=>Za,Slot:()=>ko,UNMATCHED_SLOT:()=>D,getNonCacheComponentsSegmentKey:()=>To,mergeElements:()=>Oo,resolveBfcacheSegmentStateKey:()=>Eo,stageBfcacheSlotEntryForRender:()=>uo,updateBfcacheSlotEntryOrder:()=>so}),Ya=Object.freeze({}),F=o.createContext(Ya),Xa=o.createContext(null),Za=o.createContext(null),Qa=Lr(),$a=Rr(),eo=Object.freeze({}),to=3,no=1,ro=o.createContext(eo);function io(){return!1}function ao(){return io()?to:no}function oo(e){return Number.isFinite(e)?Math.max(1,Math.trunc(e)):1}function so(e,t,n=ao()){let r=oo(n),i=[t];for(let n of e){if(i.length>=r)break;n!==t&&i.push(n)}return i}function co(e,t){let n=new Set(t);for(let t of e.keys())n.has(t)||e.delete(t)}function lo(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 uo(e,t,n,r=ao()){let i=new Map(e);i.set(n.stateKey,n);let a=so(t,n.stateKey,r);return co(i,a),{entries:a.map(e=>i.get(e)).filter(e=>e!==void 0),order:a,snapshots:i}}function fo(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 po(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 mo(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:`ownerLayoutId`in e&&`slotId`in e&&`state`in e}function ho(e){return Array.isArray(e)&&e.length>0&&e.every(mo)}function go(e,t){return e===`__skippedLayoutIds`&&Array.isArray(t)&&t.every(e=>typeof e==`string`)}function _o(e,t){return e!==`__bfcacheSegmentIdentities`||typeof t!=`object`||!t||Array.isArray(t)?!1:Object.entries(t).every(([e,t])=>{let n=A.parseElementKey(e);return n!==null&&n.kind!==`route`&&typeof t==`string`})}function vo(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 yo(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:`kind`in e&&e.kind===`runtime-cache-entry`&&`decision`in e}function bo(e,t){return fo(t)||_o(e,t)||po(t)||yo(t)||vo(t)||go(e,t)||ho(t)}function xo({entry:e,fallbackElements:t,fallbackSegmentId:n,fallbackStateKeyMap:r,SegmentContext:i}){return(0,T.jsx)(ro.Provider,{value:e.stateKeyMap??r,children:(0,T.jsx)(F.Provider,{value:e.elements??t,children:(0,T.jsx)(i.Provider,{value:e.segmentId??n,children:e.content})})})}function So(e){let t=o.useRef(new Map),[n,r]=o.useState(()=>[e.stateKey]),i=uo(t.current,n,e),a=i.order,s=!lo(n,a);return o.useLayoutEffect(()=>{t.current=i.snapshots},[i.snapshots]),s&&r(a),i.entries}function Co({activeStateKey:e,content:t,elements:n,id:r,SegmentContext:i,stateKeyMap:a}){return(0,T.jsx)(T.Fragment,{children:So({content:t,elements:n,segmentId:r,stateKey:e,stateKeyMap:a}).map(t=>(0,T.jsx)(o.Activity,{mode:t.stateKey===e?`visible`:`hidden`,children:(0,T.jsx)(xo,{entry:t,fallbackElements:n,fallbackSegmentId:r,fallbackStateKeyMap:a,SegmentContext:i})},t.stateKey))})}function wo({children:e,id:t,stateKey:n}){let r=o.useContext(F),i=o.useContext(ro),a=Eo(t,i,o.useContext(Qa));return!$a||a===void 0?(0,T.jsx)(o.Fragment,{children:e},n):io()?(0,T.jsx)(Co,{activeStateKey:a,content:e,elements:r,id:t,SegmentContext:$a,stateKeyMap:i}):(0,T.jsx)($a.Provider,{value:t,children:e},a)}function To(e,t){let n=A.parseElementKey(e);return n!==null&&n.kind!==`route`?t:void 0}function Eo(e,t,n){return t[e]??n?.[e]}function Do({content:e,id:t}){let n=$a,r=o.useContext(F),i=o.useContext(ro),a=Eo(t,i,o.useContext(Qa));return n?a===void 0?(0,T.jsx)(n.Provider,{value:t,children:e}):io()?(0,T.jsx)(Co,{activeStateKey:a,content:e,elements:r,id:t,SegmentContext:n,stateKeyMap:i}):(0,T.jsx)(n.Provider,{value:t,children:e},To(t,a)):(0,T.jsx)(T.Fragment,{children:e})}function Oo(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=>A.isSlotId(e)&&!Ga(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(!A.isSlotId(t)||!Object.hasOwn(e,t))continue;let n=e[t];if(n!==void 0&&n!==D){s[t]=n,c.add(t);for(let n of Object.keys(e)){if(!Ka(n,t))continue;let r=e[n];r!==void 0&&(s[n]=r),c.add(n)}}}if(c.size>0){let n=e[E],r=t[E],i=_o(E,n),a=_o(E,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)Ka(t,e)&&c.add(t);
32for(let e of c){let t=o[e];t===void 0?delete l[e]:l[e]=t}(i||a)&&(s[E]=l)}return s}function ko({id:e,children:t,parallelSlots:n}){let r=o.useContext(F);if(!Object.hasOwn(r,e))return null;let i=r[e];if(bo(e,i)||(i===D&&di(),i===null))return null;let a=(0,T.jsx)(Za.Provider,{value:n??null,children:(0,T.jsx)(Xa.Provider,{value:t??null,children:i})});return Qa&&$a?(0,T.jsx)(Do,{id:e,content:a}):a}function Ao(){return o.useContext(Xa)}function jo({name:e}){return o.useContext(Za)?.[e]??null}var Mo=e({APP_RSC_RENDER_MODE_NAVIGATION:()=>No,APP_RSC_RENDER_MODE_PREFETCH_DYNAMIC_SHELL:()=>Fo,APP_RSC_RENDER_MODE_PREFETCH_EMPTY:()=>Po,APP_RSC_RENDER_MODE_PREFETCH_LOADING_SHELL:()=>Io,getRscRenderModeCacheVariant:()=>Lo,parseAppRscRenderMode:()=>Ro}),No=`navigation`,Po=`prefetch-empty`,Fo=`prefetch-dynamic-shell`,Io=`prefetch-loading-shell`;function Lo(e){return e===`prefetch-empty`?`prefetch-empty`:e===`prefetch-dynamic-shell`?`prefetch-dynamic-shell`:e===`prefetch-loading-shell`?`prefetch-loading-shell`:null}function Ro(e){switch(e){case Po:return Po;case Fo:return Fo;case Io:return Io;default:return No}}var zo=`x-deployment-id`;function Bo(){}function Vo(e,t=void 0){t&&e.set(zo,t)}function Ho(e){return It(JSON.stringify([e.pathAndSearch,e.routeId]))}var Uo=e({VINEXT_RSC_BUILD_ID_HEADER:()=>Wo,VINEXT_RSC_CACHE_BUSTING_SEARCH_PARAM:()=>I,VINEXT_RSC_COMPATIBILITY_ID_HEADER:()=>L,VINEXT_RSC_CONTENT_TYPE:()=>Go,VINEXT_RSC_RENDER_MODE_HEADER:()=>b,VINEXT_RSC_VARY_HEADER:()=>Dt,applyRscCompatibilityIdHeader:()=>$o,applyRscDeploymentIdHeader:()=>es,canonicalizeLoadingShellRscRequestHeaders:()=>ys,canonicalizePrewarmableRscRequestHeaders:()=>vs,computeRscCacheBustingSearchParam:()=>ds,createCanonicalLoadingShellRscRequestHeaders:()=>gs,createCanonicalRscRequestHeaders:()=>hs,createCanonicalRscRequestUrl:()=>xs,createRscRedirectLocation:()=>Cs,createRscRequestHeaders:()=>_s,createRscRequestUrl:()=>R,createServerActionRequestUrl:()=>Ss,getVinextRscCompatibilityId:()=>Zo,hasRscCacheBustingSearchParam:()=>us,isRscCompatibilityIdCompatible:()=>ts,resolveHardNavigationTargetFromRscResponse:()=>ns,resolveInvalidRscCacheBustingRequest:()=>ws,resolveRscCompatibilityNavigationDecision:()=>rs,setRscCacheBustingSearchParam:()=>fs,stripRscCacheBustingSearchParam:()=>ps,stripRscSuffix:()=>ms}),I=`_rsc`,Wo=`X-Vinext-RSC-Build-Id`,L=`X-Vinext-RSC-Compatibility-Id`,Go=`text/x-component`,Ko=12,qo=new TextEncoder;function Jo(e){let t=``;for(let n of e)t+=String.fromCharCode(n);return btoa(t).replaceAll(`+`,`-`).replaceAll(`/`,`_`).replace(/=+$/,``)}function Yo(e){return e??`0`}function Xo(e){return e&&e.length>0?e:null}function Zo(){return Xo(`73886074-0850-4bcf-babe-bb5e6c1bedc5`)}function Qo(){return Xo(`4676727e1c177339fc35363f355b9357`)}function $o(e,t=Zo(),n=Qo()){let r=Xo(t);r?e.set(L,r):e.delete(L);let i=Xo(n);i?e.set(Wo,i):e.delete(Wo)}function es(e){e.delete(_t)}function ts(e,t=Zo()){let n=Xo(e),r=Xo(t);return r===null||n!==null&&n===r}function ns(e,t,n){if(!e)return t;let r=new URL(e,n);ps(r);let i=new URL(t,n),a=ms(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 rs(e){return ts(e.responseCompatibilityId,e.clientCompatibilityId)?{kind:`compatible`}:{hardNavigationTarget:ns(e.responseUrl,e.currentHref,e.origin),kind:`hard-navigate`}}function is(e){let t=Ro(e);return t===`navigation`?null:t}function as(e,t={}){let n=[e.get(S),e.get(C),e.get(Et),e.get(w),e.get(st),...t.includeInterceptionIdHeader===!1?[]:[e.get(ct)],e.get(y),...t.includeRenderModeHeader===!1?[]:[is(e.get(b))]],r=e.get(x);return t.includeStateFingerprintHeader!==!1&&r!==null&&n.push(r),n.every(e=>e===null)?null:n.map(Yo).join(`,`)}async function os(e){let t=globalThis.crypto?.subtle;if(!t)return It(e);let n=await t.digest(`SHA-256`,qo.encode(e));return Jo(new Uint8Array(n).subarray(0,Ko))}function ss(e){let t=as(e);return t===null?``:It(t)}function cs(e){return(e.search.startsWith(`?`)?e.search.slice(1):e.search).split(`&`).filter(e=>e.length>0&&!ls(e))}function ls(e){let t=e.indexOf(`=`),n=t===-1?e:e.slice(0,t);try{return decodeURIComponent(n.replaceAll(`+`,` `))===I}catch{return n===I}}function us(e){return(e.search.startsWith(`?`)?e.search.slice(1):e.search).split(`&`).some(e=>e.length>0&&ls(e))}async function ds(e){let t=as(e);return t===null?``:os(t)}function fs(e,t){let n=cs(e);
32n.push(t.length>0?`${I}=${t}`:I),e.search=`?${n.join(`&`)}`}function ps(e){let t=cs(e);e.search=t.length>0?`?${t.join(`&`)}`:``}function ms(e){return e.endsWith(`.rsc`)?e.slice(0,-4):e}function hs(e=void 0){let t=new Headers({Accept:Go,RSC:`1`});return Vo(t,e??void 0),t}function gs(e=void 0){let t=hs(e);return t.set(S,`1`),t.set(C,`1`),t.set(b,Io),t}function _s(e={}){let t=hs(e.deploymentId);e.prefetchRouterState&&(e.includePrefetchHeader!==!1&&t.set(S,`1`),t.set(Et,encodeURIComponent(JSON.stringify(e.prefetchRouterState))));let n=e.routerState??e.prefetchRouterState;n&&t.set(x,Ho(n)),e.nextUrl&&t.set(w,e.nextUrl),e.interceptionContext!==void 0&&e.interceptionContext!==null&&t.set(st,e.interceptionContext),e.interceptionId!==void 0&&e.interceptionId!==null&&t.set(ct,e.interceptionId),e.mountedSlotsHeader!==void 0&&e.mountedSlotsHeader!==null&&t.set(y,e.mountedSlotsHeader),e.clientReuseManifestHeader!==void 0&&e.clientReuseManifestHeader!==null&&t.set(lt,e.clientReuseManifestHeader);let r=e.renderMode??`navigation`;return r!==`navigation`&&t.set(b,r),t}function vs(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(S),e.delete(C),e.delete(Et),e.delete(w),e.delete(x),e.delete(lt),!0)}function ys(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(S,`1`),e.set(C,`1`),e.delete(Et),e.delete(w),e.delete(x),e.delete(lt),!0)}function bs(e){let t=e.indexOf(`#`);return t===-1?e:e.slice(0,t)}async function R(e,t){let n=new URL(bs(e),`http://vinext.local`);return fs(n,await ds(t)),`${n.pathname}${n.search}`}function xs(e){let t=new URL(bs(e),`http://vinext.local`);return fs(t,``),`${t.pathname}${t.search}`}function Ss(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 Cs(e,t){let n=new URL(t.url),r=new URL(e,n);if(r.origin!==n.origin)return r.toString();let i=await R(`${r.pathname}${r.search}`,t.headers);return`${r.origin}${i}`}async function ws(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(I),r=await ds(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(ss(e.request.headers));let t=[],n=e.request.headers.has(ct),r=e.request.headers.has(x),a=is(e.request.headers.get(b))===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=as(e.request.headers,n);t===null?i.add(``):(i.add(await os(t)),i.add(It(t)))}}return n!==null&&i.has(n)?null:(fs(t,r),new Response(null,{status:307,headers:{Location:`${t.pathname}${t.search}`}}))}var Ts=null;function Es(e){return Object.values(e).some(e=>typeof e==`function`)?e:null}function Ds(e){return Ts=e,Ts}function Os(e,t){Ts?.onRouterTransitionStart?.(e,t)}function ks(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0}var As=`__vinext_previousNextUrl`,js=`__vinext_historyIndex`,Ms=`__vinext_bfcacheIds`,Ns=`__vinext_bfcacheVersion`,Ps=`__vinext_externalHistoryState`,Fs=`__vinext_treeSnapshotId`,Is=`__vinext_treeSnapshotClaimed`,Ls=`__vinext_activeRoutePaths`,Rs=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=oc(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}
32):{kind:`skip`,reason:`missing-snapshot`,targetHistoryIndex:t}}},zs=class{#e;#t=0;#n;constructor(e){let t=rc(e.initialHistoryState);this.#e=t===null?0:t+1,this.#n=new Rs({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 ic(e,this.#e)}readCurrentBfcacheVersionHistoryIds(e){if(this.isCacheInvalidationGuarded())return null;let t=nc(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 Bs(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 Vs(e,t){let n=Bs(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[Ls]:n[Ls]=[...new Set(t.activeRoutePaths)]),t.previousNextUrl===null?delete n[As]:n[As]=t.previousNextUrl,t.traversalIndex!==void 0&&(ks(t.traversalIndex)?n[js]=t.traversalIndex:delete n[js]),t.bfcacheIds!==void 0&&(r?(delete n[Ms],delete n[Ns]):n[Ms]={...t.bfcacheIds}),t.bfcacheVersion!==void 0&&(r?delete n[Ns]:ks(t.bfcacheVersion)?n[Ns]=t.bfcacheVersion:delete n[Ns]),Object.keys(n).length>0?n:null}function Hs(e,t){let n=ec(t),r=oc(t),i=nc(t),a=rc(t),o=Zs(t);return{...Vs(e,{activeRoutePaths:Qs(t),bfcacheIds:i,bfcacheVersion:i===null?void 0:a,previousNextUrl:n,traversalIndex:r}),...Us(),...o===null?{}:{[Is]:!0,[Fs]:o}}}function Us(){return{[Ps]:!0}}function Ws(e){return z(e)?.[Ps]===!0}function Gs(e){return!Ws(e)&&oc(e)!==null}function Ks(e){let t=Bs(e);return delete t[Ps],Object.keys(t).length>0?t:null}function qs(e,t){let n=Bs(e),r=Zs(n);return ks(t)?(n[Fs]=t,r!==t&&delete n[Is]):(delete n[Fs],delete n[Is]),Object.keys(n).length>0?n:null}function Js(e,t){let n=Bs(e);return t&&Zs(n)!==null?n[Is]=!0:delete n[Is],Object.keys(n).length>0?n:null}function Ys(e){return z(e)?.[Is]===!0}function Xs(e){return qs(e,null)}function Zs(e){let t=z(e)?.[Fs];return ks(t)?t:null}function Qs(e){let t=z(e)?.[Ls];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 $s(e){let t=new Set;for(let n of e){if(n.state!==`active`||n.activeRouteId==null)continue;let e=A.parseElementKey(n.activeRouteId);e?.kind===`route`&&e.interceptionContext===null&&t.add(e.path)}return[...t]}function ec(e){let t=z(e)?.[As];return typeof t==`string`?t:null}function tc(e){let t=A.parseElementKey(e);return t?.kind===`layout`||t?.kind===`page`||t?.kind===`slot`||t?.kind===`template`}function nc(e){let t=z(e)?.[Ms];if(!t||typeof t!=`object`||Array.isArray(t))return null;let n={};for(let[e,r]of Object.entries(t)){if(!tc(e)||typeof r!=`string`)return null;n[e]=r}return n}function rc(e){let t=z(e)?.[Ns];return ks(t)?t:null}function ic(e,t){let n=rc(e);return n!==null&&n===t}function ac(e){let t=ec(e),n=nc(e),r=rc(e),i=Qs(e);return t===null&&n===null&&i===null?null:Vs(null,{activeRoutePaths:i,bfcacheIds:n,bfcacheVersion:n===null?void 0:r,previousNextUrl:t})}function oc(e){let t=z(e)?.[js];return ks(t)?t:null}function sc(e){let t=oc(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 cc=`_b_0_`;function lc(e){if(e.routeManifest===null)return null;let t=v(e.currentPathname,e.basePath),n=v(e.targetPathname,e.basePath),r=_(t),i=_(n);for(let n of e.routeManifest.segmentGraph.interceptions.values())if(vr(r,n.sourcePatternParts)&&hr
32(i,n.targetPatternParts)!==null)return t;return null}function uc(e){if(e.routeManifest===null)return null;let t=v(e.currentPathname,e.basePath),n=e.currentMatchedPathname?v(e.currentMatchedPathname,e.basePath):null,r=v(e.targetPathname,e.basePath),i=_(t),a=n?_(n):null,o=_(r);for(let r of e.routeManifest.segmentGraph.interceptions.values())if(yr(o,r.targetPatternParts)){if(vr(i,r.sourcePatternParts))return t;if(n!==null&&a!==null&&vr(a,r.sourcePatternParts))return n}return null}var dc=`__next-page-redirect`;function fc(e){if(typeof e!=`object`||!e||!(`getElementById`in e))return!1;let{getElementById:t}=e;return typeof t==`function`&&t.call(e,dc)!==null}var pc=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 mc=new TextDecoder,B=255,hc=0,gc=2,_c=4,vc=256;function yc(e){return typeof e==`number`&&Number.isFinite(e)&&e>=0}function bc(){throw Error(`Invalid or truncated RSC completion metadata footer`)}function xc(e){if(e.byteLength>vc)throw Error(`RSC completion metadata exceeded its framing limit`);if(e.byteLength<6||e[0]!==B||e[1]!==hc)return bc();let t=e.byteLength-_c;if(new DataView(e.buffer,e.byteOffset+t,_c).getUint32(0)!==t-gc)return bc();try{let n=JSON.parse(mc.decode(e.subarray(gc,t)));if(typeof n!=`object`||!n)return bc();let r=n;if(!yc(r.dynamicStaleTimeSeconds))return bc();let i=Object.hasOwn(r,`serverStaleTimeSeconds`),a=r.serverStaleTimeSeconds;return i&&a!==null&&!yc(a)?bc():{dynamicStaleTimeSeconds:r.dynamicStaleTimeSeconds,...i?{serverStaleTimeSeconds:a}:{}}}catch{return bc()}}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!==hc)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>vc){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===hc){n=[B,hc];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})}var 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 ps(n),`${ms(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>
32=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:ns(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 V={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 H(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:H(V.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:H(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:H(V.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:V.redirectTerminalExternal};case`maxRedirectsExceeded`:return{hardNavigationReason:`redirectDepthExhausted`,traceReasonCode:V.redirectTerminalDepth};default:throw Error(`[vinext] Unknown RSC redirect terminal reason: `+String(e))}}function il(e){if(!e.responseOk||!e.isRscContentType||!e.hasBody){let t=ns(e.responseUrl,e.currentHref,e.origin);return tl({discardBody:!1,facts:e,reason:`invalidRscPayload`,reasonCode:V.invalidRscPayload,url:t})}let t=rs({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:V.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:V.streamedRedirectLoop,redirectSignal:`streamed-header`,url:n.href})}return{discardBody:!1,kind:`proceedToCommit`,trace:H(V.proceedToCommit,el(e))}}function al(e,t){return H(e,{targetHref:t.targetHref})}function ol(e,t,n){return n===`browser`?v(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(V.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(V.samePageRefresh,e)}:a&&o&&t.hash!==n.hash?{hash:n.hash,kind:`sameDocumentScroll`,mode:e.mode,scroll:e.scroll,trace:al(V.sameDocumentScroll,e)}:a&&!o?{bypassNavigationCache:!0,kind:`flightNavigation`,trace:al(V.samePageSearch,e)}:{bypassNavigationCache:!1,kind:`flightNavigation`,trace:al(V.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 H(e,{eventKind:t.navigationKind,targetHref:t.targetHref,...n})}function ul(e,t){return{kind:`fetchFresh`,reason:t,trace:ll(V.fetchFresh,e,{freshFetchReason:t})}}function dl(e){return e.navigationKind===`refresh`?ul(e,`refresh`):!e.bypassNavigationCache&&e.visitedResponse.status===`available`?{kind:`reuseVisitedResponse`,trace:ll(V.visitedResponseReuse,e)}:!e.bypassNavigationCache&&e.prefetch.status===`available`?{kind:`consumePrefetch`,trace:ll(V.prefetchResponseReuse,e)}:e.navigationKind===`navigate`?e.optimisticRouteShell.status===`available`?{kind:`attemptOptimisticRouteShell`,trace:ll(V.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 _(gl(e))}function vl(e,t){let n=_l(t);for(let t of e.segmentGraph.routes.values())if(hr(n,t.patternParts)!==null)return t;return null}function yl(e,t){return hr(_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)=>O(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(!vr(n,e.sourcePatternParts))continue;let t=hr(r,e.targetPatternParts),a=t===null&&yr(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(O)}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=A.parseElementKey(e.slotId);return e.state===`active`&&e.ownerLayoutId!==null&&t.has(e.ownerLayoutId)&&r?.kind===`slot`&&r.name===`children`&&!n.has(e.slotId)}).map(e=>e.slotId).sort(O)}function 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(O)}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(O)}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:H(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:H(V.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:H(V.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:V.interceptedRejectedMissingProof};if(t.targetMatchedUrl!==e.targetSnapshot.matchedUrl)return{kind:`rejected`,reasonCode:V.interceptedRejectedTargetMismatch};let n=Rl(e.currentSnapshot);if(!e.restoredHistorySnapshot&&(t.sourceMatchedUrl!==n.matchedUrl||t.sourceRouteId!==n.routeId))return{kind:`rejected`,reasonCode:V.interceptedRejectedUnknownSource};let r=e.routeManifest===null?null:Tl(e.routeManifest,t);if(e.routeManifest!==null&&r===null)return{kind:`rejected`,reasonCode:V.interceptedRejectedUndeclaredTopology};let i=kl(e.currentTopology,e.targetTopology);if(i.length===0)return{kind:`rejected`,reasonCode:V.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:V.interceptedRejectedMissingSlotProof};if(r!==null&&o.ownerLayoutId!==r.ownerLayoutId)return{kind:`rejected`,reasonCode:V.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(O)}}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:H(V.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:V.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:H(V.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:H(V.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:H(V.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:H(V.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||rs({clientCompatibilityId:e.clientCompatibilityId,currentHref:e.currentHref,origin:e.origin,responseCompatibilityId:e.compatibilityIdHeader,responseUrl:e.responseUrl}).kind===`compatible`)return{kind:`proceed`,trace:H(V.proceedToCommit,{})};if(e.actionRedirectHref!==null)return{kind:`hardNavigate`,url:e.actionRedirectHref,historyMode:e.actionRedirectType===`push`?`assign`:`replace`,clearClientNavigationCaches:!0,reason:`serverActionRedirectCompatibilityMismatch`,trace:H(V.serverActionRedirectCompatibilityMismatch,{targetHref:e.actionRedirectHref})};let t=e.currentHref;return{kind:`hardNavigate`,url:t,clearClientNavigationCaches:!1,reason:`serverActionRscCompatibilityMismatch`,trace:H(V.serverActionRscCompatibilityMismatch,{targetHref:t})}}function Xl(e){return{kind:`hardNavigate`,url:e.currentHref,reason:`rscNavigationError`,trace:H(V.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=v(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)?v(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?v(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 v(r.pathname,n)===v(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=class extends Error{constructor(...e){super(...e),this.name=`UnrecognizedActionError`}};function Uu(e){return!!(e&&typeof e==`object`&&e instanceof Hu)}var Wu=class extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}},U=class extends URLSearchParams{append(){throw new Wu}delete(){throw new Wu}set(){throw new Wu}sort(){throw new Wu}},Gu=Symbol.for(`vinext.navigation.pagesNavigationContextAccessor`);function Ku(){let e=globalThis[Gu];if(!e)return null;try{return e()}catch{return null}}var qu=e({cancelAppPrefetchFetch:()=>nd,promoteAppPrefetchFetch:()=>rd,releaseAppPrefetchFetchSlot:()=>ed,scheduleAppPrefetchFetch:()=>td}),Ju=Symbol.for(`vinext.appPrefetchFetchSlotRelease`),Yu=4,W=[],G=new WeakMap,Xu=0,Zu=!1;function Qu(){for(Zu=!1;Xu<Yu;){let e=W.shift();if(!e)return;Xu+=1,e()}}function $u(){Zu||(Zu=!0,queueMicrotask(Qu))}function ed(e){let t=e[Ju];t!==void 0&&(e[Ju]=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[Ju]=()=>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[Ju]=i,t(e)},e=>{G.delete(o),i(),s(e)})}catch(e){G.delete(o),i(),s(e)}}});return W.push(r),G.set(o,{runner:r,cancel:()=>{if(a){n.abort();return}let e=W.indexOf(r);e!==-1&&(W.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=W.indexOf(t);n!==-1&&(W.splice(n,1),Xu+=1,t())}var id=`modulepreload`,ad=function(e){return`/`+e},od={},sd=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=ad(t,n),t=s(t),t in od)return;od[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`:id,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)})},cd=e({BailoutToCSRError:()=>vi,DYNAMIC_NAVIGATION_CACHE_TTL:()=>Td,DynamicServerError:()=>xi,GLOBAL_ACCESSORS_KEY:()=>zr,HTTP_ERROR_FALLBACK_ERROR_CODE:()=>ii,MAX_PREFETCH_CACHE_SIZE:()=>Sd,PREFETCH_CACHE_TTL:()=>K,ReadonlyURLSearchParams:()=>U,RedirectType:()=>si,ServerInsertedHTMLContext:()=>Fr,UnrecognizedActionError:()=>Hu,__basePath:()=>``,_registerStateAccessors:()=>Yr,activateNavigationSnapshot:()=>ep,appRouterInstance:()=>Bp,applyAppRouterScrollFallback:()=>Tp,clearPendingPathname:()=>pp,clearServerInsertedHTML:()=>ti,commitClientNavigationState:()=>Q,consumePrefetchResponse:()=>If,consumePrefetchResponseForNavigation:()=>Rf,createAppPrefetchRequestHeaders:()=>jd,createCachedRscResponseSnapshot:()=>Tf,createClientNavigationRenderSnapshot:()=>ap,createSnapshotPathAndSearch:()=>op,decodeRedirectError:()=>hi,deletePrefetchResponseSnapshot:()=>Cf,disableNavigationResponsePrefetchCacheReuse:()=>xf,discardLearningOnlyPrefetchCacheEntry:()=>mf,fetchRouteTreeGatedPrefetch:()=>Mf,flushServerInsertedHTML:()=>$r,forbidden:()=>fi,getAccessFallbackHTTPStatus:()=>oi,getBfcacheIdMapContext:()=>Lr,getBfcacheSegmentIdContext:()=>Rr,getClientNavigationRenderContext:()=>rp,getClientNavigationState:()=>Z,getClientParams:()=>dp,getCurrentInterceptionContext:()=>Od,getCurrentNextUrl:()=>Ad,getFreshPrefetchCacheEntry:()=>Md,getLayoutSegmentContext:()=>Ir,getMountedSlotsHeader:()=>Hf,getNavigationContext:()=>j,getPrefetchCache:()=>q,getPrefetchInterceptionContext:()=>kd,getPrefetchedUrls:()=>J,hasFreshLearningOnlyPrefetchCacheEntry:()=>Jd,hasPrefetchCacheEntryForNavigation:()=>qd,hasSearchAgnosticPrefetchShellForRoute:()=>Yd,invalidatePrefetchCache:()=>bf,isBailoutToCSRError:()=>yi,isDynamicServerError:()=>Si,isHTTPAccessFallbackError:()=>ai,isNextRouterError:()=>gi,isRedirectError:()=>mi,navigateClientSide:()=>Mp,notFound:()=>di,peekPrefetchResponseForNavigation:()=>Ff,permanentRedirect:()=>ui,prefetchRscResponse:()=>Nf,preloadHybridClientRouteOwner:()=>dd,prepareNavigationPrefetchSnapshot:()=>jf,pushHistoryStateWithoutNotify:()=>xp,redirect:()=>li,renderServerInsertedHTML:()=>ei,replaceClientParamsWithoutNotify:()=>up,replaceHistoryStateWithoutNotify:()=>Sp,resolveCachedRscResponseExpiresAt:()=>zd,resolveCachedRscResponseTtlMs:()=>
32Rd,resolveLoadedHybridClientRewriteHref:()=>fd,resolvePrefetchCacheEntryMountedSlotsHeader:()=>Vd,restoreRscResponse:()=>Af,saveScrollPosition:()=>Cp,seedPrefetchResponseSnapshot:()=>Sf,setClientParams:()=>lp,setMountedSlotsHeader:()=>Vf,setNavigationContext:()=>Xr,setPendingPathname:()=>fp,snapshotRscResponse:()=>Of,storePrefetchResponse:()=>wf,unauthorized:()=>pi,unstable_isUnrecognizedActionError:()=>Uu,unstable_rethrow:()=>Ci,useClientNavigationRenderSnapshot:()=>ip,useParams:()=>yp,usePathname:()=>_p,useRouter:()=>Vp,useSearchParams:()=>vp,useSelectedLayoutSegment:()=>Hp,useSelectedLayoutSegments:()=>Up,useServerInsertedHTML:()=>Wp}),ld=null,ud=null;async function dd(){ld||=(ud??=sd(()=>import(`./hybrid-client-route-owner-ysZ4Qx8j.js`),__vite__mapDeps([0,1])),await ud)}function fd(e,t){return ld?.resolveHybridClientRewriteHref(e,t)??null}function pd(e){return null}function md(e=`children`){let t=Ir();if(!t)return[];try{return(o.useContext(t)[e]??[]).filter(e=>!e.startsWith(`__PAGE__`))}catch{return[]}}var hd=Symbol(`vinext.navigation.readonlySearchParams`),gd=Symbol(`vinext.navigation.readonlySearchParamsSource`),_d=Symbol(`vinext.navigation.readonlySearchParamsSourceKey`),vd=Symbol.for(`vinext.navigation.pagesNavigationNotify`),yd=``,bd=!1,xd=!1,Sd=52428800,Cd=Sd*.9;function wd(e,t){if(e===void 0||e===``)return t;let n=Number(e);return!Number.isFinite(n)||n<0?t:n*1e3}var Td=wd(`0`,3e4),K=wd(`300`,3e4),Ed=30,Dd=Ed*1e3;function Od(){return v(window.location.pathname,``)}function kd(e){let t;try{t=new URL(e,window.location.href)}catch{return null}return lc({basePath:``,currentPathname:window.location.pathname,routeManifest:g()?.bootstrap.routeManifest??null,targetPathname:t.pathname})}function Ad(){return window.location.pathname+window.location.search}function jd(e){let t=g()?.functions.getPrefetchRouterState?.()??null;return _s({...e,nextUrl:Ad(),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 Md(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 Nd(e){return typeof e==`number`&&Number.isFinite(e)&&Number.isInteger(e)&&e>=0}function Pd(e){return typeof e==`number`&&Number.isFinite(e)&&e>=0}function Fd(e){if(e===null||e===``)return;let t=Number(e);return Nd(t)?t:void 0}function Id(e){if(e!==void 0)return e.kind===`pending`?Ed:Math.max(e.seconds,Ed)}function Ld(e){let t=e.dynamicStaleTimeSeconds,n=Id(e.serverStaleTime);return Nd(t)?n===void 0?t:Math.min(t,n):n}function Rd(e,t){let n=Ld(e);return n===void 0?t:n*1e3}function zd(e,t,n){return Pd(t.expiresAt)?t.expiresAt:e+Rd(t,n)}function Bd(e,t,n,r){if(Pd(t.expiresAt))return t.expiresAt;let i=t.serverStaleTime?.kind===`pending`&&r!==`verbatim`?void 0:Id(t.serverStaleTime);if(i!==void 0)return e+i*1e3;if(r===`ignore`)return e+Math.max(n,Dd);let a=Nd(t.dynamicStaleTimeSeconds)?t.dynamicStaleTimeSeconds:void 0;return a===void 0?e+Math.max(n,Dd):r===`verbatim`?e+a*1e3:e+Math.max(a===0?n:a*1e3,Dd)}function Y(e){return e.expiresAt===void 0?e.snapshot?zd(e.timestamp,e.snapshot,K):e.timestamp+K:e.expiresAt}function Vd(e){return e.mountedSlotsHeader===void 0?e.snapshot?.mountedSlotsHeader??null:e.mountedSlotsHeader}function Hd(e){try{let t=new URL(e,`http://vinext.local`);return ps(t),`${t.pathname}${t.search}`}catch{return null}}function Ud(e){try{return ms(new URL(e,`http://vinext.local`).pathname)}catch{return null}}function Wd(e){let t=e.indexOf(`\0`);return t===-1?{interceptionContext:null,rscUrl:e}:{interceptionContext:e.slice(t+1),rscUrl:e.slice(0,t)}}function Gd(e,t){return Vd(e)===t||(e.snapshot?.mountedSlotsHeader??null)===t}function Kd(e,t,n,r=[]){let i=q(),a=[e,...r];for(let e of a){let r=A.encodeCacheKey(e,t),a=i.get(r);if(a&&a.cacheForNavigation!==!1&&Gd(a,n))return{cacheKey:r,entry:a}}let o=new Set(a.map(e=>Hd(e)).filter(e=>e!==null));if(o.size===0)return null;for(let[e,r]of i){if(r.cacheForNavigation===!1)continue;let i=Wd(e);if(i.interceptionContext!==t)continue;let a=Hd(i.rscUrl);if(a!==null&&o.has(a)&&Gd(r,n))return{cacheKey:e,entry:r}}return null}function qd(e,t=null,n=null,r={}){let i=Kd(e,t,n,r.additionalRscUrls);return i===null?!1:i.entry.pending!==void 0||Y(i.entry)>Date.now()?(tf(q(),i.cacheKey,i.entry),vf(i.cacheKey,i.entry,r.onInvalidate),!0):(X(q(),J(),i.cacheKey,i.entry,r.notifyInvali
32dation??!0),!1)}function Jd(e,t=null){let n=A.encodeCacheKey(e,t),r=q(),i=r.get(n);return i?.cacheForNavigation===!1?i.pending!==void 0||Y(i)>Date.now()?(tf(r,n,i),!0):(X(r,J(),n,i,!0),!1):!1}function Yd(e,t=null,n=null){let r=Ud(e);if(r===null)return!1;let i=q();for(let[e,a]of i){if(a.searchAgnosticShell!==!0)continue;let o=Wd(e);if(o.interceptionContext===t&&Ud(o.rscUrl)===r&&Gd(a,n)){if(a.pending!==void 0||Y(a)>Date.now())return!0;X(i,J(),e,a,!0)}}return!1}function Xd(e){return e.snapshot?.buffer.byteLength??e.size??0}var Zd=null,Qd=0;function $d(e){if(Zd===e)return Qd;let t=0,n=new Set;for(let r of e.values())n.has(r)||(n.add(r),t+=Xd(r));return Zd=e,Qd=t,t}function ef(e,t){Zd===e&&(Qd=Math.max(0,Qd+t))}function tf(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 nf(){let e=q(),t=$d(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=$d(e),t<=52428800)return;let i=0;for(;t>Cd&&i<e.size;){let n=e.keys().next().value;if(n!==void 0){let a=e.get(n);if(a){let o=Xd(a);if(a.pending!==void 0&&o===0){tf(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 rf=new Set;function af(e){let t={destination:e,cancelled:!1};return rf.add(t),t}function of(e){for(let t of rf)(e===null||t.destination===e)&&(t.cancelled=!0)}function sf(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,``,bd);try{let e=new URL(n,window.location.href);return`${e.pathname}${e.search}`}catch{return n.split(`#`,1)[0]}}function cf(e){e.invalidationTimer!==void 0&&(clearTimeout(e.invalidationTimer),e.invalidationTimer=void 0)}function lf(e){try{e()}catch(e){typeof reportError==`function`?reportError(e):console.error(e)}}function uf(e){cf(e);let t=e.onInvalidateCallbacks;if(e.onInvalidateCallbacks=void 0,t!==void 0)for(let e of t)lf(e)}var df=new Set;function ff(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(()=>pf(r),n)};df.add(r)}function pf(e){if(df.delete(e)){clearTimeout(e.timer);for(let t of e.callbacks)lf(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&&(ef(e,-Xd(r)),r.cacheKeys=void 0,i?uf(r):(cf(r),r.onInvalidateCallbacks=void 0))}function mf(e,t=null){let n=q(),r=J(),i=Hd(e);if(i===null)return!1;let a=[];for(let[e,r]of n){if(r.cacheForNavigation!==!1||r.prefetchKind!==`navigation`)continue;let n=Wd(e);n.interceptionContext===t&&Hd(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 hf(e){let t=q(),n=t.get(e);n&&X(t,J(),e,n,!0)}function gf(e,t){if(t.onInvalidateCallbacks===void 0||t.onInvalidateCallbacks.size===0)return;cf(t);let n=Math.max(0,Y(t)-Date.now());t.invalidationTimer=setTimeout(()=>{hf(e)},n)}function _f(e,t){t!==void 0&&(e.onInvalidateCallbacks===void 0&&(e.onInvalidateCallbacks=new Set),e.onInvalidateCallbacks.add(t))}function vf(e,t,n){n!==void 0&&(_f(t,n),t.outcome===`cache-seeded`&&gf(e,t))}function yf(e,t){if(t===void 0)return;let n=q().get(e);n&&vf(e,n,t)}function bf(){of(null);let e=q(),t=J();for(let[n,r]of e)X(e,t,n,r,!0);t.clear();for(let e of df)pf(e);g()?.functions.pingVisibleLinks?.()}function xf(){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&&g()?.functions.pingVisibleLinks?.()}function Sf(e,t,n=null,r=null,i=Td,a=!1){let o=A.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:zd(l,t,i),mountedSlotsHeader:r,outcome:`cache-seeded`,reuseAfterHistoryRestore:a,size:t.buffer.byteLength,snapshot:t,timestamp:l};s.set(o,u),ef(s,t.buffer.byteLength),J().add(o),gf(o,u),nf()}function Cf(e,t,n=null){let r=A.encodeCacheKey(e,n),i=q(),a=i.get(r);a?.snapshot===t&&X(i,J(),r,a,!1)}function wf(e,t,n=null,r){let i=A.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()};_f(c,r?.onInvalidate),c.pending=Of(t).then(e=>{if(a.get(i)!==c)return;let t=Xd(c);c.mountedSlotsHeader=e.mountedSlotsHeader??null,c.snapshot=e,c.size=e.buffer.byteLength,ef(a,c.size-t),c.expiresAt=zd(c.timestamp,e,K),nf()}).catch(()=>{X(a,o,i,c,!1)}).finally(()=>{a.get(i)===c&&(c.pending=void 0,c.snapshot&&(c.outcome=`cache-seeded`,gf(i,c)))}),a.set(i,c)}function Tf(e,t,n=null){let r=Fd(e.headers.get(tt)),i=e.headers.get(nt),a=i===`1`?Sc(t):{buffer:t},o=i===`resolved`?r:a.metadata?.dynamicStaleTimeSeconds??r,s=o??r,c=Ef(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(L),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(y),paramsHeader:e.headers.get(et),renderedPathAndSearch:Df(e.headers.get(rt)),...l===void 0?{}:{serverStaleTime:l},url:n??e.url}}function Ef(e){if(e.get(`X-Vinext-Stale-Time-Pending`)===`1`)return{kind:`pending`};let t=Fd(e.get(ht));return t===void 0?void 0:{kind:`resolved`,seconds:t}}function Df(e){if(e===null||e===``)return null;try{let t=decodeURIComponent(e);return t.startsWith(`/`)?t:null}catch{return null}}async function Of(e){try{let t=Tf(e,await e.arrayBuffer()),n=kf.get(e);return n===void 0?t:{...t,expiresAt:n}}finally{ed(e)}}var kf=new WeakMap;function Af(e,t=!0){let n=new Headers({"content-type":e.contentType});e.mountedSlotsHeader!=null&&n.set(y,e.mountedSlotsHeader),e.compatibilityIdHeader!=null&&n.set(L,e.compatibilityIdHeader),Nd(e.dynamicStaleTimeSeconds)&&n.set(tt,String(e.dynamicStaleTimeSeconds)),Nd(e.completedDynamicStaleTimeSeconds)&&n.set(nt,`resolved`),e.serverStaleTime?.kind===`pending`?n.set(gt,`1`):e.serverStaleTime!==void 0&&n.set(ht,String(e.serverStaleTime.seconds)),e.paramsHeader!=null&&n.set(et,e.paramsHeader),e.renderedPathAndSearch!=null&&n.set(rt,encodeURIComponent(e.renderedPathAndSearch));let r=new Response(t?e.buffer.slice(0):e.buffer,{status:200,headers:n});return Pd(e.expiresAt)&&kf.set(r,e.expiresAt),r}async function jf(e){let t=g()?.functions.preparePrefetchResponse;if(!t)throw Error(`App Router prefetch preparation is unavailable`);return await t(Af(e))}async function Mf(e){let{fetchFullRscPayload:t,fetchRouteTree:n,fullHref:r,headers:i,interceptionContext:a,mountedSlotsHeader:o}=e,s=new Headers(i);s.set(S,`1`),s.set(C,`/_tree`);let c=await R(r,s),l=A.encodeCacheKey(c,a),u=Md(l);u===void 0&&(J().add(l),Nf(c,n(c,s),a,o,void 0,{cacheForNavigation:!1,optimisticRouteShell:!1,prefetchKind:`route-tree`}),u=Md(l)),await u?.pending?.catch(()=>{}),u=Md(l);let d=u?.snapshot?.renderedPathAndSearch;if(d){let e=Ff(await R(d,i),a,o);if(e)return Af(e)}return t()}function Nf(e,t,n=null,r=null,i,a={}){let o=A.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};_f(f,i?.onInvalidate),f.fetchPromise=t,f.pending=t.then(async e=>{if(e.ok){let t=await Of(e);if(s.get(o)!==f)return;let n=Xd(f);if(f.snapshot=t,f.size=t.buffer.byteLength,ef(s,f.size-n),f.expiresAt=Bd(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{}Pf(s,c,o,f),nf()}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`,gf(o,f)))}),s.set(o,f),nf()}function Pf(e,t,n,r){if(r.cacheForNavigation===!1)return;let i=r.snapshot?.renderedPathAndSearch;if(!i)return;let a=Wd(n),o=A.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 Ff(e,t=null,n=null,r){let i=Kd(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}function If(e,t=null,n=null,r){let i=q(),a=A.encodeCacheKey(e,t),o=i.get(a);o&&o.cacheForNavigation!==!1&&!Gd(o,n)&&X(i,J(),a,o,!1);let s=Kd(e,t,n,r?.additionalRscUrls);if(!s)return null;let{cacheKey:c,entry:l}=s;return Lf(c,l,n)}function Lf(e,t,n,r=!1){let i=q();
32if(t.pending||t.outcome!==`cache-seeded`||t.cacheForNavigation===!1)return null;if(t.snapshot){if(!Gd(t,n))return null;if(!r&&Y(t)<=Date.now())return X(i,J(),e,t,!0),null;ff(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 Rf(e,t=null,n=null,r){let i=q(),a=Kd(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:Lf(o,s,n,c)}var zf=Symbol.for(`vinext.clientNavigationState`),Bf=Symbol.for(`vinext.mountedSlotsHeader`);function Vf(e){let t=window;t[Bf]=e}function Hf(){return window[Bf]??null}function Z(){let e=window;return e[zf]??={listeners:new Set,cachedSearch:window.location.search,cachedReadonlySearchParams:new U(window.location.search),cachedPathname:v(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[zf]}function Uf(){let e=Z();if(e)for(let t of e.listeners)t()}globalThis[vd]=Uf;var Wf=null,Gf=new WeakMap,Kf=null,qf=null;function Jf(e){let t=Gf.get(e);if(t)return t;let n=e.toString();if(Kf===n&&qf)return Gf.set(e,qf),qf;let r=new U(e);return Gf.set(e,r),Kf=n,qf=r,r}function Yf(){let e=Ku();return e?e.pathname:Z()?.cachedPathname??`/`}var Xf=null;function Zf(){if(j())return $f();let e=Ku();return e?Jf(e.searchParams):Z()?.cachedReadonlySearchParams||(Xf===null&&(Xf=new U),Xf)}function Qf(){let e=Z();if(!e)return!1;let t=!1,n=v(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 U(r),t=!0),t}function $f(){let e=j();if(!e){let e=Ku();return e?Jf(e.searchParams):(Wf===null&&(Wf=new U),Wf)}let t=e.searchParams,n=e[hd],r=e[gd];if(n&&r===t)return n;let i=t.toString();if(n&&e[_d]===i)return e[gd]=t,n;let a=new U(t);return e[hd]=a,e[gd]=t,e[_d]=i,a}function ep(){let e=Z();e&&e.navigationSnapshotActiveCount++}var tp={},np=Symbol.for(`vinext.clientNavigationRenderContext`);function rp(){if(typeof o.createContext!=`function`)return null;let e=globalThis;return e[np]||(e[np]=o.createContext(null)),e[np]??null}function ip(){let e=rp();if(!e||typeof o.useContext!=`function`)return null;try{return o.useContext(e)}catch{return null}}function ap(e,t){let n=window.location.origin,r=new URL(e,n);return{pathname:v(r.pathname,``),search:r.search,searchParams:new U(r.search),params:t}}function op(e){return e.pathname+e.search}var sp=tp,cp=`{}`;function lp(e){let t=Z();if(!t){let t=JSON.stringify(e);t!==cp&&(sp=e,cp=t);return}let n=JSON.stringify(e);n!==t.clientParamsJson&&(t.clientParams=e,t.clientParamsJson=n,t.pendingClientParams=null,t.pendingClientParamsJson=null,Uf())}function up(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 dp(){return Z()?.clientParams??sp}function fp(e,t){let n=Z();n&&(n.pendingPathname=v(e,``),n.pendingPathnameNavId=t)}function pp(e){let t=Z();t&&(t.pendingPathnameNavId===null||t.pendingPathnameNavId===e)&&(t.pendingPathname=null,t.pendingPathnameNavId=null)}function mp(){let e=Z(),t=j();if(t)return t.params;let n=Ku();return n?n.params:e?.clientParams??tp}function hp(){let e=j();if(e)return e.params;let t=Ku();return t?t.params:tp}function gp(e){let t=Z();return t?(t.listeners.add(e),()=>{t.listeners.delete(e)}):()=>{}}function _p(){let e=ip(),t=o.useSyncExternalStore(gp,Yf,()=>{let e=j();if(e)return e.pathname;let t=Ku();return t?t.pathname:`/`});return e&&(Z()?.navigationSnapshotActiveCount??0)>0?e.pathname:t}function vp(){let e=ip(),t=o.useSyncExternalStore(gp,Zf,$f);return e&&(Z()?.navigationSnapshotActiveCount??0)>0?e.searchParams:t}function yp(){let e=ip(),t=o.useSyncExternalStore(gp,mp,hp);return e&&(Z()?.navigationSnapshotActiveCount??0)>0?e.params:t}function bp(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=Qf(),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)&&Wr(),a&&Uf()}function xp(e,t,n){bp(()=>{Z()?.originalPushState.call(window.history,e,t,n)})}function Sp(e,t,n){bp(()=>{Z()?.originalReplaceState.call(window.history,e,t,n)})}function Cp(){Sp({...window.history.state??{},__vinext_scrollX:window.scrollX,__vinext_scrollY:window.scrollY},``)}function wp(e,t,n){let r=g()?.functions.commitHashNavigation;if(r){r(e,t,n);return}let i=ac(window.history.state);t===`replace`?Sp(i,``,e):xp(i,``,e)}function Tp(e){if(!(typeof document>`u`)){if(e.hash!==null){Tr(e.hash,()=>Sa(e));return}e.targetHoistedInHead||(document.documentElement.scrollTop=0)}}function Ep(e){queueMicrotask(()=>{let t=xa();if(t===null||t.id!==e.id)return;let n=Ta(e);n&&Tp(n)})}function Dp(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(()=>Er(t,n)):Er(t,n)})}}function Op(e,t){t===`replace`?window.location.replace(e):window.location.assign(e)}function kp(){g()?.functions.notifyLinkNavigationStart?.()}function Ap(e){let t=sf(e);t!==null&&!Iu(e,window.location.href,``)&&of(t),kp()}function jp(){let e=sf(window.location.href);e!==null&&of(e),kp()}async function Mp(e,t,n,r=!1,i=`transition`){Ap(e);let a=e;if(Ql(e)){let n=Ou(e,``);if(n==null){Os(e,t);let n=g()?.functions.navigateExternal;if(n){await n(e,t);return}Op(e,t),await new Promise(()=>{});return}a=n}let o=pd(a);if(o===`pages`||o===`document`){let e=Fu(a,window.location.href,``,bd);Os(e,t),t===`push`&&Cp(),Op(e,t),await new Promise(()=>{});return}let s=Fu(a,window.location.href,``,bd);Os(s,t),t===`push`&&Cp();let c=Zl.classifyEarlyNavigationIntent({basePath:``,currentUrlSpace:`browser`,currentHref:window.location.href,mode:t,scroll:n,targetHref:s});if(c.kind===`sameDocumentScroll`){ba(),wp(s,c.mode,c.scroll),ji(s),Q(),c.scroll&&wr(c.hash);return}if(fc(typeof document>`u`?void 0:document)){let e=g()?.functions.navigateExternal;if(e){await e(s,t);return}Op(s,t),await new Promise(()=>{});return}let l=s.indexOf(`#`),u=l===-1?``:s.slice(l),d=n?ya(u||null):null;n||ba();let f=g()?.functions.navigate;try{f?await f(s,0,`navigate`,t,void 0,r,void 0,d,i,c.bypassNavigationCache):(t===`replace`?Sp(null,``,s):xp(null,``,s),Q())}catch(e){throw d&&Ta(d),e}d&&Ep(d)}var Np=0;function Pp(){Np+=1;let e=!1;return()=>{e||(e=!0,Np=Math.max(0,Np-1))}}function Fp(){return Np>0}function Ip(e){queueMicrotask(e)}var Lp={bfcacheId:`0`,push(e,t){Mc(e),Ap(e);let n=Pp();try{o.startTransition(()=>{Mp(e,`push`,t?.scroll!==!1,!0)})}catch(e){throw n(),e}Ip(n)},replace(e,t){Mc(e),Ap(e);let n=Pp();try{o.startTransition(()=>{Mp(e,`replace`,t?.scroll!==!1,!0)})}catch(e){throw n(),e}Ip(n)},back(){window.history.back()},forward(){window.history.forward()},refresh(){if(g()?.functions.clearNavigationCaches?.(),Fp())return;let e=g()?.functions.navigate;e&&o.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=sf(n);if(r===null)return;let i=kd(r),a=Hf(),o=jd({fetchPriority:`low`,interceptionContext:i,mountedSlotsHeader:a||null}),s=af(r);(async()=>{await dd();let e=pd(r);if(e===`pages`||e===`document`)return;let n=fd(r,``),c=t?.kind===`full`?`full`:`auto`,[{resolveAutoAppRoutePrefetch:l,resolveFullAppRoutePrefetch:u},{resolveAppPrefetchRscRequest:d}]=await Promise.all([sd(()=>Promise.resolve().then(()=>tm),void 0),sd(()=>Promise.resolve().then(()=>$p),void 0)]);if(s.cancelled)return;
32let f=c===`full`?u():l(n??r),p=f.shouldPrefetch&&f.cacheForNavigation,ee=f.requiresRouteTreePrefetch===!0;p&&c===`full`&&o.delete(S),p&&c===`auto`&&(o.set(S,`1`),o.set(C,ee?`/__PAGE__`:`1`));let te=new URL(r,window.location.href).search!==``;!p&&c===`auto`&&(o.set(S,`1`),o.set(C,`1`),o.set(b,te?Fo:Io));let{additionalRscUrls:ne,rscUrl:m,usesCanonicalPrewarmedRequest:re}=await d({canUseCanonicalLoadingShell:f.canUseCanonicalLoadingShell===!0,fullHref:r,headers:o,interceptionContext:i,mountedSlotsHeader:a,prefetchInlining:xd,requiresRouteTreePrefetch:ee,rewrittenPrefetchHref:n});if(s.cancelled)return;let ie=A.encodeCacheKey(m,i),ae=J();if(p){if(mf(m,i),qd(m,i,a,{additionalRscUrls:ne,onInvalidate:t?.onInvalidate}))return}else if(Jd(m,i)){yf(ie,t?.onInvalidate);return}ae.add(ie);let oe=()=>td(e=>fetch(m,{headers:o,credentials:`include`,priority:`low`,signal:e}),`low`);Nf(m,!re&&p&&c===`auto`&&ee?Mf({fetchFullRscPayload:oe,fetchRouteTree:(e,t)=>td(n=>fetch(e,{headers:t,credentials:`include`,priority:`low`,signal:n}),`low`),fullHref:r,headers:o,interceptionContext:i,mountedSlotsHeader:a}):oe(),i,a,t,p?{cacheForNavigation:!0,fallbackTtlMs:f.fallbackTtl===`dynamic`?Td:K,dynamicStaleTime:f.dynamicStaleTime,optimisticRouteShell:!1,prefetchKind:`navigation`,prepareSnapshot:jf}:{cacheForNavigation:!1,fallbackTtlMs:f.fallbackTtl===`dynamic`?Td:K,dynamicStaleTime:f.dynamicStaleTime,optimisticRouteShell:!0,prefetchKind:`navigation`})})().catch(e=>{console.error(`[vinext] RSC prefetch setup error:`,e)}).finally(()=>{rf.delete(s)})}};function Rp(e){return!e||e===`0`?cc:e}function zp(){let e=Rr(),t=Lr();if(!e||!t||typeof o.useContext!=`function`)return Rp(null);try{let n=o.useContext(e),r=o.useContext(t);return Rp(n===null?null:r?.[n])}catch{return Rp(null)}}var Bp=Lp;function Vp(){if(!mr||typeof o.useContext!=`function`||typeof o.useMemo!=`function`)throw Error(`invariant expected app router to be mounted`);let e=o.useContext(mr);if(e===null)throw Error(`invariant expected app router to be mounted`);let t=zp();return o.useMemo(()=>({...e,bfcacheId:t}),[e,t])}function Hp(e){let t=Up(e);return t.length===0?null:e===void 0||e===`children`?t[0]:t[t.length-1]}function Up(e){return md(e)}function Wp(e){typeof document<`u`||Zr(e)}{let e=Z();e&&!e.patchInstalled&&(e.patchInstalled=!0,window.addEventListener(`popstate`,()=>{jp()}),window.addEventListener(`popstate`,e=>{he()||(Q(),Dp(e.state))}),window.history.pushState=function(t,n,r){if(Gs(t)){let i=window.history.state;e.originalPushState.call(window.history,t,n,r),g()?.functions.commitAppOwnedHistoryStateWrite?.(`push`,i);return}let i=window.history.state;e.originalPushState.call(window.history,Hs(t,window.history.state),n,r),g()?.functions.claimCurrentHistoryTreeSnapshot?.(`push`,i),e.suppressUrlNotifyCount===0&&(kp(),Q())},window.history.replaceState=function(t,n,r){if(Gs(t)){let i=window.history.state;e.originalReplaceState.call(window.history,t,n,r),g()?.functions.commitAppOwnedHistoryStateWrite?.(`replace`,i);return}let i=window.history.state;e.originalReplaceState.call(window.history,Hs(t,window.history.state),n,r),g()?.functions.claimCurrentHistoryTreeSnapshot?.(`replace`,i),e.suppressUrlNotifyCount===0&&(kp(),Q())})}function Gp(e,t){let n=(0,o.useRef)(null),r=(0,o.useRef)(null);return(0,o.useCallback)(i=>{if(i===null){let e=n.current;e&&(n.current=null,e());let t=r.current;t&&(r.current=null,t())}else e&&(n.current=Kp(e,i)),t&&(r.current=Kp(t,i))},[e,t])}function Kp(e,t){if(typeof e==`function`){let n=e(t);return typeof n==`function`?n:()=>e(null)}return e.current=t,()=>{e.current=null}}var qp=t(n(((e,t)=>{(function(e){let n=`(0?\\d+|0x[a-f0-9]+)`,r={fourOctet:RegExp(`^${n}\\.${n}\\.${n}\\.${n}$`,`i`),threeOctet:RegExp(`^${n}\\.${n}\\.${n}$`,`i`),twoOctet:RegExp(`^${n}\\.${n}$`,`i`),longValue:RegExp(`^${n}$`,`i`)},i=RegExp(`^0[0-7]+$`,`i`),a=RegExp(`^0x[a-f0-9]+$`,`i`),o=`%[0-9a-z]{1,}`,s=`(?:[0-9a-f]+::?)+`,c={zoneIndex:RegExp(o,`i`),native:RegExp(`^(::)?(${s})?([0-9a-f]+)?(::)?(${o})?$`,`i`),deprecatedTransitional:RegExp(`^(?:::)(${n}\\.${n}\\.${n}\\.${n}(${o})?)$`,`i`),transitional:RegExp(`^((?:${s})|(?:::)(?:${s})?)${n}\\.${n}\\.${n}\\.${n}(${o})?$`,`i`)};function l(e,t){if(e.indexOf(`::`)!==e.lastIndexOf(`::`))return null;let n=0,r=-1,i=(e.match(c.zoneIndex)||[])[0],a,o;for(i&&(i=i.substring(1),e=e.replace(/%.+$/,``));(r=e.indexOf(`:`,r+1))>=0;)n++;
32if(e.substr(0,2)===`::`&&n--,e.substr(-2,2)===`::`&&n--,n>=t)return null;for(o=t-n,a=`:`;o--;)a+=`0:`;return e=e.replace(`::`,a),e[0]===`:`&&(e=e.slice(1)),e[e.length-1]===`:`&&(e=e.slice(0,-1)),t=(function(){let t=e.split(`:`),n=[];for(let e=0;e<t.length;e++)n.push(t[e].length>4?NaN:parseInt(t[e],16));return n})(),{parts:t,zoneId:i}}function u(e,t,n,r){if(e.length!==t.length)throw Error(`ipaddr: cannot match CIDR for objects with different lengths`);let i=0,a;for(;r>0;){if(a=n-r,a<0&&(a=0),e[i]>>a!==t[i]>>a)return!1;r-=n,i+=1}return!0}function d(e){if(a.test(e))return parseInt(e,16);if(e[0]===`0`&&!isNaN(parseInt(e[1],10))){if(i.test(e))return parseInt(e,8);throw Error(`ipaddr: cannot parse ${e} as octal`)}return parseInt(e,10)}function f(e,t){for(;e.length<t;)e=`0${e}`;return e}let p={};p.IPv4=(function(){function e(e){if(e.length!==4)throw Error(`ipaddr: ipv4 octet count should be 4`);let t,n;for(t=0;t<e.length;t++)if(n=e[t],!(0<=n&&n<=255))throw Error(`ipaddr: ipv4 octet should fit in 8 bits`);this.octets=e}return e.prototype.SpecialRanges={unspecified:[[new e([0,0,0,0]),8]],broadcast:[[new e([255,255,255,255]),32]],multicast:[[new e([224,0,0,0]),4]],linkLocal:[[new e([169,254,0,0]),16]],loopback:[[new e([127,0,0,0]),8]],carrierGradeNat:[[new e([100,64,0,0]),10]],private:[[new e([10,0,0,0]),8],[new e([172,16,0,0]),12],[new e([192,168,0,0]),16]],reserved:[[new e([192,0,0,0]),24],[new e([192,0,2,0]),24],[new e([192,88,99,0]),24],[new e([198,18,0,0]),15],[new e([198,51,100,0]),24],[new e([203,0,113,0]),24],[new e([240,0,0,0]),4]],as112:[[new e([192,175,48,0]),24],[new e([192,31,196,0]),24]],amt:[[new e([192,52,193,0]),24]]},e.prototype.kind=function(){return`ipv4`},e.prototype.match=function(e,t){let n;if(t===void 0&&(n=e,e=n[0],t=n[1]),e.kind()!==`ipv4`)throw Error(`ipaddr: cannot match ipv4 address with non-ipv4 one`);return u(this.octets,e.octets,8,t)},e.prototype.prefixLengthFromSubnetMask=function(){let e=0,t=!1,n={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},r,i,a;for(r=3;r>=0;--r)if(i=this.octets[r],i in n){if(a=n[i],t&&a!==0)return null;a!==8&&(t=!0),e+=a}else return null;return 32-e},e.prototype.range=function(){return p.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){return this.octets.slice(0)},e.prototype.toIPv4MappedAddress=function(){return p.IPv6.parse(`::ffff:${this.toString()}`)},e.prototype.toNormalizedString=function(){return this.toString()},e.prototype.toString=function(){return this.octets.join(`.`)},e})(),p.IPv4.broadcastAddressFromCIDR=function(e){try{let t=this.parseCIDR(e),n=t[0].toByteArray(),r=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],a=0;for(;a<4;)i.push(parseInt(n[a],10)|parseInt(r[a],10)^255),a++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv4 CIDR format`,{cause:e})}},p.IPv4.isIPv4=function(e){return this.parser(e)!==null},p.IPv4.isValid=function(e){try{return new this(this.parser(e)),!0}catch{return!1}},p.IPv4.isValidCIDR=function(e){try{return this.parseCIDR(e),!0}catch{return!1}},p.IPv4.isValidFourPartDecimal=function(e){return!!(p.IPv4.isValid(e)&&e.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},p.IPv4.isValidCIDRFourPartDecimal=function(e){let t=e.match(/^(.+)\/(\d+)$/);return!p.IPv4.isValidCIDR(e)||!t?!1:p.IPv4.isValidFourPartDecimal(t[1])},p.IPv4.networkAddressFromCIDR=function(e){let t,n,r,i,a;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),a=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<4;)i.push(parseInt(r[n],10)&parseInt(a[n],10)),n++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv4 CIDR format`,{cause:e})}},p.IPv4.parse=function(e){let t=this.parser(e);if(t===null)throw Error(`ipaddr: string is not formatted like an IPv4 Address`);return new this(t)},p.IPv4.parseCIDR=function(e){let t;if(t=e.match(/^(.+)\/(\d+)$/)){let e=parseInt(t[2]);if(e>=0&&e<=32){let n=[this.parse(t[1]),e];return Object.defineProperty(n,"toString",{value:function(){return this.join(`/`)}}),n}}throw Error(`ipaddr: string is not formatted like an IPv4 CIDR range`)},p.IPv4.parser=function(e){let t,n,i;if(t=e.match(r.fourOctet))return(function(){let e=t.slice(1,6),r=[];for(let t=0;t<e.length;t++)n=e[t],r.push(d(n));return r})();if(t=e.match(r.longValue)){if(i=d(t[1]),i>4294967295||i<0)throw Error(`ipaddr: address outside defined range`);return(function(){let e=[],t=0;for(;t<=24;t+=8)e.push(i>>t&255);return e})().reverse()}return(t=e.match(r.twoOctet))?(function(){let e=t.slice(1,4),n=[];if(i=d(e[1]),i>16777215||i<0)throw Error(`ipaddr: address outside defined range`);return n.push(d(e[0])),n.push(i>
32>16&255),n.push(i>>8&255),n.push(i&255),n})():(t=e.match(r.threeOctet))?(function(){let e=t.slice(1,5),n=[];if(i=d(e[2]),i>65535||i<0)throw Error(`ipaddr: address outside defined range`);return n.push(d(e[0])),n.push(d(e[1])),n.push(i>>8&255),n.push(i&255),n})():null},p.IPv4.subnetMaskFromPrefixLength=function(e){if(e=parseInt(e),Number.isNaN(e)||e<0||e>32)throw Error(`ipaddr: invalid IPv4 prefix length`);let t=[0,0,0,0],n=0,r=Math.floor(e/8);for(;n<r;)t[n]=255,n++;return r<4&&(t[r]=2**(e%8)-1<<8-e%8),new this(t)},p.IPv6=(function(){function e(e,t){let n,r;if(e.length===16)for(this.parts=[],n=0;n<=14;n+=2)this.parts.push(e[n]<<8|e[n+1]);else if(e.length===8)this.parts=e;else throw Error(`ipaddr: ipv6 part count should be 8 or 16`);for(n=0;n<this.parts.length;n++)if(r=this.parts[n],!(0<=r&&r<=65535))throw Error(`ipaddr: ipv6 part should fit in 16 bits`);t&&(this.zoneId=t)}return e.prototype.SpecialRanges={unspecified:[new e([0,0,0,0,0,0,0,0]),128],linkLocal:[new e([65152,0,0,0,0,0,0,0]),10],multicast:[new e([65280,0,0,0,0,0,0,0]),8],loopback:[new e([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new e([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new e([0,0,0,0,0,65535,0,0]),96],deprecatedSiteLocal:[new e([65216,0,0,0,0,0,0,0]),10],discard:[new e([256,0,0,0,0,0,0,0]),64],rfc6145:[new e([0,0,0,0,65535,0,0,0]),96],rfc6052:[[new e([100,65435,0,0,0,0,0,0]),96],[new e([100,65435,1,0,0,0,0,0]),48]],"6to4":[new e([8194,0,0,0,0,0,0,0]),16],teredo:[new e([8193,0,0,0,0,0,0,0]),32],benchmarking:[new e([8193,2,0,0,0,0,0,0]),48],amt:[new e([8193,3,0,0,0,0,0,0]),32],as112v6:[[new e([8193,4,274,0,0,0,0,0]),48],[new e([9760,79,32768,0,0,0,0,0]),48]],deprecatedOrchid:[new e([8193,16,0,0,0,0,0,0]),28],orchid2:[new e([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new e([8193,48,0,0,0,0,0,0]),28],segmentRouting:[new e([24320,0,0,0,0,0,0,0]),16],reserved:[[new e([8193,0,0,0,0,0,0,0]),23],[new e([8193,3512,0,0,0,0,0,0]),32],[new e([16383,0,0,0,0,0,0,0]),20]]},e.prototype.isIPv4MappedAddress=function(){return this.range()===`ipv4Mapped`},e.prototype.kind=function(){return`ipv6`},e.prototype.match=function(e,t){let n;if(t===void 0&&(n=e,e=n[0],t=n[1]),e.kind()!==`ipv6`)throw Error(`ipaddr: cannot match ipv6 address with non-ipv6 one`);return u(this.parts,e.parts,16,t)},e.prototype.prefixLengthFromSubnetMask=function(){let e=0,t=!1,n={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},r,i;for(let a=7;a>=0;--a)if(r=this.parts[a],r in n){if(i=n[r],t&&i!==0)return null;i!==16&&(t=!0),e+=i}else return null;return 128-e},e.prototype.range=function(){return p.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){let e,t=[],n=this.parts;for(let r=0;r<n.length;r++)e=n[r],t.push(e>>8),t.push(e&255);return t},e.prototype.toFixedLengthString=function(){let e=(function(){let e=[];for(let t=0;t<this.parts.length;t++)e.push(f(this.parts[t].toString(16),4));return e}).call(this).join(`:`),t=``;return this.zoneId&&(t=`%${this.zoneId}`),e+t},e.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw Error(`ipaddr: trying to convert a generic ipv6 address to ipv4`);let e=this.parts.slice(-2),t=e[0],n=e[1];return new p.IPv4([t>>8,t&255,n>>8,n&255])},e.prototype.toNormalizedString=function(){let e=(function(){let e=[];for(let t=0;t<this.parts.length;t++)e.push(this.parts[t].toString(16));return e}).call(this).join(`:`),t=``;return this.zoneId&&(t=`%${this.zoneId}`),e+t},e.prototype.toRFC5952String=function(){let e=/((^|:)(0(:|$)){2,})/g,t=``;this.zoneId&&(t=`%${this.zoneId}`);let n=this.toNormalizedString(),r=n.slice(0,n.length-t.length),i=0,a=-1,o=-1,s;for(;s=e.exec(r);){let e=(s[0].match(/0/g)||[]).length;e>o&&(o=e,i=s.index,a=s[0].length)}return a<0?r+t:`${r.substring(0,i)}::${r.substring(i+a)}${t}`},e.prototype.toString=function(){return this.toRFC5952String()},e})(),p.IPv6.broadcastAddressFromCIDR=function(e){try{let t=this.parseCIDR(e),n=t[0].toByteArray(),r=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],a=0;for(;a<16;)i.push(parseInt(n[a],10)|parseInt(r[a],10)^255),a++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv6 CIDR format`,{cause:e})}},p.IPv6.isIPv6=function(e){return this.parser(e)!==null},p.IPv6.isValid=function(e){if(typeof e==`string`&&e.indexOf(`:`)===-1)return!1;try{let t=this.parser(e);return new this(t.parts,t.zoneId),!0}catch{return!1}},p.IPv6.isValidCIDR=function(e){if(typeof e==`string`&&e.indexOf(`:`)===-1)return!1;try{return this.parseCIDR(e),!0}catch{return!1}},p.IPv6.networkAddressFromCIDR=function(e){let t,n,r,i,a;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),a=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<16;)i.push(parseInt(r[n],10)&parseInt(a[n],10)),n++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv6 CIDR format`,{cause:e})}},p.IPv6.parse=function(e){let t=this.parser(e);if(t===null)throw Error(`ipaddr: string is not formatted like an IPv6 Address`);return new this(t.parts,t.zoneId)},p.IPv6.parseCIDR=function(e){let t,n,r;if((n=e.match(/^(.+)\/(\d+)$/))&&(t=parseInt(n[2]),t>=0&&t<=128))return r=[this.parse(n[1]),t],Object.defineProperty(r,"toString",{value:function(){return this.join(`/`)}}),r;throw Error(`ipaddr: string is not formatted like an IPv6 CIDR range`)},p.IPv6.parser=function(e){let t,n,r,i,a,o;if(r=e.match(c.deprecatedTransitional))return this.parser(`::ffff:${r[1]}`);if(c.native.test(e))return l(e,8);if((r=e.match(c.transitional))&&(o=r[6]||``,t=r[1],r[1].endsWith(`::`)||(t=t.
32slice(0,-1)),t=l(t+o,6),t&&t.parts)){for(a=[parseInt(r[2]),parseInt(r[3]),parseInt(r[4]),parseInt(r[5])],n=0;n<a.length;n++)if(i=a[n],!(0<=i&&i<=255))return null;return t.parts.push(a[0]<<8|a[1]),t.parts.push(a[2]<<8|a[3]),{parts:t.parts,zoneId:t.zoneId}}return null},p.IPv6.subnetMaskFromPrefixLength=function(e){if(e=parseInt(e),Number.isNaN(e)||e<0||e>128)throw Error(`ipaddr: invalid IPv6 prefix length`);let t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=0,r=Math.floor(e/8);for(;n<r;)t[n]=255,n++;return r<16&&(t[r]=2**(e%8)-1<<8-e%8),new this(t)},p.fromByteArray=function(e){let t=e.length;if(t===4)return new p.IPv4(e);if(t===16)return new p.IPv6(e);throw Error(`ipaddr: the binary input is neither an IPv6 nor IPv4 address`)},p.isValid=function(e){return p.IPv6.isValid(e)||p.IPv4.isValid(e)},p.isValidCIDR=function(e){return p.IPv6.isValidCIDR(e)||p.IPv4.isValidCIDR(e)},p.parse=function(e){if(p.IPv6.isValid(e))return p.IPv6.parse(e);if(p.IPv4.isValid(e))return p.IPv4.parse(e);throw Error(`ipaddr: the address has neither IPv6 nor IPv4 format`)},p.parseCIDR=function(e){try{return p.IPv6.parseCIDR(e)}catch{try{return p.IPv4.parseCIDR(e)}catch(e){throw Error(`ipaddr: the address has neither IPv6 nor IPv4 CIDR format`,{cause:e})}}},p.process=function(e){let t=this.parse(e);return t.kind()===`ipv6`&&t.isIPv4MappedAddress()?t.toIPv4Address():t},p.subnetMatch=function(e,t,n){let r,i,a,o;for(i in n??=`unicast`,t)if(Object.prototype.hasOwnProperty.call(t,i)){for(a=t[i],a[0]&&!(a[0]instanceof Array)&&(a=[a]),r=0;r<a.length;r++)if(o=a[r],e.kind()===o[0].kind()&&e.match.apply(e,o))return i}return n},t!==void 0&&t.exports?t.exports=p:e.ipaddr=p})(e)}))(),1),Jp=new Map;function Yp(e,t){let n=`${t}\0${e}`,r=Jp.get(n);if(r!==void 0)return r;let i=`^`,a=t===`.`?`.+`:`.*`,o=t===`.`?`[^.]+`:`[^/]+`,s=e.split(`**`);for(let e=0;e<s.length;e++){e>0&&(i+=a);let t=s[e].split(`*`);for(let e=0;e<t.length;e++)e>0&&(i+=o),i+=t[e].replace(/[.+?^${}()|[\]\\]/g,`\\$&`)}i+=`$`;let c=new RegExp(i);return Jp.set(n,c),c}function Xp(e,t){return!(e.protocol!==void 0&&e.protocol.replace(/:$/,``)!==t.protocol.replace(/:$/,``)||e.port!==void 0&&e.port!==t.port||!Yp(e.hostname,`.`).test(t.hostname)||e.search!==void 0&&e.search!==t.search||!Yp(e.pathname??`**`,`/`).test(t.pathname))}function Zp(e,t,n){return e.some(e=>n.hostname===e)||t.some(e=>Xp(e,n))}function Qp(e){e.startsWith(`[`)&&e.endsWith(`]`)&&(e=e.slice(1,-1));try{let t=qp.default.parse(e);return t instanceof qp.default.IPv6&&t.isIPv4MappedAddress()?t.toIPv4Address().range()!==`unicast`:t.range()!==`unicast`}catch{return!1}}var $p=e({resolveAppPrefetchRscRequest:()=>em});async function em({canUseCanonicalLoadingShell:e,fullHref:t,headers:n,interceptionContext:r,mountedSlotsHeader:i,prefetchInlining:a,requiresRouteTreePrefetch:o,rewrittenPrefetchHref:s}){let c=r===null&&i===null&&(s===null||s===t)&&!o&&!a,l=c&&e&&ys(n),u=c&&!l&&vs(n),[d,...f]=await Promise.all([u?xs(t):R(t,n),...s!==null&&s!==t?[R(s,n)]:[]]);return{additionalRscUrls:f,rscUrl:d,usesCanonicalPrewarmedRequest:l||u}}var tm=e({canAutoPrefetchFullAppRoute:()=>om,resolveAutoAppRoutePrefetch:()=>sm,resolveFullAppRoutePrefetch:()=>cm}),nm=``,rm=iu();function im(e){let t;try{t=new URL(e,window.location.href)}catch{return null}return t.origin===window.location.origin?`${v(t.pathname,nm)}${t.search}`:null}var am={cacheForNavigation:!1,dynamicStaleTime:`verbatim`,fallbackTtl:`static`,prefetchShellFirst:!1,shouldPrefetch:!1};function om(e){return sm(e).cacheForNavigation}function sm(e){let t=window.__VINEXT_LINK_PREFETCH_ROUTES__;if(!t)return am;let n=im(e);if(n===null)return am;let r=ou(n,t,rm);if(!r)return am;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,...i.canUseCanonicalLoadingShell===!0?{canUseCanonicalLoadingShell:!0}:{},dynamicStaleTime:s?`verbatim`:`ignore`,fallbackTtl:`static`,prefetchShellFirst:a||!i.isDynamic,shouldPrefetch:!0}}function cm(){return{cacheForNavigation:!0,dynamicStaleTime:`full-prefetch`,fallbackTtl:`static`,prefetchShellFirst:!0,shouldPrefetch:!0}}var lm=Symbol.for(`vinext.routerContext`),um=globalThis,dm=um[lm]??(um[lm]=(0,o.createContext)(null));function fm({basePath:e,domainLocales:t,hostname:n}){return uu(v(window.location.pathname,e),window.__VINEXT_LOCALES__)||(cu(t,n??void 0)?.defaultLocale??window.__VINEXT_LOCALE__??window.__VINEXT_DEFAULT_LOCALE__)}function pm(){return window.location?.pathname??`/`}
32function mm(e){return e.nodeEnv===`production`&&e.prefetch!==!1&&!e.isDangerous}function hm(e){return e.nodeEnv!==`production`||e.isDangerous?!1:e.routerMode===`pages`||e.prefetch!==!1}function gm(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)?v(i.pathname,n)+i.search+i.hash:null:i.pathname+i.search+i.hash:null}catch{return null}}var $=null,_m=!1;function vm(e){$&&$!==e&&$(!1),$=e,_m=!0}function ym(e){$===e&&($=null)}function bm(){if(_m){_m=!1;return}$&&=($(!1),null)}var xm=typeof o.createContext==`function`?o.createContext(void 0):null;function Sm(e){return!e||typeof o.useContext!=`function`?function(){}:function(){return o.useContext(e)}}var Cm=Sm(xm);function wm(){return Cm()}var Tm=o.createContext(null);function Em(){return o.useContext(Tm)}var Dm=new Set([`title`,`meta`,`link`,`style`,`script`,`base`,`noscript`]);Array.from(Dm).join(`, `);var Om={script:/<\/(script)/gi,style:/<\/(style)/gi};function km(e,t){let n=Om[t];return n?e.replace(n,`<\\/$1`):e}var Am=e({StreamedIconsInsertion:()=>Pm,reconcileStreamedIcons:()=>Nm}),jm=`data-vinext-streamed-icon`;function Mm(e,t){let n=e.getAttribute(jm),r=`${t}:`;if(!n?.startsWith(r))return null;let i=Number(n.slice(r.length));return Number.isInteger(i)&&i>=0?i:null}function Nm(e){document.querySelectorAll(`body link[${jm}]`).forEach(e=>document.head.appendChild(e));let t=[...document.querySelectorAll(`head link[${jm}]`)],n=new Map;for(let r of t){let t=Mm(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 Pm({metadataKey:e}){return(0,o.useLayoutEffect)(()=>Nm(e),[e]),null}export{Vf as $,or as $n,sc as $t,Tf as A,ua as An,xe as Ar,kc as At,cd as B,mi as Bn,Hs as Bt,yd as C,Ga as Cn,De as Cr,qc as Ct,Q as D,ya as Dn,we as Dr,H as Dt,pp as E,Ea as En,Ce as Er,Vc as Et,rp as F,Ai as Fn,ge as Fr,lc as Ft,Sp as G,Tr as Gn,Ws as Gt,dd as H,Ir as Hn,Js as Ht,Hf as I,Ni as In,de as Ir,uc as It,Vd as J,_r as Jn,nc as Jt,zd as K,xr as Kn,Ys as Kt,q as L,Oi as Ln,fe as Lr,zs as
32Lt,op as M,$i as Mn,pe as Mr,jc as Mt,Cf as N,Qi as Nn,g as Nr,wc as Nt,If as O,Ca as On,Te as Or,Uc as Ot,xf as P,ji as Pn,he as Pr,pc as Pt,lp as Q,ar as Qn,$s as Qt,qd as R,wi as Rn,s as Rr,Xs as Rt,K as S,qa as Sn,Oe as Sr,Il as St,Bp as T,Ba as Tn,v as Tr,Bc as Tt,xp as U,Xr as Un,qs as Ut,Ff as V,Lr as Vn,Vs as Vt,up as W,Er as Wn,tc as Wt,Cp as X,mr as Xn,oc as Xt,Af as Y,hr as Yn,ec as Yt,Sf as Z,rr as Zn,Zs as Zt,$p as _,F as _n,y as _r,yu as _t,ym as a,Uo as an,dn as ar,sd as at,Gp as b,Ja as bn,dt as br,Ql as bt,hm as c,_s as cn,Pt as cr,Hu as ct,pm as d,Zo as dn,yt as dr,ju as dt,Es as en,sr as er,fp as et,fm as f,ps as fn,mt as fr,Fu as ft,cm as g,ro as gn,st as gr,Su as gt,sm as h,Mo as hn,lt as hr,xu as ht,wm as i,Go as in,A as ir,Wp as it,ap as j,sa as jn,_ as jr,Ac as jt,Rf as k,Ta as kn,Ee as kr,Pc as kt,mm as l,R as ln,bt as lr,Vu as lt,om as m,Bo as mn,ft as mr,Mu as mt,km as n,Ds as nn,Yt as nr,Vp as nt,bm as o,vs as on,Lt as or,qu as ot,dm as p,ms as pn,pt as pr,Ou as pt,fd as q,Sr as qn,Qs as qt,Em as r,L as rn,rn as rr,vp as rt,vm as s,xs as sn,It as sr,td as st,Am as t,Os as tn,Xt as tr,_p as tt,gm as u,Ss as un,St as ur,Tu as ut,Zp as v,ko as vn,et as vr,lu as vt,ep as w,Ka as wn,ke as wr,V as wt,Td as x,Wa as xn,ze as xr,Zl as xt,Qp as y,Oo as yn,ut as yr,fu as yt,bf as z,hi as zn,Ks 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.