PageSourceSearch

https://mentoros.ai/_nuxt/BuxSwR-e.js

js mentoros.ai collected 2026-10-05 13:30:40 UTC 5,422 bytes, 1 lines download raw bytes

1import{m as _,R as A,S as T,T as j,U as N,V as U,W as k,X as B,n as E,Y as D,Z as O,$ as I,c as V,a0 as F,a1 as H,a2 as M}from"./Bk_IgXGD.js";import{y as W,D as z,b as $,q as G,x as Q,A as L,ak as P,d as b}from"./DDizU2CA.js";const X=(...t)=>t.find(o=>o!==void 0);function Y(t){const o=t.componentName||"NuxtLink";function y(e){return!D&&typeof e=="string"&&e.startsWith("#")}function R(e,n,h){const a=h??t.trailingSlash;if(!e||a!=="append"&&a!=="remove")return e;if(typeof e=="string")return C(e,a);const i="path"in e&&e.path!==void 0?e.path:n(e).path;return{...e,name:void 0,path:C(i,a)}}function q(e){const n=_(),h=V(),a=b(()=>!!e.target&&e.target!=="_self"),i=b(()=>{const f=e.to||e.href||"";return typeof f=="string"&&O(f,{acceptRelative:!0})}),x=P("RouterLink"),g=x&&typeof x!="string"?x.useLink:void 0,d=b(()=>{if(e.external)return!0;const f=e.to||e.href||"";return typeof f=="object"?!1:f===""||i.value}),l=b(()=>{const f=e.to||e.href||"";return d.value?f:R(f,n.resolve,e.trailingSlash)}),c=d.value||g==null?void 0:g({...e,to:l}),m=b(()=>{var S;const f=e.trailingSlash??t.trailingSlash;if(!l.value||i.value||y(l.value))return l.value;if(d.value){const p=typeof l.value=="object"&&"path"in l.value?k(l.value):l.value,r=typeof p=="object"?n.resolve(p).href:p;return C(r,f)}return typeof l.value=="object"?((S=n.resolve(l.value))==null?void 0:S.href)??null:C(I(h.app.baseURL,l.value),f)});return{to:l,hasTarget:a,isAbsoluteUrl:i,isExternal:d,href:m,isActive:(c==null?void 0:c.isActive)??b(()=>l.value===n.currentRoute.value.path),isExactActive:(c==null?void 0:c.isExactActive)??b(()=>l.value===n.currentRoute.value.path),route:(c==null?void 0:c.route)??b(()=>n.resolve(l.value)),async navigate(f){await E(m.value,{replace:e.replace,external:d.value||a.value})}}}return W({name:o,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:q,setup(e,{slots:n}){const h=_(),{to:a,href:i,navigate:x,isExternal:g,hasTarget:d,isAbsoluteUrl:l}=q(e),c=Q(!1),m=$(null),f=r=>{var s;m.value=e.custom?(s=r==null?void 0:r.$el)==null?void 0:s.nextElementSibling:r==null?void 0:r.$el};function S(r){var s,u;return!c.value&&(typeof e.prefetchOn=="string"?e.prefetchOn===r:((s=e.prefetchOn)==null?void 0:s[r])??((u=t.prefetchOn)==null?void 0:u[r]))&&(e.prefetch??t.prefetch)!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!K()}async function p(r=A()){if(c.value)return;c.value=!0;const s=typeof a.value=="string"?a.value:g.value?k(a.value):h.resolve(a.value).fullPath,u=g.value?new URL(s,window.location.href).href:s;await Promise.all([r.hooks.callHook("link:prefetch",u).catch(()=>{}),!g.value&&!d.value&&B(a.value,h).catch(()=>{})])}if(S("visibility")){const r=A();let s,u=null;z(()=>{const v=Z();T(()=>{s=j(()=>{var w;(w=m==null?void 0:m.value)!=null&&w.tagName&&(u=v.observe(m.value,async()=>{u==null||u(),u=null,await p(r)}))})})}),G(()=>{s&&N(s),u==null||u(),u=null})}return()=>{var u;if(!g.value&&!d.value&&!y(a.value)){const v={ref:f,to:a.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};
1return e.custom||(S("interaction")&&(v.onPointerenter=p.bind(null,void 0),v.onFocus=p.bind(null,void 0)),c.value&&(v.class=e.prefetchedClass||t.prefetchedClass),v.rel=e.rel||void 0),L(P("RouterLink"),v,n.default)}const r=e.target||null,s=X(e.noRel?"":e.rel,t.externalRelAttribute,l.value||d.value?"noopener noreferrer":"")||null;return e.custom?n.default?n.default({href:i.value,navigate:x,prefetch:p,get route(){if(!i.value)return;const v=new URL(i.value,window.location.href);return{path:v.pathname,fullPath:v.pathname,get query(){return U(v.search)},hash:v.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:i.value}},rel:s,target:r,isExternal:g.value||d.value,isActive:!1,isExactActive:!1}):null:L("a",{ref:m,href:i.value||null,rel:s,target:r,onClick:v=>{if(!(g.value||d.value))return v.preventDefault(),e.replace?h.replace(i.value):h.push(i.value)}},(u=n.default)==null?void 0:u.call(n))}}})}const ae=Y(F);function C(t,o){const y=o==="append"?H:M;return O(t)&&!t.startsWith("http")?t:y(t,!0)}function Z(){const t=A();if(t._observer)return t._observer;let o=null;const y=new Map,R=(e,n)=>(o||(o=new IntersectionObserver(h=>{for(const a of h){const i=y.get(a.target);(a.isIntersecting||a.intersectionRatio>0)&&i&&i()}})),y.set(e,n),o.observe(e),()=>{y.delete(e),o==null||o.unobserve(e),y.size===0&&(o==null||o.disconnect(),o=null)});return t._observer={observe:R}}const J=/2g/;function K(){const t=navigator.connection;return!!(t&&(t.saveData||J.test(t.effectiveType)))}export{ae as _};

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.