var Ke={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},vt=console,Ht={};Object.keys(Ke).forEach(function(t){Ht[t]=vt[t]});var se="Datadog Browser SDK:",T={debug:Ht.debug.bind(vt,se),log:Ht.log.bind(vt,se),info:Ht.info.bind(vt,se),warn:Ht.warn.bind(vt,se),error:Ht.error.bind(vt,se)},je="https://docs.datadoghq.com",Qn="".concat(je,"/real_user_monitoring/browser/troubleshooting"),qe="More details:";function ta(t,e){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{return t.apply(void 0,r)}catch(a){T.error(e,a)}}}function Ot(t){return t!==0&&Math.random()*100<=t}function Ue(t,e){return+t.toFixed(e)}function ji(t){return Zt(t)&&t>=0&&t<=100}function Zt(t){return typeof t=="number"}var K=1e3,X=60*K,ea=60*X,qi=24*ea,Yi=365*qi;function Ye(t){return{relative:t,timeStamp:Xi(t)}}function Wi(t){return{relative:Br(t),timeStamp:t}}function Xi(t){var e=st()-performance.now();return e>_e()?Math.round(Jt(e,t)):Ji(t)}function Zi(){return Math.round(st()-Jt(_e(),performance.now()))}function w(t){return Zt(t)?Ue(t*1e6,0):t}function st(){return new Date().getTime()}function U(){return st()}function rt(){return performance.now()}function G(){return{relative:rt(),timeStamp:U()}}function ra(){return{relative:0,timeStamp:_e()}}function B(t,e){return e-t}function Jt(t,e){return t+e}function Br(t){return t-_e()}function Ji(t){return Math.round(Jt(_e(),t))}function $i(t){return t<Yi}var dr;function _e(){return dr===void 0&&(dr=performance.timing.navigationStart),dr}var bt=1024,na=1024*bt,Qi=/[^\u0000-\u007F]/;function zr(t){return Qi.test(t)?window.TextEncoder!==void 0?new TextEncoder().encode(t).length:new Blob([t]).size:t.length}function to(t){for(var e=t.reduce(function(s,c){return s+c.length},0),r=new Uint8Array(e),n=0,a=0,i=t;a<i.length;a++){var o=i[a];r.set(o,n),n+=o.length}return r}function nt(t,e){return t.indexOf(e)!==-1}function Hr(t){if(Array.from)return Array.from(t);var e=[];if(t instanceof Set)t.forEach(function(n){return e.push(n)});else for(var r=0;r<t.length;r++)e.push(t[r]);return e}function yt(t,e){for(var r=0;r<t.length;r+=1){var n=t[r];if(e(n,r))return n}}function eo(t,e){for(var r=t.length-1;r>=0;r-=1){var n=t[r];if(e(n,r,t))return n}}function ro(t,e){Array.prototype.forEach.call(t,e)}function We(t){return Object.keys(t).map(function(e){return t[e]})}function Gr(t){return Object.keys(t).map(function(e){return[e,t[e]]})}function ge(t,e){return t.slice(0,e.length)===e}function no(t,e){return t.slice(-e.length)===e}function E(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.forEach(function(n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}),t}function ve(t){return E({},t)}function Ve(t,e){return Object.keys(t).some(function(r){return t[r]===e})}function Lt(t){return Object.keys(t).length===0}function ao(t,e){for(var r={},n=0,a=Object.keys(t);n<a.length;n++){var i=a[n];r[i]=e(t[i])}return r}function Tt(){if(typeof globalThis=="object")return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var t=_dd_temp_;return delete Object.prototype._dd_temp_,typeof t!="object"&&(typeof self=="object"?t=self:typeof window=="object"?t=window:t={}),t}function St(t,e){var r=Tt(),n;return r.Zone&&typeof r.Zone.__symbol__=="function"&&(n=t[r.Zone.__symbol__(e)]),n||(n=t[e]),n}var io=function(t,e,r){if(r||arguments.length===2)for(var n=0,a=e.length,i;n<a;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))},Or,aa=!1;function oo(t){Or=t}function so(t){aa=t}function y(t){return function(){return Mt(t,this,arguments)}}function Mt(t,e,r){try{return t.apply(e,r)}catch(n){if(Nr(n),Or)try{Or(n)}catch(a){Nr(a)}}}function Nr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];aa&&T.error.apply(T,io(["[MONITOR]"],t,!1))}function F(t,e){return St(Tt(),"setTimeout")(y(t),e)}function J(t){St(Tt(),"clearTimeout")(t)}function $t(t,e){return St(Tt(),"setInterval")(y(t),e)}function Xe(t){St(Tt(),"clearInterval")(t)}var I=function(){function t(e){this.onFirstSubscribe=e,this.observers=[]}return t.prototype.subscribe=function(e){var r=this;return this.observers.push(e),this.observers.length===1&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),{unsubscribe:function(){r.observers=r.observers.filter(function(n){return e!==n}),!r.observers.length&&r.onLastUnsubscribe&&r.onLastUnsubscribe()}}},t.prototype.notify=function(e){this.observers.forEach(function(r){return r(e)})},t}();function ia(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new I(function(r){var n=t.map(function(a){return a.subscribe(function(i){return r.notify(i)})});return function(){return n.forEach(function(a){return a.unsubscribe()})}})}function pt(t,e,r){var n=r&&r.leading!==void 0?r.leading:!0,a=r&&r.trailing!==void 0?r.trailing:!0,i=!1,o,s;return{throttled:function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];if(i){o=c;return}n?t.apply(void 0,c):o=c,i=!0,s=F(function(){a&&o&&t.apply(void 0,o),i=!1,o=void 0},e)},cancel:function(){J(s),i=!1,o=void 0}}}function C(){}function z(t){return t?(parseInt(t,10)^Math.random()*16>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,z)}var Fe=/([\w-]+)\s*=\s*([^;]+)/g;function pe(t,e){for(Fe.lastIndex=0;;){var r=Fe.exec(t);if(r){if(r[1]===e)return r[2]}else break}}function uo(t){var e=new Map;for(Fe.lastIndex=0;;){var r=Fe.exec(t);if(r)e.set(r[1],r[2]);else break}return e}function oa(t,e,r){r===void 0&&(r="");var n=t.charCodeAt(e-1),a=n>=55296&&n<=56319,i=a?e+1:e;return t.length<=i?t:"".concat(t.slice(0,i)).concat(r)}function co(){return Kr()===0}function lo(){return Kr()===1}function fo(){return Kr()===2}var Ie;function Kr(){return Ie??(Ie=vo())}function vo(t){var e;t===void 0&&(t=window);var r=t.navigator.userAgent;return t.chrome||/HeadlessChrome/.test(r)?1:((e=t.navigator.vendor)===null||e===void 0?void 0:e.indexOf("Apple"))===0||/safari/i.test(r)&&!/chrome|android/i.test(r)?2:t.document.documentMode?0:3}function be(t,e,r,n){var a=new Date;a.setTime(a.getTime()+r);var i="expires=".concat(a.toUTCString()),o=n&&n.crossSite?"none":"strict",s=n&&n.domain?";domain=".concat(n.domain):"",c=n&&n.secure?";secure":"",u=n&&n.partitioned?";partitioned":"";document.cookie="".concat(t,"=").concat(e,";").concat(i,";path=/;samesite=").concat(o).concat(s).concat(c).concat(u)}function jr(t){return pe(document.cookie,t)}var fr;function mt(t){return fr||(fr=uo(document.cookie)),fr.get(t)}function sa(t,e){be(t,"",0,e)}function po(t){if(document.cookie===void 0||document.cookie===null)return!1;try{var e="dd_cookie_test_".concat(z()),r="test";be(e,r,X,t);var n=jr(e)===r;return sa(e,t),n}catch(a){return T.error(a),!1}}var vr;function ho(){if(vr===void 0){for(var t="dd_site_test_".concat(z()),e="test",r=window.location.hostname.split("."),n=r.pop();r.length&&!jr(t);)n="".concat(r.pop(),".").concat(n),be(t,e,K,{domain:n});sa(t,{domain:n}),vr=n}return vr}var Qt="_dd_s",Ut=4*ea,ua=15*X,ca=/^([a-zA-Z]+)=([a-z0-9-]+)$/,qr="&",mo="1";function xt(){return{isExpired:mo}}function Me(t){return Lt(t)}function la(t){return!Me(t)}function Be(t){return t.isExpired!==void 0||!_o(t)}function _o(t){return(t.created===void 0||st()-Number(t.created)<Ut)&&(t.expire===void 0||st()<Number(t.expire))}function da(t){t.expire=String(st()+ua)}function Yr(t){return Gr(t).map(function(e){var r=e[0],n=e[1];return"".concat(r,"=").concat(n)}).join(qr)}function fa(t){var e={};return go(t)&&t.split(qr).forEach(function(r){var n=ca.exec(r);if(n!==null){var a=n[1],i=n[2];e[a]=i}}),e}function go(t){return!!t&&(t.indexOf(qr)!==-1||ca.test(t))}var bo="_dd",yo="_dd_r",So="_dd_l",Eo="rum",wo="logs";function To(t){var e=mt(Qt);if(!e){var r=mt(bo),n=mt(yo),a=mt(So),i={};r&&(i.id=r),a&&/^[01]$/.test(a)&&(i[wo]=a),n&&/^[012]$/.test(n)&&(i[Eo]=n),la(i)&&(da(i),t.persistSession(i))}}function Co(t){var e=ko(t);return po(e)?{type:"Cookie",cookieOptions:e}:void 0}function Ao(t){var e={isLockEnabled:lo(),persistSession:Io(t),retrieveSession:xo,expireSession:function(){return Ro(t)}};return To(e),e}function Io(t){return function(e){be(Qt,Yr(e),ua,t)}}function Ro(t){be(Qt,Yr(xt()),Ut,t)}function xo(){var t=jr(Qt);return fa(t)}function ko(t){var e={};return e.secure=!!t.useSecureSessionCookie||!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,e.crossSite=!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,e.partitioned=!!t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(e.domain=ho()),e}var Oo="_dd_test_";function No(){try{var t=z(),e="".concat(Oo).concat(t);localStorage.setItem(e,t);var r=localStorage.getItem(e);return localStorage.removeItem(e),t===r?{type:"LocalStorage"}:void 0}catch{return}}function Lo(){return{isLockEnabled:!1,persistSession:va,retrieveSession:Mo,expireSession:Do}}function va(t){localStorage.setItem(Qt,Yr(t))}function Mo(){var t=localStorage.getItem(Qt);return fa(t)}function Do(){va(xt())}var Po=10,Uo=100,pa=[],De;function kt(t,e,r){var n;r===void 0&&(r=0);var a=e.isLockEnabled,i=e.persistSession,o=e.expireSession,s=function(l){return i(E({},l,{lock:u}))},c=function(){var l=e.retrieveSession(),v=l.lock;return l.lock&&delete l.lock,{session:l,lock:v}};if(De||(De=t),t!==De){pa.push(t);return}if(a&&r>=Uo){fn(e);return}var u,d=c();if(a){if(d.lock){Re(t,e,r);return}if(u=z(),s(d.session),d=c(),d.lock!==u){Re(t,e,r);return}}var f=t.process(d.session);if(a&&(d=c(),d.lock!==u)){Re(t,e,r);return}if(f&&(Be(f)?o():(da(f),a?s(f):i(f))),a&&!(f&&Be(f))){if(d=c(),d.lock!==u){Re(t,e,r);return}i(d.session),f=d.session}(n=t.after)===null||n===void 0||n.call(t,f||d.session),fn(e)}function Re(t,e,r){F(function(){kt(t,e,r+1)},Po)}function fn(t){De=void 0;var e=pa.shift();e&&kt(e,t)}var vn=K;function Vo(t){var e=Co(t);return!e&&t.allowFallbackToLocalStorage&&(e=No()),e}function Fo(t,e,r){var n=new I,a=new I,i=new I,o=t.type==="Cookie"?Ao(t.cookieOptions):Lo(),s=o.expireSession,c=$t(p,vn),u;m();var d=pt(function(){kt({process:function(g){if(!Me(g)){var V=h(g);return _(V),V}},after:function(g){la(g)&&!b()&&D(g),u=g}},o)},vn),f=d.throttled,l=d.cancel;function v(){kt({process:function(g){return b()?h(g):void 0}},o)}function p(){kt({process:function(g){return Be(g)?xt():void 0},after:h},o)}function h(g){return Be(g)&&(g=xt()),b()&&(A(g)?x():(i.notify({previousState:u,newState:g}),u=g)),g}function m(){kt({process:function(g){if(Me(g))return xt()},after:function(g){u=g}},o)}function _(g){if(Me(g))return!1;var V=r(g[e]),It=V.trackingType,N=V.isTracked;g[e]=It,delete g.isExpired,N&&!g.id&&(g.id=z(),g.created=String(st()))}function b(){return u[e]!==void 0}function A(g){return u.id!==g.id||u[e]!==g[e]}function x(){u=xt(),a.notify()}function D(g){u=g,n.notify()}function O(g){kt({process:function(V){return E({},V,g)},after:h},o)}return{expandOrRenewSession:f,expandSession:v,getSession:function(){return u},renewObservable:n,expireObservable:a,sessionStateUpdateObservable:i,restartSession:m,expire:function(){l(),s(),h(xt())},stop:function(){Xe(c)},updateSessionState:O}}var Lr={GRANTED:"granted",NOT_GRANTED:"not-granted"};function Bo(t){var e=new I;return{tryToInit:function(r){t||(t=r)},update:function(r){t=r,e.notify()},isGranted:function(){return t===Lr.GRANTED},observable:e}}function Vt(t,e,r){if(typeof t!="object"||t===null)return JSON.stringify(t);var n=Kt(Object.prototype),a=Kt(Array.prototype),i=Kt(Object.getPrototypeOf(t)),o=Kt(t);try{return JSON.stringify(t,e,r)}catch{return"<error: unable to serialize object>"}finally{n(),a(),i(),o()}}function Kt(t){var e=t,r=e.toJSON;return r?(delete e.toJSON,function(){e.toJSON=r}):C}function Wr(t){return Ze(t,location.href).href}function zo(t){try{return!!Ze(t)}catch{return!1}}function Ho(t){var e=Ze(t).pathname;return e[0]==="/"?e:"/".concat(e)}function Ze(t,e){var r=Go();if(r)try{return e!==void 0?new r(t,e):new r(t)}catch(o){throw new Error("Failed to construct URL: ".concat(String(o)," ").concat(Vt({url:t,base:e})))}if(e===void 0&&!/:/.test(t))throw new Error("Invalid URL: '".concat(t,"'"));var n=document,a=n.createElement("a");if(e!==void 0){n=document.implementation.createHTMLDocument("");var i=n.createElement("base");i.href=e,n.head.appendChild(i),n.body.appendChild(a)}return a.href=t,a}var pn=URL,xe;function Go(){if(xe===void 0)try{var t=new pn("http://test/path");xe=t.href==="http://test/path"}catch{xe=!1}return xe?pn:void 0}var ha="datad0g.com",Ko="dd0g-gov.com",_t="datadoghq.com",jo="datadoghq.eu",qo="ddog-gov.com",ma="pci.browser-intake-datadoghq.com";function de(t,e,r){var n=Yo(t,e);return{build:function(a,i){var o=Xo(t,e,r,a,i);return n(o)},urlPrefix:n(""),trackType:e}}function Yo(t,e){var r="/api/v2/".concat(e),n=t.proxy;if(typeof n=="string"){var a=Wr(n);return function(o){return"".concat(a,"?ddforward=").concat(encodeURIComponent("".concat(r,"?").concat(o)))}}if(typeof n=="function")return function(o){return n({path:r,parameters:o})};var i=Wo(e,t);return function(o){return"https://".concat(i).concat(r,"?").concat(o)}}function Wo(t,e){var r=e.site,n=r===void 0?_t:r,a=e.internalAnalyticsSubdomain;if(t==="logs"&&e.usePciIntake&&n===_t)return ma;if(a&&n===_t)return"".concat(a,".").concat(_t);if(n===Ko)return"http-intake.logs.".concat(n);var i=n.split("."),o=i.pop();return"browser-intake-".concat(i.join("-"),".").concat(o)}function Xo(t,e,r,n,a){var i=t.clientToken,o=t.internalAnalyticsSubdomain,s=a.retry,c=a.encoding,u=["sdk_version:".concat("5.28.0"),"api:".concat(n)].concat(r);s&&u.push("retry_count:".concat(s.count),"retry_after:".concat(s.lastFailureStatus));var d=["ddsource=browser","ddtags=".concat(encodeURIComponent(u.join(","))),"dd-api-key=".concat(i),"dd-evp-origin-version=".concat(encodeURIComponent("5.28.0")),"dd-evp-origin=browser","dd-request-id=".concat(z())];return c&&d.push("dd-evp-encoding=".concat(c)),e==="rum"&&d.push("batch_time=".concat(U())),o&&d.reverse(),d.join("&")}var Zo=200;function Jo(t){var e=t.env,r=t.service,n=t.version,a=t.datacenter,i=[];return e&&i.push(ke("env",e)),r&&i.push(ke("service",r)),n&&i.push(ke("version",n)),a&&i.push(ke("datacenter",a)),i}function ke(t,e){var r=Zo-t.length-1;(e.length>r||$o(e))&&T.warn("".concat(t," value doesn't meet tag requirements and will be sanitized. ").concat(qe," ").concat(je,"/getting_started/tagging/#defining-tags"));var n=e.replace(/,/g,"_");return"".concat(t,":").concat(n)}function $o(t){return Qo()?new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(t):!1}function Qo(){try{return new RegExp("[\\p{Ll}]","u"),!0}catch{return!1}}function ts(t){var e=t.site||_t,r=Jo(t),n=es(t,r),a=ns(n,e),i=rs(t,a,r);return E({isIntakeUrl:function(o){return a.some(function(s){return o.indexOf(s)===0})},replica:i,site:e},n)}function es(t,e){return{logsEndpointBuilder:de(t,"logs",e),rumEndpointBuilder:de(t,"rum",e),sessionReplayEndpointBuilder:de(t,"replay",e)}}function rs(t,e,r){if(t.replica){var n=E({},t,{site:_t,clientToken:t.replica.clientToken}),a={logsEndpointBuilder:de(n,"logs",r),rumEndpointBuilder:de(n,"rum",r)};return e.push.apply(e,We(a).map(function(i){return i.urlPrefix})),E({applicationId:t.replica.applicationId},a)}}function ns(t,e){var r=We(t).map(function(n){return n.urlPrefix});return e===_t&&r.push("https://".concat(ma,"/")),r}var fe={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"},Mr={ALL:"all",SAMPLED:"sampled"};function pr(t,e){return t!=null&&typeof t!="string"?(T.error("".concat(e," must be defined as a string")),!1):!0}function as(t){return t&&typeof t=="string"&&!/(datadog|ddog|datad0g|dd0g)/.test(t)?(T.error("Site should be a valid Datadog site. ".concat(qe," ").concat(je,"/getting_started/site/.")),!1):!0}function jt(t,e){return t!==void 0&&!ji(t)?(T.error("".concat(e," Sample Rate should be a number between 0 and 100")),!1):!0}function is(t){var e,r,n,a,i;if(!t||!t.clientToken){T.error("Client Token is not configured, we will not send any data.");return}if(!(!as(t.site)||!jt(t.sessionSampleRate,"Session")||!jt(t.telemetrySampleRate,"Telemetry")||!jt(t.telemetryConfigurationSampleRate,"Telemetry Configuration")||!jt(t.telemetryUsageSampleRate,"Telemetry Usage")||!pr(t.version,"Version")||!pr(t.env,"Env")||!pr(t.service,"Service"))){if(t.trackingConsent!==void 0&&!Ve(Lr,t.trackingConsent)){T.error('Tracking Consent should be either "granted" or "not-granted"');return}return E({beforeSend:t.beforeSend&&ta(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:Vo(t),sessionSampleRate:(e=t.sessionSampleRate)!==null&&e!==void 0?e:100,telemetrySampleRate:(r=t.telemetrySampleRate)!==null&&r!==void 0?r:20,telemetryConfigurationSampleRate:(n=t.telemetryConfigurationSampleRate)!==null&&n!==void 0?n:5,telemetryUsageSampleRate:(a=t.telemetryUsageSampleRate)!==null&&a!==void 0?a:5,service:t.service||void 0,silentMultipleInit:!!t.silentMultipleInit,allowUntrustedEvents:!!t.allowUntrustedEvents,trackingConsent:(i=t.trackingConsent)!==null&&i!==void 0?i:Lr.GRANTED,storeContextsAcrossPages:!!t.storeContextsAcrossPages,batchBytesLimit:16*bt,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*K,batchMessagesLimit:50,messageBytesLimit:256*bt},ts(t))}}function os(t){return{session_sample_rate:t.sessionSampleRate,telemetry_sample_rate:t.telemetrySampleRate,telemetry_configuration_sample_rate:t.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:t.telemetryUsageSampleRate,use_before_send:!!t.beforeSend,use_cross_site_session_cookie:t.useCrossSiteSessionCookie,use_partitioned_cross_site_session_cookie:t.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:t.useSecureSessionCookie,use_proxy:!!t.proxy,silent_multiple_init:t.silentMultipleInit,track_session_across_subdomains:t.trackSessionAcrossSubdomains,allow_fallback_to_local_storage:!!t.allowFallbackToLocalStorage,store_contexts_across_pages:!!t.storeContextsAcrossPages,allow_untrusted_events:!!t.allowUntrustedEvents,tracking_consent:t.trackingConsent}}var Et;(function(t){t.WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",t.REMOTE_CONFIGURATION="remote_configuration",t.UPDATE_VIEW_NAME="update_view_name",t.LONG_ANIMATION_FRAME="long_animation_frame"})(Et||(Et={}));var Xr=new Set;function ss(t){Array.isArray(t)&&us(t.filter(function(e){return Ve(Et,e)}))}function us(t){t.forEach(function(e){Xr.add(e)})}function ye(t){return Xr.has(t)}function cs(){return Xr}var Se="?";function Ct(t){var e=[],r=hr(t,"stack"),n=String(t);return r&&ge(r,n)&&(r=r.slice(n.length)),r&&r.split(`
`).forEach(function(a){var i=fs(a)||ps(a)||ms(a)||bs(a);i&&(!i.func&&i.line&&(i.func=Se),e.push(i))}),{message:hr(t,"message"),name:hr(t,"name"),stack:e}}var _a="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",Xt="(?::(\\d+))",ls=new RegExp("^\\s*at (.*?) ?\\(".concat(_a).concat(Xt,"?").concat(Xt,"?\\)?\\s*$"),"i"),ds=new RegExp("\\((\\S*)".concat(Xt).concat(Xt,"\\)"));function fs(t){var e=ls.exec(t);if(e){var r=e[2]&&e[2].indexOf("native")===0,n=e[2]&&e[2].indexOf("eval")===0,a=ds.exec(e[2]);return n&&a&&(e[2]=a[1],e[3]=a[2],e[4]=a[3]),{args:r?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||Se,line:e[3]?+e[3]:void 0,url:r?void 0:e[2]}}}var vs=new RegExp("^\\s*at ?".concat(_a).concat(Xt,"?").concat(Xt,"??\\s*$"),"i");function ps(t){var e=vs.exec(t);if(e)return{args:[],column:e[3]?+e[3]:void 0,func:Se,line:e[2]?+e[2]:void 0,url:e[1]}}var hs=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function ms(t){var e=hs.exec(t);if(e)return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||Se,line:+e[3],url:e[2]}}var _s=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,gs=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function bs(t){var e=_s.exec(t);if(e){var r=e[3]&&e[3].indexOf(" > eval")>-1,n=gs.exec(e[3]);return r&&n&&(e[3]=n[1],e[4]=n[2],e[5]=void 0),{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||Se,line:e[4]?+e[4]:void 0,url:e[3]}}}function hr(t,e){if(!(typeof t!="object"||!t||!(e in t))){var r=t[e];return typeof r=="string"?r:void 0}}function ys(t,e,r,n){var a=[{url:e,column:n,line:r}],i=Es(t),o=i.name,s=i.message;return{name:o,message:s,stack:a}}var Ss=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function Es(t){var e,r,n;return{}.toString.call(t)==="[object String]"&&(e=Ss.exec(t),r=e[1],n=e[2]),{name:r,message:n}}function ze(){var t=2,e=new Error,r;if(!e.stack)try{throw e}catch{}return Mt(function(){var n=Ct(e);n.stack=n.stack.slice(t),r=te(n)}),r}function te(t){var e=ga(t);return t.stack.forEach(function(r){var n=r.func==="?"?"<anonymous>":r.func,a=r.args&&r.args.length>0?"(".concat(r.args.join(", "),")"):"",i=r.line?":".concat(r.line):"",o=r.line&&r.column?":".concat(r.column):"";e+=`
  at `.concat(n).concat(a," @ ").concat(r.url).concat(i).concat(o)}),e}function ga(t){return"".concat(t.name||"Error",": ").concat(t.message)}function Y(t,e,r,n){var a=n===void 0?{}:n,i=a.computeHandlingStack,o=t[e];if(typeof o!="function")if(e in t&&ge(e,"on"))o=C;else return{stop:C};var s=!1,c=function(){if(s)return o.apply(this,arguments);var u=Hr(arguments),d;Mt(r,null,[{target:this,parameters:u,onPostCall:function(l){d=l},handlingStack:i?ze():void 0}]);var f=o.apply(this,u);return d&&Mt(d,null,[f]),f};return t[e]=c,{stop:function(){s=!0,t[e]===c&&(t[e]=o)}}}function ue(t,e,r){var n=Object.getOwnPropertyDescriptor(t,e);if(!n||!n.set||!n.configurable)return{stop:C};var a=C,i=function(s,c){F(function(){i!==a&&r(s,c)},0)},o=function(s){n.set.call(this,s),i(this,s)};return Object.defineProperty(t,e,{set:o}),{stop:function(){var s;((s=Object.getOwnPropertyDescriptor(t,e))===null||s===void 0?void 0:s.set)===o&&Object.defineProperty(t,e,n),i=a}}}var ws=220*bt,Ts="$",Cs=3;function L(t,e){e===void 0&&(e=ws);var r=Kt(Object.prototype),n=Kt(Array.prototype),a=[],i=new WeakMap,o=mr(t,Ts,void 0,a,i),s=JSON.stringify(o),c=s?s.length:0;if(c>e){_r(e,"discarded",t);return}for(;a.length>0&&c<e;){var u=a.shift(),d=0;if(Array.isArray(u.source))for(var f=0;f<u.source.length;f++){var l=mr(u.source[f],u.path,f,a,i);if(l!==void 0?c+=JSON.stringify(l).length:c+=4,c+=d,d=1,c>e){_r(e,"truncated",t);break}u.target[f]=l}else for(var f in u.source)if(Object.prototype.hasOwnProperty.call(u.source,f)){var l=mr(u.source[f],u.path,f,a,i);if(l!==void 0&&(c+=JSON.stringify(l).length+d+f.length+Cs,d=1),c>e){_r(e,"truncated",t);break}u.target[f]=l}}return r(),n(),o}function mr(t,e,r,n,a){var i=Rs(t);if(!i||typeof i!="object")return As(i);var o=Is(i);if(o!=="[Object]"&&o!=="[Array]"&&o!=="[Error]")return o;var s=t;if(a.has(s))return"[Reference seen at ".concat(a.get(s),"]");var c=r!==void 0?"".concat(e,".").concat(r):e,u=Array.isArray(i)?[]:{};return a.set(s,c),n.push({source:i,target:u,path:c}),u}function As(t){return typeof t=="bigint"?"[BigInt] ".concat(t.toString()):typeof t=="function"?"[Function] ".concat(t.name||"unknown"):typeof t=="symbol"?"[Symbol] ".concat(t.description||t.toString()):t}function Is(t){try{if(t instanceof Event)return{isTrusted:t.isTrusted};var e=Object.prototype.toString.call(t),r=e.match(/\[object (.*)\]/);if(r&&r[1])return"[".concat(r[1],"]")}catch{}return"[Unserializable]"}function Rs(t){var e=t;if(e&&typeof e.toJSON=="function")try{return e.toJSON()}catch{}return t}function _r(t,e,r){T.warn("The data provided has been ".concat(e," as it is over the limit of ").concat(t," characters:"),r)}var ba="No stack, consider using an instance of Error";function ya(t){var e=t.stackTrace,r=t.originalError,n=t.handlingStack,a=t.startClocks,i=t.nonErrorPrefix,o=t.source,s=t.handling,c=r instanceof Error,u=xs(e,c,i,r),d=ks(c,e)?te(e):ba,f=c?Ea(r,o):void 0,l=e?e.name:void 0,v=Sa(r);return{startClocks:a,source:o,handling:s,handlingStack:n,originalError:r,type:l,message:u,stack:d,causes:f,fingerprint:v}}function xs(t,e,r,n){return t!=null&&t.message&&(t!=null&&t.name)?t.message:e?"Empty message":"".concat(r," ").concat(Vt(L(n)))}function ks(t,e){return e===void 0?!1:t?!0:e.stack.length>0&&(e.stack.length>1||e.stack[0].url!==void 0)}function Sa(t){return t instanceof Error&&"dd_fingerprint"in t?String(t.dd_fingerprint):void 0}function Ea(t,e){for(var r=t,n=[];(r==null?void 0:r.cause)instanceof Error&&n.length<10;){var a=Ct(r.cause);n.push({message:r.cause.message,source:e,type:a==null?void 0:a.name,stack:a&&te(a)}),r=r.cause}return n.length?n:void 0}var ee={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function Os(t){var e=function(a,i){var o=ya({stackTrace:a,originalError:i,startClocks:G(),nonErrorPrefix:"Uncaught",source:ee.SOURCE,handling:"unhandled"});t.notify(o)},r=Ns(e).stop,n=Ls(e).stop;return{stop:function(){r(),n()}}}function Ns(t){return Y(window,"onerror",function(e){var r=e.parameters,n=r[0],a=r[1],i=r[2],o=r[3],s=r[4],c;s instanceof Error?c=Ct(s):c=ys(n,a,i,o),t(c,s??n)})}function Ls(t){return Y(window,"onunhandledrejection",function(e){var r=e.parameters[0],n=r.reason||"Empty reason",a=Ct(n);t(a,n)})}function Ms(t){var e=E({version:"5.28.0",onReady:function(r){r()}},t);return Object.defineProperty(e,"_setDebug",{get:function(){return so},enumerable:!1}),e}function Ds(t,e,r){var n=t[e];n&&!n.q&&n.version&&T.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),t[e]=r,n&&n.q&&n.q.forEach(function(a){return ta(a,"onReady callback threw an error:")()})}function wa(t,e){e.silentMultipleInit||T.error("".concat(t," is already initialized."))}function k(t,e,r,n,a){return W(t,e,[r],n,a)}function W(t,e,r,n,a){var i=a===void 0?{}:a,o=i.once,s=i.capture,c=i.passive,u=y(function(v){!v.isTrusted&&!v.__ddIsTrusted&&!t.allowUntrustedEvents||(o&&l(),n(v))}),d=c?{capture:s,passive:c}:s,f=St(e,"addEventListener");r.forEach(function(v){return f.call(e,v,u,d)});function l(){var v=St(e,"removeEventListener");r.forEach(function(p){return v.call(e,p,u,d)})}return{stop:l}}var he={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function Ps(t,e){var r=[];nt(e,he.cspViolation)&&r.push(Vs(t));var n=e.filter(function(a){return a!==he.cspViolation});return n.length&&r.push(Us(n)),ia.apply(void 0,r)}function Us(t){return new I(function(e){if(window.ReportingObserver){var r=y(function(a,i){return a.forEach(function(o){return e.notify(Fs(o))})}),n=new window.ReportingObserver(r,{types:t,buffered:!0});return n.observe(),function(){n.disconnect()}}})}function Vs(t){return new I(function(e){var r=k(t,document,"securitypolicyviolation",function(n){e.notify(Bs(n))}).stop;return r})}function Fs(t){var e=t.type,r=t.body;return Ta({type:r.id,message:"".concat(e,": ").concat(r.message),originalError:t,stack:Ca(r.id,r.message,r.sourceFile,r.lineNumber,r.columnNumber)})}function Bs(t){var e="'".concat(t.blockedURI,"' blocked by '").concat(t.effectiveDirective,"' directive");return Ta({type:t.effectiveDirective,message:"".concat(he.cspViolation,": ").concat(e),originalError:t,csp:{disposition:t.disposition},stack:Ca(t.effectiveDirective,t.originalPolicy?"".concat(e,' of the policy "').concat(oa(t.originalPolicy,100,"..."),'"'):"no policy",t.sourceFile,t.lineNumber,t.columnNumber)})}function Ta(t){return E({startClocks:G(),source:ee.REPORT,handling:"unhandled"},t)}function Ca(t,e,r,n,a){return r?te({name:t,message:e,stack:[{func:"?",url:r,line:n??void 0,column:a??void 0}]}):void 0}function Zr(t,e){var r=window.__ddBrowserSdkExtensionCallback;r&&r({type:t,payload:e})}function At(t){return t===null?"null":Array.isArray(t)?"array":typeof t}function He(t,e,r){if(r===void 0&&(r=zs()),e===void 0)return t;if(typeof e!="object"||e===null)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var n=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return new RegExp(e.source,n)}if(!r.hasAlreadyBeenSeen(e)){if(Array.isArray(e)){for(var a=Array.isArray(t)?t:[],i=0;i<e.length;++i)a[i]=He(a[i],e[i],r);return a}var o=At(t)==="object"?t:{};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(o[s]=He(o[s],e[s],r));return o}}function Jr(t){return He(void 0,t)}function ut(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n=0,a=t;n<a.length;n++){var i=a[n];i!=null&&(r=He(r,i))}return r}function zs(){if(typeof WeakSet<"u"){var t=new WeakSet;return{hasAlreadyBeenSeen:function(r){var n=t.has(r);return n||t.add(r),n}}}var e=[];return{hasAlreadyBeenSeen:function(r){var n=e.indexOf(r)>=0;return n||e.push(r),n}}}function Aa(){var t,e=window.navigator;return{status:e.onLine?"connected":"not_connected",interfaces:e.connection&&e.connection.type?[e.connection.type]:void 0,effective_type:(t=e.connection)===null||t===void 0?void 0:t.effectiveType}}function Ia(t,e){var r=t.indexOf(e);r>=0&&t.splice(r,1)}var Hs=500;function Ra(){var t=[],e=function(a){var i=t.push(a);i>Hs&&t.splice(0,1)},r=function(a){Ia(t,a)},n=function(a){t.forEach(function(i){return i(a)}),t.length=0};return{add:e,remove:r,drain:n}}var Nt={log:"log",configuration:"configuration",usage:"usage"},Gs=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],Ks=[qo],xa=Ra(),re=function(t){xa.add(function(){return re(t)})};function js(t,e){var r,n,a=new I,i=new Set,o=!nt(Ks,e.site)&&Ot(e.telemetrySampleRate),s=(r={},r[Nt.log]=o,r[Nt.configuration]=o&&Ot(e.telemetryConfigurationSampleRate),r[Nt.usage]=o&&Ot(e.telemetryUsageSampleRate),r),c=qs();re=function(d){var f=Vt(d);if(s[d.type]&&i.size<e.maxTelemetryEventsPerPage&&!i.has(f)){var l=u(t,d,c);a.notify(l),Zr("telemetry",l),i.add(f)}},oo(Ge);function u(d,f,l){return ut({type:"telemetry",date:U(),service:d,version:"5.28.0",source:"browser",_dd:{format_version:2},telemetry:ut(f,{runtime_env:l,connectivity:Aa()}),experimental_features:Hr(cs())},n!==void 0?n():{})}return{setContextProvider:function(d){n=d},observable:a,enabled:o}}function qs(){return{is_local_file:window.location.protocol==="file:",is_worker:"WorkerGlobalScope"in self}}function Ys(){xa.drain()}function Ws(t){return t.site===ha}function ne(t,e){Nr(Ke.debug,t,e),re(E({type:Nt.log,message:t,status:"debug"},e))}function Ge(t,e){re(E({type:Nt.log,status:"error"},Zs(t),e))}function Xs(t){re({type:Nt.configuration,configuration:t})}function j(t){re({type:Nt.usage,usage:t})}function Zs(t){if(t instanceof Error){var e=Ct(t);return{error:{kind:e.name,stack:te(Js(e))},message:e.message}}return{error:{stack:ba},message:"".concat("Uncaught"," ").concat(Vt(t))}}function Js(t){return t.stack=t.stack.filter(function(e){return!e.url||Gs.some(function(r){return ge(e.url,r)})}),t}var Oe=1/0,$s=X;function ae(t){var e=t.expireDelay,r=t.maxEntries,n=[],a=$t(function(){return i()},$s);function i(){for(var l=rt()-e;n.length>0&&n[n.length-1].endTime<l;)n.pop()}function o(l,v){var p={value:l,startTime:v,endTime:Oe,remove:function(){Ia(n,p)},close:function(h){p.endTime=h}};return r&&n.length>=r&&n.pop(),n.unshift(p),p}function s(l,v){l===void 0&&(l=Oe),v===void 0&&(v={returnInactive:!1});for(var p=0,h=n;p<h.length;p++){var m=h[p];if(m.startTime<=l){if(v.returnInactive||l<=m.endTime)return m.value;break}}}function c(l){var v=n[0];v&&v.endTime===Oe&&v.close(l)}function u(l,v){l===void 0&&(l=Oe),v===void 0&&(v=0);var p=Jt(l,v);return n.filter(function(h){return h.startTime<=p&&l<=h.endTime}).map(function(h){return h.value})}function d(){n=[]}function f(){Xe(a)}return{add:o,find:s,closeActive:c,findAll:u,reset:d,stop:f}}var Qs=X,tu=Ut;function eu(t,e,r,n){var a=new I,i=new I,o=Fo(t.sessionStoreStrategyType,e,r),s=ae({expireDelay:tu});o.renewObservable.subscribe(function(){s.add(c(),rt()),a.notify()}),o.expireObservable.subscribe(function(){i.notify(),s.closeActive(rt())}),o.expandOrRenewSession(),s.add(c(),ra().relative),n.observable.subscribe(function(){n.isGranted()?o.expandOrRenewSession():o.expire()}),ru(t,function(){n.isGranted()&&o.expandOrRenewSession()}),nu(t,function(){return o.expandSession()}),au(t,function(){return o.restartSession()});function c(){return{id:o.getSession().id,trackingType:o.getSession()[e],isReplayForced:!!o.getSession().forcedReplay}}return{findSession:function(u,d){return s.find(u,d)},renewObservable:a,expireObservable:i,sessionStateUpdateObservable:o.sessionStateUpdateObservable,expire:o.expire,updateSessionState:o.updateSessionState}}function ru(t,e){W(t,window,["click","touchstart","keydown","scroll"],e,{capture:!0,passive:!0}).stop}function nu(t,e){var r=function(){document.visibilityState==="visible"&&e()};k(t,document,"visibilitychange",r).stop,$t(r,Qs)}function au(t,e){k(t,window,"resume",e,{capture:!0}).stop}function iu(t){return t>=500}function ou(t){try{return t.clone()}catch{return}}var su=80*bt,uu=32,ka=3*na,cu=X,Oa=K;function Na(t,e,r,n,a){e.transportStatus===0&&e.queuedPayloads.size()===0&&e.bandwidthMonitor.canHandle(t)?Ma(t,e,r,{onSuccess:function(){return Da(0,e,r,n,a)},onFailure:function(){e.queuedPayloads.enqueue(t),La(e,r,n,a)}}):e.queuedPayloads.enqueue(t)}function La(t,e,r,n){t.transportStatus===2&&F(function(){var a=t.queuedPayloads.first();Ma(a,t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=Oa,Da(1,t,e,r,n)},onFailure:function(){t.currentBackoffTime=Math.min(cu,t.currentBackoffTime*2),La(t,e,r,n)}})},t.currentBackoffTime)}function Ma(t,e,r,n){var a=n.onSuccess,i=n.onFailure;e.bandwidthMonitor.add(t),r(t,function(o){e.bandwidthMonitor.remove(t),lu(o)?(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:o.status},i()):(e.transportStatus=0,a())})}function Da(t,e,r,n,a){t===0&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(a({message:"Reached max ".concat(n," events size queued for upload: ").concat(ka/na,"MiB"),source:ee.AGENT,startClocks:G()}),e.queueFullReported=!0);var i=e.queuedPayloads;for(e.queuedPayloads=Pa();i.size()>0;)Na(i.dequeue(),e,r,n,a)}function lu(t){return t.type!=="opaque"&&(t.status===0&&!navigator.onLine||t.status===408||t.status===429||iu(t.status))}function du(){return{transportStatus:0,currentBackoffTime:Oa,bandwidthMonitor:fu(),queuedPayloads:Pa(),queueFullReported:!1}}function Pa(){var t=[];return{bytesCount:0,enqueue:function(e){this.isFull()||(t.push(e),this.bytesCount+=e.bytesCount)},first:function(){return t[0]},dequeue:function(){var e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size:function(){return t.length},isFull:function(){return this.bytesCount>=ka}}}function fu(){return{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return this.ongoingRequestCount===0||this.ongoingByteCount+t.bytesCount<=su&&this.ongoingRequestCount<uu},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}}}function Ua(t,e,r,n){var a=du(),i=function(o,s){return hu(t,e,r,o,s)};return{send:function(o){Na(o,a,i,e.trackType,n)},sendOnExit:function(o){vu(t,e,r,o)}}}function vu(t,e,r,n){var a=!!navigator.sendBeacon&&n.bytesCount<r;if(a)try{var i=e.build("beacon",n),o=navigator.sendBeacon(i,n.data);if(o)return}catch(c){pu(c)}var s=e.build("xhr",n);Dr(t,s,n.data)}var hn=!1;function pu(t){hn||(hn=!0,Ge(t))}function hu(t,e,r,n,a){var i=mu()&&n.bytesCount<r;if(i){var o=e.build("fetch",n);fetch(o,{method:"POST",body:n.data,keepalive:!0,mode:"cors"}).then(y(function(c){return a==null?void 0:a({status:c.status,type:c.type})}),y(function(){var c=e.build("xhr",n);Dr(t,c,n.data,a)}))}else{var s=e.build("xhr",n);Dr(t,s,n.data,a)}}function mu(){try{return window.Request&&"keepalive"in new Request("http://a")}catch{return!1}}function Dr(t,e,r,n){var a=new XMLHttpRequest;a.open("POST",e,!0),r instanceof Blob&&a.setRequestHeader("Content-Type",r.type),k(t,a,"loadend",function(){n==null||n({status:a.status})},{once:!0}),a.send(r)}function ie(){var t=_u();if(t)return{getCapabilities:function(){var e;return JSON.parse(((e=t.getCapabilities)===null||e===void 0?void 0:e.call(t))||"[]")},getPrivacyLevel:function(){var e;return(e=t.getPrivacyLevel)===null||e===void 0?void 0:e.call(t)},getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts())},send:function(e,r,n){var a=n?{id:n}:void 0;t.send(JSON.stringify({eventType:e,event:r,view:a}))}}}function Va(t){var e=ie();return!!e&&nt(e.getCapabilities(),t)}function Dt(t){var e;t===void 0&&(t=(e=Tt().location)===null||e===void 0?void 0:e.hostname);var r=ie();return!!r&&r.getAllowedWebViewHosts().some(function(n){return t===n||no(t,".".concat(n))})}function _u(){return Tt().DatadogEventBridge}var Wt={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function gu(t){return new I(function(e){var r=W(t,window,["visibilitychange","freeze"],function(a){a.type==="visibilitychange"&&document.visibilityState==="hidden"?e.notify({reason:Wt.HIDDEN}):a.type==="freeze"&&e.notify({reason:Wt.FROZEN})},{capture:!0}).stop,n=k(t,window,"beforeunload",function(){e.notify({reason:Wt.UNLOADING})}).stop;return function(){r(),n()}})}function Fa(t){return nt(We(Wt),t)}function bu(t){var e=t.encoder,r=t.request,n=t.flushController,a=t.messageBytesLimit,i={},o=n.flushObservable.subscribe(function(l){return f(l)});function s(l,v,p){n.notifyBeforeAddMessage(v),p!==void 0?(i[p]=l,n.notifyAfterAddMessage()):e.write(e.isEmpty?l:`
`.concat(l),function(h){n.notifyAfterAddMessage(h-v)})}function c(l){return l!==void 0&&i[l]!==void 0}function u(l){var v=i[l];delete i[l];var p=e.estimateEncodedBytesCount(v);n.notifyAfterRemoveMessage(p)}function d(l,v){var p=Vt(l),h=e.estimateEncodedBytesCount(p);if(h>=a){T.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(a,"KB. ").concat(qe," ").concat(Qn,"/#technical-limitations"));return}c(v)&&u(v),s(p,h,v)}function f(l){var v=We(i).join(`
`);i={};var p=Fa(l.reason),h=p?r.sendOnExit:r.send;if(p&&e.isAsync){var m=e.finishSync();m.outputBytesCount&&h(mn(m));var _=[m.pendingData,v].filter(Boolean).join(`
`);_&&h({data:_,bytesCount:zr(_)})}else v&&e.write(e.isEmpty?v:`
`.concat(v)),e.finish(function(b){h(mn(b))})}return{flushController:n,add:d,upsert:d,stop:o.unsubscribe}}function mn(t){var e;return typeof t.output=="string"?e=t.output:e=new Blob([t.output],{type:"text/plain"}),{data:e,bytesCount:t.outputBytesCount,encoding:t.encoding}}function yu(t){var e=t.messagesLimit,r=t.bytesLimit,n=t.durationLimit,a=t.pageExitObservable,i=t.sessionExpireObservable,o=a.subscribe(function(h){return f(h.reason)}),s=i.subscribe(function(){return f("session_expire")}),c=new I(function(){return function(){o.unsubscribe(),s.unsubscribe()}}),u=0,d=0;function f(h){if(d!==0){var m=d,_=u;d=0,u=0,p(),c.notify({reason:h,messagesCount:m,bytesCount:_})}}var l;function v(){l===void 0&&(l=F(function(){f("duration_limit")},n))}function p(){J(l),l=void 0}return{flushObservable:c,get messagesCount(){return d},notifyBeforeAddMessage:function(h){u+h>=r&&f("bytes_limit"),d+=1,u+=h,v()},notifyAfterAddMessage:function(h){h===void 0&&(h=0),u+=h,d>=e?f("messages_limit"):u>=r&&f("bytes_limit")},notifyAfterRemoveMessage:function(h){u-=h,d-=1,d===0&&p()}}}function Su(t,e,r,n,a,i,o){o===void 0&&(o=bu);var s=u(t,e),c=r&&u(t,r);function u(d,f){var l=f.endpoint,v=f.encoder;return o({encoder:v,request:Ua(d,l,d.batchBytesLimit,n),flushController:yu({messagesLimit:d.batchMessagesLimit,bytesLimit:d.batchBytesLimit,durationLimit:d.flushTimeout,pageExitObservable:a,sessionExpireObservable:i}),messageBytesLimit:d.messageBytesLimit})}return{flushObservable:s.flushController.flushObservable,add:function(d,f){f===void 0&&(f=!0),s.add(d),c&&f&&c.add(r.transformMessage?r.transformMessage(d):d)},upsert:function(d,f){s.upsert(d,f),c&&c.upsert(r.transformMessage?r.transformMessage(d):d,f)},stop:function(){s.stop(),c&&c.stop()}}}function Eu(){var t="",e=0;return{isAsync:!1,get isEmpty(){return!t},write:function(r,n){var a=zr(r);e+=a,t+=r,n&&n(a)},finish:function(r){r(this.finishSync())},finishSync:function(){var r={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:""};return t="",e=0,r},estimateEncodedBytesCount:function(r){return r.length}}}var wu=function(){function t(){this.callbacks={}}return t.prototype.notify=function(e,r){var n=this.callbacks[e];n&&n.forEach(function(a){return a(r)})},t.prototype.subscribe=function(e,r){var n=this;return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(r),{unsubscribe:function(){n.callbacks[e]=n.callbacks[e].filter(function(a){return r!==a})}}},t}();function gr(t,e,r){var n=0,a=!1;return{isLimitReached:function(){if(n===0&&F(function(){n=0},X),n+=1,n<=e||a)return a=!1,!1;if(n===e+1){a=!0;try{r({message:"Reached max number of ".concat(t,"s by minute: ").concat(e),source:ee.AGENT,startClocks:G()})}finally{a=!1}}return!0}}}function $r(t,e,r){if(document.readyState===e||document.readyState==="complete")return r(),{stop:C};var n=e==="complete"?"load":"DOMContentLoaded";return k(t,window,n,r,{once:!0})}var br,Qr=new WeakMap;function Tu(t){return br||(br=Cu(t)),br}function Cu(t){return new I(function(e){var r=Y(XMLHttpRequest.prototype,"open",Au).stop,n=Y(XMLHttpRequest.prototype,"send",function(i){Iu(i,t,e)},{computeHandlingStack:!0}).stop,a=Y(XMLHttpRequest.prototype,"abort",Ru).stop;return function(){r(),n(),a()}})}function Au(t){var e=t.target,r=t.parameters,n=r[0],a=r[1];Qr.set(e,{state:"open",method:String(n).toUpperCase(),url:Wr(String(a))})}function Iu(t,e,r){var n=t.target,a=t.handlingStack,i=Qr.get(n);if(i){var o=i;o.state="start",o.startClocks=G(),o.isAborted=!1,o.xhr=n,o.handlingStack=a;var s=!1,c=Y(n,"onreadystatechange",function(){n.readyState===XMLHttpRequest.DONE&&u()}).stop,u=function(){if(d(),c(),!s){s=!0;var f=i;f.state="complete",f.duration=B(o.startClocks.timeStamp,U()),f.status=n.status,r.notify(ve(f))}},d=k(e,n,"loadend",u).stop;r.notify(o)}}function Ru(t){var e=t.target,r=Qr.get(e);r&&(r.isAborted=!0)}var yr;function Ba(){return yr||(yr=xu()),yr}function xu(){return new I(function(t){if(window.fetch){var e=Y(window,"fetch",function(r){return ku(r,t)},{computeHandlingStack:!0}).stop;return e}})}function ku(t,e){var r=t.parameters,n=t.onPostCall,a=t.handlingStack,i=r[0],o=r[1],s=o&&o.method;s===void 0&&i instanceof Request&&(s=i.method);var c=s!==void 0?String(s).toUpperCase():"GET",u=i instanceof Request?i.url:Wr(String(i)),d=G(),f={state:"start",init:o,input:i,method:c,startClocks:d,url:u,handlingStack:a};e.notify(f),r[0]=f.input,r[1]=f.init,n(function(l){return Ou(e,l,f)})}function Ou(t,e,r){var n=r;function a(i){n.state="resolve",E(n,i),t.notify(n)}e.then(y(function(i){a({response:i,responseType:i.type,status:i.status,isAborted:!1})}),y(function(i){var o,s;a({status:0,isAborted:((s=(o=n.init)===null||o===void 0?void 0:o.signal)===null||s===void 0?void 0:s.aborted)||i instanceof DOMException&&i.code===DOMException.ABORT_ERR,error:i})}))}var Sr={};function Nu(t){var e=t.map(function(r){return Sr[r]||(Sr[r]=Lu(r)),Sr[r]});return ia.apply(void 0,e)}function Lu(t){return new I(function(e){var r=vt[t];return vt[t]=function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];r.apply(console,n);var i=ze();Mt(function(){e.notify(Mu(n,t,i))})},function(){vt[t]=r}})}function Mu(t,e,r){var n=t.map(function(o){return Du(o)}).join(" "),a;if(e===Ke.error){var i=yt(t,function(o){return o instanceof Error});a={stack:i?te(Ct(i)):void 0,fingerprint:Sa(i),causes:i?Ea(i,"console"):void 0,startClocks:G(),message:n,source:ee.CONSOLE,handling:"handled",handlingStack:r}}return{api:e,message:n,error:a,handlingStack:r}}function Du(t){return typeof t=="string"?L(t):t instanceof Error?ga(Ct(t)):Vt(L(t),void 0,2)}function Pr(t){var e={},r=new I,n={getContext:function(){return Jr(e)},setContext:function(a){At(a)==="object"?(e=L(a),t&&t.updateCustomerData(e)):n.clearContext(),r.notify()},setContextProperty:function(a,i){e[a]=L(i),t&&t.updateCustomerData(e),r.notify()},removeContextProperty:function(a){delete e[a],t&&t.updateCustomerData(e),r.notify()},clearContext:function(){e={},t&&t.resetCustomerData(),r.notify()},changeObservable:r};return n}var Pu="_dd_c",Uu=[];function _n(t,e,r,n){var a=Vu(r,n);Uu.push(k(t,window,"storage",function(c){var u=c.key;a===u&&i()})),e.changeObservable.subscribe(o),e.setContext(ut(s(),e.getContext()));function i(){e.setContext(s())}function o(){localStorage.setItem(a,JSON.stringify(e.getContext()))}function s(){var c=localStorage.getItem(a);return c!==null?JSON.parse(c):{}}}function Vu(t,e){return"".concat(Pu,"_").concat(t,"_").concat(e)}var Fu=3*bt,Bu=16*bt,zu=200;function Hu(t){t===void 0&&(t=2);var e=new Map,r=!1;function n(a){if(a===void 0&&(a=0),!(r||t===0)){var i=t===2?Fu:Bu,o=a;e.forEach(function(s){o+=s.getBytesCount()}),o>i&&(Gu(i),r=!0)}}return{createDetachedTracker:function(){var a=gn(function(){return n(a.getBytesCount())});return a},getOrCreateTracker:function(a){return e.has(a)||e.set(a,gn(n)),e.get(a)},setCompressionStatus:function(a){t===0&&(t=a,n())},getCompressionStatus:function(){return t},stop:function(){e.forEach(function(a){return a.stop()}),e.clear()}}}function gn(t){var e=0,r=pt(function(o){e=zr(Vt(o)),t()},zu),n=r.throttled,a=r.cancel,i=function(){a(),e=0};return{updateCustomerData:function(o){Lt(o)?i():n(o)},resetCustomerData:i,getBytesCount:function(){return e},stop:function(){a()}}}function Gu(t){T.warn("Customer data exceeds the recommended ".concat(t/bt,"KiB threshold. ").concat(qe," ").concat(Qn,"/#customer-data-exceeds-the-recommended-threshold-warning"))}function Ku(t,e,r){var n=t.getReader(),a=0;i();function i(){n.read().then(y(function(s){if(s.done){o();return}a+=s.value.length,a>r.bytesLimit?o():i()}),y(function(s){return e(s)}))}function o(){n.cancel().catch(C);var s,c;e(void 0,s,c)}}var ju="datadog-synthetics-public-id",qu="datadog-synthetics-result-id",Yu="datadog-synthetics-injects-rum";function za(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||mt(Yu))}function Wu(){var t=window._DATADOG_SYNTHETICS_PUBLIC_ID||mt(ju);return typeof t=="string"?t:void 0}function Xu(){var t=window._DATADOG_SYNTHETICS_RESULT_ID||mt(qu);return typeof t=="string"?t:void 0}function bn(t){var e=E({},t),r=["id","name","email"];return r.forEach(function(n){n in e&&(e[n]=String(e[n]))}),e}function Zu(t){var e=At(t)==="object";return e||T.error("Unsupported user:",t),e}function tn(t){var e=At(t);return e==="string"||e==="function"||t instanceof RegExp}function Ha(t,e,r){return r===void 0&&(r=!1),t.some(function(n){try{if(typeof n=="function")return n(e);if(n instanceof RegExp)return n.test(e);if(typeof n=="string")return r?ge(e,n):n===e}catch(a){T.error(a)}return!1})}function Ju(t,e,r){return{context:t.getContext(),user:e.getContext(),hasReplay:r.isRecording()?!0:void 0}}function $u(){var t=new Map,e=new WeakMap;return{vitalsByName:t,vitalsByReference:e}}function Qu(t,e,r){function n(i){return!e.wasInPageStateDuringPeriod("frozen",i.startClocks.relative,i.duration)}function a(i){n(i)&&t.notify(11,ec(i))}return{addDurationVital:a,startDurationVital:function(i,o){return o===void 0&&(o={}),Ga(r,i,o)},stopDurationVital:function(i,o){o===void 0&&(o={}),Ka(a,r,i,o)}}}function Ga(t,e,r){var n=t.vitalsByName,a=t.vitalsByReference;r===void 0&&(r={});var i={name:e,startClocks:G(),context:r.context,description:r.description},o={__dd_vital_reference:!0};return n.set(e,i),a.set(o,i),o}function Ka(t,e,r,n){var a=e.vitalsByName,i=e.vitalsByReference;n===void 0&&(n={});var o=typeof r=="string"?a.get(r):i.get(r);o&&(t(tc(o,o.startClocks,n,G())),typeof r=="string"?a.delete(r):i.delete(r))}function tc(t,e,r,n){var a;return{name:t.name,type:"duration",startClocks:e,duration:B(e.timeStamp,n.timeStamp),context:ut(t.context,r.context),description:(a=r.description)!==null&&a!==void 0?a:t.description}}function ec(t,e){var r={date:t.startClocks.timeStamp,vital:{id:z(),type:t.type,name:t.name,duration:w(t.duration),description:t.description},type:"vital"};return r._dd={vital:{computed_value:!0}},{rawRumEvent:r,startTime:t.startClocks.relative,customerContext:t.context,domainContext:{}}}function rc(t){var e=t;return At(e)==="object"&&tn(e.match)&&Array.isArray(e.propagatorTypes)}function nc(t){t.status===0&&!t.isAborted&&(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function ac(t,e){return{clearTracingIfNeeded:nc,traceFetch:function(r){return yn(t,r,e,function(n){var a;if(r.input instanceof Request&&!(!((a=r.init)===null||a===void 0)&&a.headers))r.input=new Request(r.input),Object.keys(n).forEach(function(o){r.input.headers.append(o,n[o])});else{r.init=ve(r.init);var i=[];r.init.headers instanceof Headers?r.init.headers.forEach(function(o,s){i.push([s,o])}):Array.isArray(r.init.headers)?r.init.headers.forEach(function(o){i.push(o)}):r.init.headers&&Object.keys(r.init.headers).forEach(function(o){i.push([o,r.init.headers[o]])}),r.init.headers=i.concat(Gr(n))}})},traceXhr:function(r,n){return yn(t,r,e,function(a){Object.keys(a).forEach(function(i){n.setRequestHeader(i,a[i])})})}}}function yn(t,e,r,n){if(!(!ic()||!r.findTrackedSession())){var a=yt(t.allowedTracingUrls,function(i){return Ha([i.match],e.url,!0)});a&&(e.traceSampled=!Zt(t.traceSampleRate)||Ot(t.traceSampleRate),!(!e.traceSampled&&t.traceContextInjection!==Mr.ALL)&&(e.traceId=Ur(),e.spanId=Ur(),n(oc(e.traceId,e.spanId,e.traceSampled,a.propagatorTypes))))}}function ic(){return ja()!==void 0}function ja(){return window.crypto||window.msCrypto}function oc(t,e,r,n){var a={};return n.forEach(function(i){switch(i){case"datadog":{E(a,{"x-datadog-origin":"rum","x-datadog-parent-id":e.toDecimalString(),"x-datadog-sampling-priority":r?"1":"0","x-datadog-trace-id":t.toDecimalString()});break}case"tracecontext":{E(a,{traceparent:"00-0000000000000000".concat(t.toPaddedHexadecimalString(),"-").concat(e.toPaddedHexadecimalString(),"-0").concat(r?"1":"0")});break}case"b3":{E(a,{b3:"".concat(t.toPaddedHexadecimalString(),"-").concat(e.toPaddedHexadecimalString(),"-").concat(r?"1":"0")});break}case"b3multi":{E(a,{"X-B3-TraceId":t.toPaddedHexadecimalString(),"X-B3-SpanId":e.toPaddedHexadecimalString(),"X-B3-Sampled":r?"1":"0"});break}}}),a}function Ur(){var t=new Uint8Array(8);ja().getRandomValues(t),t[0]=t[0]&127;function e(i){return t[i]*16777216+(t[i+1]<<16)+(t[i+2]<<8)+t[i+3]}function r(i){var o=e(0),s=e(4),c="";do{var u=o%i*4294967296+s;o=Math.floor(o/i),s=Math.floor(u/i),c=(u%i).toString(i)+c}while(o||s);return c}function n(){return r(10)}function a(){var i=r(16);return Array(17-i.length).join("0")+i}return{toDecimalString:n,toPaddedHexadecimalString:a}}var qa=["tracecontext","datadog"];function sc(t){var e,r;if(!t.applicationId){T.error("Application ID is not configured, no RUM data will be collected.");return}if(!(!jt(t.sessionReplaySampleRate,"Session Replay")||!jt(t.traceSampleRate,"Trace"))){if(t.excludedActivityUrls!==void 0&&!Array.isArray(t.excludedActivityUrls)){T.error("Excluded Activity Urls should be an array");return}var n=uc(t);if(n){var a=is(t);if(a)return E({applicationId:t.applicationId,version:t.version||void 0,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:(e=t.sessionReplaySampleRate)!==null&&e!==void 0?e:0,startSessionReplayRecordingManually:!!t.startSessionReplayRecordingManually,traceSampleRate:t.traceSampleRate,allowedTracingUrls:n,excludedActivityUrls:(r=t.excludedActivityUrls)!==null&&r!==void 0?r:[],workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:!!t.trackUserInteractions,trackViewsManually:!!t.trackViewsManually,trackResources:!!t.trackResources,trackLongTasks:!!t.trackLongTasks,subdomain:t.subdomain,defaultPrivacyLevel:Ve(fe,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:fe.MASK,enablePrivacyForActionName:!!t.enablePrivacyForActionName,customerDataTelemetrySampleRate:1,traceContextInjection:Ve(Mr,t.traceContextInjection)?t.traceContextInjection:Mr.ALL,plugins:t.betaPlugins||[]},a)}}}function uc(t){if(t.allowedTracingUrls===void 0)return[];if(!Array.isArray(t.allowedTracingUrls)){T.error("Allowed Tracing URLs should be an array");return}if(t.allowedTracingUrls.length!==0&&t.service===void 0){T.error("Service needs to be configured when tracing is enabled");return}var e=[];return t.allowedTracingUrls.forEach(function(r){tn(r)?e.push({match:r,propagatorTypes:qa}):rc(r)?e.push(r):T.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",r)}),e}function cc(t){var e=new Set;return Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0&&t.allowedTracingUrls.forEach(function(r){tn(r)?qa.forEach(function(n){return e.add(n)}):At(r)==="object"&&Array.isArray(r.propagatorTypes)&&r.propagatorTypes.forEach(function(n){return e.add(n)})}),Hr(e)}function lc(t){var e,r=os(t);return E({session_replay_sample_rate:t.sessionReplaySampleRate,start_session_replay_recording_manually:t.startSessionReplayRecordingManually,trace_sample_rate:t.traceSampleRate,trace_context_injection:t.traceContextInjection,action_name_attribute:t.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0,selected_tracing_propagators:cc(t),default_privacy_level:t.defaultPrivacyLevel,enable_privacy_for_action_name:t.enablePrivacyForActionName,use_excluded_activity_urls:Array.isArray(t.excludedActivityUrls)&&t.excludedActivityUrls.length>0,use_worker_url:!!t.workerUrl,compress_intake_requests:t.compressIntakeRequests,track_views_manually:t.trackViewsManually,track_user_interactions:t.trackUserInteractions,track_resources:t.trackResources,track_long_task:t.trackLongTasks,plugins:(e=t.betaPlugins)===null||e===void 0?void 0:e.map(function(n){var a;return E({name:n.name},(a=n.getConfigurationTelemetry)===null||a===void 0?void 0:a.call(n))})},r)}var dc="https://d3uc069fcn7uxw.cloudfront.net/configuration";function fc(t,e){pc(t,function(r){e(vc(t,r))})}function vc(t,e){return E({},t,e)}function pc(t,e){var r=new XMLHttpRequest;k(t,r,"load",function(){r.status===200?e(JSON.parse(r.responseText)):Sn()}),k(t,r,"error",function(){Sn()}),r.open("GET","".concat(dc,"/").concat(encodeURIComponent(t.remoteConfigurationId),".json")),r.send()}function Sn(){T.error("Error fetching the remote configuration.")}function hc(t,e,r){if(t)for(var n=0,a=t;n<a.length;n++){var i=a[n],o=i[e];o&&o(r)}}function mc(t,e,r,n,a){var i=t.ignoreInitIfSyntheticsWillInjectRum,o=t.startDeflateWorker,s=Ra(),c,u,d,f,l=r.observable.subscribe(v);function v(){if(!(!d||!f||!r.isGranted())){l.unsubscribe();var m;if(f.trackViewsManually){if(!c)return;s.remove(c.callback),m=c.options}var _=a(f,u,m);s.drain(_)}}function p(m){var _=Dt();if(_&&(m=_c(m)),d=m,Xs(lc(m)),f){wa("DD_RUM",m);return}var b=sc(m);if(b){if(!_&&!b.sessionStoreStrategyType){T.warn("No storage available for session. We will not send any data.");return}b.compressIntakeRequests&&!_&&o&&(u=o(b,"Datadog RUM",C),!u)||(f=b,Ba().subscribe(C),r.tryToInit(b.trackingConsent),v())}}var h=function(m){s.add(function(_){return _.addDurationVital(m)})};return{init:function(m,_){if(!m){T.error("Missing configuration");return}ss(m.enableExperimentalFeatures),d=m,!(i&&za())&&(hc(m.betaPlugins,"onInit",{initConfiguration:m,publicApi:_}),m.remoteConfigurationId&&ye(Et.REMOTE_CONFIGURATION)?fc(m,p):p(m))},get initConfiguration(){return d},getInternalContext:C,stopSession:C,addTiming:function(m,_){_===void 0&&(_=U()),s.add(function(b){return b.addTiming(m,_)})},startView:function(m,_){_===void 0&&(_=G());var b=function(A){A.startView(m,_)};s.add(b),c||(c={options:m,callback:b},v())},updateViewName:function(m){s.add(function(_){return _.updateViewName(m)})},setViewContext:function(m){s.add(function(_){return _.setViewContext(m)})},setViewContextProperty:function(m,_){s.add(function(b){return b.setViewContextProperty(m,_)})},addAction:function(m,_){_===void 0&&(_=e()),s.add(function(b){return b.addAction(m,_)})},addError:function(m,_){_===void 0&&(_=e()),s.add(function(b){return b.addError(m,_)})},addFeatureFlagEvaluation:function(m,_){s.add(function(b){return b.addFeatureFlagEvaluation(m,_)})},startDurationVital:function(m,_){return Ga(n,m,_)},stopDurationVital:function(m,_){Ka(h,n,m,_)},addDurationVital:h}}function _c(t){var e,r;return E({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:(e=t.defaultPrivacyLevel)!==null&&e!==void 0?e:(r=ie())===null||r===void 0?void 0:r.getPrivacyLevel()})}var En="rum";function gc(t,e,r){r===void 0&&(r={});var n=Hu(0),a=Pr(n.getOrCreateTracker(2)),i=Pr(n.getOrCreateTracker(1)),o=Bo(),s=$u();function c(){return Ju(a,i,e)}var u=mc(r,c,o,s,function(l,v,p){l.storeContextsAcrossPages&&(_n(l,a,En,2),_n(l,i,En,1)),n.setCompressionStatus(v?1:2);var h=t(l,e,n,c,p,v&&r.createDeflateEncoder?function(m){return r.createDeflateEncoder(l,v,m)}:Eu,o,s);return e.onRumStart(h.lifeCycle,l,h.session,h.viewHistory,v),u=bc(u,h),h}),d=y(function(l){var v=typeof l=="object"?l:{name:l};v.context&&n.getOrCreateTracker(3).updateCustomerData(v.context),u.startView(v),j({feature:"start-view"})}),f=Ms({init:y(function(l){u.init(l,f),ye(Et.UPDATE_VIEW_NAME)&&(f.updateViewName=y(function(v){u.updateViewName(v)}))}),setTrackingConsent:y(function(l){o.update(l),j({feature:"set-tracking-consent",tracking_consent:l})}),setViewContext:y(function(l){u.setViewContext(l)}),setViewContextProperty:y(function(l,v){u.setViewContextProperty(l,v)}),setGlobalContext:y(function(l){a.setContext(l),j({feature:"set-global-context"})}),getGlobalContext:y(function(){return a.getContext()}),setGlobalContextProperty:y(function(l,v){a.setContextProperty(l,v),j({feature:"set-global-context"})}),removeGlobalContextProperty:y(function(l){return a.removeContextProperty(l)}),clearGlobalContext:y(function(){return a.clearContext()}),getInternalContext:y(function(l){return u.getInternalContext(l)}),getInitConfiguration:y(function(){return Jr(u.initConfiguration)}),addAction:function(l,v){var p=ze();Mt(function(){u.addAction({name:L(l),context:L(v),startClocks:G(),type:"custom",handlingStack:p}),j({feature:"add-action"})})},addError:function(l,v){var p=ze();Mt(function(){u.addError({error:l,handlingStack:p,context:L(v),startClocks:G()}),j({feature:"add-error"})})},addTiming:y(function(l,v){u.addTiming(L(l),v)}),setUser:y(function(l){Zu(l)&&i.setContext(bn(l)),j({feature:"set-user"})}),getUser:y(function(){return i.getContext()}),setUserProperty:y(function(l,v){var p,h=bn((p={},p[l]=v,p))[l];i.setContextProperty(l,h),j({feature:"set-user"})}),removeUserProperty:y(function(l){return i.removeContextProperty(l)}),clearUser:y(function(){return i.clearContext()}),startView:d,stopSession:y(function(){u.stopSession(),j({feature:"stop-session"})}),addFeatureFlagEvaluation:y(function(l,v){u.addFeatureFlagEvaluation(L(l),L(v)),j({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:y(function(){return e.getSessionReplayLink()}),startSessionReplayRecording:y(function(l){e.start(l),j({feature:"start-session-replay-recording",force:l&&l.force})}),stopSessionReplayRecording:y(function(){return e.stop()}),addDurationVital:y(function(l,v){j({feature:"add-duration-vital"}),u.addDurationVital({name:L(l),type:"duration",startClocks:Wi(v.startTime),duration:v.duration,context:L(v&&v.context),description:L(v&&v.description)})}),startDurationVital:y(function(l,v){return j({feature:"start-duration-vital"}),u.startDurationVital(L(l),{context:L(v&&v.context),description:L(v&&v.description)})}),stopDurationVital:y(function(l,v){j({feature:"stop-duration-vital"}),u.stopDurationVital(typeof l=="string"?L(l):l,{context:L(v&&v.context),description:L(v&&v.description)})})});return f}function bc(t,e){return E({init:function(r){wa("DD_RUM",r)},initConfiguration:t.initConfiguration},e)}function yc(){var t=Ya();return new I(function(e){if(t){var r=new t(y(function(){return e.notify()}));return r.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return r.disconnect()}}})}function Ya(){var t,e=window;if(e.Zone&&(t=St(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var r=new e.MutationObserver(C),n=St(r,"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}function Sc(){var t=Wu(),e=Xu();if(t&&e)return{test_id:t,result_id:e,injected:za()}}function Ec(t,e,r){var n=Jr(t),a=r(n);return Gr(e).forEach(function(i){var o=i[0],s=i[1],c=wc(n,o),u=At(c);u===s?wn(t,o,L(c)):s==="object"&&(u==="undefined"||u==="null")&&wn(t,o,{})}),a}function wc(t,e){for(var r=t,n=0,a=e.split(".");n<a.length;n++){var i=a[n];if(!Tc(r,i))return;r=r[i]}return r}function wn(t,e,r){for(var n=t,a=e.split("."),i=0;i<a.length;i+=1){var o=a[i];if(!Wa(n))return;i!==a.length-1?n=n[o]:n[o]=r}}function Wa(t){return At(t)==="object"}function Tc(t,e){return Wa(t)&&Object.prototype.hasOwnProperty.call(t,e)}var Ft={"view.name":"string","view.url":"string","view.referrer":"string"},Bt={context:"object"},Er={service:"string",version:"string"},Xa;function Cc(t,e,r,n,a,i,o,s,c,u){var d,f;Xa=(d={},d.view=E({},Bt,Ft),d.error=E({"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string"},Bt,Ft,Er),d.resource=E({"resource.url":"string"},ye(Et.WRITABLE_RESOURCE_GRAPHQL)?{"resource.graphql":"object"}:{},Bt,Ft,Er),d.action=E({"action.target.name":"string"},Bt,Ft,Er),d.long_task=E({},Bt,Ft),d.vital=E({},Bt,Ft),d);var l=(f={},f.error=gr("error",t.eventRateLimiterThreshold,u),f.action=gr("action",t.eventRateLimiterThreshold,u),f.vital=gr("vital",t.eventRateLimiterThreshold,u),f),v=Sc();e.subscribe(11,function(p){var h=p.startTime,m=p.rawRumEvent,_=p.domainContext,b=p.savedCommonContext,A=p.customerContext,x=n.findView(h),D=a.findUrl(h),O=r.findTrackedSession(h);if(O&&x&&D){var g=b||c(),V=i.findActionId(h),It={_dd:{format_version:2,drift:Zi(),configuration:{session_sample_rate:Ue(t.sessionSampleRate,3),session_replay_sample_rate:Ue(t.sessionReplaySampleRate,3)},browser_sdk_version:Dt()?"5.28.0":void 0},application:{id:t.applicationId},date:U(),service:x.service||t.service,version:x.version||t.version,source:"browser",session:{id:O.id,type:v?"synthetics":s.get()?"ci_test":"user"},view:{id:x.id,name:x.name,url:D.url,referrer:D.referrer},action:Ic(m)&&V?{id:V}:void 0,synthetics:v,ci_test:s.get(),display:o.get(),connectivity:Aa()},N=ut(It,m);N.context=ut(g.context,x.context,A),"has_replay"in N.session||(N.session.has_replay=g.hasReplay),N.type==="view"&&(N.session.sampled_for_replay=O.sessionReplay===1),Lt(g.user)||(N.usr=g.user),Ac(N,t.beforeSend,_,l)&&(Lt(N.context)&&delete N.context,e.notify(12,N))}})}function Ac(t,e,r,n){var a;if(e){var i=Ec(t,Xa[t.type],function(s){return e(s,r)});if(i===!1&&t.type!=="view")return!1;i===!1&&T.warn("Can't dismiss view events using beforeSend!")}var o=(a=n[t.type])===null||a===void 0?void 0:a.isLimitReached();return!o}function Ic(t){return["error","resource","long_task"].indexOf(t.type)!==-1}function Rc(t,e,r,n,a){return{get:function(i){var o=r.findView(i),s=a.findUrl(i),c=e.findTrackedSession(i);if(c&&o&&s){var u=n.findActionId(i);return{application_id:t,session_id:c.id,user_action:u?{id:u}:void 0,view:{id:o.id,name:o.name,referrer:s.referrer,url:s.url}}}}}}var xc=wu,kc=Ut;function Oc(t){var e=ae({expireDelay:kc});t.subscribe(1,function(n){e.add(r(n),n.startClocks.relative)}),t.subscribe(5,function(n){var a=n.endClocks;e.closeActive(a.relative)}),t.subscribe(3,function(n){var a=e.find(n.startClocks.relative);a&&n.name&&(a.name=n.name),a&&n.context&&(a.context=n.context)}),t.subscribe(9,function(){e.reset()});function r(n){return{service:n.service,version:n.version,context:n.context,id:n.id,name:n.name,startClocks:n.startClocks}}return{findView:function(n){return e.find(n)},stop:function(){e.stop()}}}var Za="initial_document",Nc=[["document",function(t){return Za===t}],["xhr",function(t){return t==="xmlhttprequest"}],["fetch",function(t){return t==="fetch"}],["beacon",function(t){return t==="beacon"}],["css",function(t,e){return/\.css$/i.test(e)}],["js",function(t,e){return/\.js$/i.test(e)}],["image",function(t,e){return nt(["image","img","icon"],t)||/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(e)!==null}],["font",function(t,e){return/\.(woff|eot|woff2|ttf)$/i.exec(e)!==null}],["media",function(t,e){return nt(["audio","video"],t)||/\.(mp3|mp4)$/i.exec(e)!==null}]];function Lc(t){var e=t.name;if(!zo(e))return ne('Failed to construct URL for "'.concat(t.name,'"')),"other";for(var r=Ho(e),n=0,a=Nc;n<a.length;n++){var i=a[n],o=i[0],s=i[1];if(s(t.initiatorType,r))return o}return"other"}function Tn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=1;r<t.length;r+=1)if(t[r-1]>t[r])return!1;return!0}function Mc(t){return t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch"}function Dc(t){var e=t.duration,r=t.startTime,n=t.responseEnd;return e===0&&r<n?w(B(r,n)):w(e)}function Pc(t){if($a(t)){var e=t.startTime,r=t.fetchStart,n=t.redirectStart,a=t.redirectEnd,i=t.domainLookupStart,o=t.domainLookupEnd,s=t.connectStart,c=t.secureConnectionStart,u=t.connectEnd,d=t.requestStart,f=t.responseStart,l=t.responseEnd,v={download:zt(e,f,l),first_byte:zt(e,d,f)};return r<u&&(v.connect=zt(e,s,u),s<=c&&c<=u&&(v.ssl=zt(e,c,u))),r<o&&(v.dns=zt(e,i,o)),e<a&&(v.redirect=zt(e,n,a)),v}}function Ja(t){return t.duration>=0}function $a(t){var e=Tn(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),r=Uc(t)?Tn(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart):!0;return e&&r}function Uc(t){return t.redirectEnd>t.startTime}function zt(t,e,r){if(t<=e&&e<=r)return{duration:w(B(e,r)),start:w(B(t,e))}}function Vc(t){if(t.startTime<t.responseStart){var e=t.encodedBodySize,r=t.decodedBodySize,n=t.transferSize;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}}function en(t,e){return e&&!t.isIntakeUrl(e)}var Fc=/data:(.+)?(;base64)?,/g,Cn=24e3;function Qa(t){return t.length<=Cn?!1:t.substring(0,5)==="data:"?(t=t.substring(0,Cn),!0):!1}function ti(t){return"".concat(t.match(Fc)[0],"[...]")}var An=1;function Bc(t,e,r){var n=ac(e,r);zc(t,e,n),Hc(t,e,n)}function zc(t,e,r){var n=Tu(e).subscribe(function(a){var i=a;if(en(e,i.url))switch(i.state){case"start":r.traceXhr(i,i.xhr),i.requestIndex=ei(),t.notify(6,{requestIndex:i.requestIndex,url:i.url});break;case"complete":r.clearTracingIfNeeded(i),t.notify(7,{duration:i.duration,method:i.method,requestIndex:i.requestIndex,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:"xhr",url:i.url,xhr:i.xhr,isAborted:i.isAborted,handlingStack:i.handlingStack});break}});return{stop:function(){return n.unsubscribe()}}}function Hc(t,e,r){var n=Ba().subscribe(function(a){var i=a;if(en(e,i.url))switch(i.state){case"start":r.traceFetch(i),i.requestIndex=ei(),t.notify(6,{requestIndex:i.requestIndex,url:i.url});break;case"resolve":Gc(i,function(o){r.clearTracingIfNeeded(i),t.notify(7,{duration:o,method:i.method,requestIndex:i.requestIndex,responseType:i.responseType,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:"fetch",url:i.url,response:i.response,init:i.init,input:i.input,isAborted:i.isAborted,handlingStack:i.handlingStack})});break}});return{stop:function(){return n.unsubscribe()}}}function ei(){var t=An;return An+=1,t}function Gc(t,e){var r=t.response&&ou(t.response);!r||!r.body?e(B(t.startClocks.timeStamp,U())):Ku(r.body,function(){e(B(t.startClocks.timeStamp,U()))},{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1})}function ri(t){return Zt(t)&&t<0?void 0:t}function ni(t){var e=t.lifeCycle,r=t.isChildEvent,n=t.onChange,a=n===void 0?C:n,i={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=e.subscribe(12,function(s){var c;if(!(s.type==="view"||s.type==="vital"||!r(s)))switch(s.type){case"error":i.errorCount+=1,a();break;case"action":i.actionCount+=1,s.action.frustration&&(i.frustrationCount+=s.action.frustration.type.length),a();break;case"long_task":i.longTaskCount+=1,a();break;case"resource":!((c=s._dd)===null||c===void 0)&&c.discarded||(i.resourceCount+=1,a());break}});return{stop:function(){o.unsubscribe()},eventCounts:i}}function Kc(t,e){var r=st(),n=!1,a=W(t,window,["click","mousedown","keydown","touchstart","pointerdown"],function(s){if(s.cancelable){var c={entryType:"first-input",processingStart:rt(),processingEnd:rt(),startTime:s.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:function(){return{}}};s.type==="pointerdown"?i(t,c):o(c)}},{passive:!0,capture:!0}).stop;return{stop:a};function i(s,c){W(s,window,["pointerup","pointercancel"],function(u){u.type==="pointerup"&&o(c)},{once:!0})}function o(s){if(!n){n=!0,a();var c=s.processingStart-s.startTime;c>=0&&c<st()-r&&e(s)}}}var R;(function(t){t.EVENT="event",t.FIRST_INPUT="first-input",t.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",t.LAYOUT_SHIFT="layout-shift",t.LONG_TASK="longtask",t.LONG_ANIMATION_FRAME="long-animation-frame",t.NAVIGATION="navigation",t.PAINT="paint",t.RESOURCE="resource"})(R||(R={}));function ct(t,e){return new I(function(r){if(window.PerformanceObserver){var n=function(u){var d=Yc(t,u);d.length>0&&r.notify(d)},a,i=!0,o=new PerformanceObserver(y(function(u){i?a=F(function(){return n(u.getEntries())}):n(u.getEntries())}));try{o.observe(e)}catch{var s=[R.RESOURCE,R.NAVIGATION,R.LONG_TASK,R.PAINT];if(nt(s,e.type)){e.buffered&&(a=F(function(){return n(performance.getEntriesByType(e.type))}));try{o.observe({entryTypes:[e.type]})}catch{return}}}i=!1,jc(t);var c;return!Je(R.FIRST_INPUT)&&e.type===R.FIRST_INPUT&&(c=Kc(t,function(u){n([u])}).stop),function(){o.disconnect(),c&&c(),J(a)}}})}var ce;function jc(t){return!ce&&qc()&&"addEventListener"in performance&&(ce=k(t,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()})),function(){ce==null||ce.stop()}}function qc(){return window.performance!==void 0&&"getEntries"in performance}function Je(t){return window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes!==void 0&&PerformanceObserver.supportedEntryTypes.includes(t)}function Yc(t,e){return e.filter(function(r){return!Wc(t,r)})}function Wc(t,e){return e.entryType===R.RESOURCE&&(!en(t,e.name)||!Ja(e))}var ai=100,Xc=100;function rn(t,e,r,n,a){var i=Jc(t,e,r);return Zc(i,n,a)}function Zc(t,e,r){var n,a=!1,i=F(y(function(){return u({hadActivity:!1})}),ai),o=r!==void 0?F(y(function(){return u({hadActivity:!0,end:U()})}),r):void 0,s=t.subscribe(function(d){var f=d.isBusy;J(i),J(n);var l=U();f||(n=F(y(function(){return u({hadActivity:!0,end:l})}),Xc))}),c=function(){a=!0,J(i),J(n),J(o),s.unsubscribe()};function u(d){a||(c(),e(d))}return{stop:c}}function Jc(t,e,r){return new I(function(n){var a=[],i,o=0;a.push(e.subscribe(c),ct(r,{type:R.RESOURCE}).subscribe(function(u){u.some(function(d){return!wr(r,d.name)})&&c()}),t.subscribe(6,function(u){wr(r,u.url)||(i===void 0&&(i=u.requestIndex),o+=1,c())}),t.subscribe(7,function(u){wr(r,u.url)||i===void 0||u.requestIndex<i||(o-=1,c())}));var s=$c(c).stop;return function(){s(),a.forEach(function(u){return u.unsubscribe()})};function c(){n.notify({isBusy:o>0})}})}function wr(t,e){return Ha(t.excludedActivityUrls,e)}function $c(t){return Y(window,"open",t)}function wt(t){return window.CSS&&window.CSS.escape?window.CSS.escape(t):t.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(e,r){return r?e==="\0"?"�":"".concat(e.slice(0,-1),"\\").concat(e.charCodeAt(e.length-1).toString(16)," "):"\\".concat(e)})}function qt(t,e){return t.matches?t.matches(e):t.msMatchesSelector?t.msMatchesSelector(e):!1}function Ee(t){if(t.parentElement)return t.parentElement;for(;t.parentNode;){if(t.parentNode.nodeType===Node.ELEMENT_NODE)return t.parentNode;t=t.parentNode}return null}function Qc(t){if(t.classList)return t.classList;var e=(t.getAttribute("class")||"").trim();return e?e.split(/\s+/):[]}var In=1,tl=function(){function t(e){var r=this;this.map=new WeakMap,e&&e.forEach(function(n){return r.map.set(n,In)})}return t.prototype.add=function(e){return this.map.set(e,In),this},t.prototype.delete=function(e){return this.map.delete(e)},t.prototype.has=function(e){return this.map.has(e)},t}();function ii(t){return t.nodeType===Node.TEXT_NODE}function el(t){return t.nodeType===Node.COMMENT_NODE}function oe(t){return t.nodeType===Node.ELEMENT_NODE}function $e(t){return oe(t)&&!!t.shadowRoot}function nn(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&oe(e.host)}function rl(t){return t.childNodes.length>0||$e(t)}function oi(t,e){for(var r=t.firstChild;r;)e(r),r=r.nextSibling;$e(t)&&e(t.shadowRoot)}function Qe(t){return nn(t)?t.host:t.parentNode}var S={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:fe.ALLOW,MASK:fe.MASK,MASK_USER_INPUT:fe.MASK_USER_INPUT},an="data-dd-privacy",nl="hidden",al="dd-privacy-",gt="***",Rn="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",il={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0},ol="x";function lt(t,e,r){if(r&&r.has(t))return r.get(t);var n=Qe(t),a=n?lt(n,e,r):e,i=ui(t),o=si(i,a);return r&&r.set(t,o),o}function si(t,e){switch(e){case S.HIDDEN:case S.IGNORE:return e}switch(t){case S.ALLOW:case S.MASK:case S.MASK_USER_INPUT:case S.HIDDEN:case S.IGNORE:return t;default:return e}}function ui(t){if(oe(t)){if(t.tagName==="BASE")return S.ALLOW;if(t.tagName==="INPUT"){var e=t;if(e.type==="password"||e.type==="email"||e.type==="tel"||e.type==="hidden")return S.MASK;var r=e.getAttribute("autocomplete");if(r&&r.indexOf("cc-")===0)return S.MASK}if(qt(t,Yt(S.HIDDEN)))return S.HIDDEN;if(qt(t,Yt(S.MASK)))return S.MASK;if(qt(t,Yt(S.MASK_USER_INPUT)))return S.MASK_USER_INPUT;if(qt(t,Yt(S.ALLOW)))return S.ALLOW;if(ul(t))return S.IGNORE}}function tr(t,e){switch(e){case S.MASK:case S.HIDDEN:case S.IGNORE:return!0;case S.MASK_USER_INPUT:return ii(t)?xn(t.parentNode):xn(t);default:return!1}}function xn(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;var e=t;if(e.tagName==="INPUT")switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!il[e.tagName]}var sl=function(t){return t.replace(/\S/g,ol)};function ci(t,e,r){var n,a=(n=t.parentElement)===null||n===void 0?void 0:n.tagName,i=t.textContent||"";if(!(e&&!i.trim())){var o=r,s=a==="SCRIPT";if(s)i=gt;else if(o===S.HIDDEN)i=gt;else if(tr(t,o))if(a==="DATALIST"||a==="SELECT"||a==="OPTGROUP"){if(!i.trim())return}else a==="OPTION"?i=gt:i=sl(i);return i}}function ul(t){if(t.nodeName==="SCRIPT")return!0;if(t.nodeName==="LINK"){var e=a("rel");return/preload|prefetch/i.test(e)&&a("as")==="script"||e==="shortcut icon"||e==="icon"}if(t.nodeName==="META"){var r=a("name"),e=a("rel"),n=a("property");return/^msapplication-tile(image|color)$/.test(r)||r==="application-name"||e==="icon"||e==="apple-touch-icon"||e==="shortcut icon"||r==="keywords"||r==="description"||/^(og|twitter|fb):/.test(n)||/^(og|twitter):/.test(r)||r==="pinterest"||r==="robots"||r==="googlebot"||r==="bingbot"||t.hasAttribute("http-equiv")||r==="author"||r==="generator"||r==="framework"||r==="publisher"||r==="progid"||/^article:/.test(n)||/^product:/.test(n)||r==="google-site-verification"||r==="yandex-verification"||r==="csrf-token"||r==="p:domain_verify"||r==="verify-v1"||r==="verification"||r==="shopify-checkout-api-token"}function a(i){return(t.getAttribute(i)||"").toLowerCase()}return!1}function Yt(t){return"[".concat(an,'="').concat(t,'"], .').concat(al).concat(t)}var on="data-dd-action-name",cl="Masked Element";function ll(t,e,r){var n=e.enablePrivacyForActionName,a=e.actionNameAttribute,i=kn(t,on)||a&&kn(t,a);return r===S.MASK?i||cl:i||On(t,a,dl,n)||On(t,a,fl,n)||""}function kn(t,e){var r;if(_l())r=t.closest("[".concat(e,"]"));else for(var n=t;n;){if(n.hasAttribute(e)){r=n;break}n=Ee(n)}if(r){var a=r.getAttribute(e);return di(li(a.trim()))}}var dl=[function(t,e,r){if(ml()){if("labels"in t&&t.labels&&t.labels.length>0)return Gt(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&yt(t.ownerDocument.querySelectorAll("label"),function(a){return a.htmlFor===t.id});return n&&Gt(n,e,r)}},function(t){if(t.nodeName==="INPUT"){var e=t,r=e.getAttribute("type");if(r==="button"||r==="submit"||r==="reset")return e.value}},function(t,e,r){if(t.nodeName==="BUTTON"||t.nodeName==="LABEL"||t.getAttribute("role")==="button")return Gt(t,e,r)},function(t){return t.getAttribute("aria-label")},function(t,e,r){var n=t.getAttribute("aria-labelledby");if(n)return n.split(/\s+/).map(function(a){return pl(t,a)}).filter(function(a){return!!a}).map(function(a){return Gt(a,e,r)}).join(" ")},function(t){return t.getAttribute("alt")},function(t){return t.getAttribute("name")},function(t){return t.getAttribute("title")},function(t){return t.getAttribute("placeholder")},function(t,e){if("options"in t&&t.options.length>0)return Gt(t.options[0],e)}],fl=[function(t,e,r){return Gt(t,e,r)}],vl=10;function On(t,e,r,n){for(var a=t,i=0;i<=vl&&a&&a.nodeName!=="BODY"&&a.nodeName!=="HTML"&&a.nodeName!=="HEAD";){for(var o=0,s=r;o<s.length;o++){var c=s[o],u=c(a,e,n);if(typeof u=="string"){var d=u.trim();if(d)return di(li(d))}}if(a.nodeName==="FORM")break;a=Ee(a),i+=1}}function li(t){return t.replace(/\s+/g," ")}function di(t){return t.length>100?"".concat(oa(t,100)," [...]"):t}function pl(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}function Gt(t,e,r){if(!t.isContentEditable){if("innerText"in t){var n=t.innerText,a=function(i){for(var o=t.querySelectorAll(i),s=0;s<o.length;s+=1){var c=o[s];if("innerText"in c){var u=c.innerText;u&&u.trim().length>0&&(n=n.replace(u,""))}}};return hl()||a("script, style"),a("[".concat(on,"]")),e&&a("[".concat(e,"]")),r&&a("".concat(Yt(S.HIDDEN),", ").concat(Yt(S.MASK))),n}return t.textContent}}function hl(){return!co()}var Tr;function ml(){return Tr===void 0&&(Tr="labels"in HTMLInputElement.prototype),Tr}var Cr;function _l(){return Cr===void 0&&(Cr="closest"in HTMLElement.prototype),Cr}var fi=[on,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],gl=[pi,yl],bl=[pi,Sl,El];function we(t,e){if(Il(t)){for(var r,n=t;n&&n.nodeName!=="HTML";){var a=Nn(n,gl,Tl,e,r);if(a)return a;var i=Nn(n,bl,Cl,e,r);r=i||me(wl(n),r),n=Ee(n)}return r}}function vi(t){return/[0-9]/.test(t)}function yl(t){if(t.id&&!vi(t.id))return"#".concat(wt(t.id))}function Sl(t){if(t.tagName!=="BODY")for(var e=Qc(t),r=0;r<e.length;r+=1){var n=e[r];if(!vi(n))return"".concat(wt(t.tagName),".").concat(wt(n))}}function El(t){return wt(t.tagName)}function pi(t,e){if(e){var r=o(e);if(r)return r}for(var n=0,a=fi;n<a.length;n++){var i=a[n],r=o(i);if(r)return r}function o(s){if(t.hasAttribute(s))return"".concat(wt(t.tagName),"[").concat(s,'="').concat(wt(t.getAttribute(s)),'"]')}}function wl(t){for(var e=Ee(t).firstElementChild,r=1;e&&e!==t;)e.tagName===t.tagName&&(r+=1),e=e.nextElementSibling;return"".concat(wt(t.tagName),":nth-of-type(").concat(r,")")}function Nn(t,e,r,n,a){for(var i=0,o=e;i<o.length;i++){var s=o[i],c=s(t,n);if(c&&r(t,c,a))return me(c,a)}}function Tl(t,e,r){return t.ownerDocument.querySelectorAll(me(e,r)).length===1}function Cl(t,e,r){var n;if(r===void 0)n=function(s){return qt(s,e)};else{var a=Al()?me("".concat(e,":scope"),r):me(e,r);n=function(s){return s.querySelector(a)!==null}}for(var i=Ee(t),o=i.firstElementChild;o;){if(o!==t&&n(o))return!1;o=o.nextElementSibling}return!0}function me(t,e){return e?"".concat(t,">").concat(e):t}var Ne;function Al(){if(Ne===void 0)try{document.querySelector(":scope"),Ne=!0}catch{Ne=!1}return Ne}function Il(t){return"isConnected"in t?t.isConnected:t.ownerDocument.documentElement.contains(t)}var hi=K,Rl=100;function xl(t,e){var r=[],n=0,a;i(t);function i(c){c.stopObservable.subscribe(o),r.push(c),J(a),a=F(s,hi)}function o(){n===1&&r.every(function(c){return c.isStopped()})&&(n=2,e(r))}function s(){J(a),n===0&&(n=1,o())}return{tryAppend:function(c){return n!==0?!1:r.length>0&&!kl(r[r.length-1].event,c.event)?(s(),!1):(i(c),!0)},stop:function(){s()}}}function kl(t,e){return t.target===e.target&&Ol(t,e)<=Rl&&t.timeStamp-e.timeStamp<=hi}function Ol(t,e){return Math.sqrt(Math.pow(t.clientX-e.clientX,2)+Math.pow(t.clientY-e.clientY,2))}function Nl(t,e){var r=e.onPointerDown,n=e.onPointerUp,a,i={selection:!1,input:!1,scroll:!1},o,s=[k(t,window,"pointerdown",function(c){Mn(c)&&(a=Ln(),i={selection:!1,input:!1,scroll:!1},o=r(c))},{capture:!0}),k(t,window,"selectionchange",function(){(!a||!Ln())&&(i.selection=!0)},{capture:!0}),k(t,window,"scroll",function(){i.scroll=!0},{capture:!0,passive:!0}),k(t,window,"pointerup",function(c){if(Mn(c)&&o){var u=i;n(o,c,function(){return u}),o=void 0}},{capture:!0}),k(t,window,"input",function(){i.input=!0},{capture:!0})];return{stop:function(){s.forEach(function(c){return c.stop()})}}}function Ln(){var t=window.getSelection();return!t||t.isCollapsed}function Mn(t){return t.target instanceof Element&&t.isPrimary!==!1}var Dn=3;function Ll(t,e){if(Ml(t))return e.addFrustration("rage_click"),t.some(Pn)&&e.addFrustration("dead_click"),e.hasError&&e.addFrustration("error_click"),{isRage:!0};var r=t.some(function(n){return n.getUserActivity().selection});return t.forEach(function(n){n.hasError&&n.addFrustration("error_click"),Pn(n)&&!r&&n.addFrustration("dead_click")}),{isRage:!1}}function Ml(t){if(t.some(function(r){return r.getUserActivity().selection||r.getUserActivity().scroll}))return!1;for(var e=0;e<t.length-(Dn-1);e+=1)if(t[e+Dn-1].event.timeStamp-t[e].event.timeStamp<=K)return!0;return!1}var Dl='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] *';function Pn(t){return t.hasPageActivity||t.getUserActivity().input||t.getUserActivity().scroll?!1:!qt(t.event.target,Dl)}var Pl=10*K,Ul=5*X;function Vl(t,e,r){var n=ae({expireDelay:Ul}),a=new I,i;t.subscribe(9,function(){n.reset()}),t.subscribe(4,u);var o=Nl(r,{onPointerDown:function(d){return Fl(r,t,e,d)},onPointerUp:function(d,f,l){var v=d.clickActionBase,p=d.hadActivityOnPointerDown;Bl(r,t,e,n,a,c,v,f,l,p)}}).stop,s={findActionId:function(d){return n.findAll(d)}};return{stop:function(){u(),a.notify(),o()},actionContexts:s};function c(d){if(!i||!i.tryAppend(d)){var f=d.clone();i=xl(d,function(l){Hl(l,f)})}}function u(){i&&i.stop()}}function Fl(t,e,r,n){var a=t.enablePrivacyForActionName?lt(n.target,t.defaultPrivacyLevel):S.ALLOW;if(a!==S.HIDDEN){var i=zl(n,a,t),o=!1;return rn(e,r,t,function(s){o=s.hadActivity},ai),{clickActionBase:i,hadActivityOnPointerDown:function(){return o}}}}function Bl(t,e,r,n,a,i,o,s,c,u){var d=mi(e,n,c,o,s);i(d);var f=rn(e,r,t,function(p){p.hadActivity&&p.end<d.startClocks.timeStamp?d.discard():p.hadActivity?d.stop(p.end):u()?d.stop(d.startClocks.timeStamp):d.stop()},Pl).stop,l=e.subscribe(4,function(p){var h=p.endClocks;d.stop(h.timeStamp)}),v=a.subscribe(function(){d.stop()});d.stopObservable.subscribe(function(){l.unsubscribe(),f(),v.unsubscribe()})}function zl(t,e,r){var n=t.target.getBoundingClientRect();return{type:"click",target:{width:Math.round(n.width),height:Math.round(n.height),selector:we(t.target,r.actionNameAttribute)},position:{x:Math.round(t.clientX-n.left),y:Math.round(t.clientY-n.top)},name:ll(t.target,r,e)}}function mi(t,e,r,n,a){var i=z(),o=G(),s=e.add(i,o.relative),c=ni({lifeCycle:t,isChildEvent:function(p){return p.action!==void 0&&(Array.isArray(p.action.id)?nt(p.action.id,i):p.action.id===i)}}),u=0,d,f=[],l=new I;function v(p){u===0&&(d=p,u=1,d?s.close(Br(d)):s.remove(),c.stop(),l.notify())}return{event:a,stop:v,stopObservable:l,get hasError(){return c.eventCounts.errorCount>0},get hasPageActivity(){return d!==void 0},getUserActivity:r,addFrustration:function(p){f.push(p)},startClocks:o,isStopped:function(){return u===1||u===2},clone:function(){return mi(t,e,r,n,a)},validate:function(p){if(v(),u===1){var h=c.eventCounts,m=h.resourceCount,_=h.errorCount,b=h.longTaskCount,A=E({type:"click",duration:d&&B(o.timeStamp,d),startClocks:o,id:i,frustrationTypes:f,counts:{resourceCount:m,errorCount:_,longTaskCount:b},events:p??[a],event:a},n);t.notify(0,A),u=2}},discard:function(){v(),u=2}}}function Hl(t,e){var r=Ll(t,e).isRage;r?(t.forEach(function(n){return n.discard()}),e.stop(U()),e.validate(t.map(function(n){return n.event}))):(e.discard(),t.forEach(function(n){return n.validate()}))}function Gl(t,e,r,n){t.subscribe(0,function(i){return t.notify(11,Un(i,n))});var a={findActionId:C};return r.trackUserInteractions&&(a=Vl(t,e,r).actionContexts),{addAction:function(i,o){t.notify(11,E({savedCommonContext:o},Un(i,n)))},actionContexts:a}}function Un(t,e){var r=Le(t)?{action:{id:t.id,loading_time:ri(w(t.duration)),frustration:{type:t.frustrationTypes},error:{count:t.counts.errorCount},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_dd:{action:{target:t.target,position:t.position}}}:void 0,n=Le(t)?void 0:t.context,a=ut({action:{id:z(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:"action",view:{in_foreground:e.wasInPageStateAt("active",t.startClocks.relative)}},r),i=Le(t)?{events:t.events}:{};return!Le(t)&&t.handlingStack&&(i.handlingStack=t.handlingStack),{customerContext:n,rawRumEvent:a,startTime:t.startClocks.relative,domainContext:i}}function Le(t){return t.type!=="custom"}function Kl(t){var e=Nu([Ke.error]).subscribe(function(r){return t.notify(r.error)});return{stop:function(){e.unsubscribe()}}}function jl(t,e){var r=Ps(t,[he.cspViolation,he.intervention]).subscribe(function(n){return e.notify(n)});return{stop:function(){r.unsubscribe()}}}function ql(t,e,r,n){var a=new I;return Kl(a),Os(a),jl(e,a),a.subscribe(function(i){return t.notify(13,{error:i})}),Yl(t,r,n)}function Yl(t,e,r){return t.subscribe(13,function(n){var a=n.error,i=n.customerContext,o=n.savedCommonContext;t.notify(11,E({customerContext:i,savedCommonContext:o},Wl(a,e,r)))}),{addError:function(n,a){var i=n.error,o=n.handlingStack,s=n.startClocks,c=n.context,u=i instanceof Error?Ct(i):void 0,d=ya({stackTrace:u,originalError:i,handlingStack:o,startClocks:s,nonErrorPrefix:"Provided",source:ee.CUSTOM,handling:"handled"});t.notify(13,{customerContext:c,savedCommonContext:a,error:d})}}}function Wl(t,e,r){var n={date:t.startClocks.timeStamp,error:{id:z(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser",fingerprint:t.fingerprint,csp:t.csp},type:"error",view:{in_foreground:e.wasInPageStateAt("active",t.startClocks.relative)}},a=r.findFeatureFlagEvaluations(t.startClocks.relative);a&&!Lt(a)&&(n.feature_flags=a);var i={error:t.originalError,handlingStack:t.handlingStack};return{rawRumEvent:n,startTime:t.startClocks.relative,domainContext:i}}function Xl(t,e){var r=ct(e,{type:R.LONG_TASK,buffered:!0}).subscribe(function(n){for(var a=0,i=n;a<i.length;a++){var o=i[a];if(o.entryType!==R.LONG_TASK||!e.trackLongTasks)break;var s=Ye(o.startTime),c={date:s.timeStamp,long_task:{id:z(),entry_type:"long-task",duration:w(o.duration)},type:"long_task",_dd:{discarded:!1}};t.notify(11,{rawRumEvent:c,startTime:s.relative,domainContext:{performanceEntry:o}})}});return{stop:function(){r.unsubscribe()}}}var Vn=new tl;function Zl(t){if(!(!performance||!("getEntriesByName"in performance))){var e=performance.getEntriesByName(t.url,"resource");if(!(!e.length||!("toJSON"in e[0]))){var r=e.filter(function(n){return!Vn.has(n)}).filter(function(n){return Ja(n)&&$a(n)}).filter(function(n){return Jl(n,t.startClocks.relative,_i({startTime:t.startClocks.relative,duration:t.duration}))});if(r.length===1)return Vn.add(r[0]),r[0].toJSON()}}}function _i(t){return Jt(t.startTime,t.duration)}function Jl(t,e,r){var n=1;return t.startTime>=e-n&&_i(t)<=Jt(r,n)}var $l=2*X;function Ql(t){var e=td(t)||ed(t);if(!(!e||e.traceTime<=st()-$l))return e.traceId}function td(t){var e=t.querySelector("meta[name=dd-trace-id]"),r=t.querySelector("meta[name=dd-trace-time]");return gi(e&&e.content,r&&r.content)}function ed(t){var e=rd(t);if(e)return gi(pe(e,"trace-id"),pe(e,"trace-time"))}function gi(t,e){var r=e&&Number(e);if(!(!t||!r))return{traceId:t,traceTime:r}}function rd(t){for(var e=0;e<t.childNodes.length;e+=1){var r=Fn(t.childNodes[e]);if(r)return r}if(t.body)for(var e=t.body.childNodes.length-1;e>=0;e-=1){var n=t.body.childNodes[e],r=Fn(n);if(r)return r;if(!ii(n))break}}function Fn(t){if(t&&el(t)){var e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}function bi(){if(Je(R.NAVIGATION)){var t=performance.getEntriesByType(R.NAVIGATION)[0];if(t)return t}var e=nd(),r=E({entryType:R.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.responseEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,toJSON:function(){return E({},r,{toJSON:void 0})}},e);return r}function nd(){var t={},e=performance.timing;for(var r in e)if(Zt(e[r])){var n=r,a=e[n];t[n]=a===0?0:Br(a)}return t}function ad(t,e){$r(t,"interactive",function(){var r=E(bi().toJSON(),{entryType:R.RESOURCE,initiatorType:Za,traceId:Ql(document),toJSON:function(){return E({},r,{toJSON:void 0})}});e(r)})}function id(t,e,r,n){n===void 0&&(n=ad),t.subscribe(7,function(i){var o=od(i,e,r);o&&t.notify(11,o)});var a=ct(e,{type:R.RESOURCE,buffered:!0}).subscribe(function(i){for(var o=0,s=i;o<s.length;o++){var c=s[o];if(!Mc(c)){var u=Bn(c,e);u&&t.notify(11,u)}}});return n(e,function(i){var o=Bn(i,e);o&&t.notify(11,o)}),{stop:function(){a.unsubscribe()}}}function od(t,e,r){var n=Zl(t),a=n?Ye(n.startTime):t.startClocks,i=sd(t,e);if(!(!e.trackResources&&!i)){var o=t.type==="xhr"?"xhr":"fetch",s=n?yi(n):void 0,c=cd(r,a,t.duration),u=ut({date:a.timeStamp,resource:{id:z(),type:o,duration:c,method:t.method,status_code:t.status,url:Qa(t.url)?ti(t.url):t.url},type:"resource",_dd:{discarded:!e.trackResources}},i,s);return{startTime:a.relative,rawRumEvent:u,domainContext:{performanceEntry:n,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error,isAborted:t.isAborted,handlingStack:t.handlingStack}}}}function Bn(t,e){var r=Ye(t.startTime),n=ud(t,e);if(!(!e.trackResources&&!n)){var a=Lc(t),i=yi(t),o=ut({date:r.timeStamp,resource:{id:z(),type:a,url:t.name,status_code:ld(t.responseStatus)},type:"resource",_dd:{discarded:!e.trackResources}},n,i);return{startTime:r.relative,rawRumEvent:o,domainContext:{performanceEntry:t}}}}function yi(t){var e=t.renderBlockingStatus;return{resource:E({duration:Dc(t),render_blocking_status:e},Vc(t),Pc(t))}}function sd(t,e){var r=t.traceSampled&&t.traceId&&t.spanId;if(r)return{_dd:{span_id:t.spanId.toDecimalString(),trace_id:t.traceId.toDecimalString(),rule_psr:Si(e)}}}function ud(t,e){var r=t.traceId;if(r)return{_dd:{trace_id:t.traceId,span_id:Ur().toDecimalString(),rule_psr:Si(e)}}}function Si(t){return Zt(t.traceSampleRate)?t.traceSampleRate/100:void 0}function cd(t,e,r){return t.wasInPageStateDuringPeriod("frozen",e.relative,r)?void 0:w(r)}function ld(t){return t===0?void 0:t}function dd(t,e,r){var n=ni({lifeCycle:t,isChildEvent:function(o){return o.view.id===e},onChange:r}),a=n.stop,i=n.eventCounts;return{stop:a,eventCounts:i}}var fd=10*X;function vd(t,e,r){var n=ct(t,{type:R.PAINT,buffered:!0}).subscribe(function(a){var i=yt(a,function(o){return o.name==="first-contentful-paint"&&o.startTime<e.timeStamp&&o.startTime<fd});i&&r(i.startTime)});return{stop:n.unsubscribe}}function pd(t,e,r){var n=ct(t,{type:R.FIRST_INPUT,buffered:!0}).subscribe(function(a){var i=yt(a,function(c){return c.startTime<e.timeStamp});if(i){var o=B(i.startTime,i.processingStart),s=void 0;i.target&&oe(i.target)&&(s=we(i.target,t.actionNameAttribute)),r({delay:o>=0?o:0,time:i.startTime,targetSelector:s})}});return{stop:function(){n.unsubscribe()}}}function hd(t,e,r){return r===void 0&&(r=bi),gd(t,function(){var n=r();_d(n)||e(md(n))})}function md(t){return{domComplete:t.domComplete,domContentLoaded:t.domContentLoadedEventEnd,domInteractive:t.domInteractive,loadEvent:t.loadEventEnd,firstByte:t.responseStart>=0&&t.responseStart<=rt()?t.responseStart:void 0}}function _d(t){return t.loadEventEnd<=0}function gd(t,e){var r,n=$r(t,"complete",function(){r=F(function(){return e()})}).stop;return{stop:function(){n(),J(r)}}}var bd=10*X;function yd(t,e,r,n){var a=1/0,i=W(t,r,["pointerdown","keydown"],function(c){a=c.timeStamp},{capture:!0,once:!0}).stop,o=0,s=ct(t,{type:R.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(function(c){var u=eo(c,function(f){return f.entryType===R.LARGEST_CONTENTFUL_PAINT&&f.startTime<a&&f.startTime<e.timeStamp&&f.startTime<bd&&f.size>o});if(u){var d=void 0;u.element&&(d=we(u.element,t.actionNameAttribute)),n({value:u.startTime,targetSelector:d}),o=u.size}});return{stop:function(){i(),s.unsubscribe()}}}function Ei(t,e){e===void 0&&(e=window);var r,n;return document.visibilityState==="hidden"?r=0:(r=1/0,n=W(t,e,["pagehide","visibilitychange"],function(a){(a.type==="pagehide"||document.visibilityState==="hidden")&&(r=a.timeStamp,n())},{capture:!0}).stop),{get timeStamp(){return r},stop:function(){n==null||n()}}}function Sd(t,e,r){var n={},a=hd(t,function(d){e(d.loadEvent),n.navigationTimings=d,r()}).stop,i=Ei(t),o=vd(t,i,function(d){n.firstContentfulPaint=d,r()}).stop,s=yd(t,i,window,function(d){n.largestContentfulPaint=d,r()}).stop,c=pd(t,i,function(d){n.firstInput=d,r()}).stop;function u(){a(),o(),s(),c(),i.stop()}return{stop:u,initialViewMetrics:n}}function Ed(t,e,r){if(!Id())return{stop:C};var n=0,a,i;r({value:0});var o=Ad(),s=ct(t,{type:R.LAYOUT_SHIFT,buffered:!0}).subscribe(function(c){for(var u=0,d=c;u<d.length;u++){var f=d[u];if(!f.hadRecentInput){var l=o.update(f),v=l.cumulatedValue,p=l.isMaxValue;if(p){var h=wd(f.sources);a=h?new WeakRef(h):void 0,i=B(e,f.startTime)}if(v>n){n=v;var h=a==null?void 0:a.deref();r({value:Ue(n,4),targetSelector:h&&we(h,t.actionNameAttribute),time:i})}}}});return{stop:function(){s.unsubscribe()}}}function wd(t){var e;if(t)return(e=yt(t,function(r){return!!r.node&&oe(r.node)}))===null||e===void 0?void 0:e.node}var Td=5*K,Cd=K;function Ad(){var t=0,e,r,n=0;return{update:function(a){var i=e===void 0||a.startTime-r>=Cd||a.startTime-e>=Td,o;return i?(e=r=a.startTime,n=t=a.value,o=!0):(t+=a.value,r=a.startTime,o=a.value>n,o&&(n=a.value)),{cumulatedValue:t,isMaxValue:o}}}}function Id(){return Je(R.LAYOUT_SHIFT)&&"WeakRef"in window}var Pe,wi=0,Ar=1/0,Ir=0;function Rd(){"interactionCount"in performance||Pe||(Pe=new window.PerformanceObserver(y(function(t){t.getEntries().forEach(function(e){var r=e;r.interactionId&&(Ar=Math.min(Ar,r.interactionId),Ir=Math.max(Ir,r.interactionId),wi=(Ir-Ar)/7+1)})})),Pe.observe({type:"event",buffered:!0,durationThreshold:0}))}var zn=function(){return Pe?wi:window.performance.interactionCount||0},Hn=10,xd=1*X;function kd(t,e,r){if(!Ld())return{getInteractionToNextPaint:function(){},setViewEnd:C,stop:C};var n=Nd(r),a=n.getViewInteractionCount,i=n.stopViewInteractionCount,o=1/0,s=Od(a),c=-1,u,d;function f(p){for(var h=0,m=p;h<m.length;h++){var _=m[h];_.interactionId&&_.startTime>=e&&_.startTime<=o&&s.process(_)}var b=s.estimateP98Interaction();b&&b.duration!==c&&(c=b.duration,d=B(e,b.startTime),b.target&&oe(b.target)?u=we(b.target,t.actionNameAttribute):u=void 0)}var l=ct(t,{type:R.FIRST_INPUT,buffered:!0}).subscribe(f),v=ct(t,{type:R.EVENT,durationThreshold:40,buffered:!0}).subscribe(f);return{getInteractionToNextPaint:function(){if(c>=0)return{value:Math.min(c,xd),targetSelector:u,time:d};if(a())return{value:0}},setViewEnd:function(p){o=p,i()},stop:function(){v.unsubscribe(),l.unsubscribe()}}}function Od(t){var e=[];function r(){e.sort(function(n,a){return a.duration-n.duration}).splice(Hn)}return{process:function(n){var a=e.findIndex(function(o){return n.interactionId===o.interactionId}),i=e[e.length-1];a!==-1?n.duration>e[a].duration&&(e[a]=n,r()):(e.length<Hn||n.duration>i.duration)&&(e.push(n),r())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}function Nd(t){Rd();var e=t==="initial_load"?0:zn(),r={stopped:!1};function n(){return zn()-e}return{getViewInteractionCount:function(){return r.stopped?r.interactionCount:n()},stopViewInteractionCount:function(){r={stopped:!0,interactionCount:n()}}}}function Ld(){return Je(R.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype}function Md(t,e,r,n,a,i){var o=n==="initial_load",s=!0,c=[],u=Ei(r);function d(){if(!s&&!o&&c.length>0){var l=Math.max.apply(Math,c);l<u.timeStamp&&i(l)}}var f=rn(t,e,r,function(l){s&&(s=!1,l.hadActivity&&c.push(B(a.timeStamp,l.end)),d())}).stop;return{stop:function(){f(),u.stop()},setLoadEvent:function(l){o&&(o=!1,c.push(l),d())}}}function Ti(){var t,e=window.visualViewport;return e?t=e.pageLeft-e.offsetLeft:window.scrollX!==void 0?t=window.scrollX:t=window.pageXOffset||0,Math.round(t)}function sn(){var t,e=window.visualViewport;return e?t=e.pageTop-e.offsetTop:window.scrollY!==void 0?t=window.scrollY:t=window.pageYOffset||0,Math.round(t)}var Rr;function Ci(t){return Rr||(Rr=Dd(t)),Rr}function Dd(t){return new I(function(e){var r=pt(function(){e.notify(er())},200).throttled;return k(t,window,"resize",r,{capture:!0,passive:!0}).stop})}function er(){var 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 Pd=K;function Ud(t,e,r,n){n===void 0&&(n=Fd(t));var a=0,i=0,o=0,s=n.subscribe(function(c){var u=c.scrollDepth,d=c.scrollTop,f=c.scrollHeight,l=!1;if(u>a&&(a=u,l=!0),f>i){i=f;var v=rt();o=B(e.relative,v),l=!0}l&&r({maxDepth:Math.min(a,i),maxDepthScrollTop:d,maxScrollHeight:i,maxScrollHeightTime:o})});return{stop:function(){return s.unsubscribe()}}}function Vd(){var t=sn(),e=er().height,r=Math.round((document.scrollingElement||document.documentElement).scrollHeight),n=Math.round(e+t);return{scrollHeight:r,scrollDepth:n,scrollTop:t}}function Fd(t,e){return e===void 0&&(e=Pd),new I(function(r){function n(){r.notify(Vd())}if(window.ResizeObserver){var a=pt(n,e,{leading:!1,trailing:!0}),i=document.scrollingElement||document.documentElement,o=new ResizeObserver(y(a.throttled));o.observe(i);var s=k(t,window,"scroll",a.throttled,{passive:!0});return function(){a.cancel(),o.unobserve(i),s.stop()}}})}function Bd(t,e,r,n,a,i){var o={},s=Md(t,e,r,a,i,function(m){o.loadingTime=m,n()}),c=s.stop,u=s.setLoadEvent,d=Ud(r,i,function(m){o.scroll=m}).stop,f=Ed(r,i.relative,function(m){o.cumulativeLayoutShift=m,n()}).stop,l=kd(r,i.relative,a),v=l.stop,p=l.getInteractionToNextPaint,h=l.setViewEnd;return{stop:function(){c(),f(),d()},stopINPTracking:v,setLoadEvent:u,setViewEnd:h,getCommonViewMetrics:function(){return o.interactionToNextPaint=p(),o}}}var zd=3e3,Hd=5*X,Gd=5*X;function Kd(t,e,r,n,a,i,o){var s=new Set,c=d("initial_load",ra(),o);f();var u;i&&(u=l(a));function d(v,p,h){var m=jd(e,r,n,t,v,p,h);return s.add(m),m.stopObservable.subscribe(function(){s.delete(m)}),m}function f(){e.subscribe(9,function(){c=d("route_change",void 0,{name:c.name,service:c.service,version:c.version,context:c.contextManager.getContext()})}),e.subscribe(8,function(){c.end({sessionIsActive:!1})}),e.subscribe(10,function(v){v.reason===Wt.UNLOADING&&c.end()})}function l(v){return v.subscribe(function(p){var h=p.oldLocation,m=p.newLocation;Yd(h,m)&&(c.end(),c=d("route_change"))})}return{addTiming:function(v,p){p===void 0&&(p=U()),c.addTiming(v,p)},startView:function(v,p){c.end({endClocks:p}),c=d("route_change",p,v)},setViewContext:function(v){c.contextManager.setContext(v)},setViewContextProperty:function(v,p){c.contextManager.setContextProperty(v,p)},updateViewName:function(v){c.updateViewName(v)},stop:function(){u&&u.unsubscribe(),c.end(),s.forEach(function(v){return v.stop()})}}}function jd(t,e,r,n,a,i,o){i===void 0&&(i=G());var s=z(),c=new I,u={},d=0,f,l=ve(n),v=Pr(),p=!0,h,m,_,b;o&&(h=o.name,m=o.service||void 0,_=o.version||void 0,o.context&&(b=o.context,v.setContext(b)));var A={id:s,name:h,startClocks:i,service:m,version:_,context:b};t.notify(1,A),t.notify(2,A);var x=pt(at,zd,{leading:!1}),D=x.throttled,O=x.cancel,g=Bd(t,e,r,D,a,i),V=g.setLoadEvent,It=g.setViewEnd,N=g.stop,nr=g.stopINPTracking,ar=g.getCommonViewMetrics,Ce=a==="initial_load"?Sd(r,V,D):{stop:C,initialViewMetrics:{}},ir=Ce.stop,or=Ce.initialViewMetrics,Ae=dd(t,s,D),sr=Ae.stop,ur=Ae.eventCounts,cr=$t(at,Hd);at(),v.changeObservable.subscribe(at);function at(){O(),d+=1;var Z=f===void 0?U():f.timeStamp;t.notify(3,{customTimings:u,documentVersion:d,id:s,name:h,service:m,version:_,context:v.getContext(),loadingType:a,location:l,startClocks:i,commonViewMetrics:ar(),initialViewMetrics:or,duration:B(i.timeStamp,Z),isActive:f===void 0,sessionIsActive:p,eventCounts:ur})}return{get name(){return h},service:m,version:_,contextManager:v,stopObservable:c,end:function(Z){var P=this,dt,lr;Z===void 0&&(Z={}),!f&&(f=(dt=Z.endClocks)!==null&&dt!==void 0?dt:G(),p=(lr=Z.sessionIsActive)!==null&&lr!==void 0?lr:!0,t.notify(4,{endClocks:f}),t.notify(5,{endClocks:f}),Xe(cr),It(f.relative),N(),at(),F(function(){P.stop()},Gd))},stop:function(){ir(),sr(),nr(),c.notify()},addTiming:function(Z,P){if(!f){var dt=$i(P)?P:B(i.timeStamp,P);u[qd(Z)]=dt,D()}},updateViewName:function(Z){ye(Et.UPDATE_VIEW_NAME)&&(h=Z,at())}}}function qd(t){var e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return e!==t&&T.warn("Invalid timing name: ".concat(t,", sanitized to: ").concat(e)),e}function Yd(t,e){return t.pathname!==e.pathname||!Wd(e.hash)&&Gn(e.hash)!==Gn(t.hash)}function Wd(t){var e=t.substring(1);return e!==""&&!!document.getElementById(e)}function Gn(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function Xd(t,e,r,n,a,i,o,s,c){return t.subscribe(3,function(u){return t.notify(11,Zd(u,e,i,s,o))}),Kd(r,t,n,e,a,!e.trackViewsManually,c)}function Zd(t,e,r,n,a){var i,o,s,c,u,d,f,l,v,p,h,m,_,b,A,x,D=n.getReplayStats(t.id),O=r.findFeatureFlagEvaluations(t.startClocks.relative),g=a.findAll(t.startClocks.relative,t.duration),V={_dd:{document_version:t.documentVersion,replay_stats:D,page_states:g,configuration:{start_session_replay_recording_manually:e.startSessionReplayRecordingManually}},date:t.startClocks.timeStamp,type:"view",view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:(i=t.commonViewMetrics.cumulativeLayoutShift)===null||i===void 0?void 0:i.value,cumulative_layout_shift_time:w((o=t.commonViewMetrics.cumulativeLayoutShift)===null||o===void 0?void 0:o.time),cumulative_layout_shift_target_selector:(s=t.commonViewMetrics.cumulativeLayoutShift)===null||s===void 0?void 0:s.targetSelector,first_byte:w((c=t.initialViewMetrics.navigationTimings)===null||c===void 0?void 0:c.firstByte),dom_complete:w((u=t.initialViewMetrics.navigationTimings)===null||u===void 0?void 0:u.domComplete),dom_content_loaded:w((d=t.initialViewMetrics.navigationTimings)===null||d===void 0?void 0:d.domContentLoaded),dom_interactive:w((f=t.initialViewMetrics.navigationTimings)===null||f===void 0?void 0:f.domInteractive),error:{count:t.eventCounts.errorCount},first_contentful_paint:w(t.initialViewMetrics.firstContentfulPaint),first_input_delay:w((l=t.initialViewMetrics.firstInput)===null||l===void 0?void 0:l.delay),first_input_time:w((v=t.initialViewMetrics.firstInput)===null||v===void 0?void 0:v.time),first_input_target_selector:(p=t.initialViewMetrics.firstInput)===null||p===void 0?void 0:p.targetSelector,interaction_to_next_paint:w((h=t.commonViewMetrics.interactionToNextPaint)===null||h===void 0?void 0:h.value),interaction_to_next_paint_time:w((m=t.commonViewMetrics.interactionToNextPaint)===null||m===void 0?void 0:m.time),interaction_to_next_paint_target_selector:(_=t.commonViewMetrics.interactionToNextPaint)===null||_===void 0?void 0:_.targetSelector,is_active:t.isActive,name:t.name,largest_contentful_paint:w((b=t.initialViewMetrics.largestContentfulPaint)===null||b===void 0?void 0:b.value),largest_contentful_paint_target_selector:(A=t.initialViewMetrics.largestContentfulPaint)===null||A===void 0?void 0:A.targetSelector,load_event:w((x=t.initialViewMetrics.navigationTimings)===null||x===void 0?void 0:x.loadEvent),loading_time:ri(w(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:w(t.duration)},feature_flags:O&&!Lt(O)?O:void 0,display:t.commonViewMetrics.scroll?{scroll:{max_depth:t.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:t.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:t.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:w(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:D?!0:void 0,is_active:t.sessionIsActive?void 0:!1},privacy:{replay_level:e.defaultPrivacyLevel}};return Lt(t.customTimings)||(V.view.custom_timings=ao(t.customTimings,w)),{rawRumEvent:V,startTime:t.startClocks.relative,domainContext:{location:t.location}}}var Jd="rum";function $d(t,e,r){var n=eu(t,Jd,function(a){return tf(t,a)},r);return n.expireObservable.subscribe(function(){e.notify(8)}),n.renewObservable.subscribe(function(){e.notify(9)}),n.sessionStateUpdateObservable.subscribe(function(a){var i=a.previousState,o=a.newState;if(!i.forcedReplay&&o.forcedReplay){var s=n.findSession();s&&(s.isReplayForced=!0)}}),{findTrackedSession:function(a){var i=n.findSession(a);if(!(!i||!Ai(i.trackingType)))return{id:i.id,sessionReplay:i.trackingType==="1"?1:i.isReplayForced?2:0}},expire:n.expire,expireObservable:n.expireObservable,setForcedReplay:function(){return n.updateSessionState({forcedReplay:"1"})}}}function Qd(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:Va("records")?1:0};return{findTrackedSession:function(){return t},expire:C,expireObservable:new I,setForcedReplay:C}}function tf(t,e){var r;return ef(e)?r=e:Ot(t.sessionSampleRate)?Ot(t.sessionReplaySampleRate)?r="1":r="2":r="0",{trackingType:r,isTracked:Ai(r)}}function ef(t){return t==="0"||t==="1"||t==="2"}function Ai(t){return t==="2"||t==="1"}function rf(t,e,r,n,a,i,o){var s=t.replica,c=Su(t,{endpoint:t.rumEndpointBuilder,encoder:o(2)},s&&{endpoint:s.rumEndpointBuilder,transformMessage:function(u){return ut(u,{application:{id:s.applicationId}})},encoder:o(3)},n,a,i);return e.subscribe(12,function(u){u.type==="view"?c.upsert(u,u.view.id):c.add(u)}),r.subscribe(function(u){return c.add(u,Ws(t))}),c}function nf(t){var e=ie();t.subscribe(12,function(r){e.send("rum",r)})}var af=Ut;function of(t,e,r){var n=ae({expireDelay:af}),a;t.subscribe(1,function(s){var c=s.startClocks,u=r.href;n.add(o({url:u,referrer:a||document.referrer}),c.relative),a=u}),t.subscribe(5,function(s){var c=s.endClocks;n.closeActive(c.relative)});var i=e.subscribe(function(s){var c=s.newLocation,u=n.find();if(u){var d=rt();n.closeActive(d),n.add(o({url:c.href,referrer:u.referrer}),d)}});function o(s){var c=s.url,u=s.referrer;return{url:c,referrer:u}}return{findUrl:function(s){return n.find(s)},stop:function(){i.unsubscribe(),n.stop()}}}function sf(t,e){var r=ve(e);return new I(function(n){var a=uf(t,o).stop,i=cf(t,o).stop;function o(){if(r.href!==e.href){var s=ve(e);n.notify({newLocation:s,oldLocation:r}),r=s}}return function(){a(),i()}})}function uf(t,e){var r=Y(Kn("pushState"),"pushState",function(i){var o=i.onPostCall;o(e)}).stop,n=Y(Kn("replaceState"),"replaceState",function(i){var o=i.onPostCall;o(e)}).stop,a=k(t,window,"popstate",e).stop;return{stop:function(){r(),n(),a()}}}function cf(t,e){return k(t,window,"hashchange",e)}function Kn(t){return Object.prototype.hasOwnProperty.call(history,t)?history:History.prototype}var lf=Ut;function df(t,e){var r=ae({expireDelay:lf});return t.subscribe(1,function(n){var a=n.startClocks;r.add({},a.relative),e.resetCustomerData()}),t.subscribe(5,function(n){var a=n.endClocks;r.closeActive(a.relative)}),{findFeatureFlagEvaluations:function(n){return r.find(n)},addFeatureFlagEvaluation:function(n,a){var i=r.find();i&&(i[n]=a,e.updateCustomerData(i))},stop:function(){return e.stop()}}}var ff=10*K,ft,Rt,Vr;function vf(t,e,r,n,a){var i=e.enabled&&Ot(t.customerDataTelemetrySampleRate);i&&(Ii(),jn(),r.subscribe(12,function(o){Vr=!0,le(Rt.globalContextBytes,n.getOrCreateTracker(2).getBytesCount()),le(Rt.userContextBytes,n.getOrCreateTracker(1).getBytesCount()),le(Rt.featureFlagBytes,nt(["view","error"],o.type)?n.getOrCreateTracker(0).getBytesCount():0)}),a.subscribe(function(o){var s=o.bytesCount,c=o.messagesCount;Vr&&(ft.batchCount+=1,le(ft.batchBytesCount,s),le(ft.batchMessagesCount,c),xr(ft.globalContextBytes,Rt.globalContextBytes),xr(ft.userContextBytes,Rt.userContextBytes),xr(ft.featureFlagBytes,Rt.featureFlagBytes),jn())}),$t(pf,ff))}function pf(){ft.batchCount!==0&&(ne("Customer data measures",ft),Ii())}function ht(){return{min:1/0,max:0,sum:0}}function le(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function xr(t,e){t.sum+=e.sum,t.min=Math.min(t.min,e.min),t.max=Math.max(t.max,e.max)}function Ii(){ft={batchCount:0,batchBytesCount:ht(),batchMessagesCount:ht(),globalContextBytes:ht(),userContextBytes:ht(),featureFlagBytes:ht()}}function jn(){Vr=!1,Rt={globalContextBytes:ht(),userContextBytes:ht(),featureFlagBytes:ht()}}var hf=4e3,mf=500,_f=Ut;function gf(t,e){e===void 0&&(e=mf);var r=ae({expireDelay:_f,maxEntries:hf}),n;i(Ri(),rt());var a=W(t,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],function(s){i(bf(s),s.timeStamp)},{capture:!0}).stop;function i(s,c){c===void 0&&(c=rt()),s!==n&&(n=s,r.closeActive(c),r.add({state:n,startTime:c},c))}var o={findAll:function(s,c){var u=r.findAll(s,c);if(u.length!==0){for(var d=[],f=Math.max(0,u.length-e),l=u.length-1;l>=f;l--){var v=u[l],p=B(s,v.startTime);d.push({state:v.state,start:w(p)})}return d}},wasInPageStateAt:function(s,c){return o.wasInPageStateDuringPeriod(s,c,0)},wasInPageStateDuringPeriod:function(s,c,u){return r.findAll(c,u).some(function(d){return d.state===s})},addPageState:i,stop:function(){a(),r.stop()}};return o}function bf(t){return t.type==="freeze"?"frozen":t.type==="pagehide"?t.persisted?"frozen":"terminated":Ri()}function Ri(){return document.visibilityState==="hidden"?"hidden":document.hasFocus()?"active":"passive"}function yf(t){var e=er(),r=Ci(t).subscribe(function(n){e=n}).unsubscribe;return{get:function(){return{viewport:e}},stop:r}}function Sf(t,e){var r=window.cookieStore?Ef(t):Tf;return new I(function(n){return r(e,function(a){return n.notify(a)})})}function Ef(t){return function(e,r){var n=k(t,window.cookieStore,"change",function(a){var i=yt(a.changed,function(o){return o.name===e})||yt(a.deleted,function(o){return o.name===e});i&&r(i.value)});return n.stop}}var wf=K;function Tf(t,e){var r=pe(document.cookie,t),n=$t(function(){var a=pe(document.cookie,t);a!==r&&e(a)},wf);return function(){Xe(n)}}var qn="datadog-ci-visibility-test-execution-id";function Cf(t,e){var r;e===void 0&&(e=Sf(t,qn));var n=mt(qn)||((r=window.Cypress)===null||r===void 0?void 0:r.env("traceId")),a=e.subscribe(function(i){n=i});return{get:function(){if(typeof n=="string")return{test_execution_id:n}},stop:function(){return a.unsubscribe()}}}function Af(t,e){var r=ct(e,{type:R.LONG_ANIMATION_FRAME,buffered:!0}).subscribe(function(n){for(var a=0,i=n;a<i.length;a++){var o=i[a],s=Ye(o.startTime),c={date:s.timeStamp,long_task:{id:z(),entry_type:"long-animation-frame",duration:w(o.duration),blocking_duration:w(o.blockingDuration),first_ui_event_timestamp:w(o.firstUIEventTimestamp),render_start:w(o.renderStart),style_and_layout_start:w(o.styleAndLayoutStart),scripts:o.scripts.map(function(u){return{duration:w(u.duration),pause_duration:w(u.pauseDuration),forced_style_and_layout_duration:w(u.forcedStyleAndLayoutDuration),start_time:w(u.startTime),execution_start:w(u.executionStart),source_url:u.sourceURL,source_function_name:u.sourceFunctionName,source_char_position:u.sourceCharPosition,invoker:u.invoker,invoker_type:u.invokerType,window_attribution:u.windowAttribution}})},type:"long_task",_dd:{discarded:!1}};t.notify(11,{rawRumEvent:c,startTime:s.relative,domainContext:{performanceEntry:o}})}});return{stop:function(){return r.unsubscribe()}}}function If(t,e,r,n,a,i,o,s){var c=[],u=new xc;u.subscribe(12,function(P){return Zr("rum",P)});var d=Rf(t);d.setContextProvider(function(){var P,dt;return{application:{id:t.applicationId},session:{id:(P=h.findTrackedSession())===null||P===void 0?void 0:P.id},view:{id:(dt=D.findView())===null||dt===void 0?void 0:dt.id},action:{id:g.findActionId()}}});var f=function(P){u.notify(13,{error:P}),ne("Error reported to customer",{"error.message":P.message})},l=df(u,r.getOrCreateTracker(0)),v=gu(t),p=v.subscribe(function(P){u.notify(10,P)});c.push(function(){return p.unsubscribe()});var h=Dt()?Qd():$d(t,u,o);if(Dt())nf(u);else{var m=rf(t,u,d.observable,f,v,h.expireObservable,i);c.push(function(){return m.stop()}),vf(t,d,u,r,m.flushObservable)}var _=yc(),b=sf(t,location),A=gf(t),x=xf(u,t,location,h,A,b,_,n,f),D=x.viewHistory,O=x.urlContexts,g=x.actionContexts,V=x.addAction,It=x.stop;c.push(It),Ys();var N=Xd(u,t,location,_,b,l,A,e,a),nr=N.addTiming,ar=N.startView,Ce=N.updateViewName,ir=N.setViewContext,or=N.setViewContextProperty,Ae=N.stop;c.push(Ae);var sr=id(u,t,A).stop;if(c.push(sr),ye(Et.LONG_ANIMATION_FRAME)){if(t.trackLongTasks){var ur=Af(u,t).stop;c.push(ur)}}else Xl(u,t);var cr=ql(u,t,A,l).addError;Bc(u,t,h);var at=Qu(u,A,s),Z=Rc(t.applicationId,h,D,g,O);return{addAction:V,addError:cr,addTiming:nr,addFeatureFlagEvaluation:l.addFeatureFlagEvaluation,startView:ar,setViewContext:ir,setViewContextProperty:or,updateViewName:Ce,lifeCycle:u,viewHistory:D,session:h,stopSession:function(){return h.expire()},getInternalContext:Z.get,startDurationVital:at.startDurationVital,stopDurationVital:at.stopDurationVital,addDurationVital:at.addDurationVital,stop:function(){c.forEach(function(P){return P()})}}}function Rf(t){var e=js("browser-rum-sdk",t);if(Dt()){var r=ie();e.observable.subscribe(function(n){return r.send("internal_telemetry",n)})}return e}function xf(t,e,r,n,a,i,o,s,c){var u=Oc(t),d=of(t,i,r),f=Gl(t,o,e,a),l=f.addAction,v=f.actionContexts,p=yf(e),h=Cf(e);return Cc(e,t,n,u,d,v,p,h,s,c),{viewHistory:u,pageStateHistory:a,urlContexts:d,addAction:l,actionContexts:v,stop:function(){h.stop(),p.stop(),d.stop(),u.stop(),a.stop()}}}function kf(t,e){var r=e.session,n=e.viewContext,a=e.errorType,i=r?r.id:"no-session-id",o=[];a!==void 0&&o.push("error-type=".concat(a)),n&&(o.push("seed=".concat(n.id)),o.push("from=".concat(n.startClocks.timeStamp)));var s=Of(t),c="/rum/replay/sessions/".concat(i);return"".concat(s).concat(c,"?").concat(o.join("&"))}function Of(t){var e=t.site,r=t.subdomain||Nf(t);return"https://".concat(r?"".concat(r,"."):"").concat(e)}function Nf(t){switch(t.site){case _t:case jo:return"app";case ha:return"dd";default:return}}var Lf=10,H;function Mf(t){return rr(t).segments_count}function Df(t){rr(t).segments_count+=1}function Pf(t){rr(t).records_count+=1}function Uf(t,e){rr(t).segments_total_raw_size+=e}function Vf(t){return H==null?void 0:H.get(t)}function rr(t){H||(H=new Map);var e;return H.has(t)?e=H.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},H.set(t,e),H.size>Lf&&Ff()),e}function Ff(){if(H)if(H.keys){var t=H.keys().next().value;t&&H.delete(t)}else{var e=!0;H.forEach(function(r,n){e&&(H.delete(n),e=!1)})}}var un=new WeakMap;function ot(t){return un.has(t)}function Bf(t){for(var e=t;e;){if(!ot(e)&&!nn(e))return!1;e=Qe(e)}return!0}function q(t){return un.get(t)}function zf(t,e){un.set(t,e)}function cn(t,e){var r=t.tagName,n=t.value;if(tr(t,e)){var a=t.type;return r==="INPUT"&&(a==="button"||a==="submit"||a==="reset")?n:!n||r==="OPTION"?void 0:gt}if(r==="OPTION"||r==="SELECT")return t.value;if(!(r!=="INPUT"&&r!=="TEXTAREA"))return n}var Hf=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,Gf=/^[A-Za-z]+:|^\/\//,Kf=/^data:.*,/i;function jf(t,e){return t.replace(Hf,function(r,n,a,i,o,s){var c=a||o||s;if(!e||!c||Gf.test(c)||Kf.test(c))return r;var u=n||i||"";return"url(".concat(u).concat(qf(c,e)).concat(u,")")})}function qf(t,e){try{return Ze(t,e).href}catch{return t}}var Yf=/[^a-z1-6-_]/;function xi(t){var e=t.toLowerCase().trim();return Yf.test(e)?"div":e}function Yn(t,e){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='".concat(t,"' height='").concat(e,"' style='background-color:silver'%3E%3C/svg%3E")}var it={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},Pt={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},$={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},tt={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},Wn={Play:0,Pause:1};function ki(t){if(!(t===void 0||t.length===0))return t.map(function(e){var r=e.cssRules||e.rules,n=Array.from(r,function(i){return i.cssText}),a={cssRules:n,disabled:e.disabled||void 0,media:e.media.length>0?Array.from(e.media):void 0};return a})}function Oi(t,e,r,n){if(e===S.HIDDEN)return null;var a=t.getAttribute(r);if(e===S.MASK&&r!==an&&!fi.includes(r)&&r!==n.actionNameAttribute){var i=t.tagName;switch(r){case"title":case"alt":case"placeholder":return gt}if(i==="IMG"&&(r==="src"||r==="srcset")){var o=t;if(o.naturalWidth>0)return Yn(o.naturalWidth,o.naturalHeight);var s=t.getBoundingClientRect(),c=s.width,u=s.height;return c>0||u>0?Yn(c,u):Rn}if(i==="SOURCE"&&(r==="src"||r==="srcset"))return Rn;if(i==="A"&&r==="href"||a&&ge(r,"data-")||i==="IFRAME"&&r==="srcdoc")return gt}return!a||typeof a!="string"?a:Qa(a)?ti(a):a}function Wf(t,e,r){var n;if(e===S.HIDDEN)return{};for(var a={},i=xi(t.tagName),o=t.ownerDocument,s=0;s<t.attributes.length;s+=1){var c=t.attributes.item(s),u=c.name,d=Oi(t,e,u,r.configuration);d!==null&&(a[u]=d)}if(t.value&&(i==="textarea"||i==="select"||i==="option"||i==="input")){var f=cn(t,e);f!==void 0&&(a.value=f)}if(i==="option"&&e===S.ALLOW){var l=t;l.selected&&(a.selected=l.selected)}if(i==="link"){var v=Array.from(o.styleSheets).find(function(x){return x.href===t.href}),p=Fr(v);p&&v&&(a._cssText=p)}if(i==="style"&&t.sheet){var p=Fr(t.sheet);p&&(a._cssText=p)}var h=t;if(i==="input"&&(h.type==="radio"||h.type==="checkbox")&&(e===S.ALLOW?a.checked=!!h.checked:tr(h,e)&&delete a.checked),i==="audio"||i==="video"){var m=t;a.rr_mediaState=m.paused?"paused":"played"}var _,b,A=r.serializationContext;switch(A.status){case 0:_=Math.round(t.scrollTop),b=Math.round(t.scrollLeft),(_||b)&&A.elementsScrollPositions.set(t,{scrollTop:_,scrollLeft:b});break;case 1:A.elementsScrollPositions.has(t)&&(n=A.elementsScrollPositions.get(t),_=n.scrollTop,b=n.scrollLeft);break}return b&&(a.rr_scrollLeft=b),_&&(a.rr_scrollTop=_),a}function Fr(t){if(!t)return null;var e;try{e=t.rules||t.cssRules}catch{}if(!e)return null;var r=Array.from(e,fo()?Xf:Ni).join("");return jf(r,t.href)}function Xf(t){if(Jf(t)&&t.selectorText.includes(":")){var e=/(\[[\w-]+[^\\])(:[^\]]+\])/g;return t.cssText.replace(e,"$1\\$2")}return Ni(t)}function Ni(t){return Zf(t)&&Fr(t.styleSheet)||t.cssText}function Zf(t){return"styleSheet"in t}function Jf(t){return"selectorText"in t}function ln(t,e){var r=tv(t,e);if(!r)return null;var n=q(t)||Qf(),a=r;return a.id=n,zf(t,n),e.serializedNodeIds&&e.serializedNodeIds.add(n),a}var $f=1;function Qf(){return $f++}function dn(t,e){var r=[];return oi(t,function(n){var a=ln(n,e);a&&r.push(a)}),r}function tv(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return ev(t,e);case t.DOCUMENT_FRAGMENT_NODE:return rv(t,e);case t.DOCUMENT_TYPE_NODE:return nv(t);case t.ELEMENT_NODE:return av(t,e);case t.TEXT_NODE:return ov(t,e);case t.CDATA_SECTION_NODE:return sv()}}function ev(t,e){return{type:Pt.Document,childNodes:dn(t,e),adoptedStyleSheets:ki(t.adoptedStyleSheets)}}function rv(t,e){var r=nn(t);return r&&e.serializationContext.shadowRootsController.addShadowRoot(t),{type:Pt.DocumentFragment,childNodes:dn(t,e),isShadowRoot:r,adoptedStyleSheets:r?ki(t.adoptedStyleSheets):void 0}}function nv(t){return{type:Pt.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId}}function av(t,e){var r,n=xi(t.tagName),a=iv(t)||void 0,i=si(ui(t),e.parentNodePrivacyLevel);if(i===S.HIDDEN){var o=t.getBoundingClientRect(),s=o.width,c=o.height;return{type:Pt.Element,tagName:n,attributes:(r={rr_width:"".concat(s,"px"),rr_height:"".concat(c,"px")},r[an]=nl,r),childNodes:[],isSVG:a}}if(i!==S.IGNORE){var u=Wf(t,i,e),d=[];if(rl(t)&&n!=="style"){var f=void 0;e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===(n==="head")?f=e:f=E({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:n==="head"}),d=dn(t,f)}return{type:Pt.Element,tagName:n,attributes:u,childNodes:d,isSVG:a}}}function iv(t){return t.tagName==="svg"||t instanceof SVGElement}function ov(t,e){var r=ci(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(r!==void 0)return{type:Pt.Text,textContent:r}}function sv(){return{type:Pt.CDATA,textContent:""}}function uv(t,e,r){return ln(t,{serializationContext:r,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function Li(t){return!!t.changedTouches}function Te(t){return t.composed===!0&&$e(t.target)?t.composedPath()[0]:t.target}var Xn=25;function cv(t){return Math.abs(t.pageTop-t.offsetTop-window.scrollY)>Xn||Math.abs(t.pageLeft-t.offsetLeft-window.scrollX)>Xn}var lv=function(t,e){var r=window.visualViewport,n={layoutViewportX:t,layoutViewportY:e,visualViewportX:t,visualViewportY:e};if(r)cv(r)?(n.layoutViewportX=Math.round(t+r.offsetLeft),n.layoutViewportY=Math.round(e+r.offsetTop)):(n.visualViewportX=Math.round(t-r.offsetLeft),n.visualViewportY=Math.round(e-r.offsetTop));else return n;return n},Mi=function(t){return{scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width}};function et(t,e){return{data:E({source:t},e),type:it.IncrementalSnapshot,timestamp:U()}}var dv=50;function fv(t,e){var r=pt(function(o){var s=Te(o);if(ot(s)){var c=Di(o);if(!c)return;var u={id:q(s),timeOffset:0,x:c.x,y:c.y};e(et(Li(o)?$.TouchMove:$.MouseMove,{positions:[u]}))}},dv,{trailing:!1}),n=r.throttled,a=r.cancel,i=W(t,document,["mousemove","touchmove"],n,{capture:!0,passive:!0}).stop;return{stop:function(){i(),a()}}}function Di(t){var e=Li(t)?t.changedTouches[0]:t,r=e.clientX,n=e.clientY;if(window.visualViewport){var a=lv(r,n),i=a.visualViewportX,o=a.visualViewportY;r=i,n=o}if(!Number.isFinite(r)||!Number.isFinite(n)){t.isTrusted&&ne("mouse/touch event without x/y");return}return{x:r,y:n}}var Q,Zn=(Q={},Q.pointerup=tt.MouseUp,Q.mousedown=tt.MouseDown,Q.click=tt.Click,Q.contextmenu=tt.ContextMenu,Q.dblclick=tt.DblClick,Q.focus=tt.Focus,Q.blur=tt.Blur,Q.touchstart=tt.TouchStart,Q.touchend=tt.TouchEnd,Q);function vv(t,e,r){var n=function(a){var i=Te(a);if(!(lt(i,t.defaultPrivacyLevel)===S.HIDDEN||!ot(i))){var o=q(i),s=Zn[a.type],c;if(s!==tt.Blur&&s!==tt.Focus){var u=Di(a);if(!u)return;c={id:o,type:s,x:u.x,y:u.y}}else c={id:o,type:s};var d=E({id:r.getIdForEvent(a)},et($.MouseInteraction,c));e(d)}};return W(t,document,Object.keys(Zn),n,{capture:!0,passive:!0})}var pv=100;function Pi(t,e,r,n){n===void 0&&(n=document);var a=pt(function(c){var u=Te(c);if(!(!u||lt(u,t.defaultPrivacyLevel)===S.HIDDEN||!ot(u))){var d=q(u),f=u===document?{scrollTop:sn(),scrollLeft:Ti()}:{scrollTop:Math.round(u.scrollTop),scrollLeft:Math.round(u.scrollLeft)};r.set(u,f),e(et($.Scroll,{id:d,x:f.scrollLeft,y:f.scrollTop}))}},pv),i=a.throttled,o=a.cancel,s=k(t,n,"scroll",i,{capture:!0,passive:!0}).stop;return{stop:function(){s(),o()}}}var hv=200;function mv(t,e){var r=Ci(t).subscribe(function(n){e(et($.ViewportResize,n))});return{stop:function(){r.unsubscribe()}}}function _v(t,e){var r=window.visualViewport;if(!r)return{stop:C};var n=pt(function(){e({data:Mi(r),type:it.VisualViewport,timestamp:U()})},hv,{trailing:!1}),a=n.throttled,i=n.cancel,o=W(t,r,["resize","scroll"],a,{capture:!0,passive:!0}).stop;return{stop:function(){o(),i()}}}function gv(t,e){return W(t,document,["play","pause"],function(r){var n=Te(r);!n||lt(n,t.defaultPrivacyLevel)===S.HIDDEN||!ot(n)||e(et($.MediaInteraction,{id:q(n),type:r.type==="play"?Wn.Play:Wn.Pause}))},{capture:!0,passive:!0})}function bv(t){function e(a,i){a&&ot(a.ownerNode)&&i(q(a.ownerNode))}var r=[Y(CSSStyleSheet.prototype,"insertRule",function(a){var i=a.target,o=a.parameters,s=o[0],c=o[1];e(i,function(u){return t(et($.StyleSheetRule,{id:u,adds:[{rule:s,index:c}]}))})}),Y(CSSStyleSheet.prototype,"deleteRule",function(a){var i=a.target,o=a.parameters[0];e(i,function(s){return t(et($.StyleSheetRule,{id:s,removes:[{index:o}]}))})})];typeof CSSGroupingRule<"u"?n(CSSGroupingRule):(n(CSSMediaRule),n(CSSSupportsRule));function n(a){r.push(Y(a.prototype,"insertRule",function(i){var o=i.target,s=i.parameters,c=s[0],u=s[1];e(o.parentStyleSheet,function(d){var f=Jn(o);f&&(f.push(u||0),t(et($.StyleSheetRule,{id:d,adds:[{rule:c,index:f}]})))})}),Y(a.prototype,"deleteRule",function(i){var o=i.target,s=i.parameters[0];e(o.parentStyleSheet,function(c){var u=Jn(o);u&&(u.push(s),t(et($.StyleSheetRule,{id:c,removes:[{index:u}]})))})}))}return{stop:function(){r.forEach(function(a){return a.stop()})}}}function Jn(t){for(var e=[],r=t;r.parentRule;){var n=Array.from(r.parentRule.cssRules),a=n.indexOf(r);e.unshift(a),r=r.parentRule}if(r.parentStyleSheet){var i=Array.from(r.parentStyleSheet.cssRules),o=i.indexOf(r);return e.unshift(o),e}}function yv(t,e){return W(t,window,["focus","blur"],function(){e({data:{has_focus:document.hasFocus()},type:it.Focus,timestamp:U()})})}function Sv(t,e,r){var n=t.subscribe(11,function(a){var i,o;a.rawRumEvent.type==="action"&&a.rawRumEvent.action.type==="click"&&(!((o=(i=a.rawRumEvent.action.frustration)===null||i===void 0?void 0:i.type)===null||o===void 0)&&o.length)&&"events"in a.domainContext&&a.domainContext.events&&a.domainContext.events.length&&e({timestamp:a.rawRumEvent.date,type:it.FrustrationRecord,data:{frustrationTypes:a.rawRumEvent.action.frustration.type,recordIds:a.domainContext.events.map(function(s){return r.getIdForEvent(s)})}})});return{stop:function(){n.unsubscribe()}}}function Ev(t,e){var r=t.subscribe(4,function(){e({timestamp:U(),type:it.ViewEnd})});return{stop:function(){r.unsubscribe()}}}function Ui(t,e,r){r===void 0&&(r=document);var n=t.defaultPrivacyLevel,a=new WeakMap,i=r!==document,o=W(t,r,i?["change"]:["input","change"],function(f){var l=Te(f);(l instanceof HTMLInputElement||l instanceof HTMLTextAreaElement||l instanceof HTMLSelectElement)&&u(l)},{capture:!0,passive:!0}).stop,s;if(i)s=C;else{var c=[ue(HTMLInputElement.prototype,"value",u),ue(HTMLInputElement.prototype,"checked",u),ue(HTMLSelectElement.prototype,"value",u),ue(HTMLTextAreaElement.prototype,"value",u),ue(HTMLSelectElement.prototype,"selectedIndex",u)];s=function(){c.forEach(function(f){return f.stop()})}}return{stop:function(){s(),o()}};function u(f){var l=lt(f,n);if(l!==S.HIDDEN){var v=f.type,p;if(v==="radio"||v==="checkbox"){if(tr(f,l))return;p={isChecked:f.checked}}else{var h=cn(f,l);if(h===void 0)return;p={text:h}}d(f,p);var m=f.name;v==="radio"&&m&&f.checked&&ro(document.querySelectorAll('input[type="radio"][name="'.concat(wt(m),'"]')),function(_){_!==f&&d(_,{isChecked:!1})})}}function d(f,l){if(ot(f)){var v=a.get(f);(!v||v.text!==l.text||v.isChecked!==l.isChecked)&&(a.set(f,l),e(et($.Input,E({id:q(f)},l))))}}}var wv=100,Tv=16;function Cv(t){var e=C,r=[];function n(){e(),t(r),r=[]}var a=pt(n,Tv,{leading:!1}),i=a.throttled,o=a.cancel;return{addMutations:function(s){r.length===0&&(e=Av(i,{timeout:wv})),r.push.apply(r,s)},flush:n,stop:function(){e(),o()}}}function Av(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var r=window.requestIdleCallback(y(t),e);return function(){return window.cancelIdleCallback(r)}}var n=window.requestAnimationFrame(y(t));return function(){return window.cancelAnimationFrame(n)}}function Vi(t,e,r,n){var a=Ya();if(!a)return{stop:C,flush:C};var i=Cv(function(s){Iv(s.concat(o.takeRecords()),t,e,r)}),o=new a(y(i.addMutations));return o.observe(n,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){o.disconnect(),i.stop()},flush:function(){i.flush()}}}function Iv(t,e,r,n){var a=new Map;t.filter(function(l){return l.type==="childList"}).forEach(function(l){l.removedNodes.forEach(function(v){Fi(v,n.removeShadowRoot)})});var i=t.filter(function(l){return l.target.isConnected&&Bf(l.target)&&lt(l.target,r.defaultPrivacyLevel,a)!==S.HIDDEN}),o=Rv(i.filter(function(l){return l.type==="childList"}),r,n,a),s=o.adds,c=o.removes,u=o.hasBeenSerialized,d=xv(i.filter(function(l){return l.type==="characterData"&&!u(l.target)}),r,a),f=kv(i.filter(function(l){return l.type==="attributes"&&!u(l.target)}),r,a);!d.length&&!f.length&&!c.length&&!s.length||e(et($.Mutation,{adds:s,removes:c,texts:d,attributes:f}))}function Rv(t,e,r,n){for(var a=new Set,i=new Map,o=function(O){O.addedNodes.forEach(function(g){a.add(g)}),O.removedNodes.forEach(function(g){a.has(g)||i.set(g,O.target),a.delete(g)})},s=0,c=t;s<c.length;s++){var u=c[s];o(u)}var d=Array.from(a);Ov(d);for(var f=new Set,l=[],v=0,p=d;v<p.length;v++){var h=p[v];if(!x(h)){var m=lt(h.parentNode,e.defaultPrivacyLevel,n);if(!(m===S.HIDDEN||m===S.IGNORE)){var _=ln(h,{serializedNodeIds:f,parentNodePrivacyLevel:m,serializationContext:{status:2,shadowRootsController:r},configuration:e});if(_){var b=Qe(h);l.push({nextId:D(h),parentId:q(b),node:_})}}}}var A=[];return i.forEach(function(O,g){ot(g)&&A.push({parentId:q(O),id:q(g)})}),{adds:l,removes:A,hasBeenSerialized:x};function x(O){return ot(O)&&f.has(q(O))}function D(O){for(var g=O.nextSibling;g;){if(ot(g))return q(g);g=g.nextSibling}return null}}function xv(t,e,r){for(var n,a=[],i=new Set,o=t.filter(function(l){return i.has(l.target)?!1:(i.add(l.target),!0)}),s=0,c=o;s<c.length;s++){var u=c[s],d=u.target.textContent;if(d!==u.oldValue){var f=lt(Qe(u.target),e.defaultPrivacyLevel,r);f===S.HIDDEN||f===S.IGNORE||a.push({id:q(u.target),value:(n=ci(u.target,!1,f))!==null&&n!==void 0?n:null})}}return a}function kv(t,e,r){for(var n=[],a=new Map,i=t.filter(function(m){var _=a.get(m.target);return _&&_.has(m.attributeName)?!1:(_?_.add(m.attributeName):a.set(m.target,new Set([m.attributeName])),!0)}),o=new Map,s=0,c=i;s<c.length;s++){var u=c[s],d=u.target.getAttribute(u.attributeName);if(d!==u.oldValue){var f=lt(u.target,e.defaultPrivacyLevel,r),l=Oi(u.target,f,u.attributeName,e),v=void 0;if(u.attributeName==="value"){var p=cn(u.target,f);if(p===void 0)continue;v=p}else typeof l=="string"?v=l:v=null;var h=o.get(u.target);h||(h={id:q(u.target),attributes:{}},n.push(h),o.set(u.target,h)),h.attributes[u.attributeName]=v}}return n}function Ov(t){t.sort(function(e,r){var n=e.compareDocumentPosition(r);return n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_CONTAINS||n&Node.DOCUMENT_POSITION_FOLLOWING?1:n&Node.DOCUMENT_POSITION_PRECEDING?-1:0})}function Fi(t,e){$e(t)&&e(t.shadowRoot),oi(t,function(r){return Fi(r,e)})}function Nv(){var t=new WeakMap;return{set:function(e,r){e===document&&!document.scrollingElement||t.set(e===document?document.scrollingElement:e,r)},get:function(e){return t.get(e)},has:function(e){return t.has(e)}}}var Lv=function(t,e,r){var n=new Map,a={addShadowRoot:function(i){if(!n.has(i)){var o=Vi(e,t,a,i),s=Ui(t,e,i),c=Pi(t,e,r,i);n.set(i,{flush:function(){return o.flush()},stop:function(){o.stop(),s.stop(),c.stop()}})}},removeShadowRoot:function(i){var o=n.get(i);o&&(o.stop(),n.delete(i))},stop:function(){n.forEach(function(i){var o=i.stop;return o()})},flush:function(){n.forEach(function(i){var o=i.flush;return o()})}};return a};function Mv(t,e,r,n,a,i){var o=function(c,u){c===void 0&&(c=U()),u===void 0&&(u={status:0,elementsScrollPositions:t,shadowRootsController:e});var d=er(),f=d.width,l=d.height,v=[{data:{height:l,href:window.location.href,width:f},type:it.Meta,timestamp:c},{data:{has_focus:document.hasFocus()},type:it.Focus,timestamp:c},{data:{node:uv(document,n,u),initialOffset:{left:Ti(),top:sn()}},type:it.FullSnapshot,timestamp:c}];return window.visualViewport&&v.push({data:Mi(window.visualViewport),type:it.VisualViewport,timestamp:c}),v};i(o());var s=r.subscribe(2,function(c){a(),i(o(c.startClocks.timeStamp,{shadowRootsController:e,status:1,elementsScrollPositions:t}))}).unsubscribe;return{stop:s}}function Dv(){var t=new WeakMap,e=1;return{getIdForEvent:function(r){return t.has(r)||t.set(r,e++),t.get(r)}}}function Pv(t){var e=t.emit,r=t.configuration,n=t.lifeCycle;if(!e)throw new Error("emit function is required");var a=function(l){e(l),Zr("record",{record:l});var v=t.viewHistory.findView();Pf(v.id)},i=Nv(),o=Lv(r,a,i),s=Mv(i,o,n,r,c,function(l){return l.forEach(function(v){return a(v)})}).stop;function c(){o.flush(),d.flush()}var u=Dv(),d=Vi(a,r,o,document),f=[d,fv(r,a),vv(r,a,u),Pi(r,a,i,document),mv(r,a),Ui(r,a),gv(r,a),bv(a),yv(r,a),_v(r,a),Sv(n,a,u),Ev(n,function(l){c(),a(l)})];return{stop:function(){o.stop(),f.forEach(function(l){return l.stop()}),s()},flushMutations:c,shadowRootsController:o}}function Uv(t,e,r){var n=new FormData;n.append("segment",new Blob([t],{type:"application/octet-stream"}),"".concat(e.session.id,"-").concat(e.start));var a=E({raw_segment_size:r,compressed_segment_size:t.byteLength},e),i=JSON.stringify(a);return n.append("event",new Blob([i],{type:"application/json"})),{data:n,bytesCount:t.byteLength}}function Vv(t){var e=t.context,r=t.creationReason,n=t.encoder,a=0,i=e.view.id,o=E({start:1/0,end:-1/0,creation_reason:r,records_count:0,has_full_snapshot:!1,index_in_view:Mf(i),source:"browser"},e);Df(i);function s(u,d){o.start=Math.min(o.start,u.timestamp),o.end=Math.max(o.end,u.timestamp),o.records_count+=1,o.has_full_snapshot||(o.has_full_snapshot=u.type===it.FullSnapshot);var f=n.isEmpty?'{"records":[':",";n.write(f+JSON.stringify(u),function(l){a+=l,d(a)})}function c(u){if(n.isEmpty)throw new Error("Empty segment flushed");n.write("],".concat(JSON.stringify(o).slice(1),`
`)),n.finish(function(d){Uf(o.view.id,d.rawBytesCount),u(o,d)})}return{addRecord:s,flush:c}}var Fv=30*K,Bi=6e4;function Bv(t,e,r,n,a,i){return zv(t,function(){return Hv(e.applicationId,r,n)},a,i)}function zv(t,e,r,n){var a={status:0,nextSegmentCreationReason:"init"},i=t.subscribe(2,function(){s("view_change")}).unsubscribe,o=t.subscribe(10,function(c){s(c.reason)}).unsubscribe;function s(c){a.status===1&&(a.segment.flush(function(u,d){var f=Uv(d.output,u,d.rawBytesCount);Fa(c)?r.sendOnExit(f):r.send(f)}),J(a.expirationTimeoutId)),c!=="stop"?a={status:0,nextSegmentCreationReason:c}:a={status:2}}return{addRecord:function(c){if(a.status!==2){if(a.status===0){var u=e();if(!u)return;a={status:1,segment:Vv({encoder:n,context:u,creationReason:a.nextSegmentCreationReason}),expirationTimeoutId:F(function(){s("segment_duration_limit")},Fv)}}a.segment.addRecord(c,function(d){d>Bi&&s("segment_bytes_limit")})}},stop:function(){s("stop"),i(),o()}}}function Hv(t,e,r){var n=e.findTrackedSession(),a=r.findView();if(!(!n||!a))return{application:{id:t},session:{id:n.id},view:{id:a.id}}}function Gv(t){var e=ie();return{addRecord:function(r){var n=t.findView();e.send("record",r,n.id)}}}function Kv(t,e,r,n,a,i){var o=[],s=function(l){t.notify(13,{error:l}),ne("Error reported to customer",{"error.message":l.message})},c=i||Ua(e,e.sessionReplayEndpointBuilder,Bi,s),u;if(Dt())u=Gv(n).addRecord;else{var d=Bv(t,e,r,n,c,a);u=d.addRecord,o.push(d.stop)}var f=Pv({emit:u,configuration:e,lifeCycle:t,viewHistory:n}).stop;return o.push(f),{stop:function(){o.forEach(function(l){return l()})}}}function zi(){return typeof Array.from=="function"&&typeof CSSSupportsRule=="function"&&typeof URL.createObjectURL=="function"&&"forEach"in NodeList.prototype}function jv(t,e,r,n){var a=e.findTrackedSession(),i=qv(a,n),o=r.findView();return kf(t,{viewContext:o,errorType:i,session:a})}function qv(t,e){if(!zi())return"browser-not-supported";if(!t)return"rum-not-tracked";if(t.sessionReplay===0)return"incorrect-session-plan";if(!e)return"replay-not-started"}function Hi(t,e,r){var n=0,a=[],i,o=0,s=[],c=k(t,e,"message",function(f){var l=f.data;if(!(l.type!=="wrote"||l.streamId!==r)){n+=l.additionalBytesCount,a.push(l.result),i=l.trailer;var v=s.shift();v&&v.id===l.id?v.writeCallback?v.writeCallback(l.result.byteLength):v.finishCallback&&v.finishCallback():(c(),ne("Worker responses received out of order."))}}).stop;function u(){var f=a.length===0?new Uint8Array(0):to(a.concat(i)),l={rawBytesCount:n,output:f,outputBytesCount:f.byteLength,encoding:"deflate"};return n=0,a=[],l}function d(){o>0&&(e.postMessage({action:"reset",streamId:r}),o=0)}return{isAsync:!0,get isEmpty(){return o===0},write:function(f,l){e.postMessage({action:"write",id:o,data:f,streamId:r}),s.push({id:o,writeCallback:l,data:f}),o+=1},finish:function(f){d(),s.length?(s.forEach(function(l){delete l.writeCallback}),s[s.length-1].finishCallback=function(){return f(u())}):f(u())},finishSync:function(){d();var f=s.map(function(l){return delete l.writeCallback,delete l.finishCallback,l.data}).join("");return E(u(),{pendingData:f})},estimateEncodedBytesCount:function(f){return f.length/8},stop:function(){c()}}}var Yv=30*K;function Gi(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r<i.length;r++){var s=i[r];a.set(s,n),n+=s.length}return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=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]),_=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]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(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&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,k(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)},x=function(t,e,a){z(t,a[2*e],a[2*e+1])},A=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},E=function(t,e,a){var n,r,s=new Array(16),_=0;for(n=1;n<=i;n++)s[n]=_=_+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=A(s[h]++,h))}},Z=function(t){var e;for(e=0;e<n;e++)t.dyn_ltree[2*e]=0;for(e=0;e<r;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},U=function(t){t.bi_valid>8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},S=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]},R=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&S(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!S(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},L=function(t,e,n){var r,i,h,l,o=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===r?x(t,i,e):(h=f[i],x(t,h+a+1,e),0!==(l=s[h])&&(i-=c[h],z(t,i,l)),r--,h=y(r),x(t,h,n),0!==(l=_[h])&&(r-=v[h],z(t,r,l)))}while(o<t.last_lit);x(t,256,e)},F=function(t,e){var a,n,r,s=e.dyn_tree,_=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==s[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;)s[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=_[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)R(t,s,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],R(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,R(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,_,h,l=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=l[2*l[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),l[2*n+1]=s,n>o||(t.bl_count[s]++,_=0,n>=c&&(_=f[n-c]),h=l[2*n],t.opt_len+=h*(s+_),u&&(t.static_len+=h*(d[2*n+1]+_)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==s&&(t.opt_len+=(s-l[2*r+1])*l[2*r],l[2*r+1]=s),n--)}}(t,e),E(s,o,t.bl_count)},T=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++_<h&&r===s||(_<l?t.bl_tree[2*r]+=_:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):_<=10?t.bl_tree[34]++:t.bl_tree[36]++,_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4))},I=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++_<h&&r===s)){if(_<l)do{x(t,r,t.bl_tree)}while(0!=--_);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),_--),x(t,16,t.bl_tree),z(t,_-3,2)):_<=10?(x(t,17,t.bl_tree),z(t,_-3,3)):(x(t,18,t.bl_tree),z(t,_-11,7));_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4)}},N=!1,O=function(t,e,a,n){z(t,0+(n?1:0),3),function(t,e,a,n){U(t),n&&(k(t,a),k(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},D=function(t,e,n,r){var i,s,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&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<a;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),F(t,t.l_desc),F(t,t.d_desc),_=function(t){var e;for(T(t,t.dyn_ltree,t.l_desc.max_code),T(t,t.dyn_dtree,t.d_desc.max_code),F(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?O(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),L(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r<n;r++)z(t,t.bl_tree[2*l[r]+1],3);I(t,t.dyn_ltree,e-1),I(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),L(t,t.dyn_ltree,t.dyn_dtree)),Z(t),r&&U(t)},B={_tr_init:function(t){N||(!function(){var t,e,a,l,m,y=new Array(16);for(a=0,l=0;l<28;l++)for(c[l]=a,t=0;t<1<<s[l];t++)f[a++]=l;for(f[a-1]=l,m=0,l=0;l<16;l++)for(v[l]=m,t=0;t<1<<_[l];t++)u[m++]=l;for(m>>=7;l<r;l++)for(v[l]=m<<7,t=0;t<1<<_[l]-7;t++)u[256+m++]=l;for(e=0;e<=i;e++)y[e]=0;for(t=0;t<=143;)o[2*t+1]=8,t++,y[8]++;for(;t<=255;)o[2*t+1]=9,t++,y[9]++;for(;t<=279;)o[2*t+1]=7,t++,y[7]++;for(;t<=287;)o[2*t+1]=8,t++,y[8]++;for(E(o,287,y),t=0;t<r;t++)d[2*t+1]=5,d[2*t]=A(t,5);p=new b(o,s,257,n,i),g=new b(d,_,0,r,i),w=new b(new Array(0),h,0,19,7)}(),N=!0),t.l_desc=new m(t.dyn_ltree,p),t.d_desc=new m(t.dyn_dtree,g),t.bl_desc=new m(t.bl_tree,w),t.bi_buf=0,t.bi_valid=0,Z(t)},_tr_stored_block:O,_tr_flush_block:D,_tr_tally:function(t,e,n){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&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(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)}},C=function(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,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|0},H=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}()),M=function(t,e,a,n){var r=H,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},Y={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"},K={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},P=B._tr_init,j=B._tr_stored_block,G=B._tr_flush_block,X=B._tr_tally,W=B._tr_align,q=K.Z_NO_FLUSH,J=K.Z_PARTIAL_FLUSH,Q=K.Z_FULL_FLUSH,V=K.Z_FINISH,$=K.Z_BLOCK,tt=K.Z_OK,et=K.Z_STREAM_END,at=K.Z_STREAM_ERROR,nt=K.Z_DATA_ERROR,rt=K.Z_BUF_ERROR,it=K.Z_DEFAULT_COMPRESSION,st=K.Z_FILTERED,_t=K.Z_HUFFMAN_ONLY,ht=K.Z_RLE,lt=K.Z_FIXED,ot=K.Z_DEFAULT_STRATEGY,dt=K.Z_UNKNOWN,ut=K.Z_DEFLATED,ft=258,ct=262,pt=103,gt=113,wt=666,vt=function(t,e){return t.msg=Y[e],e},bt=function(t){return(t<<1)-(t>4?9:0)},mt=function(t){for(var e=t.length;--e>=0;)t[e]=0},yt=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},kt=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))},zt=function(t,e){G(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,kt(t.strm)},xt=function(t,e){t.pending_buf[t.pending++]=e},At=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-ct?t.strstart-(t.w_size-ct):0,l=t.window,o=t.w_mask,d=t.prev,u=t.strstart+ft,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(l[(a=e)+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do{}while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&i<u);if(n=ft-(u-i),i=u-ft,n>s){if(t.match_start=e,s=n,n>=_)break;f=l[i+s-1],c=l[i+s]}}}while((e=d[e&o])>h&&0!=--r);return s<=t.lookahead?s:t.lookahead},Zt=function(t){var e,a,n,r,i,s,_,h,l,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-ct)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,_=t.window,h=t.strstart+t.lookahead,l=r,o=void 0,(o=s.avail_in)>l&&(o=l),a=0===o?0:(s.avail_in-=o,_.set(s.input.subarray(s.next_in,s.next_in+o),h),1===s.state.wrap?s.adler=C(s.adler,_,o,h):2===s.state.wrap&&(s.adler=M(s.adler,_,o,h)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=yt(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=yt(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<ct&&0!==t.strm.avail_in)},Ut=function(t,e){for(var a,n;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(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-ct&&(t.match_length=Et(t,a)),t.match_length>=3)if(n=X(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=yt(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=yt(t,t.ins_h,t.window[t.strstart+1]);else n=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2},St=function(t,e){for(var a,n,r;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(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-ct&&(t.match_length=Et(t,a),t.match_length<=5&&(t.strategy===st||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=X(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=yt(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&&(zt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=X(t,0,t.window[t.strstart-1]))&&zt(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=X(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2};function Rt(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 Lt=[new Rt(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(Zt(t),0===t.lookahead&&e===q)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,zt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-ct&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(zt(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Ut),new Rt(4,5,16,8,Ut),new Rt(4,6,32,32,Ut),new Rt(4,4,16,16,St),new Rt(8,16,32,32,St),new Rt(8,16,128,128,St),new Rt(8,32,128,256,St),new Rt(32,128,258,1024,St),new Rt(32,258,258,4096,St)];function Ft(){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=ut,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),mt(this.dyn_ltree),mt(this.dyn_dtree),mt(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),mt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),mt(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}var Tt=function(t){if(!t||!t.state)return vt(t,at);t.total_in=t.total_out=0,t.data_type=dt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:gt,t.adler=2===e.wrap?0:1,e.last_flush=q,P(e),tt},It=function(t){var e,a=Tt(t);return a===tt&&((e=t.state).window_size=2*e.w_size,mt(e.head),e.max_lazy_match=Lt[e.level].max_lazy,e.good_match=Lt[e.level].good_length,e.nice_match=Lt[e.level].nice_length,e.max_chain_length=Lt[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),a},Nt=function(t,e,a,n,r,i){if(!t)return at;var s=1;if(e===it&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==ut||n<8||n>15||e<0||e>9||i<0||i>lt)return vt(t,at);8===n&&(n=9);var _=new Ft;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=n,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<<r+6,_.pending_buf_size=4*_.lit_bufsize,_.pending_buf=new Uint8Array(_.pending_buf_size),_.d_buf=1*_.lit_bufsize,_.l_buf=3*_.lit_bufsize,_.level=e,_.strategy=i,_.method=a,It(t)},Ot={deflateInit:function(t,e){return Nt(t,e,ut,15,8,ot)},deflateInit2:Nt,deflateReset:It,deflateResetKeep:Tt,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?at:(t.state.gzhead=e,tt):at},deflate:function(t,e){var a,n;if(!t||!t.state||e>$||e<0)return t?vt(t,at):at;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===wt&&e!==V)return vt(t,0===t.avail_out?rt:at);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,xt(r,31),xt(r,139),xt(r,8),r.gzhead?(xt(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)),xt(r,255&r.gzhead.time),xt(r,r.gzhead.time>>8&255),xt(r,r.gzhead.time>>16&255),xt(r,r.gzhead.time>>24&255),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(xt(r,255&r.gzhead.extra.length),xt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=M(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,3),r.status=gt);else{var s=ut+(r.w_bits-8<<4)<<8;s|=(r.strategy>=_t||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=gt,At(r,s),0!==r.strstart&&(At(r,t.adler>>>16),At(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=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending!==r.pending_buf_size));)xt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=M(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=M(t.adler,r.pending_buf,r.pending-a,a)),kt(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,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(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=M(t.adler,r.pending_buf,r.pending-a,a)),kt(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,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=pt)}else r.status=pt;if(r.status===pt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&kt(t),r.pending+2<=r.pending_buf_size&&(xt(r,255&t.adler),xt(r,t.adler>>8&255),t.adler=0,r.status=gt)):r.status=gt),0!==r.pending){if(kt(t),0===t.avail_out)return r.last_flush=-1,tt}else if(0===t.avail_in&&bt(e)<=bt(i)&&e!==V)return vt(t,rt);if(r.status===wt&&0!==t.avail_in)return vt(t,rt);if(0!==t.avail_in||0!==r.lookahead||e!==q&&r.status!==wt){var _=r.strategy===_t?function(t,e){for(var a;;){if(0===t.lookahead&&(Zt(t),0===t.lookahead)){if(e===q)return 1;break}if(t.match_length=0,a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===ht?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=ft){if(Zt(t),t.lookahead<=ft&&e===q)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+ft;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=ft-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=X(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Lt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=wt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),tt;if(2===_&&(e===J?W(r):e!==$&&(j(r,0,0,!1),e===Q&&(mt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),kt(t),0===t.avail_out))return r.last_flush=-1,tt}return e!==V?tt:r.wrap<=0?et:(2===r.wrap?(xt(r,255&t.adler),xt(r,t.adler>>8&255),xt(r,t.adler>>16&255),xt(r,t.adler>>24&255),xt(r,255&t.total_in),xt(r,t.total_in>>8&255),xt(r,t.total_in>>16&255),xt(r,t.total_in>>24&255)):(At(r,t.adler>>>16),At(r,65535&t.adler)),kt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?tt:et)},deflateEnd:function(t){if(!t||!t.state)return at;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==pt&&e!==gt&&e!==wt?vt(t,at):(t.state=null,e===gt?vt(t,nt):tt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return at;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return at;if(1===r&&(t.adler=C(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(mt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Zt(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=yt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Zt(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=_,t.input=h,t.avail_in=s,n.wrap=r,tt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Dt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Dt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Dt[254]=Dt[254]=1;var Ct=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},Ht=Object.prototype.toString,Mt=K.Z_NO_FLUSH,Yt=K.Z_SYNC_FLUSH,Kt=K.Z_FULL_FLUSH,Pt=K.Z_FINISH,jt=K.Z_OK,Gt=K.Z_STREAM_END,Xt=K.Z_DEFAULT_COMPRESSION,Wt=K.Z_DEFAULT_STRATEGY,qt=K.Z_DEFLATED;function Jt(){this.options={level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt};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 Ct,this.strm.avail_out=0;var e=Ot.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==jt)throw new Error(Y[e]);if(t.header&&Ot.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Ht.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ot.deflateSetDictionary(this.strm,a))!==jt)throw new Error(Y[e]);this._dict_set=!0}}function Qt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function Vt(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Jt.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?Pt:Mt,"[object ArrayBuffer]"===Ht.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),(n===Yt||n===Kt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ot.deflate(r,n))===Gt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ot.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===jt;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},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===jt&&(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,_=t.length;i<_;i++){var h=t[i];r.set(h,s),s+=h.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e){void 0===e&&(e=self);try{var a=new Map;e.addEventListener("message",(function(n){try{var r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"5.28.0"};case"write":var n=e.get(a.streamId);n||(n=new Jt,e.set(a.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,a,n,r,i,s=t.length,_=0;for(r=0;r<s;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),_+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(_),i=0,r=0;i<_;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,K.Z_SYNC_FLUSH),{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){Qt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){Qt(e,t)}}()}();'])))}var M={status:0};function Ki(t,e,r,n){switch(n===void 0&&(n=Gi),M.status===0&&Wv(t,e,n),M.status){case 1:return M.initializationFailureCallbacks.push(r),M.worker;case 3:return M.worker}}function $n(){return M.status}function Wv(t,e,r){r===void 0&&(r=Gi);try{var n=r(t),a=k(t,n,"error",function(s){kr(t,e,s)}).stop,i=k(t,n,"message",function(s){var c=s.data;c.type==="errored"?kr(t,e,c.error,c.streamId):c.type==="initialized"&&Zv(c.version)}).stop;n.postMessage({action:"init"}),F(function(){return Xv(e)},Yv);var o=function(){a(),i()};M={status:1,worker:n,stop:o,initializationFailureCallbacks:[]}}catch(s){kr(t,e,s)}}function Xv(t){M.status===1&&(T.error("".concat(t," failed to start: a timeout occurred while initializing the Worker")),M.initializationFailureCallbacks.forEach(function(e){return e()}),M={status:2})}function Zv(t){M.status===1&&(M={status:3,worker:M.worker,stop:M.stop,version:t})}function kr(t,e,r,n){if(M.status===1||M.status===0){if(T.error("".concat(e," failed to start: an error occurred while creating the Worker:"),r),r instanceof Event||r instanceof Error&&Jv(r.message)){var a=void 0;t.workerUrl?a="Please make sure the Worker URL ".concat(t.workerUrl," is correct and CSP is correctly configured."):a="Please make sure CSP is correctly configured.",T.error("".concat(a," See documentation at ").concat(je,"/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay"))}else Ge(r);M.status===1&&M.initializationFailureCallbacks.forEach(function(i){return i()}),M={status:2}}else Ge(r,{worker_version:M.status===3&&M.version,stream_id:n})}function Jv(t){return nt(t,"Content Security Policy")||nt(t,"requires 'TrustedScriptURL'")}function $v(t,e){if(Dt()&&!Va("records")||!zi())return{start:C,stop:C,getReplayStats:function(){},onRumStart:C,isRecording:function(){return!1},getSessionReplayLink:function(){}};var r={status:1},n=function(){r={status:1}},a=function(){r={status:0}},i=C;return{start:function(o){return n(o)},stop:function(){return a()},getSessionReplayLink:function(){return i()},onRumStart:function(o,s,c,u,d){s.startSessionReplayRecordingManually&&(r={status:0}),o.subscribe(8,function(){(r.status===2||r.status===3)&&(a(),r={status:1})}),o.subscribe(10,function(v){v.reason===Wt.UNLOADING&&a()}),o.subscribe(9,function(){r.status===1&&n()});var f;function l(){return f||(d||(d=Ki(s,"Datadog Session Replay",function(){a()},e)),d&&(f=Hi(s,d,1))),f}n=function(v){var p=c.findTrackedSession();if(!p||p.sessionReplay===0&&(!v||!v.force)){r={status:1};return}r.status===2||r.status===3||(r={status:2},$r(s,"interactive",function(){if(r.status===2){var h=l();if(!h){r={status:0};return}var m=t(o,s,c,u,h).stop;r={status:3,stopRecording:m}}}),v&&v.force&&p.sessionReplay===0&&c.setForcedReplay())},a=function(){r.status!==0&&(r.status===3&&r.stopRecording(),r={status:0})},i=function(){return jv(s,c,u,r.status!==0)},r.status===1&&n()},isRecording:function(){return $n()===3&&r.status===3},getReplayStats:function(o){return $n()===3?Vf(o):void 0}}}var Qv=$v(Kv),tp=gc(If,Qv,{startDeflateWorker:Ki,createDeflateEncoder:Hi});Ds(Tt(),"DD_RUM",tp);export{tp as d};
