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