/*! For license information please see nr-spa-1.308.0.min.js.LICENSE.txt */ "use strict";(self["webpackChunk:NRBA-1.308.0.PROD"]=self["webpackChunk:NRBA-1.308.0.PROD"]||[]).push([[478],{1083:(e,t,i)=>{i.d(t,{w:()=>r});const r={FIRST_PAINT:"fp",FIRST_CONTENTFUL_PAINT:"fcp",FIRST_INTERACTION:"fi",LARGEST_CONTENTFUL_PAINT:"lcp",LOAD_TIME:"load",CUMULATIVE_LAYOUT_SHIFT:"cls",INTERACTION_TO_NEXT_PAINT:"inp",TIME_TO_FIRST_BYTE:"ttfb"}},1528:(e,t,i)=>{function r(e,t,i){let r="unknown";if(e&&e instanceof XMLHttpRequest){const t=i.context(e).params;if(!(t&&t.status&&t.method&&t.host&&t.pathname))return"xhrOriginMissing";r=t.status+" "+t.method+": "+t.host+t.pathname}else if(e&&"string"==typeof e.tagName&&(r=e.tagName.toLowerCase(),e.id&&(r+="#"+e.id),e.className))for(let t=0;tr})},2123:(e,t,i)=>{function r(e){return!!e&&e.self!==e.top}i.d(t,{v:()=>r})},2176:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>N});const r=/([a-z0-9]+)$/i;function s(e){if(!e)return;const t=e.match(r);return t?t[1]:void 0}var n=/^\n+|\n+$/g;function a(e){return function(e){var t;if(e.length>100){var i=e.length-100;t=e.slice(0,50).join("\n"),t+="\n< ...truncated "+i+" lines... >\n",t+=e.slice(-50).join("\n")}else t=e.join("\n");return t}(e).replace(n,"")}var o=i(6154),c=i(9119);function h(e){if("string"!=typeof e)return"";const t=(0,c.L)(e);return t===(0,c.L)(o.m)?"":t}var u=!1,l=/function (.+?)\s*\(/,d=/^\s*at (?:((?:\[object object\])?(?:[^(]*\([^)]*\))*[^()]*(?: \[as \S+\])?) )?\(?((?:file|http|https|chrome-extension):.*?)?:(\d+)(?::(\d+))?\)?\s*$/i,p=/^\s*(?:(\S*|global code)(?:\(.*?\))?@)?((?:file|http|https|chrome|safari-extension).*?):(\d+)(?::(\d+))?\s*$/i,g=/^\s*at .+ \(eval at \S+ \((?:(?:file|http|https):[^)]+)?\)(?:, [^:]*:\d+:\d+)?\)$/i,m=/^\s*at Function code \(Function code:\d+:\d+\)\s*/i;function f(e){var t=null;try{if(t=function(e){if(!e.stack)return null;var t=e.stack.split("\n").reduce(v,{frames:[],stackLines:[],wrapperSeen:!1});return t.frames.length?{mode:"stack",name:e.name||y(e),message:e.message,stackString:a(t.stackLines),frames:t.frames}:null}(e),t)return t}catch(e){u}try{if(t=function(e){if(!("line"in e))return null;var t=e.name||y(e);if(!e.sourceURL)return{mode:"sourceline",name:t,message:e.message,stackString:t+": "+e.message+"\n in evaluated code",frames:[{func:"evaluated code"}]};var i=h(e.sourceURL),r=t+": "+e.message+"\n at "+i;e.line&&(r+=":"+e.line,e.column&&(r+=":"+e.column));return{mode:"sourceline",name:t,message:e.message,stackString:r,frames:[{url:i,line:e.line,column:e.column}]}}(e),t)return t}catch(e){u}try{if(t=function(e){var t=e.name||y(e);return t?{mode:"nameonly",name:t,message:e.message,stackString:t+": "+e.message,frames:[]}:null}(e),t)return t}catch(e){u}return{mode:"failed",stackString:"",frames:[]}}function v(e,t){let i=function(e){var t=e.match(p);t||(t=e.match(d));if(t)return{url:t[2],func:"Anonymous function"!==t[1]&&"global code"!==t[1]&&t[1]||null,line:+t[3],column:t[4]?+t[4]:null};if(e.match(g)||e.match(m)||"anonymous"===e)return{func:"evaluated code"}}(t);if(!i)return e.stackLines.push(t),e;var r;if((r=i.func)&&r.indexOf("nrWrapper")>=0&&(e.wrapperSeen=!0),!e.wrapperSeen){let r=h(i.url);r!==i.url&&(t=t.replace(i.url,r),i.url=r),e.stackLines.push(t),e.frames.push(i)}return e}function y(e){var t=l.exec(String(e.constructor));return t&&t.length>1?t[1]:"unknown"}function b(e){var t=0;if(!e||!e.length)return t;for(var i=0;ithis.storeError(...e),this.featureName,this.ee),(0,T.i)("ierr",(...e)=>this.storeError(...e),this.featureName,this.ee),(0,T.i)("returnJserror",(e,t)=>this.#e(e,t),this.featureName,this.ee),this.waitForFlags(["err"]).then(([e])=>{e?this.drain():(this.blocked=!0,this.deregisterDrain())})}serializer(e){return(0,k.G)(e,this.obfuscator.obfuscateString.bind(this.obfuscator),"string")}queryStringsBuilder(e){const t={},i=(0,S.A)(this.agentRef.runtime.releaseIds);return"{}"!==i&&(t.ri=i),e?.err?.length&&(this.errorOnPage||(t.pve="1",this.errorOnPage=!0),this.agentRef.features?.[E.K7.sessionReplay]?.featAggregate?.replayIsActive()||e.err.forEach(e=>delete e.params.hasReplay)),t}buildCanonicalStackString(e){for(var t="",i=0;i65530?m.substr(0,65530):m,this.observedAt[v]=Math.floor(this.agentRef.runtime.timeKeeper.correctRelativeTimestamp(t))),g.releaseIds=(0,S.A)(this.agentRef.runtime.releaseIds),this.pageviewReported[v]||(g.pageview=1,this.pageviewReported[v]=!0),g.firstOccurrenceTimestamp=this.observedAt[v],g.timestamp=Math.floor(this.agentRef.runtime.timeKeeper.correctRelativeTimestamp(t));const y=["err",v,g,{time:t},r];if(a||(0,R.p)("trace-jserror",y,void 0,E.K7.sessionTrace,this.ee),!this.blocked){if(e.__newrelic?.[this.agentIdentifier]&&(g._interactionId=e.__newrelic[this.agentIdentifier].interactionId,g._interactionNodeId=e.__newrelic[this.agentIdentifier].interactionNodeId),e.__newrelic?.socketId&&(r.socketId=e.__newrelic.socketId),!a){Boolean(this.agentRef.features?.[E.K7.softNav])?(0,R.p)("jserror",[y],void 0,E.K7.softNav,this.ee):this.#e(y,!1)}a&&this.#e([...y,a],!1,g._softNavAttributes)}}#e(e,t={}){let[i,r,s,n,a,o]=e;const c={...(0,C.U)(o,this)};Object.entries(this.agentRef.info.jsAttributes).forEach(([e,t])=>u(e,t)),Object.entries(t).forEach(([e,t])=>u(e,t)),s.browserInteractionId&&(r+=s.browserInteractionId),a&&Object.entries(a).forEach(([e,t])=>u(e,t));const h=r+":"+b((0,S.A)(c));function u(e,t){c[e]=t&&"object"==typeof t?(0,S.A)(t):t}this.events.add([i,h,s,n,c])}}},2467:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>M});var r=i(6154),s=i(2733),n=i(3304),a=i(2555),o=i(6630),c=i(860),h=i(384);function u(e){const t=[],i=(0,h.Zm)();try{Object.keys(i.initializedAgents[e].features).forEach(e=>{switch(e){case c.K7.ajax:t.push("xhr");break;case c.K7.jserrors:t.push("err");break;case c.K7.genericEvents:t.push("ins");break;case c.K7.sessionTrace:t.push("stn");break;case c.K7.softNav:case c.K7.spa:t.push("spa")}})}catch(e){}return t}var l=i(5701),d=i(944),p=i(4537),g=i(5344),m=i(5181),f=i(1083),v=i(6773),y=i(7226);const b=new v.x(f.w.TIME_TO_FIRST_BYTE);if(r.RI&&(0,r.eN)()&&!r.OF&&window===window.parent)(0,y.Ck)(({value:e,attribution:t})=>{b.isValid||b.update({value:e,attrs:{navigationEntry:t.navigationEntry}})});else if(!b.isValid){const e={};for(let t in r.gm?.performance?.timing||{})e[t]=Math.max(r.gm?.performance?.timing[t]-r.WN,0);b.update({value:e.responseStart,attrs:{navigationEntry:e}})}var T=i(1863),S=i(1910);class R{#t;#i;#r;#s=!1;constructor(e){this.#t=e,this.processStoredDiff(),(0,S.i)(performance.now,Date.now)}get ready(){return this.#s}get correctedOriginTime(){return this.#i}get localTimeDiff(){return this.#r}processRumRequest(e,t,i,s){if(this.processStoredDiff(),this.#s)return;if(!s)throw new Error("nrServerTime not found");const n=t+(i-t)/2;if(this.#i=Math.floor(s-n),this.#r=r.WN-this.#i,isNaN(this.#i))throw new Error("Failed to correct browser time to server time");this.#t?.write({serverTimeDiff:this.#r}),this.#s=!0}convertRelativeTimestamp(e){return r.WN+e}convertAbsoluteTimestamp(e){return e-r.WN}correctAbsoluteTimestamp(e){return e-this.#r}correctRelativeTimestamp(e){return this.correctAbsoluteTimestamp(this.convertRelativeTimestamp(e))}processStoredDiff(){if(this.#s)return;const e=this.#t?.read()?.serverTimeDiff;"number"!=typeof e||isNaN(e)||(this.#r=e,this.#i=r.WN-this.#r,this.#s=!0)}}var w=i(3311),E=i(5237),A=i(9422);class M extends p.r{static featureName=o.T;constructor(e){if(super(e,o.T),this.sentRum=!1,this.timeToFirstByte=0,this.firstByteToWindowLoad=0,this.firstByteToDomContent=0,this.retries=0,!(0,a.f)(e.info))return this.ee.abort(),(0,d.R)(43);e.runtime.timeKeeper=new R(e.runtime.session),r.RI?(b.subscribe(({value:e,attrs:t})=>{const i=t.navigationEntry;this.timeToFirstByte=Math.max(e,this.timeToFirstByte),this.firstByteToWindowLoad=Math.max(Math.round(i.loadEventEnd-this.timeToFirstByte),this.firstByteToWindowLoad),this.firstByteToDomContent=Math.max(Math.round(i.domContentLoadedEventEnd-this.timeToFirstByte),this.firstByteToDomContent)}),setTimeout(this.sendRum.bind(this),0)):this.sendRum()}sendRum(e=this.agentRef.info.jsAttributes){const t=this.agentRef.info,i={};t.queueTime&&(i.qt=t.queueTime),t.applicationTime&&(i.ap=t.applicationTime),i.be=this.timeToFirstByte,i.fe=this.firstByteToWindowLoad,i.dc=this.firstByteToDomContent;const a={tt:t.ttGuid,us:t.user,ac:t.account,pr:t.product,af:u(this.agentIdentifier).join(","),...i,xx:t.extra,ua:t.userAttributes,at:t.atts};let o;if(this.agentRef.runtime.session&&(a.fsh=Number(this.agentRef.runtime.session.isNew)),"object"==typeof e&&Object.keys(e).length>0&&(o=(0,w.G)({ja:e},this.obfuscator.obfuscateString.bind(this.obfuscator),"string")),r.gm.performance)if((0,r.eN)()){const e=r.gm?.performance?.getEntriesByType("navigation")?.[0],t={timing:(0,s.eM)(r.WN,e,{}),navigation:(0,s.si)(e,{})};a.perf=(0,n.A)(t)}else if("undefined"!=typeof PerformanceTiming){const e={timing:(0,s.eM)(r.WN,r.gm.performance.timing,{},!0),navigation:(0,s.si)(r.gm.performance.navigation,{})};a.perf=(0,n.A)(e)}a.fp=m.J.current.value,a.fcp=g.j.current.value,this.queryStringsBuilder=()=>{this.rumStartTime=(0,T.t)();const e=this.agentRef.runtime.timeKeeper;return e?.ready&&(a.timestamp=Math.floor(e.correctRelativeTimestamp(this.rumStartTime))),a},this.events.add(o),this.agentRef.runtime.harvester.triggerHarvestFor(this,{sendEmptyBody:!0}).ranSend&&(this.sentRum=!0)}serializer(e){return e[0]}postHarvestCleanup({sent:e,status:t,responseText:i,xhr:r,retry:s}){const n=(0,T.t)();let a,o;try{({app:a,...o}=JSON.parse(i))}catch(e){(0,d.R)(53,e)}if(super.postHarvestCleanup({sent:e,retry:s}),this.isRetrying&&this.retries++<1)setTimeout(()=>this.agentRef.runtime.harvester.triggerHarvestFor(this,{sendEmptyBody:!0}),5e3);else{if(t>=400||0===t){(0,d.R)(18,t),this.blocked=!0;const e=new TextEncoder,i="BCS/Error/",r={sm:[{params:{name:i+t},stats:{c:1}},{params:{name:i+"Dropped/Bytes"},stats:{c:1,t:Object.values(newrelic.ee.backlog).reduce((t,i)=>{if(!i)return t;return t+e.encode(i).byteLength},0)}},{params:{name:i+"Duration/Ms"},stats:{c:1,t:n-this.rumStartTime}}]};return(0,E.t)(this.agentRef,{endpoint:c.$J[c.K7.metrics],payload:{body:r},submitMethod:(0,A.mj)(),featureName:c.K7.metrics}),void this.ee.abort()}try{const e=this.agentRef.runtime.timeKeeper.ready;if(this.agentRef.runtime.timeKeeper.processRumRequest(r,this.rumStartTime,n,a.nrServerTime),!this.agentRef.runtime.timeKeeper.ready)throw new Error("TimeKeeper not ready");const t=this.agentRef.runtime.timeKeeper.correctedOriginTime-a.nrServerTime;e&&t>0&&this.reportSupportabilityMetric("Generic/TimeKeeper/InvalidTimestamp/Seen",t)}catch(e){return this.ee.abort(),this.blocked=!0,void(0,d.R)(17,e)}Object.keys(this.agentRef.runtime.appMetadata).length||(this.agentRef.runtime.appMetadata=a),this.drain(),this.agentRef.runtime.harvester.startTimer(),(0,l.t)(o,this.agentRef)}}}},2733:(e,t,i)=>{i.d(t,{eM:()=>g,si:()=>m,ss:()=>p});var r="Start",s="End",n="unloadEvent",a="redirect",o="domainLookup",c="onnect",h="request",u="response",l="loadEvent",d="domContentLoadedEvent";const p=[];function g(e,t,i={},p=!1){if(t)return i.of=e,f(i.of,i,"n",!0),f(t[n+r],i,"u",p),f(t[a+r],i,"r",p),f(t[n+s],i,"ue",p),f(t[a+s],i,"re",p),f(t["fetch"+r],i,"f",p),f(t[o+r],i,"dn",p),f(t[o+s],i,"dne",p),f(t["c"+c+r],i,"c",p),f(t["secureC"+c+"ion"+r],i,"s",p),f(t["c"+c+s],i,"ce",p),f(t[h+r],i,"rq",p),f(t[u+r],i,"rp",p),f(t[u+s],i,"rpe",p),f(t.domLoading,i,"dl",p),f(t.domInteractive,i,"di",p),f(t[d+r],i,"ds",p),f(t[d+s],i,"de",p),f(t.domComplete,i,"dc",p),f(t[l+r],i,"l",p),f(t[l+s],i,"le",p),i}function m(e,t){try{f("number"==typeof(i=e.type)?i:{navigate:void 0,reload:1,back_forward:2,prerender:3}[i],t,"ty"),f(e.redirectCount,t,"rc")}catch(e){t.ty=0,t.rc=0}var i;return t}function f(e,t,i,r){if("number"==typeof e&&e>0){if(r){const i=t?.of>0?t.of:0;e=Math.max(e-i,0)}e=Math.round(e),t[i]=e,p.push(e)}else p.push(void 0)}},3311:(e,t,i)=>{function r(e,t,i="string",s=[]){return e&&"object"==typeof e?(Object.keys(e).forEach(n=>{"object"==typeof e[n]?r(e[n],t,i,s):typeof e[n]!==i||s.includes(n)||(e[n]=t(e[n]))}),e):e}i.d(t,{G:()=>r})},3592:(e,t,i)=>{i.d(t,{Y:()=>a});var r=i(6154),s=i(5289),n=i(1083);const a=new(i(6773).x)(n.w.LOAD_TIME);if(r.RI){const e=r.gm.performance,t=()=>{!a.isValid&&e&&a.update({value:(0,r.eN)()?e.getEntriesByType("navigation")?.[0]?.loadEventEnd:e.timing?.loadEventEnd-r.WN})};(0,s.GG)(t,!0)}},3762:(e,t,i)=>{i.d(t,{WL:()=>h,uR:()=>u});var r=i(3304),s={"%2C":",","%3A":":","%2F":"/","%40":"@","%24":"$","%3B":";"},n=Object.keys(s),a=new RegExp(n.join("|"),"g");function o(e){return s[e]}function c(e){return null==e?"null":encodeURIComponent(e).replace(a,o)}function h(e,t){var i=0,s="";return Object.entries(e||{}).forEach(([e,n])=>{var a,o,h=[];if("string"==typeof n||!Array.isArray(n)&&null!=n&&n.toString().length)a="&"+e+"="+c(n),i+=a.length,s+=a;else if(Array.isArray(n)&&n.length){for(i+=9,o=0;o=t));o++)h.push(a);s+="&"+e+"=%5B"+h.join(",")+"%5D"}}),s}function u(e,t,i={}){return Object.keys(i).includes(e)?"":t&&"string"==typeof t?"&"+e+"="+c(t):""}},3845:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>v});var r=i(3606),s=i(3304),n=i(9908),a=i(7295),o=i(9300),c=i(860),h=i(4537),u=i(5436);function l({body:e,query:t}={}){if(e||t)try{const i=function(e){if(!e)return;Array.isArray(e)||(e=[e]);const t=[],i=[];for(let r of e){const e=d(r);e&&(t.push(e.operationName),i.push(e.operationType))}if(!i.length)return;return{operationName:t.join(","),operationType:i.join(","),operationFramework:"GraphQL"}}(p(e));if(i)return i;const r=d(function(e){if(!e||"string"!=typeof e)return;const t=new URLSearchParams(e);return p(Object.fromEntries(t))}(t));if(r)return r}catch(e){}}function d(e){if("object"!=typeof e||!e.query||"string"!=typeof e.query)return;const t=e.query.trim().match(/^(query|mutation|subscription)\s?(\w*)/),i=t?.[1];if(!i)return;return{operationName:e.operationName||t?.[2]||"Anonymous",operationType:i,operationFramework:"GraphQL"}}function p(e){let t;if(!e||"string"!=typeof e&&"object"!=typeof e)return;if(t="string"==typeof e?JSON.parse(e):e,!(0,u.a)(t)&&!Array.isArray(t))return;let i=!1;return i=Array.isArray(t)?t.some(e=>g(e)):g(t),i?t:void 0}function g(e){return!("object"!=typeof e||!e.query||"string"!=typeof e.query)}var m=i(5519),f=i(384);class v extends h.r{static featureName=o.T;constructor(e){super(e,o.T),(0,a.Xv)(e.runtime.denyList);const t=this;e.init.ajax.block_internal?super.customAttributesAreSeparate=!0:super.canHarvestEarly=!1,(0,r.i)("returnAjax",e=>this.events.add(e),this.featureName,this.ee),(0,r.i)("xhr",function(){t.storeXhr(...arguments,this)},this.featureName,this.ee),this.ee.on("long-task",(e,t)=>{if(t instanceof(0,f.dV)().o.XHR){this.ee.context(t).latestLongtaskEnd=e.end}}),this.waitForFlags([]).then(()=>this.drain())}storeXhr(e,t,i,r,o,h){let u;t.time=i,u=e.cat?(0,s.A)([e.status,e.cat]):(0,s.A)([e.status,e.host,e.pathname]);const d=(0,a.gX)(e),p=this.agentRef.init.feature_flags?.includes("ajax_metrics_deny_list");if(!Boolean(this.agentRef.features?.[c.K7.jserrors])||!d&&p||this.agentRef.sharedAggregator?.add(["xhr",u,e,t]),!d)return void(e.hostname===this.agentRef.info.errorBeacon||this.agentRef.init.proxy?.beacon&&e.hostname===this.agentRef.init.proxy.beacon?(this.reportSupportabilityMetric("Ajax/Events/Excluded/Agent"),p&&this.reportSupportabilityMetric("Ajax/Metrics/Excluded/Agent")):(this.reportSupportabilityMetric("Ajax/Events/Excluded/App"),p&&this.reportSupportabilityMetric("Ajax/Metrics/Excluded/App")));(0,n.p)("bstXhrAgg",["xhr",u,e,t],void 0,c.K7.sessionTrace,this.ee);const g={method:e.method,status:e.status,domain:e.host,path:e.pathname,requestSize:t.txSize,responseSize:t.rxSize,type:o,startTime:i,endTime:r,callbackDuration:t.cbTime};h.dt&&(g.spanId=h.dt.spanId,g.traceId=h.dt.traceId,g.spanTimestamp=Math.floor(this.agentRef.runtime.timeKeeper.correctAbsoluteTimestamp(h.dt.timestamp))),g.gql=e.gql=l({body:h.body,query:h.parsedOrigin?.search}),g.gql&&this.reportSupportabilityMetric("Ajax/Events/GraphQL/Bytes-Added",(0,s.A)(g.gql).length);Boolean(this.agentRef.features?.[c.K7.softNav])?(0,n.p)("ajax",[g,h],void 0,c.K7.softNav,this.ee):this.events.add(g)}serializer(e){if(!e.length)return;const t=(0,m.uJ)(this.agentRef.runtime.obfuscator);let i="bel.7;",r=0;for(let s=0;s0&&(c+=";"+u.join(";")),s+1{i.d(t,{p:()=>s});var r=i(6154);function s(){return Boolean("file:"===r.gm?.location?.protocol)}},4393:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>R});var r=i(9908),s=i(3606),n=i(3592),a=i(860),o=i(4537),c=i(3962),h=i(5519);let u=0;class l{belType;children=[];start;end;callbackEnd=0;callbackDuration=0;nodeId=++u;addChild(e){this.children.push(e)}serialize(){}}class d extends l{constructor(e,t){super(),this.belType=c.Qu.AJAX,this.method=e.method,this.status=e.status,this.domain=e.domain,this.path=e.path,this.txSize=e.requestSize,this.rxSize=e.responseSize,this.requestedWith="fetch"===e.type?1:"",this.spanId=e.spanId,this.traceId=e.traceId,this.spanTimestamp=e.spanTimestamp,this.gql=e.gql,this.start=e.startTime,this.end=e.endTime,t?.latestLongtaskEnd?(this.callbackEnd=Math.max(t.latestLongtaskEnd,this.end),this.callbackDuration=this.callbackEnd-this.end):this.callbackEnd=this.end}serialize(e,t){const i=(0,h.uJ)(t.runtime.obfuscator),r=[],s=[(0,h.sH)(this.belType),0,(0,h.sH)(this.start-e),(0,h.sH)(this.end-this.start),(0,h.sH)(this.callbackEnd-this.end),(0,h.sH)(this.callbackDuration),i(this.method),(0,h.sH)(this.status),i(this.domain),i(this.path),(0,h.sH)(this.txSize),(0,h.sH)(this.rxSize),this.requestedWith,i(this.nodeId),(0,h.me)(this.spanId,i,!0)+(0,h.me)(this.traceId,i,!0)+(0,h.me)(this.spanTimestamp,h.sH)];let n=[];return"object"==typeof this.gql&&(n=(0,h.AQ)(this.gql,i)),this.children.forEach(e=>n.push(e.serialize())),s[1]=(0,h.sH)(n.length),r.push(s),n.length&&r.push(n.join(";")),r.join(";")}}var p=i(2733),g=i(6154),m=i(9566),f=i(1863),v=i(9119);class y extends l{id=(0,m.bz)();initialPageURL=g.m;customName;customAttributes={};customDataByApi={};queueTime;appTime;newRoute;status=c.ih.IP;domTimestamp=0;historyTimestamp=0;createdByApi=!1;keepOpenUntilEndApi=!1;onDone=[];customEnd=0;cancellationTimer;watchLongtaskTimer;constructor(e,t,i,r){super(),this.belType=c.Qu.INTERACTION,this.trigger=e,this.start=t,this.oldRoute=i,this.eventSubscription=new Map([["finished",[]],["cancelled",[]]]),this.forceSave=this.forceIgnore=!1,this.trigger===c.AM&&(this.createdByApi=!0),this.newURL=this.oldURL=r||g.gm?.location.href}updateHistory(e,t){this.domTimestamp>0||t&&t!==this.oldURL&&(this.newURL=t,this.historyTimestamp=e||(0,f.t)())}updateDom(e){!this.historyTimestamp||e0&&this.domTimestamp>this.historyTimestamp&&(this.status===c.ih.PF||(this.status=c.ih.PF,clearTimeout(this.cancellationTimer),this.watchLongtaskTimer??=setTimeout(()=>this.done(),c.wD)),!0)}on(e,t){if(!this.eventSubscription.has(e))throw new Error("Cannot subscribe to non pre-defined events.");if("function"!=typeof t)throw new Error("Must supply function as callback.");this.eventSubscription.get(e).push(t)}done(e=this.customEnd,t=!1){return!(this.keepOpenUntilEndApi&&!t)&&(this.status===c.ih.FIN||this.status===c.ih.CAN||(clearTimeout(this.cancellationTimer),clearTimeout(this.watchLongtaskTimer),this.onDone.forEach(e=>e(this.customDataByApi)),this.forceIgnore?this.#n():this.status===c.ih.PF?this.#a(e):this.forceSave?this.#a(e||performance.now()):this.#n()),!0)}#a(e){this.end=Math.max(this.domTimestamp,this.historyTimestamp,e),this.status=c.ih.FIN;this.eventSubscription.get("finished").forEach(e=>e())}#n(){this.status=c.ih.CAN;this.eventSubscription.get("cancelled").forEach(e=>e())}isActiveDuring(e){return this.status===c.ih.IP||this.status===c.ih.PF?this.start<=e:this.status===c.ih.FIN&&this.start<=e&&eu.push(r.serialize(i?this.start:e,t))),a[1]=(0,h.sH)(u.length),s.push(a),u.length&&s.push(u.join(";")),this.navTiming?s.push(this.navTiming):s.push(""),s.join(";")}}var b=i(5181),T=i(5344);class S extends y{constructor(e){super(c.pP,0,null),this.queueTime=e.info.queueTime,this.appTime=e.info.applicationTime,this.oldURL=document.referrer||void 0}get firstPaint(){return b.J.current.value}get firstContentfulPaint(){return T.j.current.value}get navTiming(){if(!p.ss.length)return;let e=",",t="b",i=0;return p.ss.slice(1,21).forEach(r=>{void 0!==r?(t+=e+(0,h.sH)(r-i),e=",",i=r):(t+=e+"!",e="")}),t}}class R extends o.r{static featureName=c.TZ;constructor(e,{domObserver:t}){super(e,c.TZ),super.customAttributesAreSeparate=!0,this.interactionsToHarvest=this.events,this.domObserver=t,this.initialPageLoadInteraction=new S(e),this.initialPageLoadInteraction.onDone.push(()=>{e.runtime.session?.isNew&&(this.initialPageLoadInteraction.customAttributes.isFirstOfSession=!0),this.initialPageLoadInteraction.forceSave=!0;const t=this.initialPageLoadInteraction;this.events.add(t),this.initialPageLoadInteraction=null}),n.Y.subscribe(({value:e})=>{this.initialPageLoadInteraction.done(e),this.reportSupportabilityMetric("SoftNav/Interaction/InitialPageLoad/Duration/Ms",Math.round(e))}),this.latestRouteSetByApi=null,this.interactionInProgress=null,this.latestHistoryUrl=window.location.href,this.harvestOpts.beforeUnload=()=>this.interactionInProgress?.done(),this.waitForFlags(["spa"]).then(([e])=>{e?this.drain():(this.blocked=!0,this.deregisterDrain())}),(0,s.i)("newUIEvent",e=>this.startUIInteraction(e.type,Math.floor(e.timeStamp),e.target),this.featureName,this.ee),(0,s.i)("newURL",(e,t)=>{this.latestHistoryUrl=t,this.interactionInProgress?.updateHistory(e,t)},this.featureName,this.ee),(0,s.i)("newDom",e=>{this.interactionInProgress?.updateDom(e),this.interactionInProgress?.checkHistoryAndDomChange()},this.featureName,this.ee),this.ee.on("long-task",e=>{this.interactionInProgress?.watchLongtaskTimer&&(clearTimeout(this.interactionInProgress.watchLongtaskTimer),this.interactionInProgress.customEnd=e.end,this.interactionInProgress.watchLongtaskTimer=setTimeout(()=>this.interactionInProgress.done(),c.wD),this.reportSupportabilityMetric("SoftNav/Interaction/Extended"))}),this.#o(),(0,s.i)("ajax",this.#c.bind(this),this.featureName,this.ee),(0,s.i)("jserror",this.#h.bind(this),this.featureName,this.ee)}serializer(e){let t;const i=[];for(const r of e)i.push(r.serialize(t,this.agentRef)),void 0===t&&(t=Math.floor(r.start));return"bel.7;".concat(i.join(";"))}startUIInteraction(e,t,i){if(this.interactionInProgress?.createdByApi)return;if(e===c.OV&&this.interactionInProgress?.trigger!==c.OV&&t-this.interactionInProgress?.start<=c.t1)return;if(!1===this.interactionInProgress?.done())return;const r=e===c.OV?this.latestHistoryUrl:void 0;if(this.interactionInProgress=new y(e,t,this.latestRouteSetByApi,r),e===c.tC[0]){const e=function(e){const t=e.tagName?.toLowerCase();if(["a","button","input"].includes(t))return e.title||e.value||e.innerText}(i);e&&(this.interactionInProgress.customAttributes.actionText=e)}this.interactionInProgress.cancellationTimer=setTimeout(()=>{this.interactionInProgress.done(),this.reportSupportabilityMetric("SoftNav/Interaction/TimeOut")},3e4),this.setClosureHandlers()}setClosureHandlers(){this.interactionInProgress.on("finished",()=>{const e=this.interactionInProgress;this.events.add(this.interactionInProgress),this.interactionInProgress=null,this.domObserver.disconnect(),this.reportSupportabilityMetric("SoftNav/Interaction/".concat(e.newURL!==e.oldURL?"RouteChange":"Custom","/Duration/Ms"),Math.round(e.end-e.start))}),this.interactionInProgress.on("cancelled",()=>{this.interactionInProgress=null,this.domObserver.disconnect()})}getInteractionFor(e){if(this.interactionInProgress?.isActiveDuring(e))return this.interactionInProgress;let t;const i=this.interactionsToHarvest.get();if(i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.isActiveDuring(e)){if(s.trigger!==c.pP)return s;t=s}}return t||(this.initialPageLoadInteraction?.isActiveDuring(e)?this.initialPageLoadInteraction:void 0)}}#c(e,t){const i=this.getInteractionFor(e.startTime);function s(e,t,i){const s=i.end;if(e.startTime>s)return void(0,r.p)("returnAjax",[e],void 0,a.K7.ajax,this.ee);const n=new d(e,t);i.addChild(n)}i?i.status===c.ih.FIN?s.call(this,e,t,i):(i.on("finished",()=>s.call(this,e,t,i)),i.on("cancelled",()=>(0,r.p)("returnAjax",[e],void 0,a.K7.ajax,this.ee))):(0,r.p)("returnAjax",[e],void 0,a.K7.ajax,this.ee)}#h(e){const t=e[3].time,i=this.getInteractionFor(t);if(!i)return(0,r.p)("returnJserror",[e],void 0,a.K7.jserrors,this.ee);function s(e,i){const s=i.end;if(t>s)return(0,r.p)("returnJserror",[e],void 0,a.K7.jserrors,this.ee);e[2].browserInteractionId=i.id,(0,r.p)("returnJserror",[e,i.customAttributes],void 0,a.K7.jserrors,this.ee)}i.status===c.ih.FIN?s.call(this,e,i):(i.on("finished",()=>s.call(this,e,i)),i.on("cancelled",()=>(0,r.p)("returnJserror",[e],void 0,a.K7.jserrors,this.ee)))}#o(){const e="api-ixn-",t=this;(0,s.i)(e+"get",function(e,{waitForEnd:i}={}){this.associatedInteraction=t.getInteractionFor(e),this.associatedInteraction?.trigger===c.pP&&(this.associatedInteraction=null),this.associatedInteraction||(this.associatedInteraction=t.interactionInProgress=new y(c.AM,Math.floor(e),t.latestRouteSetByApi),t.domObserver.observe(document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),t.setClosureHandlers()),!0===i&&(this.associatedInteraction.keepOpenUntilEndApi=!0,clearTimeout(this.associatedInteraction.cancellationTimer))},t.featureName,t.ee),(0,s.i)(e+"end",function(e){this.associatedInteraction.done(e,!0)},t.featureName,t.ee),(0,s.i)(e+"save",function(){this.associatedInteraction.forceSave=!0},t.featureName,t.ee),(0,s.i)(e+"ignore",function(){this.associatedInteraction.forceIgnore=!0},t.featureName,t.ee),(0,s.i)(e+"getContext",function(e,t){"function"==typeof t&&setTimeout(()=>t(this.associatedInteraction.customDataByApi),0)},t.featureName,t.ee),(0,s.i)(e+"onEnd",function(e,t){"function"==typeof t&&this.associatedInteraction.onDone.push(t)},t.featureName,t.ee),(0,s.i)(e+"actionText",function(e,t){t&&(this.associatedInteraction.customAttributes.actionText=t)},t.featureName,t.ee),(0,s.i)(e+"setName",function(e,t,i){t&&(this.associatedInteraction.customName=t),i&&(this.associatedInteraction.trigger=i)},t.featureName,t.ee),(0,s.i)(e+"setAttribute",function(e,t,i){this.associatedInteraction.customAttributes[t]=i},t.featureName,t.ee),(0,s.i)(e+"routeName",function(e,i){t.latestRouteSetByApi=i,t.interactionInProgress&&(t.interactionInProgress.newRoute=i)},t.featureName,t.ee)}}},4537:(e,t,i)=>{i.d(t,{r:()=>R});var r=i(4234),s=i(2555),n=i(5205),a=i(384),o=i(1687),c=i(5701),h=i(4284),u=i(944);class l{constructor(e){this.agentRef=e,this.warnedRegexMissing=!1,this.warnedInvalidRegex=!1,this.warnedInvalidReplacement=!1}get obfuscateConfigRules(){return this.agentRef.init.obfuscate||[]}obfuscateString(e){if("string"!=typeof e||0===e.trim().length)return e;const t=this.obfuscateConfigRules.map(e=>this.validateObfuscationRule(e));return(0,h.p)()&&t.push({regex:/^file:\/\/(.*)/,replacement:atob("ZmlsZTovL09CRlVTQ0FURUQ=")}),t.filter(e=>e.isValid).reduce((e,t)=>{const{rule:i}=t;return e.replace(i.regex,i.replacement||"*")},e)}validateObfuscationRule(e){const t=Boolean(void 0===e.regex),i=Boolean(void 0!==e.regex&&"string"!=typeof e.regex&&!(e.regex instanceof RegExp)),r=Boolean(e.replacement&&"string"!=typeof e.replacement);return t&&!this.warnedRegexMissing?((0,u.R)(12,e),this.warnedRegexMissing=!0):i&&!this.warnedInvalidRegex&&((0,u.R)(13,e),this.warnedInvalidRegex=!0),r&&!this.warnedInvalidReplacement&&((0,u.R)(14,e),this.warnedInvalidReplacement=!0),{rule:e,isValid:!t&&!i&&!r,errors:{regexMissingDetected:t,invalidRegexDetected:i,invalidReplacementDetected:r}}}}var d=i(860),p=i(5237),g=i(8771),m=i(9908),f=i(3969);class v{constructor(){this.aggregatedData={}}store(e,t,i,r,s){var n=this.#u(e,t,i,s);return n.metrics=function(e,t){t||(t={count:0});return t.count+=1,Object.entries(e||{}).forEach(([e,i])=>{t[e]=y(i,t[e])}),t}(r,n.metrics),n}merge(e,t,i,r,s,n=!1){var a=this.#u(e,t,r,s);if(n&&(a.params=r),a.metrics){var o=a.metrics;o.count+=i.count,Object.keys(i||{}).forEach(e=>{if("count"!==e){var t=o[e],r=i[e];r&&!r.c?o[e]=y(r.t,t):o[e]=function(e,t){if(!t)return e;t.c||(t=b(t.t));return t.min=Math.min(e.min,t.min),t.max=Math.max(e.max,t.max),t.t+=e.t,t.sos+=e.sos,t.c+=e.c,t}(r,o[e])}})}else a.metrics=i}storeMetric(e,t,i,r){var s=this.#u(e,t,i);return s.stats=y(r,s.stats),s}take(e,t=!0){for(var i={},r="",s=!1,n=0;nt.max&&(t.max=e),e!this.#l.aggregatedData[e]):0===Object.keys(this.#l.aggregatedData).length}add([e,t,i,r,s]){return this.#l.store(e,t,i,r,s),!0}addMetric(e,t,i,r){return this.#l.storeMetric(e,t,i,r),!0}save({aggregatorTypes:e}){const t=e.toString(),i={};e.forEach(e=>i[e]=this.#l.aggregatedData[e]),this.#d[t]=i}get(e){const t=Array.isArray(e)?e:e.aggregatorTypes;return this.#l.take(t,!1)}clear({aggregatorTypes:e}={}){e?e.forEach(e=>delete this.#l.aggregatedData[e]):this.#l.aggregatedData={}}reloadSave({aggregatorTypes:e}){const t=e.toString(),i=this.#d[t];e.forEach(e=>{Object.keys(i[e]||{}).forEach(t=>{const r=i[e][t];this.#l.merge(e,t,r.metrics,r.params,r.custom,!0)})})}clearSave({aggregatorTypes:e}){const t=e.toString();delete this.#d[t]}}var S=i(7699);class R extends r.W{constructor(e,t){super(e.agentIdentifier,t),this.agentRef=e,this.checkConfiguration(e),this.doOnceForAllAggregate(e),this.customAttributesAreSeparate=!1,this.canHarvestEarly=!0,this.isRetrying=!1,this.harvestOpts={},this.#p(),this.waitForDrain()}#p(){if(!this.events)switch(this.featureName){case d.K7.sessionReplay:break;case d.K7.jserrors:case d.K7.metrics:this.events=this.agentRef.sharedAggregator??=new T;break;default:this.events=new g.Z(S.It,this)}}get supportsRegisteredEntities(){return this.featureName in S.KC&&(S.KC[this.featureName]||this.agentRef.init.feature_flags.includes("register."+this.featureName))}get harvestEndpointVersion(){return this.supportsRegisteredEntities&&this.agentRef.runtime.registeredEntities.length?2:1}waitForDrain(){this.ee.on("drain-"+this.featureName,()=>{this.drained||setTimeout(()=>this.agentRef.runtime.harvester.triggerHarvestFor(this),1),this.drained=!0})}decideEarlyHarvest(){if(!this.canHarvestEarly||this.blocked||this.isRetrying)return;const e=this.events.byteSize()+(this.customAttributesAreSeparate?this.agentRef.runtime.jsAttributesMetadata.bytes:0);e>S.No&&(this.agentRef.runtime.harvester.triggerHarvestFor(this),this.reportSupportabilityMetric("".concat(this.featureName,"/Harvest/Early/Seen"),e))}waitForFlags(e=[]){return new Promise((t,i)=>{function r(t){return e.map(e=>t[e]?t[e]:0)}c.B[this.agentIdentifier]?t(r(c.B[this.agentIdentifier])):this.ee.on("rumresp",(e={})=>{t(r(e))})}).catch(e=>{this.ee.emit("internal-error",[e]),this.blocked=!0,this.deregisterDrain()})}drain(){(0,o.Ze)(this.agentIdentifier,this.featureName)}preHarvestChecks(e){return!this.blocked&&!this.ee.aborted}makeHarvestPayload(e=!1,t={}){if(!this.events||this.events.isEmpty(this.harvestOpts))return;if(this.preHarvestChecks&&!this.preHarvestChecks(t))return;e&&this.events.save(this.harvestOpts);const i=this.events.get(this.harvestOpts);if(!i)return;this.events.clear(this.harvestOpts);const r={body:this.serializer?this.serializer(i):i};return this.queryStringsBuilder&&(r.qs=this.queryStringsBuilder(i)),r}postHarvestCleanup(e={}){this.isRetrying=e.sent&&e.retry,this.isRetrying&&this.events.reloadSave(this.harvestOpts),this.events.clearSave(this.harvestOpts)}checkConfiguration(e){if(!(0,s.f)(e.info)){const t=(0,a.pV)();let i={...t.info?.jsAttributes};try{i={...i,...e.info?.jsAttributes}}catch(e){}(0,n.j)(e,{...t,info:{...t.info,jsAttributes:i},runtime:e.runtime},e.runtime.loaderType)}}doOnceForAllAggregate(e){e.runtime.obfuscator||(e.runtime.obfuscator=new l(e)),this.obfuscator=e.runtime.obfuscator,e.runtime.harvester||(e.runtime.harvester=new p.P(e))}reportSupportabilityMetric(e,t){(0,m.p)(f.xV,[e,t],void 0,d.K7.metrics,this.ee)}}},5181:(e,t,i)=>{i.d(t,{J:()=>n});var r=i(6154),s=i(1083);const n=new(i(6773).x)(s.w.FIRST_PAINT);if(r.RI){const e=e=>{e.forEach(e=>{"first-paint"!==e.name||n.isValid||(t.disconnect(),n.update({value:e.startTime}))})};let t;try{PerformanceObserver.supportedEntryTypes.includes("paint")&&!r.mw&&(t=new PerformanceObserver(t=>{Promise.resolve().then(()=>{e(t.getEntries())})}),t.observe({type:"paint",buffered:!0}))}catch(e){}}},5237:(e,t,i)=>{i.d(t,{P:()=>R,t:()=>E});var r=i(3969),s=i(860),n=i(9324),a=i(6154),o=i(9908),c=i(3878),h=i(1863),u=i(2843);if(a.bv){a.gm.cleanupTasks=[];const e=a.gm.close;a.gm.close=()=>{for(let e of a.gm.cleanupTasks)e();e()}}var l=i(9119),d=i(3762),p=i(944),g=i(3304),m=i(9422),f=i(5701),v=i(3241);const y="Harvester/Retry/",b=y+"Attempted/",T=y+"Failed/",S=y+"Succeeded/";class R{#g=!1;initializedAggregates=[];constructor(e){var t,i;this.agentRef=e,t=()=>{this.initializedAggregates.forEach(e=>{"function"==typeof e.harvestOpts.beforeUnload&&e.harvestOpts.beforeUnload()}),this.initializedAggregates.forEach(e=>this.triggerHarvestFor(e,{isFinalHarvest:!0}))},i=!1,a.RI?(0,u.u)(t,!0,i):a.bv&&a.gm.cleanupTasks.push(t)}startTimer(e=this.agentRef.init.harvest.interval){if(this.#g)return;this.#g=!0;const t=()=>{this.initializedAggregates.forEach(e=>this.triggerHarvestFor(e)),setTimeout(t,1e3*e)};setTimeout(t,1e3*e)}triggerHarvestFor(e,t={}){const i={ranSend:!1,payload:void 0,endpointVersion:e.harvestEndpointVersion||1};if(e.blocked)return i;if(this.agentRef.init?.browser_consent_mode?.enabled&&!this.agentRef.runtime.consented)return i;const n=(0,m.mj)(t);if(!n)return i;const a=!t.isFinalHarvest&&n===m.nF;return i.payload=e.makeHarvestPayload(a,t),i.payload?(E(this.agentRef,{endpoint:s.$J[e.featureName],payload:i.payload,localOpts:t,submitMethod:n,cbFinished:function(i){if(e.harvestOpts.prevAttemptCode){const t=t=>(0,o.p)(r.xV,[t],void 0,s.K7.metrics,e.ee);t(b+e.featureName),t((i.retry?T:S)+e.harvestOpts.prevAttemptCode),delete e.harvestOpts.prevAttemptCode}i.retry&&(e.harvestOpts.prevAttemptCode=i.status);t.forceNoRetry&&(i.retry=!1);e.postHarvestCleanup(i)},raw:e.harvestOpts.raw,featureName:e.featureName,endpointVersion:i.endpointVersion}),i.ranSend=!0,i):i}}const w={};function E(e,{endpoint:t,payload:i,localOpts:r={},submitMethod:u,cbFinished:y,raw:b,featureName:T,endpointVersion:S=1}){if(!e.info.errorBeacon)return!1;let{body:R,qs:E}=function(e={}){const t=e=>"undefined"!=typeof Uint8Array&&e instanceof Uint8Array||Array.isArray(e)||"string"==typeof e?e:Object.entries(e||{}).reduce((e,[t,i])=>(("number"==typeof i||"string"==typeof i&&i.length>0||"object"==typeof i&&Object.keys(i||{}).length>0)&&(e[t]=i),e),{});return{body:t(e.body),qs:t(e.qs)}}(i);if(0===Object.keys(R).length&&!r.sendEmptyBody)return y&&y({sent:!1}),!1;const A=!1===e.init.ssl?"http":"https",M=e.init.proxy.beacon||e.info.errorBeacon,k=b?"".concat(A,"://").concat(M,"/").concat(t):"".concat(A,"://").concat(M).concat(t!==s.v4?"/"+t:"","/").concat(S,"/").concat(e.info.licenseKey),I=b?"":function(e,t,i){const r=e.runtime.obfuscator.obfuscateString((0,l.L)(""+a.gm.location)),o=e.runtime.session,c=!!o?.state.sessionReplaySentFirstChunk&&1===o?.state.sessionReplayMode&&i!==s.XX,u=!!o?.state.traceHarvestStarted&&1===o?.state.sessionTraceMode&&![s.Yy,s.df].includes(i),p=["a="+e.info.applicationID,(0,d.uR)("sa",e.info.sa?""+e.info.sa:""),(0,d.uR)("v",n.xv),g(),(0,d.uR)("ct",e.runtime.customTransaction),"&rst="+(0,h.t)(),"&ck=0","&s="+(o?.state.value||"0"),(0,d.uR)("ref",r),(0,d.uR)("ptid",e.runtime.ptid?""+e.runtime.ptid:"")];c&&p.push((0,d.uR)("hr","1",t));u&&p.push((0,d.uR)("ht","1",t));return p.join("");function g(){return e.info.transactionName?(0,d.uR)("to",e.info.transactionName):(0,d.uR)("t",e.info.tNamePlain||"Unnamed Transaction")}}(e,E,t);let O=(0,d.WL)(E,e.runtime.maxBytes);""===I&&O.startsWith("&")&&(O=O.substring(1));const C="".concat(k,"?").concat(I).concat(O);let N=!!E?.attributes?.includes("gzip")||t===s.qY?R:(0,g.A)(R);N&&0!==N.length&&"{}"!==N&&"[]"!==N||(N=""),t!==s.df&&N.length>75e4&&1===(w[t]=(w[t]||0)+1)&&(0,p.R)(28,t);const F=[{key:"content-type",value:"text/plain"}];let x=u({url:C,body:N,sync:r.isFinalHarvest&&a.bv,headers:F});if(!r.isFinalHarvest&&y){function D(){try{if(T===s.K7.jserrors&&!R?.err)return;const t=I.includes("hr=1"),i=I.includes("ht=1"),r=E?.attributes?.includes("hasError=true");(0,o.p)("harvest-metadata",[{[T]:{...t&&{hasReplay:t},...i&&{hasTrace:i},...r&&{hasError:r}}}],void 0,s.K7.metrics,e.ee)}catch(e){}}u===m.nF?x.addEventListener("loadend",function(){const e={sent:0!==this.status,status:this.status,retry:L(this.status),fullUrl:C,xhr:this,responseText:this.responseText};y(e),L(this.status)||D()},(0,c.jT)(!1)):u===m.Jf&&x.then(async function(e){const t=e.status,i={sent:!0,status:t,retry:L(t),fullUrl:C,fetchResponse:e,responseText:await e.text()};y(i),L(t)||D()})}return(0,v.W)({agentIdentifier:e.agentIdentifier,drained:!!f.B?.[e.agentIdentifier],type:"data",name:"harvest",feature:T,data:{endpoint:t,headers:F,payload:i,submitMethod:u===m.nF?"xhr":u===m.Jf?"fetch":"beacon",raw:b,synchronousXhr:!(!r.isFinalHarvest||!a.bv)}}),!0;function L(e){switch(e){case 408:case 429:case 500:return!0}return e>=502&&e<=504||e>=512&&e<=530}}},5288:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>y});var r=i(3606),s=i(944),n=i(3304),a=i(4537),o=i(993),c=i(6154),h=i(9119);class u{timestamp;message;attributes;level;constructor(e,t,i={},r=o.p_.INFO){this.timestamp=e,this.message=t,this.attributes={...i,pageUrl:(0,h.L)(""+c.m)},this.level=r.toUpperCase()}}var l=i(3785),d=i(3311),p=i(2614),g=i(6344),m=i(7767),f=i(1541);const v="Logging/Event/";class y extends a.r{static featureName=o.TZ;constructor(e){super(e,o.TZ);const t=(e,t)=>{this.loggingMode={auto:e,api:t},void 0===t&&(this.loggingMode.api=e)};this.harvestOpts.raw=!0,super.customAttributesAreSeparate=!0,this.ee.on(p.tS.RESET,()=>{this.abort(g.bc.RESET)}),this.ee.on(p.tS.UPDATE,(e,i)=>{this.blocked||e!==p.iL.CROSS_TAB||(i.loggingMode!==o.A$.OFF||i.logApiMode&&i.logApiMode!==o.A$.OFF?t(i.loggingMode,i.logApiMode):this.abort(g.bc.CROSS_TAB))}),this.waitForFlags(["log","logapi"]).then(([i,s])=>{if(this.blocked)return;this.loggingMode??={auto:i,api:s};const n=this.agentRef.runtime.session;if((0,m.V)(e.init)&&n&&(n.isNew?this.#m():t(n.state.loggingMode,n.state.logApiMode)),this.loggingMode.auto===o.A$.OFF&&this.loggingMode.api===o.A$.OFF)return this.blocked=!0,void this.deregisterDrain();(0,r.i)(o.ET,this.handleLog.bind(this),this.featureName,this.ee),this.drain(),e.runtime.harvester.triggerHarvestFor(this)})}handleLog(e,t,i={},r=o.p_.INFO,a,c){if(this.blocked)return;const h=a?this.loggingMode.auto:this.loggingMode.api;if(!h)return;if(i&&"object"==typeof i||(i={}),i={...i,...(0,f.U)(c,this)},"string"==typeof r&&(r=r.toUpperCase()),!(0,l.b)(r))return(0,s.R)(30,r);if(h<(o.A$[r]||1/0))return void this.reportSupportabilityMetric(v+"Dropped/Sampling");try{if("string"!=typeof t){const e=(0,n.A)(t);t=e&&"{}"!==e?e:String(t)}}catch(e){return(0,s.R)(16,t),void this.reportSupportabilityMetric(v+"Dropped/Casting")}if("string"!=typeof t||!t)return(0,s.R)(32);const d=new u(Math.floor(this.agentRef.runtime.timeKeeper.correctRelativeTimestamp(e)),t,i,r);this.events.add(d)&&this.reportSupportabilityMetric(v+(a?"Auto":"API")+"/Added")}serializer(e){const t=this.agentRef.runtime.session;return[{common:{attributes:{...(0,d.G)(this.agentRef.info.jsAttributes,this.obfuscator.obfuscateString.bind(this.obfuscator),"string"),...1===this.harvestEndpointVersion&&{"entity.guid":this.agentRef.runtime.appMetadata.agents[0].entityGuid,appId:this.agentRef.info.applicationID},...t&&{session:t.state.value||"0",hasReplay:1===t.state.sessionReplayMode,hasTrace:1===t.state.sessionTraceMode},ptid:this.agentRef.runtime.ptid,standalone:Boolean(this.agentRef.info.sa),agentVersion:this.agentRef.runtime.version,"instrumentation.provider":"browser","instrumentation.version":this.agentRef.runtime.version,"instrumentation.name":this.agentRef.runtime.loaderType}},logs:(0,d.G)(e,this.obfuscator.obfuscateString.bind(this.obfuscator),"string")}]}queryStringsBuilder(){return{browser_monitoring_key:this.agentRef.info.licenseKey}}abort(e={}){this.reportSupportabilityMetric("Logging/Abort/".concat(e.sm)),this.blocked=!0,this.events&&(this.events.clear(),this.events.clearSave()),this.loggingMode={auto:o.A$.OFF,api:o.A$.OFF},this.#m(),this.deregisterDrain()}#m(){this.agentRef.runtime.session?.write({loggingMode:this.loggingMode.auto,logApiMode:this.loggingMode.api})}}},5344:(e,t,i)=>{i.d(t,{j:()=>a});var r=i(7226),s=i(6154),n=i(1083);const a=new(i(6773).x)(n.w.FIRST_CONTENTFUL_PAINT);if(s.RI)if(s.sb)try{if(!s.mw){performance.getEntriesByType("paint").forEach(e=>{"first-contentful-paint"===e.name&&a.update({value:Math.floor(e.startTime)})})}}catch(e){}else(0,r.zB)(({value:e,attribution:t})=>{if(s.mw||a.isValid)return;const i={timeToFirstByte:t.timeToFirstByte,firstByteToFCP:t.firstByteToFCP,loadState:t.loadState};a.update({value:e,attrs:i})})},5436:(e,t,i)=>{function r(e){return e?.constructor==={}.constructor}i.d(t,{a:()=>r})},5519:(e,t,i)=>{i.d(t,{AQ:()=>h,me:()=>a,sH:()=>o,uJ:()=>c});var r=i(3304),s=Object.prototype.hasOwnProperty,n=64;function a(e,t,i){return e||0===e||""===e?t(e)+(i?",":""):"!"}function o(e,t){return t?Math.floor(e).toString(36):void 0===e||0===e?"":Math.floor(e).toString(36)}function c(e){let t=0;const i=Object.prototype.hasOwnProperty.call(Object,"create")?Object.create(null):{};return function(r){if(void 0===r||""===r)return"";return r=e.obfuscateString(String(r)),s.call(i,r)?o(i[r],!0):(i[r]=t++,function(e){return"'"+e.replace(u,"\\$1")}(r))}}function h(e,t){var i=[];return Object.entries(e||{}).forEach(([e,s])=>{if(!(i.length>=n)){var a,o=5;switch(e=t(e),typeof s){case"object":s?a=t((0,r.A)(s)):o=9;break;case"number":o=6,a=s%1?s:s+".";break;case"boolean":o=s?7:8;break;case"undefined":o=9;break;default:a=t(s)}i.push([o,e+(a?","+a:"")])}}),i}var u=/([,\\;])/g},5851:(e,t,i)=>{i.d(t,{m:()=>n});var r=i(384),s=i(6154);const n=new class{#f=new WeakSet;#v=[];invalidStylesheetsDetected=!1;failedToFix=0;evaluate(){let e=0;if(this.#v=[],s.RI)for(let t=0;tthis.#y(e))),this.#v=[];const e=this.failedToFix;return this.failedToFix=0,e}async#y(e){if(e?.href)try{const t=await(0,r.dV)().o.FETCH.bind(window)(e.href);if(!t.ok)return void this.failedToFix++;const i=await t.text();try{const t=new CSSStyleSheet;await t.replace(i),Object.defineProperty(e,"cssRules",{get:()=>t.cssRules}),Object.defineProperty(e,"rules",{get:()=>t.rules})}catch(t){Object.defineProperty(e,"cssText",{get:()=>i}),this.failedToFix++}}catch(e){this.failedToFix++}}}},6167:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>S});var r=i(3606),s=i(6344),n=i(4537);let a;const o=new Promise(e=>{a=e}),c=Object.freeze({onReplayReady:a,sessionReplayInitialized:o});var h=i(3762),u=i(944),l=i(6154),d=i(9324),p=i(2614),g=i(3304),m=i(5851),f=i(1863),v=i(7699),y=i(9119),b=i(7767),T=i(4261);class S extends n.r{static featureName=s.TZ;mode=p.g.OFF;constructor(e,t){super(e,s.TZ),this.initialized=!1,this.blocked=!1,this.gzipper=void 0,this.u8=void 0,this.shouldCompress=!0,this.entitled=!1,this.timeKeeper=void 0,this.instrumentClass=t,this.recorder=this.instrumentClass?.recorder,this.harvestOpts.raw=!0,this.isSessionTrackingEnabled=(0,b.V)(e.init)&&!!e.runtime.session,this.reportSupportabilityMetric("Config/SessionReplay/Enabled"),this.ee.on(p.tS.RESET,()=>{this.abort(s.bc.RESET)}),this.ee.on(p.tS.PAUSE,()=>{this.recorder?.stopRecording()}),this.ee.on(p.tS.RESUME,()=>{this.recorder&&(this.mode=e.runtime.session.state.sessionReplayMode,this.initialized&&this.mode!==p.g.OFF&&this.recorder?.startRecording(s.Qb.RESUME,this.mode))}),this.ee.on(p.tS.UPDATE,(e,t)=>{this.recorder&&this.initialized&&!this.blocked&&e===p.iL.CROSS_TAB&&(this.mode!==p.g.OFF&&t.sessionReplayMode===p.g.OFF&&this.abort(s.bc.CROSS_TAB),this.mode=t.sessionReplayMode)}),(0,r.i)(T.Tb,()=>{this.forceStop(this.mode===p.g.FULL)},this.featureName,this.ee),(0,r.i)(s.Vh,e=>{this.handleError(e)},this.featureName,this.ee);const{error_sampling_rate:i,sampling_rate:n,autoStart:a,block_selector:o,mask_text_selector:h,mask_all_inputs:u,inline_images:l,collect_fonts:d}=e.init.session_replay;this.waitForFlags(["srs","sr"]).then(([e,t])=>{if(this.entitled=!!t,!this.entitled)return this.deregisterDrain(),void(this.agentRef.runtime.isRecording&&(this.abort(s.bc.ENTITLEMENTS),this.reportSupportabilityMetric("SessionReplay/EnabledNotEntitled/Detected")));this.initializeRecording(e).then(()=>{this.drain()})}).then(()=>{if(this.mode===p.g.OFF)for(this.recorder?.stopRecording();this.recorder?.getEvents().events.length;)this.recorder?.clearBuffer?.();c.onReplayReady(this.mode)}),a||this.reportSupportabilityMetric("Config/SessionReplay/AutoStart/Modified"),!0===d&&this.reportSupportabilityMetric("Config/SessionReplay/CollectFonts/Modified"),!0===l&&this.reportSupportabilityMetric("Config/SessionReplay/InlineImages/Modifed"),!0!==u&&this.reportSupportabilityMetric("Config/SessionReplay/MaskAllInputs/Modified"),"[data-nr-block]"!==o&&this.reportSupportabilityMetric("Config/SessionReplay/BlockSelector/Modified"),"*"!==h&&this.reportSupportabilityMetric("Config/SessionReplay/MaskTextSelector/Modified"),this.reportSupportabilityMetric("Config/SessionReplay/SamplingRate/Value",n),this.reportSupportabilityMetric("Config/SessionReplay/ErrorSamplingRate/Value",i)}replayIsActive(){return Boolean(this.recorder&&this.mode===p.g.FULL&&!this.blocked&&this.entitled)}handleError(e){this.recorder&&(this.recorder.events.hasError=!0),this.mode===p.g.ERROR&&"visible"===l.gm?.document.visibilityState&&this.switchToFull()}switchToFull(){this.entitled&&!this.blocked&&(this.mode=p.g.FULL,this.recorder&&this.initialized?(this.agentRef.runtime.isRecording||this.recorder.startRecording(s.Qb.SWITCH_TO_FULL,this.mode),this.syncWithSessionManager({sessionReplayMode:this.mode})):this.initializeRecording(p.g.FULL,!0,s.Qb.SWITCH_TO_FULL))}async initializeRecording(e,t,i=s.Qb.INITIALIZE){if(this.initialized=!0,!this.entitled)return;const{session:r,timeKeeper:n}=this.agentRef.runtime;if(this.timeKeeper=n,this.recorder?.trigger===s.Qb.API&&this.agentRef.runtime.isRecording?this.mode=p.g.FULL:r.isNew||t?this.mode=e:this.mode=r.state.sessionReplayMode,this.mode!==p.g.OFF){try{this.recorder??=await this.instrumentClass.importRecorder()}catch(e){return this.abort(s.bc.IMPORT,e)}this.mode===p.g.ERROR&&this.instrumentClass.errorNoticed&&(this.mode=p.g.FULL),await this.prepUtils(),this.agentRef.runtime.isRecording||this.recorder.startRecording(i,this.mode),this.syncWithSessionManager({sessionReplayMode:this.mode})}}async prepUtils(){try{const{gzipSync:e,strToU8:t}=await i.e(212).then(i.bind(i,9861));this.gzipper=e,this.u8=t}catch(e){this.shouldCompress=!1}}makeHarvestPayload(){if(this.mode!==p.g.FULL||this.blocked)return;if(this.shouldCompress&&!this.gzipper)return;if(!(this.recorder&&this.timeKeeper?.ready&&this.recorder.hasSeenSnapshot&&this.recorder.hasSeenMeta))return;const e=this.recorder.getEvents();if(!e.events.length)return;const t=this.getHarvestContents(e);if(!t.body.length)return void this.recorder.clearBuffer();this.reportSupportabilityMetric("SessionReplay/Harvest/Attempts");let i=0;if(this.gzipper&&this.u8)t.body=this.gzipper(this.u8("[".concat(t.body.map(({__serialized:e})=>e).join(","),"]"))),i=t.body.length;else{for(let e in t.body)delete t.body[e].__serialized;i=(0,g.A)(t.body).length}if(!(i>v.It))return this.agentRef.runtime.session.state.sessionReplaySentFirstChunk||this.syncWithSessionManager({sessionReplaySentFirstChunk:!0}),this.recorder.clearBuffer(),this.agentRef.runtime.session.state.traceHarvestStarted||(0,u.R)(59,JSON.stringify(this.agentRef.runtime.session.state)),t;this.abort(s.bc.TOO_BIG,i)}getFirstAndLastNodes(e=[]){const t={firstEvent:e[0],lastEvent:e[e.length-1]};return e.forEach(e=>{const i=e?.timestamp;(!t.firstEvent?.timestamp||(i||1/0)t.lastEvent.timestamp)&&(t.lastEvent=e)}),t}getHarvestContents(e){e??=this.recorder.getEvents();let t=e.events;const i=this.agentRef.runtime,r=this.agentRef.info.jsAttributes?.["enduser.id"];t?.[0]?.type===s._s.FullSnapshot&&this.recorder.lastMeta&&(e.hasMeta=!0,t.unshift(this.recorder.lastMeta),this.recorder.lastMeta=void 0);t[t.length-1]?.type===s._s.Meta&&(this.recorder.lastMeta=t[t.length-1],t=t.slice(0,t.length-1),e.hasMeta=!!t.find(e=>e.type===s._s.Meta));const n=(0,f.t)(),{firstEvent:a,lastEvent:o}=this.getFirstAndLastNodes(t),c=a?.timestamp||Math.floor(this.timeKeeper.correctAbsoluteTimestamp(e.cycleTimestamp)),u=o?.timestamp||Math.floor(this.timeKeeper.correctRelativeTimestamp(n)),l=i.appMetadata?.agents?.[0]||{};return{qs:{browser_monitoring_key:this.agentRef.info.licenseKey,type:"SessionReplay",app_id:this.agentRef.info.applicationID,protocol_version:"0",timestamp:c,attributes:(0,h.WL)({...!!this.gzipper&&!!this.u8&&{content_encoding:"gzip"},...l.entityGuid&&{entityGuid:l.entityGuid},harvestId:[i.session?.state.value,i.ptid,i.harvestCount].filter(e=>e).join("_"),"replay.firstTimestamp":c,"replay.lastTimestamp":u,"replay.nodes":t.length,"session.durationMs":i.session.getDuration(),agentVersion:i.version,session:i.session.state.value,rst:n,hasMeta:e.hasMeta||!1,hasSnapshot:e.hasSnapshot||!1,hasError:e.hasError||!1,isFirstChunk:!1===i.session.state.sessionReplaySentFirstChunk,decompressedBytes:e.payloadBytesEstimation,invalidStylesheetsDetected:m.m.invalidStylesheetsDetected,inlinedAllStylesheets:e.inlinedAllStylesheets,"rrweb.version":d.AJ+"@"+d.Yq,"payload.type":e.type,...r&&{"enduser.id":this.obfuscator.obfuscateString(r)},currentUrl:this.obfuscator.obfuscateString((0,y.L)(""+location))},s.BB).substring(1)},body:t}}postHarvestCleanup(e){429===e.status&&this.abort(s.bc.TOO_MANY)}forceStop(e){e&&this.agentRef.runtime.harvester.triggerHarvestFor(this),this.mode=p.g.OFF,this.recorder?.stopRecording?.(),this.syncWithSessionManager({sessionReplayMode:this.mode})}abort(e={},t){for((0,u.R)(33,e.message),this.reportSupportabilityMetric("SessionReplay/Abort/".concat(e.sm),t),this.blocked=!0,this.mode=p.g.OFF,this.recorder?.stopRecording?.(),this.syncWithSessionManager({sessionReplayMode:this.mode}),this.recorder?.clearTimestamps?.();this.recorder?.getEvents().events.length;)this.recorder?.clearBuffer?.()}syncWithSessionManager(e={}){this.isSessionTrackingEnabled&&this.agentRef.runtime.session.write(e)}}},6555:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>F});var r=i(3606),s=i(3969),n=i(6154);const a="React",o="NextJS",c="Vue",h="NuxtJS",u="Angular",l="AngularUniversal",d="Svelte",p="SvelteKit",g="Preact",m="PreactSSR",f="AngularJS",v="Backbone",y="Ember",b="Meteor",T="Zepto",S="Jquery",R="MooTools",w="Qwik",E="Flutter",A="Electron";function M(){if(!n.RI)return[];const e=[];try{(function(){try{return Object.prototype.hasOwnProperty.call(window,"React")||Object.prototype.hasOwnProperty.call(window,"ReactDOM")||Object.prototype.hasOwnProperty.call(window,"ReactRedux")||document.querySelector("[data-reactroot], [data-reactid]")||(()=>{const e=document.querySelectorAll("body > div");for(let t=0;te.startsWith("__sveltekit"))}catch(e){return!1}}()&&e.push(p)),function(){try{return Object.prototype.hasOwnProperty.call(window,"preact")}catch(e){return!1}}()&&(e.push(g),function(){try{return document.querySelector('script[type="__PREACT_CLI_DATA__"]')}catch(e){return!1}}()&&e.push(m)),function(){try{return Object.prototype.hasOwnProperty.call(window,"angular")||document.querySelector(".ng-binding, [ng-app], [data-ng-app], [ng-controller], [data-ng-controller], [ng-repeat], [data-ng-repeat]")||document.querySelector('script[src*="angular.js"], script[src*="angular.min.js"]')}catch(e){return!1}}()&&e.push(f),Object.prototype.hasOwnProperty.call(window,"Backbone")&&e.push(v),Object.prototype.hasOwnProperty.call(window,"Ember")&&e.push(y),Object.prototype.hasOwnProperty.call(window,"Meteor")&&e.push(b),Object.prototype.hasOwnProperty.call(window,"Zepto")&&e.push(T),Object.prototype.hasOwnProperty.call(window,"jQuery")&&e.push(S),Object.prototype.hasOwnProperty.call(window,"MooTools")&&e.push(R),Object.prototype.hasOwnProperty.call(window,"qwikevents")&&e.push(w),Object.hasOwn(window,"_flutter")&&e.push(E),function(){try{return"object"==typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Electron")>=0}catch(e){return!1}}()&&e.push(A)}catch(e){}return e}var k=i(4284),I=i(5289),O=i(3878),C=i(4537),N=i(2123);class F extends C.r{static featureName=s.TZ;constructor(e){super(e,s.TZ),this.harvestOpts.aggregatorTypes=["cm","sm"],this.harvestMetadata={},this.harvestOpts.beforeUnload=()=>{(function(e){try{const t=[],i=(...e)=>e.join("/");function r(e,r,s,n){const a="audit";s?n?t.push(i(a,e,r,"true","positive")):t.push(i(a,e,r,"false","positive")):n?t.push(i(a,e,r,"false","negative")):t.push(i(a,e,r,"true","negative"))}return e.page_view_event&&(r("page_view","hasReplay",e.page_view_event.hasReplay,!!e.session_replay),r("page_view","hasTrace",e.page_view_event.hasTrace,!!e.session_trace)),e.session_replay&&r("session_replay","hasError",e.session_replay.hasError,!!e.jserrors),t}catch(s){return[]}})(this.harvestMetadata).forEach(e=>{this.storeSupportabilityMetrics(e)})},this.agentNonce=n.RI&&document.currentScript?.nonce,this.waitForFlags(["err"]).then(([e])=>{e?(this.singleChecks(),this.eachSessionChecks(),this.drain()):(this.blocked=!0,this.deregisterDrain())}),(0,r.i)(s.xV,this.storeSupportabilityMetrics.bind(this),this.featureName,this.ee),(0,r.i)(s.XG,this.storeEventMetrics.bind(this),this.featureName,this.ee)}preHarvestChecks(e){return this.drained&&e.isFinalHarvest}storeSupportabilityMetrics(e,t){if(this.blocked)return;const i=s.rs,r={name:e};this.events.addMetric(i,e,r,t)}storeEventMetrics(e,t){if(this.blocked)return;const i=s.z_,r={name:e};this.events.add([i,e,r,t])}singleChecks(){const{distMethod:e,loaderType:t}=this.agentRef.runtime,{proxy:i,privacy:s}=this.agentRef.init;if(t&&this.storeSupportabilityMetrics("Generic/LoaderType/".concat(t,"/Detected")),e&&this.storeSupportabilityMetrics("Generic/DistMethod/".concat(e,"/Detected")),n.RI?(this.storeSupportabilityMetrics("Generic/Runtime/Browser/Detected"),this.agentNonce&&""!==this.agentNonce&&this.storeSupportabilityMetrics("Generic/Runtime/Nonce/Detected"),(0,I.sB)(()=>{M().forEach(e=>{this.storeSupportabilityMetrics("Framework/"+e+"/Detected")})}),s.cookies_enabled||this.storeSupportabilityMetrics("Config/SessionTracking/Disabled")):n.bv?this.storeSupportabilityMetrics("Generic/Runtime/Worker/Detected"):this.storeSupportabilityMetrics("Generic/Runtime/Unknown/Detected"),(0,k.p)()&&this.storeSupportabilityMetrics("Generic/FileProtocol/Detected"),this.obfuscator.obfuscateConfigRules.length>0&&this.storeSupportabilityMetrics("Generic/Obfuscate/Detected"),i.assets&&this.storeSupportabilityMetrics("Config/AssetsUrl/Changed"),i.beacon&&this.storeSupportabilityMetrics("Config/BeaconUrl/Changed"),n.RI&&window.MutationObserver){(0,N.v)(window)&&this.storeSupportabilityMetrics("Generic/Runtime/IFrame/Detected");const e=window.document.querySelectorAll("video").length;e&&this.storeSupportabilityMetrics("Generic/VideoElement/Added",e);const t=window.document.querySelectorAll("iframe").length;t&&this.storeSupportabilityMetrics("Generic/IFrame/Added",t);new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{e instanceof HTMLVideoElement&&this.storeSupportabilityMetrics("Generic/VideoElement/Added",1),e instanceof HTMLIFrameElement&&this.storeSupportabilityMetrics("Generic/IFrame/Added",1)})})}).observe(window.document.body,{childList:!0,subtree:!0})}navigator.webdriver&&this.storeSupportabilityMetrics("Generic/WebDriver/Detected"),(0,r.i)("harvest-metadata",(e={})=>{try{Object.keys(e).forEach(t=>{Object.assign(this.harvestMetadata[t]??={},e[t])})}catch(e){}},this.featureName,this.ee)}eachSessionChecks(){n.RI&&(0,O.sp)("pageshow",e=>{e?.persisted&&this.storeSupportabilityMetrics("Generic/BFCache/PageRestored")})}}},6773:(e,t,i)=>{i.d(t,{x:()=>r});class r{#b=new Set;history=[];constructor(e,t){this.name=e,this.attrs={},this.roundingMethod="function"==typeof t?t:Math.floor}update({value:e,attrs:t={}}){if(null==e||e<0)return;const i={value:this.roundingMethod(e),name:this.name,attrs:t};this.history.push(i),this.#b.forEach(e=>{try{e(i)}catch(e){}})}get current(){return this.history[this.history.length-1]||{value:void 0,name:this.name,attrs:{}}}get isValid(){return this.current.value>=0}subscribe(e,t=!0){if("function"==typeof e)return this.#b.add(e),this.isValid&&t&&this.history.forEach(t=>{e(t)}),()=>{this.#b.delete(e)}}}},6974:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>S});var r=i(3606),s=i(3738),n=i(4537),a=i(2614),o=i(1863),c=i(7485),h=i(1528);class u{constructor(e,t,i,r,s){this.n=e,this.s=t,this.e=i,this.o=r,this.t=s}}const l={global:{mouseup:!0,mousedown:!0},window:{load:!0,pagehide:!0},xhrOriginMissing:{ignoreAll:!0}},d={typing:"typing",scrolling:"scrolling",mousing:"mousing",touching:"touching"},p={[d.typing]:1e3,[d.scrolling]:100,[d.mousing]:1e3,[d.touching]:1e3},g={[d.typing]:2e3,[d.scrolling]:1e3,[d.mousing]:2e3,[d.touching]:2e3};class m{prevStoredEvents=new Set;constructor(e){this.parent=e}#T(e){return e.n in d}#S(e){const t={e:e.e};return this.parent.events.merge(t=>!(t.o!==e.o||t.n!==e.n||e.s-t.se.s-p[e.o]),t)}#R(e){if(e.n in l.global)return!0;const t=e.o;return!(!l[t]?.ignoreAll&&!l[t]?.[e.n])||"xhrOriginMissing"===t&&"Ajax"===e.n}#w(){if(this.parent.blocked)return!1;if(this.parent.events.length>=s.jx){if(this.parent.mode!==a.g.ERROR)return!1;this.trimSTNsByTime(),this.parent.events.length>=s.jx&&this.trimSTNsByIndex(1)}return!0}#E(e){return!(this.#R(e)||!this.#w())&&(this.#T(e)&&this.#S(e)||this.parent.events.add(e),!0)}storeNode(e){return this.#E(e)}processPVT(e,t,i){return this.storeTiming({[e]:t})}storeTiming(e,t=!1){if(!e)return!1;let i=!0;for(let r in e){let s=e[r];const n=r.toLowerCase();n.indexOf("size")>=0||n.indexOf("status")>=0||"number"==typeof s&&s>=0&&(s=Math.round(s),this.parent.timeKeeper&&this.parent.timeKeeper.ready&&t&&(s=this.parent.timeKeeper.convertAbsoluteTimestamp(Math.floor(this.parent.timeKeeper.correctAbsoluteTimestamp(s)))),this.#E(new u(r,s,s,"document","timing"))||(i=!1))}return i}storeEvent(e,t,i,r){if(this.prevStoredEvents.has(e)||!this.#w())return!1;this.prevStoredEvents.add(e);const s=new u(function(e){switch(e){case"keydown":case"keyup":case"keypress":return"typing";case"mousemove":case"mouseenter":case"mouseleave":case"mouseover":case"mouseout":return"mousing";case"touchstart":case"touchmove":case"touchend":case"touchcancel":case"touchenter":case"touchleave":return"touching";case"scroll":case"scrollend":return"scrolling";default:return e}}(e.type),i,r,void 0,"event");try{s.o=(0,h.t)(e.target,t,this.parent.ee)}catch(e){s.o=(0,h.t)(null,t,this.parent.ee)}return this.#E(s)}storeHist(e,t,i){return this.#E(new u("history.pushState",i,i,e,t))}storeResources(e){if(!e||0===e.length)return!1;let t=!0;for(let i=0;ithis.initialize(e,t))}initialize(e,t,i){return this.entitled??=t,this.entitled||(this.blocked=!0),this.blocked?this.deregisterDrain():(this.initialized||(this.initialized=!0,this.ptid=this.agentRef.runtime.ptid,this.sessionId=this.agentRef.runtime.session?.state.value,this.ee.on(a.tS.RESET,()=>{this.blocked||this.abort(1)}),this.ee.on(a.tS.UPDATE,(e,t)=>{this.blocked||(this.mode===a.g.FULL||t.sessionReplayMode!==a.g.FULL&&t.sessionTraceMode!==a.g.FULL||this.switchToFull(),(this.sessionId!==t.value||"cross-tab"===e&&t.sessionTraceMode===a.g.OFF)&&this.abort(2))}),(0,v.eN)()?this.traceStorage.storeTiming(v.gm.performance?.getEntriesByType?.("navigation")[0]):this.traceStorage.storeTiming(v.gm.performance?.timing,!0)),this.agentRef.runtime.session.isNew||i?this.mode=e:this.mode=this.agentRef.runtime.session.state.sessionTraceMode,this.mode===a.g.OFF?this.deregisterDrain():(this.timeKeeper??=this.agentRef.runtime.timeKeeper,(0,r.i)("bst",(...e)=>this.traceStorage.storeEvent(...e),this.featureName,this.ee),(0,r.i)("bstResource",(...e)=>this.traceStorage.storeResources(...e),this.featureName,this.ee),(0,r.i)("bstHist",(...e)=>this.traceStorage.storeHist(...e),this.featureName,this.ee),(0,r.i)("bstXhrAgg",(...e)=>this.traceStorage.storeXhrAgg(...e),this.featureName,this.ee),(0,r.i)("bstApi",(...e)=>this.traceStorage.storeNode(...e),this.featureName,this.ee),(0,r.i)("trace-jserror",(...e)=>this.traceStorage.storeErrorAgg(...e),this.featureName,this.ee),(0,r.i)("pvtAdded",(...e)=>this.traceStorage.processPVT(...e),this.featureName,this.ee),this.mode!==a.g.FULL&&(0,r.i)("trace-jserror",()=>{this.mode===a.g.ERROR&&this.switchToFull()},this.featureName,this.ee),this.agentRef.runtime.session.write({sessionTraceMode:this.mode}),void this.drain()))}preHarvestChecks(){if(!this.blocked&&this.mode===a.g.FULL&&this.timeKeeper?.ready&&this.agentRef.runtime.session){if(this.sessionId===this.agentRef.runtime.session.state.value&&this.ptid===this.agentRef.runtime.ptid)return!0;this.abort(3)}}serializer(e){if(e.length)return this.everHarvested=!0,(0,y.G)(e,this.obfuscator.obfuscateString.bind(this.obfuscator),"string")}queryStringsBuilder(e){const t=!this.agentRef.runtime.session.state.traceHarvestStarted;t&&this.agentRef.runtime.session.write({traceHarvestStarted:!0});const i=1===this.agentRef.runtime.session.state.sessionReplayMode,r=this.agentRef.info.jsAttributes["enduser.id"],s=this.agentRef.runtime.appMetadata.agents?.[0]?.entityGuid,n=e.reduce((e,t)=>Math.min(e,t.s),1/0),a=e.reduce((e,t)=>Math.max(e,t.s),-1/0);return{browser_monitoring_key:this.agentRef.info.licenseKey,type:"BrowserSessionChunk",app_id:this.agentRef.info.applicationID,protocol_version:"0",timestamp:Math.floor(this.timeKeeper.correctRelativeTimestamp(n)),attributes:(0,f.WL)({...s&&{entityGuid:s},harvestId:"".concat(this.agentRef.runtime.session.state.value,"_").concat(this.agentRef.runtime.ptid,"_").concat(this.agentRef.runtime.harvestCount),"trace.firstTimestamp":Math.floor(this.timeKeeper.correctRelativeTimestamp(n)),"trace.lastTimestamp":Math.floor(this.timeKeeper.correctRelativeTimestamp(a)),"trace.nodes":e.length,"trace.originTimestamp":this.timeKeeper.correctedOriginTime,agentVersion:this.agentRef.runtime.version,...t&&{firstSessionHarvest:t},...i&&{hasReplay:i},ptid:"".concat(this.ptid),session:"".concat(this.sessionId),...r&&{"enduser.id":this.obfuscator.obfuscateString(r)},currentUrl:this.obfuscator.obfuscateString((0,b.L)(""+location))},5e3).substring(1)}}switchToFull(){if(this.mode===a.g.FULL||!this.entitled||this.blocked)return;const e=this.mode;if(this.mode=a.g.FULL,this.agentRef.runtime.session.write({sessionTraceMode:this.mode}),e===a.g.OFF||!this.initialized)return this.initialize(this.mode,this.entitled);this.initialized&&(this.traceStorage.trimSTNsByTime(),this.agentRef.runtime.harvester.triggerHarvestFor(this))}abort(e){(0,T.R)(60,e),this.blocked=!0,this.mode=a.g.OFF,this.agentRef.runtime.session.write({sessionTraceMode:this.mode}),this.events.clear()}postHarvestCleanup(e){this.traceStorage.clear(),super.postHarvestCleanup(e)}}},7226:(e,t,i)=>{i.d(t,{Ck:()=>he,IN:()=>O,fK:()=>ne,rH:()=>ie,zB:()=>C});var r,s,n=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart(t||100)-1)return i||s;if(i=i?s+">"+i:s,r.id)break;e=r.parentNode}}catch(e){}return i},h=-1,u=function(){return h},l=function(e){addEventListener("pageshow",function(t){t.persisted&&(h=t.timeStamp,e(t))},!0)},d=function(){var e=n();return e&&e.activationStart||0},p=function(e,t){var i=n(),r="navigate";return u()>=0?r="back-forward-cache":i&&(document.prerendering||d()>0?r="prerender":document.wasDiscarded?r="restore":i.type&&(r=i.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},g=function(e,t,i){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},i||{})),r}}catch(e){}},m=function(e,t,i,r){var s,n;return function(a){t.value>=0&&(a||r)&&((n=t.value-(s||0))||void 0===s)&&(s=t.value,t.delta=n,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,i),e(t))}},f=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},v=function(e){document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&e()})},y=function(e){var t=!1;return function(){t||(e(),t=!0)}},b=-1,T=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},S=function(e){"hidden"===document.visibilityState&&b>-1&&(b="visibilitychange"===e.type?e.timeStamp:0,w())},R=function(){addEventListener("visibilitychange",S,!0),addEventListener("prerenderingchange",S,!0)},w=function(){removeEventListener("visibilitychange",S,!0),removeEventListener("prerenderingchange",S,!0)},E=function(){return b<0&&(b=T(),R(),l(function(){setTimeout(function(){b=T(),R()},0)})),{get firstHiddenTime(){return b}}},A=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},M=[1800,3e3],k=function(e,t){t=t||{},A(function(){var i,r=E(),s=p("FCP"),n=g("paint",function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(n.disconnect(),e.startTimer.value&&(r.value=s,r.entries=n,i())},o=g("layout-shift",a);o&&(i=m(e,r,I,t.reportAllChanges),v(function(){a(o.takeRecords()),i(!0)}),l(function(){s=0,r=p("CLS",0),i=m(e,r,I,t.reportAllChanges),f(function(){return i()})}),setTimeout(i,0))}))}(function(t){var i=function(e){var t,i={};if(e.entries.length){var r=e.entries.reduce(function(e,t){return e&&e.value>t.value?e:t});if(r&&r.sources&&r.sources.length){var s=(t=r.sources).find(function(e){return e.node&&1===e.node.nodeType})||t[0];s&&(i={largestShiftTarget:c(s.node),largestShiftTime:r.startTime,largestShiftValue:r.value,largestShiftSource:s,largestShiftEntry:r,loadState:a(r.startTime)})}}return Object.assign(e,{attribution:i})}(t);e(i)},t)},C=function(e,t){k(function(t){var i=function(e){var t={timeToFirstByte:0,firstByteToFCP:e.value,loadState:a(u())};if(e.entries.length){var i=n(),r=e.entries[e.entries.length-1];if(i){var s=i.activationStart||0,o=Math.max(0,i.responseStart-s);t={timeToFirstByte:o,firstByteToFCP:e.value-o,loadState:a(e.entries[0].startTime),navigationEntry:i,fcpEntry:r}}}return Object.assign(e,{attribution:t})}(t);e(i)},t)},N=0,F=1/0,x=0,L=function(e){e.forEach(function(e){e.interactionId&&(F=Math.min(F,e.interactionId),x=Math.max(x,e.interactionId),N=x?(x-F)/7+1:0)})},D=function(){return r?N:performance.interactionCount||0},P=function(){"interactionCount"in performance||r||(r=g("event",L,{type:"event",buffered:!0,durationThreshold:0}))},j=[],B=new Map,_=0,H=[],U=function(e){if(H.forEach(function(t){return t(e)}),e.interactionId||"first-input"===e.entryType){var t=j[j.length-1],i=B.get(e.interactionId);if(i||j.length<10||e.duration>t.latency){if(i)e.duration>i.latency?(i.entries=[e],i.latency=e.duration):e.duration===i.latency&&e.startTime===i.entries[0].startTime&&i.entries.push(e);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};B.set(r.id,r),j.push(r)}j.sort(function(e,t){return t.latency-e.latency}),j.length>10&&j.splice(10).forEach(function(e){return B.delete(e.id)})}}},K=function(e){var t=self.requestIdleCallback||self.setTimeout,i=-1;return e=y(e),"hidden"===document.visibilityState?e():(i=t(e),v(e)),i},z=[200,500],q=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},A(function(){var i;P();var r,s=p("INP"),n=function(e){K(function(){e.forEach(U);var t=function(){var e=Math.min(j.length-1,Math.floor((D()-_)/50));return j[e]}();t&&t.latency!==s.value&&(s.value=t.latency,s.entries=t.entries,r())})},a=g("event",n,{durationThreshold:null!==(i=t.durationThreshold)&&void 0!==i?i:40});r=m(e,s,z,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),v(function(){n(a.takeRecords()),r(!0)}),l(function(){_=D(),j.length=0,B.clear(),s=p("INP"),r=m(e,s,z,t.reportAllChanges)}))}))},V=[],G=[],W=0,J=new WeakMap,X=new Map,Z=-1,Q=function(e){V=V.concat(e),Y()},Y=function(){Z<0&&(Z=K(ee))},ee=function(){X.size>10&&X.forEach(function(e,t){B.has(t)||X.delete(t)});var e=j.map(function(e){return J.get(e.entries[0])}),t=G.length-50;G=G.filter(function(i,r){return r>=t||e.includes(i)});for(var i=new Set,r=0;rW&&t>n||i.has(e)}),Z=-1};H.push(function(e){e.interactionId&&e.target&&!X.has(e.interactionId)&&X.set(e.interactionId,e.target)},function(e){var t,i=e.startTime+e.duration;W=Math.max(W,e.processingEnd);for(var r=G.length-1;r>=0;r--){var s=G[r];if(Math.abs(i-s.renderTime)<=8){(t=s).startTime=Math.min(e.startTime,t.startTime),t.processingStart=Math.min(e.processingStart,t.processingStart),t.processingEnd=Math.max(e.processingEnd,t.processingEnd),t.entries.push(e);break}}t||(t={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:i,entries:[e]},G.push(t)),(e.interactionId||"first-input"===e.entryType)&&J.set(e,t),Y()});var te=function(e,t){for(var i,r=[],s=0;i=V[s];s++)if(!(i.startTime+i.durationt)break;r.push(i)}return r},ie=function(e,t){s||(s=g("long-animation-frame",Q)),q(function(t){var i=function(e){var t=e.entries[0],i=J.get(t),r=t.processingStart,s=i.processingEnd,n=i.entries.sort(function(e,t){return e.processingStart-t.processingStart}),o=te(t.startTime,s),h=e.entries.find(function(e){return e.target}),u=h&&h.target||X.get(t.interactionId),l=[t.startTime+t.duration,s].concat(o.map(function(e){return e.startTime+e.duration})),d=Math.max.apply(Math,l),p={interactionTarget:c(u),interactionTargetElement:u,interactionType:t.name.startsWith("key")?"keyboard":"pointer",interactionTime:t.startTime,nextPaintTime:d,processedEventEntries:n,longAnimationFrameEntries:o,inputDelay:r-t.startTime,processingDuration:s-r,presentationDelay:Math.max(d-s,0),loadState:a(t.startTime)};return Object.assign(e,{attribution:p})}(t);e(i)},t)},re=[2500,4e3],se={},ne=function(e,t){!function(e,t){t=t||{},A(function(){var i,r=E(),s=p("LCP"),n=function(e){t.reportAllChanges||(e=e.slice(-1)),e.forEach(function(e){e.startTime{i.r(t),i.d(t,{Aggregate:()=>S});var r=i(3304),s=i(9119),n=i(3333),a=i(6154),o=i(4537),c=i(944),h=i(1863),u=i(3606),l=i(3311);function d(e,t){const{id:i,localName:r}=e;return[r,i?"#".concat(i):"",t?">".concat(t):""].join("")}function p(e){return"tagName"===e&&(e="tag"),"className"===e&&(e="class"),"nearest".concat(e.charAt(0).toUpperCase()+e.slice(1))}class g{constructor(e,t){this.event=e,this.count=1,this.originMs=Math.floor(e.timeStamp),this.relativeMs=[0],this.selectorPath=t.path,this.rageClick=void 0,this.nearestTargetFields=t.nearestFields,this.currentUrl=(0,s.L)(""+location),this.deadClick=!1,this.errorClick=!1}aggregate(e){this.count++,this.relativeMs.push(Math.floor(e.timeStamp-this.originMs)),this.isRageClick()&&(this.rageClick=!0)}isRageClick(){const e=this.relativeMs.length;return"click"===this.event.type&&e>=n.nf&&this.relativeMs[e-1]-this.relativeMs[e-n.nf]{const i={path:void 0,nearestFields:{},hasButton:!1,hasLink:!1};if(!e)return i;if(e===window)return i.path="window",i;if(e===document)return i.path="document",i;let r="";const s=function(e){try{let t=1;const{tagName:i}=e;for(;e.previousElementSibling;)e.previousElementSibling.tagName===i&&t++,e=e.previousElementSibling;return t}catch(e){}}(e);try{for(;e?.tagName;){const s=e.tagName.toLowerCase();i.hasLink||="a"===s,i.hasButton||="button"===s||"input"===s&&"button"===e.type.toLowerCase(),t.forEach(t=>{i.nearestFields[p(t)]||=e[t]?.baseVal||e[t]}),r=d(e,r),e=e.parentNode}}catch(e){}return i.path=r?s?"".concat(r,":nth-of-type(").concat(s,")"):r:void 0,i})(n.qN.includes(e.type)?window:e.target,t),r=function(e,t){let i=e.type;"scrollend"!==e.type&&(i+="-"+t);return i}(e,i.path);if(!r||r!==this.#M){const t=this.#A;return this.#C(),this.#N(),this.#M=r,this.#A=new g(e,i),"click"===e.type&&(i.hasButton||i.hasLink)&&(this.#F(this.#A),this.#x()),t}this.#A.aggregate(e)}markAsErrorClick(){this.#A&&this.#O&&(this.#A.errorClick=!0,this.#N())}#x(){this.#O=new m.M({onEnd:()=>{this.#N()}},n.Xh)}#N(){this.#O?.clear(),this.#O=void 0}#F(e){!this.#L()&&this.#I&&(this.#I.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),this.#k=new m.M({onEnd:()=>{e.deadClick=!0,this.#C()}},n.Xh))}#C(){this.#I?.disconnect(),this.#k?.clear(),this.#k=void 0}#L(){return void 0!==this.#k}isLiveClick(){this.#L()&&this.#C()}}var y=i(2123),b=i(5436),T=i(1541);class S extends o.r{static featureName=n.TZ;#D;constructor(e){super(e,n.TZ),this.referrerUrl=a.RI&&document.referrer?(0,s.L)(document.referrer):void 0,this.waitForFlags(["ins"]).then(([t])=>{if(!t)return this.blocked=!0,void this.deregisterDrain();this.#P(),(0,u.i)("api-recordCustomEvent",(e,t,i,r)=>{if(n.kd.includes(t))return(0,c.R)(46);this.addEvent({eventType:t,timestamp:this.#j(e),...i},r)},this.featureName,this.ee),e.init.page_action.enabled&&(0,u.i)("api-addPageAction",(e,t,i,r)=>{this.addEvent({...i,eventType:"PageAction",timestamp:this.#j(e),timeSinceLoad:e/1e3,actionName:t,referrerUrl:this.referrerUrl,...a.RI&&{browserWidth:window.document.documentElement?.clientWidth,browserHeight:window.document.documentElement?.clientHeight}},r)},this.featureName,this.ee);let i=()=>{};a.RI&&e.init.user_actions.enabled&&(this.#D=new v,this.harvestOpts.beforeUnload=()=>i?.(this.#D.aggregationEvent),i=e=>{try{if(e?.event){const{target:t,timeStamp:i,type:r}=e.event,s={eventType:"UserAction",timestamp:this.#j(i),action:r,actionCount:e.count,actionDuration:e.relativeMs[e.relativeMs.length-1],actionMs:e.relativeMs,rageClick:e.rageClick,target:e.selectorPath,currentUrl:e.currentUrl,...(0,y.v)(window)&&{iframe:!0},...this.agentRef.init.user_actions.elementAttributes.reduce((i,r)=>{var s;return s=r,"window"!==e.selectorPath&&"document"!==e.selectorPath&&t instanceof HTMLElement&&t?.[s]&&(i[n(r)]=String(t[r]).trim().slice(0,128)),i},{}),...e.nearestTargetFields,...e.deadClick&&{deadClick:!0},...e.errorClick&&{errorClick:!0}};function n(e){return"tagName"===e&&(e="tag"),"className"===e&&(e="class"),"target".concat(e.charAt(0).toUpperCase()+e.slice(1))}this.addEvent(s),this.#B(s)}}catch(a){}},(0,u.i)("ua",e=>{i(this.#D.process(e,this.agentRef.init.user_actions.elementAttributes))},this.featureName,this.ee),(0,u.i)("navChange",()=>{this.#D.isLiveClick()},this.featureName,this.ee),(0,u.i)("uaXhr",()=>{this.#D.isLiveClick()},this.featureName,this.ee),(0,u.i)("uaErr",()=>this.#D.markAsErrorClick(),this.featureName,this.ee));const o=[...e.init.performance.capture_marks?["mark"]:[],...e.init.performance.capture_measures?["measure"]:[]];if(o.length)try{o.forEach(t=>{if(PerformanceObserver.supportedEntryTypes.includes(t)){new PerformanceObserver(i=>{i.getEntries().forEach(i=>{try{this.reportSupportabilityMetric("Generic/Performance/"+t+"/Seen");const r=e.init.performance.capture_detail?s(i.detail):{};function s(e){return null==e?{}:(0,b.a)(e)?function e(t,i="entryDetail"){let r={};return null==t||Object.keys(t).forEach(s=>{let n=i+"."+s;(0,b.a)(t[s])?Object.assign(r,e(t[s],n)):null!==t[s]&&void 0!==t[s]&&(r[n]=t[s])}),r}(e):{entryDetail:e}}this.addEvent({...r,eventType:"BrowserPerformance",timestamp:this.#j(i.startTime),entryName:i.name,entryDuration:i.duration,entryType:t})}catch(n){}})}).observe({buffered:!0,type:t})}})}catch(e){}a.RI&&e.init.performance.resources.enabled&&(0,u.i)("browserPerformance.resource",t=>{try{const{name:i,duration:r,...n}=t.toJSON();let o=!1;try{const t=new URL(i).hostname,r=t.includes("newrelic.com")||t.includes("nr-data.net")||t.includes("nr-local.net");if(this.agentRef.init.performance.resources.ignore_newrelic&&r)return;if(this.agentRef.init.performance.resources.asset_types.length&&!this.agentRef.init.performance.resources.asset_types.includes(n.initiatorType))return;o=t===a.gm?.location.hostname||e.init.performance.resources.first_party_domains.includes(t),o&&this.reportSupportabilityMetric("Generic/Performance/FirstPartyResource/Seen"),r&&this.reportSupportabilityMetric("Generic/Performance/NrResource/Seen")}catch(e){}this.reportSupportabilityMetric("Generic/Performance/Resource/Seen");const c={...n,eventType:"BrowserPerformance",timestamp:this.#j(n.startTime),entryName:(0,s.L)(i),entryDuration:r,firstParty:o};this.addEvent(c)}catch(e){this.ee.emit("internal-error",[e,"GenericEvents-Resource"])}},this.featureName,this.ee),(0,u.i)("api-measure",(e,t,i)=>{const{start:r,duration:s,customAttributes:n}=e,a={...n,eventType:"BrowserPerformance",timestamp:this.#j(r),entryName:t,entryDuration:s,entryType:"measure"};this.addEvent(a,i)},this.featureName,this.ee),e.init.feature_flags.includes("websockets")&&(0,u.i)("ws-complete",e=>{const t={...e,eventType:"WebSocket",timestamp:this.#j(e.timestamp),openedAt:this.#j(e.openedAt),closedAt:this.#j(e.closedAt)};this.reportSupportabilityMetric("WebSocket/Completed/Seen"),this.reportSupportabilityMetric("WebSocket/Completed/Bytes",(0,r.A)(t).length),this.addEvent(t)},this.featureName,this.ee),this.drain()})}addEvent(e={},t){if(!e||!Object.keys(e).length)return;if(!e.eventType)return void(0,c.R)(44);for(let t in e){let i=e[t];e[t]=i&&"object"==typeof i?(0,r.A)(i):i}const i={timestamp:this.#j((0,h.t)()),pageUrl:(0,s.L)(""+a.m),currentUrl:(0,s.L)(""+location),...(0,T.U)(t,this)},n={...this.agentRef.info.jsAttributes||{},...i,...e};this.events.add(n)}serializer(e){return(0,l.G)({ins:e},this.obfuscator.obfuscateString.bind(this.obfuscator),"string")}queryStringsBuilder(){return{ua:this.agentRef.info.userAttributes,at:this.agentRef.info.atts}}#j(e){return Math.floor(this.agentRef.runtime.timeKeeper.correctRelativeTimestamp(e))}#P(){const e="Config/Performance/";this.agentRef.init.performance.capture_marks&&this.reportSupportabilityMetric(e+"CaptureMarks/Enabled"),this.agentRef.init.performance.capture_measures&&this.reportSupportabilityMetric(e+"CaptureMeasures/Enabled"),this.agentRef.init.performance.resources.enabled&&this.reportSupportabilityMetric(e+"Resources/Enabled"),0!==this.agentRef.init.performance.resources.asset_types?.length&&this.reportSupportabilityMetric(e+"Resources/AssetTypes/Changed"),0!==this.agentRef.init.performance.resources.first_party_domains?.length&&this.reportSupportabilityMetric(e+"Resources/FirstPartyDomains/Changed"),!1===this.agentRef.init.performance.resources.ignore_newrelic&&this.reportSupportabilityMetric(e+"Resources/IgnoreNewrelic/Changed")}#B(e){e.rageClick&&this.reportSupportabilityMetric("UserAction/RageClick/Seen"),e.deadClick&&this.reportSupportabilityMetric("UserAction/DeadClick/Seen"),e.errorClick&&this.reportSupportabilityMetric("UserAction/ErrorClick/Seen")}}},8766:(e,t,i)=>{i.d(t,{setupAgentSession:()=>I});var r=i(1687),s=i(7836),n=i(3606),a=i(9566),o=i(944),c=i(3304),h=i(9579),u=i(6154),l=i(2614),d=i(2843),p=i(6389);class g extends h.M{constructor(e,t){super(e,t),this.onPause="function"==typeof e.onPause?e.onPause:()=>{},this.onRefresh="function"==typeof e.onRefresh?e.onRefresh:()=>{},this.onResume="function"==typeof e.onResume?e.onResume:()=>{},this.readStorage=e.readStorage,this.remainingMs=void 0,e.refreshEvents||(e.refreshEvents=["click","keydown","scroll"]);try{this.abortController=new AbortController}catch(e){}if(u.RI&&e.ee){if(e.ee){this.ee=e.ee;const t=(0,p.s)(this.refresh.bind(this),500,{leading:!0});this.refreshHandler=i=>{e.refreshEvents.includes(i?.[0]?.type)&&t()},e.ee.on("fn-end",this.refreshHandler)}(0,d.u)(e=>{"hidden"===e?this.pause():this.resume()},!1,!1,this.abortController?.signal)}}abort(){this.clear(),this.abortController?.abort(),this.refreshHandler&&(this.ee.removeEventListener("fn-end",this.refreshHandler),this.refreshHandler=this.ee=null)}pause(){this.onPause(),clearTimeout(this.timer),this.remainingMs=this.initialMs-(Date.now()-this.startTimestamp)}resume(){try{const t=this.readStorage(),i="string"==typeof t?JSON.parse(t):t;e(i.expiresAt)||e(i.inactiveAt)?this.end():(this.refresh(),this.onResume())}catch(e){this.end()}function e(e){return Date.now()>e}}refresh(e,t){this.clear(),this.timer=this.create(e,t),this.startTimestamp=Date.now(),this.remainingMs=void 0,this.onRefresh()}}var m=i(8139),f=i(8122),v=i(9908),y=i(3969),b=i(860),T=i(3878),S=i(993);const R={value:"",inactiveAt:0,expiresAt:0,updatedAt:Date.now(),sessionReplayMode:l.g.OFF,sessionReplaySentFirstChunk:!1,sessionTraceMode:l.g.OFF,traceHarvestStarted:!1,loggingMode:S.A$.OFF,logApiMode:S.A$.OFF,serverTimeDiff:null,custom:{},numOfResets:0,consent:!1};class w{constructor(e){const{agentIdentifier:t,key:i,storage:r}=e;if(!t||!i||!r)throw new Error("Missing required field(s):".concat(t?"":" agentID").concat(i?"":" key").concat(r?"":" storage"));this.agentIdentifier=t,this.storage=r,this.state={},this.key=i,this.ee=s.ee.get(t),(0,m.u)(this.ee),this.setup(e),u.RI&&(0,T.sp)("storage",e=>{if(e.key===this.lookupKey){const t="string"==typeof e.newValue?JSON.parse(e.newValue):e.newValue;this.sync(t),this.ee.emit(l.tS.UPDATE,[l.iL.CROSS_TAB,this.state])}})}setup({value:e=(0,a.LA)(16),expiresMs:t=l.wk,inactiveMs:i=l.BB,numOfResets:r=0}){const s={serverTimeDiff:this.state.serverTimeDiff||R.serverTimeDiff,consent:this.state.consent||R.consent};this.state={},this.sync({...R,...s}),this.state.value=e,this.expiresMs=t,this.inactiveMs=i;const n=this.read();t?(this.state.expiresAt=n?.expiresAt||this.getFutureTimestamp(t),this.state.numOfResets=n?.numOfResets||r,this.expiresTimer=new h.M({onEnd:()=>{this.collectSM("expired"),this.collectSM("duration"),this.reset()}},this.state.expiresAt-Date.now())):this.state.expiresAt=1/0,i?(this.state.inactiveAt=n?.inactiveAt||this.getFutureTimestamp(i),this.inactiveTimer=new g({onEnd:()=>{this.collectSM("inactive"),this.collectSM("duration"),this.reset()},onRefresh:this.refresh.bind(this),onResume:()=>{this.ee.emit(l.tS.RESUME)},onPause:()=>{this.initialized&&this.ee.emit(l.tS.PAUSE),this.write((0,f.a)(this.state,R))},ee:this.ee,refreshEvents:["click","keydown","scroll"],readStorage:()=>this.storage.get(this.lookupKey)},this.state.inactiveAt-Date.now())):this.state.inactiveAt=1/0,this.isNew||=!Object.keys(n).length,this.isNew?this.write((0,f.a)(this.state,R),!0):this.sync(n),this.initialized=!0,this.ee.emit(l.tS.STARTED,[this.isNew])}get lookupKey(){return"".concat(l.H3,"_").concat(this.key)}sync(e){Object.assign(this.state,e)}read(){try{const e=this.storage.get(this.lookupKey);if(!e)return{};const t="string"==typeof e?JSON.parse(e):e;return this.isInvalid(t)?{}:this.isExpired(t.expiresAt)?(this.collectSM("expired"),this.collectSM("duration",t,!0),this.reset()):this.isExpired(t.inactiveAt)?(this.collectSM("inactive"),this.collectSM("duration",t,!0),this.reset()):t}catch(e){return(0,o.R)(10,e),{}}}write(e){try{if(!e||"object"!=typeof e)return;return e.updatedAt=Date.now(),this.sync(e),this.storage.set(this.lookupKey,(0,c.A)(this.state)),this.ee.emit(l.tS.UPDATE,[l.iL.SAME_TAB,this.state]),e}catch(e){return(0,o.R)(11,e),null}}reset(){try{return(0,o.R)(66),this.initialized&&(this.ee.emit(l.tS.RESET),this.state.numOfResets++),this.storage.remove(this.lookupKey),this.inactiveTimer?.abort?.(),this.expiresTimer?.clear?.(),delete this.isNew,this.setup({agentIdentifier:this.agentIdentifier,key:this.key,storage:this.storage,expiresMs:this.expiresMs,inactiveMs:this.inactiveMs,numOfResets:this.state.numOfResets}),this.read()}catch(e){return{}}}refresh(){const e=this.read();this.write({...e,inactiveAt:this.getFutureTimestamp(this.inactiveMs)})}isExpired(e){return Date.now()>e}isInvalid(e){return!Object.keys(R).every(t=>Object.keys(e).includes(t))}collectSM(e,t,i){let r,s;"duration"===e&&(r=this.getDuration(t,i),s="Session/Duration/Ms"),"expired"===e&&(s="Session/Expired/Seen"),"inactive"===e&&(s="Session/Inactive/Seen"),s&&(0,v.p)(y.xV,[s,r],void 0,b.K7.metrics,this.ee)}getDuration(e=this.state,t){const i=e.expiresAt-this.expiresMs;return(t?Date.now():e.updatedAt)-i}getFutureTimestamp(e){return Date.now()+e}syncCustomAttribute(e,t){if(u.RI)if(null===t){const t=this.read();t.custom&&(delete t.custom[e],this.write({...t}))}else{const i=this.read();this.custom={...i?.custom||{},[e]:t},this.write({...i,custom:this.custom})}}}class E{get(e){try{return localStorage.getItem(e)||void 0}catch(e){return""}}set(e,t){try{return null==t?this.remove(e):localStorage.setItem(e,t)}catch(e){}}remove(e){try{localStorage.removeItem(e)}catch(e){}}}var A=i(2555);var M=i(4261),k=i(1738);function I(e){if(e.runtime.session)return e.runtime.session;const t=e.init.session;e.runtime.session=new w({agentIdentifier:e.agentIdentifier,key:l.uh,storage:new E,expiresMs:t?.expiresMs,inactiveMs:t?.inactiveMs});const i=e.runtime.session.state.custom;i&&Object.keys(i).length&&(e.info=(0,A.D)({...e.info,jsAttributes:{...i,...e.info.jsAttributes}})),e.runtime.jsAttributesMetadata=function(e,t){const i=e[t]??={},r={bytes:Object.keys(i).reduce((e,t)=>e+t.length+(0,c.A)(i[t]).length,0)};return e[t]=new Proxy(i,{set:(e,t,i)=>(r.bytes+=t.length+(0,c.A)(i).length,e[t]=i,!0),deleteProperty:(e,t)=>(r.bytes-=t.length+(0,c.A)(e[t]).length,delete e[t])}),r}(e.info,"jsAttributes");const a=s.ee.get(e.agentIdentifier);return(0,n.i)("api-setCustomAttribute",(t,i,r)=>{e.runtime.session.syncCustomAttribute(i,r)},"session",a),(0,n.i)("api-setUserId",(t,i,r)=>{e.runtime.session.syncCustomAttribute(i,r)},"session",a),(0,n.i)("api-setUserIdAndResetSession",t=>{e.runtime.session.reset(),(0,v.p)(y.xV,["API/"+M.Dl+"/resetSession/called"],void 0,b.K7.metrics,a),(0,k.U)(e,"enduser.id",t,M.Dl,!0)},"session",a),(0,n.i)("api-consent",t=>{e.runtime.session.write({consent:void 0===t||t})},"session",a),(0,r.Ze)(e.agentIdentifier,"session"),e.runtime.session}},8771:(e,t,i)=>{i.d(t,{Z:()=>n});var r=i(3304),s=i(7699);class n{#_=[];#H=0;#U;#K;constructor(e=s.It,t){this.maxPayloadSize=e,this.featureAgg=t}get length(){return this.#_.length}isEmpty(){return 0===this.#_.length}get(){return this.#_}byteSize(){return this.#H}wouldExceedMaxSize(e){return this.#H+e>this.maxPayloadSize}add(e,t){const i=t||(0,r.A)(e)?.length||0;if(this.#H+i>this.maxPayloadSize){const e=e=>"EventBuffer/".concat(e,"/Dropped/Bytes");return this.featureAgg?.reportSupportabilityMetric(e(this.featureAgg.featureName),i),this.featureAgg?.reportSupportabilityMetric(e("Combined"),i),!1}return this.#_.push(e),this.#H+=i,this.featureAgg?.decideEarlyHarvest(),!0}merge(e,t){if(this.isEmpty()||!e)return!1;const i=this.#_.findIndex(e);return!(i<0)&&(this.#_[i]={...this.#_[i],...t},!0)}clear(e={}){void 0!==e.clearBeforeTime&&e.timestampKey?this.#_=this.#_.filter(t=>t[e.timestampKey]>=e.clearBeforeTime):void 0!==e.clearBeforeIndex?this.#_=this.#_.slice(e.clearBeforeIndex):this.#_=[],this.#H=this.#_.length&&(0,r.A)(this.#_)?.length||0}save(){this.#U=this.#_,this.#K=this.#H}clearSave(){this.#U=void 0,this.#K=void 0}reloadSave(){this.#U&&(this.#K+this.#H>this.maxPayloadSize||(this.#_=[...this.#U,...this.#_],this.#H=this.#K+this.#H))}}},9422:(e,t,i)=>{i.d(t,{Jf:()=>n,mj:()=>s,nF:()=>a});var r=i(6154);function s({isFinalHarvest:e=!1}={}){return e&&r.RI?o:"undefined"!=typeof XMLHttpRequest?a:n}function n({url:e,body:t=null,method:i="POST",headers:r=[{key:"content-type",value:"text/plain"}]}){const s={};for(const e of r)s[e.key]=e.value;return fetch(e,{headers:s,method:i,body:t,credentials:"include"})}function a({url:e,body:t=null,sync:i,method:r="POST",headers:s=[{key:"content-type",value:"text/plain"}]}){const n=new XMLHttpRequest;n.open(r,e,!i);try{"withCredentials"in n&&(n.withCredentials=!0)}catch(e){}return s.forEach(e=>{n.setRequestHeader(e.key,e.value)}),n.send(t),n}function o({url:e,body:t}){try{return window.navigator.sendBeacon.bind(window.navigator)(e,t)}catch(e){return!1}}},9579:(e,t,i)=>{i.d(t,{M:()=>r});class r{constructor(e,t){if(!e.onEnd)throw new Error("onEnd handler is required");if(!t)throw new Error("ms duration is required");this.onEnd=e.onEnd,this.initialMs=t,this.startTimestamp=Date.now(),this.timer=this.create(this.onEnd,t)}create(e,t){return this.timer&&this.clear(),setTimeout(()=>e?e():this.onEnd(),t||this.initialMs)}clear(){clearTimeout(this.timer),this.timer=null}end(){this.clear(),this.onEnd()}isValid(){return this.initialMs-(Date.now()-this.startTimestamp)>0}}},9917:(e,t,i)=>{i.r(t),i.d(t,{Aggregate:()=>R});var r=i(5519),s=i(3606),n=i(9908),a=i(782),o=i(860),c=i(4537),h=i(7226),u=i(1083),l=i(6773),d=i(6154);const p=new l.x(u.w.CUMULATIVE_LAYOUT_SHIFT,e=>e);d.RI&&(0,h.IN)(({value:e,attribution:t,id:i})=>{const r={metricId:i,largestShiftTarget:t.largestShiftTarget,largestShiftTime:t.largestShiftTime,largestShiftValue:t.largestShiftValue,loadState:t.loadState};p.update({value:e,attrs:r})},{reportAllChanges:!0});var g=i(5344),m=i(5181);const f=new l.x(u.w.INTERACTION_TO_NEXT_PAINT);d.RI&&(0,h.rH)(({value:e,attribution:t,id:i})=>{const r={metricId:i,eventTarget:t.interactionTarget,eventTime:t.interactionTime,interactionTarget:t.interactionTarget,interactionTime:t.interactionTime,interactionType:t.interactionType,inputDelay:t.inputDelay,nextPaintTime:t.nextPaintTime,processingDuration:t.processingDuration,presentationDelay:t.presentationDelay,loadState:t.loadState};f.update({value:e,attrs:r})});var v=i(9119);const y=new l.x(u.w.LARGEST_CONTENTFUL_PAINT);d.RI&&(0,h.fK)(({value:e,attribution:t})=>{if(d.mw||y.isValid)return;let i;const r=t.lcpEntry;r&&(i={size:r.size,eid:r.id,element:t.element,timeToFirstByte:t.timeToFirstByte,resourceLoadDelay:t.resourceLoadDelay,resourceLoadDuration:t.resourceLoadDuration,resourceLoadTime:t.resourceLoadDuration,elementRenderDelay:t.elementRenderDelay,...t.navigationEntry&&{pageUrl:(0,v.L)(t.navigationEntry.name)}},t.url&&(i.elUrl=(0,v.L)(t.url)),r.element?.tagName&&(i.elTag=r.element.tagName)),y.update({value:e,attrs:i})});var b=i(2843),T=i(1528),S=i(3592);class R extends c.r{static featureName=a.T;#z=({name:e,value:t,attrs:i})=>{this.addTiming(e,t,i)};constructor(e){super(e,a.T),this.curSessEndRecorded=!1,this.firstIxnRecorded=!1,super.customAttributesAreSeparate=!0,(0,s.i)("docHidden",e=>this.endCurrentSession(e),this.featureName,this.ee),(0,s.i)("winPagehide",e=>this.addTiming("unload",e,null),this.featureName,this.ee),this.waitForFlags([]).then(()=>{m.J.subscribe(this.#z),g.j.subscribe(this.#z),y.subscribe(this.#z),f.subscribe(this.#z),S.Y.subscribe(({name:e,value:t})=>{this.addTiming(e,Math.round(t))}),(0,b.u)(()=>{const{name:e,value:t,attrs:i}=p.current;void 0!==t&&this.addTiming(e,1e3*t,i)},!0,!0),this.drain()})}endCurrentSession(e){this.curSessEndRecorded||(this.addTiming("pageHide",e,null),this.curSessEndRecorded=!0)}addTiming(e,t,i){(function(e){var t=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(!t)return;t.type&&(e["net-type"]=t.type);t.effectiveType&&(e["net-etype"]=t.effectiveType);t.rtt&&(e["net-rtt"]=t.rtt);t.downlink&&(e["net-dlink"]=t.downlink)})(i=i||{}),e!==u.w.CUMULATIVE_LAYOUT_SHIFT&&p.current.value>=0&&(i.cls=p.current.value);const r={name:e,value:t,attrs:i};return this.events.add(r),(0,n.p)("pvtAdded",[e,t,i],void 0,o.K7.sessionTrace,this.ee),this.checkForFirstInteraction(),r}checkForFirstInteraction(){if(this.firstIxnRecorded||d.mw||!performance)return;const e=performance.getEntriesByType("first-input")[0];e&&(this.firstIxnRecorded=!0,this.addTiming("fi",e.startTime,{type:e.name,eventTarget:(0,T.t)(e.target),loadState:document.readyState}))}appendGlobalCustomAttributes(e){var t=e.attrs||{},i=["size","eid","cls","type","fid","elTag","elUrl","net-type","net-etype","net-rtt","net-dlink"];Object.entries(this.agentRef.info.jsAttributes||{}).forEach(([e,r])=>{i.indexOf(e)<0&&(t[e]=r)})}preHarvestChecks(){return this.checkForFirstInteraction(),super.preHarvestChecks()}serializer(e){if(!e?.length)return"";for(var t=(0,r.uJ)(this.agentRef.runtime.obfuscator),i="bel.6;",s=0;s0&&(i+=(0,r.sH)(a.length)+";"+a.join(";")),s+1