1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_next/static/chunks/index-Df7yfWL5.js","_next/static/chunks/rolldown-runtime-R9bKdBD2.js","_next/static/chunks/framework-DnsiIshy.js","_next/static/chunks/app-elements-BQRHUKW8.js","_next/static/chunks/hash-D0ldriCF.js","_next/static/chunks/record-BdkTR7AP.js","_next/static/chunks/app-rsc-cache-busting-Cv82d-jj.js","_next/static/chunks/app-rsc-render-mode-DPLEIRbv.js","_next/static/chunks/headers-Dyg6ASkZ.js","_next/static/chunks/protocol-headers-URL33uU5.js","_next/static/chunks/deployment-id-DFhHa9wO.js","_next/static/chunks/navigation-errors-CnbDs8vZ.js"])))=>i.map(i=>d[i]); 2import{a as e,r as t}from"./rolldown-runtime-R9bKdBD2.js";import"./record-BdkTR7AP.js";import"./protocol-headers-URL33uU5.js";import{i as n,r}from"./framework-DnsiIshy.js";import"./deployment-id-DFhHa9wO.js";import{C as i,E as a,S as o,T as s,_ as c,a as l,b as u,c as ee,g as d,h as f,i as p,l as m,m as h,n as g,o as te,p as _,r as v,s as y,v as b,w as ne,x as re}from"./index-Df7yfWL5.js";import{r as x,t as S}from"./query-CgmTN4db.js";function C({basePath:e,domainLocales:t,hostname:n}){return d(i(window.location.pathname,e),window.__VINEXT_LOCALES__)||(h(t,n??void 0)?.defaultLocale??window.__VINEXT_LOCALE__??window.__VINEXT_DEFAULT_LOCALE__)}function w(){return window.location?.pathname??`/`}function T(e){return e.nodeEnv===`production`&&e.prefetch!==!1&&!e.isDangerous}function E(e){return e.nodeEnv!==`production`||e.isDangerous?!1:e.routerMode===`pages`||e.prefetch!==!1}function D(e){let{href:t,basePath:n,currentOrigin:r}=e;if(!l(t))return t;if(r===void 0)return null;try{let e=new URL(r),a=t.startsWith(`//`)?new URL(t,e.origin):new URL(t);return a.origin===e.origin?n?o(a.pathname,n)?i(a.pathname,n)+a.search+a.hash:null:a.pathname+a.search+a.hash:null}catch{return null}}var O=null,k=!1;function ie(e){O&&O!==e&&O(!1),O=e,k=!0}function A(e){O===e&&(O=null)}function j(){if(k){k=!1;return}O&&=(O(!1),null)}var M=t({canAutoPrefetchFullAppRoute:()=>G,default:()=>we,resolveAutoAppRoutePrefetch:()=>K,resolveLinkPrefetchMode:()=>ce,useLinkStatus:()=>I}),N=e(r(),1),P=n(),F=(0,N.createContext)({pending:!1});function I(){return(0,N.useContext)(F)}var L=0;function R(){L+=1,j()}a({notifyLinkNavigationStart:R});var z=``,ae=!1,B=c();function V(e){if(typeof e==`string`)return e;let t=e.pathname??``;if(e.query){let n=x(e.query);t=S(t,n)}return e.hash&&(t+=e.hash.startsWith(`#`)?e.hash:`#${e.hash}`),t}function oe(e){return e}function H(e){let t=e.split(`?`),n=t.shift()??``,r=t.join(`?`);return n.replace(/\\/g,`/`).replace(/\/\/+/g,`/`)+(r?`?${r}`:``)}function se(e){if(e.startsWith(`//`))return e;let t=e.match(/^[a-z][a-z0-9+.-]*:\/\//i),n=t?e.slice(t[0].length):e;if(!(n.split(`?`,1)[0]||``).match(/(\/\/|\\)/))return e;let r=w();console.error(`Invalid href '${e}' passed to next/router in page: '${r}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);let i=H(n);return(t?t[0]:``)+i}function ce(e,t){return t||e===!1?`disabled`:e===!0?`full`:`auto`}function U(e){let t;try{t=new URL(e,window.location.href)}catch{return null}return t.origin===window.location.origin?`${i(t.pathname,z)}${t.search}`:null}function le(){return s()?`app`:`pages`}function W(e){return{cacheForNavigation:!e.canPrefetchLoadingShell&&e.requiresDynamicNavigationRequest!==!0,prefetchShellFirst:!e.isDynamic,shouldPrefetch:!0}}function G(e){let t=window.__VINEXT_LINK_PREFETCH_ROUTES__;if(!t)return!1;let n=U(e);return n===null||!b(n,t,B)?!1:K(e).cacheForNavigation}function K(e){let t=window.__VINEXT_LINK_PREFETCH_ROUTES__;if(!t)return{cacheForNavigation:!1,prefetchShellFirst:!1,shouldPrefetch:!1};let n=U(e);if(n===null)return{cacheForNavigation:!1,prefetchShellFirst:!1,shouldPrefetch:!1};let r=b(n,t,B);if(!r)return{cacheForNavigation:!1,prefetchShellFirst:!1,shouldPrefetch:!1};let i=W(r.route);return new URL(n,`http://vinext.local`).search===``?i:{...i,cacheForNavigation:!1,prefetchShellFirst:!0}}function q(){return{cacheForNavigation:!0,prefetchShellFirst:!0,shouldPrefetch:!0}}function ue(e,t,n=`low`,r,i){let a=L,o=D({href:e,basePath:z,currentOrigin:window.location.origin});if(o==null)return;let c=y(o,window.location.href,z);y(r===void 0?o:D({href:r,basePath:z,currentOrigin:window.location.origin})??o,window.location.href,z);let l=new URL(c,window.location.href);if(l.origin===window.location.origin&&l.pathname===window.location.pathname&&l.search===window.location.search)return;let u=()=>{(async()=>
2{if(s()){if(p(window.navigator?.userAgent??``))return;let[e,{AppElementsWire:r},i,{APP_RSC_RENDER_MODE_PREFETCH_DYNAMIC_SHELL:s,APP_RSC_RENDER_MODE_PREFETCH_LOADING_SHELL:l},u,ee]=await Promise.all([g(()=>import(`./index-Df7yfWL5.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])),g(()=>import(`./app-elements-BQRHUKW8.js`).then(e=>e.t),__vite__mapDeps([3,1,2,4,5])),g(()=>import(`./app-rsc-cache-busting-Cv82d-jj.js`).then(e=>e.r),__vite__mapDeps([6,1,7,8,9,10,4])),g(()=>import(`./app-rsc-render-mode-DPLEIRbv.js`).then(e=>e.t),__vite__mapDeps([7,1])),g(()=>import(`./headers-Dyg6ASkZ.js`).then(e=>e.h),__vite__mapDeps([8,1,9])),null]);if(a!==L)return;let{getPrefetchInterceptionContext:d,getPrefetchCache:f,getPrefetchedUrls:m,getMountedSlotsHeader:h,hasSearchAgnosticPrefetchShellForRoute:te,hasPrefetchCacheEntryForNavigation:_,peekPrefetchResponseForNavigation:y,prefetchRscResponse:b,restoreRscResponse:ne,PREFETCH_CACHE_TTL:re}=e,{createRscRequestHeaders:x,createRscRequestUrl:S}=i,{NEXT_ROUTER_PREFETCH_HEADER:C,NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:w,VINEXT_MOUNTED_SLOTS_HEADER:T}=u,E=t===`auto`?K(o):t===`full-after-shell`?{cacheForNavigation:!0,prefetchShellFirst:!0,shouldPrefetch:!0}:q();if(!E.shouldPrefetch)return;let D=d(c),O=h(),k=!E.cacheForNavigation,ie=new URL(c,window.location.href).search!==``,A=t===`auto`&&k&&ie;if(k&&D!==null)return;let j=A&&te(await S(c,new Headers),D,O),M=x({interceptionContext:D,renderMode:k?j?l:A?s:l:void 0});O&&M.set(T,O),(k||t===`auto`)&&(M.set(C,`1`),M.set(w,`1`));let N=await S(c,M),P=[],F=r.encodeCacheKey(N,D),I=m();if(I.has(F)){if(!E.cacheForNavigation)return;let e=f().get(F);e?.cacheForNavigation===!1&&(e.cacheForNavigation=!0)}let R=()=>v(()=>fetch(N,{headers:M,credentials:`include`,priority:n,purpose:`prefetch`}),n),z=async()=>{let e=x({interceptionContext:D,renderMode:l});e.set(C,`1`),e.set(w,`1`),O&&e.set(T,O);let t=await S(c,e),i=r.encodeCacheKey(t,D),a=f(),o=a.get(i);o===void 0&&(m().add(i),b(t,v(()=>fetch(t,{headers:e,credentials:`include`,priority:n,purpose:`prefetch`}),n),D,O,void 0,{cacheForNavigation:!1,optimisticRouteShell:!0,prefetchKind:`loading-shell`}),o=a.get(i)),await o?.pending?.catch(()=>{})},ae=async()=>{let e=x({interceptionContext:D,renderMode:l});e.set(C,`1`),e.set(w,`1`),O&&e.set(T,O);let t=await S(c,e);return fetch(t,{method:`HEAD`,headers:e,credentials:`include`,priority:n,purpose:`prefetch`})},B=E.cacheForNavigation&&_(N,D,O);if(B||E.cacheForNavigation&&_(N,D,O,{additionalRscUrls:P})){!B&&!I.has(F)&&P.length>0&&E.prefetchShellFirst&&O===null&&(I.add(F),ae().then(e=>e.arrayBuffer()).catch(()=>{}));return}I.add(F);let V=t===`full`&&ie&&E.prefetchShellFirst&&O===null,oe=(t===`full-after-shell`||V)&&E.prefetchShellFirst,H=E.cacheForNavigation&&oe?(async()=>{if(oe)return await z(),R();let e=x({interceptionContext:D,renderMode:void 0});e.set(C,`1`),e.set(w,`/_tree`),O&&e.set(T,O);let t=await S(c,e),i=r.encodeCacheKey(t,D),a=f(),o=a.get(i);o===void 0&&(m().add(i),b(t,v(()=>fetch(t,{headers:e,credentials:`include`,priority:n,purpose:`prefetch`}),n),D,O,void 0,{cacheForNavigation:!1,optimisticRouteShell:!1,prefetchKind:`route-tree`}),o=a.get(i)),await o?.pending?.catch(()=>{});let s=o?.snapshot?.renderedPathAndSearch;if(s){let e=y(await S(s,M),D,O);if(e)return ne(e)}return v(()=>fetch(N,{headers:M,credentials:`include`,priority:n,purpose:`prefetch`}),n)})():R();t===`full`&&E.cacheForNavigation&&E.prefetchShellFirst&&O===null&&!V&&z(),b(N,H,D,O,void 0,{cacheForNavigation:E.cacheForNavigation,fallbackTtlMs:re,optimisticRouteShell:k,prefetchKind:k?`loading-shell`:`navigation`,searchAgnosticShell:A&&!j})}})().catch(e=>{console.error(`[vinext] RSC prefetch setup error:`,e)})};if(n===`high`||s()){u();return}(window.requestIdleCallback??(e=>setTimeout(e,100)))(u)}async function de(e){if(!s())return;let[{getPrefetchCache:t},{stripRscCacheBustingSearchParam:n,stripRscSuffix:r}]=await Promise.all([g(()=>import(`./index-Df7yfWL5.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])),g(()=>import(`./app-rsc-cache-busting-Cv82d-jj.js`).then(e=>e.r),__vite__mapDeps([6,1,7,8,9,10,4]))]),i;try{i=new URL(y(e,window.location.href,z),window.location.href)}catch{return}for(let[e,a]of t()){if(a.optimisticRouteShell===!0||a.prefetchKind===`route-tree`)continue;let[t]=e.split(`\0`,1),o;try{o=new URL(t,window.location.href)}catch{continue}n(o),r(o.pathname)===i.pathname&&o.search===i.search&&(a.cacheForNavigation=!0)}}var J=null,Y=new WeakMap,X=new Set,Z=[],Q=!1;function fe(){for(Q=!1;;){let e=Z.pop();if(!e)return;e.queuedViewportPrefetch=!1,!(!e.isVisible||e.routerMode!==`app`)&&ue(e.href,e.mode,`low`,e.pagesR
2outeHref)}}function pe(e){e.queuedViewportPrefetch||(e.queuedViewportPrefetch=!0,Z.push(e),!Q&&(Q=!0,queueMicrotask(fe)))}function me(e,t){if(e.isVisible=t,t){if(X.add(e),e.routerMode===`pages`&&e.viewportPrefetched)return;e.routerMode===`app`?pe(e):ue(e.href,e.mode,`low`,e.pagesRouteHref,e.locale),e.viewportPrefetched=!0}else X.delete(e)}function he(){a({pingVisibleLinks:ge})}function ge(){for(let e of X)e.isVisible&&e.routerMode===`app`&&pe(e)}function _e(){return typeof IntersectionObserver>`u`?null:J||(J=new IntersectionObserver(e=>{for(let t of e){let e=Y.get(t.target);e&&me(e,t.isIntersecting||t.intersectionRatio>0)}},{rootMargin:`250px`}),J)}function $(){return window.__VINEXT_DEFAULT_LOCALE__}function ve(){return C({basePath:z,domainLocales:ye(),hostname:be()})}function ye(){return window.__NEXT_DATA__?.domainLocales}function be(){return window.location.hostname}function xe(e,t){return f(e,t,{basePath:z,currentHostname:be(),domainItems:ye()})}function Se(e,t){if(e!==`/`&&!e.startsWith(`/?`)&&!e.startsWith(`/#`))return;let n;try{n=new URL(e,`http://vinext.local`)}catch{return}if(!(n.origin!==`http://vinext.local`||n.pathname!==`/`))return`/${t}${n.search}${n.hash}`}function Ce(e,t){if(t===!1)return e;let n=t??ve();if(n===void 0||l(e))return e;let r=xe(e,n);if(r)return r;let i=$()??``;if(n.toLowerCase()===i.toLowerCase()){let t=Se(e,n);if(t)return t}return _(e,n,i)}var we=(0,N.forwardRef)(function({href:e,as:t,replace:n=!1,prefetch:r,scroll:i=!0,shallow:a=!1,children:o,onClick:s,onMouseEnter:c,onTouchStart:d,onNavigate:f,unstable_dynamicOnHover:p=!1,legacyBehavior:h=!1,passHref:_=!1,transitionTypes:v,...b},x){let S=t===void 0?void 0:V(t),{locale:C,...w}=b,O=o;h&&(typeof o==`string`||typeof o==`number`)&&(O=N.createElement(`a`,null,o));let k=S??V(e),j=typeof k==`string`&&k.startsWith(`#`)?oe(k):k;typeof e==`string`||V(e);let M=typeof j==`string`?se(j):j,I=typeof M==`string`&&u(M),L=te(Ce(I?`/`:M,C),ae),R=L,B=te(m(L,z),ae),[H,U]=(0,N.useState)(!1),W=(0,N.useRef)(!0),G=(0,N.useRef)(null);G.current===null&&(G.current=e=>{W.current&&U(e)}),(0,N.useEffect)(()=>{W.current=!0;let e=G.current;return()=>{W.current=!1,e&&A(e)}},[]);let K=(0,N.useRef)(null),q=ce(r,I),J=T({nodeEnv:`production`,prefetch:r,isDangerous:I}),Z=(0,N.useCallback)(e=>{K.current=e,typeof x==`function`?x(e):x&&(x.current=e)},[x]);(0,N.useEffect)(()=>{if(!J)return;let e=K.current;if(!e)return;let t=D({href:L,basePath:z,currentOrigin:window.location.origin});if(t==null)return;let n=_e();if(!n)return;he();let r={href:t,isVisible:!1,locale:C,mode:q,pagesRouteHref:R===L?void 0:D({href:R,basePath:z,currentOrigin:window.location.origin})??void 0,queuedViewportPrefetch:!1,routerMode:le(),viewportPrefetched:!1};return Y.set(e,r),n.observe(e),()=>{n.unobserve(e),Y.delete(e),X.delete(r),r.isVisible=!1}},[J,q,L,R,C]);let Q=(0,N.useCallback)(()=>{if(!E({nodeEnv:`production`,prefetch:r,isDangerous:I,routerMode:le()}))return;let e=p?`full-after-shell`:q;if(p&&K.current){let e=Y.get(K.current);e&&(e.mode=`full-after-shell`),de(L)}ue(L,e,`high`,R===L?void 0:R,C)},[r,I,q,L,R,C,p]),fe=(0,N.useCallback)(e=>{c?.(e),Q()},[c,Q]),pe=(0,N.useCallback)(e=>{d?.(e),Q()},[d,Q]),me=async(e,t={})=>{if(!t.skipLinkOnClick&&s&&s(e),e.defaultPrevented||e.currentTarget.hasAttribute(`download`)||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.currentTarget.target&&e.currentTarget.target!==`_self`)return;let r=L;if(l(M)){let t=ee(M,z);if(t==null){n&&(e.preventDefault(),window.location.replace(M));return}r=t}e.preventDefault();let a=!!ne()?.functions.navigate,o=y(r,window.location.href,z);if(f)try{let e=new URL(o,window.location.origin),t=!1,n={url:e,preventDefault(){t=!0},get defaultPrevented(){return t}};if(f(n),n.defaultPrevented)return}catch{}if(a){let{navigateClientSide:e}=await g(async()=>{let{navigateClientSide:e}=await import(`./index-Df7yfWL5.js`);return{navigateClientSide:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])),t=G.current;t&&ie(t),U(!0),N.startTransition(()=>{e(r,n?`replace`:`push`,i,!0).finally(()=>{W.current&&U(!1),t&&A(t)})});return}else n?window.location.replace(o):window.location.assign(o)},ge=w,$=N.useMemo(()=>({pending:H}),[H]);if(I){let e=e=>{s&&s(e),re()};if(h){let e=N.Children.only(O),t=e.props.onClick,n=e.props.ref;return(0,P.jsx)(F.Provider,{value:$,children:N.cloneElement(e,{ref:e=>{K.current=e,typeof n==`function`?n(e):n&&(n.current=e)},onClick:e=>{t&&t(e),re()}})})}return(0,P.jsx)(F.Provider,{value:$,children:(0,P.jsx)(`a`,{ref:Z,onClick:e,onMouseEnter:fe,onTouchStart:pe,...ge,children:O})})}if(h){let e=N.Children.only(O),t=e.props,n=e.type===`a`?`href`in t:!1,r=_||e.type===`a`&&!n,i=t.onClick,a=t.onMouseEnter,o=t.onTouchStart,s=t.ref,c={ref:e=>{K.current=e,typeof s==`function`?s(e):s&&(s.current=e)},onClick:e=>{if(i&&i(e),!e.defaultPrevented)return me(e,{skipLinkOnClick:!0})},onMouseEnter:e=>{a&&a(e),Q()},onTouchStart:e=>{o&&o(e),Q()}};return r&&(c.href=B),(0,P.jsx)(F.Provider,{value:$,children:N.cloneElement(e,c)})}return(0,P.jsx)(F.Provider,{value:$,children:(0,P.jsx)(`a`,{ref:Z,href:B,onClick:me,onMouseEnter:fe,onTouchStart:pe,...ge,children:O})})});export{M as t};
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.