1import{g as e,l as t,u as n}from"./mwEGrGCL.js";import{B as r,On as i,St as a,ct as o,g as s,it as c,k as l,vn as u,xn as d}from"./DBq4UlV4.js";import{c as f,m as p,o as m,p as h,s as g}from"./BhyD-9gg.js";import{d as _,l as v,p as y,u as b}from"./SXnW_uEy.js";import{c as x,h as S,i as C,l as w,o as T,v as E}from"./0cZM9QsX.js";var D={scrollBehavior(e,n,r){let i=t(),a=y(),o=a.options?.scrollBehaviorType??`auto`;return e.path.replace(/\/$/,``)===n.path.replace(/\/$/,``)?n.hash&&!e.hash?r??{left:0,top:0}:e.hash?{el:e.hash,top:O(e.hash),behavior:o}:!1:(typeof e.meta.scrollToTop==`function`?e.meta.scrollToTop(e,n):e.meta.scrollToTop)===!1?!1:n===p?k(e,n,r,o):new Promise(t=>{let s=()=>{requestAnimationFrame(()=>{if(a.currentRoute.value.fullPath!==e.fullPath){t(!1);return}t(k(e,n,r,o))})};i.hooks.hookOnce(`page:loading:end`,()=>{let e=i[`~transitionPromise`];e?e.then(s):s()})})}};function O(e){try{let t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function k(e,t,n,r){return n||(e.hash?{el:e.hash,top:O(e.hash),behavior:h(e,t)?r:`instant`}:{left:0,top:0})}var A={hashMode:!1,scrollBehaviorType:`auto`,...D};function j(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function M(e,t=y()){let{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;let i=t._preloadPromises||=[];if(i.length>4)return Promise.all(i).then(()=>M(e,t));t._routePreloaded.add(n);for(let e of r){let t=e.components?.default;if(typeof t!=`function`)continue;let n=Promise.resolve(t()).catch(()=>{}).finally(()=>i.splice(i.indexOf(n),1));i.push(n)}await Promise.all(i)}var N=(...e)=>e.find(e=>e!==void 0);function P(e){let t=e.replace(/[\u0000-\u001F\s]+/g,``);for(;t.toLowerCase().startsWith(`view-source:`);)t=t.slice(12);let n=t.indexOf(`:`);return n>0&&T(t.slice(0,n+1))?null:e}function F(e){let p=e.componentName||`NuxtLink`;function h(e){return typeof e==`string`&&e.startsWith(`#`)}function S(t,n,r){let i=r??e.trailingSlash;if(!t||i!==`append`&&i!==`remove`)return t;if(typeof t==`string`)return L(t,i);let a=`path`in t&&t.path!==void 0?t.path:n(t).path;return{...t,name:void 0,path:L(a,i)}}function T(t){let r=y(),o=n(),c=s(()=>!!i(t.target)&&i(t.target)!==`_self`),l=s(()=>{let e=i(t.to)||i(t.href)||``;return typeof e==`string`&&C(e,{acceptRelative:!0})}),u=a(`RouterLink`),d=u&&typeof u!=`string`?u.useLink:void 0,f=s(()=>{if(i(t.external))return!0;let e=i(t.to)||i(t.href)||``;return typeof e==`object`?!1:e===``||l.value}),p=s(()=>{let e=i(t.to)||i(t.href)||``;return f.value?e:S(e,r.resolve,i(t.trailingSlash))}),m=f.value?void 0:d?.({...t,to:p,viewTransition:i(t.viewTransition)}),g=s(()=>{let n=i(t.trailingSlash)??e.trailingSlash;if(!p.value||l.value||h(p.value)){let e=p.value;return typeof e==`string`?P(e):e}if(f.value){let e=typeof p.value==`object`&&`path`in p.value?_(p.value):p.value,t=typeof e==`object`?r.resolve(e).href:e,i=typeof t==`string`?P(t):t;return i===null?null:L(i,n)}return typeof p.value==`object`?r.resolve(p.value)?.href??null:L(x(o.app.baseURL,p.value),n)});return{to:p,hasTarget:c,isAbsoluteUrl:l,isExternal:f,href:g,isActive:m?.isActive??s(()=>p.value===r.currentRoute.value.path),isExactActive:m?.isExactActive??s(()=>p.value===r.currentRoute.value.path),route:m?.route??s(()=>r.resolve(p.value)),async navigate(e){g.value!==null&&await b(g.value,{replace:i(t.replace),external:f.value||c.value})}}}return l({name:p,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:T,setup(n,{slots:i}){let s=y(),{to:l,href:p,navigate:b,isExternal:x,hasTarget:S,isAbsoluteUrl:C}=T(n),E=d(!1),D=u(null),O=e=>{D.value=n.custom?e?.$el?.nextElementSibling:e?.$el};function k(t){return!!(!E.value&&(typeof n.prefetchOn==`string`?n.prefetchOn===t:n.prefetchOn?.[t]??e.prefetchOn?.[t])&&(n.prefetch??e.prefetch)!==!1&&n.noPrefetch!==!0&&n.target!==`_blank`&&!B())}async function A(e=t()){if(E.value||p.value===null)return;E.value=!0;let n=typeof l.value==`string`?l.value:x.value?_(l.value):s.resolve(l.value).fullPath,r=x.value?new URL(n,window.location.href).href:n;await Promise.all([e.hooks.callHook(`link:prefetch`,r)?.catch(()=>{}),!x.value&&!S.value&&M(l.value,s).catch(()=>{})])}if(!n.custom&&k(`visibility`)){let e=t(),n,r=null;o(()=>{let t=R();m(()=>{n=f(()=>{D?.value?.tagName&&(r=t.observe(D.value,async()=>{r?.(),r=null,await A(e)}))})})}),c(()=>{n&&g(n),r?.(),r=null})}return()=>{let t=n.target||null,o=N(n.noRel?``:n.rel,e.externalRelAttribute,C.value||S.value?`noopener noreferrer`:``)||null,c=e=>({href:p.value,navigate:b,get route(){if(!p.value)return;let e=new URL(p.value,window.location.href);return{path:e.pathname,fullPath:e.pathname,get query(){return w(e.search)},hash:e.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:p.value}},rel:o,target:t,isExternal:x.value||S.value,isActive:!1,isExactActive:!1,...e,prefetch:A,prefetched:E.value,shouldPrefetch:k});if(!x.value&&!S.value&&!h(l.value)){let t={ref:O,to:l.value,activeClass:n.activeClass||e.activeClass,exactActiveClass:n.exactActiveClass||e.exactActiveClass,replace:n.replace,ariaCurrentValue:n.ariaCurrentValue,custom:n.custom};
1return n.custom||(k(`interaction`)&&(t.onPointerenter=A.bind(null,void 0),t.onFocus=A.bind(null,void 0)),E.value&&(t.class=n.prefetchedClass||e.prefetchedClass),t.rel=n.rel||void 0),r(a(`RouterLink`),t,n.custom&&i.default?{default:e=>i.default(c(e))}:i.default)}return n.custom?i.default?i.default(c()):null:r(`a`,{ref:D,href:p.value||null,rel:o,target:t,onClick:async e=>{if(!(x.value||S.value)){e.preventDefault();try{let e=v(p.value??``);return await(n.replace?s.replace(e):s.push(e))}finally{if(h(l.value)){let e=l.value.slice(1),t=e;try{t=decodeURIComponent(e)}catch{}document.getElementById(t)?.focus()}}}}},i.default?.())}}})}var I=F(e);function L(e,t){if(t!==`append`&&t!==`remove`)return e;let n=t===`append`?S:E;return C(e)&&!e.startsWith(`http`)?e:n(e,!0)}function R(){let e=t();if(e._observer)return e._observer;let n=null,r=new Map;return e._observer={observe:(e,t)=>(n||=new IntersectionObserver(e=>{for(let t of e){let e=r.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&e&&e()}}),r.set(e,t),n.observe(e),()=>{r.delete(e),n?.unobserve(e),r.size===0&&(n?.disconnect(),n=null)})}}var z=/2g/;function B(){let e=navigator.connection;return!!(e&&(e.saveData||z.test(e.effectiveType)))}export{M as a,j as i,B as n,A as o,R as r,I 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.