1(function(){var e=()=>{let[e]=performance.getEntriesByType(`navigation`);return(e==null?void 0:e.activationStart)||0};function t(t,n=e()){return t===void 0?void 0:Math.max(0,t-n)}var n=(e,t)=>e>0?e-t:e,r=(e,t)=>({duration:e.duration,executionStart:n(e.executionStart,t),forcedStyleAndLayoutDuration:e.forcedStyleAndLayoutDuration,invoker:e.invoker,invokerType:e.invokerType,pauseDuration:e.pauseDuration,sourceURL:e.sourceURL,sourceFunctionName:e.sourceFunctionName,sourceCharPosition:e.sourceCharPosition,startTime:n(e.startTime,t),windowAttribution:e.windowAttribution}),i=(t,i=e())=>({blockingDuration:t.blockingDuration,duration:t.duration,firstUIEventTimestamp:n(t.firstUIEventTimestamp,i),renderStart:n(t.renderStart,i),startTime:n(t.startTime,i),styleAndLayoutStart:n(t.styleAndLayoutStart,i),scripts:t.scripts.map(e=>r(e,i))}),a=(e,t)=>e>0?Math.max(0,e-t):e,o=(t,n=e())=>{let r=Math.max(0,t.startTime-n),i=Math.max(0,t.startTime+t.duration-n);return{name:t.name,initiatorType:t.initiatorType,deliveryType:t.deliveryType,transferSize:t.transferSize,encodedBodySize:t.encodedBodySize,decodedBodySize:t.decodedBodySize,responseStatus:t.responseStatus,contentType:t.contentType,startTime:r,duration:i-r,responseEnd:a(t.responseEnd,n),requestStart:a(t.requestStart,n),workerStart:a(t.workerStart,n)}},s=`[REDACTED_EMAIL]`,c=`[a-zA-Z0-9._%+-]+`,l=`[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}`,u=RegExp(`${c}@${l}`,`g`),d=RegExp(`${c}(?:@|%40)${l}`,`g`),f=/@|%40|%2540/,p=encodeURIComponent(s),m=e=>{let t=e.indexOf(`?`);if(t===-1||!f.test(e.slice(t)))return e;let n;try{n=new URL(e)}catch(t){return e}let r=new URLSearchParams,i=!1;for(let[e,t]of n.searchParams){let n=t.replace(d,s);n!==t&&(i=!0),r.append(e,n)}return i?(n.search=r.toString(),n.toString().split(p).join(s)):e};function h(e){return e?(parseInt(e,10)^Math.random()*16>>parseInt(e,10)/4).toString(16):`10000000-1000-4000-8000-100000000000`.replace(/[018]/g,h)}var g=()=>{try{let e=`__rdTK`;return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}},_=`https://rumdash.io`,ee=`${_}/api/v1/navigations`,te=`${_}/api/v1/client_errors`,ne=`${_}/docs/client-js`,re=288e5,ie=2e3,v={version:`87e4c125`},y=[],ae=e=>{let t=y[y.length-1];t&&!t.pageType&&(t.pageType=e,t.record&&(t.record.page_type=e))},oe=(e,t,n)=>{if(!t)return;let r=[...e].reverse().find(e=>e.timeStamp<=t);if(r&&r.url!==n)return r},se=m(location.href),ce=m(document.referrer),le=e=>Math.round(Date.now()-performance.now()+e),ue=le(0),de=({initiated:e,rum_session_id:t,page_type:n,url:r})=>({id:h(),url:m(r==null?location.href:r),initiated:e,is_first_of_session:!1,posted:!1,referrer:ce,w_width:window.innerWidth,w_height:window.innerHeight,rum_session_id:t,page_type:n}),b=de({initiated:ue}),fe=b,x=()=>b,pe=()=>fe,me=({initiated:e,page_type:t,url:n,navigationType:r})=>{let i=de({initiated:e,rum_session_id:b.rum_session_id,page_type:t,url:n});if(i.initiated>=b.initiated&&(b=i),r===`back-forward-cache`&&(fe=i),r===`soft-navigation`){let e=[...y].reverse().find(e=>e.url===i.url);e&&(e.record=i,i.page_type=e.pageType,i.w_width=e.w_width,i.w_height=e.w_height)}return i},he=!1,ge=!1,_e=e=>{if(ge){console.warn(`RumDash.init() was called more than once. Only the first call takes effect, so this one was ignored. To change what is reported after init, see ${ne}`);return}ge=!0;let t=he||(e==null?void 0:e.enabled)===!1;t&&(v.enabled=!1),v.key=e.key,v.revision=e.revision,v.env=e.env||`prod`,b.page_type=e.pageType,v.enabled=!t&&!!e.key&&/^https?:/i.test(se)&&g()},ve=()=>{he=!0,v.enabled=!1},ye=`__rdSessId`,S=`__rdSessTimestamp`,be=18e5,xe=()=>{let e=Date.now(),t=localStorage.getItem(ye),n=localStorage.getItem(S),r=n&&e-parseInt(n,10)>be;(!t||r)&&(x().is_first_of_session=!0,t=h(),localStorage.setItem(ye,t)),localStorage.setItem(S,e.toString()),x().rum_session_id=t},Se=!1,Ce=()=>{var e;Se||(Se=!0,xe(),(e=window.navigation)==null||e.addEventListener(`navigate`,({timeStamp:e,destination:n,canIntercept:r,navigationType:i})=>{if(r&&i!==`reload`){let r=m(n.url);y.push({url:r,timeStamp:t(e),navigationType:i,w_width:window.innerWidth,w_height:window.innerHeight})}}),window.addEventListener(`pageshow`,e=>{if(e.persisted){var t;let e=Date.now(),n=y[y.length-1];for(me({initiated:e,page_type:(t=n==null?void 0:n.pageType)==null?x().page_type:t,navigationType:`back-forward-cache`}),v.enabled&&localStorage.setItem(S,e.toString());y.length;)y.pop()}},!0))};function C(e){"@babel/helpers - typeof";return C=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},C(e)}function we(e,t){if(C(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(C(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Te(e){var t=we(e,`string`);return C(t)==`symbol`?t:t+``}function w(e,t,n){return(t=Te(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ee=class{constructor(){w(this,`_onAfterProcessingUnexpectedShift`,void 0),w(this,`_sessionValue`,0),w(this,`_sessionEntries`,[])}_processEntry(e){var t;if(e.hadRecentInput)return;let n=this._sessionEntries[0],r=this._sessionEntries.at(-1);this._sessionValue&&n&&r&&e.startTime-r.startTime<1e3&&e.startTime-n.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),(t=this._onAfterProcessingUnexpectedShift)==null||t.call(this,e)}},T=()=>{let e=performance.getEntriesByType(`navigation`)[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},E=e=>{if(document.readyState===`loading`)return`loading`;let t=T();if(t){if(e<t.domInteractive)return`loading`;if(t.domContentLoadedEventStart===0||e<t.domContentLoadedEventStart)return`dom-interactive`;if(t.domComplete===0||e<t.domComplete)return`dom-content-loaded`}return`complete`},De=e=>{let t=e.nodeName;
1return e.nodeType===1?t.toLowerCase():t.toUpperCase().replace(/^#/,``)},D=e=>{let t=``;try{for(;(e==null?void 0:e.nodeType)!==9;){var n;let r=e,i=r.id?`#`+r.id:[De(r),...Array.from((n=r.classList)==null?[]:n).sort()].join(`.`);if(t.length+i.length>99)return t||i;if(t=t?i+`>`+t:i,r.id)break;e=r.parentNode}}catch(e){}return t},Oe=new WeakMap;function O(e,t){let n=Oe.get(t);return n||(n=new WeakMap,Oe.set(t,n)),n.get(e)||n.set(e,new t),n.get(e)}var ke=-1,k=()=>ke,A=e=>{addEventListener(`pageshow`,t=>{t.persisted&&(ke=t.timeStamp,e(t))},!0)},Ae=(e,t)=>e>t[1]?`poor`:e>t[0]?`needs-improvement`:`good`,j=(e,t,n,r)=>{let i,a;return o=>{if(t.value>=0&&(o||r)){var s;a=t.value-((s=i)==null?0:s),(a||i===void 0)&&(i=t.value,t.delta=a,t.rating=Ae(t.value,n),e(t))}}},M=e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))},N=()=>{var e,t;return(e=(t=T())==null?void 0:t.activationStart)==null?0:e},P=-1,je=new Set,Me=()=>document.visibilityState===`hidden`&&!document.prerendering?0:1/0,F=e=>{if(document.visibilityState===`hidden`){if(e.type===`visibilitychange`)for(let e of je)e();isFinite(P)||(P=e.type===`visibilitychange`?e.timeStamp:0,removeEventListener(`prerenderingchange`,F,!0))}},I=(e=!1)=>{if(e&&(P=1/0),P<0){var t;let e=N(),n=document.prerendering||(t=globalThis.performance.getEntriesByType(`visibility-state`).find(t=>t.name===`hidden`&&t.startTime>=e))==null?void 0:t.startTime;P=n==null?Me():n,addEventListener(`visibilitychange`,F,!0),addEventListener(`prerenderingchange`,F,!0),A(()=>{setTimeout(()=>{P=Me()})})}return{get firstHiddenTime(){return P},onHidden(e){je.add(e)}}},Ne=()=>`v6-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+0xe8d4a51000}`,L=(e,t=-1,n,r=0,i,a,o)=>{let s=T(),c=(s==null?void 0:s.navigationId)||0,l=`navigate`;return n?l=n:k()>=0?l=`back-forward-cache`:s&&(document.prerendering||N()>0?l=`prerender`:document.wasDiscarded?l=`restore`:s.type&&(l=s.type.replace(/_/g,`-`))),{name:e,value:t,rating:`good`,delta:0,entries:[],id:Ne(),navigationType:l,navigationId:r||c,navigationInteractionId:i,navigationURL:a||(s==null?void 0:s.name),navigationStartTime:o||0}},R=(e,t,n={})=>{try{let r=e.filter(e=>PerformanceObserver.supportedEntryTypes.includes(e));if(r.length>0){let e=new PerformanceObserver(e=>{queueMicrotask(()=>{let n=e.getEntries();r.length>1&&n.sort((e,t)=>e.startTime+e.duration-(t.startTime+t.duration)),t(n)})});for(let t of r)e.observe({type:t,buffered:!0,...n});return e}}catch(e){}},z=e=>{var t,n;return((t=globalThis.PerformanceObserver)==null||(t=t.supportedEntryTypes)==null?void 0:t.includes(`soft-navigation`))&&typeof((n=globalThis.PerformanceSoftNavigation)==null||(n=n.prototype)==null?void 0:n.getLargestInteractionContentfulPaint)==`function`&&e&&e.reportSoftNavs},Pe=(e,t)=>{if(e.set(t.navigationId,t),e.size>2){let t=e.keys().next().value;t!==void 0&&e.delete(t)}},Fe=e=>{let t=!1;return()=>{t||(e(),t=!0)}},Ie=class{constructor(){w(this,`_softNavigationEntryMap`,void 0)}},B=e=>{document.prerendering?addEventListener(`prerenderingchange`,e,!0):e()},V=[1800,3e3],Le=(e,t={})=>{let n=z(t);B(()=>{let r=O(t,Ie),i=I(),a=L(`FCP`),o,s=R([`paint`],e=>{for(let t of e)t.name===`first-contentful-paint`&&(s.disconnect(),t.startTime<i.firstHiddenTime&&(a.value=Math.max(t.startTime-N(),0),a.entries.push(t),a.navigationId=t.navigationId||a.navigationId,o(!0)))});s&&(o=j(e,a,V,t.reportAllChanges),A(n=>{a=L(`FCP`,-1,`back-forward-cache`,a.navigationId,a.navigationInteractionId,a.navigationURL,k()),o=j(e,a,V,t.reportAllChanges),M(()=>{a.value=performance.now()-n.timeStamp,o(!0)})})),n&&R([`soft-navigation`],n=>{n.forEach(n=>{r._softNavigationEntryMap&&n.navigationId&&Pe(r._softNavigationEntryMap,n),a=L(`FCP`,Math.max((n.presentationTime||n.paintTime||0)-n.startTime,0),`soft-navigation`,n.navigationId,n.interactionId,n.name,n.startTime),o=j(e,a,V,t.reportAllChanges),o(!0)})},t)})},Re=[.1,.25],ze=(e,t={})=>{let n=I();Le(Fe(()=>{let r=L(`CLS`,0),i,a=O(t,Ee),o=(n,o,s,c,l)=>{r=L(`CLS`,0,n,o,s,c,l),a._sessionValue=0,i=j(e,r,Re,t.reportAllChanges)},s=(e=!1)=>{a._sessionValue>r.value&&(r.value=a._sessionValue,r.entries=a._sessionEntries),i(e)},c=e=>{s(!0),o(`soft-navigation`,e.navigationId,e.interactionId,e.name,e.startTime)},l=e=>{for(let t of e){if(t.entryType===`soft-navigation`){c(t);continue}a._processEntry(t)}s()},u=[`layout-shift`];
1z(t)&&u.push(`soft-navigation`);let d=R(u,l);d&&(i=j(e,r,Re,t.reportAllChanges),n.onHidden(()=>{l(d.takeRecords()),i(!0)}),A(()=>{o(`back-forward-cache`,r.navigationId,r.navigationInteractionId,r.navigationURL,k()),M(i)}),setTimeout(i))}))},Be=e=>e.reduce((e,t)=>e.value>t.value?e:t),Ve=e=>e.find(e=>{var t;return((t=e.node)==null?void 0:t.nodeType)===1})||e[0],He=(e,t={})=>{t=Object.assign({},t);let n=O(t,Ee),r=new WeakMap;n._onAfterProcessingUnexpectedShift=e=>{var n;if(e!=null&&(n=e.sources)!=null&&n.length){let n=Ve(e.sources),o=n==null?void 0:n.node;if(o){var i,a;let e=(i=(a=t.generateTarget)==null?void 0:a.call(t,o))==null?D(o):i;r.set(n,e)}}};let i=e=>{let t={};if(e.entries.length){var n;let i=Be(e.entries);if(i!=null&&(n=i.sources)!=null&&n.length){let e=Ve(i.sources);e&&(t={largestShiftTarget:r.get(e),largestShiftTime:i.startTime,largestShiftValue:i.value,largestShiftSource:e,largestShiftEntry:i,loadState:E(i.startTime)})}}return Object.assign(e,{attribution:t})};ze(t=>{e(i(t))},t)},Ue=0,H=1/0,U=0,We=e=>{for(let t of e)t.interactionId&&(H=Math.min(H,t.interactionId),U=Math.max(U,t.interactionId),Ue=U?(U-H)/7+1:0)},W,Ge=()=>{var e;return W?Ue:(e=performance.interactionCount)==null?0:e},Ke=()=>{`interactionCount`in performance||W||(W=R([`event`],We,{durationThreshold:0}))},G=10,qe=class{constructor(){w(this,`_prevInteractionCount`,0),w(this,`_longestInteractionList`,[]),w(this,`_longestInteractionMap`,new Map),w(this,`_onBeforeProcessingEntry`,void 0),w(this,`_onAfterProcessingINPCandidate`,void 0)}_getInteractionCountForNavigation(){return Ge()-this._prevInteractionCount}_resetInteractions(){this._prevInteractionCount=Ge(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(e){let t=this._getInteractionCountForNavigation(),n=Math.min(this._longestInteractionList.length-1,Math.floor(t/50));return t&&n===-1&&(e===`soft-navigation`||e===`back-forward-cache`)?{_latency:8,id:-1,entries:[]}:this._longestInteractionList[n]}_processEntry(e){var t;if((t=this._onBeforeProcessingEntry)==null||t.call(this,e),!e.interactionId)return;let n=this._longestInteractionList.at(-1),r=this._longestInteractionMap.get(e.interactionId);if(r||this._longestInteractionList.length<G||e.duration>n._latency){var i;if(r?e.duration>r._latency?(r.entries=[e],r._latency=e.duration):e.duration===r._latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>G){let e=this._longestInteractionList.splice(G);for(let t of e)this._longestInteractionMap.delete(t.id)}(i=this._onAfterProcessingINPCandidate)==null||i.call(this,r)}}},K=e=>{let t=`requestIdleCallback`in globalThis?1e3:0,n=globalThis.requestIdleCallback||setTimeout,r=globalThis.cancelIdleCallback||clearTimeout;if(document.visibilityState===`hidden`)e();else{let i=Fe(e),a=-1,o=()=>{r(a),i()};addEventListener(`visibilitychange`,o,{once:!0,capture:!0}),a=n(()=>{removeEventListener(`visibilitychange`,o,{capture:!0}),i()},{timeout:t})}},Je=[200,500],Ye=40,Xe=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&`interactionId`in PerformanceEventTiming.prototype))return;let n=I();B(()=>{var r;Ke();let i=L(`INP`),a,o=O(t,qe),s=(n,r,s,c,l)=>{o._resetInteractions(),i=L(`INP`,-1,n,r,s,c,l),a=j(e,i,Je,t.reportAllChanges)},c=()=>{let e=o._estimateP98LongestInteraction(i.navigationType);e&&e._latency!==i.value&&(i.value=e._latency,i.entries=e.entries,a())},l=e=>{c(),a(!0),s(`soft-navigation`,e.navigationId,e.interactionId,e.name,e.startTime)},u=(e,t=!1)=>{K(()=>{for(let t of e){if(t.entryType===`soft-navigation`){l(t);continue}o._processEntry(t)}c(),t&&a(!0)})},d=[`event`,`first-input`];z(t)&&d.push(`soft-navigation`);let f=R(d,u,{...t,durationThreshold:(r=t.durationThreshold)==null?Ye:r});a=j(e,i,Je,t.reportAllChanges),f&&(n.onHidden(()=>{u(f.takeRecords(),!0)}),A(()=>{s(`back-forward-cache`,i.navigationId,i.navigationInteractionId,i.navigationURL,k())}))})},Ze=10,Qe=(e,t={})=>{t=Object.assign({},t);let n=O(t,qe),r=[],i=[],a=0,o=new WeakMap,s=new WeakMap,c=!1,l=e=>{r=r.concat(e),f()},u=e=>{if(!s.get(e)){var n;let o=(n=e.entries.find(e=>e.target))==null?void 0:n.target;if(o){var r,i;let n=(r=(i=t.generateTarget)==null?void 0:i.call(t,o))==null?D(o):r;s.set(e,n)}else{var a;let t=(a=e.entries.find(e=>e.targetSelector))==null?void 0:a.targetSelector;t&&s.set(e,t)}}},d=e=>{let n=e.startTime+e.duration,r;a=Math.max(a,e.processingEnd);for(let a=i.length-1;a>=0;a--){let o=i[a];if(Math.abs(n-o.renderTime)<=8){r=o,r.startTime=Math.min(e.startTime,r.startTime),r.processingStart=Math.min(e.processingStart,r.processingStart),r.processingEnd=Math.max(e.processingEnd,r.processingEnd),t.includeProcessedEventEntries&&r.entries.push(e);break}}r||(r={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:n,entries:t.includeProcessedEventEntries?[e]:[]},i.push(r)),e.interactionId&&o.set(e,r),f()},f=()=>{c||(c=!0,K(p))},p=()=>{let e=new Set(n._longestInteractionList.map(e=>o.get(e.entries[0]))),t=i.length-Ze;i=i.filter((n,r)=>r>=t||e.has(n));let s=new Set;for(let e of i){let t=m(e.startTime,e.processingEnd);for(let e of t)s.add(e)}let l=r.length-Ze;r=r.filter((e,t)=>
1s.has(e)||t>=l&&e.startTime>a),c=!1};n._onBeforeProcessingEntry=d,n._onAfterProcessingINPCandidate=u;let m=(e,t)=>{let n=[];for(let i of r)if(!(i.startTime+i.duration<e)){if(i.startTime>t)break;n.push(i)}return n},h=e=>{var t;let n=e.interactionTime,r=e.nextPaintTime;if(!((t=e.longAnimationFrameEntries)!=null&&t.length)||!n||!r)return;let i=e.inputDelay,a=e.processingDuration,o=0,s=0,c=0,l=0,u,d;for(let t of e.longAnimationFrameEntries){s=s+t.startTime+t.duration-t.styleAndLayoutStart;for(let e of t.scripts){let t=e.startTime+e.duration;if(t<n)continue;let r=t-Math.max(n,e.startTime),c=e.duration?r/e.duration*e.forcedStyleAndLayoutDuration:0;o+=r-c,s+=c,r>l&&(d=e.startTime<n+i?`input-delay`:e.startTime>=n+i+a?`presentation-delay`:`processing-duration`,u=e,l=r)}}let f=e.longAnimationFrameEntries.at(-1),p=f?f.startTime+f.duration:0;p>=n+i+a&&(c=r-p),u&&d&&(e.longestScript={entry:u,subpart:d,intersectingDuration:l}),e.totalScriptDuration=o,e.totalStyleAndLayoutDuration=s,e.totalPaintDuration=c,e.totalUnattributedDuration=r-n-o-s-c},g=e=>{if(e.entries.length===0){let t=e.navigationStartTime||0,n={processedEventEntries:[],longAnimationFrameEntries:[],inputDelay:0,processingDuration:0,presentationDelay:e.value,loadState:E(t)};return Object.assign(e,{attribution:n})}let t=e.entries[0],r=o.get(t),i=Math.max(r.processingStart,t.startTime),a=Math.max(t.startTime+t.duration,i),c=Math.min(r.processingEnd,a),l=r.entries.sort((e,t)=>e.processingStart-t.processingStart),u=m(t.startTime,c),d=n._longestInteractionMap.get(t.interactionId),f={interactionTarget:s.get(d),interactionType:t.name.startsWith(`key`)?`keyboard`:`pointer`,interactionTime:t.startTime,nextPaintTime:a,processedEventEntries:l,longAnimationFrameEntries:u,inputDelay:i-t.startTime,processingDuration:c-i,presentationDelay:a-c,loadState:E(t.startTime),longestScript:void 0,totalScriptDuration:void 0,totalStyleAndLayoutDuration:void 0,totalPaintDuration:void 0,totalUnattributedDuration:void 0};return h(f),Object.assign(e,{attribution:f})};R([`long-animation-frame`],l,t),Xe(t=>{e(g(t))},t)},$e=class{constructor(){w(this,`_onBeforeProcessingEntry`,void 0),w(this,`_softNavigationEntryMap`,void 0)}_processEntry(e){var t;(t=this._onBeforeProcessingEntry)==null||t.call(this,e)}},q=[2500,4e3],et=(e,t={})=>{let n=!1,r=z(t);B(()=>{let i=I(),a=L(`LCP`),o,s=O(t,$e),c=(r,s,c,l,u)=>{a=L(`LCP`,-1,r,s,c,l,u),o=j(e,a,q,t.reportAllChanges),n=!1,r===`soft-navigation`&&(i=I(!0))},l=e=>{var t;s._softNavigationEntryMap&&e.navigationId&&Pe(s._softNavigationEntryMap,e),n||o(!0),c(`soft-navigation`,e.navigationId,e.interactionId,e.name,e.startTime);let r=(t=e.getLargestInteractionContentfulPaint)==null?void 0:t.call(e);r&&u([r])},u=e=>{!t.reportAllChanges&&!r&&(e=e.slice(-1));for(let t of e){if(!t)continue;if(t.entryType===`soft-navigation`){l(t);continue}let e=0,r=[],c=t.startTime;if(t.entryType===`largest-contentful-paint`)e=Math.max(t.startTime-N(),0),s._processEntry(t),r=[t];else if(t.entryType===`interaction-contentful-paint`){var n;let i=t;if(!a.navigationId||`interactionId`in i&&i.interactionId!=a.navigationInteractionId)continue;c=((n=i.largestContentfulPaint)==null?void 0:n.renderTime)||0,e=Math.max(c-t.startTime,0),i.largestContentfulPaint&&(s._processEntry(i.largestContentfulPaint),r=[i.largestContentfulPaint])}c<i.firstHiddenTime&&(a.value=e,a.entries=r,o())}},d=[`largest-contentful-paint`];r&&d.push(`interaction-contentful-paint`,`soft-navigation`);let f=R(d,u);if(f){o=j(e,a,q,t.reportAllChanges);let i=[`keydown`,`click`,`visibilitychange`],s=e=>{if(e.isTrusted&&!n){let e=a.id;K(()=>{if(!n){if(!r){f.disconnect();for(let e of i)removeEventListener(e,s,{capture:!0})}e===a.id&&(n=!0,o(!0))}})}};for(let e of i)addEventListener(e,s,{capture:!0});A(r=>{c(`back-forward-cache`,a.navigationId,a.navigationInteractionId,a.navigationURL,k()),o=j(e,a,q,t.reportAllChanges),M(()=>{a.value=performance.now()-r.timeStamp,n=!0,o(!0)})})}})},tt=50,J=[];R([`resource`],e=>{for(let t of e)J.push(t),J.length>tt&&J.shift()});var nt=(e,t={})=>{t=Object.assign({},t),t.resourceBufferSize!=null&&(tt=t.resourceBufferSize);let n=O(t,$e),r=new WeakMap;z(t)&&(n._softNavigationEntryMap=new Map),n._onBeforeProcessingEntry=e=>{let n=e.element;if(n){var i,a;let o=(i=(a=t.generateTarget)==null?void 0:a.call(t,n))==null?D(n):i;r.set(e,o)}else e.id&&r.set(e,`#${e.id}`)};let i=e=>{let t={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:e.value};if(e.entries.length){let s=e.entries.at(-1),c=e=>e.name===s.url&&(e.requestStart||e.startTime)<=s.startTime,l=s.url&&(J.findLast(c)||performance.getEntriesByType(`resource`).findLast(c));t.target=r.get(s),t.lcpEntry=s,s.url&&(t.url=s.url),l&&(t.lcpResourceEntry=l);let u,d=0,f=0;if(e.navigationType!==`soft-navigation`){var i,a;u=T(),d=(i=u==null?void 0:u.activationStart)==null?0:i,f=(a=u==null?void 0:u.responseStart)==null?0:a}else{var o;d=e.navigationStartTime||0,u=(o=n._softNavigationEntryMap)==null?void 0:o.get(e.navigationId)}if(u){let n=Math.max(0,f-d),r=Math.max(n,l?(l.requestStart||l.startTime)-d:0),i=Math.min(e.value,Math.max(r,l?l.responseEnd-d:0));t={...t,timeToFirstByte:n,resourceLoadDelay:r-n,resourceLoadDuration:i-r,elementRenderDelay:e.value-i,navigationEntry:u}}}return Object.assign(e,{attribution:t})};et(t=>{e(i(t))},t)},Y=[800,1800],X=e=>{document.prerendering?B(()=>X(e)):document.readyState===`complete`?setTimeout(e):addEventListener(`load`,()=>X(e),!0)},rt=(e,t={})=>{let n=z(t),r=L(`TTFB`),i=j(e,r,Y,t.reportAllChanges);X(()=>{let a=T();if(a){let o=a.responseStart;r.value=Math.max(o-N(),0),r.entries=[a],i(!0),A(()=>{r=L(`TTFB`,0,`back-forward-cache`,r.navigationId,r.navigationInteractionId,r.navigationURL,k()),i=j(e,r,Y,t.reportAllChanges),i(!0)}),n&&R([`soft-navigation`],n=>
1{n.forEach(n=>{n.navigationId&&(r=L(`TTFB`,0,`soft-navigation`,n.navigationId,n.interactionId,n.name,n.startTime),r.entries=[n],i=j(e,r,Y,t.reportAllChanges),i(!0))})},t)}})},it=e=>{let t=e.entries[0],n={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0,navigationEntry:t};if(e.entries.length&&t instanceof PerformanceNavigationTiming){let r=t.activationStart||0,i=Math.max((t.workerStart||t.fetchStart||0)-r,0),a=Math.max(t.domainLookupStart-r,0),o=Math.max(t.connectStart-r,0),s=Math.max(t.connectEnd-r,0);n={waitingDuration:i,cacheDuration:a-i,dnsDuration:o-a,connectionDuration:s-o,requestDuration:e.value-s,navigationEntry:t}}return Object.assign(e,{attribution:n})},at=(e,t={})=>{rt(t=>{e(it(t))},t)},ot=(e,t)=>{let n=JSON.stringify(t),r=new Blob([n],{type:`text/plain`});try{return navigator.sendBeacon(e,r)}catch(e){return!1}},Z=e=>{try{return e()}catch(e){let t,n;if(typeof e==`string`?t=e:e instanceof Error&&(t=e.message,n=e.stack||``),v.enabled===!1)return;ot(te,{message:t,stack:n})}},st=e=>{let t=e.nodeName;return e.nodeType===1?t.toLowerCase():t.toUpperCase().replace(/^#/,``)},ct=[`role`,`type`],lt=e=>{for(let t of ct){let n=e.getAttribute(t);if(n)return`[${t}="${n}"]`}return``},ut=e=>{let t=``,n=!0;try{for(;(e==null?void 0:e.nodeType)!==9;){let r=e,i;if(r.id)i=`#`+r.id;else{let e=st(r),t=Array.from(r.classList).sort();i=t.length?[e,...t].join(`.`):e+(n?lt(r):``)}if(t.length+i.length>99)return t||i;if(t=t?i+`>`+t:i,r.id)break;e=r.parentNode,n=!1}}catch(e){}return t},Q=(e,t,n,r)=>{Z(()=>{var i;if(t&&!((i=e._rumDashMeta)!=null&&i.tag_name)){let i=t.localName===`text`?t.textContent:t.innerText,a=oe(y,r,n),o={tag_name:t.localName,element:ut(t),rect:t.getBoundingClientRect(),w_width:window.innerWidth,w_height:window.innerHeight,scroll_y:window.scrollY,scroll_x:window.scrollX,pixel_ratio:window.devicePixelRatio,d_scroll_height:document.documentElement.scrollHeight,d_scroll_width:document.documentElement.scrollWidth};i&&(o.inner_text=_t(i));let s=e.url||t.currentSrc;s&&(o.src=ft(s)),a&&(o.href=a.url,o.page_type=a.pageType),e._rumDashMeta=o}})},dt=100,ft=e=>e.startsWith(`data:`)?e.slice(0,dt):e,pt=50,mt=80,ht=/\d/g,gt=`#`,_t=e=>{let t=e.split(` 2`,20).map(e=>e.slice(0,mt).replace(u,s).replace(ht,gt)).join(` 3`).trim().split(` `),n=``;for(;t.length&&n.length<pt;){let e=t.shift();n+=e+` `}let r=n.trim();return t.length?`${r} ...`:r},vt=e=>typeof e==`number`&&!Number.isNaN(e)&&!Number.isInteger(e);function $({value:e,precision:t}){return vt(e)?Number(e.toFixed(t)):e}var yt=e=>({x:$({value:e.x,precision:2}),y:$({value:e.y,precision:2}),height:$({value:e.height,precision:2}),width:$({value:e.width,precision:2})}),bt=e=>({...e,rect:yt(e.rect),scroll_y:$({value:e.scroll_y,precision:2}),scroll_x:$({value:e.scroll_x,precision:2}),pixel_ratio:$({value:e.pixel_ratio,precision:2}),path:e.href?new URL(e.href).pathname:void 0}),xt=e=>{var n;let{value:r,rating:i,attribution:a,entries:o}=e,s={value:$({value:r,precision:4}),rating:i,largest_shift_time:$({value:t(a.largestShiftTime),precision:2}),largest_shift_value:$({value:a.largestShiftValue,precision:4})},c=o.length;c&&(s.shifts_count=c),a.largestShiftSource&&(s.current_rect=yt(a.largestShiftSource.currentRect),s.previous_rect=yt(a.largestShiftSource.previousRect));let l=(n=a.largestShiftEntry)==null?void 0:n._rumDashMeta;return l&&Object.assign(s,bt(l)),s},St=e=>({value:$({value:e.value,precision:2}),rating:e.rating}),Ct=e=>({duration:e.duration,execution_start:$({value:e.executionStart,precision:2}),forced_style_and_layout_duration:e.forcedStyleAndLayoutDuration,invoker:e.invoker,invoker_type:e.invokerType,pause_duration:e.pauseDuration,source_url:e.sourceURL,source_function_name:e.sourceFunctionName,source_char_position:e.sourceCharPosition,start_time:$({value:e.startTime,precision:2}),window_attribution:e.windowAttribution}),wt=e=>({blocking_duration:$({value:e.blockingDuration,precision:2}),duration:$({value:e.duration,precision:2}),first_ui_event_timestamp:$({value:e.firstUIEventTimestamp,precision:2}),render_start:$({value:e.renderStart,precision:2}),start_time:$({value:e.startTime,precision:2}),style_and_layout_start:$({value:e.styleAndLayoutStart,precision:2}),scripts:e.scripts.map(Ct)}),Tt=e=>e.map(wt),Et=n=>{var r;let{value:a,rating:o,attribution:s}=n,c=e(),l={value:$({value:a,precision:2}),rating:o,event_time:$({value:t(s.interactionTime,c),precision:2}),event_type:s.interactionType,load_state:s.loadState,next_paint_time:$({value:t(s.nextPaintTime,c),precision:2}),input_delay:$({value:s.inputDelay,precision:2}),processing:$({value:s.processingDuration,precision:2}),presentation_delay:$({value:s.presentationDelay,precision:2}),total_script_duration:$({value:s.totalScriptDuration,precision:2}),total_style_and_layout_duration:$({value:s.totalStyleAndLayoutDuration,precision:2}),total_paint_duration:$({value:s.totalPaintDuration,precision:2}),total_unattributed_duration:$({value:s.totalUnattributedDuration,precision:2}),loafs:Tt(s.longAnimationFrameEntries.map(e=>i(e,c)))},u=(r=s.__eventEntry)==null?void 0:r._rumDashMeta;return u&&Object.assign(l,bt(u)),l},Dt=100;function Ot(e,t){return e.reduce((e,n)=>
3(n.scripts.forEach(n=>{if(n.sourceURL){let r=n.sourceURL.startsWith(`/`)?t+n.sourceURL:n.sourceURL;(r.startsWith(t)||n.duration>=Dt)&&e.add(r)}}),e),new Set)}var kt=5,At=4,jt={deriveLoafsWithinWindow:(e,t)=>Mt(e.filter(e=>{let n=e.startTime+e.duration;return n>t.start&&n<=t.end+At}))},Mt=e=>e.sort((e,t)=>t.duration-e.duration).slice(0,kt).sort((e,t)=>e.startTime-t.startTime),Nt=5,Pt=(e,t,n)=>{if(t.has(e))return!0;let r=new URL(e);return t.has(r.origin+r.pathname)?!0:t.has(r.pathname)&&r.origin===n},Ft=(e,t,n,r)=>{let{resourcesToIncludeRegardlessOfDuration:i,remainingRelevantResources:a}=e.reduce((e,i)=>{var a;let o=i.responseEnd>t.end,s=[`fetch`,`xmlhttprequest`].includes(i.initiatorType),c=((a=i.responseStatus)==null?0:a)>=400,l=i.name.toLowerCase(),u=l.includes(`favicon`)||l.includes(`manifest.json`);if(o||s||u||c)return e;let d=l.match(/\.(css|woff2)/),f=Pt(i.name,n,r);return i.startTime+i.duration<=t.start||(d||f?e.resourcesToIncludeRegardlessOfDuration.push(i):e.remainingRelevantResources.push(i)),e},{resourcesToIncludeRegardlessOfDuration:[],remainingRelevantResources:[]}),o=a.sort((e,t)=>e.startTime-t.startTime).slice(0,Nt);return[...i,...o].sort((e,t)=>e.startTime-t.startTime)},It=e=>e.map(e=>({name:e.name,initiator_type:e.initiatorType,transfer_size:e.transferSize,encoded_body_size:e.encodedBodySize,decoded_body_size:e.decodedBodySize,start_time:$({value:e.startTime,precision:2}),duration:$({value:e.duration,precision:2}),request_start:$({value:e.requestStart,precision:2}),worker_start:$({value:e.workerStart,precision:2}),content_type:e.contentType})),Lt=t=>{var n,r,a;let{value:s,rating:c,attribution:l}=t,u=t.navigationType===`soft-navigation`?(n=t.navigationStartTime)==null?0:n:e(),d=t.__lcpCandidates||[{value:s,tagName:(r=l.lcpEntry)==null||(r=r.element)==null?void 0:r.localName,url:(a=l.lcpEntry)==null?void 0:a.url}],f={value:$({value:s,precision:2}),rating:c,resource_load_delay:$({value:l.resourceLoadDelay,precision:2}),resource_load_time:$({value:l.resourceLoadDuration,precision:2}),element_render_delay:$({value:l.elementRenderDelay,precision:2}),candidates:d.map(e=>({value:$({value:e.value,precision:2}),...e.tagName?{tag_name:e.tagName}:{},...e.url?{src:e.url}:{}})),loafs:[],resource_timings:[]};if(l.lcpEntry){let e=l.lcpEntry;f.src=e.url,e._rumDashMeta&&Object.assign(f,bt(e._rumDashMeta))}l.lcpResourceEntry&&(f.resource_initiator=l.lcpResourceEntry.initiatorType,f.resource_transfer_size=l.lcpResourceEntry.transferSize);let p={start:0,end:t.value},m=[];if(PerformanceObserver.supportedEntryTypes.includes(`long-animation-frame`)){let e=performance.getEntriesByName(`long-animation-frame`).map(e=>i(e,u));m=jt.deriveLoafsWithinWindow(e,p),f.loafs=Tt(m)}let h=performance.getEntriesByType(`resource`).map(e=>o(e,u)),g=Ot(m,location.origin);l.lcpResourceEntry&&g.add(l.lcpResourceEntry.name);for(let e of d)e.url&&g.add(e.url);let _=[...d.map(e=>e.resourceEntry),l.lcpResourceEntry];for(let e of _){if(!e)continue;g.add(e.name);let t=o(e,u);h.some(e=>e.name===t.name&&e.startTime===t.startTime)||h.push(t)}return f.resource_timings=It(Ft(h,p,g,location.origin)),f},Rt=e=>{let{attribution:n,rating:r,navigationType:i,value:a}=e,o={value:$({value:a,precision:2}),rating:r,type:i,dns:$({value:n.dnsDuration,precision:2}),waiting:$({value:n.waitingDuration,precision:2}),connection:$({value:n.connectionDuration,precision:2}),request:$({value:n.requestDuration,precision:2}),cache:$({value:n.cacheDuration,precision:2})};if(n.navigationEntry&&n.navigationEntry.entryType===`navigation`){let e=n.navigationEntry;o.proto=e.nextHopProtocol,o.encoded_size=e.encodedBodySize,o.decoded_size=e.decodedBodySize,o.dcl=$({value:t(e.domContentLoadedEventStart),precision:2}),o.redirect_count=e.redirectCount,o.response_end=$({value:t(e.responseEnd),precision:2})}return o},zt,Bt=$({value:window.devicePixelRatio,precision:2}),Vt=(zt=window.navigator.connection)==null?void 0:zt.effectiveType,Ht=(e,t)=>{let n={...e,...v,w_width:e.w_width||window.innerWidth,w_height:e.w_height||window.innerHeight,pixel_ratio:Bt,connection_type:Vt,hardware_concurrency:window.navigator.hardwareConcurrency};return t.reduce((e,t)=>
3{switch(t.name){case`TTFB`:e.ttfb=Rt(t);break;case`FCP`:e.fcp=St(t);break;case`LCP`:e.lcp=Lt(t);break;case`CLS`:e.cls=xt(t);break;case`INP`:e.inp=Et(t)}return e},n)},Ut=e=>{if(Wt(e))return!1;let{key:t,...n}=e;return ot(ee+`?key=${t}&initiated_at=${e.initiated}`,n)},Wt=e=>Date.now()-e.initiated>re,Gt=e=>``,Kt=!1,qt=()=>{if(Kt)return;Kt=!0;let e=new Map,n=t=>{let n=e.get(t);if(n)return n;let r=new Set;return e.set(t,r),r},r=new Map,i=e=>{if(e.navigationType!==`soft-navigation`)return pe();let t=r.get(e.navigationId);if(t)return t;let n=me({initiated:e.navigationStartTime?le(e.navigationStartTime):Date.now(),url:e.navigationURL,navigationType:`soft-navigation`});return r.set(e.navigationId,n),setTimeout(c,ie),n},a=e=>{n(i(e)).add(e)},o=({includeCurrent:t})=>{v.enabled&&Z(()=>{let r=x();t&&n(r),e.forEach((n,i)=>{if(t||i!==r){if(n.size>0||!i.posted){let e=Ut(Ht(i,Array.from(n)));if(i.posted=i.posted||e,!e)return}e.delete(i)}})})},s=()=>o({includeCurrent:!0}),c=()=>o({includeCurrent:!1});addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&s()}),at(a,{reportSoftNavs:!0}),Le(a,{reportSoftNavs:!0}),nt(e=>{var t;e.__lcpCandidates=e.__lcpCandidates||[],e.__lcpCandidates.push({value:e.value,url:e.attribution.url,tagName:(t=e.attribution.lcpEntry)==null||(t=t.element)==null?void 0:t.localName,resourceEntry:e.attribution.lcpResourceEntry});let{lcpEntry:n}=e.attribution;n&&n.element&&Q(n,n.element,i(e).url,e.value),a(e)},{reportAllChanges:!0,reportSoftNavs:!0,generateTarget:Gt}),He(e=>{let{largestShiftEntry:n,largestShiftSource:r,largestShiftTime:o}=e.attribution;n&&r&&r.node&&r.node.nodeType===1&&Q(n,r.node,i(e).url,t(o)),a(e)},{reportAllChanges:!0,reportSoftNavs:!0,generateTarget:Gt}),Qe(e=>{let{interactionTime:n,processedEventEntries:r}=e.attribution,a=r.find(e=>e.target&&e.target instanceof HTMLElement);a&&Q(a,a.target,i(e).url,t(n))},{reportAllChanges:!0,reportSoftNavs:!0,includeProcessedEventEntries:!0}),Qe(e=>{let t=e.attribution.processedEventEntries.find(e=>e._rumDashMeta);t&&(e.attribution.__eventEntry=t),a(e)},{reportAllChanges:!1,reportSoftNavs:!0,generateTarget:Gt,includeProcessedEventEntries:!0})};window.RumDash={init:e=>{Z(()=>{_e(e),v.enabled&&(Ce(),qt())})},disable:ve,updatePageType:ae,setPageType(e){console.warn(`RumDash.setPageType() is deprecated. Please use RumDash.updatePageType() instead.`),ae(e)}},window.__rdOnLoad&&window.__rdOnLoad()})();
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.