PageSourceSearch

https://gobobcats.com/_nuxt/ClgVSphX.js

js gobobcats.com collected 2026-10-02 04:20:08 UTC 7,600 bytes, 1 lines download raw bytes

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