PageSourceSearch

https://n3-waffle.pages.dev/_nuxt/DPuE5V_A.js

js n3-waffle.pages.dev collected 2026-10-03 05:26:32 UTC 4,906 bytes, 1 lines download raw bytes

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