(()=>{"use strict";new Intl.NumberFormat(void 0,{maximumFractionDigits:2}),new Intl.NumberFormat(void 0,{minimumFractionDigits:2,maximumFractionDigits:2});let e=(e,t,r)=>{let s=t.parent;for(let a=((null==s?void 0:s.row)||-1)+1;;++a){let s=e[a];if(s){if(!s.every(e=>{let{startTime:s,endTime:a}=e;return s+r>t.endTime||a-r<t.startTime}))continue}else s=[],e.push(s);t.row=a,s.push(t);break}},t=0;self.addEventListener("message",e=>{let r=e.data;switch(t=Math.max(t,r.requestId||0),r.type){case"calculateSpanPositions":s(r.root);break;case"filterSpans":i(r.root,r.filter)}});let r=(e,t)=>{for(let s of("parent"in e&&(e.row=-1,e.isVisible=!0,t.push(e)),e.children.slice().sort((e,t)=>e.startTime-t.startTime||t.duration-e.duration)))r(s,t)},s=s=>{let a=t,i=[],o=[];r(s,o);let l=Date.now()-10,n=-64,u=0,m=()=>{for(let e of i)e.sort((e,t)=>e.startTime-t.startTime);postMessage({requestId:a,type:"setRowsResult",rows:i,isEnd:!o.length}),l=Date.now(),n=u};for(;;){let t=o.shift();if(!t)return void m();e(i,t,.001),++u,(Date.now()-l>=15||u-n>=256)&&m()}},a=RegExp("(?<=^|\\s)(?<pair>(?<key>[\\w.]+):(?<value>\\S*))","g"),i=(e,r)=>{let s=t,i=new Set,o=r.replace(a,"").replace(/\s{2,}/g," ").trim(),l=[];for(let e of r.matchAll(a)){let{key:t="",value:r=""}=e.groups||{};l.push([t,r.toLocaleLowerCase()])}let n=e=>!!e.name.toLocaleLowerCase().includes(o)&&l.every(t=>{let[r,s]=t,a=e.attributes[r];return!!a&&String(a).toLocaleLowerCase().includes(s)}),u=e=>{for(let t of e.children)n(t.span)&&i.add(t.span.spanId),u(t)};u(e),postMessage({requestId:s,type:"updateHighlight",matches:i})}})(),_N_E={};