import{c4 as S,d as j,i as q,aT as R,j as I,c5 as T,c6 as B,a6 as D,c7 as E,bF as _,r as A,c8 as U,c9 as F,m as x,ca as O,cb as k,bg as V,cc as H,be as z,bG as M,bh as $}from"./CYpMmShR.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="10d3d181-f51f-4152-95df-f70bc4612e19",t._sentryDebugIdIdentifier="sentry-dbid-10d3d181-f51f-4152-95df-f70bc4612e19")}catch{}})();async function N(t,a=S()){const{path:o,matched:p}=a.resolve(t);if(!p.length||(a._routePreloaded||(a._routePreloaded=new Set),a._routePreloaded.has(o)))return;const e=a._preloadPromises=a._preloadPromises||[];if(e.length>4)return Promise.all(e).then(()=>N(t,a));a._routePreloaded.add(o);const r=p.map(s=>{var n;return(n=s.components)==null?void 0:n.default}).filter(s=>typeof s=="function");for(const s of r){const n=Promise.resolve(s()).catch(()=>{}).finally(()=>e.splice(e.indexOf(n)));e.push(n)}await Promise.all(e)}const G=(...t)=>t.find(a=>a!==void 0);function Q(t){const a=t.componentName||"NuxtLink";function o(e,r){if(!e||t.trailingSlash!=="append"&&t.trailingSlash!=="remove")return e;if(typeof e=="string")return L(e,t.trailingSlash);const s="path"in e&&e.path!==void 0?e.path:r(e).path;return{...e,name:void 0,path:L(s,t.trailingSlash)}}function p(e){const r=S(),s=z(),n=x(()=>!!e.target&&e.target!=="_self"),d=x(()=>{const v=e.to||e.href||"";return typeof v=="string"&&O(v,{acceptRelative:!0})}),m=A("RouterLink"),b=m&&typeof m!="string"?m.useLink:void 0,g=x(()=>{if(e.external)return!0;const v=e.to||e.href||"";return typeof v=="object"?!1:v===""||d.value}),i=x(()=>{const v=e.to||e.href||"";return g.value?v:o(v,r.resolve)}),c=g.value||b==null?void 0:b({...e,to:i}),y=x(()=>{var v;if(!i.value||d.value)return i.value;if(g.value){const P=typeof i.value=="object"&&"path"in i.value?k(i.value):i.value,C=typeof P=="object"?r.resolve(P).href:P;return o(C,r.resolve)}return typeof i.value=="object"?((v=r.resolve(i.value))==null?void 0:v.href)??null:o(V(s.app.baseURL,i.value),r.resolve)});return{to:i,hasTarget:n,isAbsoluteUrl:d,isExternal:g,href:y,isActive:(c==null?void 0:c.isActive)??x(()=>i.value===r.currentRoute.value.path),isExactActive:(c==null?void 0:c.isExactActive)??x(()=>i.value===r.currentRoute.value.path),route:(c==null?void 0:c.route)??x(()=>r.resolve(i.value)),async navigate(){await H(y.value,{replace:e.replace,external:g.value||n.value})}}}return j({name:a,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}},useLink:p,setup(e,{slots:r}){const s=S(),{to:n,href:d,navigate:m,isExternal:b,hasTarget:g,isAbsoluteUrl:i}=p(e),c=q(!1),y=q(null),v=l=>{var f;y.value=e.custom?(f=l==null?void 0:l.$el)==null?void 0:f.nextElementSibling:l==null?void 0:l.$el};function P(l){var f,u;return!c.value&&(typeof e.prefetchOn=="string"?e.prefetchOn===l:((f=e.prefetchOn)==null?void 0:f[l])??((u=t.prefetchOn)==null?void 0:u[l]))&&(e.prefetch??t.prefetch)!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!J()}async function C(l=R()){if(c.value)return;c.value=!0;const f=typeof n.value=="string"?n.value:b.value?k(n.value):s.resolve(n.value).fullPath;await Promise.all([l.hooks.callHook("link:prefetch",f).catch(()=>{}),!b.value&&!g.value&&N(n.value,s).catch(()=>{})])}if(P("visibility")){const l=R();let f,u=null;I(()=>{const h=W();T(()=>{f=B(()=>{var w;(w=y==null?void 0:y.value)!=null&&w.tagName&&(u=h.observe(y.value,async()=>{u==null||u(),u=null,await C(l)}))})})}),D(()=>{f&&E(f),u==null||u(),u=null})}return()=>{var u;if(!b.value&&!g.value){const h={ref:v,to:n.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};return e.custom||(P("interaction")&&(h.onPointerenter=C.bind(null,void 0),h.onFocus=C.bind(null,void 0)),c.value&&(h.class=e.prefetchedClass||t.prefetchedClass),h.rel=e.rel||void 0),_(A("RouterLink"),h,r.default)}const l=e.target||null,f=G(e.noRel?"":e.rel,t.externalRelAttribute,i.value||g.value?"noopener noreferrer":"")||null;return e.custom?r.default?r.default({href:d.value,navigate:m,prefetch:C,get route(){if(!d.value)return;const h=new URL(d.value,window.location.href);return{path:h.pathname,fullPath:h.pathname,get query(){return U(h.search)},hash:h.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:d.value}},rel:f,target:l,isExternal:b.value||g.value,isActive:!1,isExactActive:!1}):null:_("a",{ref:y,href:d.value||null,rel:f,target:l},(u=r.default)==null?void 0:u.call(r))}}})}const X=Q(F);function L(t,a){const o=a==="append"?M:$;return O(t)&&!t.startsWith("http")?t:o(t,!0)}function W(){const t=R();if(t._observer)return t._observer;let a=null;const o=new Map,p=(r,s)=>(a||(a=new IntersectionObserver(n=>{for(const d of n){const m=o.get(d.target);(d.isIntersecting||d.intersectionRatio>0)&&m&&m()}})),o.set(r,s),a.observe(r),()=>{o.delete(r),a.unobserve(r),o.size===0&&(a.disconnect(),a=null)});return t._observer={observe:p}}function J(){const t=navigator.connection;return!!(t&&(t.saveData||/2g/.test(t.effectiveType)))}export{X as N};
//# sourceMappingURL=B69h1lLg.js.map
