PageSourceSearch

https://astdesign.ru/_nuxt/CgRZrKzs.js

js astdesign.ru collected 2026-10-07 15:17:29 UTC 5,789 bytes, 1 lines download raw bytes

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