PageSourceSearch

https://rodrigosf672-data-compass.hf.space/assets/web-vitals-CpL_P378.js

js rodrigosf672-data-compass.hf.space collected 2026-10-03 17:21:40 UTC 6,182 bytes, 1 lines download raw bytes

vendor: 4,293 bytes, line 1
1var L,p,y,k,x,D=-1,m=function(n){addEventListener("pageshow",(function(e){e.persisted&&(D=e.timeStamp,n(e))}),!0)},F=function(){var n=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(n&&n.responseStart>0&&n.responseStart<performance.now())return n},S=function(){var n=F();return n&&n.activationStart||0},d=function(n,e){var t=F(),r="navigate";return D>=0?r="back-forward-cache":t&&(document.prerendering||S()>0?r="prerender":document.wasDiscarded?r="restore":t.type&&(r=t.type.replace(/_/g,"-"))),{name:n,value:e===void 0?-1:e,rating:"good",delta:0,entries:[],id:`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},h=function(n,e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(n)){var r=new PerformanceObserver((function(i){Promise.resolve().then((function(){e(i.getEntries())}))}));return r.observe(Object.assign({type:n,buffered:!0},t||{})),r}}catch{}},l=function(n,e,t,r){var i,a;return function(c){e.value>=0&&(c||r)&&((a=e.value-(i||0))||i===void 0)&&(i=e.value,e.delta=a,e.rating=(function(o,u){return o>u[1]?"poor":o>u[0]?"needs-improvement":"good"})(e.value,t),n(e))}},w=function(n){requestAnimationFrame((function(){return requestAnimationFrame((function(){return n()}))}))},E=function(n){document.addEventListener("visibilitychange",(function(){document.visibilityState==="hidden"&&n()}))},P=function(n){var e=!1;return function(){e||(e=(n(),!0))}},v=-1,R=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},T=function(n){document.visibilityState==="hidden"&&v>-1&&(v=n.type==="visibilitychange"?n.timeStamp:0,V())},q=function(){addEventListener("visibilitychange",T,!0),addEventListener("prerenderingchange",T,!0)},V=function(){removeEventListener("visibilitychange",T,!0),removeEventListener("prerenderingchange",T,!0)},H=function(){return v<0&&(v=R(),q(),m((function(){setTimeout((function(){v=R(),q()}),0)}))),{get firstHiddenTime(){return v}}},I=function(n){document.prerendering?addEventListener("prerenderingchange",(function(){return n()}),!0):n()},N=[1800,3e3],W=function(n,e){e||(e={}),I((function(){var t,r=H(),i=d("FCP"),a=h("paint",(function(c){c.forEach((function(o){o.name==="first-contentful-paint"&&(a.disconnect(),o.startTime<r.firstHiddenTime&&(i.value=Math.max(o.startTime-S(),0),i.entries.push(o),t(!0)))}))}));a&&(t=l(n,i,N,e.reportAllChanges),m((function(c){i=d("FCP"),t=l(n,i,N,e.reportAllChanges),w((function(){i.value=performance.now()-c.timeStamp,t(!0)}))})))}))},O=[.1,.25],Y=function(n,e){e||(e={}),W(P((function(){var t,r=d("CLS",0),i=0,a=[],c=function(u){u.forEach((function(f){if(!f.hadRecentInput){var K=a[0],U=a[a.length-1];i&&f.startTime-U.startTime<1e3&&f.startTime-K.startTime<5e3?(i+=f.value,a.push(f)):(i=f.value,a=[f])}})),i>r.value&&(r.value=i,r.entries=a,t())},o=h("layout-shift",c);o&&(t=l(n,r,O,e.reportAllChanges),E((function(){c(o.takeRecords()),t(!0)})),m((function(){i=0,r=d("CLS",0),t=l(n,r,O,e.reportAllChanges),w((function(){return t()}))})),setTimeout(t,0))})))},B=0,A=1/0,b=0,Q=function(n){n.forEach((function(e){e.interactionId&&(A=Math.min(A,e.interactionId),b=Math.max(b,e.interactionId),B=b?(b-A)/7+1:0)}))},j=function(){return L?B:performance.interactionCount||0},X=function(){"interactionCount"in performance||L||(L=h("event",Q,{type:"event",buffered:!0,durationThreshold:0}))},s=[],C=new Map,_=0,Z=function(){return s[Math.min(s.length-1,Math.floor((j()-_)/50))]},nn=[],en=function(n){if(nn.forEach((function(i){return i(n)})),n.interactionId||n.entryType==="first-input"){var e=s[s.length-1],t=C.get(n.interactionId);if(t||s.length<10||n.duration>e.latency){if(t)n.duration>t.latency?(t.entries=[n],t.latency=n.duration):n.duration===t.latency&&n.startTime===t.entries[0].startTime&&t.entries.push(n);else{var r={id:n.interactionId,latency:n.duration,entries:[n]};C.set(r.id,r),s.push(r)}s.sort((function(i,a){return a.latency-i.latency})),s.length>10&&s.splice(10).forEach((function(i){return C.delete(i.id)}))}}},$=function(n){var e=self.requestIdleCallback||self.setTimeout,t=-1;return n=P(n),document.visibilityState==="hidden"?n():(t=e(n),E(n)),t},z=[200,500],tn=function(n,e){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(e||(e={}),I((function(){X();
vendor: 1,889 bytes, line 1
1var t,r=d("INP"),i=function(c){$((function(){c.forEach(en);var o=Z();o&&o.latency!==r.value&&(r.value=o.latency,r.entries=o.entries,t())}))},a=h("event",i,{durationThreshold:e.durationThreshold??40});t=l(n,r,z,e.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),E((function(){i(a.takeRecords()),t(!0)})),m((function(){_=j(),s.length=0,C.clear(),r=d("INP"),t=l(n,r,z,e.reportAllChanges)})))})))},G=[2500,4e3],M={},rn=function(n,e){e||(e={}),I((function(){var t,r=H(),i=d("LCP"),a=function(u){e.reportAllChanges||(u=u.slice(-1)),u.forEach((function(f){f.startTime<r.firstHiddenTime&&(i.value=Math.max(f.startTime-S(),0),i.entries=[f],t())}))},c=h("largest-contentful-paint",a);if(c){t=l(n,i,G,e.reportAllChanges);var o=P((function(){M[i.id]||(a(c.takeRecords()),c.disconnect(),M[i.id]=!0,t(!0))}));["keydown","click"].forEach((function(u){addEventListener(u,(function(){return $(o)}),{once:!0,capture:!0})})),E(o),m((function(u){i=d("LCP"),t=l(n,i,G,e.reportAllChanges),w((function(){i.value=performance.now()-u.timeStamp,M[i.id]=!0,t(!0)}))}))}}))},g={passive:!0,capture:!0},an=new Date,J=function(n,e){p||(p=e,y=n,k=new Date,un(removeEventListener),on())},on=function(){if(y>=0&&y<k-an){var n={entryType:"first-input",name:p.type,target:p.target,cancelable:p.cancelable,startTime:p.timeStamp,processingStart:p.timeStamp+y};x.forEach((function(e){e(n)})),x=[]}},cn=function(n){if(n.cancelable){var e=(n.timeStamp>1e12?new Date:performance.now())-n.timeStamp;n.type=="pointerdown"?(function(t,r){var i=function(){J(t,r),c()},a=function(){c()},c=function(){removeEventListener("pointerup",i,g),removeEventListener("pointercancel",a,g)};addEventListener("pointerup",i,g),addEventListener("pointercancel",a,g)})(e,n):J(e,n)}},un=function(n){["mousedown","keydown","touchstart","pointerdown"].forEach((function(e){return n(e,cn,g)}))};export{Y as onCLS,tn as onINP,rn as onLCP};

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.