PageSourceSearch

https://www.dallasnews.com/_next/static/chunks/datadogProfiler.8250fb4fae977d32.js

js dallasnews.com collected 2026-09-24 08:27:15 UTC 8,649 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2440],{63849:(e,t,i)=>{i.r(t),i.d(t,{DEFAULT_RUM_PROFILER_CONFIGURATION:()=>N,createRumProfiler:()=>O});var n=i(41179);function a(){let e=(0,n.Y9)();return t=>{e.send("profile",t)}}var r=i(67516),s=i(84721);function o(e,t,i){let n=(0,r.wP)(e,t,i,s.j.PROFILING);return({profile:e,trace:t})=>{n.send({event:e,"wall-time.json":t})}}let l=/\/(?![vV]\d{1,2}\/)([^/\d?]*\d+[^/?]*)/g,u=(e,t)=>e||function(e){return e?e.replace(l,"/?"):"/"}(t);var d=i(54254),c=i(75584),p=i(90129),f=i(48237);let v=p.AQ;function m(e){let t=(0,f.q)({expireDelay:v});return e.subscribe(r.Rg.RAW_RUM_EVENT_COLLECTED,({rawRumEvent:e,startClocks:i,duration:n})=>{"long_task"===e.type&&t.add({id:e.long_task.id,startClocks:i,duration:n,entryType:e.long_task.entry_type===r.K.LONG_TASK?r.do.LONG_TASK:r.do.LONG_ANIMATION_FRAME},i.relative).close((0,c.Gw)(i.relative,n))}),t}let _=p.AQ;function g(e){let t=(0,f.q)({expireDelay:_});return e.subscribe(r.Rg.ACTION_STARTED,e=>{t.add({id:e.id,label:"",startClocks:e.startClocks,duration:void 0},e.startClocks.relative)}),e.subscribe(r.Rg.RAW_RUM_EVENT_COLLECTED,({rawRumEvent:e,startClocks:i,duration:n})=>{if("action"===e.type){let a=t.getEntries(i.relative).find(t=>t.value.id===e.action.id),r=n??0;a?(a.value.duration=r,a.close((0,c.Gw)(i.relative,r))):t.add({id:e.action.id,label:"",startClocks:i,duration:n},i.relative).close((0,c.Gw)(i.relative,r))}}),t}let b=p.AQ;function k(e){let t=(0,f.q)({expireDelay:b});return e.subscribe(r.Rg.DURATION_VITAL_STARTED,e=>{t.add({id:e.id,type:r.DL.DURATION,startClocks:e.startClocks,duration:void 0,label:e.name},e.startClocks.relative)}),e.subscribe(r.Rg.RAW_RUM_EVENT_COLLECTED,({rawRumEvent:e,startClocks:i,duration:n})=>{if("vital"!==e.type)return;if(e.vital.type===r.DL.OPERATION_STEP){if("start"===e.vital.step_type)t.add({id:e.vital.id,type:e.vital.type,operationKey:e.vital.operation_key,startClocks:i,label:e.vital.name},i.relative);else if("end"===e.vital.step_type){let n=t.findAllEntries().find(t=>t.value.type===r.DL.OPERATION_STEP&&t.value.label===e.vital.name&&t.value.operationKey===e.vital.operation_key);if(!n)return;n.value.duration=(0,c.vk)(n.value.startClocks.relative,i.relative),n.close(i.relative)}return}let a=t.getEntries(i.relative).find(t=>t.value.id===e.vital.id);if(a){a.value.duration=n,a.close((0,c.Gw)(i.relative,n));return}t.add({id:e.vital.id,type:e.vital.type,operationKey:e.vital.operation_key,startClocks:i,duration:n,label:e.vital.name},i.relative).close((0,c.Gw)(i.relative,n))}),t}var E=i(14819),h=i(3333),y=i(73568);function w(e,t,i=5e3){let n,a=(0,y.Hg)({proxy:e.proxy,site:e.site,path:"/api/v2/profiling/quota",parameters:`session_id=${t}`,subdomain:"quota"}),r=new AbortController;return Promise.race([(0,E.h)(a,{credentials:"omit",signal:r.signal,headers:new Headers({"DD-CLIENT-TOKEN":e.clientToken})}).then(e=>{let t=429===e.status?{decision:"quota_ko",reason:"quota_exceeded"}:{decision:"quota_ok",reason:"api-error"};return e.json().then(e=>{(0,h.DJ)(n);let i=e?.data?.attributes;if(!i||"boolean"!=typeof i.admitted||"string"!=typeof i.reason)return t;let a="backend_client_not_initialized"===i.reason?"backend_unavailable":i.reason;return{decision:i.admitted?"quota_ok":"quota_ko",reason:a}},()=>((0,h.DJ)(n),t))}).catch(()=>((0,h.DJ)(n),{decision:"quota_ok",reason:"api-error"})),new Promise(e=>{n=(0,h.wg)(()=>{r.abort(),e({decision:"quota_ok",reason:"timeout"})},i)})])}var I=i(42e3),R=i(25854),T=i(15837),D=i(75412),A=i(52192),C=i(71701),S=i(68749);let N={sampleIntervalMs:10,collectIntervalMs:6e4,minProfileDurationMs:5e3};function O(e,t,i,s,l,p,f=N){let v,_=(0,n.d0)()?(0,R.B)(a)():(0,R.B)(o)(e,t,l),b=[],E=(0,R.B)(m)(t),y=(0,R.B)(g)(t),L=(0,R.B)(k)(t),M={state:"stopped",stateReason:"initializing"},q=0;function P(){if("running"===M.state)return;let t=p.findView();v=t?{startClocks:t.startClocks,viewId:t.id,viewName:u(t.name,document.location.pathname)}:void 0,b.push((0,D.q2)(window,D.gX.VISIBILITY_CHANGE,V).stop,(0,D.q2)(window,D.gX.BEFORE_UNLOAD,J).stop),G(),function(){if((0,n.d0)())return;let t=++q,a=i.findTrackedSession()?.id;a&&(0,R.B)(w)(e,a).then(e=>{t===q&&("running"===M.state||"paused"===M.state)&&"quota_ko"===e.decision&&x("quota_ko",e.reason)}).catch(S.Dx)}()}function x(e,t){(function(e){if("running"!==M.state){("paused"===M.state||"stopped"===M.state&&"stopped-by-user"===e)&&(M={state:"stopped",stateReason:e});return}let t=M;M={state:"stopped",stateReason:e}
1,t.cleanupTasks.forEach(e=>e()),"quota_ko"===e?((0,h.DJ)(t.timeoutId),t.profiler.removeEventListener("samplebufferfull",B),t.profiler.stop().catch(S.Dx)):U(t)})(e),b.forEach(e=>e()),b.length=0,s.set({status:"stopped",error_reason:void 0,quota_reason:t})}function G(){let e,n=C.J.Profiler;if(!n)throw s.set({status:"error",error_reason:"not-supported-by-browser"}),Error("RUM Profiler is not supported in this browser.");"running"===M.state&&U(M);let{cleanupTasks:a}=function(e){if("running"===e.state)return{cleanupTasks:e.cleanupTasks};let i=[];return i.push(t.subscribe(r.Rg.VIEW_CREATED,e=>{let t={viewId:e.id,viewName:u(e.name,document.location.pathname),startClocks:e.startClocks};j(t),v=t}).unsubscribe),{cleanupTasks:i}}(M);try{e=new n({sampleInterval:f.sampleIntervalMs,maxBufferSize:Math.round(1.5*f.collectIntervalMs/f.sampleIntervalMs)})}catch(e){e instanceof Error&&e.message.includes("disabled by Document Policy")?(A.V.warn("[DD_RUM] Profiler startup failed. Ensure your server includes the `Document-Policy: js-profiling` response header when serving HTML pages.",e),s.set({status:"error",error_reason:"missing-document-policy-header"})):s.set({status:"error",error_reason:"unexpected-exception"});return}s.set({status:"running",error_reason:void 0}),M={state:"running",startClocks:(0,c.M8)(),profiler:e,timeoutId:(0,h.wg)(G,f.collectIntervalMs),views:[],cleanupTasks:a,longTasks:[],sessionId:i.findTrackedSession()?.id},j(v),e.addEventListener("samplebufferfull",B)}function U(t){(0,h.DJ)(t.timeoutId),t.profiler.removeEventListener("samplebufferfull",B);let{startClocks:i,views:n,sessionId:a}=t;t.profiler.stop().then(t=>{var r;let s=(0,c.M8)(),o=(0,c.vk)(i.relative,s.relative),l=E.findAll(i.relative,o),u=y.findAll(i.relative,o),p=L.findAll(i.relative,o).map(e=>({id:e.id,label:e.label,startClocks:e.startClocks,duration:e.duration})),v=o<f.minProfileDurationMs;0===l.length&&v||(r=Object.assign({},t,{startClocks:i,endClocks:s,clocksOrigin:(0,c.Oc)(),longTasks:l,actions:u,vitals:p,views:n,sampleInterval:f.sampleIntervalMs,debugIds:function(e){let t=new Map((0,I.J)(e)?.map(e=>[e.url,e.id])),i=[];return e.forEach((e,n)=>{let a=t.get(e);void 0!==a&&i.push({resourceId:n,debugId:a})}),i.length?i:void 0}(t.resources)}),_({profile:function(e,t,i){let n=(0,d.m5)(t),a=function(e,t,i){let{ids:n,names:a}=function(e){let t={ids:[],names:[]};for(let i of e)t.ids.push(i.viewId),i.viewName&&t.names.push(i.viewName);return t.names=Array.from(new Set(t.names)),t}(e.views),r=e.longTasks.map(e=>e.id).filter(e=>void 0!==e),s=e.actions?.map(e=>e.id).filter(e=>void 0!==e)??[],{ids:o,labels:l}=function(e){let t={ids:[],labels:[]};if(!e)return t;for(let i of e)t.ids.push(i.id),t.labels.push(i.label);return t.labels=Array.from(new Set(t.labels)),t}(e.vitals),u={application:{id:t}};return i&&(u.session={id:i}),n.length&&(u.view={id:n,name:a}),r.length&&(u.long_task={id:r}),s.length&&(u.action={id:s,label:[]}),o.length&&(u.vital={id:o,label:l}),u}(e,t.applicationId,i),r=n.concat(["language:javascript","runtime:chrome","family:chrome","host:browser"]);return{...a,attachments:["wall-time.json"],start:new Date(e.startClocks.timeStamp).toISOString(),end:new Date(e.endClocks.timeStamp).toISOString(),family:"chrome",runtime:"chrome",format:"json",version:4,tags_profiler:r.join(","),_dd:{clock_drift:(0,c._O)()}}}(r,e,a),trace:r}))}).catch(S.Dx)}function j(e){"running"===M.state&&e&&M.views.push(e)}function B(){G()}function V(){"hidden"===document.visibilityState&&"running"===M.state?function(){if("running"!==M.state)return;let e=M;M={state:"paused"},e.cleanupTasks.forEach(e=>e()),U(e)}():"visible"===document.visibilityState&&"paused"===M.state&&G()}function J(){G()}return t.subscribe(r.Rg.SESSION_EXPIRED,()=>{x("session-expired")}),t.subscribe(r.Rg.SESSION_RENEWED,()=>{if("stopped"===M.state&&("session-expired"===M.stateReason||"quota_ko"===M.stateReason)){let t=i.findTrackedSession();t&&(0,T.$5)(t.id,(0,T.it)(e.sessionSampleRate,e.profilingSampleRate))&&P()}}),{start:P,stop:function(){x("stopped-by-user")},isStopped:function(){return"stopped"===M.state},isRunning:function(){return"running"===M.state},isPaused:function(){return"paused"===M.state}}}}}]);

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.