PageSourceSearch

https://firstbook.org/_next/static/chunks/page_view_event-aggregate.e0db3837cbfa4493.js

js firstbook.org collected 2026-10-01 12:21:08 UTC 6,040 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5677],{42071:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>S});var r=i(53419),s=i(34612),a=i(96969),n=i(36258),o=i(53007),m=i(11565),c=i(58760),h=i(40025),f=i(96245),u=i(26049),d=i(39060),p=i(73250),l=i(14244),T=i(98843);let g=new l.x(p.w.TIME_TO_FIRST_BYTE);if(r.RI&&(0,r.zk)()&&!r.OF&&window===window.parent)(0,T.Ck)(({value:e,attribution:t})=>{g.isValid||g.update({value:e,attrs:{navigationEntry:t.navigationEntry}})});else if(!g.isValid){let e={};for(let t in r.gm?.performance?.timing||{})e[t]=Math.max(r.gm?.performance?.timing[t]-r.WN,0);g.update({value:e.responseStart,attrs:{navigationEntry:e}})}var y=i(32022),v=i(27200),R=i(96287),b=i(58293);class D{#e;#t;#i;#r=!1;#s=0;constructor(e){this.#e=e,this.processStoredDiff(),(0,R.i)(performance.now,Date.now)}#a(){try{let e=Date.now()-r.WN-performance.now();e>1e3&&e-this.#s>1e3&&(this.#s=e,this.#e&&(0,b.p)(v.xV,["Generic/TimeKeeper/ClockDrift/Detected",e],void 0,m.K7.metrics,this.#e.agentRef.ee))}catch(e){}}get ready(){return this.#r}get correctedOriginTime(){return this.#t}get localTimeDiff(){return this.#i}processRumRequest(e,t,i,s){if(this.processStoredDiff(),!this.#r){if(!s)throw Error("nrServerTime not found");if(this.#t=Math.floor(s-(t+(i-t)/2)),this.#i=r.WN-this.#t,isNaN(this.#t))throw Error("Failed to correct browser time to server time");this.#e?.write({serverTimeDiff:this.#i}),this.#r=!0}}convertRelativeTimestamp(e){return this.#a(),r.WN+e+this.#s}convertAbsoluteTimestamp(e){return this.#a(),e-r.WN-this.#s}correctAbsoluteTimestamp(e){return this.#a(),e-this.#i}correctRelativeTimestamp(e){return this.#a(),this.correctAbsoluteTimestamp(this.convertRelativeTimestamp(e))}processStoredDiff(){if(this.#r)return;let e=this.#e?.read()?.serverTimeDiff;"number"!=typeof e||isNaN(e)||(this.#i=e,this.#t=r.WN-this.#i,this.#r=!0)}}var w=i(85750),E=i(94053),B=i(61695),N=i(81082);class S extends f.r{static featureName=o.T;constructor(e){if(super(e,o.T),this.sentRum=!1,this.timeToFirstByte=0,this.firstByteToWindowLoad=0,this.firstByteToDomContent=0,this.retries=0,!(0,n.f)(e.info))return this.ee.abort(),(0,h.R)(43);e.runtime.timeKeeper=new D(e.runtime.session),r.RI?(g.subscribe(({value:e,attrs:t})=>{let i=t.navigationEntry;this.timeToFirstByte=Math.max(e,this.timeToFirstByte),this.firstByteToWindowLoad=Math.max(Math.round(i.loadEventEnd-this.timeToFirstByte),this.firstByteToWindowLoad),this.firstByteToDomContent=Math.max(Math.round(i.domContentLoadedEventEnd-this.timeToFirstByte),this.firstByteToDomContent)}),setTimeout(this.sendRum.bind(this),0)):this.sendRum()}sendRum(e=this.agentRef.info.jsAttributes){let t=this.agentRef.info,i={};t.queueTime&&(i.qt=t.queueTime),t.applicationTime&&(i.ap=t.applicationTime),i.be=this.timeToFirstByte,i.fe=this.firstByteToWindowLoad,i.dc=this.firstByteToDomContent;let n={tt:t.ttGuid,us:t.user,ac:t.account,pr:t.product,af:(function(e){let t=[];try{Object.keys(e.features||{}).forEach(e=>{switch(e){case m.K7.ajax:t.push("xhr");break;case m.K7.jserrors:t.push("err");break;case m.K7.genericEvents:t.push("ins");break;case m.K7.sessionTrace:t.push("stn");break;case m.K7.softNav:t.push("spa")}})}catch(e){}return t})(this.agentRef).join(","),...i,xx:t.extra,ua:t.userAttributes,at:t.atts};this.agentRef.runtime.session&&(n.fsh=Number(this.agentRef.runtime.session.isNew));let o=(0,w.G)({ja:{...e,webdriverDetected:N.R}},this.obfuscator.obfuscateString.bind(this.obfuscator),"string");if(r.gm.performance){let e=(0,r.zk)();if(e){let t={timing:(0,s.eM)(r.WN,e,{}),navigation:(0,s.si)(e,{})};n.perf=(0,a.A)(t)}else if("undefined"!=typeof PerformanceTiming){let e={timing:(0,s.eM)(r.WN,r.gm.performance.timing,{},!0),navigation:(0,s.si)(r.gm.performance.navigation,{})};n.perf=(0,a.A)(e)}}n.fp=d.J.current.value,n.fcp=u.j.current.value,this.queryStringsBuilder=()=>{this.rumStartTime=(0,y.t)();let e=this.agentRef.runtime.timeKeeper;return e?.ready&&(n.timestamp=Math.floor(e.correctRelativeTimestamp(this.rumStartTime))),n},this.events.add(o),this.agentRef.runtime.harvester.triggerHarvestFor(this,{sendEmptyBody:!0}).ranSend&&(this.sentRum=!0)}serializer(e){return e[0]}postHarvestCleanup({sent:e,status:t,responseText:i,xhr:r,retry:s}){var a,n;let o,f,u=(0,y.t)();try{({app:o,...f}=JSON.parse(i))}catch(e){(0,h.R)(53,e)}if(super.postHarvestCleanup({sent:e,retry:s}),this.isRetrying&&this.retries++<1)return void setTimeout(()=>this.agentRef.runtime.harvester.triggerHarvestFor(this,{sendEmptyBody:!0}),5e3);if(t>=400||0===t){(0,h.R)(18,t),this.blocked=!0;let e=new TextEncoder,i=Object.values(newrelic.ee.backlog).reduce((t,i)=>i?t+e.encode(i).byteLength:t,0),r="BCS/Error/",s={sm:[{params:{name:r+t},stats:{c:1}},{params:{name:r+"Dropped/Bytes"},stats:{c:1,t:i}},{params:{name:r+"Duration/Ms"},stats:{c:1,t:u-this.rumStartTime}}]};(0,E.t)(this.agentRef,{endpoint:m.$J[m.K7.metrics],payload:{body:s},submitMethod:(0,B.mj)(),featureName:m.K7.metrics}),this.ee.abort();return}try{let e=this.agentRef.runtime.timeKeeper.ready;if(this.agentRef.runtime.timeKeeper.processRumRequest(r,this.rumStartTime,u,o.nrServerTime),!this.agentRef.runtime.timeKeeper.ready)throw Error("TimeKeeper not ready");let t=this.agentRef.runtime.timeKeeper.correctedOriginTime-o.nrServerTime;e&&t>0&&this.reportSupportabilityMetric("Generic/TimeKeeper/InvalidTimestamp/Seen",t)}catch(e){this.ee.abort(),this.blocked=!0,(0,h.R)(17,e);return}Object.keys(this.agentRef.runtime.appMetadata).length||(this.agentRef.runtime.appMetadata=o),this.drain(),this.agentRef.runtime.harvester.startTimer(),a=f,n=this.agentRef,a&&"object"==typeof a&&!n.runtime.activatedFeatures&&(n.ee.emit("rumresp",[a]),n.runtime.activatedFeatures=a,(0,c.W)({loaded:!0,drained:!0,type:"lifecycle",name:"load",feature:void 0,data:a}))}}},85750:(e,t,i)=>{i.d(t,{G:()=>function e(t,i,r="string",s=[]){return t&&"object"==typeof t&&Object.keys(t).forEach(a=>{"object"==typeof t[a]?e(t[a],i,r,s):typeof t[a]!==r||s.includes(a)||(t[a]=i(t[a]))}),t}})}}]);
2//# sourceMappingURL=page_view_event-aggregate.e0db3837cbfa4493.js.map

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.