1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[688],{3279:(t,e,r)=>{let n;function i(t){return c(t).segments_count}function a(t){c(t).segments_count+=1}function o(t){c(t).records_count+=1}function s(t,e){c(t).segments_total_raw_size+=e}function l(t){return n?.get(t)}function c(t){let e;return n||(n=new Map),n.has(t)?e=n.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},n.set(t,e),n.size>1e3&&function(){if(!n)return;let t=n.keys().next().value;t&&n.delete(t)}()),e}r.d(e,{$1:()=>o,H5:()=>a,K_:()=>i,L7:()=>s,lv:()=>l})},5492:(t,e,r)=>{let n,i,a,o,s,l;r.d(e,{eT:()=>t6,o:()=>t8,Rg:()=>th,$m:()=>t2,NT:()=>t5,Wd:()=>t3,bb:()=>c,K:()=>u,do:()=>tU,xC:()=>ep,DL:()=>_,K$:()=>em,wP:()=>nC,wI:()=>tM,W3:()=>tp,PJ:()=>t9,dT:()=>ee,$4:()=>tD,Gn:()=>el,zL:()=>ec,dx:()=>nS,rf:()=>eo,pB:()=>ed,g1:()=>eu,nS:()=>tI,XS:()=>tO,p_:()=>tN,AB:()=>nw,jR:()=>et,ei:()=>tT,ap:()=>en,Ie:()=>er});let c={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",VIEW_UPDATE:"view_update",RESOURCE:"resource",VITAL:"vital"},u={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},d="initial_load",f="route_change",p="bf_cache",m="custom",h="error_click",g="dead_click",_={DURATION:"duration",OPERATION_STEP:"operation_step"};function v(t,e){e.lastIndex=0;let r=e.exec(t);if(!r)return;let[n,i]=r;return i||n}let y=/[a-zA-Z_$]/,b=/[a-zA-Z0-9_$]/,w=/[0-9]/,E=/[a-fA-F0-9]/,S={0:()=>!1,1:()=>!1,2:t=>y.test(t),3:t=>b.test(t),4:t=>"."===t,5:t=>"["===t,6:t=>"]"===t,7:t=>w.test(t),8:t=>"'\"".includes(t),9:(t,e)=>t===e.quote,10:()=>!0,11:t=>"\\"===t,12:(t,e)=>void 0===e.escapeSequence?`${e.quote}/\\bfnrtu`.includes(t):!!e.escapeSequence.startsWith("u")&&e.escapeSequence.length<5&&E.test(t)},k={0:[2,5],1:[],2:[3,4,5,1],3:[3,4,5,1],4:[2],5:[8,7],6:[4,5,1],7:[7,6],8:[11,9,10],9:[6],10:[11,9,10],11:[12],12:[12,11,9,10]},A=[2,3,7,10],C=[4,5,6],R={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:" "};var T,x,I,O=r(38208),N=r(1142),M=r(59245),D=r(4211);let L={hit:"success",miss:"missing",error:"failure"};function P(t,e){try{localStorage.setItem(t,JSON.stringify(e))}catch{}}var V=r(80781),U=r(6677),z=r(13342),F=r(23890),$=r(79757),q=r(2176);let j=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","telemetrySampleRate","trackAnonymousUser","trackUserInteractions","trackResources","trackLongTasks","traceContextInjection","actionNameAttribute","defaultPrivacyLevel","enablePrivacyForActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];async function W(t,e){let r,n=G(),i=await K(t);return i.ok?(n.increment("fetch","success"),r=B(t,i.value,e,n)):(n.increment("fetch","failure"),V.V.error(i.error)),(0,U.Gk)(U.Xf.REMOTE_CONFIGURATION_METRIC_NAME,{metrics:n.get()}),r}function B(t,e,r,n){let i={...t};if(e.rum){let t=e.rum;j.forEach(e=>{e in t&&(i[e]=a(t[e]))}),Object.keys(r).forEach(e=>{var n;void 0!==t[e]&&(n=r[e],t[e].forEach(({key:t,value:e})=>{n.setContextProperty(t,a(e))}))})}return e.profiling?.sampleRate!==void 0&&(i.profilingSampleRate=e.profiling.sampleRate),i;function a(t){if(Array.isArray(t))return t.map(a);if((0,N.OE)(t)){if("rcSerializedType"in t){let r=t.rcSerializedType;switch(r){case"string":return t.value;case"regex":return H(t.value);case"dynamic":var e=t;let i,a=e.strategy;switch(a){case"cookie":i=function({name:t}){let e=(0,z.Ri)(t);return n.increment("cookie",void 0!==e?"success":"missing"),e}(e);break;case"dom":i=function({selector:t,attribute:e}){var r,i;let a;try{a=document.querySelector(t)}catch{V.V.error(`Invalid selector in the remote configuration: '${t}'`),n.increment("dom","failure");return}if(!a)return void n.increment("dom","missing");if(r=a,i=e,"password"===r.getAttribute("type")&&"value"===i){V.V.error(`Forbidden element selected by the remote configuration: '${t}'`),n.increment("dom","failure");return}let o=void 0!==e?a.getAttribute(e):a.textContent;return null===o?void n.increment("dom","missing"):(n.increment("dom","success"),o)}(e);break;case"js":i=function({path:t}){let e=window,r=function(t){let e,r=[],n=0,i={quote:void 0,escapeSequence:void 0},a="";for(let l of t){if(!(e=k[n].find(t=>S[t](l,i))))return[];if(void 0!==i.escapeSequence&&12!==e){var o,s;if(o=i.escapeSequence,!("\"'/\\bfnrt".includes(o)||o.startsWith("u")&&5===o.length))return[];a+=(s=i.escapeSequence).startsWith("u")?String.fromCharCode(parseInt(s.slice(1),16)):R[s],i.escapeSequence=void 0}A.includes(e)?a+=l:C.includes(e)&&""!==a?(r.push(a),a=""):12===e?i.escapeSequence=i.escapeSequence?`${i.escapeSequence}${l}`:l:8===e?i.quote=l:9===e&&(i.quote=void 0),n=e}return k[n].includes(1)?(""!==a&&r.push(a),r):[]}(t);if(0===r.length){V.V.error(`Invalid JSON path in the remote configuration: '${t}'`),n.increment("js","failure");return}for(let i of r){if(!(i in e))return void n.increment("js","missing");try{e=e[i]}catch(e){V.V.error(`Error accessing: '${t}'`,e),n.increment("js","failure");return}}return n.increment("js","success"),e}(e);break;case"localStorage":i=function({key:t}){let e;try{e=localStorage.getItem(t)}catch{n.increment("localStorage","failure");return}return n.increment("localStorage",null!==e?"success":"missing"),e??void 0}(e);break;default:V.V.error(`Unsupported remote configuration: "strategy": "${a}"`);return}let o=e.extractor;return void 0!==o&&"string"==typeof i?function(t,e){let r=H(t.value);if(void 0!==r)return v(e,r)}(o,i):i;default:V.V.error(`Unsupported remote configuration: "rcSerializedType": "${r}"`);return}}return(0,M.LG)(t,a)}return t}}function G(){let t={fetch:{}};return{get:()=>t,increment:(e,r)=>{t[e]||(t[e]={}),t[e][r]||(t[e][r]=0),t[e][r]=t[e][r]+1}}}function H(t){try{return new RegExp(t)}catch{V.V.error(`Invalid regex in the remote configuration: '${t}'`)}}async function K(t){let e;try{e=await (0,F.h)(function(t){if(t.remoteConfigurationProxy)return t.remoteConfigurationProxy;let e=Z(t);return(0,q.Hg)({site:t.site,path:`/v1/${encodeURIComponent(e)}.json`,subdomain:"sdk-configuration"})}(t))}catch{e=void 0}if(!e?.ok)return{ok:!1,error:Error("Error fetching the remote configuration.")};let r=await e.json();return r.rum||r.profiling?{ok:!0,value:r,lastModified:function(t){let e=t.headers?.get("last-modified");if(!e)return;let r=new Date(e).getTime();return isNaN(r)?void 0:r}(e)}:{ok:!1,error:Error("No remote configuration for RUM.")}}function Z(t){return t.remoteConfiguration?.id??t.remoteConfigurationId}var Q=r(9571),X=r(26042),Y=r(43456),J=r(66958);function tt(t,e){return+t.toFixed(e)}function te(t){return"number"==typeof t}var tr=r(25115),tn=r(64449);let ti=["tracecontext","datadog"],ta=["cache-control","etag","age","expires","content-type","content-encoding","vary","content-length","server-timing","x-cache","cf-cache-status","x-vercel-cache"],to={...Q.hF,applicationId:{type:"string",required:!0},actionNameAttribute:{type:"string"},workerUrl:{type:"string"},subdomain:{type:"string"},sessionReplaySampleRate:{type:"percentage",default:0},traceSampleRate:{type:"percentage",default:100},profilingSampleRate:{type:"percentage",default:0},compressIntakeRequests:{type:"boolean",default:!1},trackUserInteractions:{type:"boolean",default:!0,strict:!1},trackResources:{type:"boolean",default:!0,strict:!1},trackLongTasks:{type:"boolean",default:!0,strict:!1},trackViewsManually:{type:"boolean",default:!1,strict:!1},betaEnableViewUpdates:{type:"boolean"},betaTrackWebSockets:{type:"boolean",default:!1,strict:!1}
1,enablePrivacyForActionName:{type:"boolean",default:!0},propagateTraceBaggage:{type:"boolean",default:!0},startSessionReplayRecordingManually:{type:"boolean",default:!1,strict:!1},sessionReplayCanvasRecording:{type:"schema",schema:{enable:{type:"boolean",required:!0},maxFramesPerSecond:{type:"number",min:0,max:5,default:1},hashingMaxDimension:{type:"number",min:1,max:100,default:100},maxImageDimension:{type:"number",min:1,max:1e3,default:1e3}}},defaultPrivacyLevel:{type:"enum",values:Q.WA,default:Q.WA.MASK_USER_INPUT,strict:!1},traceContextInjection:{type:"enum",values:Q.uT,default:Q.uT.SAMPLED,strict:!1},excludedActivityUrls:{type:"match-option",multiple:!0,default:[]},allowedTracingUrls:{type:"union",multiple:!0,strict:!1,default:[],variants:[{type:"match-option"},{type:"schema",schema:{match:{type:"match-option",required:!0},propagatorTypes:{type:"enum",values:["datadog","b3","b3multi","tracecontext"],multiple:!0,strict:!1,default:ti}}}]},plugins:{type:"schema",multiple:!0,strict:!1,default:[],schema:{name:{type:"string",required:!0},getConfigurationTelemetry:{type:"function",strict:!1,signature:void 0},onInit:{type:"function",strict:!1,signature:void 0},onRumStart:{type:"function",strict:!1,signature:void 0}}},trackFeatureFlagsForEvents:{type:"enum",values:["vital","action","long_task","resource"],multiple:!0,strict:!1,default:[]}};function ts(t,e,r){return!(0,X.d0)()&&(t??!1)}function tl(t){return(0,N.Vl)(t)?{match:t,propagatorTypes:ti}:(0,N.OE)(t)&&(0,N.Vl)(t.match)&&(null===t.propagatorTypes||void 0===t.propagatorTypes||Array.isArray(t.propagatorTypes))?{match:t.match,propagatorTypes:t.propagatorTypes||ti}:void 0}let tc=["request","response","any"];var tu=r(89312),td=r(18658),tf=r(5170);function tp(){let t,e=window;if(e.Zone&&(t=(0,td.W)(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){let r=new e.MutationObserver(tf.l);t=(0,td.W)(r,"originalInstance")?.constructor}return t||(t=e.MutationObserver),t}var tm=r(37457);let th=((T={})[T.AUTO_ACTION_COMPLETED=0]="AUTO_ACTION_COMPLETED",T[T.BEFORE_VIEW_CREATED=1]="BEFORE_VIEW_CREATED",T[T.VIEW_CREATED=2]="VIEW_CREATED",T[T.BEFORE_VIEW_UPDATED=3]="BEFORE_VIEW_UPDATED",T[T.VIEW_UPDATED=4]="VIEW_UPDATED",T[T.VIEW_ENDED=5]="VIEW_ENDED",T[T.AFTER_VIEW_ENDED=6]="AFTER_VIEW_ENDED",T[T.REQUEST_STARTED=7]="REQUEST_STARTED",T[T.REQUEST_COMPLETED=8]="REQUEST_COMPLETED",T[T.WEBSOCKET_COMPLETED=9]="WEBSOCKET_COMPLETED",T[T.SESSION_EXPIRED=10]="SESSION_EXPIRED",T[T.SESSION_RENEWED=11]="SESSION_RENEWED",T[T.PREPARE_URGENT_FLUSH=12]="PREPARE_URGENT_FLUSH",T[T.RAW_RUM_EVENT_COLLECTED=13]="RAW_RUM_EVENT_COLLECTED",T[T.RUM_EVENT_COLLECTED=14]="RUM_EVENT_COLLECTED",T[T.RAW_ERROR_COLLECTED=15]="RAW_ERROR_COLLECTED",T[T.ACTION_STARTED=16]="ACTION_STARTED",T[T.DURATION_VITAL_STARTED=17]="DURATION_VITAL_STARTED",T),tg=tm.D;var t_=r(2816),tv=r(24894);let ty=t_.AQ;var tb=r(42979),tw=r(54653),tE=r(70400);let tS=[[tw.v.DOCUMENT,t=>"navigation"===t],[tw.v.XHR,t=>"xmlhttprequest"===t],[tw.v.FETCH,t=>"fetch"===t],[tw.v.BEACON,t=>"beacon"===t],[tw.v.CSS,(t,e)=>/\.css$/i.test(e)],[tw.v.JS,(t,e)=>/\.js$/i.test(e)],[tw.v.IMAGE,(t,e)=>["image","img","icon"].includes(t)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(e)],[tw.v.FONT,(t,e)=>null!==/\.(woff|eot|woff2|ttf)$/i.exec(e)],[tw.v.MEDIA,(t,e)=>["audio","video"].includes(t)||null!==/\.(mp3|mp4)$/i.exec(e)]];function tk(...t){for(let e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}function tA(t,e,r){if(t<=e&&e<=r)return{duration:(0,O.Zj)((0,O.vk)(e,r)),start:(0,O.Zj)((0,O.vk)(t,e))}}function tC(t){return t&&(!(0,tE.wo)(t)||(0,Y.sr)(Y.R9.TRACK_INTAKE_REQUESTS))}let tR=/data:(.+)?(;base64)?,/g;function tT(t,e=24e3){if(t.length<=e||!t.startsWith("data:"))return t;let r=t.substring(0,100).match(tR);return r?`${r[0]}[...]`:t}function tx(t){return t.nodeType===Node.TEXT_NODE}function tI(t){return t.nodeType===Node.ELEMENT_NODE}function tO(t){return tI(t)&&!!t.shadowRoot}function tN(t){return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&tI(t.host)}function tM(t,e){let r=t.firstChild;for(;r;)e(r),r=r.nextSibling;tO(t)&&e(t.shadowRoot)}function tD(t){return tN(t)?t.host:t.parentNode}function tL(t){if(t.parentElement)return t.parentElement;let e=t.parentNode;return e&&tN(e)?e.host:null}var tP=r(74864),tV=r(69419);let tU=((x={}).EVENT="event",x.FIRST_INPUT="first-input",x.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",x.LAYOUT_SHIFT="layout-shift",x.LONG_TASK="longtask",x.LONG_ANIMATION_FRAME="long-animation-frame",x.NAVIGATION="navigation",x.PAINT="paint",x.RESOURCE="resource",x.VISIBILITY_STATE="visibility-state",x);function tz(t){return new tu.cP(e=>{let r,i=t=>{let r=t.filter(t=>{var e;return!("resource"===(e=t).entryType&&(!tC(e.name)||!(e.duration>=0)))});r.length>0&&e.notify(r)},a=!0,o=new PerformanceObserver((0,$.dm)(t=>{a?r=(0,tP.wg)(()=>i(t.getEntries())):i(t.getEntries())}));return o.observe(t),a=!1,!n&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(n=(0,tV.q2)(performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()}
1)),()=>{o.disconnect(),(0,tP.DJ)(r)}})}function tF(t){return PerformanceObserver.supportedEntryTypes.includes(t)}let t$="Masked Element",tq=["data-dd-action-name","data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],tj=[tZ,tH],tW=[tZ,function(t){if("BODY"===t.tagName)return;let e=t.classList;for(let r=0;r<e.length;r+=1){let n=e[r];if(!tG(n))return`${CSS.escape(t.tagName)}.${CSS.escape(n)}`}},tK];function tB(t,e){if(!t.isConnected)return;let r=function(t){let e=[],r=t;for(;r;){let t=r.getRootNode();if(e.push({rootNode:t,target:r}),tN(t))r=t.host;else break}return e.reverse()}(t),n=[];for(let{rootNode:t,target:i}of r){let r=function(t,e,r){let n,i=t;for(;i&&"HTML"!==i.nodeName;){let t=tY(i,e,tj,tJ,r,n);if(t)return t1(t,n);n=t1(tY(i,e,tW,t0,r,n)||function(t){let e=tX(t);return`${CSS.escape(t.tagName)}:nth-of-type(${e})`}(i),n),i=i.parentElement}return n}(i,t,e);if(!r)return;n.push(r)}return n.join("::shadow ")}function tG(t){return/[0-9]/.test(t)}function tH(t){if(t.id&&!tG(t.id))return`#${CSS.escape(t.id)}`}function tK(t){return CSS.escape(t.tagName)}function tZ(t,e){if(e){let t=r(e);if(t)return t}for(let t of tq){let e=r(t);if(e)return e}function r(e){if(t.hasAttribute(e))return`${CSS.escape(t.tagName)}${tQ(e,t.getAttribute(e))}`}}function tQ(t,e){return`[${t}="${CSS.escape(e)}"]`}function tX(t){let e=t.parentNode.firstElementChild,r=1;for(;e&&e!==t;)e.tagName===t.tagName&&(r+=1),e=e.nextElementSibling;return r}function tY(t,e,r,n,i,a){for(let o of r){let r=o(t,i);if(r&&n(t,e,r,a))return r}}function tJ(t,e,r,n){return 1===e.querySelectorAll(t1(r,n)).length}function t0(t,e,r,n){let i;if(void 0===n)i=t=>t.matches(r);else{let t=t1(`${r}:scope`,n);i=e=>null!==e.querySelector(t)}let a=t.previousElementSibling;for(;a;){if(i(a))return!1;a=a.previousElementSibling}for(a=t.nextElementSibling;a;){if(i(a))return!1;a=a.nextElementSibling}return!0}function t1(t,e){return e?`${t}>${e}`:t}let t2={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:Q.WA.ALLOW,MASK:Q.WA.MASK,MASK_USER_INPUT:Q.WA.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:Q.WA.MASK_UNLESS_ALLOWLISTED},t5="data-dd-privacy",t3="hidden",t8="***",t6="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",t4={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function t7(t){return`[${t5}="${t}"], .dd-privacy-${t}`}function t9(t,e,r){if(r?.has(t))return r.get(t);let n=tD(t),i=n?t9(n,e,r):e,a=et(ee(t),i);return r&&r.set(t,a),a}function et(t,e){switch(e){case t2.HIDDEN:case t2.IGNORE:return e}switch(t){case t2.ALLOW:case t2.MASK:case t2.MASK_USER_INPUT:case t2.MASK_UNLESS_ALLOWLISTED:case t2.HIDDEN:case t2.IGNORE:return t;default:return e}}function ee(t){if(tI(t)){if("BASE"===t.tagName)return t2.ALLOW;if("INPUT"===t.tagName){if("password"===t.type||"email"===t.type||"tel"===t.type||"hidden"===t.type)return t2.MASK;let e=t.getAttribute("autocomplete");if(e&&(e.startsWith("cc-")||e.endsWith("-password")))return t2.MASK}if(t.matches(t7(t2.HIDDEN)))return t2.HIDDEN;if(t.matches(t7(t2.MASK)))return t2.MASK;if(t.matches(t7(t2.MASK_UNLESS_ALLOWLISTED)))return t2.MASK_UNLESS_ALLOWLISTED;if(t.matches(t7(t2.MASK_USER_INPUT)))return t2.MASK_USER_INPUT;if(t.matches(t7(t2.ALLOW)))return t2.ALLOW;if(function(t){if("SCRIPT"===t.nodeName)return!0;if("LINK"===t.nodeName){let t=e("rel");return/preload|prefetch/i.test(t)&&"script"===e("as")||"shortcut icon"===t||"icon"===t}if("META"===t.nodeName){let r=e("name"),n=e("rel"),i=e("property");return/^msapplication-tile(image|color)$/.test(r)||"application-name"===r||"icon"===n||"apple-touch-icon"===n||"shortcut icon"===n||"keywords"===r||"description"===r||/^(og|twitter|fb):/.test(i)||/^(og|twitter):/.test(r)||"pinterest"===r||"robots"===r||"googlebot"===r||"b
1ingbot"===r||t.hasAttribute("http-equiv")||"author"===r||"generator"===r||"framework"===r||"publisher"===r||"progid"===r||/^article:/.test(i)||/^product:/.test(i)||"google-site-verification"===r||"yandex-verification"===r||"csrf-token"===r||"p:domain_verify"===r||"verify-v1"===r||"verification"===r||"shopify-checkout-api-token"===r}function e(e){return(t.getAttribute(e)||"").toLowerCase()}return!1}(t))return t2.IGNORE}}function er(t,e){switch(e){case t2.MASK:case t2.HIDDEN:case t2.IGNORE:return!0;case t2.MASK_UNLESS_ALLOWLISTED:if(tx(t))return!!ei(t.parentNode)||!es(t.textContent||"");return ei(t);case t2.MASK_USER_INPUT:return tx(t)?ei(t.parentNode):ei(t);default:return!1}}function en(t,e,r,n,i){if(n!==t2.MASK&&n!==t2.MASK_UNLESS_ALLOWLISTED||"data-dd-privacy"===e||tq.includes(e)||e===i.actionNameAttribute)return!1;switch(e){case"title":case"alt":case"placeholder":case"aria-label":case"name":return!0}return!!("A"===t&&"href"===e||"IFRAME"===t&&"srcdoc"===e||r&&e.startsWith("data-"))||("IMG"===t||"SOURCE"===t)&&("src"===e||"srcset"===e)}function ei(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;if("INPUT"===t.tagName)switch(t.type){case"button":case"color":case"reset":case"submit":return!1}return!!t4[t.tagName]}function ea(t){return t.replace(/\S/g,"x")}function eo(t,e){let r=t.parentElement?.tagName,n=t.textContent||"";return("SCRIPT"===r||e===t2.HIDDEN?n="***":er(t,e)&&("DATALIST"===r||"SELECT"===r||"OPTGROUP"===r||(n="OPTION"===r?"***":ea(n))),"HEAD"!==r||n.trim())?n:""}function es(t){return!t?.trim()||window.$DD_ALLOW?.has(t.toLocaleLowerCase())||!1}function el(){let t=window.visualViewport;return Math.round(t?t.pageLeft-t.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0)}function ec(){let t=window.visualViewport;return Math.round(t?t.pageTop-t.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0)}function eu(){return i||(i=new tu.cP(t=>{let{throttled:e}=(0,tf.n)(()=>{t.notify(ed())},200);return(0,tV.q2)(window,tV.gX.RESIZE,e,{capture:!0,passive:!0}).stop})),i}function ed(){let t=window.visualViewport;return t?{width:Number(t.width*t.scale),height:Number(t.height*t.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}var ef=r(20818);let ep=((I={})[I.OFF=0]="OFF",I[I.SAMPLED=1]="SAMPLED",I[I.FORCED=2]="FORCED",I);function em(t,e){return(0,X.d0)()?+!!(0,X.Ww)(X.oc.RECORDS):(0,ef.$5)(t.id,(0,ef.it)(e.sessionSampleRate,e.sessionReplaySampleRate))?1:2*!!t.isReplayForced}var eh=r(64959);function eg(t){let e=crypto.getRandomValues(new Uint32Array(2)),r=BigInt(e[0])+(BigInt(e[1])<<32n);return 63===t&&(r&=0x7fffffffffffffffn),r}function e_(t){return t.toString(16).padStart(16,"0")}var ev=r(36533),ey=r(92243);function eb(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function ew(t,e,r,n,i,a){let o=r.findTrackedSession();if(!o)return;let s=t.allowedTracingUrls.find(t=>(0,ey.K)([t.match],e.url,!0));if(!s)return;let l=(0,ef.$5)(o.id,(0,ef.it)(t.sessionSampleRate,t.traceSampleRate)),c=(0,X.d0)()?(0,X.Y9)()?.getIsTraceSampled()??l:l;(c||t.traceContextInjection===Q.uT.ALL)&&(e.traceSampled=c,e.traceId=eg(64),e.spanId=eg(63),a(function(t,e,r,n,i,a,o,s){let l={};if(i.forEach(n=>{switch(n){case"datadog":Object.assign(l,{"x-datadog-origin":"rum","x-datadog-parent-id":e.toString(),"x-datadog-sampling-priority":r?"1":"0","x-datadog-trace-id":t.toString()});break;case"tracecontext":Object.assign(l,{traceparent:`00-0000000000000000${e_(t)}-${e_(e)}-0${r?"1":"0"}`,tracestate:`dd=s:${r?"1":"0"};o:rum`});break;case"b3":Object.assign(l,{b3:`${e_(t)}-${e_(e)}-${r?"1":"0"}`});break;case"b3multi":Object.assign(l,{"X-B3-TraceId":e_(t),"X-B3-SpanId":e_(e),"X-B3-Sampled":r?"1":"0"})}}),s.propagateTraceBaggage){let t={"session.id":n},e=a.getContext().id;"string"==typeof e&&(t["user.id"]=e);let r=o.getContext().id;"string"==typeof r&&(t["account.id"]=r);let i=Object.entries(t).map(([t,e])=>`${t}=${encodeURIComponent(e)}`).join(",");i&&(l.baggage=i)}return l}(e.traceId,e.spanId,e.traceSampled,o.id,s.propagatorTypes,n,i,t)))}var eE=r(85128);let eS=32*eE._m;function ek(t,e){return e.allowedGraphQlUrls.find(e=>(0,ey.K)([e.match],t))}var eA=r(92239),eC=r(67504),eR=r(14478);let eT=1;function ex(t){t.requestIndex||(t.requestIndex=eT++)}var eI=r(49589);function eO(t){return"string"==typeof t?(0,eE.WW)(t):t instanceof ArrayBuffer||ArrayBuffer.isView(t)?t.byteLength:"u">typeof Blob&&t instanceof Blob?t.size:0}var eN=r(44772);function eM(t,e,r){if(void 0===t.openClocks)return;let n=(0,O.vk)(t.openClocks.timeStamp,e.timeStamp);if("in"===r&&void 0===t.firstMessageInOffset?t.firstMessageInOffset=n:"out"===r&&void 0===t.firstMessageOutOffset&&(t.firstMessageOutOffset=n),"in"===r){if(void 0!==t.lastMessageInAt){let r=(0,O.vk)(t.lastMessageInAt,e.timeStamp);r>t.longestInboundSilence&&(t.longestInboundSilence=r)}t.lastMessageInAt=e.timeStamp}}function eD(t){return te(t)&&t<0?void 0:t}var eL=r(41817);function eP(t,e,r,n,i,a){let o,s=(0,eL.B)(eV)(t,e,r,n),l=!1,c=(0,tP.wg)((0,$.dm)(()=>p({hadActivity:!1})),100),u=void 0!==a?(0,tP.wg)((0,$.dm)(()=>p({hadActivity:!0,end:(0,O.nx)()})),a):void 0,d=s.subscribe(({isBusy:t})=>{(0,tP.DJ)(c),(0,tP.DJ)(o);let e=(0,O.nx)();
1t||(o=(0,tP.wg)((0,$.dm)(()=>p({hadActivity:!0,end:e})),100))}),f=()=>{l=!0,(0,tP.DJ)(c),(0,tP.DJ)(o),(0,tP.DJ)(u),d.unsubscribe()};function p(t){l||(f(),i(t))}return{stop:f}}function eV(t,e,r,n){return new tu.cP(i=>{let a,o=[],s=0;return o.push(e.subscribe(t=>{t.every(ez)||l()}),r.subscribe(l),tz({type:"resource"}).subscribe(t=>{t.some(t=>!eU(n,t.name))&&l()}),t.subscribe(7,t=>{eU(n,t.url)||(void 0===a&&(a=t.requestIndex),s+=1,l())}),t.subscribe(8,t=>{eU(n,t.url)||void 0===a||t.requestIndex<a||(s-=1,l())})),()=>{o.forEach(t=>t.unsubscribe())};function l(){i.notify({isBusy:s>0})}})}function eU(t,e){return(0,ey.K)(t.excludedActivityUrls,e)}function ez(t){let e="characterData"===t.type?t.target.parentElement:t.target;return!!(e&&tI(e)&&e.matches("[data-dd-excluded-activity-mutations], [data-dd-excluded-activity-mutations] *"))}function eF({lifeCycle:t,isChildEvent:e,onChange:r=tf.l}){let n={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},i=t.subscribe(14,t=>{if("view"!==t.type&&"vital"!==t.type&&e(t))switch(t.type){case c.ERROR:n.errorCount+=1,r();break;case c.ACTION:n.actionCount+=1,t.action.frustration&&(n.frustrationCount+=t.action.frustration.type.length),r();break;case c.LONG_TASK:n.longTaskCount+=1,r();break;case c.RESOURCE:t._dd?.discarded||(n.resourceCount+=1,r())}});return{stop:()=>{i.unsubscribe()},eventCounts:n}}var e$=r(60235);let eq=5*O.iW;function ej(t){let e=(0,tv.q)({expireDelay:eq}),r=new Map;function n(t){r.delete(t.key),t.eventCounts?.stop()}function i(){r.forEach(t=>{n(t)}),e.reset()}let a=t.subscribe(11,i);return{start:function(i,a,o,s){let l=(0,D.lk)(),c=e.add(l,a.relative),u=r.get(i);u&&n(u);let d={id:l,key:i,startClocks:a,data:o,historyEntry:c,eventCounts:s?.isChildEvent?eF({lifeCycle:t,isChildEvent:s.isChildEvent(l)}):void 0};return r.set(i,d),d},stop:function(t,e,i){let a=r.get(t);if(!a)return;let o=i?(0,e$.kg)(a.data,i):a.data;a.historyEntry.close(e.relative);let s=(0,O.vk)(a.startClocks.timeStamp,e.timeStamp),l=a.eventCounts?.eventCounts;return n(a),{...o,id:a.id,startClocks:a.startClocks,duration:s,counts:l}},discard:function(t){let e=r.get(t);if(!e)return;let i=e.eventCounts?.eventCounts;return n(e),e.historyEntry.remove(),{...e.data,id:e.id,startClocks:e.startClocks,counts:i}},getCounts:function(t){return r.get(t)?.eventCounts?.eventCounts},findId:function(t){return e.findAll(t)},stopAll:function(){a.unsubscribe(),i(),e.stop()}}}let eW=["HTML","BODY"],eB=2*eE._m,eG=tq.concat(["role","type","disabled","readonly","tabindex","draggable","target","rel","download","method","action","enctype","autocomplete"]),eH=O.OY;function eK(t,e){let r=function(t,e){let r=t;for(;r;){if(r.matches(e))return r;r=tL(r)}return null}(t,`[${e}]`);if(r)return eJ(eY(r.getAttribute(e).trim()))}let eZ=[(t,e,r)=>{if("labels"in t&&t.labels&&t.labels.length>0)return e1(t.labels[0],e,r)},t=>{if("INPUT"===t.nodeName){let e=t.getAttribute("type");if("button"===e||"submit"===e||"reset"===e)return{name:t.value,nameSource:"text_content"}}},(t,e,r)=>{if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return e1(t,e,r)},(t,e,r)=>e0(t,"aria-label",e,r),(t,e,r)=>{let n=t.getAttribute("aria-labelledby");if(n)return{name:n.split(/\s+/).map(e=>(function(t,e){let r=t.getRootNode();if(r instanceof ShadowRoot){let t=r.getElementById(e);if(t)return t}return t.ownerDocument?t.ownerDocument.getElementById(e):null})(t,e)).filter(t=>!!t).map(t=>e2(t,e,r)).join(" "),nameSource:"text_content"}},(t,e,r)=>e0(t,"alt",e,r),(t,e,r)=>e0(t,"name",e,r),(t,e,r)=>e0(t,"title",e,r),(t,e,r)=>e0(t,"placeholder",e,r),(t,e,r)=>{if("options"in t&&t.options.length>0)return e1(t.options[0],e,r)}],eQ=[(t,e,r)=>e1(t,e,r)];function eX(t,e,r,n){let i=t,a=0;for(;a<=10&&i&&"BODY"!==i.nodeName&&"HTML"!==i.nodeName&&"HEAD"!==i.nodeName;){for(let t of e){let e=t(i,r,n);if(e){let{name:t,nameSource:r}=e,n=t?.trim();if(n)return{name:eJ(eY(n)),nameSource:r}}}if("FORM"===i.nodeName)break;i=tL(i),a+=1}}function eY(t){return t.replace(/\s+/g," ")}function eJ(t){return t.length>100?`${(0,D._R)(t,100)} [...]`:t}
1function e0(t,e,r,n){let{enablePrivacyForActionName:i,defaultPrivacyLevel:a}=r,o=t.getAttribute(e);if(o&&i){var s;let i=t9(t,a,n);en(t.tagName,e,o,i,r)&&(o=es(s=o)?s:t$||ea(s))}else o||(o="");return{name:o,nameSource:"standard_attribute"}}function e1(t,e,r){return{name:e2(t,e,r)||"",nameSource:"text_content"}}function e2(t,e,r){if(t.isContentEditable)return;let{enablePrivacyForActionName:n,actionNameAttribute:i,defaultPrivacyLevel:a}=e,o=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,function(t){let e=t9(t,a,r);if(n&&e&&er(t,e))return NodeFilter.FILTER_REJECT;if(tI(t)){if(t.hasAttribute("data-dd-action-name")||i&&t.hasAttribute(i))return NodeFilter.FILTER_REJECT;let e=getComputedStyle(t);if("visible"!==e.visibility||"none"===e.display||e.contentVisibility&&"visible"!==e.contentVisibility)return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT}),s="";for(;o.nextNode();){let t=o.currentNode;if(tI(t)){("BR"===t.nodeName||"P"===t.nodeName||["block","flex","grid","list-item","table","table-caption"].includes(getComputedStyle(t).display))&&(s+=" ");continue}s+=t.textContent||""}return s.replace(/\s+/g," ").trim()}function e5(){let t=window.getSelection();return!t||t.isCollapsed}function e3(t){return t.target instanceof Element&&!1!==t.isPrimary}function e8(t){if((2&t.ignore)!=0||t.hasPageActivity||t.getUserActivity().input||t.getUserActivity().scroll)return!1;let e=t.event.target;return"LABEL"===e.tagName&&e.hasAttribute("for")&&(e=document.getElementById(e.getAttribute("for"))),!e?.matches('input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *')}let e6=10*O.OY,e4=new Map;function e7(t,e){e4.set(t,e),e4.forEach((t,e)=>{(0,O.vk)(e,(0,O.$S)())>e6&&e4.delete(e)})}function e9(t){return e=>e.action?.id?.includes(t)??!1}function rt(t){if(t.composed&&tO(t.target)&&"function"==typeof t.composedPath){let e=t.composedPath();if(e.length>0&&e[0]instanceof Element)return e[0]}return t.target}var re=r(43716);function rr(t){let e="events"in t,r=eD((0,O.Zj)(t.duration));return{rawRumEvent:{type:c.ACTION,date:t.startClocks.timeStamp,action:{id:t.id,target:{name:t.name},type:t.type,...void 0!==r&&{loading_time:r},...t.counts&&{error:{count:t.counts.errorCount},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},frustration:{type:t.frustrationTypes}},...e?{_dd:{action:{target:{selector:t.target?.selector||void 0,width:t.target?.width||void 0,height:t.target?.height||void 0,composed_path_selector:t.target?.composedPathSelector},position:t.position,name_source:t.nameSource}}}:{context:t.context}},duration:t.duration,startClocks:t.startClocks,domainContext:e?{events:t.events}:{handlingStack:t.handlingStack}}}var rn=r(85994),ri=r(33023),ra=r(73327),ro=r(11578);function rs(){if(tF("navigation")){let t=performance.getEntriesByType("navigation")[0];if(t&&!(t.loadEventEnd>0&&t.domComplete<=0))return t}let t=function(){let t={},e=performance.timing;for(let r in e)if(te(e[r])){let n=e[r];t[r]=0===n?0:(0,O.d6)(n)}return t}(),e={entryType:"navigation",initiatorType:"navigation",name:window.location.href,startTime:0,duration:t.loadEventEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:()=>({...e,toJSON:void 0}),...t};return e}function rl(t){return t.responseStart>=0&&t.responseStart<=(0,O.$S)()?t.responseStart:void 0}let rc=2*O.iW;function ru(t){var e;let r,n,i=(r=(e=t).querySelector("meta[name=dd-trace-id]"),n=e.querySelector("meta[name=dd-trace-time]"),rd(r?.content,n?.content)||function(t){let e=function(t){for(let e=0;e<t.childNodes.length;e+=1){let r=rf(t.childNodes[e]);if(r)return r}if(t.body)for(let e=t.body.childNodes.length-1;e>=0;e-=1){let r=t.body.childNodes[e],n=rf(r);if(n)return n;if(!tx(r))break}}(t);if(e)return rd((0,D.rx)(e,"trace-id"),(0,D.rx)(e,"trace-time"))}(t));if(!(!i||i.traceTime<=(0,O.uc)()-rc))return i.traceId}function rd(t,e){let r=e&&Number(e);if(t&&r)return{traceId:t,traceTime:r}}function rf(t){if(t&&t.nodeType===Node.COMMENT_NODE){let e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}var rp=r(52187);let rm=O.OY;function rh(){let t=[];function e(e){let n;if(!e||e.didTimeout){let t=performance.now();n=()=>30-(performance.now()-t)}else n=e.timeRemaining.bind(e);for(;n()>0&&t.length;)t.shift()();t.length&&r()}function r(){(0,rp.B)(e,{timeout:rm})}return{push(e){1===t.push(e)&&r()},stop(){t.length=0}}}var rg=r(39582);function r_(t,e,r){var n,i;let a=e?function(t,e){if(t.traceSampled&&t.traceId&&t.spanId)return{_dd:{span_id:t.spanId.toString(),trace_id:t.traceId.toString(),rule_psr:e.rulePsr}}}(e,r):function(t,e){if("navigation"!==t.initiatorType)return;let r=(0,eL.B)(ru)(document);if(r)return{_dd:{trace_id:r,span_id:eg(63).toString(),rule_psr:e.rulePsr}}}(t,r);if(!r.trackResources&&!a)return;let o=(0,O.FR)(t.startTime),s=function(t){let{duration:e,startTime:r,responseEnd:n}=t;return"navigation"===t.initiatorType||0===e&&r<n?(0,O.vk)(r,n):e}(t),l=function(t,e){let r=e.trackResourceHeaders;if(0===r.length||!t)return;let n=r.filter(e=>void 0===e.url||(0,ey.K)([e.url],t.url,!0));if(0===n.length)return;let i=n.filter(t=>void 0===t.location||"any"===t.location||"response"===t.location),a=n.filter(t=>void 0===t.location||"any"===t.location||"request"===t.location),o=i.length>0?function(t,e){if(t.type===tw.Y.FETCH&&t.response)return rb(t.response.headers,e);
1if(t.type===tw.Y.XHR&&t.xhr){let r=t.xhr.getAllResponseHeaders();if(r)try{return rb(new Headers(function(t){let e=[];for(let r of t.trim().split(/\r\n/)){let t=r.indexOf(":");t>0&&e.push([r.substring(0,t).trim(),r.substring(t+1).trim()])}return e}(r)),e)}catch{}}}(t,i):void 0,s=a.length>0?function(t,e){let r;if(t.type===tw.Y.FETCH)return t.init?.headers?r=new Headers(t.init.headers):t.input instanceof Request&&(r=t.input.headers),r?rb(r,e):void 0}(t,a):void 0;if(o||s)return{resource:{request:s?{headers:s}:void 0,response:o?{headers:o}:void 0}}}(e,r);return{startClocks:o,duration:s,rawRumEvent:(0,e$.kg)({date:o.timeStamp,resource:{id:(0,D.lk)(),duration:(0,O.Zj)(s),type:function(t){let e=t.name;if(!(0,tb.AY)(e))return tw.v.OTHER;let r=(0,tb.L2)(e);for(let[e,n]of tS)if(n(t.initiatorType,r))return e;return tw.v.OTHER}(t),method:e?.method,status_code:e?e.status:0===(n=t.responseStatus)?void 0:n,url:e?tT(e.url):t.name,protocol:""===t.nextHopProtocol?void 0:t.nextHopProtocol,delivery_type:""===t.deliveryType?"other":t.deliveryType,graphql:e&&function(t,e){let r=ek(t.url,e);if(r){let e=function(t,e=!1){var r;let n,i,a,o;if("POST"===t.method?n=function(t){if(!t||"string"!=typeof t)return;let e=(0,M.XU)(t);if(e)return{query:e.query,operationName:e.operationName,variables:e.variables?JSON.stringify(e.variables):void 0,operationType:e.operationType}}(t.requestBody):"GET"===t.method&&(r=t.url,o=(a=(i=(0,tb.c$)(r).searchParams).get("variables"))&&void 0!==(0,M.XU)(a)?a:void 0,n={query:i.get("query")||void 0,operationName:i.get("operationName")||void 0,variables:o,operationType:i.get("operationType")||void 0}),n)return function(t,e){let r,n,i;if(t.query){var a;let i=t.query.trim();a=i,r=a.match(/^\s*(query|mutation|subscription)\b/i)?.[1],e&&(n=(0,D._R)(i,eS,"..."))}if(!r){let e=t.operationType;("query"===e||"mutation"===e||"subscription"===e)&&(r=e)}return t.variables&&(i=t.variables),{operationType:r,operationName:t.operationName,variables:i,payload:n}}(n,e)}(t,r.trackPayload);if(e){if(r.trackResponseErrors&&t.responseBody){let r=function(t){let e=(0,M.XU)(t);if(e&&"object"==typeof e&&(0,tr.EI)(e.errors))return e.errors.map(t=>({message:t.message,path:t.path,locations:t.locations,code:t.extensions?.code}))}(t.responseBody);r&&(e.error_count=r.length,e.errors=r)}return e}return}}(e,r),render_blocking_status:t.renderBlockingStatus,...function(t){if(t.startTime<t.responseStart){let{encodedBodySize:e,decodedBodySize:r,transferSize:n}=t;return{size:r,encoded_body_size:e,decoded_body_size:r,transfer_size:n}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}(t),...function(t){var e,r;let n,i;if(n=tk((e=t).startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd),i=!((r=e).redirectEnd>r.startTime)||tk(e.startTime,e.redirectStart,e.redirectEnd,e.fetchStart),!n||!i)return;let{startTime:a,fetchStart:o,workerStart:s,redirectStart:l,redirectEnd:c,domainLookupStart:u,domainLookupEnd:d,connectStart:f,secureConnectionStart:p,connectEnd:m,requestStart:h,responseStart:g,responseEnd:_}=t,v={download:tA(a,g,_),first_byte:tA(a,h,g)};return 0<s&&s<o&&(v.worker=tA(a,s,o)),o<m&&(v.connect=tA(a,f,m),f<=p&&p<=m&&(v.ssl=tA(a,p,m))),o<d&&(v.dns=tA(a,u,d)),a<c&&(v.redirect=tA(a,l,c)),v}(t)},type:c.RESOURCE,_dd:{discarded:!r.trackResources}},a,function(t){let e=t.contentType;if(e)return{resource:{response:{headers:{"content-type":e}}}}}(t),l),domainContext:{performanceEntry:t,isManual:!1,isAborted:!!(i=e)&&i.isAborted,isWebSocket:!1,handlingStack:i?.handlingStack,requestInit:i?.init,requestInput:i?.input,response:i?.response,error:i?.error,xhr:i?.xhr}}}let rv=/(token|cookie|secret|authorization|(api|secret|access|app).?key|(client|connecting|real).?ip|forwarded)/,ry=t=>ta.includes(t);function rb(t,e){let r={},n=0,i=!1;return t.forEach((t,a)=>{if(n>=100){i||(V.V.warn("Maximum number of headers (100) has been reached. Further headers are dropped."),i=!0);return}let o=a.toLowerCase();if(rv.test(o))return;let s=e.find(t=>(0,ey.K)([t.name??ry],o));if(!s)return;let{extractor:l}=s,c=l?v(t,l):t;void 0!==c&&(c.length>128&&V.V.warn(`Header "${o}" value was truncated from ${c.length} to 128 characters.`),r[o]=(0,D._R)(c,128),n++)}),n>0?r:void 0}let rw=10*O.iW,rE=10*O.iW;function rS(t,e=window){if("hidden"===document.visibilityState)return{timeStamp:0,stop:tf.l};if(tF("visibility-state")){let e=performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name).find(e=>e.startTime>=t.relative);if(e)return{timeStamp:e.startTime,stop:tf.l}}let r=1/0,{stop:n}=(0,tV.lQ)(e,[tV.gX.PAGE_HIDE,tV.gX.VISIBILITY_CHANGE],t=>{(t.type===tV.gX.PAGE_HIDE||"hidden"===document.visibilityState)&&(r=t.timeStamp,n())},{capture:!0});return{get timeStamp(){return r},stop:n}}let rk=t=>{var e,r;let n,i,a,o;return t.previousRect.width*t.previousRect.height+t.currentRect.width*t.currentRect.height-(e=t.previousRect,r=t.currentRect,n=Math.max(e.left,r.left),i=Math.max(e.top,r.top),a=Math.min(e.right,r.right),o=Math.min(e.bottom,r.bottom),n>=a||i>=o?0:(a-n)*(o-i))};function rA({x:t,y:e,width:r,height:n}){return{x:t,y:e,width:r,height:n}}let rC=5*O.OY,rR=O.OY,rT=0,rx=1/0,rI=0,rO=()=>o?rT:window.performance.interactionCount||0,rN=+O.iW;function rM(t){return Math.min(t,rN)}let rD=O.OY;var rL=r(87895),rP=r(7849);let rV=5*O.iW,rU=5*O.iW;function rz(t){let e=t.indexOf("?");return e<0?t:t.slice(0,e)}function rF(t,e){let r=new Set;for(let n of t)n.startsWith(`${e}.`)&&r.add(n.slice(e.length+1));return r}var r$=r(71423),rq=r(78125),rj=r(54622);let rW=t_.AQ;function rB(){return(0,eL.B)(eI.J.location)}function rG(t){return Object.prototype.hasOwnProperty.call(history,t)?history:History.prototype}let rH=t_.AQ,rK=10*O.OY;function rZ(){0!==s.batchCount&&((0,U.Gk)(U.Xf.CUSTOMER_DATA_METRIC_NAME,s),rY())}function rQ(){return{min:1/0,max:0,sum:0}}function rX(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function rY(){s={batchCount:0,batchBytesCount:rQ(),batchMessagesCount:rQ()}}let rJ=t_.AQ;function r0(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function r1(t){let{startClocks:e,type:r,name:n,description:i,context:a,handlingStack:o}=t,s={id:(t.type===_.DURATION?t.id:void 0)??(0,D.lk)(),type:r,name:n,description:i,...r===_.DURATION?{duration:(0,O.Zj)(t.duration)}:{step_type:t.stepType,operation_key:t.operationKey,failure_reason:t.failureReason}};return{rawRumEvent:{date:e.timeStamp,vital:s,type:c.VITAL,context:a},startClocks:e,duration:r===_.DURATION?t.duration:void 0,domainContext:o?{handlingStack:o}:{}}}var r2=r(57840);let r5=O.OY;function r3(t,e){let r=(0,z.Ri)(t),n=(0,tP.yb)(()=>{let n=(0,z.Ri)(t);n!==r&&(r=n,e(n))},r5);return()=>{(0,tP.vG)(n)}}var r8=r(1175),r6=r(5209);function r4(t){return"object"===(0,N.Pw)(t)}var r7=r(63065),r9=r(22547);let nt={"view.name":"string","view.url":"string","view.referrer":"string",context:"object",service:"string",version:"string"},ne={[c.VIEW]:{...nt,"view.performance.lcp.resource_url":"string"},[c.ERROR]:{...nt,"error.message":"string","error.stack":"string","error.handling_stack":"string","error.resource.url":"string","error.fingerprint":"string","_dd.debug_ids":"array"},[c.RESOURCE]:{...nt,"resource.url":"string","resource.graphql.variables":"string","resource.request.headers":"object","resource.response.headers":"object","resource.websocket.close_reason":"string","resource.websocket.protocol":"string"},[c.ACTION]:{...nt,"action.target.name":"string"},[c.LONG_TASK]:{...nt,"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string","_dd.debug_ids":"array"},[c.VITAL]:nt};var nr=r(52671);let nn=[c.ACTION,c.ERROR,c.LONG_TASK,c.RESOURCE,c.VITAL];var ni=r(50201),na=r(11735),no=r(9075),ns=r(53368),nl=r(8931);function nc(t,e,r,n,i,v,y,b,w,E){var S;let k=[],A=new tg;A.subscribe(14,t=>(0,r$.b)("rum",t)),e.expireObservable.subscribe(()=>A.notify(10,{endClocks:(0,O.M8)()})),e.renewObservable.subscribe(()=>A.notify(11));let C=t=>{A.notify(15,{error:{message:t,source:ro.gf.AGENT,startClocks:(0,O.M8)()}}),(0,U.A2)("Error reported to customer",{"error.message":t})};if((0,X.d0)()){let t;t=(0,X.Y9)(),A.subscribe(14,e=>{t.send("rum",e)});let e=(0,rP._T)().subscribe(t=>{A.notify(12,t.reason)});k.push(()=>e.unsubscribe())}else{let r=function(t,e,r,n,i){let a=[(0,q.ns)(t,"rum")],o=(0,q.np)(t,"rum");o&&a.push(o);let s=(0,rq.X)({encoder:i(rj.j.RUM),endpoints:a,reportError:r});n.subscribe(()=>s.forceFlush("session_expire"));let{dispatch:l,stop:u}=function(t,e){let r,n,i=!1,a=0,{unsubscribe:o}=t.flushObservable.subscribe(()=>{i=!1,n=r});return{dispatch:o=>
1{if(o.type!==c.VIEW)return void t.add(o);if(!e)return void t.upsert(o,o.view.id);let s=o.view.id;if(!o.view.is_active){s===r?.view.id&&(r=void 0,n=void 0,i=!1,a=0),t.upsert(o,s);return}if(s!==r?.view.id){a=0,t.upsert(o,s),r=o,i=!t.isEmpty;return}if(r=o,i)return void t.upsert(o,s);if((a+=1)>=100){a=0,t.upsert(o,s),i=!t.isEmpty;return}if(n){let e=function(t,e){let r=function t(e,r,n){let i={},a=n?.replaceKeys??new Set,o=n?.appendKeys??new Set,s=n?.ignoreKeys??new Set;for(let n of Object.keys(e)){if(s.has(n))continue;let l=e[n],c=r[n];if(!a.has(n)&&(0,N.OE)(l)&&(0,N.OE)(c)){let e=t(l,c,{replaceKeys:rF(a,n),appendKeys:rF(o,n),ignoreKeys:rF(s,n)});e&&(i[n]=e)}else o.has(n)&&Array.isArray(l)&&Array.isArray(c)?l.length>c.length&&(i[n]=l.slice(c.length)):!function t(e,r){if(e===r)return!0;if(null===e||"object"!=typeof e||null===r||"object"!=typeof r)return e===r;if(Array.isArray(e)&&Array.isArray(r))return e.length===r.length&&e.every((e,n)=>t(e,r[n]));if(Array.isArray(e)||Array.isArray(r))return!1;let n=Object.keys(e),i=Object.keys(r);return n.length===i.length&&n.every(n=>i.includes(n)&&t(e[n],r[n]))}(l,c)&&(i[n]=l)}for(let t of Object.keys(r))t in e||(i[t]=null);return Object.keys(i).length>0?i:void 0}(t,e,{replaceKeys:new Set(["view.custom_timings","context","connectivity","usr","device","privacy"]),appendKeys:new Set(["_dd.page_states"]),ignoreKeys:new Set(["date","type","application","session","view.id","view.url","_dd.document_version","_dd.format_version"])});if(r)return(0,e$.kg)(r,{type:c.VIEW_UPDATE,date:t.date,application:t.application,session:t.session,view:{id:t.view.id,url:t.view.url},_dd:{document_version:t._dd.document_version,format_version:t._dd.format_version}})}(o,n);e&&((0,r$.b)("rum",e),t.upsert(e,s))}},stop:o}}(s,t.betaEnableViewUpdates);e.subscribe(14,l);let d=s.stop.bind(s);return s.stop=()=>{u(),d()},s}(t,A,C,e.expireObservable,v),n=r.prepareUrgentFlushObservable.subscribe(t=>{A.notify(12,t)});k.push(()=>n.unsubscribe()),k.push(()=>r.stop()),S=r.flushObservable,b.metricsEnabled&&(rY(),l=!1,A.subscribe(14,()=>{l=!0}),S.subscribe(({bytesCount:t,messagesCount:e})=>{l&&(l=!1,s.batchCount+=1,rX(s.batchBytesCount,t),rX(s.batchMessagesCount,e))}),(0,tP.yb)(rZ,rK))}let{stop:R,...T}=function(t,e,r,n,i,s,l,v,y){var b,w,E,S,k,A,C,R,T,x,I;let L,P,U,F,q,j,W,B,G,H,K,Z,Q,J=[],te=(U=tp(),new tu.cP(t=>{let e=new U((0,$.dm)(e=>t.notify(e)));return e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>e.disconnect()})),tr=(F=(0,M.yG)(rB()),new tu.cP(t=>{var e;let{stop:r}=function(t){let{stop:e}=(0,eh.H7)(rG("pushState"),"pushState",({onPostCall:e})=>{e(t)}),{stop:r}=(0,eh.H7)(rG("replaceState"),"replaceState",({onPostCall:e})=>{e(t)}),{stop:n}=(0,tV.q2)(window,tV.gX.POP_STATE,t);return{stop:()=>{e(),r(),n()}}}(i),{stop:n}=(e=i,(0,tV.q2)(window,tV.gX.HASH_CHANGE,e));function i(){if(F.href===rB().href)return;let e=(0,M.yG)(rB());t.notify({newLocation:e,oldLocation:F}),F=e}return()=>{r(),n()}})),{observable:tn,stop:ti}=function(){let t=new tu.cP,{stop:e}=(0,eh.H7)(window,"open",()=>t.notify());return{observable:t,stop:e}}();J.push(ti);let{assembleEventDefaults:ta}=e;ta.register(({eventType:t})=>{let e=r.source;return{type:t,_dd:{format_version:2,drift:(0,O._O)(),configuration:{session_sample_rate:tt(r.sessionSampleRate,3),session_replay_sample_rate:tt(r.sessionReplaySampleRate,3),profiling_sample_rate:tt(r.profilingSampleRate,3),trace_sample_rate:tt(r.traceSampleRate,3)},browser_sdk_version:(0,X.d0)()?"7.13.0":void 0,sdk_name:v},application:{id:r.applicationId},date:(0,O.nx)(),source:e}});let to=function(t,e=500){let r,n=(0,tv.q)({expireDelay:rJ,maxEntries:4e3});tF("visibility-state")&&performance.getEntriesByType("visibility-state").forEach(t=>{a("hidden"===t.name?"hidden":"active",t.startTime)}),a(r0(),(0,O.$S)());let{stop:i}=(0,tV.lQ)(window,[tV.gX.PAGE_SHOW,tV.gX.FOCUS,tV.gX.BLUR,tV.gX.VISIBILITY_CHANGE,tV.gX.RESUME,tV.gX.FREEZE,tV.gX.PAGE_HIDE],t=>{var e;a((e=t).type===tV.gX.FREEZE?"frozen":e.type===tV.gX.PAGE_HIDE?e.persisted?"frozen":"terminated":r0(),t.timeStamp)},{capture:!0});function a(t,e=(0,O.$S)()){t!==r&&(r=t,n.closeActive(e),n.add({state:r,startTime:e},e))}function o(t,e,r){return n.findAll(e,r).some(e=>e.state===t)}return t.register(({startTime:t,duration:r=0,eventType:i})=>i===c.VIEW?{type:i,_dd:{page_states:function(t,e,r){if(0!==t.length)return t.slice(-r).reverse().map(({state:t,startTime:r})=>({state:t,start:(0,O.Zj)((0,O.vk)(e,r))}))}(n.findAll(t,r),t,e)}}:i===c.ACTION||i===c.ERROR?{type:i,view:{in_foreground:o("active",t,0)}}:re.$O),{wasInPageStateDuringPeriod:o,addPageState:a,stop:()=>{i(),n.stop()}}}(ta);J.push(()=>to.stop());let ts=(q=(0,tv.q)({expireDelay:ty}),t.subscribe(1,t=>{var e;q.add({service:(e=t).service,version:e.version,context:e.context,id:e.id,name:e.name,startClocks:e.startClocks},t.startClocks.relative)}),t.subscribe(6,({endClocks:t})=>{q.closeActive(t.relative)}),t.subscribe(3,t=>{let e=q.find(t.startClocks.relative);e&&(t.name&&(e.name=t.name),t.context&&(e.context=t.context),e.sessionIsActive=t.sessionIsActive)}),t.subscribe(11,()=>{q.reset()}),{findView:(t,e)=>q.find(t,e),stop:()=>{q.stop()}});J.push(()=>ts.stop());let tl=function(t,e,r){let n,i=(0,tv.q)({expireDelay:rW});t.subscribe(1,({startClocks:t,url:e})=>{let r=(0,eL.B)(eI.J.location).href,a=void 0!==e?(0,tb.c$)(e,r).href:r;i.add(o({url:a,referrer:n||document.referrer}),t.relative),n=a}),t.subscribe(6,({endClocks:t})=>{i.closeActive(t.relative)});let a=r.subscribe(({newLocation:t})=>{let e=i.find();if(e){let r=(0,O.$S)();i.closeActive(r),i.add(o({url:t.href,referrer:e.referrer}),r)}});function o({url:t,referrer:e}){return{url:t,referrer:e}}return e.register(({startTime:t,eventType:e})=>{let r=i.find(t);return r?{type:e,view:{url:r.url,referrer:r.referrer}}:re.ug}),{findUrl:t=>i.find(t),stop:()=>{a.unsubscribe(),i.stop()}}}(t,ta,tr);J.push(()=>tl.stop());let tc=(j=(0,tv.q)({expireDelay:rH}),t.subscribe(1,({startClocks:t})=>{j.add({},t.relative)}),t.subscribe(6,({endClocks:t})=>{j.closeActive(t.relative)}),ta.register(({startTime:t,eventType:e})=>
1{if(!r.trackFeatureFlagsForEvents.concat([c.VIEW,c.ERROR]).includes(e))return re.$O;let n=j.find(t);return!n||(0,M.RI)(n)?re.$O:{type:e,feature_flags:n}}),{addFeatureFlagEvaluation:(t,e)=>{let r=j.find();r&&(r[t]=e)}});ta.register(({eventType:t,startTime:e})=>{let a,o,s,l=n.findTrackedSession(e),u=ts.findView(e);return l&&u?(t===c.VIEW?(a=!!i.getReplayStats(u.id)||void 0,o=1===em(l,r),s=!!u.sessionIsActive&&void 0):a=!!i.isRecording()||void 0,{type:t,session:{id:l.id,type:"user",has_replay:a,sampled_for_replay:o,is_active:s}}):re.ug}),ta.register(({eventType:t})=>({type:t,connectivity:(0,nr.q)()})),(0,na.j)(ta);let td=(0,no.F)(ta,r,"rum",!0),tm=(0,ns.$)(ta,r,n,"rum"),th=(0,nl.B)(ta,r,"rum"),tg=function(t,e,r,n,i){var a;let o,s,{unsubscribe:l}=t.subscribe(0,e=>{t.notify(13,rr(e))}),u=tf.l;i.trackUserInteractions&&(o=function(t,e,r,n){let i,a=ej(t),o=new tu.cP;t.subscribe(5,c),t.subscribe(12,c);let{stop:s}=function({onPointerDown:t,onPointerUp:e}){let r,n,i={selection:!1,input:!1,scroll:!1},a=[(0,tV.q2)(window,tV.gX.POINTER_DOWN,e=>{e3(e)&&(r=e5(),i={selection:!1,input:!1,scroll:!1},n=t(e))},{capture:!0}),(0,tV.q2)(window,tV.gX.SELECTION_CHANGE,()=>{r&&e5()||(i.selection=!0)},{capture:!0}),(0,tV.q2)(window,tV.gX.SCROLL,()=>{i.scroll=!0},{capture:!0,passive:!0}),(0,tV.q2)(window,tV.gX.POINTER_UP,t=>{if(e3(t)&&n){let r=i;e(n,t,()=>r),n=void 0}},{capture:!0}),(0,tV.q2)(window,tV.gX.INPUT,()=>{i.input=!0},{capture:!0})];return{stop:()=>{a.forEach(t=>t.stop())}}}({onPointerDown:i=>(function(t,e,r,n,i){let a;if((a=t.enablePrivacyForActionName?t9(rt(n),t.defaultPrivacyLevel):t2.ALLOW)===t2.HIDDEN)return;let o=function(t,e,r){let n=rt(t),i=n.getBoundingClientRect(),a=tB(n,r.actionNameAttribute),o=function(t,e){let r=t.filter(t=>t instanceof Element&&!eW.includes(t.tagName));if(0===r.length)return"";let n=e?[e].concat(eG):eG,i="";for(let t of r)if((i+=function(t,e){let r=tK(t),n=tH(t),i=Array.from(t.classList).filter(t=>!tG(t)).sort().map(t=>`.${CSS.escape(t)}`).join(""),a=function(t,e){let r=[];for(let n of Array.from(t.attributes))e.includes(n.name)&&r.push(tQ(n.name,n.value));return r.sort().join("")}(t,e),o=function(t){let e=Array.from(t.parentNode.children);if(e.length<=1)return"";let r=e.filter(e=>e.tagName===t.tagName),n=e.indexOf(t),i=tX(t);return`:nth-child(${n+1})${r.length>1?`:nth-of-type(${i})`:""}`}(t);return`${r}${n||""}${a}${i}${o};`}(t,n)).length>=eB)return(0,D._R)(i,eB);return i}(t.composedPath(),r.actionNameAttribute);a&&e7(t.timeStamp,a);let{name:s,nameSource:l}=function(t,e,r=t2.ALLOW){let n=new Map,{actionNameAttribute:i}=e,a=eK(t,"data-dd-action-name")||i&&eK(t,i);return a?{name:a,nameSource:"custom_attribute"}:r===t2.MASK?{name:t$,nameSource:"mask_placeholder"}:eX(t,eZ,e,n)||eX(t,eQ,e,n)||{name:"",nameSource:"blank"}}(n,r,e);return{type:"click",target:{width:Math.round(i.width),height:Math.round(i.height),selector:a,composedPathSelector:o||void 0},position:{x:Math.round(t.clientX-i.left),y:Math.round(t.clientY-i.top)},name:s,nameSource:l}}(n,a,t),s=!1;return eP(e,r,i,t,t=>{s=t.hadActivity},100),{clickActionBase:o,ignore:function(t){let e=0,r=t;for(;r;){let t=r.getAttribute("data-dd-ignore-frustration");if(null!==t){let r=t.split(/\s+/);if(""===t.trim()||r.includes("all"))return 7;r.includes("rage-click")&&(e|=1),r.includes("dead-click")&&(e|=2),r.includes("error-click")&&(e|=4)}if(7===e)break;r=tL(r)}return e}(rt(n)),hadActivityOnPointerDown:()=>s}})(n,t,e,i,r),onPointerUp:({clickActionBase:i,ignore:s,hadActivityOnPointerDown:c},u,d)=>{!function(t,e,r,n,i,a,o,s,l,c,u,d){let f=function t(e,r,n,i,a,o){let s,l=(0,D.lk)(),c=(0,O.FR)(o.timeStamp),u=r.start(l,c,i,{isChildEvent:e9});e.notify(16,u);let d=0,f=[],p=new tu.cP;function m(t){0===d&&(d=1,s=t?r.stop(l,(0,O.jR)(t)):r.discard(l),p.notify())}return{event:o,ignore:a,stop:m,stopObservable:p,get hasError(){let t=s?.counts??r.getCounts(l);return!!t&&t.errorCount>0},get hasPageActivity(){return s&&"duration"in s},getUserActivity:n,addFrustration:t=>{f.push(t)},get startClocks(){return c},isStopped:()=>1===d||2===d,clone:()=>t(e,r,n,i,a,o),validate:t=>
1{if(m(),1!==d||!s)return;let r={frustrationTypes:f,events:t??[o],event:o,...s,counts:s.counts};e.notify(0,r),d=2},discard:()=>{m(),d=2}}}(e,i,u,s,l,c);o(f);let p=s?.target?.selector;p&&e7(c.timeStamp,p);let{stop:m}=eP(e,r,n,t,t=>{t.hadActivity&&t.end<f.startClocks.timeStamp?f.discard():t.hadActivity?f.stop(t.end):d()?f.stop(f.startClocks.timeStamp):f.stop()},e6),h=e.subscribe(5,({endClocks:t})=>{f.stop(t.timeStamp)}),g=e.subscribe(12,()=>{f.stop((0,O.nx)())}),_=a.subscribe(()=>{f.stop()});f.stopObservable.subscribe(()=>{g.unsubscribe(),h.unsubscribe(),m(),_.unsubscribe()})}(n,t,e,r,a,o,l,i,s,u,d,c)}});return{stop:()=>{c(),o.notify(),s(),a.stopAll()},findActionId:a.findId};function l(t){if(!i?.tryAppend(t)){let e=t.clone(),r=function(t,e){let r,n=[],i=0;function a(t){t.stopObservable.subscribe(o),n.push(t),(0,tP.DJ)(r),r=(0,tP.wg)(s,eH)}function o(){1===i&&n.every(t=>t.isStopped())&&(i=2,e(n))}function s(){(0,tP.DJ)(r),0===i&&(i=1,o())}return a(t),{tryAppend:t=>{var e,r,o,l;return 0===i&&(!(n.length>0)||(e=n[n.length-1],r=t,(1&e.ignore)!=0==((1&r.ignore)!=0)&&e.event.target===r.event.target&&100>=(o=e.event,l=r.event,Math.sqrt(Math.pow(o.clientX-l.clientX,2)+Math.pow(o.clientY-l.clientY,2)))&&e.event.timeStamp-r.event.timeStamp<=eH)?(a(t),!0):(s(),!1))},stop:()=>{s()}}}(t,t=>{(function(t,e){let{isRage:r}=function(t,e){if(function(t){if(t.some(t=>(1&t.ignore)!=0||t.getUserActivity().selection||t.getUserActivity().scroll))return!1;for(let e=0;e<t.length-2;e+=1)if(t[e+3-1].event.timeStamp-t[e].event.timeStamp<=O.OY)return!0;return!1}(t))return e.addFrustration("rage_click"),t.some(e8)&&e.addFrustration(g),e.hasError&&(4&e.ignore)==0&&e.addFrustration(h),{isRage:!0};let r=t.some(t=>t.getUserActivity().selection);return t.forEach(t=>{t.hasError&&(4&t.ignore)==0&&t.addFrustration(h),e8(t)&&!r&&t.addFrustration(g)}),{isRage:!1}}(t,e);r?(t.forEach(t=>t.discard()),e.stop((0,O.nx)()),e.validate(t.map(t=>t.event))):(e.discard(),t.forEach(t=>t.validate()))})(t,e),i===r&&(i=void 0)});i=r}}function c(){i&&i.stop()}}(t,r,n,i));let d=(a=e=>{t.notify(13,rr(e))},{addAction:function(t){a({id:(0,D.lk)(),frustrationTypes:[],...t})},startAction:function(e,r={},n=(0,O.M8)()){let i=r.actionKey??e,a=s.start(i,n,{name:e,...r},{isChildEvent:e9});t.notify(16,a)},stopAction:function(t,e={},r=(0,O.M8)()){let n=e.actionKey??t,i=s.stop(n,r,e);if(!i)return;let o=[];i.counts&&i.counts.errorCount>0&&o.push(h),a({...i,type:i.type||m,frustrationTypes:o})},findActionId:(s=ej(t)).findId,stop:s.stopAll}),f={findActionId:t=>{let e=d.findActionId(t),r=o?.findActionId(t)??[];return e.concat(r)}};return e.assembleEventDefaults.register(({startTime:t,eventType:e})=>{if(e!==c.ERROR&&e!==c.RESOURCE&&e!==c.LONG_TASK)return re.$O;let r=e===c.LONG_TASK?(0,O.Gw)(t,1):t,n=f.findActionId(r);return n.length?{type:e,action:{id:n}}:re.$O}),e.assembleTelemetry.register(({startTime:t})=>({action:{id:f.findActionId(t)}})),{addAction:d.addAction,startAction:d.startAction,stopAction:d.stopAction,actionContexts:f,stop:()=>{l(),u(),d.stop(),o?.stop()}}}(t,e,te,tn,r);J.push(tg.stop);let t_={addEvent:(e,r,n,i)=>{nn.includes(r.type)&&t.notify(13,{startClocks:(0,O.FR)(e),rawRumEvent:r,domainContext:n,duration:i})}},tE=(B=requestAnimationFrame((0,$.dm)(()=>{W=ed()})),G=eu().subscribe(t=>{W=t}).unsubscribe,ta.register(({eventType:t})=>({type:t,display:W?{viewport:W}:void 0})),{stop:()=>{G(),B&&cancelAnimationFrame(B)}});J.push(tE.stop);let tS=function(t,e=function(t){let e=(0,r2.gU)()?(t,e)=>(0,tV.q2)(eI.J.cookieStore,tV.gX.CHANGE,r=>{let n=r.changed.find(e=>e.name===t)||r.deleted.find(e=>e.name===t);n&&e(n.value)}).stop:r3;return new tu.cP(r=>e(t,t=>r.notify(t)))}("datadog-ci-visibility-test-execution-id")){let r=(0,z.B9)("datadog-ci-visibility-test-execution-id")||function(){let t=window.Cypress;if(t)try{return t.env("traceId")}catch{V.V.warn("Failed to read Cypress test execution id via Cypress.env(). Upgrade dd-trace-js to >= 5.88.0 to keep RUM ↔ test correlation working.");return}}(),n=e.subscribe(t=>{r=t});return t.register(({eventType:t})=>"string"!=typeof r?re.$O:{type:t,session:{type:"ci_test"},ci_test:{test_execution_id:r}}),{stop:()=>{n.unsubscribe()}}}(ta);J.push(tS.stop),ta.register(({eventType:t})=>(0,r6.Fs)()?{type:t,session:{type:"synthetics"},synthetics:{...(0,r6.IM)(),injected:(0,r6.ao)()}}:re.$O),H={[c.ERROR]:(0,r7.$)(c.ERROR,y,void 0),[c.ACTION]:(0,r7.$)(c.ACTION,y,void 0),[c.VITAL]:(0,r7.$)(c.VITAL,y,void 0)},t.subscribe(13,({startClocks:n,duration:i,rawRumEvent:a,domainContext:o})=>{let s={eventType:a.type,rawRumEvent:a,domainContext:o,startTime:n.relative,duration:i},l=e.assembleEventDefaults.trigger(s);if(l===re.ug)return;let u=e.assembleEvent.trigger(s);if(u===re.ug)return;let d=(0,e$.kg)(l,a,u,{ddtags:(0,r9.m5)(r).join(",")});(function(t,e,r,n){if(e){var i;let n,a,o=(i=ne[t.type],a=(t=>
1e(t,r))(n=(0,e$.Go)(t)),(0,ev.WP)(i).forEach(([e,r])=>(function t(e,r,n,i){let[a,...o]=n;if("[]"===a){Array.isArray(e)&&Array.isArray(r)&&e.forEach((e,n)=>t(e,r[n],o,i));return}if(r4(e)&&r4(r)){if(o.length>0)return t(e[a],r[a],o,i);!function(t,e,r,n){if(t[e]===r)return;let i=(0,N.Pw)(r);i===n?t[e]=(0,eN.a)(r):"object"===n&&("undefined"===i||"null"===i)?t[e]={}:"array"===n&&("undefined"===i||"null"===i)&&(t[e]=[])}(e,a,r[a],i)}})(t,n,e.split(/\.|(?=\[\])/),r)),a);if(!1===o&&t.type!==c.VIEW)return!1;!1===o&&V.V.warn("Can't dismiss view events using beforeSend!")}return!n[t.type]?.isLimitReached()})(d,r.beforeSend,o,H)&&((0,M.RI)(d.context)&&delete d.context,t.notify(14,d))});let{addTiming:tk,setLoadingTime:tA,startView:tR,setViewName:tx,setViewContext:tO,setViewContextProperty:tN,getViewContext:tM,stop:tD}=(t.subscribe(4,e=>{var n,a;let o,s,l;return t.notify(13,(n=e,a=r,o=i.getReplayStats(n.id),s=n.commonViewMetrics?.cumulativeLayoutShift?.devicePixelRatio,l={_dd:{document_version:n.documentVersion,replay_stats:o,cls:s?{device_pixel_ratio:s}:void 0,configuration:{start_session_replay_recording_manually:a.startSessionReplayRecordingManually,remote_configuration_id:a.remoteConfigurationId}},date:n.startClocks.timeStamp,type:c.VIEW,view:{action:{count:n.eventCounts.actionCount},frustration:{count:n.eventCounts.frustrationCount},cumulative_layout_shift:n.commonViewMetrics.cumulativeLayoutShift?.value,cumulative_layout_shift_time:(0,O.Zj)(n.commonViewMetrics.cumulativeLayoutShift?.time),cumulative_layout_shift_target_selector:n.commonViewMetrics.cumulativeLayoutShift?.targetSelector,first_byte:(0,O.Zj)(n.initialViewMetrics.navigationTimings?.firstByte),dom_complete:(0,O.Zj)(n.initialViewMetrics.navigationTimings?.domComplete),dom_content_loaded:(0,O.Zj)(n.initialViewMetrics.navigationTimings?.domContentLoaded),dom_interactive:(0,O.Zj)(n.initialViewMetrics.navigationTimings?.domInteractive),error:{count:n.eventCounts.errorCount},first_contentful_paint:(0,O.Zj)(n.initialViewMetrics.firstContentfulPaint),interaction_to_next_paint:(0,O.Zj)(n.commonViewMetrics.interactionToNextPaint?.value),interaction_to_next_paint_time:(0,O.Zj)(n.commonViewMetrics.interactionToNextPaint?.time),interaction_to_next_paint_target_selector:n.commonViewMetrics.interactionToNextPaint?.targetSelector,is_active:n.isActive,name:n.name,largest_contentful_paint:(0,O.Zj)(n.initialViewMetrics.largestContentfulPaint?.value),largest_contentful_paint_target_selector:n.initialViewMetrics.largestContentfulPaint?.targetSelector,load_event:(0,O.Zj)(n.initialViewMetrics.navigationTimings?.loadEvent),loading_time:eD((0,O.Zj)(n.commonViewMetrics.loadingTime)),loading_type:n.loadingType,long_task:{count:n.eventCounts.longTaskCount},performance:function({cumulativeLayoutShift:t,interactionToNextPaint:e},{firstContentfulPaint:r,largestContentfulPaint:n}){return{cls:t&&{score:t.value,timestamp:(0,O.Zj)(t.time),target_selector:t.targetSelector,previous_rect:t.previousRect,current_rect:t.currentRect},fcp:r&&{timestamp:(0,O.Zj)(r)},inp:e&&{duration:(0,O.Zj)(e.value),timestamp:(0,O.Zj)(e.time),target_selector:e.targetSelector,sub_parts:e.subParts?{input_delay:(0,O.Zj)(e.subParts.inputDelay),processing_duration:(0,O.Zj)(e.subParts.processingDuration),presentation_delay:(0,O.Zj)(e.subParts.presentationDelay)}:void 0},lcp:n&&{timestamp:(0,O.Zj)(n.value),target_selector:n.targetSelector,resource_url:n.resourceUrl,sub_parts:n.subParts?{load_delay:(0,O.Zj)(n.subParts.loadDelay),load_time:(0,O.Zj)(n.subParts.loadTime),render_delay:(0,O.Zj)(n.subParts.renderDelay)}:void 0}}}(n.commonViewMetrics,n.initialViewMetrics),resource:{count:n.eventCounts.resourceCount},time_spent:(0,O.Zj)(n.duration)},display:n.commonViewMetrics.scroll?{scroll:{max_depth:n.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:n.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:n.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:(0,O.Zj)(n.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,privacy:{replay_level:a.defaultPrivacyLevel},device:{locale:navigator.language,locales:navigator.languages,time_zone:function(){try{return new Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}()}},(0,M.RI)(n.customTimings)||(l.view.custom_timings=(0,M.LG)(n.customTimings,O.Zj)),{rawRumEvent:l,startClocks:n.startClocks,duration:n.duration,domainContext:{location:n.location,handlingStack:n.handlingStack}}))}),e.assembleEventDefaults.register(({startTime:t,eventType:e})=>{let r=ts.findView(t);return r?{type:e,service:r.service,version:r.version,context:r.context,view:{id:r.id,name:r.name}}:re.ug}),e.assembleTelemetry.register(({startTime:t})=>({view:{id:ts.findView(t)?.id}})),function(t,e,r,n,i,a,s){let l,c,u=new Set,m=h(d,(0,O.Oc)(),s);function h(i,a,s){let l=function(t,e,r,n,i,a=(0,O.M8)(),s){var l;let c,u=(0,D.lk)(),f=new tu.cP,m={},h=0,g=(0,M.yG)((0,eL.B)(window.location)),_=(0,rL.D)(),v=!0,y=s?.name,b=s?.service||n.service,w=s?.version||n.version,E=s?.context,S=s?.handlingStack;E&&_.setContext(E);let k={id:u,name:y,startClocks:a,service:b,version:w,context:E,url:s?.url};t.notify(1,k),t.notify(2,k);let{throttled:A,cancel:C}=(0,tf.n)(G,3e3,{leading:!1}
1),{setLoadEvent:R,setViewEnd:T,stop:x,stopINPTracking:I,getCommonViewMetrics:N,setLoadingTime:L}=function(t,e,r,n,i,a,s){let l={},c=!1,u=!1,{stop:f,setLoadEvent:p}=function(t,e,r,n,i,a,o){let s=i===d,l=!0,c=[],u=rS(a);function f(){if(!l&&!s&&c.length>0){let t=Math.max(...c);t<u.timeStamp-a.relative&&o(t)}}let{stop:p}=eP(t,e,r,n,t=>{l&&(l=!1,t.hadActivity&&c.push((0,O.vk)(a.timeStamp,t.end)),f())});return{stop:()=>{p(),u.stop()},setLoadEvent:t=>{s&&(s=!1,c.push(t),f())}}}(t,e,r,n,a,s,t=>{c||(l.loadingTime=t,i())}),{stop:m}=function(t,e,r=function(t=rD){return new tu.cP(e=>{let r=(0,tf.n)(function(){e.notify(function(){let t=ec(),{height:e}=ed();return{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(e+t),scrollTop:t}}())},t,{leading:!1,trailing:!0}),n=document.scrollingElement||document.documentElement,i=new ResizeObserver((0,$.dm)(r.throttled));n&&i.observe(n);let a=(0,tV.q2)(window,tV.gX.SCROLL,r.throttled,{passive:!0});return()=>{r.cancel(),i.disconnect(),a.stop()}})}()){let n=0,i=0,a=0,o=r.subscribe(({scrollDepth:r,scrollTop:o,scrollHeight:s})=>{let l=!1;if(r>n&&(n=r,l=!0),s>i){i=s;let e=(0,O.$S)();a=(0,O.vk)(t.relative,e),l=!0}l&&e({maxDepth:Math.min(n,i),maxDepthScrollTop:o,maxScrollHeight:i,maxScrollHeightTime:a})});return{stop:()=>o.unsubscribe()}}(s,t=>{l.scroll=t}),{stop:h}=function(t,e,r){let n,i,a,o,s;if(!(tF("layout-shift")&&"WeakRef"in window))return{stop:tf.l};let l=0;r({value:0});let c=(o=0,s=0,{update:t=>{let e;return void 0===i||t.startTime-a>=rR||t.startTime-i>=rC?(i=a=t.startTime,s=o=t.value,e=!0):(o+=t.value,a=t.startTime,(e=t.value>s)&&(s=t.value)),{cumulatedValue:o,isMaxValue:e}}}),u=tz({type:"layout-shift",buffered:!0}).subscribe(i=>{for(let a of i){if(a.hadRecentInput||a.startTime<e)continue;let{cumulatedValue:i,isMaxValue:o}=c.update(a);if(o){let t=function(t){let e;for(let r of t)if(r.node&&tI(r.node)){let t=rk(r);(!e||rk(e)<t)&&(e=r)}return e}(a.sources);n={target:t?.node?new WeakRef(t.node):void 0,time:(0,O.vk)(e,a.startTime),previousRect:t?.previousRect,currentRect:t?.currentRect,devicePixelRatio:window.devicePixelRatio}}if(i>l){l=i;let e=n?.target?.deref();r({value:tt(l,4),targetSelector:e&&tB(e,t.actionNameAttribute),time:n?.time,previousRect:n?.previousRect?rA(n.previousRect):void 0,currentRect:n?.currentRect?rA(n.currentRect):void 0,devicePixelRatio:n?.devicePixelRatio})}}});return{stop:()=>{u.unsubscribe()}}}(n,s.relative,t=>{l.cumulativeLayoutShift=t,i()}),{stop:g,getInteractionToNextPaint:_,setViewEnd:v}=function(t,e,r){var n;let i,a,s;if(!(tF("event")&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:()=>void 0,setViewEnd:tf.l,stop:tf.l};let l=1/0,{getViewInteractionCount:c,stopViewInteractionCount:u}=(n=r,"interactionCount"in performance||o||(o=new window.PerformanceObserver((0,$.dm)(t=>{t.getEntries().forEach(t=>{t.interactionId&&(rx=Math.min(rx,t.interactionId),rT=((rI=Math.max(rI,t.interactionId))-rx)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0}),a=n===d?0:rO(),s={stopped:!1},{getViewInteractionCount:()=>s.stopped?s.interactionCount:rO()-a,stopViewInteractionCount:()=>{s={stopped:!0,interactionCount:rO()-a}}}),f=function(t){let e=[];function r(){e.sort((t,e)=>e.duration-t.duration).splice(10)}return{process(t){let n=e.findIndex(e=>t.interactionId===e.interactionId),i=e[e.length-1];-1!==n?t.duration>e[n].duration&&(e[n]=t,r()):(e.length<10||t.duration>i.duration)&&(e.push(t),r())},estimateP98Interaction(){let r=Math.min(e.length-1,Math.floor(t()/50));return e[r]},isTracked:t=>e.some(e=>e.interactionId===t)}}(c),p=function(t){let e=new Map;function r(t,e){t.startTime=Math.min(e.startTime,t.startTime),t.processingStart=Math.min(e.processingStart,t.processingStart),t.processingEnd=Math.max(e.processingEnd,t.processingEnd)}return{process(t){if(void 0===t.interactionId||!t.processingStart||!t.processingEnd)return;let n=t.startTime+t.duration,i=e.get(t.interactionId);if(i)return void r(i,t);for(let[,i]of e.entries())if(8>=Math.abs(n-i.referenceRenderTime)){r(i,t),e.set(t.interactionId,i);return}e.set(t.interactionId,{startTime:t.startTime,processingStart:t.processingStart,processingEnd:t.processingEnd,referenceRenderTime:n})},pruneUntracked(){for(let[r]of e)t.isTracked(r)||e.delete(r)},computeSubParts(t,r){if(!t.processingStart||!t.processingEnd||void 0===t.interactionId)return;let n=e.get(t.interactionId);if(!n)return;let i=Math.max(n.startTime+r,n.processingStart),a=Math.min(n.processingEnd,i);return{inputDelay:(0,O.vk)(n.startTime,n.processingStart),processingDuration:(0,O.vk)(n.processingStart,a),presentationDelay:(0,O.vk)(a,i)}},stop(){e.clear()}}}(f),m=tz({type:"first-input",buffered:!0}).subscribe(g),h=tz({type:"event",durationThreshold:40,buffered:!0}).subscribe(g);function g(r){for(let t of r)t.interactionId&&t.startTime>=e&&t.startTime<=l&&(f.process(t),p.process(t));p.pruneUntracked();let n=f.estimateP98Interaction();n&&function(r){let n=(0,O.vk)(e,r.startTime);if(r.duration!==i?.duration||n!==i.startTime){var a;let e,o=(a=r.startTime,e=e4.get(a),e4.delete(a),e);!o&&r.target&&tI(r.target)&&(o=tB(r.target,t.actionNameAttribute)),i={duration:r.duration,startTime:n,targetSelector:o}}i.subParts=p.computeSubParts(r,rM(i.duration))}(n)}return{getInteractionToNextPaint:()=>i?{value:rM(i.duration),targetSelector:i.targetSelector,time:i.startTime,subParts:i.subParts}:c()?{value:0}
1:void 0,setViewEnd:t=>{l=t,u()},stop:()=>{h.unsubscribe(),m.unsubscribe(),p.stop()}}}(n,s.relative,a);return{stop:()=>{f(),h(),m()},stopINPTracking:g,setLoadEvent:p,setViewEnd:t=>{u=!0,v(t)},getCommonViewMetrics:()=>(l.interactionToNextPaint=_(),l),setLoadingTime:t=>{if(u)return;let e=(0,O.vk)(s.timeStamp,t??(0,O.nx)());c||f(),c=!0,l.loadingTime=e,i()}}}(t,e,r,n,B,i,a),{stop:P,initialViewMetrics:U}=i===d?function(t,e,r,n){var i,a;let o={},{stop:s}=(i=t=>{r(t.loadEvent),o.navigationTimings=t,n()},function(t){let e,{stop:r}=(0,rg.H)("complete",()=>{e=(0,tP.wg)(()=>t())});return{stop:()=>{r(),(0,tP.DJ)(e)}}}(()=>{var t;let e=(0,eL.B)(rs)();e.loadEventEnd<=0||i({domComplete:(t=e).domComplete,domContentLoaded:t.domContentLoadedEventEnd,domInteractive:t.domInteractive,loadEvent:t.loadEventEnd,firstByte:rl(t)})})),l=rS(e),{stop:c}=(a=t=>{o.firstContentfulPaint=t,n()},{stop:tz({type:"paint",buffered:!0}).subscribe(t=>{let e=t.find(t=>"first-contentful-paint"===t.name&&t.startTime<l.timeStamp&&t.startTime<rw);e&&a(e.startTime)}).unsubscribe}),{stop:u}=function(t,e,r,n){let i=1/0,{stop:a}=(0,tV.lQ)(r,[tV.gX.POINTER_DOWN,tV.gX.KEY_DOWN],t=>{i=t.timeStamp},{capture:!0,once:!0}),o=0,s=tz({type:"largest-contentful-paint",buffered:!0}).subscribe(r=>{let a=(0,ev.Uk)(r,t=>"largest-contentful-paint"===t.entryType&&t.startTime<i&&t.startTime<e.timeStamp&&t.startTime<rE&&t.size>o);if(a){var s;let e;a.element&&(e=tB(a.element,t.actionNameAttribute));let r=""===(s=a).url?void 0:s.url,i=a.startTime,l=function(t,e){let r=rl(rs());if(void 0===r)return;let n=t?function(t,e){let r=function(){if(tF("resource"))return performance.getEntriesByType("resource")}();if(r)return(0,ev.Uk)(r,r=>r.name===t&&r.startTime<=e)}(t,e):void 0,i=n?Math.max(r,n.requestStart||n.startTime):r,a=Math.min(e,Math.max(i,n?.responseEnd||0));return{loadDelay:i-r,loadTime:a-i,renderDelay:e-a}}(r,i);n({value:i,targetSelector:e,resourceUrl:r,subParts:l}),o=a.size}});return{stop:()=>{a(),s.unsubscribe()}}}(t,l,window,t=>{o.largestContentfulPaint=t,n()});return{stop:function(){s(),c(),u(),l.stop()},initialViewMetrics:o}}(n,a,R,B):{stop:tf.l,initialViewMetrics:{}};i===p&&(l=a.relative,requestAnimationFrame(()=>{requestAnimationFrame(()=>{(t=>{U.firstContentfulPaint=t,U.largestContentfulPaint={value:t},B()})((0,O.vk)(l,(0,O.$S)()))})}));let{stop:z,eventCounts:F}=function(t,e,r){let{stop:n,eventCounts:i}=eF({lifeCycle:t,isChildEvent:t=>t.view.id===e,onChange:r});return{stop:n,eventCounts:i}}(t,u,B),q=(0,tP.yb)(G,rV),j=t.subscribe(12,t=>{t===rP.y5.UNLOADING&&G()});function W(){t.notify(3,{id:u,name:y,context:_.getContext(),startClocks:a,sessionIsActive:v})}function B(){W(),A()}function G(){C(),W(),h+=1;let e=void 0===c?(0,O.nx)():c.timeStamp;t.notify(4,{customTimings:m,documentVersion:h,id:u,name:y,service:b,version:w,context:_.getContext(),loadingType:i,location:g,handlingStack:S,startClocks:a,commonViewMetrics:N(),initialViewMetrics:U,duration:(0,O.vk)(a.timeStamp,e),isActive:void 0===c,sessionIsActive:v,eventCounts:F})}return G(),_.changeObservable.subscribe(B),{get name(){return y},service:b,version:w,contextManager:_,stopObservable:f,end(e={}){c||(c=e.endClocks??(0,O.M8)(),v=e.sessionIsActive??!0,t.notify(5,{endClocks:c}),t.notify(6,{endClocks:c}),(0,tP.vG)(q),T(c.relative),x(),j.unsubscribe(),G(),(0,tP.wg)(()=>{this.stop()},rU))},stop(){P(),z(),I(),f.notify()},addTiming(t,e){var r;let n;if(c)return;let i=(0,O.A3)(e)?e:(0,O.vk)(a.timeStamp,e);m[(n=(r=t).replace(/[^a-zA-Z0-9-_.@$]/g,"_"))!==r&&V.V.warn(`Invalid timing name: ${r}, sanitized to: ${n}`),n]=i,B()},setLoadingTime:L,setViewName(t){y=t,G()}}}(t,e,r,n,i,a,s);return u.add(l),l.stopObservable.subscribe(()=>{u.delete(l)}),l}return t.subscribe(11,()=>{m=h("session_renewal",void 0,{name:m.name,service:m.service,version:m.version,context:m.contextManager.getContext()})}),t.subscribe(10,({endClocks:t})=>{m.end({sessionIsActive:!1,endClocks:t})}),a&&(c=i.subscribe(({oldLocation:t,newLocation:e})=>{var r,n;let i;r=t,n=e,r.pathname===n.pathname&&(""!==(i=n.hash.substring(1))&&document.getElementById(i)||rz(n.hash)===rz(r.hash))||(m.end(),m=h(f))}),l=function(t){let{stop:e}=(0,tV.q2)(window,tV.gX.PAGE_SHOW,e=>{e.persisted&&t(e)},{capture:!0});return e}(t=>{m.end(),m=h(p,(0,O.FR)(t.timeStamp),void 0)})),{addTiming:(t,e=(0,O.nx)())=>{m.addTiming(t,e)}
1,setLoadingTime:t=>m.setLoadingTime(t),startView:(t,e)=>{m.end({endClocks:e}),m=h(f,e,t)},setViewContext:t=>{m.contextManager.setContext(t)},setViewContextProperty:(t,e)=>{m.contextManager.setContextProperty(t,e)},setViewName:t=>{m.setViewName(t)},getViewContext:()=>m.contextManager.getContext(),stop:()=>{c&&c.unsubscribe(),l&&l(),m.end(),u.forEach(t=>t.stop())}}}(t,te,tn,r,tr,!r.trackViewsManually,s));ta.register(({domainContext:t,rawRumEvent:e})=>{var r,n;let i,a=(r=t,"long_task"===(n=e).type&&"long-animation-frame"===n.long_task.entry_type?n.long_task.scripts[0]?.source_url:("handlingStack"in r&&(i=r.handlingStack),"error"===n.type&&n.error.stack&&(i=n.error.stack),(0,ni.T)({stack:i}).stack[0]?.url));if(!a)return re.$O;let o=(0,r8.y)(a);return o?{type:e.type,service:o.service,version:o.version}:re.$O}),J.push(tD);let tU=function(t,e){let r,n,i=(0,eL.B)(rh)(),a=(r=new Set,n=t.subscribe(8,t=>{r.add(t),r.size>1e3&&r.delete(r.values().next().value)}),{getMatchingRequest(t){let e,n=1/0;for(let i of r){let r=t.startTime-i.startClocks.relative;0<=r&&r<n&&i.url===t.name&&(n=Math.abs(r),e=i)}return e&&r.delete(e),e},stop(){n.unsubscribe()}});t.subscribe(9,r=>{var n,i;let a,o,s=(n=r,i=e,a=(0,O.vk)(n.startClocks.timeStamp,n.endClocks.timeStamp),o={date:n.startClocks.timeStamp,type:c.RESOURCE,resource:{id:(0,D.lk)(),type:tw.v.WEBSOCKET,url:n.url,duration:(0,O.Zj)(a),websocket:{connection_id:n.connectionId,handshake_succeeded:n.handshakeSucceeded,start_time:n.startClocks.timeStamp,end_time:n.endClocks.timeStamp,start_view_id:n.startViewId,end_view_id:n.endViewId,tracking_end_reason:n.trackingEndReason,close_code:n.closeCode,close_reason:n.closeReason,was_clean:n.wasClean,messages_in:n.messagesIn,messages_out:n.messagesOut,time_to_first_message_in:(0,O.Zj)(n.firstMessageInOffset),time_to_first_message_out:(0,O.Zj)(n.firstMessageOutOffset),last_message_in_at:n.lastMessageInAt,longest_inbound_silence:(0,O.Zj)(n.longestInboundSilence),inbound_idle_duration_before_close:(0,O.Zj)(n.inboundIdleDurationBeforeClose),buffered_amount_max:n.bufferedAmountMax,protocol:n.protocol,setup_duration:(0,O.Zj)(n.setupDuration)}},_dd:{discarded:!i.trackResources}},{startClocks:n.startClocks,duration:a,rawRumEvent:o,domainContext:{isWebSocket:!0,isManual:!1,webSocket:n.webSocket}});s&&t.notify(13,s)});let o=tz({type:"resource",buffered:!0}).subscribe(r=>{for(let n of r)"xmlhttprequest"===n.initiatorType||"fetch"===n.initiatorType?(0,tP.wg)(()=>{let r=r_(n,a.getMatchingRequest(n),e);r&&t.notify(13,r)},50):l(()=>r_(n,void 0,e))}),{stop:s}=(0,rg.H)("interactive",()=>{l(()=>r_(rs(),void 0,e))});function l(e){i.push(()=>{let r=e();r&&t.notify(13,r)})}let u=ej(t),d={startResource:function(t,e={},r=(0,O.M8)()){let n=e.resourceKey??t;u.start(n,r,{url:t,...e})},stopResource:function(e,r={},n=(0,O.M8)()){let i=r.resourceKey??e,a=u.stop(i,n,{context:r.context,type:r.type});if(!a)return;let o=(0,O.vk)(a.startClocks.relative,n.relative),s={date:a.startClocks.timeStamp,type:c.RESOURCE,resource:{id:a.id,type:a.type||tw.v.OTHER,url:tT(a.url),duration:(0,O.Zj)(o),method:a.method,status_code:r.statusCode,size:r.size},_dd:{},context:a.context};t.notify(13,{rawRumEvent:s,startClocks:a.startClocks,duration:o,domainContext:{isManual:!0}})}};return{startResource:d.startResource,stopResource:d.stopResource,stop:()=>{s(),i.stop(),o.unsubscribe(),u.stopAll()}}}(t,r);J.push(tU.stop);let{stop:tq}=(K=tz({type:tF("long-animation-frame")?"long-animation-frame":"longtask",buffered:!0}).subscribe(e=>{for(let n of e){if(!r.trackLongTasks)break;let e=(0,O.FR)(n.startTime),i=function(t,e){let r=(0,D.lk)(),n=(0,O.Zj)(t.duration),i={date:e.timeStamp,type:c.LONG_TASK,_dd:{discarded:!1}};if("longtask"===t.entryType)return{...i,long_task:{id:r,entry_type:u.LONG_TASK,duration:n}};let a=t.scripts.map(t=>t.sourceURL).filter(t=>!!t),o=(0,r8.J)(a);return{...i,_dd:{discarded:!1,debug_ids:o},long_task:{id:r,entry_type:u.LONG_ANIMATION_FRAME,duration:n,blocking_duration:(0,O.Zj)(t.blockingDuration),first_ui_event_timestamp:(0,O.Zj)(t.firstUIEventTimestamp),render_start:(0,O.Zj)(t.renderStart),style_and_layout_start:(0,O.Zj)(t.styleAndLayoutStart),start_time:(0,O.Zj)(t.startTime),scripts:t.scripts.map(t=>({duration:(0,O.Zj)(t.duration),pause_duration:(0,O.Zj)(t.pauseDuration),forced_style_and_layout_duration:(0,O.Zj)(t.forcedStyleAndLayoutDuration),start_time:(0,O.Zj)(t.startTime),execution_start:(0,O.Zj)(t.executionStart),source_url:t.sourceURL,source_function_name:t.sourceFunctionName,source_char_position:t.sourceCharPosition,invoker:t.invoker,invoker_type:t.invokerType,window_attribution:t.windowAttribution}))}}}(n,e);t.notify(13,{rawRumEvent:i,startClocks:e,duration:n.duration,domainContext:{performanceEntry:n}})}}),{stop:()=>K.unsubscribe()});J.push(tq);let{addError:tj}=(Z=new tu.cP,l.subscribe(({data:t,type:e})=>{e===eC.o.RUNTIME_ERROR?Z.notify(t):e===eC.o.CONSOLE&&t.api===ri.bP.error&&Z.notify(t.error)}),(0,rn.u)([rn.V.cspViolation,rn.V.intervention]).subscribe(t=>Z.notify(t)),Z.subscribe(e=>t.notify(15,{error:e})),(S=t).subscribe(15,({error:t})=>{var e;let r,n;S.notify(13,(r={date:(e=t).startClocks.timeStamp,error:{id:(0,D.lk)(),message:e.message,source:e.source,stack:e.stack,handling_stack:e.handlingStack,component_stack:e.componentStack,type:e.type,handling:e.handling,causes:e.causes,source_type:"browser",fingerprint:e.fingerprint,csp:e.csp},_dd:{debug_ids:e.debugIds},type:c.ERROR,context:e.context},n={error:e.originalError,handlingStack:e.handlingStack},{rawRumEvent:r,startClocks:e.startClocks,domainContext:n}))}),{addError:({error:t,handlingStack:e,componentStack:r,startClocks:n,context:i})=>{let a=(0,ra.As)({originalError:t,handlingStack:e,componentStack:r,startClocks:n,nonErrorPrefix:ro.O7.PROVIDED,source:ro.gf.CUSTOM,handling:ro.aC.HANDLED});a.context=(0,e$.kg)(a.context,i),S.notify(15,{error:a})}});Q={clearTracingIfNeeded:eb,traceFetch:t=>ew(r,t,n,tm,th,e=>{if(t.input instanceof Request&&!t.init?.headers)t.input=new Request
1(t.input),Object.keys(e).forEach(r=>{t.input.headers.append(r,e[r])});else{t.init=(0,M.yG)(t.init);let r=[];t.init.headers instanceof Headers?t.init.headers.forEach((t,e)=>{r.push([e,t])}):Array.isArray(t.init.headers)?t.init.headers.forEach(t=>{r.push(t)}):t.init.headers&&Object.keys(t.init.headers).forEach(e=>{r.push([e,t.init.headers[e]])}),t.init.headers=r.concat((0,ev.WP)(e))}}),traceXhr:(t,e)=>ew(r,t,n,tm,th,t=>{try{Object.keys(t).forEach(r=>{e.setRequestHeader(r,t[r])})}catch{}})},k=t,A=Q,C=l,(L=[]).push((0,eA.G)().subscribe(t=>{"start"===t.state&&tC(t.url)&&(A.traceXhr(t,t.xhr),ex(t))})),L.push(C.subscribe(({data:t,type:e})=>{if(e===eC.o.XHR&&tC(t.url))switch(t.state){case"start":ex(t),k.notify(7,{requestIndex:t.requestIndex,url:t.url});break;case"complete":A.clearTracingIfNeeded(t),k.notify(8,{...t,type:tw.Y.XHR,isAbortedOnStart:!1})}})),R=t,T=r,x=Q,I=l,(P=[]).push((0,eR.i)({responseBodyAction:t=>ek(t.url,T)?.trackResponseErrors?eR.C.COLLECT:eR.C.IGNORE}).subscribe(t=>{"start"===t.state&&tC(t.url)&&(x.traceFetch(t),ex(t))})),P.push(I.subscribe(({data:t,type:e})=>{if(e===eC.o.FETCH&&tC(t.url))switch(t.state){case"start":ex(t),R.notify(7,{requestIndex:t.requestIndex,url:t.url});break;case"resolve":x.clearTracingIfNeeded(t),R.notify(8,{...t,duration:(0,O.vk)(t.startClocks.timeStamp,(0,O.nx)()),type:tw.Y.FETCH,requestBody:t.init?.body})}}));let tW=function(t,e){let r=ej(t);function n(r){e.wasInPageStateDuringPeriod("frozen",r.startClocks.relative,r.duration)||t.notify(13,r1(r))}return{addOperationStepVital:function(e,r,n,i){let{operationKey:a,context:o,description:s,handlingStack:l}=n||{},c={name:e,type:_.OPERATION_STEP,operationKey:a,failureReason:i,stepType:r,startClocks:(0,O.M8)(),context:(0,eN.a)(o),description:s,handlingStack:l};t.notify(13,r1(c))},addDurationVital:n,startDurationVital:function(e,n={},i=(0,O.M8)()){let{id:a}=r.start(n.vitalKey??e,i,{name:e,...n});
1t.notify(17,{id:a,name:e,startClocks:i,...n})},stopDurationVital:function(t,e={},i=(0,O.M8)()){let a=r.stop(e.vitalKey??t,i,e);a&&n({type:_.DURATION,...a})}}}(t,to);if(r.trackResources&&(r.betaTrackWebSockets||(0,Y.sr)(Y.R9.TRACK_WEBSOCKETS))){let e,r,n=(b=tW.addDurationVital,e=function(t,e,r,n){let i=new Map;function a(e,i,a){let o=function(t,e,r,n){let i=e.at,a="session_end"===r?n.findView(i.relative,{returnInactive:!0})?.id:n.findView(i.relative)?.id,o=void 0!==t.lastMessageInAt?(0,O.vk)(t.lastMessageInAt,i.timeStamp):void 0,{openClocks:s,...l}=t;return{...l,endClocks:i,endViewId:a,inboundIdleDurationBeforeClose:o,trackingEndReason:r,handshakeSucceeded:void 0!==s,setupDuration:t.setupDuration??(0,O.vk)(t.startClocks.timeStamp,i.timeStamp),closeCode:e.code,closeReason:e.reason,wasClean:e.wasClean}}(e,i,a,r);t.notify(9,o),n({id:(0,D.lk)(),name:"websocket-closed",type:_.DURATION,startClocks:o.endClocks,duration:0,context:(0,eN.a)({url:o.url,connection_id:o.connectionId})})}let o=e.subscribe(t=>{switch(t.state){case"connecting":{var e;let a,o=(0,D.lk)(),s=r.findView(t.startClocks.relative)?.id,l=(e=t.url,(a=(0,tb.c$)(e)).search="",a.href),c={webSocket:t.instance,connectionId:o,url:l,startClocks:t.startClocks,startViewId:s,messagesIn:{count:0,size:0},messagesOut:{count:0,size:0},longestInboundSilence:0,bufferedAmountMax:0};i.set(t.instance,c),n({id:(0,D.lk)(),name:"websocket-connecting",type:_.DURATION,startClocks:t.startClocks,duration:0,context:(0,eN.a)({url:l,connection_id:o})});return}case"open":{let e=i.get(t.instance);if(!e)return;e.openClocks=t.openClocks,e.protocol=t.protocol,e.setupDuration=(0,O.vk)(e.startClocks.timeStamp,t.openClocks.timeStamp);return}case"message-in":{let e=i.get(t.instance);if(!e)return;e.messagesIn.count+=1,e.messagesIn.size+=t.size,eM(e,t.at,"in");return}case"message-out":{let e=i.get(t.instance);if(!e)return;t.bufferedAmountPreSend>e.bufferedAmountMax&&(e.bufferedAmountMax=t.bufferedAmountPreSend),e.messagesOut.count+=1,e.messagesOut.size+=t.size,eM(e,t.at,"out");return}case"closed":{let e=i.get(t.instance);if(!e)return;i.delete(t.instance),a(e,t,"close_event");return}}});return{flushOpenConnections:(t,e=(0,O.M8)())=>{i.forEach(r=>{a(r,{at:e},t)}),i.clear()},stop:()=>{o.unsubscribe(),i.clear()}}}(t,(a||(a=new tu.cP(t=>{if("function"!=typeof eI.J.WebSocket)return;let{stop:e}=(0,eh.my)(eI.J,"WebSocket",({parameters:e,onPostCall:r})=>{let n=Array.isArray(e[1])?[].concat(e[1]):e[1],i=(0,O.M8)();r(e=>{t.notify({state:"connecting",instance:e,url:e.url,protocols:n,startClocks:i}),function(t,e){let{stop:r}=(0,tV.q2)(t,"open",()=>{e.notify({state:"open",instance:t,openClocks:(0,O.M8)(),protocol:t.protocol||""}),r()}),{stop:n}=(0,tV.q2)(t,"message",r=>{e.notify({state:"message-in",instance:t,size:eO(r.data),at:(0,O.M8)()})}),{stop:i}=(0,tV.q2)(t,"close",r=>{e.notify({state:"closed",instance:t,code:r.code,reason:r.reason,wasClean:r.wasClean,at:(0,O.M8)()}),n(),i()})}(e,t)})}),{stop:r}=(0,eh.H7)(eI.J.WebSocket.prototype,"send",({target:e,parameters:[r],onPostCall:n})=>{let i=eO(r),a=e.bufferedAmount;n(()=>{t.notify({state:"message-out",instance:e,size:i,bufferedAmountPreSend:a,at:(0,O.M8)()})})});return()=>{e(),r()}})),a),ts,b),r=t.subscribe(10,({endClocks:t})=>{e.flushOpenConnections("session_end",t)}),{stop:()=>{r.unsubscribe(),e.flushOpenConnections("session_end"),e.stop()}});J.push(n.stop)}let tZ=(w=r.applicationId,E=tg.actionContexts,{get:t=>{let e=ts.findView(t),r=tl.findUrl(t),i=n.findTrackedSession(t);if(i&&e&&r){let n=E.findActionId(t);return{application_id:w,session_id:i.id,user_action:n?{id:n}:void 0,view:{id:e.id,name:e.name,referrer:r.referrer,url:r.url}}}}});return{addAction:tg.addAction,startAction:tg.startAction,stopAction:tg.stopAction,startResource:tU.startResource,stopResource:tU.stopResource,addEvent:t_.addEvent,addError:tj,addTiming:tk,setLoa
1dingTime:tA,addFeatureFlagEvaluation:tc.addFeatureFlagEvaluation,startView:tR,setViewContext:tO,setViewContextProperty:tN,getViewContext:tM,setViewName:tx,viewHistory:ts,sessionManager:n,stopSession:()=>n.expire(),getInternalContext:tZ.get,startDurationVital:tW.startDurationVital,stopDurationVital:tW.stopDurationVital,addDurationVital:tW.addDurationVital,addOperationStepVital:tW.addOperationStepVital,globalContext:td,userContext:tm,accountContext:th,stop:()=>J.forEach(t=>t())}}(A,w,t,e,r,i,y,E,C);return k.push(R),y.unbuffer(),k.push(()=>n.stop()),{...T,lifeCycle:A,sessionManager:e,stopSession:()=>e.expire(),telemetry:b,stop:()=>{k.forEach(t=>t())},hooks:w}}function nu(t){return!!t&&"function"==typeof t.then}var nd=r(8975),nf=r(43068),np=r(2050),nm=r(56742),nh=r(29508),ng=r(2557),n_=r(3165),nv=r(33059),ny=r(28552),nb=r(25282);function nw(t,e,r={}){let n=(0,n_.D)(),i=(0,eC.t)(),a=function({ignoreInitIfSyntheticsWillInjectRum:t=!0,startDeflateWorker:e,sdkName:r},n,i){let a,o,s,l,c,u,d=new tu.dX(500,t=>{(0,U.A2)("preStartRum buffer data lost",{count:t})}),f=(0,no.s)();(0,nd.P)(f,nf.Nr.globalContext,d);let p=(0,ns.Y)();(0,nd.P)(p,nf.Nr.userContext,d);let m=(0,nl.K)();(0,nd.P)(m,nf.Nr.accountContext,d);let h={assembleEventDefaults:(0,re.ab)(),assembleTelemetry:(0,re.ab)(),assembleEvent:(0,re.ab)()},g=n.observable.subscribe(y),_={},v=!1;function y(){let t;if(v||!s||!l||!c||!u)return;if(g.unsubscribe(),l.trackViewsManually){if(!a)return;t=a.options}let e=l.trackViewsManually?a?.callback:void 0,r=i(l,c,o,t,u,h);v=!0,d.subscribe(t=>{t!==e&&t(r)}),d.unbuffer()}function b(t,i,a){var d;let f=(0,X.d0)();if(f&&(t={...d=t,service:d.service||d.applicationId,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:d.defaultPrivacyLevel??(0,X.Y9)()?.getPrivacyLevel()}),s=t,l)return void(0,np.$)("DD_RUM",t);let p=function(t,e){let r=(0,tn.S)(t,to,V.V);if(!r)return;let n=r.allowedTracingUrls.map(tl).filter(Boolean);if(n.length>0&&!r.service)return void V.V.error("Service needs to be configured when tracing is enabled");let i=(0,Y.sr)(Y.R9.SESSION_REPLAY_RECORD_CANVAS)?r.sessionReplayCanvasRecording:void 0;return{...r,service:r.service||r.applicationId,sessionReplayCanvasRecording:i,betaEnableViewUpdates:ts(r.betaEnableViewUpdates,r.proxy,e),allowedTracingUrls:n,beforeSend:r.beforeSend?(0,J.y)(r.beforeSend,"beforeSend threw an error:"):void 0,rulePsr:te(t.traceSampleRate)?t.traceSampleRate/100:void 0,trackResourceHeaders:function(t){let e=t.trackResourceHeaders;if(void 0===e||!1===e)return[];if(!0===e)return ta.map(t=>({name:t}));if(!Array.isArray(e))return V.V.warn("trackResourceHeaders should be true or an array of MatchHeader"),[];if(0===e.length)return V.V.warn("trackResourceHeaders is an empty array, no headers will be captured"),[];let r=[];return e.forEach((t,e)=>{if(!(0,N.OE)(t))return void V.V.warn(`trackResourceHeaders[${e}] should be a MatchHeader object`);if(void 0!==t.name&&!(0,N.Vl)(t.name))return void V.V.warn(`trackResourceHeaders[${e}].name should be a MatchOption`);if(void 0!==t.url&&!(0,N.Vl)(t.url))return void V.V.warn(`trackResourceHeaders[${e}].url should be a MatchOption`);if(void 0!==t.extractor&&!(t.extractor instanceof RegExp))return void V.V.warn(`trackResourceHeaders[${e}].extractor should be a RegExp`);if(void 0!==t.location&&("string"!=typeof t.location||!tc.includes(t.location)))return void V.V.warn(`trackResourceHeaders[${e}].location should be 'request', 'response', or 'any'`);let{name:n,...i}=t;r.push({...i,...void 0!==n?{name:"string"==typeof n?n.toLowerCase():n}:{}})}),r}(t),allowedGraphQlUrls:function(t){if(!t.allowedGraphQlUrls)return[];if(!Array.isArray(t.allowedGraphQlUrls))return V.V.warn("allowedGraphQlUrls should be an array"),[];let e=[];
1return t.allowedGraphQlUrls.forEach(t=>{(0,N.Vl)(t)?e.push({match:t,trackPayload:!1,trackResponseErrors:!1}):(0,N.OE)(t)&&(0,N.Vl)(t.match)&&e.push({match:t.match,trackPayload:!!t.trackPayload,trackResponseErrors:!!t.trackResponseErrors})}),e}(t),remoteConfigurationId:Z(t)}}(t,r);if(p&&(0,nm.tG)(p,i??"")){if(p.compressIntakeRequests&&!f&&e&&!(o=e(p,"Datadog RUM",tf.l)))return;l=p,n.tryToInit(p.trackingConsent),n.onGrantedOnce(()=>{let{assembleTelemetry:e}=h;(e.register(()=>n.isGranted()?re.$O:re.ug),u=(0,eL.B)(U.a5)(U.H0.RUM,p,e,r),eI.W)?V.V.warn("The RUM SDK is not supported in a web or service worker environment."):((0,X.d0)()?(0,nh.Ql)():(0,eL.B)(nh.ox)(p,n)).then(n=>{if(n){var i,o,s,l;let u,d;c=n,(0,ng.l)(e,c,{application:{id:p.applicationId}}),(0,U.Rr)((i=t,u=(0,Q.hO)(i),{session_replay_sample_rate:i.sessionReplaySampleRate,start_session_replay_recording_manually:i.startSessionReplayRecordingManually,trace_sample_rate:i.traceSampleRate,trace_context_injection:i.traceContextInjection,propagate_trace_baggage:i.propagateTraceBaggage,action_name_attribute:i.actionNameAttribute,use_allowed_tracing_urls:(0,tr.EI)(i.allowedTracingUrls),use_allowed_graph_ql_urls:(0,tr.EI)(i.allowedGraphQlUrls),use_track_graph_ql_payload:(o=i.allowedGraphQlUrls,(0,tr.EI)(o)&&o.some(t=>(0,N.OE)(t)&&t.trackPayload)),use_track_graph_ql_response_errors:(s=i.allowedGraphQlUrls,(0,tr.EI)(s)&&s.some(t=>(0,N.OE)(t)&&t.trackResponseErrors)),selected_tracing_propagators:(d=new Set,(0,tr.EI)(i.allowedTracingUrls)&&i.allowedTracingUrls.forEach(t=>{tl(t)?.propagatorTypes.forEach(t=>d.add(t))}),Array.from(d)),default_privacy_level:i.defaultPrivacyLevel,enable_privacy_for_action_name:i.enablePrivacyForActionName,use_excluded_activity_urls:(0,tr.EI)(i.excludedActivityUrls),use_worker_url:!!i.workerUrl,compress_intake_requests:i.compressIntakeRequests,track_views_manually:i.trackViewsManually,track_user_interactions:i.trackUserInteractions,track_resources:i.trackResources,track_long_task:i.trackLongTasks,plugins:i.plugins?.map(t=>({name:t.name,...t.getConfigurationTelemetry?.()})),track_feature_flags_for_events:i.trackFeatureFlagsForEvents,remote_configuration_id:Z(i),remote_configuration:a&&{last_modified:a.lastModified,last_synced:a.lastSynced,first_applied:a.firstApplied,sync_id:a.syncId},profiling_sample_rate:i.profilingSampleRate,use_remote_configuration_proxy:!!i.remoteConfigurationProxy,track_resource_headers:!0===(l=i.trackResourceHeaders)?"default_headers":Array.isArray(l)?"custom":void 0,beta_enable_view_updates:ts(i.betaEnableViewUpdates,i.proxy,r),beta_track_web_sockets:i.betaTrackWebSockets,...u})),y()}}).catch($.Dx)})}}return{init(e,r,n){if(!e)return void V.V.error("Missing configuration");if((0,Y.Aq)(e.enableExperimentalFeatures),(0,tV.fK)(e.allowUntrustedEvents),s=e,t&&(0,r6.ao)())return;let i=function(t,e){if(!t)return!0;let r=t.map(t=>t.onInit?.(e));return r.some(nu)?Promise.all(r).then(t=>!t.includes(!1)):!r.includes(!1)}(e.plugins,{initConfiguration:e,publicApi:r,registerAssembleEventHook:h.assembleEvent.register});function a(){if(Z(e)){let t={user:p,context:f};if(e.remoteConfigurationId||e.remoteConfiguration?.sync)W(e,t).then(t=>{t&&b(t,n)}).catch($.Dx);else{let r,i,a,o=(r=function({remoteConfigurationId:t}){let e=`dd_rc_${t}`;return{read(){let t;try{t=localStorage.getItem(e)}catch{return{status:"error"}}if(null===t)return{status:"miss"};let r=(0,M.XU)(t);return void 0===r||!function(t){if("object"!=typeof t||null===t)return!1;let e="version"in t&&3===t.version,r="config"in t&&"object"==typeof t.config&&null!==t.config,n="metadata"in t&&(0,N.OE)(t.metadata)&&"string"==typeof t.metadata.syncId&&"number"==typeof t.metadata.lastSynced;return e&&r&&n}(r)?(this.remove(),{status:"error"}):{status:"hit",config:r.config,metadata:r.metadata}},remove(){try{localStorage.removeItem(e)}catch{}},write(t,r){let n=this.read();("hit"!==n.status||JSON.stringify(n.config)!==JSON.stringify(t))&&P(e,{version:3,config:t,metadata:{lastModified:r,lastSynced:(0,O.nx)(),syncId:(0,D.lk)()}})},stampFirstApplied(t){if(void 0!==t.metadata.firstApplied)return t.metadata;let r={...t.metadata,firstApplied:(0,O.nx)()};return P(e,{version:3,config:t.config,metadata:r}),r}}}({remoteConfigurationId:Z(e)}),i=G(),a=r.read(),(i.increment("cache",L[a.status]),K(e).then(t=>{t.ok?(i.increment("fetch","success"),r.write(t.value,t.lastModified)):(i.increment("fetch","failure"),V.V.error(t.error))}).catch($.Dx).finally(()=>{(0,U.Gk)(U.Xf.REMOTE_CONFIGURATION_METRIC_NAME,{metrics:i.get()})}),"hit"===a.status)?{metadata:r.stampFirstApplied(a),initConfiguration:B(e,a.config,t,i)}:e.remoteConfiguration?.required?void 0:{initConfiguration:e});
1o&&b(o.initConfiguration,n,o.metadata)}}else b(e,n)}"boolean"==typeof i?i&&a():i.then(t=>{t&&a()}).catch($.Dx)},get initConfiguration(){return s},getInternalContext:tf.l,stopSession:tf.l,addTiming(t,e=(0,O.nx)()){d.notify(r=>r.addTiming(t,e))},setLoadingTime:t=>{d.notify(e=>e.setLoadingTime(t))},startView(t,e=(0,O.M8)()){let r=r=>{r.startView(t,e)};d.notify(r),a||(a={options:t,callback:r},y())},setViewName(t){d.notify(e=>e.setViewName(t))},setViewContext(t){d.notify(e=>e.setViewContext(t))},setViewContextProperty(t,e){d.notify(r=>r.setViewContextProperty(t,e))},getViewContext:()=>_,globalContext:f,userContext:p,accountContext:m,addAction(t){d.notify(e=>e.addAction(t))},startAction(t,e){let r=(0,O.M8)();d.notify(n=>n.startAction(t,e,r))},stopAction(t,e){let r=(0,O.M8)();d.notify(n=>n.stopAction(t,e,r))},startResource(t,e){let r=(0,O.M8)();d.notify(n=>n.startResource(t,e,r))},stopResource(t,e){let r=(0,O.M8)();d.notify(n=>n.stopResource(t,e,r))},addError(t){d.notify(e=>e.addError(t))},addFeatureFlagEvaluation(t,e){d.notify(r=>r.addFeatureFlagEvaluation(t,e))},startDurationVital(t,e){let r=(0,O.M8)();d.notify(n=>n.startDurationVital(t,e,r))},stopDurationVital(t,e){let r=(0,O.M8)();d.notify(n=>n.stopDurationVital(t,e,r))},addDurationVital(t){d.notify(e=>e.addDurationVital(t))},addOperationStepVital:(t,e,r,n)=>{d.notify(i=>i.addOperationStepVital((0,eN.a)(t),e,(0,eN.a)(r),(0,eN.a)(n)))}}}(r,n,(n,o,s,l,c,u)=>{let d=s&&r.createDeflateEncoder?t=>r.createDeflateEncoder(s,t):nv.N,f=(0,eL.B)(nc)(n,o,t,e,l,d,i.observable,c,u,r.sdkName);t.onRumStart(f.lifeCycle,n,o,f.viewHistory,s,f.telemetry),e.onRumStart(f.lifeCycle,f.hooks,n,o,f.viewHistory,d),p=a,m=f,a={...p,init:t=>{(0,np.$)("DD_RUM",t)},getInternalContext:m.getInternalContext,stopSession:m.stopSession,getViewContext:m.getViewContext,globalContext:m.globalContext,userContext:m.userContext,accountContext:m.accountContext};var p,m,h=n.plugins,g={addEvent:f.addEvent,addError:f.addError};for(let t of h??[])t.onRumStart?.(g);return f}),o=()=>a,s=(t,e)=>{let r=(0,ny.uC)("vital");(0,$.um)(()=>{(0,U.Q6)({feature:"add-operation-step-vital",action_type:"start"}),a.addOperationStepVital(t,"start",{...e,handlingStack:r})})},l=(0,$.dm)((t,e)=>{(0,U.Q6)({feature:"add-operation-step-vital",action_type:"succeed"}),a.addOperationStepVital(t,"end",e)}),c=(0,$.dm)((t,e,r)=>{(0,U.Q6)({feature:"add-operation-step-vital",action_type:"fail"}),a.addOperationStepVital(t,"end",r,e)}),u=(0,nb.m)({init:t=>{let e=Error().stack;(0,$.um)(()=>a.init(t,u,e))},setTrackingConsent:(0,$.dm)(t=>{n.update(t),(0,U.Q6)({feature:"set-tracking-consent",tracking_consent:t})}),setViewName:(0,$.dm)(t=>
1{a.setViewName(nE(t,"view name")),(0,U.Q6)({feature:"set-view-name"})}),setViewContext:(0,$.dm)(t=>{a.setViewContext(t),(0,U.Q6)({feature:"set-view-context"})}),setViewContextProperty:(0,$.dm)((t,e)=>{a.setViewContextProperty(t,e),(0,U.Q6)({feature:"set-view-context-property"})}),getViewContext:(0,$.dm)(()=>((0,U.Q6)({feature:"set-view-context-property"}),a.getViewContext())),getInternalContext:(0,$.dm)(t=>a.getInternalContext(t)),getInitConfiguration:(0,$.dm)(()=>(0,e$.Go)(a.initConfiguration)),addAction:(t,e)=>{let r=(0,ny.uC)("action");(0,$.um)(()=>{a.addAction({name:(0,eN.a)(t),context:(0,eN.a)(e),startClocks:(0,O.M8)(),type:m,handlingStack:r}),(0,U.Q6)({feature:"add-action"})})},startAction:(0,$.dm)((t,e)=>{(0,U.Q6)({feature:"start-action"}),a.startAction((0,eN.a)(t),{type:(0,eN.a)(e?.type),context:(0,eN.a)(e?.context),actionKey:e?.actionKey})}),stopAction:(0,$.dm)((t,e)=>{(0,U.Q6)({feature:"stop-action"}),a.stopAction((0,eN.a)(t),{type:(0,eN.a)(e?.type),context:(0,eN.a)(e?.context),actionKey:e?.actionKey})}),startResource:(0,$.dm)((t,e)=>{(0,U.Q6)({feature:"start-resource"}),a.startResource((0,eN.a)(t),{type:(0,eN.a)(e?.type),method:(0,eN.a)(e?.method),context:(0,eN.a)(e?.context),resourceKey:e?.resourceKey})}),stopResource:(0,$.dm)((t,e)=>{(0,U.Q6)({feature:"stop-resource"}),a.stopResource((0,eN.a)(t),{type:(0,eN.a)(e?.type),statusCode:e?.statusCode,size:e?.size,context:(0,eN.a)(e?.context),resourceKey:e?.resourceKey})}),addError:(t,e)=>{let r=(0,ny.uC)("error");(0,$.um)(()=>{a.addError({error:t,handlingStack:r,context:(0,eN.a)(e),startClocks:(0,O.M8)()}),(0,U.Q6)({feature:"add-error"})})},addTiming:(0,$.dm)((t,e)=>{a.addTiming((0,eN.a)(t),e)}),setViewLoadingTime:(0,$.dm)(()=>{let t=(0,O.nx)();a.setLoadingTime(t),(0,U.Q6)({feature:"addViewLoadingTime"})}),setGlobalContext:(0,nd.q)(o,nf.Nr.globalContext,nf.QQ.setContext,"set-global-context"),getGlobalContext:(0,nd.q)(o,nf.Nr.globalContext,nf.QQ.getContext,"get-global-context"),setGlobalContextProperty:(0,nd.q)(o,nf.Nr.globalContext,nf.QQ.setContextProperty,"set-global-context-property"),removeGlobalContextProperty:(0,nd.q)(o,nf.Nr.globalContext,nf.QQ.removeContextProperty,"remove-global-context-property"),clearGlobalContext:(0,nd.q)(o,nf.Nr.globalContext,nf.QQ.clearContext,"clear-global-context"),setUser:(0,nd.q)(o,nf.Nr.userContext,nf.QQ.setContext,"set-user"),getUser:(0,nd.q)(o,nf.Nr.userContext,nf.QQ.getContext,"get-user"),setUserProperty:(0,nd.q)(o,nf.Nr.userContext,nf.QQ.setContextProperty,"set-user-property"),removeUserProperty:(0,nd.q)(o,nf.Nr.userContext,nf.QQ.removeContextProperty,"remove-user-property"),clearUser:(0,nd.q)(o,nf.Nr.userContext,nf.QQ.clearContext,"clear-user"),setAccount:(0,nd.q)(o,nf.Nr.accountContext,nf.QQ.setContext,"set-account"),getAccount:(0,nd.q)(o,nf.Nr.accountContext,nf.QQ.getContext,"get-account"),setAccountProperty:(0,nd.q)(o,nf.Nr.accountContext,nf.QQ.setContextProperty,"set-account-property"),removeAccountProperty:(0,nd.q)(o,nf.Nr.accountContext,nf.QQ.removeContextProperty,"remove-account-property"),clearAccount:(0,nd.q)(o,nf.Nr.accountContext,nf.QQ.clearContext,"clear-account"),startView:t=>{let e=(0,ny.uC)("view");(0,$.um)(()=>{let r="object"==typeof t?t:{name:t};a.startView({...r,name:nE(r.name,"view name"),service:nE(r.service,"view service"),version:nE(r.version,"view version"),handlingStack:e}),(0,U.Q6)({feature:"start-view"})})},stopSession:(0,$.dm)(()=>{a.stopSession(),(0,U.Q6)({feature:"stop-session"})}),addFeatureFlagEvaluation:(0,$.dm)((t,e)=>{a.addFeatureFlagEvaluation((0,eN.a)(t),(0,eN.a)(e)),(0,U.Q6)({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:(0,$.dm)(()=>t.getSessionReplayLink()),startSessionReplayRecording:(0,$.dm)(e=>{t.start(e),(0,U.Q6)({feature:"start-session-replay-recording",force:e?.force})}),stopSessionReplayRecording:(0,$.dm)(()=>t.stop()),addDurationVital:(t,e)=>{let r=(0,ny.uC)("vital");(0,$.um)(()=>{(0,U.Q6)({feature:"add-duration-vital"}),a.addDurationVital({id:(0,D.lk)(),name:(0,eN.a)(t),type:_.DURATION,startClocks:(0,O.jR)(e.startTime),duration:e.duration,context:(0,eN.a)(e?.context),description:(0,eN.a)(e?.description),handlingStack:r})})},startDurationVital:(t,e)=>{let r=(0,ny.uC)("vital");(0,$.um)(()=>{(0,U.Q6)({feature:"start-duration-vital"}),a.startDurationVital((0,eN.a)(t),{vitalKey:e?.vitalKey,context:(0,eN.a)(e?.context),description:(0,eN.a)(e?.description),handlingStack:r})})},stopDurationVital:(0,$.dm)((t,e)=>{(0,U.Q6)({feature:"stop-duration-vital"}),a.stopDurationVital((0,eN.a)(t),{vitalKey:e?.vitalKey,context:(0,eN.a)(e?.context),description:(0,eN.a)(e?.description)})}),startOperation:s,succeedOperation:l,failOperation:c,startFeatureOperation:s,succeedFeatureOperation:l,failFeatureOperation:c,DEFAULT_TRACKED_RESOURCE_HEADERS:ta});return u}function nE(t,e){if(void 0!==t)return"string"!=typeof t?void V.V.warn(`Invalid ${e} provided (expected a string, got ${typeof t}). Ignoring.`):(0,eN.a)(t)}function nS(t,{session:e,viewContext:r,errorType:n}){var i;let a,o,s=e?e.id:"no-session-id",l=[];return void 0!==n&&l.push(`error-type=${n}`),r&&(l.push(`seed=${r.id}`),l.push(`from=${r.startClocks.timeStamp}`)),`${a=(i=t).site,o=i.subdomain||function(t){switch(t.site){case tE.NW:case tE.dV:return"app";case tE.Bb:return"dd";default:return}}(i),`https://${o?`${o}.`:""}${a}`}/rum/replay/sessions/${s}?${l.join("&")}`}var nk=r(31705),nA=r(62428);function nC(t,e,r,n){let i=(0,nk.sA)([(0,q.ns)(t,"profile")],t=>{e.notify(15,{error:{message:t,source:ro.gf.AGENT,startClocks:(0,O.M8)()}}),(0,U.A2)("Error reported to customer",{"error.message":t})}),a=r(n);return{async send({event:t,...e}){let r=new FormData,n=(0,nA.s)(t);if(!n)throw Error("Failed to serialize event");r.append("event",new Blob([n],{type:"application/json"}),"event.json");let o=n.length;for(let[t,n]of(0,ev.WP)(e)){let e=(0,nA.s)(n);if(!e)throw Error("Failed to serialize attachment");let i=await function(t,e){return new Promise(r=>{t.write(e),t.finish(t=>{r(t)})})}(a,e);o+=i.outputBytesCount,r.append(t,new Blob([i.output]),t)}i.send({data:r,bytesCount:o})}}}},30688:(t,e,r)=>{let n;r.d(e,{datadogRum:()=>U});var i=r(69419),a=r(85128);function o(t,e){let r,n=0,o=[],s=!0,l=0,c=[],{stop:u}=(0,i.q2)(t,"message",({data:t})=>{if("wrote"!==t.type||t.streamId!==e)return;let i=c[0];i&&(i.id===t.id?(c.shift(),n+=t.additionalBytesCount,o.push(t.result),r=t.trailer,i.writeCallback?i.writeCallback(t.result.byteLength):i.finishCallback&&i.finishCallback()):i.id<t.id&&u())});function d(){let t=0===o.length?new Uint8Array(0):(0,a.wh)(o.concat(r)),e={rawBytesCount:n,output:t,outputBytesCount:t.byteLength,encoding:"deflate"};return n=0,o=[],e}function f(){s||(t.postMessage({action:"reset",streamId:e}),s=!0)}return{isAsync:!0,get isEmpty(){return s},write(r,n){t.postMessage({action:"write",id:l,data:r,streamId:e}),c.push({id:l,writeCallback:n,data:r}),s=!1,l+=1},finish(t){f(),c.length?(c.forEach(t=>{delete t.writeCallback}),c[c.length-1].finishCallback=()=>t(d())):t(d())},finishSync(){f();let t=c.map(t=>t.data).join("");return c.length=0,{...d(),pendingData:t}},estimateEncodedBytesCount:t=>t.length/8,stop(){u()}}}var s=r(80781),l=r(6677),c=r(33023);function u({configuredUrl:t,error:e,source:r,scriptType:n}){var i;if(s.V.error(`${r} failed to start: an error occurred while initializing the ${n}:`,e),e instanceof Event||e instanceof Error&&((i=e.message).includes("Content Security Policy")||i.includes("requires 'TrustedScriptURL'"))){let e;e=t?`Please make sure the ${n} URL ${t} is correct and CSP is correctly configured.`:"Please make sure CSP is correctly configured.",s.V.error(`${e} See documentation at ${c.fH}/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay`)}else"worker"===n&&(0,l.VJ)(e)}var d=r(41817),f=r(74864),p=r(38208);let m=30*p.OY;function h(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['(()=>{function t(t){if(1===t.length)return t[0];const e=t.reduce((t,e)=>t+e.length,0),a=new Uint8Array(e);let n=0;for(const e of t)a.set(e,n),n+=e.length;return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),n=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),r=new
1Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),i=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=Array(576);e(s);var h=Array(60);e(h);var l=Array(512);e(l);var _=Array(256);e(_);var o=Array(29);e(o);var d,u,f,c=Array(30);function p(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t?.length}function g(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(c);var v=function(t){return t<256?l[t]:l[256+(t>>>7)]},w=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},m=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,w(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},b=function(t,e,a){m(t,a[2*e],a[2*e+1])},y=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},z=function(t,e,a){var n,r,i=Array(16),s=0;for(n=1;n<=15;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=y(i[h]++,h))}},k=function(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},x=function(t){t.bi_valid>8?w(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},A=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},U=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&A(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!A(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},B=function(t,e,r){var i,s,h,l,d=0;if(0!==t.last_lit)do{i=t.pending_buf[t.d_buf+2*d]<<8|t.pending_buf[t.d_buf+2*d+1],s=t.pending_buf[t.l_buf+d],d++,0===i?b(t,s,e):(h=_[s],b(t,h+256+1,e),0!==(l=a[h])&&(s-=o[h],m(t,s,l)),i--,h=v(i),b(t,h,r),0!==(l=n[h])&&(i-=c[h],m(t,i,l)))}while(d<t.last_lit);b(t,256,e)},I=function(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,_=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==i[2*a]?(t.heap[++t.heap_len]=_=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=_<2?++_:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=_,a=t.heap_len>>1;a>=1;a--)U(t,i,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],U(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,U(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,s,h,l=e.dyn_tree,_=e.max_code,o=e.stat_desc.static_tree,d=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,c=e.stat_desc.max_length,p=0;for(i=0;i<=15;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(i=l[2*l[2*(n=t.heap[a])+1]+1]+1)>c&&(i=c,p++),l[2*n+1]=i,n>_||(t.bl_count[i]++,s=0,n>=f&&(s=u[n-f]),h=l[2*n],t.opt_len+=h*(i+s),d&&(t.static_len+=h*(o[2*n+1]+s)));if(0!==p){do{for(i=c-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[c]--,p-=2}while(p>0);for(i=c;0!==i;i--)for(n=t.bl_count[i];0!==n;)(r=t.heap[--a])>_||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),z(i,_,t.bl_count)},E=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},D=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{b(t,r,t.bl_tree)}while(0!==--h);else 0!==r?(r!==i&&(b(t,r,t.bl_tree),h--),b(t,16,t.bl_tree),m(t,h-3,2)):h<=10?(b(t,17,t.bl_tree),m(t,h-3,3)):(b(t,18,t.bl_tree),m(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},M=!1,j=function(t,e,a,n){m(t,0+(n?1:0),3),function(t,e,a){x(t),w(t,a),w(t,~a),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a)},C=j,L=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16},S=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),O=function(t,e,a,n){var r=S,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},T={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},q=C,F=function(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(_[a]+256+1)]++,t.dyn_dtree[2*v(e)]++),t.last_lit===t.lit_bufsize-1},G=-2,H=258,J=262,K=103,N=113,P=666,Q=function(t,e){return t.msg=T[e],e},R=function(t){return(t<<1)-(t>4?9:0)},V=function(t){for(var e=t.length;--e>=0;)t[e]=0},W=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},X=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},Y=function(t,e){(function(t,e,a,n){var r,l,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),_=function(t){var e;
1for(E(t,t.dyn_ltree,t.l_desc.max_code),E(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*i[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(l=t.static_len+3+7>>>3)<=r&&(r=l)):r=l=a+5,a+4<=r&&-1!==e?j(t,e,a,n):4===t.strategy||l===r?(m(t,2+(n?1:0),3),B(t,s,h)):(m(t,4+(n?1:0),3),function(t,e,a,n){var r;for(m(t,e-257,5),m(t,a-1,5),m(t,n-4,4),r=0;r<n;r++)m(t,t.bl_tree[2*i[r]+1],3);D(t,t.dyn_ltree,e-1),D(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),B(t,t.dyn_ltree,t.dyn_dtree)),k(t),n&&x(t)})(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,X(t.strm)},Z=function(t,e){t.pending_buf[t.pending++]=e},$=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},tt=function(t,e,a,n){var r=t.avail_in;return r>n&&(r=n),0===r?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),a),1===t.state.wrap?t.adler=L(t.adler,e,r,a):2===t.state.wrap&&(t.adler=O(t.adler,e,r,a)),t.next_in+=r,t.total_in+=r,r)},et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-J?t.strstart-(t.w_size-J):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+H,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&i<u);if(n=H-(u-i),i=u-H,n>s){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!==--r);return s<=t.lookahead?s:t.lookahead},at=function(t){var e,a,n,r,i,s=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-J)){t.window.set(t.window.subarray(s,s+s),0),t.match_start-=s,t.strstart-=s,t.block_start-=s,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=s?n-s:0}while(--a);e=a=s;do{n=t.prev[--e],t.prev[e]=n>=s?n-s:0}while(--a);r+=s}if(0===t.strm.avail_in)break;if(a=tt(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=W(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=W(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<J&&0!==t.strm.avail_in)},nt=function(t,e){for(var a,n;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a)),t.match_length>=3)if(n=F(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=W(t,t.ins_h,t.window[t.strstart+1]);else n=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2},rt=function(t,e){for(var a,n,r;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=F(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Y(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=F(t,0,t.window[t.strstart-1]))&&Y(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=F(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2};function it(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var st=[new it(0,0,0,0,function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(at(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Y(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-J&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Y(t,!1),t.strm.avail_out),1)}),new it(4,4,8,4,nt),new it(4,5,16,8,nt),new it(4,6,32,32,nt),new it(4,4,16,16,rt),new it(8,16,32,32,rt),new it(8,16,128,128,rt),new it(8,32,128,256,rt),new it(32,128,258,1024,rt),new it(32,258,258,4096,rt)];function ht(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}for(var lt=function(t){var e,i=function(t){if(!t?.state)return Q(t,G);t.total_in=t.total_out=0,t.data_type=2;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:N,t.adler=2===e.wrap?0:1,e.last_flush=0,function(t){M||(function(){var t,e,i,g,v,w=Array(16);for(i=0,g=0;g<28;g++)for(o[g]=i,t=0;t<1<<a[g];t++)_[i++]=g;for(_[i-1]=g,v=0,g=0;g<16;g++)for(c[g]=v,t=0;t<1<<n[g];t++)l[v++]=g;for(v>>=7;g<30;g++)for(c[g]=v<<7,t=0;t<1<<n[g]-7;t++)l[256+v++]=g;for(e=0;e<=15;e++)w[e]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,w[8]++;for(;t<=255;)s[2*t+1]=9,t++,w[9]++;for(;t<=279;)s[2*t+1]=7,t++,w[7]++;for(;t<=287;)s[2*t+1]=8,t++,w[8]++;for(z(s,287,w),t=0;t<30;t++)h[2*t+1]=5,h[2*t]=y(t,5);d=new p(s,a,257,286,15),u=new p(h,n,0,30,15),f=new p([],r,0,19,7)}(),M=!0),t.l_desc=new g(t.dyn_ltree,d),t.d_desc=new g(t.dyn_dtree,u),t.bl_desc=new g(t.bl_tree,f),t.bi_buf=0,t.bi_valid=0,k(t)}(e),0}(t);return 0===i&&((e=t.state).window_size=2*e.w_size,V(e.head),e.max_lazy_match=st[e.level].max_lazy,e.good_match=st[e.level].good_length,e.nice_match=st[e.level].nice_length,e.max_chain_length=st[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),i},_t=function(t,e){var a,n;if(!t?.state||e>5||e<0)return t?Q(t,G):G;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===P&&4!==e)return Q(t,0===t.avail_out?-5:G);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Z(r,31),Z(r,139),Z(r,8),r.gzhead?(Z(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Z(r,255&r.gzhead.time),Z(r,r.gzhead.time>>8&255),Z(r,r.gzhead.time>>16&255),Z(r,r.gzhead.time>>24&255),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,255&r.gzhead.os),r.gzhead.extra?.length&&(Z(r,255&r.gzhead.extra.length),Z(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=O(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,3),r.status=N);else{var h=8+(r.w_bits-8<<4)<<8;h|=(r.strategy>
1=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(h|=32),h+=31-h%31,r.status=N,$(r,h),0!==r.strstart&&($(r,t.adler>>>16),$(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending!==r.pending_buf_size));)Z(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=K)}else r.status=K;if(r.status===K&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&X(t),r.pending+2<=r.pending_buf_size&&(Z(r,255&t.adler),Z(r,t.adler>>8&255),t.adler=0,r.status=N)):r.status=N),0!==r.pending){if(X(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&R(e)<=R(i)&&4!==e)return Q(t,-5);if(r.status===P&&0!==t.avail_in)return Q(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&r.status!==P){var l=2===r.strategy?function(t,e){for(var a;;){if(0===t.lookahead&&(at(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=H){if(at(t),t.lookahead<=H&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+H;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=H-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=F(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):st[r.level].func(r,e);if(3!==l&&4!==l||(r.status=P),1===l||3===l)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===l&&(1===e?function(t){m(t,2,3),b(t,256,s),function(t){16===t.bi_valid?(w(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}(r):5!==e&&(q(r,0,0,!1),3===e&&(V(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),X(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(Z(r,255&t.adler),Z(r,t.adler>>8&255),Z(r,t.adler>>16&255),Z(r,t.adler>>24&255),Z(r,255&t.total_in),Z(r,t.total_in>>8&255),Z(r,t.total_in>>16&255),Z(r,t.total_in>>24&255)):($(r,t.adler>>>16),$(r,65535&t.adler)),X(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},ot=function(t){if(!t?.state)return G;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==K&&e!==N&&e!==P?Q(t,G):(t.state=null,e===N?Q(t,-3):0)},dt=new Uint8Array(256),ut=0;ut<256;ut++)dt[ut]=ut>=252?6:ut>=248?5:ut>=240?4:ut>=224?3:ut>=192?2:1;dt[254]=dt[254]=1;var ft=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},ct=Object.prototype.toString;function pt(){this.options={level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ft,this.strm.avail_out=0;var e,a,n=function(t,e,a,n,r,i){if(!t)return G;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||8!==a||n<8||n>15||e<0||e>9||i<0||i>4)return Q(t,G);8===n&&(n=9);var h=new ht;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,lt(t)}(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw Error(T[n]);if(t.header&&(e=this.strm,a=t.header,e?.state&&(2!==e.state.wrap||(e.state.gzhead=a))),t.dictionary){var r;if(r="[object ArrayBuffer]"===ct.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=function(t,e){var a=e.length;if(!t?.state)return G;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return G;if(1===r&&(t.adler=L(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(V(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);
1i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,at(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=W(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,at(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,0}(this.strm,r)))throw Error(T[n]);this._dict_set=!0}}function gt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch{t.postMessage({type:"errored",error:e+"",streamId:a})}}function vt(t){const e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}pt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?4:0,"[object ArrayBuffer]"===ct.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(2===n||3===n)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(1===(a=_t(r,n)))return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=ot(this.strm),this.onEnd(a),this.ended=!0,0===a;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},pt.prototype.onData=function(t){this.chunks.push(t)},pt.prototype.onEnd=function(t){0===t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e=self){try{const a=new Map;e.addEventListener("message",n=>{try{const r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"7.13.0"};case"write":{let n=e.get(a.streamId);n||(n=new pt,e.set(a.streamId,n));const r=n.chunks.length,i=(new TextEncoder).encode(a.data);return n.push(i,2),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:vt(n),additionalBytesCount:i.length}}case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){gt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}})}catch(t){gt(e,t)}}()})();'])))}let g={status:0};function _(t,e,r){switch(0===g.status&&function(t,e){try{let r=(0,d.B)(h)(t),{stop:n}=(0,i.q2)(r,"error",r=>{v(t,e,r)}),{stop:a}=(0,i.q2)(r,"message",({data:r})=>{var n;"errored"===r.type?v(t,e,r.error,r.streamId):"initialized"===r.type&&(n=r.version,1===g.status&&(g={status:3,worker:g.worker,stop:g.stop,version:n}))});r.postMessage({action:"init"}),(0,f.wg)(()=>{var t;return t=e,void(1===g.status&&(s.V.error(`${t} failed to start: a timeout occurred while initializing the Worker`),g.initializationFailureCallbacks.forEach(t=>t()),g={status:2}))},m),g={status:1,worker:r,stop:()=>{n(),a()},initializationFailureCallbacks:[]}}catch(r){v(t,e,r)}}(t,e),g.status){case 1:return g.initializationFailureCallbacks.push(r),g.worker;case 3:return g.worker}}function v(t,e,r,n){1===g.status||0===g.status?(u({configuredUrl:t.workerUrl,error:r,source:e,scriptType:"worker"}),1===g.status&&g.initializationFailureCallbacks.forEach(t=>t()),g={status:2}):(0,l.VJ)(r,{worker_version:3===g.status&&g.version,stream_id:n})}var y=r(3279),b=r(5492),w=r(5170);async function E(){try{return await (0,d.B)(S)()}catch(t){u({error:t,source:"Recorder",scriptType:"module"})}}async function S(){return(await r.e(3581).then(r.bind(r,29260))).startRecording}var k=r(89312),A=r(39582),C=r(79757);async function R(t,e,r){try{return await r}finally{t.notify(e)}}var T=r(26042),x=r(54622),I=r(49589);function O(){return void 0!==I.J.Profiler}var N=r(43716);async function M(){try{return await (0,d.B)(D)()}catch(t){u({error:t,source:"Profiler",scriptType:"module"})}}async function D(){return(await r.e(2440).then(r.bind(r,86639))).createRumProfiler}var L=r(20818),P=r(25282);let V=function(){let t;if((0,T.d0)()&&!(0,T.Ww)(T.oc.RECORDS))return{start:w.l,stop:w.l,getReplayStats:()=>void 0,onRumStart:w.l,isRecording:()=>!1,getSessionReplayLink:()=>void 0};let{strategy:e,shouldStartImmediately:r}=(t=0,{strategy:{start(){t=1},stop(){t=2},isRecording:()=>!1,getSessionReplayLink:w.l},shouldStartImmediately:e=>1===t||0===t&&!e.startSessionReplayRecordingManually});return{start:t=>e.start(t),stop:()=>e.stop(),getSessionReplayLink:()=>
1e.getSessionReplayLink(),onRumStart:function(t,n,i,a,s,c){let u;e=function(t,e,r,n,i,a){let o,s=0;e.subscribe(b.Rg.SESSION_EXPIRED,()=>{(2===s||3===s)&&(f(),s=1)}),e.subscribe(b.Rg.SESSION_RENEWED,()=>{1===s&&d()});let c=new k.cP;!function(t,e){let r,n,i;if(!t.metricsEnabled)return w.l;let{unsubscribe:a}=e.subscribe(t=>{switch(t.type){case"start":r={forced:t.forced,timestamp:(0,p.nx)()},n=void 0,i=void 0;break;case"document-ready":r&&(n=(0,p.vk)(r.timestamp,(0,p.nx)()));break;case"recorder-settled":r&&(i=(0,p.vk)(r.timestamp,(0,p.nx)()));break;case"aborted":case"deflate-encoder-load-failed":case"recorder-load-failed":case"succeeded":var e,o,s,c;a(),r&&(0,l.Gk)(l.Xf.RECORDER_INIT_METRICS_TELEMETRY_NAME,{metrics:(e=r.forced,o=i,s=(0,p.vk)(r.timestamp,(0,p.nx)()),c=t.type,{forced:e,loadRecorderModuleDuration:o,recorderInitDuration:s,result:c,waitForDocReadyDuration:n})})}})}(a,c);let u=async l=>{c.notify({type:"start",forced:l});let[u]=await Promise.all([R(c,{type:"recorder-settled"},E()),R(c,{type:"document-ready"},(0,A.N)("interactive"))]);if(2!==s)return void c.notify({type:"aborted"});if(!u){s=0,c.notify({type:"recorder-load-failed"});return}let d=i();if(!d){s=0,c.notify({type:"deflate-encoder-load-failed"});return}({stop:o}=u(e,t,r,n,d,a)),s=3,c.notify({type:"succeeded"})};function d(e){var n,i,a,o,l;let c=r.findTrackedSession(),d=c?(0,b.K$)(c,t):void 0;if(n=d,i=e,!(void 0!==n&&(n!==b.xC.OFF||i?.force))){s=1;return}if(2===(a=s)||3===a)return;s=2;let f=(o=d,(l=e)&&l.force&&o===b.xC.OFF||!1);u(f).catch(C.Dx),f&&r.updateSessionState({forcedReplay:"1"})}function f(){3===s&&o?.(),s=0}return{start:d,stop:f,getSessionReplayLink:()=>{var e,i,a,o;let l,c,u;return e=0!==s,l=r.findTrackedSession(),i=t,a=l,o=e,c=a?(0,b.K$)(a,i)===b.xC.OFF?"incorrect-session-plan":o?void 0:"replay-not-started":"rum-not-tracked",u=n.findView(),(0,b.dx)(t,{viewContext:u,errorType:c,session:l})},isRecording:()=>3===s}}(n,t,i,a,function(){return!u&&(s??=_(n,"Datadog Session Replay",()=>e.stop()))&&(u=o(s,x.j.REPLAY)),u},c),r(n)&&e.start()},isRecording:()=>3===g.status&&e.isRecording(),getReplayStats:t=>3===g.status?(0,y.lv)(t):void 0}}(),U=(0,b.AB)(V,{onRumStart:function(t,e,r,i,a,o){var s,l;let c,u=i.findTrackedSession();if(!u||(s=r,l=u,(0,T.d0)()?!(0,T.Ww)(T.oc.PROFILES):!(0,L.$5)(l.id,(0,L.it)(s.sessionSampleRate,s.profilingSampleRate))))return;let f=(c={status:"starting"},e.assembleEventDefaults.register(({eventType:t})=>t!==b.bb.VIEW&&t!==b.bb.LONG_TASK&&t!==b.bb.ACTION&&t!==b.bb.VITAL?N.$O:{type:t,_dd:{profiling:c}}),{get:()=>c,set:t=>{c=t}});(0,d.B)(O)()?(0,d.B)(M)().then(e=>{e?(n=e(r,t,i,f,o,a,void 0)).start():f.set({status:"error",error_reason:"failed-to-lazy-load"})}).catch(C.Dx):f.set({status:"error",error_reason:"not-supported-by-browser"})},stop:()=>{n?.stop()}},{startDeflateWorker:_,createDeflateEncoder:o,sdkName:"rum"});(0,P.Z)(I.J,"DD_RUM",U)},39582:(t,e,r)=>{r.d(e,{H:()=>a,N:()=>o});var n=r(5170),i=r(69419);function a(t,e){return document.readyState===t||"complete"===document.readyState?(e(),{stop:n.l}):(0,i.q2)(window,"complete"===t?"load":"DOMContentLoaded",e,{once:!0})}function o(t){return new Promise(e=>{a(t,e)})}},52187:(t,e,r)=>{r.d(e,{B:()=>o});var n=r(74864),i=r(79757),a=r(38208);function o(t,e){var r;let o,s;if(window.requestIdleCallback&&window.cancelIdleCallback){let r=window.requestIdleCallback((0,i.dm)(t),e);return()=>window.cancelIdleCallback(r)}return r=t,o=(0,a.x3)(),s=(0,n.wg)(()=>{r({didTimeout:!1,timeRemaining:()=>Math.max(0,50-((0,a.x3)()-o))})},0),()=>(0,n.DJ)(s)}},54622:(t,e,r)=>{var n;r.d(e,{j:()=>i});let i=((n={})[n.REPLAY=1]="REPLAY",n[n.RUM=2]="RUM",n[n.TELEMETRY=4]="TELEMETRY",n[n.PROFILING=6]="PROFILING",n)}}]);
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.