1"use strict";(self.webpackChunknatgeo=self.webpackChunknatgeo||[]).push([[7371],{27371:(t,e,n)=>{n.d(e,{d:()=>Ns});var r={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},i=console,o={};Object.keys(r).forEach((function(t){o[t]=i[t]}));var a,s="Datadog Browser SDK:",u={debug:o.debug.bind(i,s),log:o.log.bind(i,s),info:o.info.bind(i,s),warn:o.warn.bind(i,s),error:o.error.bind(i,s)};function c(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return t.apply(void 0,n)}catch(t){u.error(e,t)}}}!function(t){t.PAGEHIDE="pagehide",t.RESOURCE_PAGE_STATES="resource_page_states",t.COLLECT_FLUSH_REASON="collect_flush_reason",t.ZERO_LCP_TELEMETRY="zero_lcp_telemetry",t.DISABLE_REPLAY_INLINE_CSS="disable_replay_inline_css",t.WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",t.CUSTOM_VITALS="custom_vitals",t.TOLERANT_RESOURCE_TIMINGS="tolerant_resource_timings"}(a||(a={}));var l=new Set;function d(t){return l.has(t)}function f(t){return 0!==t&&100*Math.random()<=t}function p(t,e){return+t.toFixed(e)}function v(t){return h(t)&&t>=0&&t<=100}function h(t){return"number"==typeof t}var m,g=1e3,_=60*g,y=60*_,b=24*y*365;function w(t){return{relative:t,timeStamp:(e=t,n=C()-performance.now(),n>N()?Math.round(I(n,e)):function(t){return Math.round(I(N(),t))}(e))};var e,n}function S(t){return{relative:O(t),timeStamp:t}}function E(t){return h(t)?p(1e6*t,0):t}function C(){return(new Date).getTime()}function T(){return C()}function k(){return performance.now()}function x(){return{relative:k(),timeStamp:T()}}function A(){return{relative:0,timeStamp:N()}}function R(t,e){return e-t}function I(t,e){return t+e}function O(t){return t-N()}function N(){return void 0===m&&(m=performance.timing.navigationStart),m}var L=1024,M=1024*L,P=/[^\u0000-\u007F]/;function U(t){return P.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length}function D(t,e){return-1!==t.indexOf(e)}function z(t){if(Array.from)return Array.from(t);var e=[];if(t instanceof Set)t.forEach((function(t){return e.push(t)}));else for(var n=0;n<t.length;n++)e.push(t[n]);return e}function B(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n))return r}}function F(t){return Object.keys(t).map((function(e){return t[e]}))}function V(t){return Object.keys(t).map((function(e){return[e,t[e]]}))}function H(t,e){return t.slice(0,e.length)===e}function G(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.forEach((function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}function q(t){return G({},t)}function j(t,e){return Object.keys(t).some((function(n){return t[n]===e}))}function Z(t){return 0===Object.keys(t).length}function K(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var t=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof t&&(t="object"==typeof self?self:"object"==typeof window?window:{}),t}function Y(t,e){var n,r=K();return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=t[r.Zone.__symbol__(e)]),n||(n=t[e]),n}var W,X=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},J=!1;function $(t){J=t}function Q(t){return function(){return tt(t,this,arguments)}}function tt(t,e,n){try{return t.apply(e,n)}catch(t){if(et(t),W)try{W(t)}catch(t){et(t)}}}function et(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];J&&u.error.apply(u,X(["[MONITOR]"],t,!1))}function nt(t,e){return Y(K(),"setTimeout")(Q(t),e)}function rt(t){Y(K(),"clearTimeout")(t)}function it(t,e){return Y(K(),"setInterval")(Q(t),e)}function ot(t){Y(K(),"clearInterval")(t)}var at=function(){function t(t){this.onFirstSubscribe=t,this.observers=[]}return t.prototype.subscribe=function(t){var e=this;return!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),this.observers.push(t),{unsubscribe:function(){e.observers=e.observers.filter((function(e){return t!==e})),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}}
1,t.prototype.notify=function(t){this.observers.forEach((function(e){return e(t)}))},t}();function st(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new at((function(e){var n=t.map((function(t){return t.subscribe((function(t){return e.notify(t)}))}));return function(){return n.forEach((function(t){return t.unsubscribe()}))}}))}function ut(t,e,n){var r,i,o=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,s=!1;return{throttled:function(){for(var n=[],u=0;u<arguments.length;u++)n[u]=arguments[u];s?r=n:(o?t.apply(void 0,n):r=n,s=!0,i=nt((function(){a&&r&&t.apply(void 0,r),s=!1,r=void 0}),e))},cancel:function(){rt(i),s=!1,r=void 0}}}function ct(){}function lt(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,lt)}var dt,ft,pt,vt=/([\w-]+)\s*=\s*([^;]+)/g;function ht(t,e){for(vt.lastIndex=0;;){var n=vt.exec(t);if(!n)break;if(n[1]===e)return n[2]}}function mt(t,e,n){void 0===n&&(n="");var r=t.charCodeAt(e-1),i=r>=55296&&r<=56319?e+1:e;return t.length<=i?t:"".concat(t.slice(0,i)).concat(n)}function gt(){return null!=dt?dt:dt=function(t){var e;void 0===t&&(t=window);var n=t.navigator.userAgent;return t.chrome||/HeadlessChrome/.test(n)?1:0===(null===(e=t.navigator.vendor)||void 0===e?void 0:e.indexOf("Apple"))||/safari/i.test(n)&&!/chrome|android/i.test(n)?2:t.document.documentMode?0:3}()}function _t(t,e,n,r){var i=new Date;i.setTime(i.getTime()+n);var o="expires=".concat(i.toUTCString()),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain=".concat(r.domain):"",u=r&&r.secure?";secure":"",c=r&&r.partitioned?";partitioned":"";document.cookie="".concat(t,"=").concat(e,";").concat(o,";path=/;samesite=").concat(a).concat(s).concat(u).concat(c)}function yt(t){return ht(document.cookie,t)}function bt(t){return ft||(ft=function(t){var e=new Map;for(vt.lastIndex=0;;){var n=vt.exec(t);if(!n)break;e.set(n[1],n[2])}return e}(document.cookie)),ft.get(t)}function wt(t,e){_t(t,"",0,e)}var St="_dd_s",Et=4*y,Ct=15*_,Tt=/^([a-zA-Z]+)=([a-z0-9-]+)$/,kt="&",xt="1";function At(){return{isExpired:xt}}function Rt(t){return Z(t)}function It(t){return void 0!==t.isExpired||!((void 0===(e=t).created||C()-Number(e.created)<Et)&&(void 0===e.expire||C()<Number(e.expire)));var e}function Ot(t){t.expire=String(C()+Ct)}function Nt(t){return V(t).map((function(t){var e=t[0],n=t[1];return"".concat(e,"=").concat(n)})).join(kt)}function Lt(t){var e={};return function(t){return!!t&&(-1!==t.indexOf(kt)||Tt.test(t))}(t)&&t.split(kt).forEach((function(t){var n=Tt.exec(t);if(null!==n){var r=n[1],i=n[2];e[r]=i}})),e}var Mt="_dd",Pt="_dd_r",Ut="_dd_l",Dt="rum",zt="logs";function Bt(t){var e,n={isLockEnabled:1===gt(),persistSession:(e=t,function(t){_t(St,Nt(t),Ct,e)}),retrieveSession:Ft,expireSession:function(){return function(t){_t(St,Nt(At()),Et,t)}(t)}};return function(t){if(!bt(St)){var e=bt(Mt),n=bt(Pt),r=bt(Ut),i={};e&&(i.id=e),r&&/^[01]$/.test(r)&&(i[zt]=r),n&&/^[012]$/.test(n)&&(i[Dt]=n),function(t){return!Rt(t)}(i)&&(Ot(i),t.persistSession(i))}}(n),n}function Ft(){return Lt(yt(St))}var Vt="_dd_test_";function Ht(t){localStorage.setItem(St,Nt(t))}function Gt(){return Lt(localStorage.getItem(St))}function qt(){Ht(At())}var jt,Zt=10,Kt=100,Yt=[];function Wt(t,e,n){var r;void 0===n&&(n=0);var i=e.isLockEnabled,o=e.persistSession,a=e.expireSession,s=function(t){return o(G({},t,{lock:c}))},u=function(){var t=e.retrieveSession(),n=t.lock;return t.lock&&delete t.lock,{session:t,lock:n}};if(jt||(jt=t),t===jt)if(i&&n>=Kt)Jt(e);else{var c,l=u();if(i){if(l.lock)return void Xt(t,e,n);if(c=lt(),s(l.session),(l=u()).lock!==c)return void Xt(t,e,n)}var d=t.process(l.session);if(i&&(l=u()).lock!==c)Xt(t,e,n);else{if(d&&(It(d)?a():(Ot(d),i?s(d):o(d))),i&&(!d||!It(d))){if((l=u()).lock!==c)return void Xt(t,e,n);o(l.session),d=l.session}null===(r=t.after)||void 0===r||r.call(t,d||l.session),Jt(e)}}else Yt.push(t)}function Xt(t,e,n){nt((function(){Wt(t,e,n+1)}),Zt)}function Jt(t){jt=void 0;var e=Yt.shift();e&&Wt(e,t)}var $t=g;function Qt(t){var e=function(t){var e=function(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=function(){if(void 0===pt){for(var t="dd_site_test_".concat(lt()),e=window.location.hostname.split("."),n=e.pop();e.length&&!yt(t);)n="".concat(e.pop(),".").concat(n),_t(t,"test",g,{domain:n});wt(t,{domain:n}),pt=n}return pt}()),e}(t);return function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="dd_cookie_test_".concat(lt()),n="test";_t(e,n,_,t);var r=yt(e)===n;return wt(e,t),r}catch(t){return u.error(t),!1}}
1(e)?{type:"Cookie",cookieOptions:e}:void 0}(t);return!e&&t.allowFallbackToLocalStorage&&(e=function(){try{var t=lt(),e="".concat(Vt).concat(t);localStorage.setItem(e,t);var n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:"LocalStorage"}:void 0}catch(t){return}}()),e}var te={GRANTED:"granted",NOT_GRANTED:"not-granted"};function ee(t,e,n){if("object"!=typeof t||null===t)return JSON.stringify(t);var r=ne(Object.prototype),i=ne(Array.prototype),o=ne(Object.getPrototypeOf(t)),a=ne(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),i(),o(),a()}}function ne(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):ct}function re(t){return ie(t,location.href).href}function ie(t,e){var n=function(){if(void 0===oe)try{var t=new ae("http://test/path");oe="http://test/path"===t.href}catch(t){oe=!1}return oe?ae:void 0}();if(n)try{return void 0!==e?new n(t,e):new n(t)}catch(n){throw new Error("Failed to construct URL: ".concat(String(n)," ").concat(ee({url:t,base:e})))}if(void 0===e&&!/:/.test(t))throw new Error("Invalid URL: '".concat(t,"'"));var r=document,i=r.createElement("a");if(void 0!==e){var o=(r=document.implementation.createHTMLDocument("")).createElement("base");o.href=e,r.head.appendChild(o),r.body.appendChild(i)}return i.href=t,i}var oe,ae=URL,se="datad0g.com",ue="dd0g-gov.com",ce="datadoghq.com",le="datadoghq.eu",de="pci.browser-intake-datadoghq.com";function fe(t,e,n){var r=function(t,e){var n="/api/v2/".concat(e),r=t.proxy;if("string"==typeof r){var i=re(r);return function(t){return"".concat(i,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(t)))}}if("function"==typeof r)return function(t){return r({path:n,parameters:t})};var o=function(t,e){var n=e.site,r=void 0===n?ce:n,i=e.internalAnalyticsSubdomain;if("logs"===t&&e.usePciIntake&&r===ce)return de;if(i&&r===ce)return"".concat(i,".").concat(ce);if(r===ue)return"http-intake.logs.".concat(r);var o=r.split("."),a=o.pop();return"browser-intake-".concat(o.join("-"),".").concat(a)}(e,t);return function(t){return"https://".concat(o).concat(n,"?").concat(t)}}(t,e);return{build:function(i,o){var s=function(t,e,n,r,i){var o=t.clientToken,s=t.internalAnalyticsSubdomain,u=i.retry,c=i.flushReason,l=i.encoding,f=["sdk_version:".concat("5.17.1"),"api:".concat(r)].concat(n);c&&d(a.COLLECT_FLUSH_REASON)&&f.push("flush_reason:".concat(c)),u&&f.pu
1sh("retry_count:".concat(u.count),"retry_after:".concat(u.lastFailureStatus));var p=["ddsource=browser","ddtags=".concat(encodeURIComponent(f.join(","))),"dd-api-key=".concat(o),"dd-evp-origin-version=".concat(encodeURIComponent("5.17.1")),"dd-evp-origin=browser","dd-request-id=".concat(lt())];return l&&p.push("dd-evp-encoding=".concat(l)),"rum"===e&&p.push("batch_time=".concat(T())),s&&p.reverse(),p.join("&")}(t,e,n,i,o);return r(s)},urlPrefix:r(""),trackType:e}}var pe=200,ve=/[^a-z0-9_:./-]/;function he(t,e){var n=pe-t.length-1;(e.length>n||ve.test(e))&&u.warn("".concat(t," value doesn't meet tag requirements and will be sanitized"));var r=e.replace(/,/g,"_");return"".concat(t,":").concat(r)}var me="https://docs.datadoghq.com/getting_started/site/",ge={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"},_e={ALL:"all",SAMPLED:"sampled"};function ye(t){var e,n,r,i,o;if(t&&t.clientToken)if(void 0===t.sessionSampleRate||v(t.sessionSampleRate))if(void 0===t.telemetrySampleRate||v(t.telemetrySampleRate))if(void 0===t.telemetryConfigurationSampleRate||v(t.telemetryConfigurationSampleRate))if(void 0===t.telemetryUsageSampleRate||v(t.telemetryUsageSampleRate))if(void 0===t.trackingConsent||j(te,t.trackingConsent)){var s;if(!t.site||(s=t.site,/(datadog|ddog|datad0g|dd0g)/.test(s)))return Array.isArray(t.enableExperimentalFeatures)&&t.enableExperimentalFeatures.filter((function(t){return j(a,t)})).forEach((function(t){l.add(t)})),G({beforeSend:t.beforeSend&&c(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:Qt(t),sessionSampleRate:null!==(e=t.sessionSampleRate)&&void 0!==e?e:100,telemetrySampleRate:null!==(n=t.telemetrySampleRate)&&void 0!==n?n:20,telemetryConfigurationSampleRate:null!==(r=t.telemetryConfigurationSampleRate)&&void 0!==r?r:5,telemetryUsageSampleRate:null!==(i=t.telemetryUsageSampleRate)&&void 0!==i?i:5,service:t.service,silentMultipleInit:!!t.silentMultipleInit,allowUntrustedEvents:!!t.allowUntrustedEvents,trackingConsent:null!==(o=t.trackingConsent)&&void 0!==o?o:te.GRANTED,batchBytesLimit:16*L,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*g,batchMessagesLimit:50,messageBytesLimit:256*L},function(t){var e=t.site||ce,n=function(t){var e=t.env,n=t.service,r=t.version,i=t.datacenter,o=[];return e&&o.push(he("env",e)),n&&o.push(he("service",n)),r&&o.push(he("version",r)),i&&o.push(he("datacenter",i)),o}(t),r=function(t,e){return{logsEndpointBuilder:fe(t,"logs",e),rumEndpointBuilder:fe(t,"rum",e),sessionReplayEndpointBuilder:fe(t,"replay",e)}}(t,n),i=function(t,e){var n=F(t).map((function(t){return t.urlPrefix}));return e===ce&&n.push("https://".concat(de,"/")),n}(r,e),o=function(t,e,n){if(t.replica){var r=G({},t,{site:ce,clientToken:t.replica.clientToken}),i={logsEndpointBuilder:fe(r,"logs",n),rumEndpointBuilder:fe(r,"rum",n)};return e.push.apply(e,F(i).map((function(t){return t.urlPrefix}))),G({applicationId:t.replica.applicationId},i)}}(t,i,n);return G({isIntakeUrl:function(t){return i.some((function(e){return 0===t.indexOf(e)}))},replica:o,site:e},r)}(t));u.error("Site should be a valid Datadog site. Learn more here: ".concat(me,"."))}else u.error('Tracking Consent should be either "granted" or "not-granted"');else u.error("Telemetry Usage Sample Rate should be a number between 0 and 100");else u.error("Telemetry Configuration Sample Rate should be a number between 0 and 100");else u.error("Telemetry Sample Rate should be a number between 0 and 100");else u.error("Session Sample Rate should be a number between 0 and 100");else u.error("Client Token is not configured, we will not send any data.")}function be(t,e,n){var r=t[e];if("function"!=typeof r){if(!H(e,"on"))return{stop:ct};r=ct}var i=function(t,e){return function(){var n,r=z(arguments);tt(e,null,[{target:this,parameters:r,onPostCall:function(t){n=t}}]);var i=t.apply(this,r);return n&&tt(n,null,[i]),i}}(r,n),o=function(){if("function"==typeof i)return i.apply(this,arguments)};return t[e]=o,{stop:function(){t[e]===o?t[e]=r:i=r}}}function we(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:ct};var i=ct,o=function(t,e){nt((function(){o!==i&&n(t,e)}),0)},a=function(t){r.set.call(this,t),o(this,t)};return Object.defineProperty(t,e,{set:a}),{stop:function(){var n;(null===(n=Object.getOwnPropertyDescriptor(t,e))||void 0===n?void 0:n.set)===a&&Object.defineProperty(t,e,r),o=i}}}var Se="?";function Ee(t){var e=[],n=Ne(t,"stack"),r=String(t);return n&&H(n,r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach((function(t){var n=function(t){var e=ke.exec(t);if(e){var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=xe.exec(e[2]);return r&&i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]),{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||Se,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}}(t)||function(t){var e=Ae.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]}}(t)||function(t){var e=Re.exec(t);if(e)return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||Se,line:+e[3],url:e[2]}}(t)||function(t){var e=Ie.exec(t);if(e){var n=e[3]&&e[3].indexOf(" > eval")>-1,r=Oe.exec(e[3]);return n&&r&&(e[3]=r[1],e[4]=r[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]}}}(t);n&&(!n.func&&n.line&&(n.func=Se),e.push(n))})),{message:Ne(t,"message"),name:Ne(t,"name"),stack:e}}var Ce="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",Te="(?::(\\d+))",ke=new RegExp("^\\s*at (.*?) ?\\(".concat(Ce).concat(Te,"?").concat(Te,"?\\)?\\s*$"),"i"),xe=new RegExp("\\((\\S*)".concat(Te).concat(Te,"\\)")),Ae=new RegExp("^\\s*at ?".concat(Ce).concat(Te,"?").concat(Te,"??\\s*$"),"i"),Re=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ie=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,Oe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Ne(t,e){if("object"==typeof t&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var Le=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/,Me=220*L,Pe="$",Ue=3;function De(t,e){var n;void 0===e&&(e=Me);var r=ne(Object.prototype),i=ne(Array.prototype),o=[],a=new WeakMap,s=ze(t,Pe,void 0,o,a),u=(null===(n=JSON.stringify(s))||void 0===n?void 0:n.length)||0;if(!(u>e)){for(;o.length>0&&u<e;){var c=o.shift(),l=0;if(Array.isArray(c.source))for(var d=0;d<c.source.length;d++){if(u+=void 0!==(f=ze(c.source[d],c.path,d,o,a))?JSON.stringify(f).length:4,u+=l,l=1,u>e){Be(e,"truncated",t);break}c.target[d]=f}else for(var d in c.source)if(Object.prototype.hasOwnProperty.call(c.source,d)){var f;if(void 0!==(f=ze(c.source[d],c.path,d,o,a))&&(u+=JSON.stringify(f).length+l+d.length+Ue,l=1),u>e){Be(e,"truncated",t);break}c.target[d]=f}}return r(),i(),s}Be(e,"discarded",t)}function ze(t,e,n,r,i){var o,a=function(t){var e=t;if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(t){}return t}(t);if(!a||"object"!=typeof a)return"bigint"==typeof(o=a)?"[BigInt] ".concat(o.toString()):"function"==typeof o?"[Function] ".concat(o.name||"unknown"):"symbol"==typeof o?"[Symbol] ".concat(o.description||o.toString()):o;var s=function(t){try{if(t instanceof Event)return{isTrusted:t.isTrusted};var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"[".concat(e[1],"]")}catch(t){}return"[Unserializable]"}(a);if("[Object]"!==s&&"[Array]"!==s&&"[Error]"!==s)return s;var u=t;if(i.has(u))return"[Reference seen at ".concat(i.get(u),"]");var c=void 0!==n?"".concat(e,".").concat(n):e,l=Array.isArray(a)?[]:{};return i.set(u,c),r.push({source:a,target:l,path:c}),l}function Be(t,e,n){u.warn("The data provided has been ".concat(e," as it is over the limit of ").concat(t," characters:"),n)}function Fe(){var t,e=new Error;if(!e.stack)try{throw e}catch(t){}return tt((function(){var n=Ee(e);n.stack=n.stack.slice(2),t=Ve(n)})),t}function Ve(t){var e=He(t);return t.stack.forEach((function(t){var n="?"===t.func?"<anonymous>":t.func,r=t.args&&t.args.length>0?"(".concat(t.args.join(", "),")"):"",i=t.line?":".concat(t.line):"",o=t.line&&t.column?":".concat(t.column):"";e+="\n at ".concat(n).concat(r," @ ").concat(t.url).concat(i).c
1oncat(o)})),e}function He(t){return"".concat(t.name||"Error",": ").concat(t.message)}var Ge="No stack, consider using an instance of Error";function qe(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,o=t.nonErrorPrefix,a=t.source,s=t.handling,u=n instanceof Error,c=function(t,e,n,r){return(null==t?void 0:t.message)&&(null==t?void 0:t.name)?t.message:e?"Empty message":"".concat(n," ").concat(ee(De(r)))}(e,u,o,n),l=function(t,e){return void 0!==e&&(!!t||e.stack.length>0&&(e.stack.length>1||void 0!==e.stack[0].url))}(u,e)?Ve(e):Ge,d=u?Ze(n,a):void 0;return{startClocks:i,source:a,handling:s,handlingStack:r,originalError:n,type:null==e?void 0:e.name,message:c,stack:l,causes:d,fingerprint:je(n)}}function je(t){return t instanceof Error&&"dd_fingerprint"in t?String(t.dd_fingerprint):void 0}function Ze(t,e){for(var n=t,r=[];(null==n?void 0:n.cause)instanceof Error&&r.length<10;){var i=Ee(n.cause);r.push({message:n.cause.message,source:e,type:null==i?void 0:i.name,stack:i&&Ve(i)}),n=n.cause}return r.length?r:void 0}var Ke,Ye={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function We(t){var e,n=function(e,n){var r=qe({stackTrace:e,originalError:n,startClocks:x(),nonErrorPrefix:"Uncaught",source:Ye.SOURCE,handling:"unhandled"});t.notify(r)},r=(e=n,be(window,"onerror",(function(t){var n,r=t.parameters,i=r[0],o=r[1],a=r[2],s=r[3],u=r[4];n=u instanceof Error?Ee(u):function(t,e,n,r){var i=[{url:e,column:r,line:n}],o=function(t){var e,n,r;return"[object String]"==={}.toString.call(t)&&(n=(e=Le.exec(t))[1],r=e[2]),{name:n,message:r}}(t);return{name:o.name,message:o.message,stack:i}}(i,o,a,s),e(n,null!=u?u:i)}))).stop,i=function(t){return be(window,"onunhandledrejection",(function(e){var n=e.parameters[0].reason||"Empty reason",r=Ee(n);t(r,n)}))}(n).stop;return{stop:function(){r(),i()}}}function Xe(t,e){e.silentMultipleInit||u.error("".concat(t," is already initialized."))}function Je(t,e,n,r,i){return $e(t,e,[n],r,i)}function $e(t,e,n,r,i){var o=void 0===i?{}:i,a=o.once,s=o.capture,u=o.passive,c=Q((function(e){(e.isTrusted||e.__ddIsTrusted||t.allowUntrustedEvents)&&(a&&f(),r(e))})),l=u?{capture:s,passive:u}:s,d=Y(e,"addEventListener");function f(){var t=Y(e,"removeEventListener");n.forEach((function(n){return t.call(e,n,c,l)}))}return n.forEach((function(t){return d.call(e,t,c,l)})),{stop:f}}!function(t){t.BEFORE_UNLOAD="beforeunload",t.CLICK="click",t.DBL_CLICK="dblclick",t.KEY_DOWN="keydown",t.LOAD="load",t.POP_STATE="popstate",t.SCROLL="scroll",t.TOUCH_START="touchstart",t.TOUCH_END="touchend",t.TOUCH_MOVE="touchmove",t.VISIBILITY_CHANGE="visibilitychange",t.PAGE_SHOW="pageshow",t.FREEZE="freeze",t.RESUME="resume",t.DOM_CONTENT_LOADED="DOMContentLoaded",t.POINTER_DOWN="pointerdown",t.POINTER_UP="pointerup",t.POINTER_CANCEL="pointercancel",t.HASH_CHANGE="hashchange",t.PAGE_HIDE="pagehide",t.MOUSE_DOWN="mousedown",t.MOUSE_UP="mouseup",t.MOUSE_MOVE="mousemove",t.FOCUS="focus",t.BLUR="blur",t.CONTEXT_MENU="contextmenu",t.RESIZE="resize",t.CHANGE="change",t.INPUT="input",t.PLAY="play",t.PAUSE="pause",t.SECURITY_POLICY_VIOLATION="securitypolicyviolation",t.SELECTION_CHANGE="selectionchange",t.STORAGE="storage"}(Ke||(Ke={}));var Qe={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function tn(t,e,n,r,i){return n?Ve({name:t,message:e,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=i?i:void 0}]}):void 0}function en(t,e){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}function nn(t){return null===t?"null":Array.isArray(t)?"array":typeof t}function rn(t,e,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var t=new WeakSet;return{hasAlreadyBeenSeen:function(e){var n=t.has(e);return n||t.add(e),n}}}var e=[];return{hasAlreadyBeenSeen:function(t){var n=e.indexOf(t)>=0;return n||e.push(t),n}}}()),void 0===e)return t;if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var r=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return new RegExp(e.source,r)}if(!n.hasAlreadyBeenSeen(e)){if(Array.isArray(e)){for(var i=Array.isArray(t)?t:[],o=0;o<e.length;++o)i[o]=rn(i[o],e[o],n);return i}var a="object"===nn(t)?t:{};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(a[s]=rn(a[s],e[s],n));return a}}function on(t){return rn(void 0,t)}function an(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r=0,i=e;r<i.length;r++){var o=i[r];null!=o&&(t=rn(t,o))}return t}function sn(){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:null===(t=e.connection)||void 0===t?void 0:t.effectiveType}}var un,cn={log:"log",configuration:"configuration",usage:"usage"},ln=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],dn=["ddog-gov.com"],fn={maxEventsPerPage:0,sentEventCount:0};function pn(t,e){et(r.debug,t,e),mn(G({type:cn.log,message:t,status:"debug"},e))}function vn(t,e){mn(G({type:cn.log,status:"error"},function(t){if(t instanceof Error){var e=Ee(t);return{error:{kind:e.name,stack:Ve(gn(e))},message:e.message}}return{error:{stack:Ge},message:"".concat("Uncaught"," ").concat(ee(t))}}(t),e))}function hn(t){mn({type:cn.usage,usage:t})}function mn(t){un&&fn.sentEventCount<fn.maxEventsPerPage&&(fn.sentEventCount+=1,un(t))}function gn(t){return t.stack=t.stack.filter((function(t){return!t.url||ln.some((function(e){return H(t.url,e)}))}
1)),t}function _n(t,e){var n=t.indexOf(e);n>=0&&t.splice(n,1)}var yn=1/0,bn=_,wn=function(){function t(t,e){var n=this;this.expireDelay=t,this.maxEntries=e,this.entries=[],this.clearOldValuesInterval=it((function(){return n.clearOldValues()}),bn)}return t.prototype.add=function(t,e){var n=this,r={value:t,startTime:e,endTime:yn,remove:function(){_n(n.entries,r)},close:function(t){r.endTime=t}};return this.maxEntries&&this.entries.length>=this.maxEntries&&this.entries.pop(),this.entries.unshift(r),r},t.prototype.find=function(t){void 0===t&&(t=yn);for(var e=0,n=this.entries;e<n.length;e++){var r=n[e];if(r.startTime<=t){if(t<=r.endTime)return r.value;break}}},t.prototype.closeActive=function(t){var e=this.entries[0];e&&e.endTime===yn&&e.close(t)},t.prototype.findAll=function(t,e){void 0===t&&(t=yn),void 0===e&&(e=0);var n=I(t,e);return this.entries.filter((function(e){return e.startTime<=n&&t<=e.endTime})).map((function(t){return t.value}))},t.prototype.reset=function(){this.entries=[]},t.prototype.stop=function(){ot(this.clearOldValuesInterval)},t.prototype.clearOldValues=function(){for(var t=k()-this.expireDelay;this.entries.length>0&&this.entries[this.entries.length-1].endTime<t;)this.entries.pop()},t}(),Sn=_,En=Et;function Cn(t,e,n,r){var i=new at,o=new at,a=function(t,e,n){var r,i=new at,o=new at,a="Cookie"===t.type?Bt(t.cookieOptions):{isLockEnabled:!1,persistSession:Ht,retrieveSession:Gt,expireSession:qt},s=a.expireSession,u=it((function(){Wt({process:function(t){return It(t)?At():void 0},after:f},a)}),$t);p();var c=ut((function(){var t;Wt({process:function(r){if(!Rt(r)){var i=f(r);return t=function(t){if(Rt(t))return!1;var r=n(t[e]),i=r.trackingType,o=r.isTracked;return t[e]=i,delete t.isExpired,o&&!t.id&&(t.id=lt(),t.created=String(C())),o}(i),i}},after:function(e){t&&!v()&&function(t){r=t,i.notify()}(e),r=e}},a)}),$t),l=c.throttled,d=c.cancel;
1function f(t){return It(t)&&(t=At()),v()&&(function(t){return r.id!==t.id||r[e]!==t[e]}(t)?(r=At(),o.notify()):r=t),t}function p(){Wt({process:function(t){if(Rt(t))return At()},after:function(t){r=t}},a)}function v(){return void 0!==r[e]}return{expandOrRenewSession:l,expandSession:function(){Wt({process:function(t){return v()?f(t):void 0}},a)},getSession:function(){return r},renewObservable:i,expireObservable:o,restartSession:p,expire:function(){d(),s(),f(At())},stop:function(){ot(u)}}}(t.sessionStoreStrategyType,e,n),s=new wn(En);function u(){return{id:a.getSession().id,trackingType:a.getSession()[e]}}return a.renewObservable.subscribe((function(){s.add(u(),k()),i.notify()})),a.expireObservable.subscribe((function(){o.notify(),s.closeActive(k())})),a.expandOrRenewSession(),s.add(u(),A().relative),r.observable.subscribe((function(){r.isGranted()?a.expandOrRenewSession():a.expire()})),function(t,e){$e(t,window,[Ke.CLICK,Ke.TOUCH_START,Ke.KEY_DOWN,Ke.SCROLL],(function(){r.isGranted()&&a.expandOrRenewSession()}),{capture:!0,passive:!0}).stop}(t),function(t,e){var n=function(){"visible"===document.visibilityState&&a.expandSession()};Je(t,document,Ke.VISIBILITY_CHANGE,n).stop,it(n,Sn)}(t),function(t,e){Je(t,window,Ke.RESUME,(function(){return a.restartSession()}),{capture:!0}).stop}(t),{findActiveSession:function(t){return s.find(t)},renewObservable:i,expireObservable:o,expire:a.expire}}var Tn=80*L,kn=32,xn=3*M,An=_,Rn=g;function In(t,e,n,r,i){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?Nn(t,e,n,{onSuccess:function(){return Ln(0,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),On(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function On(t,e,n,r){2===t.transportStatus&&nt((function(){Nn(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=Rn,Ln(1,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(An,2*t.currentBackoffTime),On(t,e,n,r)}})}),t.currentBackoffTime)}function Nn(t,e,n,r){var i=r.onSuccess,o=r.onFailure;e.bandwidthMonitor.add(t),n(t,(function(n){e.bandwidthMonitor.remove(t),function(t){return"opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||t.status>=500)}(n)?(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},o()):(e.transportStatus=0,i())}))}function Ln(t,e,n,r,i){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max ".concat(r," events size queued for upload: ").concat(xn/M,"MiB"),source:Ye.AGENT,startClocks:x()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=Mn();o.size()>0;)In(o.dequeue(),e,n,r,i)}function Mn(){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>=xn}}}function Pn(t,e,n,r){var i={transportStatus:0,currentBackoffTime:Rn,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=Tn&&this.ongoingRequestCount<kn},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:Mn(),queueFullReported:!1},o=function(r,i){return function(t,e,n,r,i){if(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&r.bytesCount<n){var o=e.build("fetch",r);fetch(o,{method:"POST",body:r.data,keepalive:!0,mode:"cors"}).then(Q((function(t){return null==i?void 0:i({status:t.status,type:t.type})})),Q((function(){var n=e.build("xhr",r);Dn(t,n,r.data,i)})))}else{var a=e.build("xhr",r);Dn(t,a,r.data,i)}}(t,e,n,r,i)};return{send:function(t){In(t,i,o,e.trackType,r)},sendOnExit:function(r){!function(t,e,n,r){if(!!navigator.sendBeacon&&r.bytesCount<n)try{var i=e.build("beacon",r);if(navigator.sendBeacon(i,r.data))return}catch(t){!function(t){Un||(Un=!0,vn(t))}(t)}Dn(t,e.build("xhr",r),r.data)}(t,e,n,r)}}}var Un=!1;function Dn(t,e,n,r){var i=new XMLHttpRequest;i.open("POST",e,!0),n instanceof Blob&&i.setRequestHeader("Content-Type",n.type),Je(t,i,"loadend",(function(){null==r||r({status:i.status})}),{once:!0}),i.send(n)}function zn(){var t=K().DatadogEventBridge;if(t)return{getCapabilities:function(){var e;return JSON.parse((null===(e=t.getCapabilities)||void 0===e?void 0:e.call(t))||"[]")},getPrivacyLevel:function(){var e;return null===(e=t.getPrivacyLevel)||void 0===e?void 0:e.call(t)},getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts())},send:function(e,n,r){var i=r?{id:r}:void 0;t.send(JSON.stringify({eventType:e,event:n,view:i}))}}}function Bn(t){var e=zn();return!!e&&D(e.getCapabilities(),t)}function Fn(t){var e;void 0===t&&(t=null===(e=K().location)||void 0===e?void 0:e.hostname);var n=zn();return!!n&&n.getAllowedWebViewHosts().some((function(e){return t===e||(n=t,r=".".concat(e),n.slice(-r.length)===r);var n,r}))}var Vn={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function Hn(t){return D(F(Vn),t)}var Gn=function(){function t(t,e,n,r){var i=this;this.encoder=t,this.request=e,this.flushController=n,this.messageBytesLimit=r,this.upsertBuffer={},this.flushSubscription=this.flushController.flushObservable.subscribe((function(t){return i.flush(t)}))}return t.prototype.add=function(t){this.addOrUpdate(t)},t.prototype.upsert=function(t,e){this.addOrUpdate(t,e)},t.prototype.stop=function(){this.flushSubscription.unsubscribe()},t.prototype.flush=function(t){var e=F(this.upsertBuffer).join("\n");this.upsertBuffer={};var n=Hn(t.reason),r=n?this.request.sendOnExit:this.request.send;if(n&&this.encoder.isAsync){var i=this.encoder.finishSync();i.outputBytesCount&&r(qn(i,t));
1var o=[i.pendingData,e].filter(Boolean).join("\n");o&&r({data:o,bytesCount:U(o),flushReason:t.reason})}else e&&this.encoder.write(this.encoder.isEmpty?e:"\n".concat(e)),this.encoder.finish((function(e){r(qn(e,t))}))},t.prototype.addOrUpdate=function(t,e){var n=ee(t),r=this.encoder.estimateEncodedBytesCount(n);r>=this.messageBytesLimit?u.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(this.messageBytesLimit,"KB.")):(this.hasMessageFor(e)&&this.remove(e),this.push(n,r,e))},t.prototype.push=function(t,e,n){var r=this;this.flushController.notifyBeforeAddMessage(e),void 0!==n?(this.upsertBuffer[n]=t,this.flushController.notifyAfterAddMessage()):this.encoder.write(this.encoder.isEmpty?t:"\n".concat(t),(function(t){r.flushController.notifyAfterAddMessage(t-e)}))},t.prototype.remove=function(t){var e=this.upsertBuffer[t];delete this.upsertBuffer[t];var n=this.encoder.estimateEncodedBytesCount(e);this.flushController.notifyAfterRemoveMessage(n)},t.prototype.hasMessageFor=function(t){return void 0!==t&&void 0!==this.upsertBuffer[t]},t}();function qn(t,e){return{data:"string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),bytesCount:t.outputBytesCount,encoding:t.encoding,flushReason:e.reason}}function jn(){var t="",e=0;return{isAsync:!1,get isEmpty(){return!t},write:function(n,r){var i=U(n);e+=i,t+=n,r&&r(i)},finish:function(t){t(this.finishSync())},finishSync:function(){var n={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:""};return t="",e=0,n},estimateEncodedBytesCount:function(t){return t.length}}}var Zn,Kn=function(){function t(){this.callbacks={}}return t.prototype.notify=function(t,e){var n=this.callbacks[t];n&&n.forEach((function(t){return t(e)}))},t.prototype.subscribe=function(t,e){var n=this;return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),{unsubscribe:function(){n.callbacks[t]=n.callbacks[t].filter((function(t){return e!==t}))}}},t}();function Yn(t,e,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&nt((function(){r=0}),_),(r+=1)<=e||i)return i=!1,!1;if(r===e+1){i=!0;try{n({message:"Reached max number of ".concat(t,"s by minute: ").concat(e),source:Ye.AGENT,startClocks:x()})}finally{i=!1}}return!0}}}function Wn(t,e,n){if(document.readyState===e||"complete"===document.readyState)n();else{var r="complete"===e?Ke.LOAD:Ke.DOM_CONTENT_LOADED;Je(t,window,r,n,{once:!0})}}var Xn,Jn=new WeakMap;function $n(t){var e=t.target,n=t.parameters,r=n[0],i=n[1];Jn.set(e,{state:"open",method:String(r).toUpperCase(),url:re(String(i))})}function Qn(t){var e=t.target,n=Jn.get(e);n&&(n.isAborted=!0)}var tr={};var er=function(){function t(){this.buffer=[]}return t.prototype.add=function(t){this.buffer.push(t)>500&&this.buffer.splice(0,1)},t.prototype.remove=function(t){_n(this.buffer,t)},t.prototype.drain=function(t){this.buffer.forEach((function(e){return e(t)})),this.buffer.length=0},t}();function nr(t){var e={},n=new at,r={getContext:function(){return on(e)},setContext:function(i){"object"===nn(i)?(e=De(i),t.updateCustomerData(e)):r.clearContext(),n.notify()},setContextProperty:function(r,i){e[r]=De(i),t.updateCustomerData(e),n.notify()},removeContextProperty:function(r){delete e[r],t.updateCustomerData(e),n.notify()},clearContext:function(){e={},t.resetCustomerData(),n.notify()},changeObservable:n};return r}var rr=[];function ir(t,e,n,r){var i=function(t,e){return"".concat("_dd_c","_").concat(t,"_").concat(e)}(n,r);function o(){var t=localStorage.getItem(i);return null!==t?JSON.parse(t):{}}rr.push(Je(t,window,Ke.STORAGE,(function(t){var n=t.key;i===n&&e.setContext(o())}))),e.changeObservable.subscribe((function(){localStorage.setItem(i,JSON.stringify(e.getContext()))})),e.setContext(an(o(),e.getContext()))}var or=3*L,ar=16*L,sr=200;function ur(t){var e=0,n=ut((function(n){e=U(ee(n)),t()}),sr),r=n.throttled,i=n.cancel,o=function(){i(),e=0};return{updateCustomerData:function(t){Z(t)?o():r(t)},resetCustomerData:o,getBytesCount:function(){return e},stop:function(){i()}}}var cr="datadog-synthetics-public-id",lr="datadog-synthetics-result-id",dr="datadog-synthetics-injects-rum";function fr(){return Boolean(window._DATADOG_SYNTHETICS_INJECTS_RUM||bt(dr))}
1function pr(t){var e=G({},t);return["id","name","email"].forEach((function(t){t in e&&(e[t]=String(e[t]))})),e}function vr(t){var e=nn(t);return"string"===e||"function"===e||t instanceof RegExp}function hr(t,e,n){return void 0===n&&(n=!1),t.some((function(t){try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);if("string"==typeof t)return n?H(e,t):t===e}catch(t){u.error(t)}return!1}))}function mr(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function gr(t,e,n,r){if(void 0!==_r()&&n.findTrackedSession()){var i,o,a,s,u,c=B(t.allowedTracingUrls,(function(t){return hr([t.match],e.url,!0)}));c&&(e.traceSampled=!h(t.traceSampleRate)||f(t.traceSampleRate),(e.traceSampled||t.traceContextInjection===_e.ALL)&&(e.traceId=new yr,e.spanId=new yr,r((i=e.traceId,o=e.spanId,a=e.traceSampled,s=c.propagatorTypes,u={},s.forEach((function(t){switch(t){case"datadog":G(u,{"x-datadog-origin":"rum","x-datadog-parent-id":o.toDecimalString(),"x-datadog-sampling-priority":a?"1":"0","x-datadog-trace-id":i.toDecimalString()});break;case"tracecontext":G(u,{traceparent:"00-0000000000000000".concat(i.toPaddedHexadecimalString(),"-").concat(o.toPaddedHexadecimalString(),"-0").concat(a?"1":"0")});break;case"b3":G(u,{b3:"".concat(i.toPaddedHexadecimalString(),"-").concat(o.toPaddedHexadecimalString(),"-").concat(a?"1":"0")});break;case"b3multi":G(u,{"X-B3-TraceId":i.toPaddedHexadecimalString(),"X-B3-SpanId":o.toPaddedHexadecimalString(),"X-B3-Sampled":a?"1":"0"})}})),u))))}}function _r(){return window.crypto||window.msCrypto}var yr=function(){function t(){this.buffer=new Uint8Array(8),_r().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}return t.prototype.toString=function(t){var e=this.readInt32(0),n=this.readInt32(4),r="";do{var i=e%t*4294967296+n;e=Math.floor(e/t),n=Math.floor(i/t),r=(i%t).toString(t)+r}while(e||n);return r},t.prototype.toDecimalString=function(){return this.toString(10)},t.prototype.toPaddedHexadecimalString=function(){var t=this.toString(16);return Array(17-t.length).join("0")+t},t.prototype.readInt32=function(t){return 16777216*this.buffer[t]+(this.buffer[t+1]<<16)+(this.buffer[t+2]<<8)+this.buffer[t+3]},t}(),br=["tracecontext","datadog"];function wr(t){var e=new Set;return Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0&&t.allowedTracingUrls.forEach((function(t){vr(t)?br.forEach((function(t){return e.add(t)})):"object"===nn(t)&&Array.isArray(t.propagatorTypes)&&t.propagatorTypes.forEach((function(t){return e.add(t)}))})),z(e)}function Sr(t,e,n,r){var i,o,a,s,c=t.ignoreInitIfSyntheticsWillInjectRum,l=t.startDeflateWorker,d=new er,f=n.observable.subscribe(p);function p(){if(a&&s&&n.isGranted()){var t;if(f.unsubscribe(),s.trackViewsManually){if(!i)return;d.remove(i.callback),t=i.options}var e=r(a,s,o,t);d.drain(e)}}return{init:function(t){if(t){var e=Fn();if(e&&(t=function(t){var e,n;return G({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!==(e=t.defaultPrivacyLevel)&&void 0!==e?e:null===(n=zn())||void 0===n?void 0:n.getPrivacyLevel()})}(t)),a=t,s)Xe("DD_RUM",t);else if(!c||!fr()){var r=function(t){var e,n;if(t.applicationId)if(void 0===t.sessionReplaySampleRate||v(t.sessionReplaySampleRate))if(void 0===t.traceSampleRate||v(t.traceSampleRate))if(void 0===t.excludedActivityUrls||Array.isArray(t.excludedActivityUrls)){var r=function(t){if(void 0!==t.allowedTracingUrls){if(!Array.isArray(t.allowedTracingUrls))return void u.error("Allowed Tracing URLs should be an array");if(0!==t.allowedTracingUrls.length&&void 0===t.service)return void u.error("Service needs to be configured when tracing is enabled");var e=[];return t.allowedTracingUrls.forEach((function(t){var n;vr(t)?e.push({match:t,propagatorTypes:br}):"object"===nn(n=t)&&vr(n.match)&&Array.isArray(n.propagatorTypes)?e.push(t):u.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",t)})),e}return[]}(t);if(r){var i=ye(t);if(i)return G({applicationId:t.applicationId,version:t.version,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:null!==(e=t.sessionReplaySampleRate)&&void 0!==e?e:0,startSessionReplayRecordingManually:!!t.startSessionReplayRecordingManually,traceSampleRate:t.traceSampleRate,allowedTracingUrls:r,excludedActivityUrls:null!==(n=t.excludedActivityUrls)&&void 0!==n?n:[],workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:!!t.trackUserInteractions,trackViewsManually:!!t.trackViewsManually,trackResources:!!t.trackResources,trackLongTasks:!!t.trackLongTasks,subdomain:t.subdomain,defaultPrivacyLevel:j(ge,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:ge.MASK,customerDataTelemetrySampleRate:1,traceContextInjection:j(_e,t.traceContextInjection)?t.traceContextInjection:_e.ALL},i)}}
1else u.error("Excluded Activity Urls should be an array");else u.error("Trace Sample Rate should be a number between 0 and 100");else u.error("Session Replay Sample Rate should be a number between 0 and 100");else u.error("Application ID is not configured, no RUM data will be collected.")}(t);r&&(e||r.sessionStoreStrategyType?r.compressIntakeRequests&&!e&&l&&!(o=l(r,"Datadog RUM",ct))||(s=r,n.tryToInit(r.trackingConsent),p()):u.warn("No storage available for session. We will not send any data."))}}else u.error("Missing configuration")},get initConfiguration(){return a},getInternalContext:ct,stopSession:ct,addTiming:function(t,e){void 0===e&&(e=T()),d.add((function(n){return n.addTiming(t,e)}))},startView:function(t,e){void 0===e&&(e=x());var n=function(n){n.startView(t,e)};d.add(n),i||(i={options:t,callback:n},p())},addAction:function(t,n){void 0===n&&(n=e()),d.add((function(e){return e.addAction(t,n)}))},addError:function(t,n){void 0===n&&(n=e()),d.add((function(e){return e.addError(t,n)}))},addFeatureFlagEvaluation:function(t,e){d.add((function(n){return n.addFeatureFlagEvaluation(t,e)}))},startDurationVital:function(t){d.add((function(e){return e.startDurationVital(t)}))},stopDurationVital:function(t){d.add((function(e){return e.stopDurationVital(t)}))}}}function Er(){var t,e=window;if(e.Zone&&(t=Y(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=Y(new e.MutationObserver(ct),"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}var Cr="initial_document",Tr=[["document",function(t){return Cr===t}],["xhr",function(t){return"xmlhttprequest"===t}],["fetch",function(t){return"fetch"===t}],["beacon",function(t){return"beacon"===t}],["css",function(t,e){return/\.css$/i.test(e)}],["js",function(t,e){return/\.js$/i.test(e)}],["image",function(t,e){return D(["image","img","icon"],t)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(e)}],["font",function(t,e){return null!==/\.(woff|eot|woff2|ttf)$/i.exec(e)}],["media",function(t,e){return D(["audio","video"],t)||null!==/\.(mp3|mp4)$/i.exec(e)}]];function kr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=1;n<t.length;n+=1)if(t[n-1]>t[n])return!1;return!0}function xr(t){var e=Ar(t);if(e){var n=e.startTime,r=e.fetchStart,i=e.redirectStart,o=e.redirectEnd,a=e.domainLookupStart,s=e.domainLookupEnd,u=e.connectStart,c=e.secureConnectionStart,l=e.connectEnd,d=e.requestStart,f=e.responseStart,p={download:Rr(n,f,e.responseEnd),first_byte:Rr(n,d,f)};return r<l&&(p.connect=Rr(n,u,l),u<=c&&c<=l&&(p.ssl=Rr(n,c,l))),r<s&&(p.dns=Rr(n,a,s)),n<o&&(p.redirect=Rr(n,i,o)),p}}function Ar(t){if(d(a.TOLERANT_RESOURCE_TIMINGS))return t;var e=kr(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!function(t){return t.redirectEnd>t.startTime}(t)||kr(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n?t:void 0}function Rr(t,e,n){if(t<=e&&e<=n)return{duration:E(R(e,n)),start:E(R(t,e))}}function Ir(t){if(t.startTime<t.responseStart){var e=t.encodedBodySize,n=t.decodedBodySize;return{size:n,encoded_body_size:e,decoded_body_size:n,transfer_size:t.transferSize}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}function Or(t,e){return e&&!t.isIntakeUrl(e)}var Nr=/data:(.+)?(;base64)?,/g,Lr=24e3;function Mr(t){return!(t.length<=Lr||"data:"!==t.substring(0,5)||(t=t.substring(0,Lr),0))}function Pr(t){return"".concat(t.match(Nr)[0],"[...]")}function Ur(t){return t.nodeType===Node.TEXT_NODE}function Dr(t){return t.nodeType===Node.ELEMENT_NODE}function zr(t){return Dr(t)&&Boolean(t.shadowRoot)}function Br(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Dr(e.host)}function Fr(t,e){for(var n=t.firstChild;n;)e(n),n=n.nextSibling;zr(t)&&e(t.shadowRoot)}function Vr(t){return Br(t)?t.host:t.parentNode}var Hr,Gr=2*_;function qr(t){var e=function(t){var e=t.querySelector("meta[name=dd-trace-id]"),n=t.querySelector("meta[name=dd-trace-time]");return jr(e&&e.content,n&&n.content)}(t)||function(t){var e=function(t){for(var e=0;e<t.childNodes.length;e+=1)if(n=Zr(t.childNodes[e]))return n;if(t.body)for(e=t.body.childNodes.length-1;e>=0;e-=1){var n,r=t.body.childNodes[e];if(n=Zr(r))return n;if(!Ur(r))break}}(t);if(e)return jr(ht(e,"trace-id"),ht(e,"trace-time"))}(t);if(e&&!(e.traceTime<=C()-Gr))return e.traceId}function jr(t,e){var n=e&&Number(e);if(t&&n)return{traceId:t,traceTime:n}}function Zr(t){if(t&&function(t){return t.nodeType===Node.COMMENT_NODE}(t)){var e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}function Kr(){return void 0!==window.performance&&"getEntries"in performance}function Yr(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function Wr(t,e){var n=[];if(function(t,e){Wn(t,"interactive",(function(){var t,n={entryType:Hr.RESOURCE,initiatorType:Cr,traceId:qr(document),toJSON:function(){return G({},t,{toJSON:void 0})}};if(Yr(Hr.NAVIGATION)&&performance.getEntriesByType(Hr.NAVIGATION).length>0){var r=performance.getEntriesByType(Hr.NAVIGATION)[0];t=G(r.toJSON(),n)}else{var i=Xr();t=G(i,{decodedBodySize:0,encodedBodySize:0,transferSize:0,renderBlockingStatus:"non-blocking",duration:i.responseEnd,name:window.location.href,startTime:0},n)}e(t)}))}(e,(function(n){Jr(t,e,[n])})),Kr()){var r=performance.getEntries();nt((function(){return Jr(t,e,r)}))}if(window.PerformanceObserver){var i=Q((function(n){return Jr(t,e,n.getEntries())})),o=[Hr.RESOURCE,Hr.NAVIGATION,Hr.LONG_TASK,Hr.PAINT],a=[Hr.LARGEST_CONTENTFUL_PAINT,Hr.FIRST_INPUT,Hr.LAYOUT_SHIFT,Hr.EVENT];try{a.forEach((function(t){var e=new window.PerformanceObserver(i);e.observe({type:t,buffered:!0,durationThreshold:40}),n.push((function(){return e.disconnect()}))}))}catch(t){o.push.apply(o,a)}var s=new PerformanceObserver(i);if(s.observe({entryTypes:o}),n.push((function(){return s.disconnect()})),Kr()&&"addEventListener"in performance){var u=Je(e,performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()})).stop;n.push(u)}}if(Yr(Hr.NAVIGATION)||function(t,e){function n(){e(G(Xr(),{entryType:Hr.NAVIGATION}))}Wn(t,"complete",(function(){nt(n)}))}(e,(function(n){Jr(t,e,[n])})),!Yr(Hr.FIRST_INPUT)){var c=function(t,e){var n=C(),r=!1,i=$e(t,window,[Ke.CLICK,Ke.MOUSE_DOWN,Ke.KEY_DOWN,Ke.TOUCH_START,Ke.POINTER_DOWN],(function(e){if(e.cancelable){var n={entryType:Hr.FIRST_INPUT,processingStart:k(),processingEnd:k(),startTime:e.timeStamp,duration:0,name:""};e.type===Ke.POINTER_DOWN?function(t,e){$e(t,window,[Ke.POINTER_UP,Ke.POINTER_CANCEL],(function(t){t.type===Ke.POINTER_UP&&o(e)}),{once:!0})}(t,n):o(n)}}),{passive:!0,capture:!0}).stop;return{stop:i};function o(t){if(!r){r=!0,i();var o=t.processingStart-t.startTime;o>=0&&o<C()-n&&e(t)}}}(e,(function(n){Jr(t,e,[n])})).stop;n.push(c)}
1return{stop:function(){n.forEach((function(t){return t()}))}}}function Xr(){var t={},e=performance.timing;for(var n in e)if(h(e[n])){var r=n,i=e[r];t[r]=0===i?0:O(i)}return t}function Jr(t,e,n){var r=n.filter((function(t){return j(Hr,t.entryType)})).filter((function(t){return!function(t){return t.entryType===Hr.NAVIGATION&&t.loadEventEnd<=0}(t)&&!function(t,e){return e.entryType===Hr.RESOURCE&&!Or(t,e.name)}(e,t)}));r.length&&t.notify(0,r)}function $r(t,e,n){for(var r=t,i=e.split("."),o=0;o<i.length;o+=1){var a=i[o];if(!Qr(r))return;o!==i.length-1?r=r[a]:r[a]=n}}function Qr(t){return"object"===nn(t)}function ti(t,e){return Qr(t)&&Object.prototype.hasOwnProperty.call(t,e)}!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.NAVIGATION="navigation",t.PAINT="paint",t.RESOURCE="resource"}(Hr||(Hr={}));var ei,ni={"view.name":"string","view.url":"string","view.referrer":"string"},ri={context:"object"};function ii(t,e,n,r,i,o,s,c,l,f){var v,h;(v={}).view=ni,v.error=G({"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string"},ri,ni),v.resource=G({"resource.url":"string"},d(a.WRITABLE_RESOURCE_GRAPHQL)&&{"resource.graphql":"object"},ri,ni),v.action=G({"action.target.name":"string"},ri,ni),v.long_task=G({},ri,ni),v.vital=G({},ri,ni),ei=v;var m=((h={}).error=Yn("error",t.eventRateLimiterThreshold,f),h.action=Yn("action",t.eventRateLimiterThreshold,f),h.vital=Yn("vital",t.eventRateLimiterThreshold,f),h),g=function(){var t,e="string"==typeof(t=window._DATADOG_SYNTHETICS_PUBLIC_ID||bt(cr))?t:void 0,n=function(){var t=window._DATADOG_SYNTHETICS_RESULT_ID||bt(lr);return"string"==typeof t?t:void 0}();if(e&&n)return{test_id:e,result_id:n,injected:fr()}}();e.subscribe(12,(function(a){var d,f=a.startTime,v=a.rawRumEvent,h=a.domainContext,_=a.savedCommonContext,y=a.customerContext,b=r.findView(f),w=i.findUrl(f),S=n.findTrackedSession(f);if(S&&b&&w){var E=_||l(),k=o.findActionId(f),x=an({_dd:{format_version:2,drift:Math.round(C()-I(N(),performance.now())),configuration:{session_sample_rate:p(t.sessionSampleRate,3),session_replay_sample_rate:p(t.sessionReplaySampleRate,3)},browser_sdk_version:Fn()?"5.17.1":void 0},application:{id:t.applicationId},date:T(),service:b.service||t.service,version:b.version||t.version,source:"browser",session:{id:S.id,type:g?"synthetics":c.get()?"ci_test":"user"},view:{id:b.id,name:b.name,url:w.url,referrer:w.referrer},action:(d=v,-1!==["error","resource","long_task"].indexOf(d.type)&&k?{id:k}:void 0),synthetics:g,ci_test:c.get(),display:s.get(),connectivity:sn()},v);x.context=an(E.context,y),"has_replay"in x.session||(x.session.has_replay=E.hasReplay),"view"===x.type&&(x.session.sampled_for_replay=S.sessionReplayAllowed),Z(E.user)||(x.usr=E.user),function(t,e,n,r){var i;if(e){var o=function(t,e,n){var r=on(t),i=n(r);return V(e).forEach((function(e){var n=e[0],i=e[1],o=function(t,e){for(var n=t,r=0,i=e.split(".");r<i.length;r++){var o=i[r];if(!ti(n,o))return;n=n[o]}return n}(r,n),a=nn(o);a===i?$r(t,n,De(o)):"object"!==i||"undefined"!==a&&"null"!==a||$r(t,n,{})})),i}(t,ei[t.type],(function(t){return e(t,n)}));if(!1===o&&"view"!==t.type)return!1;!1===o&&u.warn("Can't dismiss view events using beforeSend!")}return!(null===(i=r[t.type])||void 0===i?void 0:i.isLimitReached())}(x,t.beforeSend,h,m)&&(Z(x.context)&&delete x.context,e.notify(13,x))}}))}var oi=Kn,ai=Et,si=1;function ui(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:mr,traceFetch:function(n){return gr(t,n,e,(function(t){var e;if(n.input instanceof Request&&!(null===(e=n.init)||void 0===e?void 0:e.headers))n.input=new Request(n.input),Object.keys(t).forEach((function(e){n.input.headers.append(e,t[e])}));else{n.init=q(n.init);var r=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(t,e){r.push([e,t])})):Array.isArray(n.init.headers)?n.init.headers.forEach((function(t){r.push(t)})):n.init.headers&&Object.keys(n.init.headers).forEach((function(t){r.push([t,n.init.headers[t]])})),n.init.headers=r.concat(V(t))}}))},traceXhr:function(n,r){return gr(t,n,e,(function(t){Object.keys(t).forEach((function(e){r.setRequestHeader(e,t[e])}))}))}}}(e,n);!function(t,e,n){(function(t){return Zn||(Zn=function(t){return new at((function(e){var n=be(XMLHttpRequest.prototype,"open",$n).stop,r=be(XMLHttpRequest.prototype,"send",(function(n){!function(t,e,n){var r=t.target,i=Jn.get(r);if(i){var o=i;o.state="start",o.startClocks=x(),o.isAborted=!1,o.xhr=r;var a=!1,s=be(r,"onreadystatechange",(function(){r.readyState===XMLHttpRequest.DONE&&u()})).stop,u=function(){if(c(),s(),!a){a=!0;var t=i;t.state="complete",t.duration=R(o.startClocks.timeStamp,T()),t.status=r.status,n.notify(q(t))}},c=Je(e,r,"loadend",u).stop;n.notify(o)}}(n,t,e)})).stop,i=be(XMLHttpRequest.prototype,"abort",Qn).stop;return function(){n(),r(),i()}}))}(t)),Zn})(e).subscribe((function(r){var i=r;if(Or(e,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=ci(),t.notify(7,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),t.notify(8,{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})}}))}(t,e,r),function(t,e,n){(Xn||(Xn=new at((function(t){if(window.fetch){var e=be(window,"fetch",(function(e){return function(t,e){var n=t.parameters,r=t.onPostCall,i=n[0],o=n[1],a=o&&o.method;void 0===a&&i instanceof Request&&(a=i.method);var s=void 0!==a?String(a).toUpperCase():"GET",u=i instanceof Request?i.url:re(String(i)),c={state:"start",init:o,input
1:i,method:s,startClocks:x(),url:u};e.notify(c),n[0]=c.input,n[1]=c.init,r((function(t){return function(t,e,n){var r=function(e){var r=n;r.state="resolve","stack"in e||e instanceof Error?(r.status=0,r.isAborted=e instanceof DOMException&&e.code===DOMException.ABORT_ERR,r.error=e):"status"in e&&(r.response=e,r.responseType=e.type,r.status=e.status,r.isAborted=!1),t.notify(r)};e.then(Q(r),Q(r))}(e,t,c)}))}(e,t)})).stop;return e}}))),Xn).subscribe((function(r){var i=r;if(Or(e,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=ci(),t.notify(7,{requestIndex:i.requestIndex,url:i.url});break;case"resolve":!function(t,e){var n=t.response&&function(t){try{return t.clone()}catch(t){return}}(t.response);n&&n.body?function(t,e,n){var r=t.getReader(),i=[],o=0;function a(){if(r.cancel().catch(ct),n.collectStreamBody){var t;if(1===i.length)t=i[0];else{t=new Uint8Array(o);var a=0;i.forEach((function(e){t.set(e,a),a+=e.length}))}t.slice(0,n.bytesLimit),t.length>n.bytesLimit}e()}!function t(){r.read().then(Q((function(e){e.done?a():(n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?a():t())})),Q((function(t){return e()})))}()}(n.body,(function(){e(R(t.startClocks.timeStamp,T()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e(R(t.startClocks.timeStamp,T()))}(i,(function(e){n.clearTracingIfNeeded(i),t.notify(8,{duration:e,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})}))}}))}(t,e,r)}function ci(){var t=si;return si+=1,t}function li(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange,i=void 0===r?ct:r,o={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},a=e.subscribe(13,(function(t){var e;if("view"!==t.type&&"vital"!==t.type&&n(t))switch(t.type){case"error":o.errorCount+=1,i();break;case"action":o.actionCount+=1,t.action.frustration&&(o.frustrationCount+=t.action.frustration.type.length),i();break;case"long_task":o.longTaskCount+=1,i();break;case"resource":(null===(e=t._dd)||void 0===e?void 0:e.discarded)||(o.resourceCount+=1,i())}}));return{stop:function(){a.unsubscribe()},eventCounts:o}}var di=100,fi=100;function pi(t,e,n,r,i){var o=function(t,e,n){return new at((function(r){var i,o=[],a=0;o.push(e.subscribe(c),t.subscribe(0,(function(t){t.some((function(t){return t.entryType===Hr.RESOURCE&&!vi(n,t.name)}))&&c()})),t.subscribe(7,(function(t){vi(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,c())})),t.subscribe(8,(function(t){vi(n,t.url)||void 0===i||t.requestIndex<i||(a-=1,c())})));var s,u=(s=c,be(window,"open",s)).stop;return function(){u(),o.forEach((function(t){return t.unsubscribe()}))};function c(){r.notify({isBusy:a>0})}}))}(t,e,n);return function(t,e,n){var r,i=!1,o=nt(Q((function(){return c({hadActivity:!1})})),di),a=void 0!==n?nt(Q((function(){return c({hadActivity:!0,end:T()})})),n):void 0,s=t.subscribe((function(t){var e=t.isBusy;rt(o),rt(r);var n=T();e||(r=nt(Q((function(){return c({hadActivity:!0,end:n})})),fi))})),u=function(){i=!0,rt(o),rt(r),rt(a),s.unsubscribe()};function c(t){i||(u(),e(t))}return{stop:u}}(o,r,i)}function vi(t,e){return hr(t.excludedActivityUrls,e)}function hi(t){return window.CSS&&window.CSS.escape?window.CSS.escape(t):t.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,(function(t,e){return e?"\0"===t?"�":"".concat(t.slice(0,-1),"\\").concat(t.charCodeAt(t.length-1).toString(16)," "):"\\".concat(t)}))}function mi(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}var gi="data-dd-action-name";function _i(t,e){var n;if(void 0===bi&&(bi="closest"in HTMLElement.prototype),bi)n=t.closest("[".concat(e,"]"));else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=mi(r)}if(n)return ki(Ti(n.getAttribute(e).trim()))}var yi,bi,wi=[function(t,e){if(void 0===yi&&(yi="labels"in HTMLInputElement.prototype),yi){if("labels"in t&&t.labels&&t.labels.length>0)return xi(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&B(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return n&&xi(n,e)}},function(t){if("INPUT"===t.nodeName){var e=t,n=e.getAttribute("type");if("button"===n||"submit"===n||"reset"===n)return e.value}},function(t,e){if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return xi(t,e)},function(t){return t.getAttribute("aria-label")},function(t,e){var n=t.getAttribute("aria-labelledby");if(n)return n.split(/\s+/).map((function(e){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)})).filter((function(t){return Boolean(t)})).map((function(t){return xi(t,e)})).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 xi(t.options[0],e)}],Si=[function(t,e){return xi(t,e)}],Ei=10;function Ci(t,e,n){for(var r=t,i=0;
1i<=Ei&&r&&"BODY"!==r.nodeName&&"HTML"!==r.nodeName&&"HEAD"!==r.nodeName;){for(var o=0,a=n;o<a.length;o++){var s=(0,a[o])(r,e);if("string"==typeof s){var u=s.trim();if(u)return ki(Ti(u))}}if("FORM"===r.nodeName)break;r=mi(r),i+=1}}function Ti(t){return t.replace(/\s+/g," ")}function ki(t){return t.length>100?"".concat(mt(t,100)," [...]"):t}function xi(t,e){if(!t.isContentEditable){if("innerText"in t){var n=t.innerText,r=function(e){for(var r=t.querySelectorAll(e),i=0;i<r.length;i+=1){var o=r[i];if("innerText"in o){var a=o.innerText;a&&a.trim().length>0&&(n=n.replace(a,""))}}};return 0===gt()&&r("script, style"),r("[".concat(gi,"]")),e&&r("[".concat(e,"]")),n}return t.textContent}}var Ai,Ri=[gi,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],Ii=[Mi,function(t){if(t.id&&!Li(t.id))return"#".concat(hi(t.id))}],Oi=[Mi,function(t){if("BODY"!==t.tagName)for(var e=function(t){var e;if(t.classList)return t.classList;var n=null===(e=t.getAttribute("class"))||void 0===e?void 0:e.trim();return n?n.split(/\s+/):[]}(t),n=0;n<e.length;n+=1){var r=e[n];if(!Li(r))return"".concat(hi(t.tagName),".").concat(hi(r))}},function(t){return hi(t.tagName)}];function Ni(t,e){for(var n="",r=t;r&&"HTML"!==r.nodeName;){var i=Ui(r,Ii,Di,e,n);if(i)return i;n=Ui(r,Oi,zi,e,n)||Bi(Pi(r),n),r=mi(r)}return n}function Li(t){return/[0-9]/.test(t)}function Mi(t,e){if(e&&(i=o(e)))return i;for(var n=0,r=Ri;n<r.length;n++){var i;if(i=o(r[n]))return i}function o(e){if(t.hasAttribute(e))return"".concat(hi(t.tagName),"[").concat(e,'="').concat(hi(t.getAttribute(e)),'"]')}}function Pi(t){for(var e=mi(t).firstElementChild,n=1;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;return"".concat(hi(t.tagName),":nth-of-type(").concat(n,")")}function Ui(t,e,n,r,i){for(var o=0,a=e;o<a.length;o++){var s=(0,a[o])(t,r);if(s){var u=Bi(s,i);if(n(t,u))return u}}}function Di(t,e){return 1===t.ownerDocument.querySelectorAll(e).length}function zi(t,e){return 1===mi(t).querySelectorAll(function(){if(void 0===Ai)try{document.querySelector(":scope"),Ai=!0}catch(t){Ai=!1}return Ai}()?Bi(":scope",e):e).length}function Bi(t,e){return e?"".concat(t,">").concat(e):t}var Fi=g,Vi=100;function Hi(){var t=window.getSelection();return!t||t.isCollapsed}function Gi(t){return t.target instanceof Element&&!1!==t.isPrimary}var qi=3;var ji='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 Zi(t){return!(t.hasPageActivity||t.getUserActivity().input||t.getUserActivity().scroll||(e=t.event.target,n=ji,e.matches?e.matches(n):e.msMatchesSelector&&e.msMatchesSelector(n)));var e,n}var Ki=10*g,Yi=5*_;function Wi(t,e,n){var r,i=new wn(Yi),o=new at;t.subscribe(10,(function(){i.reset()})),t.subscribe(5,u);var a=function(t,e){var n,r,i=e.onPointerDown,o=e.onPointerUp,a={selection:!1,input:!1,scroll:!1},s=[Je(t,window,Ke.POINTER_DOWN,(function(t){Gi(t)&&(n=Hi(),a={selection:!1,input:!1,scroll:!1},r=i(t))}),{capture:!0}),Je(t,window,Ke.SELECTION_CHANGE,(function(){n&&Hi()||(a.selection=!0)}),{capture:!0}),Je(t,window,Ke.SCROLL,(function(){a.scroll=!0}),{capture:!0,passive:!0}),Je(t,window,Ke.POINTER_UP,(function(t){if(Gi(t)&&r){var e=a;o(r,t,(function(){return e})),r=void 0}}),{capture:!0}),Je(t,window,Ke.INPUT,(function(){a.input=!0}),{capture:!0})];return{stop:function(){s.forEach((function(t){return t.stop()}))}}}(n,{onPointerDown:function(r){return function(t,e,n,r){var i,o,a,s,u,c=(a=r,s=t.actionNameAttribute,u=a.target.getBoundingClientRect(),{type:"click",target:{width:Math.round(u.width),height:Math.round(u.height),selector:Ni(a.target,s)},position:{x:Math.round(a.clientX-u.left),y:Math.round(a.clientY-u.top)},name:(i=a.target,o=s,_i(i,gi)||o&&_i(i,o)||Ci(i,o,wi)||Ci(i,o,Si)||"")}),l=!1;return pi(e,n,t,(function(t){l=t.hadActivity}),di),{clickActionBase:c,hadActivityOnPointerDown:function(){return l}}}(n,t,e,r)},onPointerUp:function(r,a,u){var c=r.clickActionBase,l=r.hadActivityOnPointerDown;return function(t,e,n,r,i,o,a,s,u,c){var l=Xi(e,r,u,a,s);o(l);var d=pi(e,n,t,(function(t){t.hadActivity&&t.end<l.startClocks.timeStamp?l.discard():t.hadActivity?l.stop(t.end):c()?l.stop(l.startClocks.timeStamp):l.stop()}),Ki).stop,f=e.subscribe(5,(function(t){var e=t.endClocks;l.stop(e.timeStamp)}
1)),p=i.subscribe((function(){l.stop()}));l.stopObservable.subscribe((function(){f.unsubscribe(),d(),p.unsubscribe()}))}(n,t,e,i,o,s,c,a,u,l)}}).stop;return{stop:function(){u(),o.notify(),a()},actionContexts:{findActionId:function(t){return i.findAll(t)}}};function s(t){if(!r||!r.tryAppend(t)){var e=t.clone();r=function(t,e){var n,r=[],i=0;function o(t){t.stopObservable.subscribe(a),r.push(t),rt(n),n=nt(s,Fi)}function a(){1===i&&r.every((function(t){return t.isStopped()}))&&(i=2,e(r))}function s(){rt(n),0===i&&(i=1,a())}return o(t),{tryAppend:function(t){return 0===i&&(r.length>0&&(e=r[r.length-1].event,n=t.event,!(e.target===n.target&&(a=e,u=n,Math.sqrt(Math.pow(a.clientX-u.clientX,2)+Math.pow(a.clientY-u.clientY,2))<=Vi)&&e.timeStamp-n.timeStamp<=Fi))?(s(),!1):(o(t),!0));var e,n,a,u},stop:function(){s()}}}(t,(function(t){!function(t,e){var n=function(t,e){if(function(t){if(t.some((function(t){return t.getUserActivity().selection||t.getUserActivity().scroll})))return!1;for(var e=0;e<t.length-(qi-1);e+=1)if(t[e+qi-1].event.timeStamp-t[e].event.timeStamp<=g)return!0;return!1}(t))return e.addFrustration("rage_click"),t.some(Zi)&&e.addFrustration("dead_click"),e.hasError&&e.addFrustration("error_click"),{isRage:!0};var n=t.some((function(t){return t.getUserActivity().selection}));return t.forEach((function(t){t.hasError&&t.addFrustration("error_click"),Zi(t)&&!n&&t.addFrustration("dead_click")})),{isRage:!1}}(t,e).isRage;n?(t.forEach((function(t){return t.discard()})),e.stop(T()),e.validate(t.map((function(t){return t.event})))):(e.discard(),t.forEach((function(t){return t.validate()})))}(t,e)}))}}function u(){r&&r.stop()}}function Xi(t,e,n,r,i){var o,a=lt(),s=x(),u=e.add(a,s.relative),c=li({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(Array.isArray(t.action.id)?D(t.action.id,a):t.action.id===a)}}),l=0,d=[],f=new at;function p(t){0===l&&(l=1,(o=t)?u.close(O(o)):u.remove(),c.stop(),f.notify())}return{event:i,stop:p,stopObservable:f,get hasError(){return c.eventCounts.errorCount>0},get hasPageActivity(){return void 0!==o},getUserActivity:n,addFrustration:function(t){d.push(t)},startClocks:s,isStopped:function(){return 1===l||2===l},clone:function(){return Xi(t,e,n,r,i)},validate:function(e){if(p(),1===l){var n=c.eventCounts,u=n.resourceCount,f=n.errorCount,v=n.longTaskCount,h=G({type:"click",duration:o&&R(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:d,counts:{resourceCount:u,errorCount:f,longTaskCount:v},events:null!=e?e:[i],event:i},r);t.notify(1,h),l=2}},discard:function(){p(),l=2}}}function Ji(t,e){var n=$i(t)?{action:{id:t.id,loading_time:E(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;return{customerContext:$i(t)?void 0:t.context,rawRumEvent:an({action:{id:lt(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:"action",view:{in_foreground:e.wasInPageStateAt("active",t.startClocks.relative)}},n),startTime:t.startClocks.relative,domainContext:$i(t)?{events:t.events}:{}}}function $i(t){return"custom"!==t.type}function Qi(t,e,n,o){var a=new at;return function(t){var e,n;(e=[r.error],n=e.map((function(t){return tr[t]||(tr[t]=function(t){return new at((function(e){var n=i[t];return i[t]=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n.apply(console,i);var a=Fe();tt((function(){e.notify(function(t,e,n){var i,o,a,s=t.map((function(t){return function(t){return"string"==typeof t?De(t):t instanceof Error?He(Ee(t)):ee(De(t),void 0,2)}(t)})).join(" ");if(e===r.error){var u=B(t,(function(t){return t instanceof Error}));i=u?Ve(Ee(u)):void 0,o=je(u),a=u?Ze(u,"console"):void 0}return{api:e,message:s,stack:i,handlingStack:n,fingerprint:o,causes:a}}(i,t,a))}))},function(){i[t]=n}}))}(t)),tr[t]})),st.apply(void 0,n)).subscribe((function(e){return t.notify({startClocks:x(),message:e.message,stack:e.stack,fingerprint:e.fingerprint,source:Ye.CONSOLE,handling:"handled",handlingStack:e.handlingStack})}))}(a),We(a),function(t,e){(function(t,e){var n=[];D(e,Qe.cspViolation)&&n.push(function(t){return new at((function(e){return Je(t,document,Ke.SECURITY_POLICY_VIOLATION,(function(t){e.notify(function(t){var e=Qe.cspViolation,n="'".concat(t.blockedURI,"' blocked by '").concat(t.effectiveDirective,"' directive");return{type:Qe.cspViolation,subtype:t.effectiveDirective,message:"".concat(e,": ").concat(n),stack:tn(t.effectiveDirective,t.originalPolicy?"".concat(n,' of the policy "').concat(mt(t.originalPolicy,100,"..."),'"'):"no policy",t.sourceFile,t.lineNumber,t.columnNumber),originalReport:t}}(t))})).stop}))}(t));var r=e.filter((function(t){return t!==Qe.cspViolation}));return r.length&&n.push(function(t){return new at((function(e){if(window.ReportingObserver){var n=Q((function(t,n){return t.forEach((function(t){e.notify(function(t){var e=t.type,n=t.body;return{type:e,subtype:n.id,message:"".concat(e,": ").concat(n.message),originalReport:t,stack:tn(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)}}(t))}))})),r=new window.ReportingObserver(n,{types:t,buffered:!0});return r.observe(),function(){r.disconnect()}}}))}(r)),st.apply(void 0,n)})(t,[Qe.cspViolation,Qe.intervention]).subscribe((function(t){var n={startClocks:x(),message:t.message,stack:t.stack,type:t.subtype,source:Ye.REPORT,handling:"unhandled",originalError:t.originalReport};return"securitypolicyviolation"===t.originalReport.type&&(n.csp={dis
1position:t.originalReport.disposition}),e.notify(n)}))}(e,a),a.subscribe((function(e){return t.notify(14,{error:e})})),function(t,e,n){return t.subscribe(14,(function(r){var i=r.error,o=r.customerContext,a=r.savedCommonContext;t.notify(12,G({customerContext:o,savedCommonContext:a},function(t,e,n){var r={date:t.startClocks.timeStamp,error:{id:lt(),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)}},i=n.findFeatureFlagEvaluations(t.startClocks.relative);return i&&!Z(i)&&(r.feature_flags=i),{rawRumEvent:r,startTime:t.startClocks.relative,domainContext:{error:t.originalError}}}(i,e,n)))})),{addError:function(e,n){var r=e.error,i=e.handlingStack,o=e.startClocks,a=e.context,s=qe({stackTrace:r instanceof Error?Ee(r):void 0,originalError:r,handlingStack:i,startClocks:o,nonErrorPrefix:"Provided",source:Ye.CUSTOM,handling:"handled"});t.notify(14,{customerContext:a,savedCommonContext:n,error:s})}}}(t,n,o)}function to(t){return I(t.startTime,t.duration)}function eo(t,e,n,r){t.subscribe(8,(function(i){var o=function(t,e,n,r){var i,o=function(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n=e.map((function(t){return t.toJSON()})).filter(Ar).filter((function(e){return n=e,r=t.startClocks.relative,i=to({startTime:t.startClocks.relative,duration:t.duration}),n.startTime>=r-1&&to(n)<=I(i,1);var n,r,i}));return 1===n.length?n[0]:void 0}}}(t),a=o?w(o.startTime):t.startClocks,s=ro(e,n,a),u=function(t,e){if(t.traceSampled&&t.traceId&&t.spanId)return{_dd:{span_id:t.spanId.toDecimalString(),trace_id:t.traceId.toDecimalString(),rule_psr:oo(e)}}}(t,e);if(s||u){var c="xhr"===t.type?"xhr":"fetch",l=o?io(o):void 0,d=function(t,e,n){return t.wasInPageStateDuringPeriod("frozen",e.relative,n)?void 0:E(n)}(r,a,t.duration),f=ao(r,a,null!==(i=null==o?void 0:o.duration)&&void 0!==i?i:t.duration),p=an({date:a.timeStamp,resource:{id:lt(),type:c,duration:d,method:t.method,status_code:t.status,url:Mr(t.url)?Pr(t.url):t.url},type:"resource",_dd:{discarded:!s}},u,l,f);return{startTime:a.relative,rawRumEvent:p,domainContext:{performanceEntry:o,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error,isAborted:t.isAborted}}}}(i,e,n,r);o&&t.notify(12,o)})),t.subscribe(0,(function(i){for(var o=0,a=i;o<a.length;o++){var s=a[o];if(s.entryType===Hr.RESOURCE&&"xmlhttprequest"!==(c=s).initiatorType&&"fetch"!==c.initiatorType){var u=no(s,e,n,r);u&&t.notify(12,u)}}var c}))}function no(t,e,n,r){var i=w(t.startTime),o=ro(e,n,i),a=function(t,e){if(t.traceId)return{_dd:{trace_id:t.traceId,rule_psr:oo(e)}}}(t,e);if(o||a){var s,u=function(t){var e=t.name;if(!function(t){try{return!!ie(t)}catch(t){return!1}}(e))return pn('Failed to construct URL for "'.concat(t.name,'"')),"other";for(var n=function(t){var e=ie(t).pathname;return"/"===e[0]?e:"/".concat(e)}(e),r=0,i=Tr;r<i.length;r++){var o=i[r],a=o[0];if((0,o[1])(t.initiatorType,n))return a}return"other"}(t),c=io(t),l=ao(r,i,t.duration),d=an({date:i.timeStamp,resource:{id:lt(),type:u,url:t.name,status_code:(s=t.responseStatus,0===s?void 0:s)},type:"resource",_dd:{discarded:!o}},a,c,l);return{startTime:i.relative,rawRumEvent:d,domainContext:{performanceEntry:t}}}}function ro(t,e,n){return t.trackResources&&e.findTrackedSession(n.relative)}function io(t){var e,n,r,i,o=t.renderBlockingStatus;return{resource:G({duration:(e=t,n=e.duration,r=e.startTime,i=e.responseEnd,E(0===n&&r<i?R(r,i):n)),render_blocking_status:o},Ir(t),xr(t))}}function oo(t){return h(t.traceSampleRate)?t.traceSampleRate/100:void 0}function ao(t,e,n){if(d(a.RESOURCE_PAGE_STATES))return{_dd:{page_states:t.findAll(e.relative,n),page_was_discarded:String(document.wasDiscarded)}}}var so,uo,co=10*_,lo=10*_,fo=!1;function po(t){var e=t.toJSON();return delete e.element,e}function vo(t,e,n,r){var i={},o=function(t,e){return{stop:t.subscribe(0,(function(t){for(var e=0,o=t;e<o.length;e++){var a=o[e];a.entryType===Hr.NAVIGATION&&(s={domComplete:a.domComplete,domContentLoaded:a.domContentLoadedEventEnd,domInteractive:a.domInteractive,loadEvent:a.loadEventEnd,firstByte:a.responseStart>=0&&a.responseStart<=k()?a.responseStart:void 0},n(s.loadEvent),i.navigationTimings=s,r())}var s})).unsubscribe}}(t).stop,s=function(t,e){var n,r;return void 0===e&&(e=window),"hidden"===document.visibilityState?n=0:(n=1/0,r=$e(t,e,[Ke.PAGE_HIDE,Ke.VISIBILITY_CHANGE],(function(t){t.type!==Ke.PAGE_HIDE&&"hidden"
1!==document.visibilityState||(n=t.timeStamp,r())}),{capture:!0}).stop),{get timeStamp(){return n},stop:function(){null==r||r()}}}(e),u=function(t,e,n){return{stop:t.subscribe(0,(function(t){var n,o=B(t,(function(t){return t.entryType===Hr.PAINT&&"first-contentful-paint"===t.name&&t.startTime<e.timeStamp&&t.startTime<co}));o&&(n=o.startTime,i.firstContentfulPaint=n,r())})).unsubscribe}}(t,s).stop,c=function(t,e,n,r,i){var o=1/0,s=$e(e,r,[Ke.POINTER_DOWN,Ke.KEY_DOWN],(function(t){o=t.timeStamp}),{capture:!0,once:!0}).stop,u=0,c=t.subscribe(0,(function(t){var r=function(t,e){for(var r=t.length-1;r>=0;r-=1){var i=t[r];if((a=i).entryType===Hr.LARGEST_CONTENTFUL_PAINT&&a.startTime<o&&a.startTime<n.timeStamp&&a.startTime<lo&&a.size>u)return i}var a}(t);if(r){var s=void 0;r.element&&(s=Ni(r.element,e.actionNameAttribute)),d(a.ZERO_LCP_TELEMETRY)&&function(t,e){if(!fo){var n=0===t.startTime?"LCP with startTime = 0":void 0!==so&&t.startTime<so.startTime?"LCP with startTime < previous LCP":void 0!==so&&t.size<so.size?"LCP with size < previous LCP":void 0;n&&(fo=!0,pn(n,{debug:{entry:po(t),previousLcp:so,timeOrigin:performance.timeOrigin,now:k(),lcpEntries:e.map(po)}})),so=po(t)}}(r,t.filter((function(t){return t.entryType===Hr.LARGEST_CONTENTFUL_PAINT}))),i({value:r.startTime,targetSelector:s}),u=r.size}})).unsubscribe;return{stop:function(){s(),c()}}}(t,e,s,window,(function(t){i.largestContentfulPaint=t,r()})).stop,l=function(t,e,n,o){return{stop:t.subscribe(0,(function(t){var o,a=B(t,(function(t){return t.entryType===Hr.FIRST_INPUT&&t.startTime<n.timeStamp}));if(a){var s=R(a.startTime,a.processingStart),u=void 0;a.target&&Dr(a.target)&&(u=Ni(a.target,e.actionNameAttribute)),o={delay:s>=0?s:0,time:a.startTime,targetSelector:u},i.firstInput=o,r()}})).unsubscribe}}(t,e,s).stop;return{stop:function(){o(),u(),c(),l(),s.stop()},initialViewMetrics:i}}var ho,mo=0,go=1/0,_o=0,yo=function(){return uo?mo:window.performance.interactionCount||0},bo=10,wo=1*_;function So(){var t,e=window.visualViewport;return t=e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0,Math.round(t)}function Eo(){var t,e=window.visualViewport;return t=e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0,Math.round(t)}function Co(t){return ho||(ho=function(t){return new at((function(e){var n=ut((function(){e.notify(To())}),200).throttled;return Je(t,window,Ke.RESIZE,n,{capture:!0,passive:!0}).stop}))}(t)),ho}function To(){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 ko=g;function xo(t,e,n,r,i,o){var a={},s=function(t,e,n,i,o,s){var u="initial_load"===i,c=!0,l=[];function d(){var t;!c&&!u&&l.length>0&&(t=Math.max.apply(Math,l),a.loadingTime=t,r())}return{stop:pi(t,e,n,(function(t){c&&(c=!1,t.hadActivity&&l.push(R(o.timeStamp,t.end)),d())}
1)).stop,setLoadEvent:function(t){u&&(u=!1,l.push(t),d())}}}(t,e,n,i,o),u=s.stop,c=s.setLoadEvent,l=function(t,e,n,r){void 0===r&&(r=function(t,e){return void 0===e&&(e=ko),new at((function(n){if(window.ResizeObserver){var r=ut((function(){var t,e;n.notify((t=Eo(),e=To().height,{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(e+t),scrollTop:t}))}),e,{leading:!1,trailing:!0}),i=document.scrollingElement||document.documentElement,o=new ResizeObserver(Q(r.throttled));o.observe(i);var a=Je(t,window,Ke.SCROLL,r.throttled,{passive:!0});return function(){r.cancel(),o.unobserve(i),a.stop()}}}))}(t));var i=0,o=0,a=0,s=r.subscribe((function(t){var r=t.scrollDepth,s=t.scrollTop,u=t.scrollHeight,c=!1;if(r>i&&(i=r,c=!0),u>o){o=u;var l=k();a=R(e.relative,l),c=!0}c&&n({maxDepth:Math.min(i,o),maxDepthScrollTop:s,maxScrollHeight:o,maxScrollHeightTime:a})}));return{stop:function(){return s.unsubscribe()}}}(n,o,(function(t){a.scroll=t})).stop,d=function(t,e,n){if(!Yr(Hr.LAYOUT_SHIFT))return{stop:ct};var r=0;n({value:0});var i=function(){var t,e,n,r,i=0,o=0;return{update:function(a){var s,u;void 0===t||a.startTime-e>=g||a.startTime-t>=5*g?(t=e=a.startTime,i=a.value,o=0,n=void 0):(i+=a.value,e=a.startTime),a.value>o&&(o=a.value,r=a.startTime,n=(null===(s=a.sources)||void 0===s?void 0:s.length)?null===(u=B(a.sources,(function(t){return!!t.node&&Dr(t.node)})))||void 0===u?void 0:u.node:void 0)},value:function(){return i},largestLayoutShiftTarget:function(){return n},largestLayoutShiftTime:function(){return r}}}();return{stop:e.subscribe(0,(function(e){for(var o=0,a=e;o<a.length;o++){var s=a[o];if(s.entryType===Hr.LAYOUT_SHIFT&&!s.hadRecentInput&&(i.update(s),i.value()>r)){var u=p(r=i.value(),4),c=i.largestLayoutShiftTarget(),l=void 0;c&&c.isConnected&&(l=Ni(c,t.actionNameAttribute)),n({value:u,targetSelector:l})}}})).unsubscribe}}(n,t,(function(t){a.cumulativeLayoutShift=t,r()})).stop,f=function(t,e,n,r){if(!(Yr(Hr.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:ct,stop:ct};var i,o=function(t){"interactionCount"in performance||uo||(uo=new window.PerformanceObserver(Q((function(t){t.getEntries().forEach((function(t){var e=t;e.interactionId&&(go=Math.min(go,e.interactionId),_o=Math.max(_o,e.interactionId),mo=(_o-go)/7+1)}))})))).observe({type:"event",buffered:!0,durationThreshold:0});var e="initial_load"===t?0:yo(),n={stopped:!1};function r(){return yo()-e}return{getViewInteractionCount:function(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount:function(){n={stopped:!0,interactionCount:r()}}}}(n),a=o.getViewInteractionCount,s=o.stopViewInteractionCount,u=1/0,c=function(t){var e=[];function n(){e.sort((function(t,e){return e.duration-t.duration})).splice(bo)}return{process:function(t){var r=e.findIndex((function(e){return t.interactionId===e.interactionId})),i=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.length<bo||t.duration>i.duration)&&(e.push(t),n())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}(a),l=-1;return{getInteractionToNextPaint:function(){return l>=0?{value:Math.min(l,wo),targetSelector:i}:a()?{value:0}:void 0},setViewEnd:function(t){u=t,s()},stop:r.subscribe(0,(function(n){for(var r=0,o=n;r<o.length;r++){var a=o[r];(a.entryType===Hr.EVENT||a.entryType===Hr.FIRST_INPUT)&&a.interactionId&&a.startTime>=e&&a.startTime<=u&&c.process(a)}var s=c.estimateP98Interaction();s&&s.duration!==l&&(l=s.duration,i=s.target&&Dr(s.target)?Ni(s.target,t.actionNameAttribute):void 0)})).unsubscribe}}(n,o.relative,i,t),v=f.stop,h=f.getInteractionToNextPaint;return{stop:function(){u(),d(),l()},stopINPTracking:v,setLoadEvent:c,setViewEnd:f.setViewEnd,getCommonViewMetrics:function(){return a.interactionToNextPaint=h(),a}}}var Ao=3e3,Ro=5*_,Io=5*_;function Oo(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function No(t,e,n,r,i,o,a,s,c){return t.subscribe(4,(function(n){return t.notify(12,function(t,e,n,r,i){var o,a,s,u,c,l,d,f,p,v,m,g,_,y,b,w=r.getReplayStats(t.id),S=n.findFeatureFlagEvaluations(t.startClocks.relative),C=i.findAll(t.startClocks.relative,t.duration),T={_dd:{document_version:t.documentVersion,replay_stats:w,page_states:C,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:null===(o=t.commonViewMetrics.cumulativeLayoutShift)||void 0===o?void 0:o.value,cumulative_layout_shift_target_selector:null===(a=t.commonViewMetrics.cumulativeLayoutShift)||void 0===a?void 0:a.targetSelector,first_byte:E(null===(s=t.initialViewMetrics.navigationTimings)||void 0===s?void 0:s.firstByte),dom_complete:E(null===(u=t.initialViewMetrics.navigationTimings)||void 0===u?void 0:u.domComplete),dom_content_loaded:E(null===(c=t.initialViewMetrics.navigationTimings)||void 0===c?void 0:c.domContentLoaded),dom_interactive:E(null===(l=t.initialViewMetrics.navigationTimings)||void 0===l?void 0:l.domInteractive),error:{count:t.eventCounts.errorCount},first_contentful_paint:E(t.initialViewMetrics.firstContentfulPaint),first_input_delay:E(null===(d=t.initialViewMetrics.firstInput)||void 0===d?void 0:d.delay),first_input_time:E(null===(f=t.initialViewMetrics.firstInput)||void 0===f?void 0:f.time),first_input_target_selector:null===(p=t.initialViewMetrics.firstInput)||void 0===p?void 0:p.targetSelector,interaction_to_next_paint:E(null===(v=t.commonViewMetrics.interactionToNextPaint)||void 0===v?void 0:v.value),interaction_to_next_paint_target_selector:null===(m=t.commonViewMetrics.interactionToNextPaint)||void 0===m?void 0:m.targetSelector,is_active:t.isActive,name:t.name,largest_contentful_paint:E(null===(g=t.initialViewMetrics.largestContentfulPaint)||void 0===g?void 0:g.value),largest_contentful_paint_target_selector:null===(_=t.initialViewMetrics.largestContentfulPaint)||void 0===_?void 0:_.targetSelector,load_event:E(null===(y=t.initialViewMetrics.navigationTimings)||void 0===y?void 0:y.loadEvent),loading_time:(b=E(t.commonViewMetrics.loadingTime),h(b)&&b<0?void 0:b),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:E(t.duration)},feature_flags:S&&!Z(S)?S: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:E(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!w||void 0,is_active:!!t.sessionIsActive&&void 0},privacy:{replay_level:e.defaultPrivacyLevel}};return Z(t.customTimings)||(T.view.custom_timings=function(t,e){for(var n={},r=0,i=Object.keys(t);r<i.length;r++){var o=i[r];n[o]=e(t[o])}return n}(t.customTimings,E)),{rawRumEvent:T,startTime:t.startClocks.relative,domainContext:{location:t.location}}}(n,e,o,s,a))})),function(t,e,n,r,i,o,a){var s,c=new Set,l=d("initial_load",A(),a);function d(i,o,a){var s=function(t,e,n,r,i,o,a){void 0===o&&(o=x());var s,c,l,d,f=lt(),p=new at,v={},h=0,m=q(r),g=!0;a&&(c=a.name,l=a.service,d=a.version);var _={id:f,name:c,startClocks:o,service:l,version:d};t.notify(2,_),t.notify(3,_);var y=ut(B,Ao,{leading:!1}),w=y.throttled,S=y.cancel,E=xo(t,e,n,w,i,o),C=E.setLoadEvent,k=E.setViewEnd,A=E.stop,I=E.stopINPTracking,O=E.getCommonViewMetrics,N="initial_load"===i?vo(t,n,C,w):{stop:ct,initialViewMetrics:{}},L=N.stop,M=N.initialViewMetrics,P=function(t,e,n){var r=li({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{stop:r.stop,eventCounts:r.eventCounts}}(t,f,w),U=P.stop,D=P.eventCounts,z=it(B,Ro);function B(){S(),h+=1;var e=void 0===s?T():s.timeStamp;t.notify(4,{customTimings:v,documentVersion:h,id:f,name:c,service:l,version:d,loadingType:i,location:m,startClocks:o,commonViewMetrics:O(),initialViewMetrics:M,duration:R(o.timeStamp,e),isActive:void 0===s,sessionIsActive:g,eventCounts:D})}return B(),{name:c,service:l,version:d,stopObservable:p,end:function(e){var n,r,i=this;void 0===e&&(e={}),s||(s=null!==(n=e.endClocks)&&void 0!==n?n:x(),g=null===(r=e.sessionIsActive)||void 0===r||r,t.n
1otify(5,{endClocks:s}),t.notify(6,{endClocks:s}),ot(z),k(s.relative),A(),B(),nt((function(){i.stop()}),Io))},stop:function(){L(),U(),I(),p.notify()},addTiming:function(t,e){if(!s){var n=function(t){return t<b}(e)?e:R(o.timeStamp,e);v[function(t){var e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return e!==t&&u.warn("Invalid timing name: ".concat(t,", sanitized to: ").concat(e)),e}(t)]=n,w()}}}}(e,n,r,t,i,o,a);return c.add(s),s.stopObservable.subscribe((function(){c.delete(s)})),s}return e.subscribe(10,(function(){l=d("route_change",void 0,{name:l.name,service:l.service,version:l.version})})),e.subscribe(9,(function(){l.end({sessionIsActive:!1})})),e.subscribe(11,(function(t){t.reason!==Vn.UNLOADING&&t.reason!==Vn.PAGEHIDE||l.end()})),o&&(s=function(t){return t.subscribe((function(t){var e,n,r,i=t.oldLocation;n=t.newLocation,(e=i).pathname===n.pathname&&(""!==(r=n.hash.substring(1))&&document.getElementById(r)||Oo(n.hash)===Oo(e.hash))||(l.end(),l=d("route_change"))}))}(i)),{addTiming:function(t,e){void 0===e&&(e=T()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=d("route_change",e,t)},stop:function(){null==s||s.unsubscribe(),l.end(),c.forEach((function(t){return t.stop()}))}}}(n,t,r,e,i,!e.trackViewsManually,c)}function Lo(t){return"2"===t||"1"===t}function Mo(t,e,n,r,i,o,a){var s=t.replica,u=function(t,e,n,r,i,o){var a=u(t,e),s=n&&u(t,n);function u(t,e){var n=e.endpoint,a=e.encoder;return new Gn(a,Pn(t,n,t.batchBytesLimit,r),function(t){var e,n=t.messagesLimit,r=t.bytesLimit,i=t.durationLimit,o=t.pageExitObservable,a=t.sessionExpireObservable,s=o.subscribe((function(t){return f(t.reason)})),u=a.subscribe((function(){return f("session_expire")})),c=new at((function(){return function(){s.unsubscribe(),u.unsubscribe()}})),l=0,d=0;function f(t){if(0!==d){var e=d,n=l;d=0,l=0,p(),c.notify({reason:t,messagesCount:e,bytesCount:n})}}function p(){rt(e),e=void 0}return{flushObservable:c,get messagesCount(){return d},notifyBeforeAddMessage:function(t){l+t>=r&&f("bytes_limit"),d+=1,l+=t,void 0===e&&(e=nt((function(){f("duration_limit")}),i))},notifyAfterAddMessage:function(t){void 0===t&&(t=0),l+=t,d>=n?f("messages_limit"):l>=r&&f("bytes_limit")},notifyAfterRemoveMessage:function(t){l-=t,0==(d-=1)&&p()}}}({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:i,sessionExpireObservable:o}),t.messageBytesLimit)}return{flushObservable:a.flushController.flushObservable,add:function(t,e){void 0===e&&(e=!0),a.add(t),s&&e&&s.add(n.transformMessage?n.transformMessage(t):t)},upsert:function(t,e){a.upsert(t,e),s&&s.upsert(n.transformMessage?n.transformMessage(t):t,e)},stop:function(){a.stop(),null==s||s.stop()}}}(t,{endpoint:t.rumEndpointBuilder,encoder:a(2)},s&&{endpoint:s.rumEndpointBuilder,transformMessage:function(t){return an(t,{application:{id:s.applicationId}})},encoder:a(3)},r,i,o);return e.subscribe(13,(function(t){"view"===t.type?u.upsert(t,t.view.id):u.add(t)})),n.subscribe((function(e){return u.add(e,function(t){return t.site===se}(t))})),u}var Po=Et;var Uo,Do,zo,Bo=Et,Fo=10*g;function Vo(){0!==Uo.batchCount&&(pn("Customer data measures",Uo),qo())}function Ho(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function Go(t,e){t.sum+=e.sum,t.min=Math.min(t.min,e.min),t.max=Math.max(t.max,e.max)}function qo(){Uo={batchCount:0,batchBytesCount:{min:1/0,max:0,sum:0},batchMessagesCount:{min:1/0,max:0,sum:0},globalContextBytes:{min:1/0,max:0,sum:0},userContextBytes:{min:1/0,max:0,sum:0},featureFlagBytes:{min:1/0,max:0,sum:0}}}function jo(){zo=!1,Do={globalContextBytes:{min:1/0,max:0,sum:0},userContextBytes:{min:1/0,max:0,sum:0},featureFlagBytes:{min:1/0,max:0,sum:0}}}var Zo=Et;function Ko(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}var Yo=g;function Wo(t,e){var n=ht(document.cookie,t),r=it((function(){var r=ht(document.cookie,t);r!==n&&e(r)}),Yo);return function(){ot(r)}}var Xo="datadog-ci-visibility-test-execution-id";var Jo,$o=10;function Qo(t){return ta(t).segments_count}function ta(t){var e;return Jo||(Jo=new Map),Jo.has(t)?e=Jo.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},Jo.set(t,e),Jo.size>$o&&function(){if(Jo)if(Jo.keys)Jo.delete(Jo.keys().next().value);else{var t=!0;Jo.forEach((function(e,n){t&&(Jo.delete(n),t=!1)}))}}()),e}var ea={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:ge.ALLOW,MASK:ge.MASK,MASK_USER_INPUT:ge.MASK_USER_INPUT},na="data-dd-privacy",ra="allow",ia="mask",oa="mask-user-input",aa="hidden",sa="dd-privacy-allow",ua="dd-privacy-mask",ca="dd-privacy-mask-user-input",la="dd-privacy-hidden",da="***",fa="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",pa={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function va(t,e,n){if(n&&n.has(t))return n.get(t);var r=Vr(t),i=r?va(r,e,n):e,o=ha(ma(t),i);return n&&n.set(t,o),o}function ha(t,e){switch(e){case ea.HIDDEN:case ea.IGNORE:return e}switch(t){case ea.ALLOW:case ea.MASK:case ea.MASK_USER_INPUT:case ea.HIDDEN:case ea.IGNORE:return t;default:return e}}function ma(t){if(Dr(t)){var e=t.getAttribute(na);if("BASE"===t.tagName)return ea.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return ea.MASK;if("hidden"===n.type)return ea.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return ea.MASK}return e===aa||t.classList.contains(la)?ea.HIDDEN:e===ia||t.classList.contains(ua)?ea.MASK:e===oa||t.classList.contains(ca)?ea.MASK_USER_INPUT:e===ra||t.classList.contains(sa)?ea.ALLOW:function(t){if("SCRIPT"===t.nodeName)return!0;
1if("LINK"===t.nodeName){var e=i("rel");return/preload|prefetch/i.test(e)&&"script"===i("as")||"shortcut icon"===e||"icon"===e}if("META"===t.nodeName){var n=i("name"),r=(e=i("rel"),i("property"));return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===e||"apple-touch-icon"===e||"shortcut icon"===e||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(r)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||t.hasAttribute("http-equiv")||"author"===n||"generator"===n||"framework"===n||"publisher"===n||"progid"===n||/^article:/.test(r)||/^product:/.test(r)||"google-site-verification"===n||"yandex-verification"===n||"csrf-token"===n||"p:domain_verify"===n||"verify-v1"===n||"verification"===n||"shopify-checkout-api-token"===n}function i(e){return(t.getAttribute(e)||"").toLowerCase()}return!1}(t)?ea.IGNORE:void 0}}function ga(t,e){switch(e){case ea.MASK:case ea.HIDDEN:case ea.IGNORE:return!0;case ea.MASK_USER_INPUT:return Ur(t)?_a(t.parentNode):_a(t);default:return!1}}function _a(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;var e=t;if("INPUT"===e.tagName)switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!pa[e.tagName]}var ya=function(t){return t.replace(/\S/g,"x")};function ba(t,e,n){var r,i=null===(r=t.parentElement)||void 0===r?void 0:r.tagName,o=t.textContent||"";if(!e||o.trim()){var a=n;if("SCRIPT"===i)o=da;else if(a===ea.HIDDEN)o=da;else if(ga(t,a))if("DATALIST"===i||"SELECT"===i||"OPTGROUP"===i){if(!o.trim())return}else o="OPTION"===i?da:ya(o);return o}}var wa=new WeakMap;function Sa(t){return wa.has(t)}function Ea(t){return wa.get(t)}function Ca(t,e){var n=t.tagName,r=t.value;if(ga(t,e)){var i=t.type;if("INPUT"===n&&("button"===i||"submit"===i||"reset"===i))return r;if(!r||"OPTION"===n)return;return da}return"OPTION"===n||"SELECT"===n?t.value:"INPUT"===n||"TEXTAREA"===n?r:void 0}var Ta=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,ka=/^[A-Za-z]+:|^\/\//,xa=/^data:.*,/i;var Aa=/[^a-z1-6-_]/;function Ra(t){var e=t.toLowerCase().trim();return Aa.test(e)?"div":e}function Ia(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 Oa={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},Na={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},La={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},Ma={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},Pa={Play:0,Pause:1};function Ua(t){if(void 0!==t&&0!==t.length)return t.map((function(t){var e=t.cssRules||t.rules;return{cssRules:Array.from(e,(function(t){return t.cssText})),disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0}}))}function Da(t,e,n,r){if(e===ea.HIDDEN)return null;var i=t.getAttribute(n);if(e===ea.MASK&&n!==na&&!Ri.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return da}if("IMG"===o&&("src"===n||"srcset"===n)){var a=t;if(a.naturalWidth>0)return Ia(a.naturalWidth,a.naturalHeight);var s=t.getBoundingClientRect(),u=s.width,c=s.height;return u>0||c>0?Ia(u,c):fa}if("SOURCE"===o&&("src"===n||"srcset"===n))return fa;if("A"===o&&"href"===n)return da;if(i&&H(n,"data-"))return da;if("IFRAME"===o&&"srcdoc"===n)return da}return i&&"string"==typeof i&&Mr(i)?Pr(i):i}function za(t){if(!t)return null;var e,n,r;try{e=t.rules||t.cssRules}catch(t){}return e?(n=Array.from(e,2===gt()?Ba:Fa).join(""),r=t.href,n.replace(Ta,(function(t,e,n,i,o,a){var s=n||o||a;if(!r||!s||ka.test(s)||xa.test(s))return t;var u=e||i||"";return"url(".concat(u).concat(function(t,e){try{return ie(t,e).href}catch(e){return t}}(s,r)).concat(u,")")}))):null}function Ba(t){return function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")?t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2"):Fa(t)}function Fa(t){return function(t){return"styleSheet"in t}(t)&&za(t.styleSheet)||t.cssText}function Va(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:Na.Document,childNodes:Ga(t,e),adoptedStyleSheets:Ua(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=Br(t);return n&&e.serializationContext.shadowRootsController.addShadowRoot(t),{type:Na.DocumentFragment,childNodes:Ga(t,e),isShadowRoot:n,adoptedStyleSheets:n?Ua(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return n=t,{type:Na.DocumentType,name:n.name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n,r,i=Ra(t.tagName),o="svg"===(r=t).tagName||r instanceof SVGElement||void 0,s=ha(ma(t),e.parentNodePrivacyLevel);if(s===ea.HIDDEN){var u=t.getBoundingClientRect(),c=u.width,l=u.height;return{type:Na.Element,tagName:i,attributes:(n={rr_width:"".concat(c,"px"),rr_height:"".concat(l,"px")},n[na]=aa,n),childNodes:[],isSVG:o}}if(s!==ea.IGNORE){var f=function(t,e,n){var r;if(e===ea.HIDDEN)return{};for(var i={},o=Ra(t.tagName),s=t.ownerDocument,u=0;u<t.attributes.length;u+=1){var c=t.attributes.item(u).name,l=Da(t,e,c,n.configuration);null!==l&&(i[c]=l)}if(t.value&&("textarea"===o||"select"===o||"option"===o||"input"===o)){var f=Ca(t,e);void 0!==f&&(i.value=f)}if("option"===o&&e===ea.ALLOW){var p=t;p.selected&&(i.selected=p.selected)}if("link"===o){var v,h=Array.from(s.styleSheets).find((function(e){return e.href===t.href}));(v=za(h))&&h&&!d(a.DISABLE_REPLAY_INLINE_CSS)&&(i._cssText=v)}"style"===o&&t.sheet&&(v=za(t.sheet))&&(i._cssText=v);var m,g,_=t;if("input"!==o||"radio"!==_.type&&"checkbox"!==_.type||(e===ea.ALLOW?i.checked=!!_.checked:ga(_,e)&&delete i.checked),"audio"===o||"video"===o){var y=t;i.rr_mediaState=y.paused?"paused":"played"}
1var b=n.serializationContext;switch(b.status){case 0:m=Math.round(t.scrollTop),g=Math.round(t.scrollLeft),(m||g)&&b.elementsScrollPositions.set(t,{scrollTop:m,scrollLeft:g});break;case 1:b.elementsScrollPositions.has(t)&&(m=(r=b.elementsScrollPositions.get(t)).scrollTop,g=r.scrollLeft)}return g&&(i.rr_scrollLeft=g),m&&(i.rr_scrollTop=m),i}(t,s,e),p=[];return function(t){return t.childNodes.length>0||zr(t)}(t)&&"style"!==i&&(p=Ga(t,e.parentNodePrivacyLevel===s&&e.ignoreWhiteSpace===("head"===i)?e:G({},e,{parentNodePrivacyLevel:s,ignoreWhiteSpace:"head"===i}))),{type:Na.Element,tagName:i,attributes:f,childNodes:p,isSVG:o}}}(t,e);case t.TEXT_NODE:return function(t,e){var n=ba(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0!==n)return{type:Na.Text,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:Na.CDATA,textContent:""}}var n}(t,e);if(!n)return null;var r=Ea(t)||Ha++,i=n;return i.id=r,function(t,e){wa.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}var Ha=1;function Ga(t,e){var n=[];return Fr(t,(function(t){var r=Va(t,e);r&&n.push(r)})),n}function qa(t,e,n){return Va(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function ja(t){return Boolean(t.changedTouches)}function Za(t){return!0===t.composed&&zr(t.target)?t.composedPath()[0]:t.target}var Ka=function(t,e){var n=window.visualViewport,r={layoutViewportX:t,layoutViewportY:e,visualVie
1wportX:t,visualViewportY:e};return n?(function(t){return Math.abs(t.pageTop-t.offsetTop-window.scrollY)>25||Math.abs(t.pageLeft-t.offsetLeft-window.scrollX)>25}(n)?(r.layoutViewportX=Math.round(t+n.offsetLeft),r.layoutViewportY=Math.round(e+n.offsetTop)):(r.visualViewportX=Math.round(t-n.offsetLeft),r.visualViewportY=Math.round(e-n.offsetTop)),r):r};function Ya(t,e){return{data:G({source:t},e),type:Oa.IncrementalSnapshot,timestamp:T()}}var Wa,Xa=50;function Ja(t,e){var n=ut((function(t){var n=Za(t);if(Sa(n)){var r=$a(t);if(!r)return;var i={id:Ea(n),timeOffset:0,x:r.x,y:r.y};e(Ya(ja(t)?La.TouchMove:La.MouseMove,{positions:[i]}))}}),Xa,{trailing:!1}),r=n.throttled,i=n.cancel,o=$e(t,document,[Ke.MOUSE_MOVE,Ke.TOUCH_MOVE],r,{capture:!0,passive:!0}).stop;return{stop:function(){o(),i()}}}function $a(t){var e=ja(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=Ka(n,r);n=i.visualViewportX,r=i.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r};t.isTrusted&&pn("mouse/touch event without x/y")}var Qa=((Wa={})[Ke.POINTER_UP]=Ma.MouseUp,Wa[Ke.MOUSE_DOWN]=Ma.MouseDown,Wa[Ke.CLICK]=Ma.Click,Wa[Ke.CONTEXT_MENU]=Ma.ContextMenu,Wa[Ke.DBL_CLICK]=Ma.DblClick,Wa[Ke.FOCUS]=Ma.Focus,Wa[Ke.BLUR]=Ma.Blur,Wa[Ke.TOUCH_START]=Ma.TouchStart,Wa[Ke.TOUCH_END]=Ma.TouchEnd,Wa);function ts(t,e,n){return $e(t,document,Object.keys(Qa),(function(r){var i=Za(r);if(va(i,t.defaultPrivacyLevel)!==ea.HIDDEN&&Sa(i)){var o,a=Ea(i),s=Qa[r.type];if(s!==Ma.Blur&&s!==Ma.Focus){var u=$a(r);if(!u)return;o={id:a,type:s,x:u.x,y:u.y}}else o={id:a,type:s};var c=G({id:n.getIdForEvent(r)},Ya(La.MouseInteraction,o));e(c)}}),{capture:!0,passive:!0})}var es=100;function ns(t,e,n,r){void 0===r&&(r=document);var i=ut((function(r){var i=Za(r);if(i&&va(i,t.defaultPrivacyLevel)!==ea.HIDDEN&&Sa(i)){var o=Ea(i),a=i===document?{scrollTop:Eo(),scrollLeft:So()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};n.set(i,a),e(Ya(La.Scroll,{id:o,x:a.scrollLeft,y:a.scrollTop}))}}),es),o=i.throttled,a=i.cancel,s=Je(t,r,Ke.SCROLL,o,{capture:!0,passive:!0}).stop;return{stop:function(){s(),a()}}}function rs(t,e){var n=Co(t).subscribe((function(t){e(Ya(La.ViewportResize,t))}));return{stop:function(){n.unsubscribe()}}}function is(t,e){return $e(t,document,[Ke.PLAY,Ke.PAUSE],(function(n){var r=Za(n);r&&va(r,t.defaultPrivacyLevel)!==ea.HIDDEN&&Sa(r)&&e(Ya(La.MediaInteraction,{id:Ea(r),type:n.type===Ke.PLAY?Pa.Play:Pa.Pause}))}),{capture:!0,passive:!0})}function os(t){function e(t,e){t&&Sa(t.ownerNode)&&e(Ea(t.ownerNode))}var n=[be(CSSStyleSheet.prototype,"insertRule",(function(n){var r=n.target,i=n.parameters,o=i[0],a=i[1];e(r,(function(e){return t(Ya(La.StyleSheetRule,{id:e,adds:[{rule:o,index:a}]}))}))})),be(CSSStyleSheet.prototype,"deleteRule",(function(n){var r=n.target,i=n.parameters[0];e(r,(function(e){return t(Ya(La.StyleSheetRule,{id:e,removes:[{index:i}]}))}))}))];function r(r){n.push(be(r.prototype,"insertRule",(function(n){var r=n.target,i=n.parameters,o=i[0],a=i[1];e(r.parentStyleSheet,(function(e){var n=as(r);n&&(n.push(a||0),t(Ya(La.StyleSheetRule,{id:e,adds:[{rule:o,index:n}]})))}))})),be(r.prototype,"deleteRule",(function(n){var r=n.target,i=n.parameters[0];e(r.parentStyleSheet,(function(e){var n=as(r);n&&(n.push(i),t(Ya(La.StyleSheetRule,{id:e,removes:[{index:n}]})))}))})))}return"undefined"!=typeof CSSGroupingRule?r(CSSGroupingRule):(r(CSSMediaRule),r(CSSSupportsRule)),{stop:function(){n.forEach((function(t){return t.stop()}))}}}function as(t){for(var e=[],n=t;n.parentRule;){var r=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(r),n=n.parentRule}if(n.parentStyleSheet){var i=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(i),e}}function ss(t,e){return $e(t,window,[Ke.FOCUS,Ke.BLUR],(function(){e({data:{has_focus:document.hasFocus()},type:Oa.Focus,timestamp:T()})}))}function us(t,e,n){var r=t.subscribe(12,(function(t){var r,i,o;"action"===t.rawRumEvent.type&&"click"===t.rawRumEvent.action.type&&(null===(i=null===(r=t.rawRumEvent.action.frustration)||void 0===r?void 0:r.type)||void 0===i?void 0:i.length)&&"events"in t.domainContext&&(null===(o=t.domainContext.events)||void 0===o?void 0:o.length)&&e({timestamp:t.rawRumEvent.date,type:Oa.FrustrationRecord,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map((function(t){return n.getIdForEvent(t)}))}})}));return{stop:function(){r.unsubscribe()}}}function cs(t,e){var n=t.subscribe(5,(function(){e({timestamp:T(),type:Oa.ViewEnd})}));return{stop:function(){n.unsubscribe()}}}function ls(t,e,n){void 0===n&&(n=document);var r,i=t.defaultPrivacyLevel,o=new WeakMap,a=n!==document,s=$e(t,n,a?[Ke.CHANGE]:[Ke.INPUT,Ke.CHANGE],(function(t){var e=Za(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&c(e)}),{capture:!0,passive:!0}).stop;if(a)r=ct;else{var u=[we(HTMLInputElement.prototype,"value",c),we(HTMLInputElement.prototype,"checked",c),we(HTMLSelectElement.prototype,"value",c),we(HTMLTextAreaElement.prototype,"value",c),we(HTMLSelectElement.prototype,"selectedIndex",c)];r=function(){u.forEach((function(t){return t.stop()}))}}return{stop:function(){r(),s()}};function c(t){var e=va(t,i);if(e!==ea.HIDDEN){var n,r=t.type;if("radio"===r||"checkbox"===r){if(ga(t,e))return;n={isChecked:t.checked}}else{var o=Ca(t,e);if(void 0===o)return;n={text:o}}l(t,n);var a,s,u=t.name;"radio"===r&&u&&t.checked&&(a=document.querySelectorAll('input[type="radio"][name="'.concat(hi(u),'"]')),s=function(e){e!==t&&l(e,{isChecked:!1}
1)},Array.prototype.forEach.call(a,s))}}function l(t,n){if(Sa(t)){var r=o.get(t);r&&r.text===n.text&&r.isChecked===n.isChecked||(o.set(t,n),e(Ya(La.Input,G({id:Ea(t)},n))))}}}var ds=100;function fs(t,e,n,r){var i=Er();if(!i)return{stop:ct,flush:ct};var o=function(t){var e=ct,n=[];function r(){e(),t(n),n=[]}return{addMutations:function(t){0===n.length&&(e=function(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback(Q(t),e);return function(){return window.cancelIdleCallback(n)}}var r=window.requestAnimationFrame(Q(t));return function(){return window.cancelAnimationFrame(r)}}(r,{timeout:ds})),n.push.apply(n,t)},flush:r,stop:function(){e()}}}((function(r){!function(t,e,n,r){var i=new Map;t.filter((function(t){return"childList"===t.type})).forEach((function(t){t.removedNodes.forEach((function(t){ps(t,r.removeShadowRoot)}))}));var o=t.filter((function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!Sa(e)&&!Br(e))return!1;e=Vr(e)}return!0}(t.target)&&va(t.target,n.defaultPrivacyLevel,i)!==ea.HIDDEN})),a=function(t,e,n,r){for(var i=new Set,o=new Map,a=function(t){t.addedNodes.forEach((function(t){i.add(t)})),t.removedNodes.forEach((function(e){i.has(e)||o.set(e,t.target),i.delete(e)}))},s=0,u=t;s<u.length;s++)a(u[s]);var c=Array.from(i);c.sort((function(t,e){var n=t.compareDocumentPosition(e);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}));for(var l=new Set,d=[],f=0,p=c;f<p.length;f++){var v=p[f];if(!y(v)){var h=va(v.parentNode,e.defaultPrivacyLevel,r);if(h!==ea.HIDDEN&&h!==ea.IGNORE){var m=Va(v,{serializedNodeIds:l,parentNodePrivacyLevel:h,serializationContext:{status:2,shadowRootsController:n},configuration:e});if(m){var g=Vr(v);d.push({nextId:b(v),parentId:Ea(g),node:m})}}}}var _=[];return o.forEach((function(t,e){Sa(e)&&_.push({parentId:Ea(t),id:Ea(e)})})),{adds:d,removes:_,hasBeenSerialized:y};function y(t){return Sa(t)&&l.has(Ea(t))}function b(t){for(var e=t.nextSibling;e;){if(Sa(e))return Ea(e);e=e.nextSibling}return null}}(o.filter((function(t){return"childList"===t.type})),n,r,i),s=a.adds,u=a.removes,c=a.hasBeenSerialized,l=function(t,e,n){for(var r,i=[],o=new Set,a=t.filter((function(t){return!o.has(t.target)&&(o.add(t.target),!0)})),s=0,u=a;s<u.length;s++){var c=u[s];if(c.target.textContent!==c.oldValue){var l=va(Vr(c.target),e.defaultPrivacyLevel,n);l!==ea.HIDDEN&&l!==ea.IGNORE&&i.push({id:Ea(c.target),value:null!==(r=ba(c.target,!1,l))&&void 0!==r?r:null})}}return i}(o.filter((function(t){return"characterData"===t.type&&!c(t.target)})),n,i),d=function(t,e,n){for(var r=[],i=new Map,o=t.filter((function(t){var e=i.get(t.target);return!(null==e?void 0:e.has(t.attributeName))&&(e?e.add(t.attributeName):i.set(t.target,new Set([t.attributeName])),!0)})),a=new Map,s=0,u=o;s<u.length;s++){var c=u[s];if(c.target.getAttribute(c.attributeName)!==c.oldValue){var l=va(c.target,e.defaultPrivacyLevel,n),d=Da(c.target,l,c.attributeName,e),f=void 0;if("value"===c.attributeName){var p=Ca(c.target,l);if(void 0===p)continue;f=p}else f="string"==typeof d?d:null;var v=a.get(c.target);v||(v={id:Ea(c.target),attributes:{}},r.push(v),a.set(c.target,v)),v.attributes[c.attributeName]=f}}return r}(o.filter((function(t){return"attributes"===t.type&&!c(t.target)})),n,i);(l.length||d.length||u.length||s.length)&&e(Ya(La.Mutation,{adds:s,removes:u,texts:l,attributes:d}))}(r.concat(a.takeRecords()),t,e,n)})),a=new i(Q(o.addMutations));return a.observe(r,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){a.disconnect(),o.stop()},flush:function(){o.flush()}}}function ps(t,e){zr(t)&&e(t.shadowRoot),Fr(t,(function(t){return ps(t,e)}))}function vs(t){var e=t.emit,n=t.configuration,r=t.lifeCycle;if(!e)throw new Error("emit function is required");var i,o=function(n){e(n),en("record",{record:n}),ta(t.viewContexts.findView().id).records_count+=1},a=(i=new WeakMap,{set:function(t,e){(t!==document||document.scrollingElement)&&i.set(t===document?document.scrollingElement:t,e)},get:function(t){return i.get(t)},has:function(t){return i.has(t)}}),s=function(t,e,n){var r=new Map,i={addShadowRoot:function(o){if
1(!r.has(o)){var a=fs(e,t,i,o),s=ls(t,e,o),u=ns(t,e,n,o);r.set(o,{flush:function(){return a.flush()},stop:function(){a.stop(),s.stop(),u.stop()}})}},removeShadowRoot:function(t){var e=r.get(t);e&&(e.stop(),r.delete(t))},stop:function(){r.forEach((function(t){return(0,t.stop)()}))},flush:function(){r.forEach((function(t){return(0,t.flush)()}))}};return i}(n,o,a),u=function(t,e,n,r,i,o){var a=function(n,i){void 0===n&&(n=T()),void 0===i&&(i={status:0,elementsScrollPositions:t,shadowRootsController:e});var o,a=To(),s=a.width,u=[{data:{height:a.height,href:window.location.href,width:s},type:Oa.Meta,timestamp:n},{data:{has_focus:document.hasFocus()},type:Oa.Focus,timestamp:n},{data:{node:qa(document,r,i),initialOffset:{left:So(),top:Eo()}},type:Oa.FullSnapshot,timestamp:n}];return window.visualViewport&&u.push({data:(o=window.visualViewport,{scale:o.scale,offsetLeft:o.offsetLeft,offsetTop:o.offsetTop,pageLeft:o.pageLeft,pageTop:o.pageTop,height:o.height,width:o.width}),type:Oa.VisualViewport,timestamp:n}),u};return o(a()),{stop:n.subscribe(3,(function(n){i(),o(a(n.startClocks.timeStamp,{shadowRootsController:e,status:1,elementsScrollPositions:t}))})).unsubscribe}}(a,s,r,n,c,(function(t){return t.forEach((function(t){return o(t)}))})).stop;function c(){s.flush(),d.flush()}var l=function(){var t=new WeakMap,e=1;return{getIdForEvent:function(n){return t.has(n)||t.set(n,e++),t.get(n)}}}(),d=fs(o,n,s,document),f=[d,Ja(n,o),ts(n,o,l),ns(n,o,a,document),rs(n,o),ls(n,o),is(n,o),os(o),ss(n,o),rs(n,o),us(r,o,l),cs(r,(function(t){c(),o(t)}))];return{stop:function(){s.stop(),f.forEach((function(t){return t.stop()})),u()},flushMutations:c,shadowRootsController:s}}var hs=function(){function t(t,e,n){this.encoder=t,this.encodedBytesCount=0;var r=e.view.id;this.metadata=G({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:Qo(r),source:"browser"},e),function(t){ta(t).segments_count+=1}(r)}return t.prototype.addRecord=function(t,e){var n,r=this;this.metadata.start=Math.min(this.metadata.start,t.timestamp),this.metadata.end=Math.max(this.metadata.end,t.timestamp),this.metadata.records_count+=1,(n=this.metadata).has_full_snapshot||(n.has_full_snapshot=t.type===Oa.FullSnapshot);var i=this.encoder.isEmpty?'{"records":[':",";this.encoder.write(i+JSON.stringify(t),(function(t){r.encodedBytesCount+=t,e(r.encodedBytesCount)}))},t.prototype.flush=function(t){var e=this;if(this.encoder.isEmpty)throw new Error("Empty segment flushed");this.encoder.write("],".concat(JSON.stringify(this.metadata).slice(1),"\n")),this.encoder.finish((function(n){var r,i;r=e.metadata.view.id,i=n.rawBytesCount,ta(r).segments_total_raw_size+=i,t(e.metadata,n)}))},t}(),ms=30*g,gs=6e4;function _s(t,e,n,r,i,o){return function(t,i,o,a){var s={status:0,nextSegmentCreationReason:"init"},u=t.subscribe(3,(function(){l("view_change")})).unsubscribe,c=t.subscribe(11,(function(t){l(t.reason)})).unsubscribe;function l(t){1===s.status&&(s.segment.flush((function(e,n){var r=function(t,e,n){var r=new FormData;r.append("segment",new Blob([t],{type:"application/octet-stream"}),"".concat(e.session.id,"-").concat(e.start));var i=G({raw_segment_size:n,compressed_segment_size:t.byteLength},e),o=JSON.stringify(i);return r.append("event",new Blob([o],{type:"application/json"})),{data:r,bytesCount:t.byteLength}}(n.output,e,n.rawBytesCount);Hn(t)?o.sendOnExit(r):o.send(r)})),rt(s.expirationTimeoutId)),s="stop"!==t?{status:0,nextSegmentCreationReason:t}:{status:2}}return{addRecord:function(t){if(2!==s.status){if(0===s.status){var i=function(t,e,n){var r=e.findTrackedSession(),i=n.findView();if(r&&i)return{application:{id:t},session:{id:r.id},view:{id:i.id}}}(e.applicationId,n,r);if(!i)return;s={status:1,segment:new hs(a,i,s.nextSegmentCreationReason),expirationTimeoutId:nt((function(){l("segment_duration_limit")}),ms)}}s.segment.addRecord(t,(function(t){t>6e4&&l("segment_bytes_limit")}))}},stop:function(){l("stop"),u(),c()}}}(t,0,i,o)}function ys(){return"function"==typeof Array.from&&"function"==typeof CSSSupportsRule&&"function"==typeof URL.createObjectURL&&"forEach"in NodeList.prototype}function bs(t,e,n,r){var i=e.findTrackedSession(),o=function(t,e){return ys()?t?t.sessionReplayAllowed?e?void 0:"replay-not-started":"incorrect-session-plan":"rum-not-tracked":"browser-not-supported"}(i,r);return function(t,e){var n=e.session,r=e.viewContext,i=e.errorType,o=n?n.id:"no-session-id",a=[];void 0!==i&&a.push("error-type=".concat(i)),r&&(a.push("seed=".concat(r.id)),a.push("from=".concat(r.startClocks.timeStamp)));var s,u,c,l=(u=(s=t).site,c=s.subdomain||function(t){switch(t.site){case ce:case le:return"app";case se:return"dd";default:return}}(s),"https://".concat(c?"".concat(c,"."):"").concat(u)),d="/rum/replay/sessions/".concat(o);return"".concat(l).concat(d,"?").concat(a.join("&"))}(t,{viewContext:n.findView(),errorType:o,session:i})}function ws(t,e,n){var r,i=0,o=[],a=0,s=[],u=Je(t,e,"message",(function(t){var e=t.data;if("wrote"===e.type&&e.streamId===n){i+=e.additionalBytesCount,o.push(e.result),r=e.trailer;var a=s.shift();a&&a.id===e.id?a.writeCallback?a.writeCallback(e.result.byteLength):a.finishCallback&&a.finishCallback():(u(),pn("Worker responses received out of order."))}})).stop;function c(){var t=0===o.length?new Uint8Array(0):function(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),n=new Uint8Array(e),r=0,i=0,o=t;i<o.length;i++){var a=o[i];n.set(a,r),r+=a.length}return n}(o.concat(r)),e={rawBytesCount:i,output:t,outputBytesCount:t.byteLength,encoding:"deflate"};return i=0,o=[],e}function l(){a>0&&(e.postMessage({action:"reset",streamId:n}),a=0)}return{isAsync:!0,get isEmpty(){return 0===a},write:function(t,r){e.postMessage({action:"write",id:a,data:t,streamId:n}),s.push({id:a,writeCallback:r,data:t}),a+=1},finish:function(t){l(),s.length?(s.forEach((function(t){delete t.writeCallback})),s[s.length-1].finishCallback=function(){return t(c())}):t(c())},finishSync:function(){l();var t=s.map((function(t){return delete t.writeCallback,delete t.finishCallback,t.data})).join("");return G(c(),{pendingData:t})},estimateEncodedBytesCount:function(t){return t.length/8},stop:function(){u()}}}var Ss=10*g;function Es(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>>
vendor: 4,441 bytes, line 1
1>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)}
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]
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)}
1,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);
1i.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.17.1"};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 Cs={status:0};function Ts(t,e,n,r){switch(void 0===r&&(r=Es),0===Cs.status&&function(t,e,n){void 0===n&&(n=Es);try{var r=n(t),i=Je(t,r,"error",(function(n){xs(t,e,n)}
1)).stop,o=Je(t,r,"message",(function(n){var r,i=n.data;"errored"===i.type?xs(t,e,i.error,i.streamId):"initialized"===i.type&&(r=i.version,1===Cs.status&&(Cs={status:3,worker:Cs.worker,stop:Cs.stop,version:r}))})).stop;r.postMessage({action:"init"}),nt((function(){return function(t){1===Cs.status&&(u.error("".concat(t," failed to start: a timeout occurred while initializing the Worker")),Cs.initializationFailureCallbacks.forEach((function(t){return t()})),Cs={status:2})}(e)}),Ss),Cs={status:1,worker:r,stop:function(){i(),o()},initializationFailureCallbacks:[]}}catch(n){xs(t,e,n)}}(t,e,r),Cs.status){case 1:return Cs.initializationFailureCallbacks.push(n),Cs.worker;case 3:return Cs.worker}}function ks(){return Cs.status}function xs(t,e,n,r){if(1===Cs.status||0===Cs.status){if(u.error("".concat(e," failed to start: an error occurred while creating the Worker:"),n),n instanceof Event||n instanceof Error&&(D(o=n.message,"Content Security Policy")||D(o,"requires 'TrustedScriptURL'"))){var i;i=t.workerUrl?"Please make sure the Worker URL ".concat(t.workerUrl," is correct and CSP is correctly configured."):"Please make sure CSP is correctly configured.",u.error("".concat(i," See documentation at https://docs.datadoghq.com/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay"))}else vn(n);1===Cs.status&&Cs.initializationFailureCallbacks.forEach((function(t){return t()})),Cs={status:2}}else vn(n,{worker_version:3===Cs.status&&Cs.version,stream_id:r});var o}var As,Rs,Is,Os=function(t,e){if(Fn()&&!Bn("records")||!ys())return{start:ct,stop:ct,getReplayStats:function(){},onRumStart:ct,isRecording:function(){return!1},getSessionReplayLink:function(){}};var n={status:1},r=function(){n={status:1}},i=function(){n={status:0}},o=ct;return{start:function(){return r()},stop:function(){return i()},getSessionReplayLink:function(){return o()},onRumStart:function(t,e,a,s,u){var c;e.startSessionReplayRecordingManually&&(n={status:0}),t.subscribe(9,(function(){2!==n.status&&3!==n.status||(i(),n={status:1})})),t.subscribe(11,(function(t){t.reason!==Vn.UNLOADING&&t.reason!==Vn.PAGEHIDE||i()})),t.subscribe(10,(function(){1===n.status&&r()})),r=function(){var r=a.findTrackedSession();r&&r.sessionReplayAllowed?2!==n.status&&3!==n.status&&(n={status:2},Wn(e,"interactive",(function(){if(2===n.status){var r=(c||(u||(u=Ts(e,"Datadog Session Replay",(function(){i()}),undefined)),u&&(c=ws(e,u,1))),c);if(r){var o=function(t,e,n,r,i,o){var a,s=[],u=o||Pn(e,e.sessionReplayEndpointBuilder,gs,(function(e){t.notify(14,{error:e}),pn("Error reported to customer",{"error.message":e.message})}));if(Fn())a=function(t){var e=zn();return{addRecord:function(n){var r=t.findView();e.send("record",n,r.id)}}}(r).addRecord;else{var c=_s(t,e,n,r,u,i);a=c.addRecord,s.push(c.stop)}var l=vs({emit:a,configuration:e,lifeCycle:t,viewContexts:r}).stop;return s.push(l),{stop:function(){s.forEach((function(t){return t()}))}}}(t,e,a,s,r).stop;n={status:3,stopRecording:o}}else n={status:0}}}))):n={status:1}},i=function(){0!==n.status&&(3===n.status&&n.stopRecording(),n={status:0})},o=function(){return bs(e,a,s,0!==n.status)},1===n.status&&r()},isRecording:function(){return 3===ks()&&3===n.status},getReplayStats:function(t){return 3===ks()?function(t){return null==Jo?void 0:Jo.get(t)}(t):void 0}}}(),Ns=function(t,e,n){void 0===n&&(n={});var r,i,o=function(t){void 0===t&&(t=2);var e=new Map,n=!1;function r(r){if(void 0===r&&(r=0),!n&&0!==t){var i=2===t?or:ar,o=r;e.forEach((function(t){o+=t.getBytesCount()})),o>i&&(function(t){u.warn("Customer data exceeds the recommended ".concat(t/L,"KiB threshold. More details: https://docs.datadoghq.com/real_user_monitoring/browser/troubleshooting/#customer-data-exceeds-the-recommended-threshold-warning"))}(i),n=!0)}}return{createDetachedTracker:function(){var t=ur((function(){return r(t.getBytesCount())}));return t},getOrCreateTracker:function(t){return e.has(t)||e.set(t,ur(r)),e.get(t)},setCompressionStatus:function(e){0===t&&(t=e,r())},getCompressionStatus:function(){return t},stop:function(){e.forEach((function(t){return t.stop()})),e.clear()}}}(0),s=nr(o.getOrCreateTracker(2)),c=nr(o.getOrCreateTracker(1)),p={tryToInit:function(t){r||(r=t)},update:function(t){r=t,i.notify()},isGranted:function(){return r===te.GRANTED},observable:i=new at};function v(){return function(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}(s,c,e)}var h,m,g=Sr(n,v,p,(function(t,r,i,u){d(a.CUSTOM_VITALS)&&(y.startDurationVital=Q((function(t,e){g.startDurationVital({name:De(t),startClocks:(null==e?void 0:e.startTime)?S(e.startTime):x(),context:De(null==e?void 0:e.context)})})),y.stopDurationVital=Q((function(t,e){g.stopDurationVital({name:De(t),stopClocks:(null==e?void 0:e.stopTime)?S(e.stopTime):x(),context:De(null==e?void 0:e.context)})}))),t.storeContextsAcrossPages&&(ir(r,s,"rum",2),ir(r,c,"rum",1)),o.setCompressionStatus(i?1:2);var h=function(t,e,n,r,i,o,s,u){var c=[],p=new oi;p.subscribe(13,(function(t){return en("rum",t)}));var v=function(t){var e=function(t,e){var n,r,i=new at,o=!D(dn,e.site)&&f(e.telemetrySampleRate),a=((n={})[cn.log]=o,n[cn.configuration]=o&&f(e.telemetryConfigurationSampleRate),n[cn.usage]=o&&f(e.telemetryUsageSampleRate),n),s={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return un=function(e){if(a[e.type]){var n=function(t,e,n){return an({type:"telemetry",date:T(),service:t,version:"5.17.1",source:"browser",_dd:{format_version:2},telemetry:an(e,{runtime_env:n,connectivity:sn()}),experimental_features:z(l)},void 0!==r?r():{})}(t,e,s);i.notify(n),en("telemetry",n)}},W=vn,G(fn,{maxEventsPerPage:e.maxTelemetryEventsPerPage,sentEventCount:0}),{setContextProvider:function(t){r=t},observable:i,enabled:o}}("browser-rum-sdk",t);if(Fn()){var n=zn();e.observable.subscribe((function(t){return n.send("internal_telemetry",t)}))}return e}(e);v.setContextProvider((function(){var t,n;return{application:{id:e.applicationId},session:{id:null===(t=y.findTrackedSession())||void 0===t?void 0:t.id},view:{id:null===(n=I.findView())||void 0===n?void 0:n.id},action:{id:L.findActionId()}}}));var h=function(t){p.notify(14,{error:t}),pn("Error reported to customer",{"error.message":t.message})},m=function(t,e){var n=new wn(Bo);return t.subscribe(2,(function(t){var r=t.startClocks;n.add({},r.relative),e.resetCustomerData()})),t.subscribe(6,(function(t){var e=t.endClocks;n.closeActive(e.relative)})),{findFeatureFlagEvaluations:function(t){return n.find(t)},addFeatureFlagEvaluation:function(t,r){var i=n.find();i&&(i[t]=r,e.updateCustomerData(i))},stop:function(){return e.stop()}}}(p,r.getOrCreateTracker(0)),g=function(t){return new at((function(e){var n=d(a.PAGEHIDE),r=$e(t,window,[Ke.VISIBILITY_CHANGE,Ke.FREEZE,Ke.PAGE_HIDE],(function(t){t.type===Ke.PAGE_HIDE&&n?e.notify({reason:Vn.PAGEHIDE}):t.type===Ke.VISIBILITY_CHANGE&&"hidden"===document.visibilityState?e.notify({reason:Vn.HIDDEN}):t.type===Ke.FREEZE&&e.notify({reason:Vn.FROZEN})}),{capture:!0}).stop,i=ct;return n||(i=Je(t,window,Ke.BEFORE_UNLOAD,(function(){e.notify({reason:Vn.UNLOADING})})).stop),function(){r(),i()}}))}(e),_=g.subscribe((function(t){p.notify(11,t)}));c.push((function(){return _.unsubscribe()}));var y=Fn()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplayAllowed:Bn("records")};return{findTrackedSession:function(){return t},expire:ct,expireObservable:new at}}():function(t,e,n){var r=Cn(t,"rum",(function(e){return function(t,e){var n;return{trackingType:n=function(t){return"0"===t||"1"===t||"2"===t}(e)?e:f(t.sessionSampleRate)?f(t.sessionReplaySampleRate)?"1":"2":"0",
1isTracked:Lo(n)}}(t,e)}),n);return r.expireObservable.subscribe((function(){e.notify(9)})),r.renewObservable.subscribe((function(){e.notify(10)})),{findTrackedSession:function(t){var e=r.findActiveSession(t);if(e&&Lo(e.trackingType))return{id:e.id,sessionReplayAllowed:"1"===e.trackingType}},expire:r.expire,expireObservable:r.expireObservable}}(e,p,u);if(Fn())!function(t){var e=zn();t.subscribe(13,(function(t){e.send("rum",t)}))}(p);else{var b=Mo(e,p,v.observable,h,g,y.expireObservable,s);c.push((function(){return b.stop()})),function(t,e,n,r,i){e.enabled&&f(t.customerDataTelemetrySampleRate)&&(qo(),jo(),n.subscribe(13,(function(t){zo=!0,Ho(Do.globalContextBytes,r.getOrCreateTracker(2).getBytesCount()),Ho(Do.userContextBytes,r.getOrCreateTracker(1).getBytesCount()),Ho(Do.featureFlagBytes,D(["view","error"],t.type)?r.getOrCreateTracker(0).getBytesCount():0)})),i.subscribe((function(t){var e=t.bytesCount,n=t.messagesCount;zo&&(Uo.batchCount+=1,Ho(Uo.batchBytesCount,e),Ho(Uo.batchMessagesCount,n),Go(Uo.globalContextBytes,Do.globalContextBytes),Go(Uo.userContextBytes,Do.userContextBytes),Go(Uo.featureFlagBytes,Do.featureFlagBytes),jo())})),it(Vo,Fo))}(e,v,p,r,b.flushObservable)}var S,C=(S=Er(),new at((function(t){if(S){var e=new S(Q((function(){return t.notify()})));return e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return e.disconnect()}}}))),x=function(t,e){var n=q(e);return new at((function(r){var i=function(t,e){var n=be(history,"pushState",(function(t){(0,t.onPostCall)(e)})).stop,r=be(history,"replaceState",(function(t){(0,t.onPostCall)(e)})).stop,i=Je(t,window,Ke.POP_STATE,e).stop;return{stop:function(){n(),r(),i()}}}(t,a).stop,o=function(t,e){return Je(t,window,Ke.HASH_CHANGE,e)}(t,a).stop;function a(){if(n.href!==e.href){var t=q(e);r.notify({newLocation:t,oldLocation:n}),n=t}}return function(){i(),o()}}))}(e,location),A=function(t,e,n,r,i,o,a,s){var u=function(t){var e=new wn(ai);return t.subscribe(2,(function(t){e.add(function(t){return{service:t.service,version:t.version,id:t.id,name:t.name,startClocks:t.startClocks}}(t),t.startClocks.relative)})),t.subscribe(6,(function(t){var n=t.endClocks;e.closeActive(n.relative)})),t.subscribe(10,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),c=function(t,e,n){var r,i=new wn(Po);t.subscribe(2,(function(t){var e=t.startClocks,o=n.href;i.add(a({url:o,referrer:r||document.referrer}),e.relative),r=o})),t.subscribe(6,(function(t){var e=t.endClocks;i.closeActive(e.relative)}));var o=e.subscribe((function(t){var e=t.newLocation,n=i.find();if(n){var r=k();i.closeActive(r),i.add(a({url:e.href,referrer:n.referrer}),r)}}));function a(t){return{url:t.url,referrer:t.referrer}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(t,i,n),l=function(t,e){void 0===e&&(e=500);var n,r=new wn(Zo,4e3);o(Ko(),k());var i=$e(t,window,[Ke.PAGE_SHOW,Ke.FOCUS,Ke.BLUR,Ke.VISIBILITY_CHANGE,Ke.RESUME,Ke.FREEZE,Ke.PAGE_HIDE],(function(t){o(function(t){return t.type===Ke.FREEZE?"frozen":t.type===Ke.PAGE_HIDE?t.persisted?"frozen":"terminated":Ko()}(t),t.timeStamp)}),{capture:!0}).stop;function o(t,e){void 0===e&&(e=k()),t!==n&&(n=t,r.closeActive(e),r.add({state:n,startTime:e},e))}var a={findAll:function(t,n){var i=r.findAll(t,n);if(0!==i.length){for(var o=[],a=Math.max(0,i.length-e),s=i.length-1;s>=a;s--){var u=i[s],c=R(t,u.startTime);o.push({state:u.state,start:E(c)})}return o}},wasInPageStateAt:function(t,e){return a.wasInPageStateDuringPeriod(t,e,0)},wasInPageStateDuringPeriod:function(t,e,n){return r.findAll(e,n).some((function(e){return e.state===t}))},addPageState:o,stop:function(){i(),r.stop()}};return a}(e),d=function(t,e,n,r){t.subscribe(1,(function(e){return t.notify(12,Ji(e,r))}));var i={findActionId:ct};return n.trackUserInteractions&&(i=Wi(t,e,n).actionContexts),{addAction:function(e,n){t.notify(12,G({savedCommonContext:n},Ji(e,r)))},actionContexts:i}}(t,o,e,l),f=d.addAction,p=d.actionContexts,v=function(t){var e=To();return{get:function(){return{viewport:e}},stop:Co(t).subscribe((function(t){e=t})).unsubscribe}}(e),h=function(t,e){var n;void 0===e&&(e=function(t,e){var n=window.cookieStore?function(t){return function(e,n){return Je(t,window.cookieStore,Ke.CHANGE,(function(t){var r=B(t.changed,(function(t){return t.name===e}))||B(t.deleted,(function(t){return t.name===e}));r&&n(r.value)})).stop}}(t):Wo;return new at((function(t){return n(e,(function(e){return t.notify(e)}))}))}(t,Xo));var r=bt(Xo)||(null===(n=window.Cypress)||void 0===n?void 0:n.env("traceId")),i=e.subscribe((function(t){r=t}));return{get:function(){if("string"==typeof r)return{test_execution_id:r}},stop:function(){return i.unsubscribe()}}}(e);return ii(e,t,r,u,c,p,v,h,a,s),{viewContexts:u,pageStateHistory:l,urlContexts:c,addAction:f,actionContexts:p,stop:function(){h.stop(),v.stop(),l.stop(),c.stop(),u.stop(),l.stop()}}}(p,e,location,y,x,C,i,h),I=A.viewContexts,O=A.pageStateHistory,N=A.urlContexts,L=A.actionContexts,M=A.addAction,P=A.stop;c.push(P),function(t){mn({type:cn.configuration,configuration:t})}(function(t){var e,n={session_sample_rate:(e=t).sessionSampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:e.telemetryUsageSampleRate,use_before_send:!!e.beforeSend,use_cross_site_session_cookie:e.useCrossSiteSessionCookie,use_partitioned_cross_site_session_cookie:e.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:!!e.proxy,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,allow_fallback_to_local_storage:!!e.allowFallbackToLocalStorage,store_contexts_across_pages:!!e.storeContextsAcrossPages,allow_untrusted_events:!!e.allowUntrustedEvents,tracking_consent:e.trackingConsent};return G({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:wr(t),default_privacy_level:t.defaultPrivacyLevel,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},n)}(t)),function(t,e,n){t.subscribe(0,(function(r){for(var i=0,o=r;i<o.length;i++){var a=o[i];if(a.entryType!==Hr.LONG_TASK)break;if(!n.findTrackedSession(a.startTime)||!e.trackLongTasks)break;var s=w(a.startTime),u={date:s.timeStamp,long_task:{id:lt(),duration:E(a.duration)},type:"long_task",_dd:{discarded:!1}};t.notify(12,{rawRumEvent:u,startTime:s.relative,domainContext:{performanceEntry:a}})}}))}(p,e,y),eo(p,e,y,O);var U=No(p,e,location,C,x,m,O,n,o),F=U.addTiming,V=U.startView,H=U.stop;c.push(H);var j=Qi(p,e,O,m).addError;ui(p,e,y);var Z=Wr(p,e).stop;c.push(Z);var K=function(t,e){var n=new Map;return t.subscribe(10,(function(){n.clear()}
1)),{startDurationVital:function(t){n.set(t.name,t)},stopDurationVital:function(r){var i=n.get(r.name);if(i){var o=function(t,e){return{name:t.name,type:"duration",startClocks:t.startClocks,value:R(t.startClocks.timeStamp,e.stopClocks.timeStamp),context:an(t.context,e.context)}}(i,r);n.delete(o.name),function(t){return!e.wasInPageStateDuringPeriod("frozen",t.startClocks.relative,t.value)}(o)&&t.notify(12,function(t,e){var n;return{rawRumEvent:{date:t.startClocks.timeStamp,vital:{id:lt(),type:t.type,name:t.name,custom:(n={},n[t.name]=t.value,n)},type:"vital",_dd:{vital:{computed_value:!0}}},startTime:t.startClocks.relative,customerContext:t.context,domainContext:{}}}(o))}}}}(p,O),Y=function(t,e,n,r,i){return{get:function(o){var a=n.findView(o),s=i.findUrl(o),u=e.findTrackedSession(o);if(u&&a&&s){var c=r.findActionId(o);return{application_id:t,session_id:u.id,user_action:c?{id:c}:void 0,view:{id:a.id,name:a.name,referrer:s.referrer,url:s.url}}}}}}(e.applicationId,y,I,L,N);return{addAction:M,addError:j,addTiming:F,addFeatureFlagEvaluation:m.addFeatureFlagEvaluation,startView:V,lifeCycle:p,viewContexts:I,session:y,stopSession:function(){return y.expire()},getInternalContext:Y.get,startDurationVital:K.startDurationVital,stopDurationVital:K.stopDurationVital,stop:function(){c.forEach((function(t){return t()}))}}}(t,r,e,o,v,u,i&&n.createDeflateEncoder?function(t){return n.createDeflateEncoder(r,i,t)}:jn,p);return e.onRumStart(h.lifeCycle,r,h.session,h.viewContexts,i),g=function(t,e){return G({init:function(t){Xe("DD_RUM",t)},initConfiguration:t},e)}(t,h),h})),_=Q((function(t){var e="object"==typeof t?t:{name:t};g.startView(e)})),y=(h={init:Q((function(t){return g.init(t)})),setTrackingConsent:Q((function(t){p.update(t),hn({feature:"set-tracking-consent",tracking_consent:t})})),setGlobalContextProperty:Q((function(t,e){return s.setContextProperty(t,e)})),removeGlobalContextProperty:Q((function(t){return s.removeContextProperty(t)})),getGlobalContext:Q((function(){return s.getContext()})),setGlobalContext:Q((function(t){return s.setContext(t)})),clearGlobalContext:Q((function(){return s.clearContext()})),getInternalContext:Q((function(t){return g.getInternalContext(t)})),getInitConfiguration:Q((function(){return on(g.initConfiguration)})),addAction:Q((function(t,e){g.addAction({name:De(t),context:De(e),startClocks:x(),type:"custom"})})),addError:function(t,e){var n=Fe();tt((function(){g.addError({error:t,handlingStack:n,context:De(e),startClocks:x()})}))},addTiming:Q((function(t,e){g.addTiming(De(t),e)})),setUser:Q((function(t){(function(t){var e="object"===nn(t);return e||u.error("Unsupported user:",t),e})(t)&&c.setContext(pr(t))})),getUser:Q((function(){return c.getContext()})),setUserProperty:Q((function(t,e){var n,r=pr((n={},n[t]=e,n))[t];c.setContextProperty(t,r)})),removeUserProperty:Q((function(t){return c.removeContextProperty(t)})),clearUser:Q((function(){return c.clearContext()})),startView:_,stopSession:Q((function(){g.stopSession(),hn({feature:"stop-session"})})),addFeatureFlagEvaluation:Q((function(t,e){g.addFeatureFlagEvaluation(De(t),De(e))})),getSessionReplayLink:Q((function(){return e.getSessionReplayLink()})),startSessionReplayRecording:Q((function(){e.start(),hn({feature:"start-session-replay-recording"})})),stopSessionReplayRecording:Q((function(){return e.stop()}))},m=G({version:"5.17.1",onReady:function(t){t()}},h),Object.defineProperty(m,"_setDebug",{get:function(){return $},enumerable:!1}),m);return y}(0,Os,{startDeflateWorker:Ts,createDeflateEncoder:ws});As=K(),Rs=Ns,Is=As["DD_RUM"],As.DD_RUM=Rs,Is&&Is.q&&Is.q.forEach((function(t){return c(t,"onReady callback threw an error:")()}))}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.