PageSourceSearch

https://smartificate.de/_next/static/chunks/profiler.98a0701237dc09d8.js

js smartificate.de collected 2026-10-01 15:40:06 UTC 4,702 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12],{91922:(e,t,n)=>{n.r(t),n.d(t,{DEFAULT_RUM_PROFILER_CONFIGURATION:()=>m,createRumProfiler:()=>v});var i=n(71559),r=n(3541),s=n(86569),a=n(62071),o=n(60659),l=n(48528),u=n(68030);let c=new Map;function f(e){for(let t of c.keys())t<e&&c.delete(t)}var p=n(42245);let d={sendProfile:(e,t,n,i)=>{let s=function(e,t,n,i){let s=t.tags,a=function(e,t,n){let i={application:{id:t}};n&&(i.session={id:n});let r=Array.from(new Set(e.views.map(e=>e.viewId)));r.length&&(i.view={id:r});let s=e.longTasks.map(e=>e.id).filter(e=>void 0!==e);return s.length&&(i.long_task={id:s}),i}(e,n,i),o=s.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:o.join(","),_dd:{clock_drift:(0,r.TP)()}}}(e,t,n,i),a=function(e,t){let n=new Blob([JSON.stringify(e)],{type:"application/json"}),i=new FormData;return i.append("event",new Blob([JSON.stringify(t)],{type:"application/json"}),"event.json"),i.append("wall-time.json",n,"wall-time.json"),{data:i,bytesCount:0}}(e,s),o=t.build("fetch",a);return(0,p.A2)("Sending profile to public profiling intake",{profilingIntakeURL:o,applicationId:n,sessionId:i}),fetch(o,{body:a.data,method:"POST"})}},m={sampleIntervalMs:10,collectIntervalMs:6e4,minProfileDurationMs:5e3,minNumberOfSamples:50};function v(e,t,n,p=m){let g,h=(0,u.s5)(u.do.LONG_ANIMATION_FRAME),w=[],b={state:"stopped"};function k(){let n,i=(0,s.V)().Profiler;if(!i)throw Error("RUM Profiler is not supported in this browser.");y(b).catch(a.Dx);let{cleanupTasks:u,observer:f}=function(n){let i;if("running"===n.state)return{cleanupTasks:n.cleanupTasks,observer:n.observer};let r=[];if(e.trackLongTasks){(i=new PerformanceObserver(T)).observe({entryTypes:[h?"long-animation-frame":"longtask"]});let e=t.subscribe(12,e=>{!function({rawRumEvent:e,startTime:t}){var n;"long_task"===e.type&&(n=e.long_task.id,c.set(t,n))}(e)});r.push(()=>null==i?void 0:i.disconnect()),r.push(e.unsubscribe)}let s=t.subscribe(2,e=>{M({viewId:e.id,viewName:e.name,startClocks:e.startClocks})});return r.push(s.unsubscribe),{cleanupTasks:r,observer:i}}(b);try{n=new i({sampleInterval:p.sampleIntervalMs,maxBufferSize:Math.round(1.5*p.collectIntervalMs/p.sampleIntervalMs)})}catch(e){o.Vy.warn("[DD_RUM] Profiler startup failed. Ensure your server includes the `Document-Policy: js-profiling` response header when serving HTML pages.",e);return}b={state:"running",startClocks:(0,r.M8)(),profiler:n,timeoutId:(0,l.wg)(k,p.collectIntervalMs),longTasks:[],views:[],cleanupTasks:u,observer:f},M(g),n.addEventListener("samplebufferfull",S)}async function y(t){var i,s;if("running"!==t.state)return;O(null!=(s=null==(i=t.observer)?void 0:i.takeRecords())?s:[]),(0,l.DJ)(t.timeoutId),t.profiler.removeEventListener("samplebufferfull",S);let{startClocks:o,longTasks:u,views:c}=t,m=(0,r.M8)();await t.profiler.stop().then(t=>{let i=(0,r.M8)(),s=u.length>0,l=(0,r.vk)(o.timeStamp,i.timeStamp)<p.minProfileDurationMs,v=function(e){let t=0;for(let n of e)void 0!==n.stackId&&t++;return t}(t.samples)<p.minNumberOfSamples;!s&&(l||v)||(function(t){var i;let r=null==(i=n.findTrackedSession())?void 0:i.id;d.sendProfile(t,e.profilingEndpointBuilder,e.applicationId,r).catch(a.Dx)}(Object.assign(t,{startClocks:o,endClocks:i,clocksOrigin:(0,r.Oc)(),longTasks:u,views:c,sampleInterval:p.sampleIntervalMs})),f(m.relative))}).catch(a.Dx)}async function I(e){"running"===b.state&&(b.cleanupTasks.forEach(e=>e()),await y(b),b={state:e})}function M(e){"running"===b.state&&e&&b.views.push(e)}function S(){k()}function T(e){O(e.getEntries())}function O(e){if("running"===b.state)for(let n of e){var t;if(n.duration<p.sampleIntervalMs)continue;let e=(0,r.FR)(n.startTime),i=(t=e.relative,c.get(t));b.longTasks.push({id:i,duration:n.duration,entryType:n.entryType,startClocks:e})}}function _(){"hidden"===document.visibilityState&&"running"===b.state?I("paused").catch(a.Dx):"visible"===document.visibilityState&&"paused"===b.state&&k()}function D(){k()}return{start:function(t){"running"!==b.state&&(g=t?{startClocks:t.startClocks,viewId:t.id,viewName:t.name}:void 0,w.push((0,i.q)(e,window,"visibilitychange",_).stop,(0,i.q)(e,window,"beforeunload",D).stop),k())}
1,stop:async function e(){await I("stopped"),w.forEach(e=>e()),f((0,r.M8)().relative)},isStopped:function(){return"stopped"===b.state},isRunning:function(){return"running"===b.state},isPaused:function(){return"paused"===b.state}}}}}]);
2//# sourceMappingURL=profiler.98a0701237dc09d8.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.