PageSourceSearch

https://www.nba2kmobile.com/_next/static/chunks/profiler.26f2899d3e027f7c.js

js nba2kmobile.com collected 2026-09-24 10:58:34 UTC 10,303 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12],{892:(e,t,n)=>{n.r(t),n.d(t,{DEFAULT_RUM_PROFILER_CONFIGURATION:()=>v,createRumProfiler:()=>g});var r=n(84884),s=n(47804),i=n(49068),a=n(28814),o=n(19690),l=n(63253),u=n(57731);let c=new Map;function p(e){for(let t of c.keys())t<e&&c.delete(t)}let d=/\/(?![vV]\d{1,2}\/)([^/\d?]*\d+[^/?]*)/g,f=(e,t)=>e||(t?t.replace(d,"/?"):"/");var m=n(86620);let v={sampleIntervalMs:10,collectIntervalMs:6e4,minProfileDurationMs:5e3,minNumberOfSamples:50};function g(e,t,n,d,b,h=v){let w,y=(0,u.wP)(e,t,b,6),k=(0,u.s5)(u.do.LONG_ANIMATION_FRAME),I=[],O={state:"stopped"};function M(){let n,r=(0,i.VZ)().Profiler;if(!r)throw d.set({status:"error",error_reason:"not-supported-by-browser"}),Error("RUM Profiler is not supported in this browser.");_(O).catch(a.Dx);let{cleanupTasks:p,observer:m}=function(n){let r;if("running"===n.state)return{cleanupTasks:n.cleanupTasks,observer:n.observer};let s=[];if(e.trackLongTasks){(r=new PerformanceObserver(D)).observe({entryTypes:[k?"long-animation-frame":"longtask"]});let e=t.subscribe(12,e=>{!function({rawRumEvent:e,startTime:t}){var n;e.type===u.bb.LONG_TASK&&(n=e.long_task.id,c.set(t,n))}(e)});s.push(()=>null==r?void 0:r.disconnect()),s.push(e.unsubscribe)}let i=t.subscribe(2,e=>{let t={viewId:e.id,viewName:f(e.name,document.location.pathname),startClocks:e.startClocks};T(t),w=t});return s.push(i.unsubscribe),{cleanupTasks:s,observer:r}}(O);try{n=new r({sampleInterval:h.sampleIntervalMs,maxBufferSize:Math.round(1.5*h.collectIntervalMs/h.sampleIntervalMs)})}catch(e){e instanceof Error&&e.message.includes("disabled by Document Policy")?(o.Vy.warn("[DD_RUM] Profiler startup failed. Ensure your server includes the `Document-Policy: js-profiling` response header when serving HTML pages.",e),d.set({status:"error",error_reason:"missing-document-policy-header"})):d.set({status:"error",error_reason:"unexpected-exception"});return}d.set({status:"running",error_reason:void 0}),O={state:"running",startClocks:(0,s.M8)(),profiler:n,timeoutId:(0,l.wg)(M,h.collectIntervalMs),longTasks:[],views:[],cleanupTasks:p,observer:m},T(w),n.addEventListener("samplebufferfull",P)}async function _(t){var r,i;if("running"!==t.state)return;E(null!=(i=null==(r=t.observer)?void 0:r.takeRecords())?i:[]),(0,l.DJ)(t.timeoutId),t.profiler.removeEventListener("samplebufferfull",P);let{startClocks:o,longTasks:u,views:c}=t,d=(0,s.M8)();await t.profiler.stop().then(t=>{let r=(0,s.M8)(),i=u.length>0,a=(0,s.vk)(o.timeStamp,r.timeStamp)<h.minProfileDurationMs,l=function(e){let t=0;for(let n of e)void 0!==n.stackId&&t++;return t}(t.samples)<h.minNumberOfSamples;!i&&(a||l)||(function(t){var r,i,a,o;let l,u,c,p=null==(r=n.findTrackedSession())?void 0:r.id,d={event:(i=t,a=e,o=p,l=(0,m.m5)(a),u=function(e,t,n){let r={application:{id:t}};n&&(r.session={id:n});let{ids:s,names:i}=function(e){let t={ids:[],names:[]};for(let n of e)t.ids.push(n.viewId),n.viewName&&t.names.push(n.viewName);return t.names=Array.from(new Set(t.names)),t}(e.views);s.length&&(r.view={id:s,name:i});let a=e.longTasks.map(e=>e.id).filter(e=>void 0!==e);return a.length&&(r.long_task={id:a}),r}(i,a.applicationId,o),c=l.concat(["language:javascript","runtime:chrome","family:chrome","host:browser"]),{...u,attachments:["wall-time.json"],start:new Date(i.startClocks.timeStamp).toISOString(),end:new Date(i.endClocks.timeStamp).toISOString(),family:"chrome",runtime:"chrome",format:"json",version:4,tags_profiler:c.join(","),_dd:{clock_drift:(0,s.TP)()}}),"wall-time.json":t};y.send(d)}(Object.assign(t,{startClocks:o,endClocks:r,clocksOrigin:(0,s.Oc)(),longTasks:u,views:c,sampleInterval:h.sampleIntervalMs})),p(d.relative))}).catch(a.Dx)}async function S(e){"running"===O.state&&(O.cleanupTasks.forEach(e=>e()),await _(O),O={state:e})}function T(e){"running"===O.state&&e&&O.views.push(e)}function P(){M()}function D(e){E(e.getEntries())}function E(e){if("running"===O.state)for(let n of e){var t;if(n.duration<h.sampleIntervalMs)continue;let e=(0,s.FR)(n.startTime),r=(t=e.relative,c.get(t));O.longTasks.push({id:r,duration:n.duration,entryType:n.entryType,startClocks:e})}}function N(){"hidden"===document.visibilityState&&"running"===O.state?S("paused").catch(a.Dx):"visible"===document.visibilityState&&"paused"===O.
1state&&M()}function j(){M()}return{start:function(t){"running"!==O.state&&(w=t?{startClocks:t.startClocks,viewId:t.id,viewName:f(t.name,document.location.pathname)}:void 0,I.push((0,r.q)(e,window,"visibilitychange",N).stop,(0,r.q)(e,window,"beforeunload",j).stop),M())},stop:async function e(){await S("stopped"),I.forEach(e=>e()),p((0,s.M8)().relative),d.set({status:"stopped",error_reason:void 0})},isStopped:function(){return"stopped"===O.state},isRunning:function(){return"running"===O.state},isPaused:function(){return"paused"===O.state}}}},11798:(e,t,n)=>{n.r(t),n.d(t,{DEFAULT_RUM_PROFILER_CONFIGURATION:()=>h,createRumProfiler:()=>w});var r=n(74224),s=n(7336),i=n(30664),a=n(85398),o=n(99274),l=n(6165),u=n(520);let c=new Map;function p(e){for(let t of c.keys())t<e&&c.delete(t)}let d=/\/(?![vV]\d{1,2}\/)([^/\d?]*\d+[^/?]*)/g,f=(e,t)=>e||(t?t.replace(d,"/?"):"/");var m=n(81293),v=n(49896);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){(0,m.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let h={sampleIntervalMs:10,collectIntervalMs:6e4,minProfileDurationMs:5e3,minNumberOfSamples:50};function w(e,t,n,d,m){let g,w=arguments.length>5&&void 0!==arguments[5]?arguments[5]:h,y=(0,u.wP)(e,t,m,6),k=(0,u.s5)(u.do.LONG_ANIMATION_FRAME),I=[],O={state:"stopped"};function M(){let n,r=(0,i.VZ)().Profiler;if(!r)throw d.set({status:"error",error_reason:"not-supported-by-browser"}),Error("RUM Profiler is not supported in this browser.");_(O).catch(a.Dx);let{cleanupTasks:p,observer:m}=function(n){let r;if("running"===n.state)return{cleanupTasks:n.cleanupTasks,observer:n.observer};let s=[];if(e.trackLongTasks){(r=new PerformanceObserver(D)).observe({entryTypes:[k?"long-animation-frame":"longtask"]});let e=t.subscribe(12,e=>{!function(e){var t;let{rawRumEvent:n,startTime:r}=e;n.type===u.bb.LONG_TASK&&(t=n.long_task.id,c.set(r,t))}(e)});s.push(()=>null==r?void 0:r.disconnect()),s.push(e.unsubscribe)}let i=t.subscribe(2,e=>{let t={viewId:e.id,viewName:f(e.name,document.location.pathname),startClocks:e.startClocks};T(t),g=t});return s.push(i.unsubscribe),{cleanupTasks:s,observer:r}}(O);try{n=new r({sampleInterval:w.sampleIntervalMs,maxBufferSize:Math.round(1.5*w.collectIntervalMs/w.sampleIntervalMs)})}catch(e){e instanceof Error&&e.message.includes("disabled by Document Policy")?(o.Vy.warn("[DD_RUM] Profiler startup failed. Ensure your server includes the `Document-Policy: js-profiling` response header when serving HTML pages.",e),d.set({status:"error",error_reason:"missing-document-policy-header"})):d.set({status:"error",error_reason:"unexpected-exception"});return}d.set({status:"running",error_reason:void 0}),O={state:"running",startClocks:(0,s.M8)(),profiler:n,timeoutId:(0,l.wg)(M,w.collectIntervalMs),longTasks:[],views:[],cleanupTasks:p,observer:m},T(g),n.addEventListener("samplebufferfull",P)}async function _(t){var r,i;if("running"!==t.state)return;E(null!=(i=null==(r=t.observer)?void 0:r.takeRecords())?i:[]),(0,l.DJ)(t.timeoutId),t.profiler.removeEventListener("samplebufferfull",P);let{startClocks:o,longTasks:u,views:c}=t,d=(0,s.M8)();await t.profiler.stop().then(t=>{let r=(0,s.M8)(),i=u.length>0,a=(0,s.vk)(o.timeStamp,r.timeStamp)<w.minProfileDurationMs,l=function(e){let t=0;for(let n of e)void 0!==n.stackId&&t++;return t}(t.samples)<w.minNumberOfSamples;!i&&(a||l)||(function(t){var r,i,a,o;let l,u,c,p=null==(r=n.findTrackedSession())?void 0:r.id,d={event:(i=t,a=e,o=p,l=(0,v.m5)(a),u=function(e,t,n){let r={application:{id:t}};n&&(r.session={id:n});let{ids:s,names:i}=function(e){let t={ids:[],names:[]};for(let n of e)t.ids.push(n.viewId),n.viewName&&t.names.push(n.viewName);return t.names=Array.from(new Set(t.names)),t}(e.views);s.length&&(r.view={id:s,name:i});let a=e.longTasks.map(e=>e.id).filter(e=>void 0!==e);return a.length&&(r.long_task={id:a}),r}(i,a.applicationId,o),c=l.concat(["language:javascript","runtime:chrome","family:chrome","host:browser"]),b(b({},u),{},{attachments:["wall-time.json"],start:new Date(i.startClocks.timeStamp).toISOString(),end:new Date(i.endClocks.timeStamp).toISOString(),family:"chrome",runtime:"chrome",format:"json",version:4,tags_profiler:c.join(","),_dd:{clock_drift:(0,s.TP)()}})),"wall-time.json":t};y.send(d)}(Object.assign(t,{startClocks:o,endClocks:r,clocksOrigin:(0,s.Oc)(),longTasks:u,views:c,sampleInterval:w.sampleIntervalMs})),p(d.relative))}).catch(a.Dx)}async function S(e){"running"===O.state&&(O.cleanupTasks.forEach(e
1=>e()),await _(O),O={state:e})}function T(e){"running"===O.state&&e&&O.views.push(e)}function P(){M()}function D(e){E(e.getEntries())}function E(e){if("running"===O.state)for(let n of e){var t;if(n.duration<w.sampleIntervalMs)continue;let e=(0,s.FR)(n.startTime),r=(t=e.relative,c.get(t));O.longTasks.push({id:r,duration:n.duration,entryType:n.entryType,startClocks:e})}}function N(){"hidden"===document.visibilityState&&"running"===O.state?S("paused").catch(a.Dx):"visible"===document.visibilityState&&"paused"===O.state&&M()}function j(){M()}return{start:function(t){"running"!==O.state&&(g=t?{startClocks:t.startClocks,viewId:t.id,viewName:f(t.name,document.location.pathname)}:void 0,I.push((0,r.q)(e,window,"visibilitychange",N).stop,(0,r.q)(e,window,"beforeunload",j).stop),M())},stop:async function e(){await S("stopped"),I.forEach(e=>e()),p((0,s.M8)().relative),d.set({status:"stopped",error_reason:void 0})},isStopped:function(){return"stopped"===O.state},isRunning:function(){return"running"===O.state},isPaused:function(){return"paused"===O.
1state}}}}}]);
2//# sourceMappingURL=profiler.26f2899d3e027f7c.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.