1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,49305,e=>{"use strict";let t={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},r=console,n={};Object.keys(t).forEach(e=>{n[e]=r[e]});let i="Datadog Browser SDK:",o={debug:n.debug.bind(r,i),log:n.log.bind(r,i),info:n.info.bind(r,i),warn:n.warn.bind(r,i),error:n.error.bind(r,i)},a="https://docs.datadoghq.com",s=`${a}/real_user_monitoring/browser/troubleshooting`;e.s(["ConsoleApiName",0,t,"DOCS_ORIGIN",0,a,"DOCS_TROUBLESHOOTING",0,s,"MORE_DETAILS",0,"More details:","display",0,o,"globalConsole",0,r])},12379,e=>{"use strict";var t=e.i(49305);function r(e,r){return(...n)=>{try{return e(...n)}catch(e){t.display.error(r,e)}}}e.s(["catchUserErrors",()=>r])},38464,e=>{"use strict";let t;var r=e.i(49305);let n=!1;function i(e){t=e}function o(e){n=e}function a(e){return function(...t){return s(e,this,t)}}function s(e,t,r){try{return e.apply(t,r)}catch(e){l(e)}}function l(e){if(u(e),t)try{t(e)}catch(e){u(e)}}function u(...e){n&&r.display.error("[MONITOR]",...e)}e.s(["callMonitored",()=>s,"displayIfDebugEnabled",()=>u,"monitor",()=>a,"monitorError",()=>l,"setDebugMode",()=>o,"startMonitorErrorCollection",()=>i])},18420,e=>{"use strict";var t=e.i(12379),r=e.i(38464),n=e.i(49305);function i(e){let t={version:"6.32.0",onReady(e){e()},...e};return Object.defineProperty(t,"_setDebug",{get:()=>r.setDebugMode,enumerable:!1}),t}function o(e,r,i){let o=e[r];o&&!o.q&&o.version&&n.display.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[r]=i,o&&o.q&&o.q.forEach(e=>(0,t.catchUserErrors)(e,"onReady callback threw an error:")())}e.s(["defineGlobal",()=>o,"makePublicApi",()=>i])},26856,e=>{"use strict";function t(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get(){return this},configurable:!0});let e=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof e&&(e="object"==typeof self?self:"object"==typeof window?window:{}),e}let r=t();e.s(["getGlobalObject",()=>t,"globalObject",0,r,"isWorkerEnvironment",0,"WorkerGlobalScope"in r])},27117,e=>{"use strict";e.s(["ContextManagerMethod",0,{getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"},"CustomerContextKey",0,{userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"}])},48544,e=>{"use strict";let t=/[^\u0000-\u007F]/;function r(e){return t.test(e)?void 0!==window.TextEncoder?new TextEncoder().encode(e).length:new Blob([e]).size:e.length}function n(e){if(1===e.length)return e[0];let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}e.s(["ONE_KIBI_BYTE",0,1024,"ONE_MEBI_BYTE",0,1048576,"computeBytesCount",()=>r,"concatBuffers",()=>n])},17701,e=>{"use strict";var t=e.i(26856);function r(e,r){let n,i=(0,t.getGlobalObject)();return i.Zone&&"function"==typeof i.Zone.__symbol__&&(n=e[i.Zone.__symbol__(r)]),n||(n=e[r]),n}e.s(["getZoneJsOriginalValue",()=>r])},42504,e=>{"use strict";var t=e.i(17701),r=e.i(38464),n=e.i(26856);function i(e,i){return(0,t.getZoneJsOriginalValue)((0,n.getGlobalObject)(),"setTimeout")((0,r.monitor)(e),i)}function o(e){(0,t.getZoneJsOriginalValue)((0,n.getGlobalObject)(),"clearTimeout")(e)}function a(e,i){return(0,t.getZoneJsOriginalValue)((0,n.getGlobalObject)(),"setInterval")((0,r.monitor)(e),i)}function s(e){(0,t.getZoneJsOriginalValue)((0,n.getGlobalObject)(),"clearInterval")(e)}e.s(["clearInterval",()=>s,"clearTimeout",()=>o,"setInterval",()=>a,"setTimeout",()=>i])},97719,63746,71019,87555,29945,56721,31675,68432,91819,37165,93258,e=>{"use strict";let t;var r,n,i=e.i(49305),o=e.i(48544),a=e.i(42504);function s(e,t,r){let n,i,o=!r||void 0===r.leading||r.leading,s=!r||void 0===r.trailing||r.trailing,l=!1;return{throttled:(...r)=>{if(l){n=r;return}o?e(...r):n=r,l=!0,i=(0,a.setTimeout)(()=>{s&&n&&e(...n),l=!1,n=void 0},t)},cancel:()=>{(0,a.clearTimeout)(i),l=!1,n=void 0}}}function l(){}function u(e,t,r){if("object"!=typeof e||null===e)return JSON.stringify(e);let n=c(Object.prototype),i=c(Array.prototype),o=c(Object.getPrototypeOf(e)),a=c(e);try{return JSON.stringify(e,t,r)}catch(e){return"<error: unable to serialize object>"}finally{n(),i(),o(),a()}}function c(e){let t=e.toJSON;return t?(delete e.toJSON,()=>{e.toJSON=t}):l}e.s(["noop",()=>l,"throttle",()=>s],63746),e.s(["detachToJsonMethod",()=>c,"jsonStringify",()=>u],71019);let d=220*o.ONE_KIBI_BYTE;function p(e,t=d){let r=c(Object.prototype),n=c(Array.prototype),i=[],o=new WeakMap,a=f(e,"$",void 0,i,o),s=JSON.stringify(a),l=s?s.length:0;if(l>t)return void m(t,"discarded",e);for(;i.length>0&&l<t;){let r=i.shift(),n=0;if(Array.isArray(r.source))for(let a=0;a<r.source.length;a++){let s=f(r.source[a],r.path,a,i,o);if(void 0!==s?l+=JSON.stringify(s).length:l+=4,l+=n,n=1,l>
1t){m(t,"truncated",e);break}r.target[a]=s}else for(let a in r.source)if(Object.prototype.hasOwnProperty.call(r.source,a)){let s=f(r.source[a],r.path,a,i,o);if(void 0!==s&&(l+=JSON.stringify(s).length+n+a.length+3,n=1),l>t){m(t,"truncated",e);break}r.target[a]=s}}return r(),n(),a}function f(e,t,r,n,i){let o=function(e){if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(e){}return e}(e);if(!o||"object"!=typeof o){var a;return"bigint"==typeof(a=o)?`[BigInt] ${a.toString()}`:"function"==typeof a?`[Function] ${a.name||"unknown"}`:"symbol"==typeof a?`[Symbol] ${a.description||a.toString()}`:a}let s=function e(t){try{if(t instanceof Event){var r;return{type:(r=t).type,isTrusted:r.isTrusted,currentTarget:r.currentTarget?e(r.currentTarget):null,target:r.target?e(r.target):null}}if(t instanceof RegExp)return`[RegExp] ${t.toString()}`;let n=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(n&&n[1])return`[${n[1]}]`}catch(e){}return"[Unserializable]"}(o);if("[Object]"!==s&&"[Array]"!==s&&"[Error]"!==s)return s;if(i.has(e))return`[Reference seen at ${i.get(e)}]`;let l=void 0!==r?`${t}.${r}`:t,u=Array.isArray(o)?[]:{};return i.set(e,l),n.push({source:o,target:u,path:l}),u}function m(e,t,r){i.display.warn(`The data provided has been ${t} as it is over the limit of ${e} characters:`,r)}function g(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function v(e){return"object"===g(e)}function y(e){var r,n;let i=[],o=O(e,"stack"),a=String(e);if(o&&o.startsWith(a)&&(o=o.slice(a.length)),o&&o.split("\n").forEach(e=>{let t=function(e){let t=S.exec(e);if(!t)return;let r=t[2]&&0===t[2].indexOf("native"),n=t[2]&&0===t[2].indexOf("eval"),i=h.exec(t[2]);return n&&i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]),{args:r?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:t[3]?+t[3]:void 0,url:r?void 0:t[2]}}(e)||function(e){let t=_.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:t[3]?+t[3]:void 0,url:t[2]}}(e)||function(e){let t=T.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:+t[3],url:t[2]}}(e)||function(e){let t=C.exec(e);if(!t)return;let r=t[3]&&t[3].indexOf(" > eval")>-1,n=w.exec(t[3]);return r&&n&&(t[3]=n[1],t[4]=n[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||"?",line:t[4]?+t[4]:void 0,url:t[3]}}(e);t&&(!t.func&&t.line&&(t.func="?"),i.push(t))}),i.length>0&&function(){if(void 0!==t)return t;let[e,r]=[class extends Error{constructor(){super(),this.name="Error"}},Error].map(e=>new e);return t=N(Object.getPrototypeOf(e))&&r.stack!==e.stack}()&&e instanceof Error){let t=[],o=e;for(;(o=Object.getPrototypeOf(o))&&N(o);){let e=(null==(r=o.constructor)?void 0:r.name)||"?";t.push(e)}for(let e=t.length-1;e>=0&&(null==(n=i[0])?void 0:n.func)===t[e];e--)i.shift()}return{message:O(e,"message"),name:O(e,"name"),stack:i}}e.s(["sanitize",()=>p],87555),e.s(["getType",()=>g,"isIndexableObject",()=>v],29945);let b="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",E="(?::(\\d+))",S=RegExp(`^\\s*at (.*?) ?\\(${b}${E}?${E}?\\)?\\s*$`,"i"),h=RegExp(`\\((\\S*)${E}${E}\\)`),_=RegExp(`^\\s*at\\s*(?:(.*)?(?: @))?\\s*${b}${E}?${E}??\\s*$`,"i"),T=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,C=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,w=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function O(e,t){return v(e)&&"string"==typeof e[t]?e[t]:void 0}function A(e,t,r,n){var i;let o,a;if(void 0===t)return;let{name:s,message:l}=(i=e,"[object String]"===({}).toString.call(i)&&([,o,a]=I.exec(i)),{name:o,message:a});return{name:s,message:l,stack:[{url:t,column:n,line:r}]}}let I=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function N(e){return String(e.constructor).startsWith("class ")}e.s(["computeStackTrace",()=>y,"computeStackTraceFromOnErrorMessage",()=>A],56721);var R=e.i(38464);function k(e){let t,r=Error(e);return r.name="HandlingStack",(0,R.callMonitored)(()=>{let e=y(r);e.stack=e.stack.slice(2),t=x(e)}),t}function x(e){let t=D(e);
1return e.stack.forEach(e=>{let r="?"===e.func?"<anonymous>":e.func,n=e.args&&e.args.length>0?`(${e.args.join(", ")})`:"",i=e.line?`:${e.line}`:"",o=e.line&&e.column?`:${e.column}`:"";t+=` 2 at ${r}${n} @ ${e.url}${i}${o}`}),t}function D(e){return`${e.name||"Error"}: ${e.message}`}e.s(["createHandlingStack",()=>k,"formatErrorMessage",()=>D,"toStackTraceString",()=>x],31675);let M="No stack, consider using an instance of Error";function L({originalError:e,stackTrace:t,source:r,useFallbackStack:n=!0,nonErrorPrefix:i}){var o,a,s,l;let c=U(e);return!t&&c&&(t=y(e)),{source:r,type:t?t.name:void 0,message:(o=t,a=c,s=i,l=e,(null==o?void 0:o.message)&&(null==o?void 0:o.name)?o.message:a?"Empty message":s?`${s} ${u(p(l))}`:u(p(l))),stack:t?x(t):n?M:void 0}}function P({stackTrace:e,originalError:t,handlingStack:r,componentStack:n,startClocks:i,nonErrorPrefix:o,useFallbackStack:a=!0,source:s,handling:l}){var u;let c=L({originalError:t,stackTrace:e,source:s,useFallbackStack:a,nonErrorPrefix:o});return{startClocks:i,handling:l,handlingStack:r,componentStack:n,originalError:t,...c,causes:U(t)?function(e,t){let r=[],n=e.cause;for(;null!=n&&r.length<10;){let e=L({originalError:n,source:t,useFallbackStack:!1});r.push(e),n=U(n)?n.cause:void 0}return r.length?r:void 0}(t,s):void 0,fingerprint:U(u=t)&&"dd_fingerprint"in u?String(u.dd_fingerprint):void 0,context:function(e){if(v(e))return e.dd_context}(t)}}function U(e){return e instanceof Error||"[object Error]"===Object.prototype.toString.call(e)}function $(e){try{return JSON.parse(e)}catch(e){}}function V(e){return{...e}}function B(e,t){return Object.keys(e).some(r=>e[r]===t)}function F(e){return 0===Object.keys(e).length}function K(e,t){let r={};for(let n of Object.keys(e))r[n]=t(e[n]);return r}e.s(["NO_ERROR_STACK_PRESENT_MESSAGE",0,M,"computeRawError",()=>P,"isError",()=>U],97719),e.s(["isEmptyObject",()=>F,"mapValues",()=>K,"objectHasValue",()=>B,"shallowClone",()=>V,"tryJsonParse",()=>$],68432),(r=n||(n={})).TRACK_INTAKE_REQUESTS="track_intake_requests",r.USE_TREE_WALKER_FOR_ACTION_NAME="use_tree_walker_for_action_name",r.FEATURE_OPERATION_VITAL="feature_operation_vital",r.SHORT_SESSION_INVESTIGATION="short_session_investigation",r.START_STOP_ACTION="start_stop_action",r.START_STOP_RESOURCE="start_stop_resource",r.USE_CHANGE_RECORDS="use_change_records",r.USE_INCREMENTAL_CHANGE_RECORDS="use_incremental_change_records",r.INP_SUBPARTS="inp_subparts",r.TOO_MANY_REQUESTS_INVESTIGATION="too_many_requests_investigation",r.COMPOSED_PATH_SELECTOR="composed_path_selector";let j=new Set;function q(e){Array.isArray(e)&&e.filter(e=>B(n,e)).forEach(e=>{j.add(e)})}function G(e){return j.has(e)}function z(){return j}function H(e){let{env:t,service:r,version:n,datacenter:i,sdkVersion:o,variant:a}=e,s=[W("sdk_version",null!=o?o:"6.32.0")];return t&&s.push(W("env",t)),r&&s.push(W("service",r)),n&&s.push(W("version",n)),i&&s.push(W("datacenter",i)),a&&s.push(W("variant",a)),s}function W(e,t){var r;let n=t?`${e}:${t}`:e;return(n.length>200||(r=n,function(){try{return RegExp("[\\p{Ll}]","u"),!0}catch(e){return!1}}()&&RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(r)))&&i.display.warn(`Tag ${n} doesn't meet tag requirements and will be sanitized. ${i.MORE_DETAILS} ${i.DOCS_ORIGIN}/getting_started/tagging/#defining-tags`),n.replace(/,/g,"_")}e.s(["ExperimentalFeature",()=>n,"getExperimentalFeatures",()=>z,"initFeatureFlags",()=>q,"isExperimentalFeatureEnabled",()=>G],91819),e.s(["buildTags",()=>H],37165),e.s(["INTAKE_SITE_EU1",0,"datadoghq.eu","INTAKE_SITE_FED_STAGING",0,"dd0g-gov.com","INTAKE_SITE_STAGING",0,"datad0g.com","INTAKE_SITE_US1",0,"datadoghq.com","INTAKE_SITE_US1_FED",0,"ddog-gov.com","INTAKE_URL_PARAMETERS",0,["ddsource","dd-api-key","dd-request-id"],"PCI_INTAKE_HOST_US1",0,"pci.browser-intake-datadoghq.com"],93258)},28872,e=>{"use strict";var t=e.i(38464),r=e.i(26856);function n(e){let n=r.globalObject.queueMicrotask;"function"==typeof n?n((0,t.monitor)(e)):Promise.resolve().then((0,t.monitor)(e))}class i{constructor(e){this.onFirstSubscribe=e,this.observers=[]}subscribe(e){return this.addObserver(e),{unsubscribe:()=>this.removeObserver(e)}}
2notify(e){this.observers.forEach(t=>t(e))}addObserver(e){this.observers.push(e),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(e){this.observers=this.observers.filter(t=>e!==t),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}}function o(...e){return new i(t=>{let r=e.map(e=>e.subscribe(e=>t.notify(e)));return()=>r.forEach(e=>e.unsubscribe())})}class a extends i{constructor(e){super(),this.maxBufferSize=e,this.buffer=[]}notify(e){this.buffer.push(e),this.buffer.length>this.maxBufferSize&&this.buffer.shift(),super.notify(e)}subscribe(e){let t=!1;return n(()=>{for(let r of this.buffer){if(t)return;e(r)}t||this.addObserver(e)}),{unsubscribe:()=>{t=!0,this.removeObserver(e)}}}unbuffer(){n(()=>{this.maxBufferSize=this.buffer.length=0})}}e.s(["BufferedObservable",()=>a,"Observable",()=>i,"mergeObservables",()=>o],28872)},2006,82067,e=>{"use strict";let t;function r(e){return 0!==e&&100*Math.random()<=e}function n(e,t){return+e.toFixed(t)}function i(e){return o(e)&&e>=0&&e<=100}function o(e){return"number"==typeof e}e.s(["isNumber",()=>o,"isPercentage",()=>i,"performDraw",()=>r,"round",()=>n],82067);function a(e){var t,r;let n;return{relative:e,timeStamp:(t=e,(n=c()-performance.now())>E()?Math.round(function(e,t){return e+t}(n,t)):(r=t,Math.round(E()+r)))}}function s(e){return{relative:y(e),timeStamp:e}}function l(){var e;return Math.round(c()-(e=E(),e+performance.now()))}function u(e){return o(e)?n(1e6*e,0):e}function c(){return new Date().getTime()}function d(){return c()}function p(){return performance.now()}function f(){return{relative:p(),timeStamp:d()}}function m(){return{relative:0,timeStamp:E()}}function g(e,t){return t-e}function v(e,t){return e+t}function y(e){return e-E()}function b(e){return e<31536e6}function E(){var e,r;return void 0===t&&(t=null!=(r=null==(e=performance.timing)?void 0:e.navigationStart)?r:performance.timeOrigin),t}e.s(["ONE_HOUR",0,36e5,"ONE_MINUTE",0,6e4,"ONE_SECOND",0,1e3,"ONE_YEAR",0,31536e6,"addDuration",()=>v,"clocksNow",()=>f,"clocksOrigin",()=>m,"currentDrift",()=>l,"dateNow",()=>c,"elapsed",()=>g,"getRelativeTime",()=>y,"looksLikeRelativeTime",()=>b,"relativeNow",()=>p,"relativeToClocks",()=>a,"timeStampNow",()=>d,"timeStampToClocks",()=>s,"toServerDuration",()=>u],2006)},53265,28275,75599,41259,e=>{"use strict";var t=e.i(26856);function r(e,r){let n=t.globalObject.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:r})}e.s(["sendToExtension",()=>r],53265);var n=e.i(29945);function i(e,t,r=function(){if("undefined"!=typeof WeakSet){let e=new WeakSet;return{hasAlreadyBeenSeen(t){let r=e.has(t);return r||e.add(t),r}}}let e=[];return{hasAlreadyBeenSeen(t){let r=e.indexOf(t)>=0;return r||e.push(t),r}}}()){if(void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){let e=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,e)}if(r.hasAlreadyBeenSeen(t))return;if(Array.isArray(t)){let n=Array.isArray(e)?e:[];for(let e=0;e<t.length;++e)n[e]=i(n[e],t[e],r);return n}let o="object"===(0,n.getType)(e)?e:{};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=i(o[e],t[e],r));return o}function o(e){return i(void 0,e)}function a(...e){let t;for(let r of e)null!=r&&(t=i(t,r));return t}function s(){var e;let r=t.globalObject.navigator;return{status:r.onLine?"connected":"not_connected",interfaces:r.connection&&r.connection.type?[r.connection.type]:void 0,effective_type:null==(e=r.connection)?void 0:e.effectiveType}}function l(){let e=(0,t.getGlobalObject)().DatadogEventBridge;if(e)return{getCapabilities(){var t;return JSON.parse((null==(t=e.getCapabilities)?void 0:t.call(e))||"[]")},getPrivacyLevel(){var t;return null==(t=e.getPrivacyLevel)?void 0:t.call(e)},getAllowedWebViewHosts:()=>JSON.parse(e.getAllowedWebViewHosts()),send(t,r,n){e.send(JSON.stringify({eventType:t,event:r,view:n?{id:n}:void 0}))}}}function u(e){let t=l();return!!t&&t.getCapabilities().includes(e)}function c(e){var r;void 0===e&&(e=null==(r=(0,t.getGlobalObject)().location)?void 0:r.hostname);let n=l();return!!n&&n.getAllowedWebViewHosts().some(t=>e===t||e.endsWith(`.${t}`))}
2e.s(["combine",()=>a,"deepClone",()=>o],28275),e.s(["getConnectivity",()=>s],75599),e.s(["bridgeSupports",()=>u,"canUseEventBridge",()=>c,"getEventBridge",()=>l],41259)},72528,e=>{"use strict";var t=e.i(17701),r=e.i(26856);function n(e,n){return(0,t.getZoneJsOriginalValue)((0,r.getGlobalObject)(),"fetch")(e,n)}e.s(["fetch",()=>n])},99561,70252,92568,e=>{"use strict";var t=e.i(72528),r=e.i(38464),n=e.i(28872),i=e.i(48544),o=e.i(42504),a=e.i(2006);function s(e){return e>=500}function l(e){try{return e.clone()}catch(e){return}}e.s(["isServerError",()=>s,"tryToClone",()=>l],70252);let u={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};e.s(["ErrorSource",0,u],92568);let c=80*i.ONE_KIBI_BYTE,d=20*i.ONE_MEBI_BYTE,p=a.ONE_MINUTE,f=a.ONE_SECOND;function m(e,t,r,n,i,a){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?g(e,t,r,a,{onSuccess:()=>v(0,t,r,n,i,a),onFailure:()=>{t.queuedPayloads.enqueue(e)||a.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e}),function e(t,r,n,i,a){2===t.transportStatus&&(0,o.setTimeout)(()=>{g(t.queuedPayloads.first(),t,r,a,{onSuccess:()=>{t.queuedPayloads.dequeue(),t.currentBackoffTime=f,v(1,t,r,n,i,a)},onFailure:()=>{t.currentBackoffTime=Math.min(p,2*t.currentBackoffTime),e(t,r,n,i,a)}})},t.currentBackoffTime)}(t,r,n,i,a)}}):t.queuedPayloads.enqueue(e)||a.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e})}function g(e,t,r,n,{onSuccess:i,onFailure:o}){t.bandwidthMonitor.add(e),r(e,r=>{var a;t.bandwidthMonitor.remove(e),"opaque"!==(a=r).type&&(0===a.status&&!navigator.onLine||408===a.status||429===a.status||s(a.status))?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:r.status},n.notify({type:"failure",bandwidth:t.bandwidthMonitor.stats(),payload:e}),o()):(t.transportStatus=0,n.notify({type:"success",bandwidth:t.bandwidthMonitor.stats(),payload:e}),i())})}function v(e,t,r,n,o,s){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(o({message:`Reached max ${n} events size queued for upload: ${d/i.ONE_MEBI_BYTE}MiB`,source:u.AGENT,startClocks:(0,a.clocksNow)()}),t.queueFullReported=!0);let l=t.queuedPayloads;for(t.queuedPayloads=y();l.size()>0;)m(l.dequeue(),t,r,n,o,s)}function y(){let e=[];return{bytesCount:0,enqueue(t){return!this.isFull()&&(e.push(t),this.bytesCount+=t.bytesCount,!0)},first:()=>e[0],dequeue(){let t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:()=>e.length,isFull(){return this.bytesCount>=d}}}let b=16*i.ONE_KIBI_BYTE;function E(e,t,i=b){let o=new n.Observable,a={transportStatus:0,currentBackoffTime:f,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=c&&this.ongoingRequestCount<32},add(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount},stats(){return{ongoingByteCount:this.ongoingByteCount,ongoingRequestCount:this.ongoingRequestCount}}},queuedPayloads:y(),queueFullReported:!1};return{observable:o,send:r=>{for(let n of e)m(r,a,(e,t)=>{h(n,e,t)},n.trackType,t,o)},sendOnExit:t=>{for(let n of e)!function(e,t,n){if(navigator.sendBeacon&&n.bytesCount<t)try{let t=e.build("beacon",n);if(navigator.sendBeacon(t,n.data))return}catch(e){var i;i=e,S||(S=!0,(0,r.monitorError)(i))}h(e,n)}(n,i,t)}}}let S=!1;function h(e,n,i){let o=e.build("fetch",n);(0,t.fetch)(o,{method:"POST",body:n.data,mode:"cors"}).then((0,r.monitor)(e=>null==i?void 0:i({status:e.status,type:e.type}))).catch((0,r.monitor)(()=>null==i?void 0:i({status:0})))}e.s(["RECOMMENDED_REQUEST_BYTES_LIMIT",0,b,"createHttpRequest",()=>E],99561)},81028,3067,e=>{"use strict";var t=e.i(26856),r=e.i(28872),n=e.i(42504),i=e.i(2006),o=e.i(99561);let a=30*i.ONE_SECOND,s=t.isWorkerEnvironment?1:50;function l({pageMayExitObservable:e,sessionExpireObservable:t}){let i,l=e.subscribe(e=>f(e.reason)),u=t.subscribe(()=>f("session_expire")),c=new r.Observable(()=>()=>{l.unsubscribe(),u.unsubscribe()}),d=0,p=0;function f(e){if(0===p)return;let t=p,r=d;p=0,d=0,m(),c.notify({reason:e,messagesCount:t,bytesCount:r})}function m(){(0,n.clearTimeout)(i),i=void 0}return{flushObservable:c,get messagesCount(){return p},notifyBeforeAddMessage(e){d+e>=o.RECOMMENDED_REQUEST_BYTES_LIMIT&&f("bytes_limit"),p+=1,d+=e,void 0===i&&(i=(0,n.setTimeout)(()=>{f("duration_limit")},a))},notifyAfterAddMessage(e=0){d+=e,p>=s?f("messages_limit"):d>=o.RECOMMENDED_REQUEST_BYTES_LIMIT&&f("bytes_limit")},notifyAfterRemoveMessage(e){d-=e,0==(p-=1)&&m()}}}function u(e,t){for(let r=e.length-1;r>=0;r-=1){let n=e[r];if(t(n,r,e))return n}}function c(e){return Object.values(e)}function d(e){return Object.entries(e)}e.s(["createFlushController",()=>
2l],81028),e.s(["findLast",()=>u,"objectEntries",()=>d,"objectValues",()=>c],3067)},24385,e=>{"use strict";var t=e.i(38464),r=e.i(17701);function n(e,t,r,n,o){return i(e,t,[r],n,o)}function i(e,n,o,a,{once:s,capture:l,passive:u}={}){let c=(0,t.monitor)(t=>{(t.isTrusted||t.__ddIsTrusted||e.allowUntrustedEvents)&&(s&&m(),a(t))}),d=u?{capture:l,passive:u}:l,p=window.EventTarget&&n instanceof EventTarget?window.EventTarget.prototype:n,f=(0,r.getZoneJsOriginalValue)(p,"addEventListener");function m(){let e=(0,r.getZoneJsOriginalValue)(p,"removeEventListener");o.forEach(t=>e.call(n,t,c,d))}return o.forEach(e=>f.call(n,e,c,d)),{stop:m}}e.s(["addEventListener",()=>n,"addEventListeners",()=>i])},93018,90336,53084,50066,1017,e=>{"use strict";let t;var r=e.i(49305),n=e.i(97719),i=e.i(31675),o=e.i(91819),a=e.i(37165),s=e.i(93258),l=e.i(28872),u=e.i(2006),c=e.i(38464),d=e.i(53265),p=e.i(82067),f=e.i(71019),m=e.i(28275),g=e.i(56721),v=e.i(75599),y=e.i(41259),b=e.i(81028),E=e.i(99561),S=e.i(3067),h=e.i(26856),_=e.i(24385);let T={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function C(e){return new l.Observable(t=>{if(h.isWorkerEnvironment)return;let{stop:r}=(0,_.addEventListeners)(e,window,["visibilitychange","freeze"],e=>{"visibilitychange"===e.type&&"hidden"===document.visibilityState?t.notify({reason:T.HIDDEN}):"freeze"===e.type&&t.notify({reason:T.FROZEN})},{capture:!0}),n=(0,_.addEventListener)(e,window,"beforeunload",()=>{t.notify({reason:T.UNLOADING})}).stop;return()=>{r(),n()}})}function w(e){return(0,S.objectValues)(T).includes(e)}e.s(["PageExitReason",0,T,"createPageMayExitObservable",()=>C,"isPageExitReason",()=>w],90336);var O=e.i(48544);let A=256*O.ONE_KIBI_BYTE;function I({encoder:e,request:t,flushController:n}){let i={},o=n.flushObservable.subscribe(r=>(function(r){let n=(0,S.objectValues)(i).join("\n");i={};let o=w(r.reason),a=o?t.sendOnExit:t.send;if(o&&e.isAsync){let t=e.finishSync();t.outputBytesCount&&a(N(t));let r=[t.pendingData,n].filter(Boolean).join("\n");r&&a({data:r,bytesCount:(0,O.computeBytesCount)(r)})}else n&&e.write(e.isEmpty?n:` 3${n}`),e.finish(e=>{a(N(e))})})(r));function a(t,o){let a,s,l=(0,f.jsonStringify)(t),u=e.estimateEncodedBytesCount(l);u>=A?r.display.warn(`Discarded a message whose size was bigger than the maximum allowed size ${A/O.ONE_KIBI_BYTE}KiB. ${r.MORE_DETAILS} ${r.DOCS_TROUBLESHOOTING}/#technical-limitations`):(void 0!==o&&void 0!==i[o]&&(a=i[o],delete i[o],s=e.estimateEncodedBytesCount(a),n.notifyAfterRemoveMessage(s)),n.notifyBeforeAddMessage(u),void 0!==o?(i[o]=l,n.notifyAfterAddMessage()):e.write(e.isEmpty?l:` 4${l}`,e=>{n.notifyAfterAddMessage(e-u)}))}return{flushController:n,add:a,upsert:a,stop:o.unsubscribe}}function N(e){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding}}function R(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(r,n){let i=(0,O.computeBytesCount)(r);t+=i,e+=r,n&&n(i)},finish(e){e(this.finishSync())},finishSync(){let r={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,r},estimateEncodedBytesCount:e=>e.length}}e.s(["createBatch",()=>I],53084),e.s(["createIdentityEncoder",()=>R],50066);let k="DISCARDED",x="SKIPPED";function D(){let e={};return{register:(t,r)=>(e[t]||(e[t]=[]),e[t].push(r),{unregister:()=>{e[t]=e[t].filter(e=>e!==r)}}),triggerHook(t,r){let n=e[t]||[],i=[];for(let e of n){let t=e(r);if(t===k)return k;t!==x&&i.push(t)}return(0,m.combine)(...i)}}}e.s(["DISCARDED",0,k,"SKIPPED",0,x,"abstractHooks",()=>D],1017);var M=e.i(63746);let L="configuration",P="usage",U=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],$=[s.INTAKE_SITE_US1_FED];function V(){return t||(t=new l.BufferedObservable(100)),t}function B(e,t,r){let n=new l.Observable,{enabled:i,metricsEnabled:g}=function(e,t,r,n,i=1,s=15){var l;let g={},y=!$.includes(t.site)&&(0,p.performDraw)(t.telemetrySampleRate),b={log:y,[L]:y&&(0,p.performDraw)(t.telemetryConfigurationSampleRate),[P]:y&&(0,p.performDraw)(t.telemetryUsageSampleRate),metric:y&&(0,p.performDraw)(i)},E={is_local_file:(null==(l=h.globalObject.location)?void 0:l.protocol)==="file:",is_worker:h.isWorkerEnvironment},S=V();return S.subscribe(({rawEvent:i,metricName:l})=>{var c,p,y,S;let h;if(l&&!b.metric||!b[i.type])return;let _=l||i.status||i.type,T=g[_];if(T||(T=g[_]=new Set),T.size>=s)return;let C=(0,f.jsonStringify)(i);if(T.has(C))return;let w=r.triggerHook(1,{startTime:(0,u.clocksNow)().relative});if(w===k)return;let O=(c=w,p=e,y=i,S=E,h={type:"telemetry",date:(0,u.clocksNow)().timeStamp,service:p,version:"6.32.0",source:"browser",_dd:{format_version:2},telemetry:(0,m.combine)(y,{runtime_env:S,connectivity:(0,v.getConnectivity)(),sdk_setup:"npm"}),ddtags:(0,a.buildTags)(t).join(","),experimental_features:Array.from((0,o.getExperimentalFeatures)())},(0,m.combine)(h,c));n.notify(O),(0,d.sendToExtension)("telemetry",O),T.add(C)}),S.unbuffer(),(0,c.startMonitorErrorCollection)(K),{enabled:y,metricsEnabled:b.metric}}(e,t,r,n),{stop:S}=function(e,t){let r=[];if((0,y.canUseEventBridge)()){let e=(0,y.getEventBridge)(),n=t.subscribe(t=>e.send("internal_telemetry",t));r.push(n.unsubscribe)}else{let n=[e.rumEndpointBuilder];e.replica&&e.site===s.INTAKE_SITE_STAGING&&n.push(e.replica.rumEndpointBuilder);let i=I({encoder:R(),request:(0,E.createHttpRequest)(n,M.noop),flushController:(0,b.createFlushController)({pageMayExitObservable:C(e),sessionExpireOb
4servable:new l.Observable})});r.push(i.stop);let o=t.subscribe(i.add);r.push(o.unsubscribe)}return{stop:()=>r.forEach(e=>e())}}(t,n);return{stop:S,enabled:i,metricsEnabled:g}}function F(e,t){(0,c.displayIfDebugEnabled)(r.ConsoleApiName.debug,e,t),V().notify({rawEvent:{type:"log",message:e,status:"debug",...t}})}function K(e,t){V().notify({rawEvent:{type:"log",status:"error",...function(e){if((0,n.isError)(e)){var t;let r=(0,g.computeStackTrace)(e);return{error:{kind:r.name,stack:(0,i.toStackTraceString)(((t=r).stack=t.stack.filter(e=>!e.url||U.some(t=>e.url.startsWith(t))),t))},message:r.message}}return{error:{stack:n.NO_ERROR_STACK_PRESENT_MESSAGE},message:`Uncaught ${(0,f.jsonStringify)(e)}`}}(e),...t}})}function j(e){V().notify({rawEvent:{type:L,configuration:e}})}function q(e,t){V().notify({rawEvent:{type:"log",message:e,status:"debug",...t},metricName:e})}function G(e){V().notify({rawEvent:{type:P,usage:e}})}e.s(["addTelemetryConfiguration",()=>j,"addTelemetryDebug",()=>F,"addTelemetryError",()=>K,"addTelemetryMetrics",()=>q,"addTelemetryUsage",()=>G,"startTelemetry",()=>B],93018)},18452,61555,45355,e=>{"use strict";var t=e.i(49305);function r(e,r){r.silentMultipleInit||t.display.error(`${e} is already initialized.`)}e.s(["displayAlreadyInitializedError",()=>r],18452);var n=e.i(28872);let i={GRANTED:"granted",NOT_GRANTED:"not-granted"};function o(e){let t=new n.Observable;return{tryToInit(t){e||(e=t)},update(r){e=r,t.notify()},isGranted:()=>e===i.GRANTED,observable:t}}e.s(["TrackingConsent",0,i,"createTrackingConsentState",()=>o],61555);var a=e.i(93018),s=e.i(38464);function l(e,t,r,n){return(0,s.monitor)((...i)=>(n&&(0,a.addTelemetryUsage)({feature:n}),e()[t][r](...i)))}e.s(["defineContextMethod",()=>l],45355)},36215,e=>{"use strict";function t(e){return e}e.s(["mockable",()=>t])},93713,91495,50653,1721,89584,43757,34984,19623,38137,33253,58239,66272,78487,42637,80466,96411,48407,84641,66824,44119,8445,e=>{"use strict";let t,r,n,i,o,a,s,l,u,c,d,p,f,m;var g,v,y=e.i(27117),b=e.i(93018),E=e.i(28275),S=e.i(18420),h=e.i(38464),_=e.i(2006),T=e.i(31675),C=e.i(87555),w=e.i(50066),O=e.i(18452),A=e.i(61555),I=e.i(45355),N=e.i(28872),R=e.i(36215),k=e.i(42504),x=e.i(63746);function D(e,t,r,{computeHandlingStack:n}={}){let i=e[t];if("function"!=typeof i)if(!(t in e&&"string"==typeof t&&t.startsWith("on")))return{stop:x.noop};else i=x.noop;let o=!1,a=function(){let e;if(o)return i.apply(this,arguments);let t=Array.from(arguments);(0,h.callMonitored)(r,null,[{target:this,parameters:t,onPostCall:t=>{e=t},handlingStack:n?(0,T.createHandlingStack)("instrumented method"):void 0}]);let a=i.apply(this,t);return e&&(0,h.callMonitored)(e,null,[a]),a};return e[t]=a,{stop:()=>{o=!0,e[t]===a&&(e[t]=i)}}}function M(e,t,r){let n=Object.getOwnPropertyDescriptor(e,t);if(!n||!n.set||!n.configurable)return{stop:x.noop};let i=x.noop,o=(e,t)=>{(0,k.setTimeout)(()=>{o!==i&&r(e,t)},0)},a=function(e){n.set.call(this,e),o(this,e)};return Object.defineProperty(e,t,{set:a}),{stop:()=>{var r;(null==(r=Object.getOwnPropertyDescriptor(e,t))?void 0:r.set)===a&&Object.defineProperty(e,t,n),o=i}}}e.s(["instrumentMethod",()=>D,"instrumentSetter",()=>M],91495);var L=e.i(56721),P=e.i(26856),U=e.i(97719),$=e.i(92568);function V(){return new N.Observable(e=>{var t,r;let n=(t,r)=>{let n=(0,U.computeRawError)({stackTrace:r,originalError:t,startClocks:(0,_.clocksNow)(),nonErrorPrefix:"Uncaught",source:$.ErrorSource.SOURCE,handling:"unhandled"});e.notify(n)},{stop:i}=(t=n,D((0,P.getGlobalObject)(),"onerror",({parameters:[e,r,n,i,o]})=>{let a;(0,U.isError)(o)||(a=(0,L.computeStackTraceFromOnErrorMessage)(e,r,n,i)),t(null!=o?o:e,a)})),{stop:o}=(r=n,D((0,P.getGlobalObject)(),"onunhandledrejection",({parameters:[e]})=>{r(e.reason||"Empty reason")}));return()=>{i(),o()}})}var B=e.i(91819);function F(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,F)}let K=/(\S+?)\s*=\s*(.+?)(?:;|$)/g;function j(e,t){for(K.lastIndex=0;;){let r=K.exec(e);if(r){if(r[1]===t)return r[2]}else break}}function q(e,t,r=""){let n=e.charCodeAt(t-1),i=n>=55296&&n<=56319?t+1:t;return e.length<=i?e:`${e.slice(0,i)}${r}`}let G={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",VITAL:"vital"},z={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},H={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change",BF_CACHE:"bf_cache"},W={CLICK:"click",CUSTOM:"custom",TAP:"tap",SCROLL:"scroll",SWIPE:"swipe",APPLICATION_START:"application_start",BACK:"back"},Y={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"}
4,J={DURATION:"duration",OPERATION_STEP:"operation_step"};function X({vitalsByName:e,vitalsByReference:t},r,n={}){let i={id:F(),name:r,startClocks:(0,_.clocksNow)(),...n},o={__dd_vital_reference:!0};return e.set(r,i),t.set(o,i),o}function Z(e,{vitalsByName:t,vitalsByReference:r},n,i={}){var o,a,s,l,u;let c="string"==typeof n?t.get(n):r.get(n);c&&(e((o=c,a=c.startClocks,s=i,l=(0,_.clocksNow)(),{id:o.id,name:o.name,type:J.DURATION,startClocks:a,duration:(0,_.elapsed)(a.timeStamp,l.timeStamp),context:(0,E.combine)(o.context,s.context),description:null!=(u=s.description)?u:o.description,handlingStack:o.handlingStack})),"string"==typeof n?t.delete(n):r.delete(n))}function Q(e){let{startClocks:t,type:r,name:n,description:i,context:o,handlingStack:a}=e,s=e.type===J.DURATION?e.id:void 0,l={id:null!=s?s:F(),type:r,name:n,description:i,...r===J.DURATION?{duration:(0,_.toServerDuration)(e.duration)}:{step_type:e.stepType,operation_key:e.operationKey,failure_reason:e.failureReason}};return{rawRumEvent:{date:t.timeStamp,vital:l,type:G.VITAL,context:o},startClocks:t,duration:r===J.DURATION?e.duration:void 0,domainContext:a?{handlingStack:a}:{}}}function ee(e,t,r){if(e)for(let n of e){let e=n[t];e&&e(r)}}function et(e,t){let r=e.indexOf(t);r>=0&&e.splice(r,1)}function er(e){return Array.isArray(e)&&e.length>0}e.s(["ActionType",0,W,"FrustrationType",0,Y,"RumEventType",0,G,"RumLongTaskEntryType",0,z,"ViewLoadingType",0,H,"VitalType",0,J],50653);var en=e.i(49305),ei=e.i(41259);function eo(e){return el(e,location.href).href}function ea(e){try{return!!el(e)}catch(e){return!1}}function es(e){let t=el(e).pathname;return"/"===t[0]?t:`/${t}`}function el(e,r){let{URL:n}=function(){var e;if(!t){let r,n;try{(r=document.createElement("iframe")).style.display="none",document.body.appendChild(r),n=null!=(e=r.contentWindow)?e:P.globalObject}catch(e){n=P.globalObject}t={URL:n.URL},null==r||r.remove()}return t}();try{return void 0!==r?new n(e,r):new n(e)}catch(e){throw Error(`Failed to construct URL: ${String(e)}`)}}function eu(e,t,r=0,n){let i=new Date;i.setTime(i.getTime()+r);let o=`expires=${i.toUTCString()}`,a=n&&n.crossSite?"none":"strict",s=n&&n.domain?`;domain=${n.domain}`:"",l=n&&n.secure?";secure":"",u=n&&n.partitioned?";partitioned":"";document.cookie=`${e}=${t};${o};path=/;samesite=${a}${s}${l}${u}`}function ec(e){return j(document.cookie,e)}function ed(e){return r||(r=function(e){let t=new Map;for(K.lastIndex=0;;){let r=K.exec(e);if(r)t.set(r[1],r[2]);else break}return t}(document.cookie)),r.get(e)}e.s(["buildUrl",()=>el,"getPathName",()=>es,"isValidUrl",()=>ea,"normalizeUrl",()=>eo],1721);function ep(e=location.hostname,t=document.referrer){if(void 0===n){let r=function(e,t){try{return e||el(t).hostname}catch(e){}}(e,t);if(r){let e=`dd_site_test_${F()}`,t=r.split("."),i=t.pop();for(;t.length&&!ec(e);)i=`${t.pop()}.${i}`,eu(e,"test",_.ONE_SECOND,{domain:i});eu(e,"",0,{domain:i}),n=i}}return n}var ef=e.i(68432);let em="datadog-synthetics-",eg=`${em}public-id`,ev=`${em}result-id`,ey=`${em}injects-rum`,eb=`${em}rum-context`;function eE(){return!P.isWorkerEnvironment&&!!(P.globalObject._DATADOG_SYNTHETICS_INJECTS_RUM||ed(ey))}function eS(){var e;let t=function(){let e=P.globalObject._DATADOG_SYNTHETICS_RUM_CONTEXT;if(e)return e;let t=ed(eb);return t?(0,ef.tryJsonParse)(decodeURIComponent(t)):{test_id:window._DATADOG_SYNTHETICS_PUBLIC_ID||ed(eg),result_id:window._DATADOG_SYNTHETICS_RESULT_ID||ed(ev)}}();return"object"==typeof(e=t)&&null!==e&&"string"==typeof e.test_id&&"string"==typeof e.result_id?t:void 0}var eh=e.i(48544);async function e_(e,t){let r=e.getReader(),n=[];for(;;){let e=await r.read();if(e.done)break;t.collectStreamBody&&n.push(e.value)}return r.cancel().catch(x.noop),t.collectStreamBody?(0,eh.concatBuffers)(n):void 0}var eT=e.i(70252);let eC=[];function ew({responseBodyAction:e}={}){return e&&eC.push(e),i||(i=new N.Observable(e=>{if(!P.globalObject.fetch)return;let{stop:t}=D(P.globalObject,"fetch",t=>(function({parameters:e,onPostCall:t,handlingStack:r},n){var i,o;let[a,s]=e,l=s&&s.method;void 0===l&&a instanceof Request&&(l=a.method);let u=void 0!==l?String(l).toUpperCase():"GET",c=a instanceof Request?a.url:eo(String(a)),d={state:"start",init:s,input:a,method:u,startClocks:(0,_.clocksNow)(),url:c,handlingStack:r,isAbortedOnStart:a instanceof Request&&(null==(i=a.signal)?void 0:i.aborted)||(null==(o=null==s?void 0:s.signal)?void 0:o.aborted)||!1};n.notify(d),e[0]=d.input,e[1]=d.init,t(e=>{eO(n,e,d).catch(h.monitorError)})})(t,e),{computeHandlingStack:!0});return t})),i}async function eO(e,t,r){var n,i;let o;r.state="resolve";try{o=await t}catch(t){r.status=0,r.isAborted=(null==(i=null==(n=r.init)?void 0:n.signal)?void 0:i.aborted)||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,r.error=t,e.notify(r);return}r.response=o,r.status=o.status,r.responseType=o.type,r.isAborted=!1;let a=eC.reduce((e,t)=>
4Math.max(e,t(r)),0);if(0!==a){let e=(0,eT.tryToClone)(o);if(e&&e.body)try{let t=await e_(e.body,{collectStreamBody:2===a});r.responseBody=t&&new TextDecoder().decode(t)}catch(e){}}e.notify(r)}var eA=e.i(24385);let eI=[];function eN(e,t,r,n){var i,o;let a=(i=r,o=n,`_dd_c_${i}_${o}`);eI.push((0,eA.addEventListener)(e,window,"storage",({key:e})=>{a===e&&t.setContext(l())})),t.changeObservable.subscribe(function(){localStorage.setItem(a,JSON.stringify(t.getContext()))});let s=(0,E.combine)(l(),t.getContext());function l(){let e=localStorage.getItem(a);return e?JSON.parse(e):{}}(0,ef.isEmptyObject)(s)||t.setContext(s)}var eR=e.i(1017),ek=e.i(29945);function ex(e,t,r){let n={...e};for(let[e,{required:i,type:o}]of Object.entries(t))"string"!==o||eD(n[e])||(n[e]=String(n[e])),i&&eD(n[e])&&en.display.warn(`The property ${e} of ${r} is required; context will not be sent to the intake.`);return n}function eD(e){return null==e||""===e}function eM(e="",{propertiesConfig:t={}}={}){let r={},n=new N.Observable,i={getContext:()=>(0,E.deepClone)(r),setContext:o=>{let a;((a="object"===(0,ek.getType)(o))||en.display.error("Unsupported context:",o),a)?r=(0,C.sanitize)(ex(o,t,e)):i.clearContext(),n.notify()},setContextProperty:(i,o)=>{r=(0,C.sanitize)(ex({...r,[i]:o},t,e)),n.notify()},removeContextProperty:i=>{delete r[i],ex(r,t,e),n.notify()},clearContext:()=>{r={},n.notify()},changeObservable:n};return i}function eL(){return eM("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}function eP(){return eM("global context")}function eU(){return eM("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}let e$=eR.abstractHooks;function eV(e){let t=(0,ek.getType)(e);return"string"===t||"function"===t||e instanceof RegExp}function eB(e,t,r=!1){return e.some(e=>{try{if("function"==typeof e)return e(t);if(e instanceof RegExp)return e.test(t);if("string"==typeof e)return r?t.startsWith(e):e===t}catch(e){en.display.error(e)}return!1})}var eF=e.i(12379),eK=e.i(82067);function ej(){return 0===eG()}function eq(){return 1===eG()}function eG(){return null!=o?o:o=function(e=window){var t;let r=e.navigator.userAgent;return e.chrome||/HeadlessChrome/.test(r)?0:(null==(t=e.navigator.vendor)?void 0:t.indexOf("Apple"))===0||/safari/i.test(r)&&!/chrome|android/i.test(r)?1:2}()}e.s(["isChromium",()=>ej,"isSafari",()=>eq],89584);let ez="_dd_s";var eH=e.i(3067);let eW=4*_.ONE_HOUR,eY=15*_.ONE_MINUTE,eJ=_.ONE_YEAR,eX={COOKIE:"cookie",MEMORY:"memory",LOCAL_STORAGE:"local-storage"};e.s(["SESSION_COOKIE_EXPIRATION_DELAY",0,eJ,"SESSION_EXPIRATION_DELAY",0,eY,"SESSION_NOT_TRACKED",0,"0","SESSION_TIME_OUT_DELAY",0,eW,"SessionPersistence",0,eX],43757);let eZ=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function eQ(e,t){let r={isExpired:"1"};return t.trackAnonymousUser&&(null==e?void 0:e.anonymousId)&&(r.anonymousId=null==e?void 0:e.anonymousId),r}function e0(e){return(0,ef.isEmptyObject)(e)}function e1(e){var t;return void 0!==e.isExpired||!((void 0===(t=e).created||(0,_.dateNow)()-Number(t.created)<eW)&&(void 0===t.expire||(0,_.dateNow)()<Number(t.expire)))}function e2(e){e.expire=String((0,_.dateNow)()+eY)}function e5(e){return(0,eH.objectEntries)(e).map(([e,t])=>"anonymousId"===e?`aid=${t}`:`${e}=${t}`).join("&")}function e4(e){let t={};return e&&(-1!==e.indexOf("&")||eZ.test(e))&&e.split("&").forEach(e=>{let r=eZ.exec(e);if(null!==r){let[,e,n]=r;"aid"===e?t.anonymousId=n:t[e]=n}}),t}function e3(e,t,r,n){let i=e5(r);t.betaEncodeCookieOptions&&(i=e5({...r,...!(0,ef.isEmptyObject)(r)?{c:e8(e)}:{}})),eu(ez,i,t.trackAnonymousUser?eJ:n,e)}function e6(e,t){return t.betaEncodeCookieOptions?function(e){let t,r=(function(e){let t=new Map;for(K.lastIndex=0;;){let r=K.exec(e);if(r){let e=r[1],n=r[2];t.has(e)?t.get(e).push(n):t.set(e,[n])}else break}return t})(document.cookie).get(ez)||[],n=e8(e);for(let e of r.reverse())if((t=e4(e)).c===n)break;return null==t||delete t.c,null!=t?t:{}}(e):e4(ec(ez))}function e8(e){return((e.domain?e.domain.split(".").length-1:0)<<1|!!e.crossSite).toString(16)}function e9(e){localStorage.setItem(ez,e5(e))}function e7(){return e4(localStorage.getItem(ez))}let te=_.ONE_SECOND,tt=[];function tr(e,t,r=0){var n;let i,{isLockEnabled:o,persistSession:s,expireSession:l}=t,u=e=>s({...e,lock:i}),c=()=>{let{lock:e,...r}=t.retrieveSession();return{session:r,lock:e&&!function(e){let[,t]=e.split("--");return!t||(0,_.elapsed)(Number(t),(0,_.timeStampNow)())>te}(e)?e:void 0}};if(a||(a=e),e!==a)return void tt.push(e);if(o&&r>=100)return void ti(t);let d=c();if(o&&(d.lock||(i=F()+"--"+(0,_.timeStampNow)(),u(d.session),(d=c()).lock!==i)))return void tn(e,t,r);let p=e.process(d.session);if(o&&(d=c()).lock!==i)return void tn(e,t,r);if(p&&(e1(p)?l(p):(e2(p),o?u(p):s(p))),o&&!(p&&e1(p))){if((d=c()).lock!==i)return void tn(e,t,r);s(d.session),p=d.session}null==(n=e.after)||n.call(e,p||d.session),ti(t)}function tn(e,t,r){(0,k.setTimeout)(()=>{tr(e,t,r+1)},10)}function ti(e){a=void 0;let t=tt.shift();t&&tr(t,e)}let to="_DD_SESSION";function ta(){let e=(0,P.getGlobalObject)();return e[to]||(e[to]={}),(0,ef.shallowClone)(e[to])}function ts(e){(0,P.getGlobalObject)()[to]=(0,ef.shallowClone)(e)}let tl=_.ONE_SECOND,tu=["chrome-extension://","moz-extension://"];function tc(e){return tu.some(t=>e.includes(t))}var td=e.i(93258);function tp(e,t,r){let n=function(e,t){let r=`/api/v2/${t}`,n=e.proxy;if("string"==typeof n){let e=eo(n);return t=>`${e}?ddforward=${encodeURIComponent(`${r}?${t}`)}`}if("function"==typeof n)return e=>n({path:r,parameters:e});let i=tf(t,e);return e=>`https://${i}${r}?${e}`}(e,t);return{build:(i,o)=>n(function({clientToken:e,internalAnalyticsSubdomain:t,source:r="browser"},n,i,{retry:o,encoding:a},s=[]){let l=[`ddsource=${r}`,`dd-api-key=${e}`,`dd-evp-origin-version=${encodeURIComponent("6.32.0")}`,"dd-evp-origin=browser",`dd-request-id=${F()}`].concat(s);return a&&l.push(`dd-evp-encoding=${a}`),"rum"===n&&(l.push(`batch_time=${(0,_.timeStampNow)()}`,`_dd.api=${i}`),o&&l.push(`_dd.retry_count=${o.count}`,`_dd.retry_after=${o.lastFailureStatus}`)),t&&l.reverse(),l.join("&")}(e,t,i,o,r)),trackType:t}}function tf(e,t){let{site:r=td.INTAKE_SITE_US1,internalAnalyticsSubdomain:n}=t;if("logs"===e&&t.usePciIntake&&r===td.INTAKE_SITE_US1)return td.PCI_INTAKE_HOST_US1;if(n&&r===td.INTAKE_SITE_US1)return`${n}.${td.INTAKE_SITE_US1}`;if(r===td.INTAKE_SITE_FED_STAGING)return`http-intake.logs.${r}`;let i=r.split("."),o=i.pop();return`browser-intake-${i.join("-")}.${o}`}let tm={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"},tg={ALL:"all",SAMPLED:"sampled"};function tv(e,t){return null==e||"string"==typeof e||(en.display.error(`${t} must be defined as a string`),!1)}function ty(e,t){return void 0===e||!!(0,eK.isPercentage)(e)||(en.display.error(`${t} Sample Rate should be a number between 0 and 100`),!1)}let tb=["tracecontext","datadog"];function tE(e){return eV(e)?{match:e,propagatorTypes:tb}:(0,ek.isIndexableObject)(e)&&eV(e.match)&&(null===e.propagatorTypes||void 0===e.propagatorTypes||Array.isArray(e.propagatorTypes))?{match:e.match,propagatorTypes:e.propagatorTypes||tb}:void 0}var tS=e.i(72528);let th=/[a-zA-Z_$]/,t_=/[a-zA-Z0-9_$]/,tT=/[0-9]/,tC=/[a-fA-F0-9]/,tw={0:()=>
4!1,1:()=>!1,2:e=>th.test(e),3:e=>t_.test(e),4:e=>"."===e,5:e=>"["===e,6:e=>"]"===e,7:e=>tT.test(e),8:e=>"'\"".includes(e),9:(e,t)=>e===t.quote,10:()=>!0,11:e=>"\\"===e,12:(e,t)=>void 0===t.escapeSequence?`${t.quote}/\\bfnrtu`.includes(e):!!t.escapeSequence.startsWith("u")&&t.escapeSequence.length<5&&tC.test(e)},tO={0:[2,5],1:[],2:[3,4,5,1],3:[3,4,5,1],4:[2],5:[8,7],6:[4,5,1],7:[7,6],8:[11,9,10],9:[6],10:[11,9,10],11:[12],12:[12,11,9,10]},tA=[2,3,7,10],tI=[4,5,6],tN={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},tR=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","defaultPrivacyLevel","enablePrivacyForActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];async function tk(e,t){let r,n,i=(r={fetch:{}},{get:()=>r,increment:(e,t)=>{r[e]||(r[e]={}),r[e][t]||(r[e][t]=0),r[e][t]=r[e][t]+1}}),o=await tD(e);return o.ok?(i.increment("fetch","success"),n=function(e,t,r,n){let i={...e};return tR.forEach(e=>{e in t&&(i[e]=o(t[e]))}),Object.keys(r).forEach(e=>{var n;void 0!==t[e]&&(n=r[e],t[e].forEach(({key:e,value:t})=>{n.setContextProperty(e,o(t))}))}),i;function o(e){if(Array.isArray(e))return e.map(o);if((0,ek.isIndexableObject)(e)){if("rcSerializedType"in e){let r=e.rcSerializedType;switch(r){case"string":return e.value;case"regex":return tx(e.value);case"dynamic":var t=e;let i,o=t.strategy;switch(o){case"cookie":i=function({name:e}){let t=ec(e);return n.increment("cookie",void 0!==t?"success":"missing"),t}(t);break;case"dom":i=function({selector:e,attribute:t}){var r,i;let o;try{o=document.querySelector(e)}catch(t){en.display.error(`Invalid selector in the remote configuration: '${e}'`),n.increment("dom","failure");return}if(!o)return void n.increment("dom","missing");if(r=o,i=t,"password"===r.getAttribute("type")&&"value"===i){en.display.error(`Forbidden element selected by the remote configuration: '${e}'`),n.increment("dom","failure");return}let a=void 0!==t?o.getAttribute(t):o.textContent;return null===a?void n.increment("dom","missing"):(n.increment("dom","success"),a)}(t);break;case"js":i=function({path:e}){let t=window,r=function(e){let t,r=[],n=0,i={quote:void 0,escapeSequence:void 0},o="";for(let l of e){if(!(t=tO[n].find(e=>tw[e](l,i))))return[];if(void 0!==i.escapeSequence&&12!==t){var a,s;if(a=i.escapeSequence,!("\"'/\\bfnrt".includes(a)||a.startsWith("u")&&5===a.length))return[];o+=(s=i.escapeSequence).startsWith("u")?String.fromCharCode(parseInt(s.slice(1),16)):tN[s],i.escapeSequence=void 0}tA.includes(t)?o+=l:tI.includes(t)&&""!==o?(r.push(o),o=""):12===t?i.escapeSequence=i.escapeSequence?`${i.escapeSequence}${l}`:l:8===t?i.quote=l:9===t&&(i.quote=void 0),n=t}return tO[n].includes(1)?(""!==o&&r.push(o),r):[]}(e);if(0===r.length){en.display.error(`Invalid JSON path in the remote configuration: '${e}'`),n.increment("js","failure");return}for(let i of r){if(!(i in t))return void n.increment("js","missing");try{t=t[i]}catch(t){en.display.error(`Error accessing: '${e}'`,t),n.increment("js","failure");return}}return n.increment("js","success"),t}(t);break;case"localStorage":i=function({key:e}){let t;try{t=localStorage.getItem(e)}catch(e){n.increment("localStorage","failure");return}return n.increment("localStorage",null!==t?"success":"missing"),null!=t?t:void 0}(t);break;default:en.display.error(`Unsupported remote configuration: "strategy": "${o}"`);return}let a=t.extractor;return void 0!==a&&"string"==typeof i?function(e,t){let r=tx(e.value);if(void 0===r)return;let n=r.exec(t);if(null===n)return;let[i,o]=n;return o||i}(a,i):i;default:en.display.error(`Unsupported remote configuration: "rcSerializedType": "${r}"`);return}}return(0,ef.mapValues)(e,o)}return e}}(e,o.value,t,i)):(i.increment("fetch","failure"),en.display.error(o.error)),(0,b.addTelemetryMetrics)("remote configuration metrics",{metrics:i.get()}),n}function tx(e){try{return new RegExp(e)}catch(t){en.display.error(`Invalid regex in the remote configuration: '${e}'`)}}async function tD(e){let t;try{var r;t=await (0,tS.fetch)((r=e).remoteConfigurationProxy?r.remoteConfigurationProxy:`https://sdk-configuration.${tf("rum",r)}/v1/${encodeURIComponent(r.remoteConfigurationId)}.json`)}catch(e){t=void 0}if(!t||!t.ok)return{ok:!1,error:Error("Error fetching the remote configuration.")};let n=await t.json();return n.rum?{ok:!0,value:n.rum}:{ok:!1,error:Error("No remote configuration for RUM.")}}function tM(e,t,r){e.changeObservable.subscribe(()=>{let n=e.getContext();r.add(e=>e[t].setContext(n))})}var tL=e.i(53265),tP=e.i(90336),tU=e.i(17701);function t$(){let e=tV();return new N.Observable(t=>{if(!e)return;let r=new e((0,h.monitor)(e=>t.notify(e)));return r.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>r.disconnect()})}function tV(){let e,t=window;if(t.Zone&&(e=(0,tU.getZoneJsOriginalValue)(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver)){let r=new t.MutationObserver(x.noop),n=(0,tU.getZoneJsOriginalValue)(r,"originalInstance");e=n&&n.constructor}return e||(e=t.MutationObserver),e}e.s(["createDOMMutationObservable",()=>t$,"getMutationObserverConstructor",()=>tV],34984);let tB=class{constructor(){this.callbacks={}}notify(e,t){let r=this.callbacks[e];
4r&&r.forEach(e=>e(t))}subscribe(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:()=>{this.callbacks[e]=this.callbacks[e].filter(e=>t!==e)}}}},tF=1/0,tK=_.ONE_MINUTE,tj=new Set;function tq({expireDelay:e,maxEntries:t}){let r=[];s||(s=(0,k.setInterval)(()=>void tj.forEach(e=>e()),tK));let n=()=>{let t=(0,_.relativeNow)()-e;for(;r.length>0&&r[r.length-1].endTime<t;)r.pop()};return tj.add(n),{add:function(e,n){let i={value:e,startTime:n,endTime:tF,remove:()=>{et(r,i)},close:e=>{i.endTime=e}};return t&&r.length>=t&&r.pop(),r.unshift(i),i},find:function(e=tF,t={returnInactive:!1}){for(let n of r)if(n.startTime<=e){if(t.returnInactive||e<=n.endTime)return n.value;break}},closeActive:function(e){let t=r[0];t&&t.endTime===tF&&t.close(e)},findAll:function(e=tF,t=0){let n=(0,_.addDuration)(e,t);return r.filter(t=>t.startTime<=n&&e<=t.endTime).map(e=>e.value)},getEntries:function(e){return r.filter(t=>t.startTime===e)},reset:function(){r=[]},stop:function(){tj.delete(n),0===tj.size&&s&&((0,k.clearInterval)(s),s=void 0)}}}e.s(["createValueHistory",()=>tq],19623);let tG="fetch",tz="other",tH=new WeakMap;function tW({target:e,parameters:[t,r]}){tH.set(e,{state:"open",method:String(t).toUpperCase(),url:eo(String(r))})}function tY({target:e}){let t=tH.get(e);t&&(t.isAborted=!0)}let tJ="initial_document",tX=[["document",e=>tJ===e],["xhr",e=>"xmlhttprequest"===e],[tG,e=>"fetch"===e],["beacon",e=>"beacon"===e],["css",(e,t)=>/\.css$/i.test(t)],["js",(e,t)=>/\.js$/i.test(t)],["image",(e,t)=>["image","img","icon"].includes(e)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(t)],["font",(e,t)=>null!==/\.(woff|eot|woff2|ttf)$/i.exec(t)],["media",(e,t)=>["audio","video"].includes(e)||null!==/\.(mp3|mp4)$/i.exec(t)]];function tZ(e){let t=e.name;if(!ea(t))return tz;let r=es(t);for(let[t,n]of tX)if(n(e.initiatorType,r))return t;return tz}function tQ(...e){for(let t=1;t<e.length;t+=1)if(e[t-1]>e[t])return!1;return!0}function t0(e){return"xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType}function t1(e){let{duration:t,startTime:r,responseEnd:n}=e;return 0===t&&r<n?(0,_.elapsed)(r,n):t}function t2(e){if(!t4(e))return;let{startTime:t,fetchStart:r,workerStart:n,redirectStart:i,redirectEnd:o,domainLookupStart:a,domainLookupEnd:s,connectStart:l,secureConnectionStart:u,connectEnd:c,requestStart:d,responseStart:p,responseEnd:f}=e,m={download:t3(t,p,f),first_byte:t3(t,d,p)};return 0<n&&n<r&&(m.worker=t3(t,n,r)),r<c&&(m.connect=t3(t,l,c),l<=u&&u<=c&&(m.ssl=t3(t,u,c))),r<s&&(m.dns=t3(t,a,s)),t<o&&(m.redirect=t3(t,i,o)),m}function t5(e){return e.duration>=0}function t4(e){var t;let r=tQ(e.startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd),n=!((t=e).redirectEnd>t.startTime)||tQ(e.startTime,e.redirectStart,e.redirectEnd,e.fetchStart);return r&&n}function t3(e,t,r){if(e<=t&&t<=r)return{duration:(0,_.toServerDuration)((0,_.elapsed)(t,r)),start:(0,_.toServerDuration)((0,_.elapsed)(e,t))}}function t6(e){return""===e.nextHopProtocol?void 0:e.nextHopProtocol}function t8(e){return""===e.deliveryType?"other":e.deliveryType}function t9(e){if(e.startTime<e.responseStart){let{encodedBodySize:t,decodedBodySize:r,transferSize:n}=e;return{size:r,encoded_body_size:t,decoded_body_size:r,transfer_size:n}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}function t7(e){return e&&(!td.INTAKE_URL_PARAMETERS.every(t=>e.includes(t))||(0,B.isExperimentalFeatureEnabled)(B.ExperimentalFeature.TRACK_INTAKE_REQUESTS))}let re=/data:(.+)?(;base64)?,/g;function rt(e,t=24e3){if(e.length<=t||!e.startsWith("data:"))return e;let r=e.substring(0,100).match(re);return r?`${r[0]}[...]`:e}e.s(["FAKE_INITIAL_DOCUMENT",0,tJ,"computeResourceEntryDeliveryType",()=>t8,"computeResourceEntryDetails",()=>t2,"computeResourceEntryDuration",()=>t1,"computeResourceEntryProtocol",()=>t6,"computeResourceEntrySize",()=>t9,"computeResourceEntryType",()=>tZ,"hasValidResourceEntryDuration",()=>t5,"hasValidResourceEntryTimings",()=>t4,"isAllowedRequestUrl",()=>t7,"isResourceEntryRequestType",()=>t0,"sanitizeIfLongDataUrl",()=>rt],38137);let rr=new Map;function rn(e,t){var r,n;let i,o,a;if(100===t)return!0;
4if(0===t)return!1;let s=rr.get(t);return s&&e===s.sessionId?s.decision:(i=window.BigInt?(r=BigInt(`0x${e.split("-")[4]}`),n=t,o=BigInt("1111111111111111111"),Number(r*o%(a=BigInt("0x10000000000000000")))<=n/100*Number(a)):(0,eK.performDraw)(t),rr.set(t,{sessionId:e,decision:i}),i)}e.s(["isSampled",()=>rn],33253);function ri(e){let t=crypto.getRandomValues(new Uint32Array(2));return 63===e&&(t[t.length-1]>>>=1),{toString(e=10){let r=t[1],n=t[0],i="";do{let t=r%e*0x100000000+n;r=Math.floor(r/e),n=Math.floor(t/e),i=(t%e).toString(e)+i}while(r||n)return i}}}function ro(e){return e.toString(16).padStart(16,"0")}function ra(e){0!==e.status||e.isAborted||(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function rs(e,t,r,n,i,o){let a=r.findTrackedSession();if(!a)return;let s=e.allowedTracingUrls.find(e=>eB([e.match],t.url,!0));if(!s)return;let l=rn(a.id,e.traceSampleRate);(l||e.traceContextInjection===tg.ALL)&&(t.traceSampled=l,t.traceId=ri(64),t.spanId=ri(63),o(function(e,t,r,n,i,o,a,s){let l={};if(i.forEach(n=>{switch(n){case"datadog":Object.assign(l,{"x-datadog-origin":"rum","x-datadog-parent-id":t.toString(),"x-datadog-sampling-priority":r?"1":"0","x-datadog-trace-id":e.toString()});break;case"tracecontext":Object.assign(l,{traceparent:`00-0000000000000000${ro(e)}-${ro(t)}-0${r?"1":"0"}`,tracestate:`dd=s:${r?"1":"0"};o:rum`});break;case"b3":Object.assign(l,{b3:`${ro(e)}-${ro(t)}-${r?"1":"0"}`});break;case"b3multi":Object.assign(l,{"X-B3-TraceId":ro(e),"X-B3-SpanId":ro(t),"X-B3-Sampled":r?"1":"0"})}}),s.propagateTraceBaggage){let e={"session.id":n},t=o.getContext().id;"string"==typeof t&&(e["user.id"]=t);let r=a.getContext().id;"string"==typeof r&&(e["account.id"]=r);let i=Object.entries(e).map(([e,t])=>`${e}=${encodeURIComponent(t)}`).join(",");i&&(l.baggage=i)}return l}(t.traceId,t.spanId,t.traceSampled,a.id,s.propagatorTypes,n,i,e)))}let rl=32*eh.ONE_KIBI_BYTE;function ru(e,t){return t.allowedGraphQlUrls.find(t=>eB([t.match],e))}let rc=1;function rd(){let e=rc;return rc+=1,e}function rp(e){return(0,eK.isNumber)(e)&&e<0?void 0:e}function rf(e){return e.nodeType===Node.TEXT_NODE}function rm(e){return e.nodeType===Node.COMMENT_NODE}function rg(e){return e.nodeType===Node.ELEMENT_NODE}function rv(e){return rg(e)&&!!e.shadowRoot}function ry(e){return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&rg(e.host)}function rb(e){return e.childNodes.length>0||rv(e)}function rE(e,t){let r=e.firstChild;for(;r;)t(r),r=r.nextSibling;rv(e)&&t(e.shadowRoot)}function rS(e){return ry(e)?e.host:e.parentNode}function rh(e){if(e.parentElement)return e.parentElement;let t=e.parentNode;return t&&ry(t)?t.host:null}function r_(e,t){return new N.Observable(r=>{var n;let i,o;if(!window.PerformanceObserver)return;let a=e=>{let t=e.filter(e=>{var t;return!((t=e).entryType===v.RESOURCE&&(!t7(t.name)||!t5(t)))});t.length>0&&r.notify(t)},s=!0,l=new PerformanceObserver((0,h.monitor)(e=>{s?i=(0,k.setTimeout)(()=>a(e.getEntries())):a(e.getEntries())}));try{l.observe(t)}catch(e){if([v.RESOURCE,v.NAVIGATION,v.LONG_TASK,v.PAINT].includes(t.type)){t.buffered&&(i=(0,k.setTimeout)(()=>a(performance.getEntriesByType(t.type))));try{l.observe({entryTypes:[t.type]})}catch(e){return}}}return s=!1,n=e,!u&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(u=(0,eA.addEventListener)(n,performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()})),rT(v.FIRST_INPUT)||t.type!==v.FIRST_INPUT||({stop:o}=function(e,t){let r=(0,_.dateNow)(),n=!1,{stop:i}=(0,eA.addEventListeners)(e,window,["click","mousedown","keydown","touchstart","pointerdown"],t=>{var r,n;if(!t.cancelable)return;let i={entryType:"first-input",processingStart:(0,_.relativeNow)(),processingEnd:(0,_.relativeNow)(),startTime:t.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:()=>({})};"pointerdown"===t.type?(r=e,n=i,(0,eA.addEventListeners)(r,window,["pointerup","pointercancel"],e=>{"pointerup"===e.type&&o(n)},{once:!0})):o(i)},{passive:!0,capture:!0});return{stop:i};function o(e){if(!n){n=!0,i();let o=e.processingStart-e.startTime;o>=0&&o<(0,_.dateNow)()-r&&t(e)}}}(e,e=>{a([e])}
4)),()=>{l.disconnect(),o&&o(),(0,k.clearTimeout)(i)}})}function rT(e){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(e)}e.s(["forEachChildNodes",()=>rE,"getParentElement",()=>rh,"getParentNode",()=>rS,"hasChildNodes",()=>rb,"isCommentNode",()=>rm,"isElementNode",()=>rg,"isNodeShadowHost",()=>rv,"isNodeShadowRoot",()=>ry,"isTextNode",()=>rf],58239),(g=v||(v={})).EVENT="event",g.FIRST_INPUT="first-input",g.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",g.LAYOUT_SHIFT="layout-shift",g.LONG_TASK="longtask",g.LONG_ANIMATION_FRAME="long-animation-frame",g.NAVIGATION="navigation",g.PAINT="paint",g.RESOURCE="resource",g.VISIBILITY_STATE="visibility-state",e.s(["RumPerformanceEntryType",()=>v,"createPerformanceObservable",()=>r_,"supportPerformanceTimingEvent",()=>rT],66272);let rC="data-dd-excluded-activity-mutations";function rw(e,t,r,n,i,o){let a,s=(0,R.mockable)(rO)(e,t,r,n),l=!1,u=(0,k.setTimeout)((0,h.monitor)(()=>f({hadActivity:!1})),100),c=void 0!==o?(0,k.setTimeout)((0,h.monitor)(()=>f({hadActivity:!0,end:(0,_.timeStampNow)()})),o):void 0,d=s.subscribe(({isBusy:e})=>{(0,k.clearTimeout)(u),(0,k.clearTimeout)(a);let t=(0,_.timeStampNow)();e||(a=(0,k.setTimeout)((0,h.monitor)(()=>f({hadActivity:!0,end:t})),100))}),p=()=>{l=!0,(0,k.clearTimeout)(u),(0,k.clearTimeout)(a),(0,k.clearTimeout)(c),d.unsubscribe()};function f(e){l||(p(),i(e))}return{stop:p}}function rO(e,t,r,n){return new N.Observable(i=>{let o,a=[],s=0;return a.push(t.subscribe(e=>{e.every(rI)||l()}),r.subscribe(l),r_(n,{type:v.RESOURCE}).subscribe(e=>{e.some(e=>!rA(n,e.name))&&l()}),e.subscribe(7,e=>{rA(n,e.url)||(void 0===o&&(o=e.requestIndex),s+=1,l())}),e.subscribe(8,e=>{rA(n,e.url)||void 0===o||e.requestIndex<o||(s-=1,l())})),()=>{a.forEach(e=>e.unsubscribe())};function l(){i.notify({isBusy:s>0})}})}function rA(e,t){return eB(e.excludedActivityUrls,t)}function rI(e){let t="characterData"===e.type?e.target.parentElement:e.target;return!!(t&&rg(t)&&t.matches(`[${rC}], [${rC}] *`))}let rN="data-dd-action-name",rR="Masked Element",rk=[rN,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],rx=[r$,rP],rD=[r$,function(e){if("BODY"===e.tagName)return;let t=e.classList;for(let r=0;r<t.length;r+=1){let n=t[r];if(!rL(n))return`${CSS.escape(e.tagName)}.${CSS.escape(n)}`}},rU];function rM(e,t){if(!e.isConnected)return;let r=function(e){let t=[],r=e;for(;r;){let e=r.getRootNode();if(t.push({rootNode:e,target:r}),ry(e))r=e.host;else break}return t.reverse()}(e),n=[];for(let{rootNode:e,target:i}of r){let r=function(e,t,r){let n,i=e;for(;i&&"HTML"!==i.nodeName;){let e=rF(i,t,rx,rK,r,n);if(e)return rq(e,n);n=rq(rF(i,t,rD,rj,r,n)||function(e){let t=rB(e);return`${CSS.escape(e.tagName)}:nth-of-type(${t})`}(i),n),i=i.parentElement}return n}(i,e,t);if(!r)return;n.push(r)}return n.join("::shadow ")}function rL(e){return/[0-9]/.test(e)}function rP(e){if(e.id&&!rL(e.id))return`#${CSS.escape(e.id)}`}function rU(e){return CSS.escape(e.tagName)}function r$(e,t){if(t){let e=r(t);if(e)return e}for(let e of rk){let t=r(e);if(t)return t}function r(t){if(e.hasAttribute(t))return`${CSS.escape(e.tagName)}${rV(t,e.getAttribute(t))}`}}function rV(e,t){return`[${e}="${CSS.escape(t)}"]`}function rB(e){let t=e.parentNode.firstElementChild,r=1;for(;t&&t!==e;)t.tagName===e.tagName&&(r+=1),t=t.nextElementSibling;return r}function rF(e,t,r,n,i,o){for(let a of r){let r=a(e,i);if(r&&n(e,t,r,o))return r}}function rK(e,t,r,n){return 1===t.querySelectorAll(rq(r,n)).length}function rj(e,t,r,n){let i;if(void 0===n)i=e=>e.matches(r);else{let e=rq(`${r}:scope`,n);i=t=>null!==t.querySelector(e)}let o=e.previousElementSibling;for(;o;){if(i(o))return!1;o=o.previousElementSibling}for(o=e.nextElementSibling;o;){if(i(o))return!1;o=o.nextElementSibling}return!0}function rq(e,t){return t?`${e}>${t}`:e}let rG={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:tm.ALLOW,MASK:tm.MASK,MASK_USER_INPUT:tm.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:tm.MASK_UNLESS_ALLOWLISTED},rz="data-dd-privacy",rH={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function rW(e){return`[${rz}="${e}"], .dd-privacy-${e}`}function rY(e,t,r){if(r&&r.has(e))return r.get(e);let n=rS(e),i=n?rY(n,t,r):t,o=rJ(rX(e),i);return r&&r.set(e,o),o}function rJ(e,t){switch(t){case rG.HIDDEN:case rG.IGNORE:return t}switch(e){case rG.ALLOW:case rG.MASK:case rG.MASK_USER_INPUT:case rG.MASK_UNLESS_ALLOWLISTED:case rG.HIDDEN:case rG.IGNORE:return e;default:return t}}function rX(e){if(rg(e)){if("BASE"===e.tagName)return rG.ALLOW;if("INPUT"===e.tagName){if("password"===e.type||"email"===e.type||"tel"===e.type||"hidden"===e.type)return rG.MASK;let t=e.getAttribute("autocomplete");if(t&&(t.startsWith("cc-")||t.endsWith("-password")))return rG.MASK}if(e.matches(rW(rG.HIDDEN)))return rG.HIDDEN;if(e.matches(rW(rG.MASK)))return rG.MASK;if(e.matches(rW(rG.MASK_UNLESS_ALLOWLISTED)))return rG.MASK_UNLESS_ALLOWLISTED;if(e.matches(rW(rG.MASK_USER_INPUT)))return rG.MASK_USER_INPUT;if(e.matches(rW(rG.ALLOW)))return rG.ALLOW;if(function(e){if("SCRIPT"===e.nodeName)return!0;
4if("LINK"===e.nodeName){let e=t("rel");return/preload|prefetch/i.test(e)&&"script"===t("as")||"shortcut icon"===e||"icon"===e}if("META"===e.nodeName){let r=t("name"),n=t("rel"),i=t("property");return/^msapplication-tile(image|color)$/.test(r)||"application-name"===r||"icon"===n||"apple-touch-icon"===n||"shortcut icon"===n||"keywords"===r||"description"===r||/^(og|twitter|fb):/.test(i)||/^(og|twitter):/.test(r)||"pinterest"===r||"robots"===r||"googlebot"===r||"bingbot"===r||e.hasAttribute("http-equiv")||"author"===r||"generator"===r||"framework"===r||"publisher"===r||"progid"===r||/^article:/.test(i)||/^product:/.test(i)||"google-site-verification"===r||"yandex-verification"===r||"csrf-token"===r||"p:domain_verify"===r||"verify-v1"===r||"verification"===r||"shopify-checkout-api-token"===r}function t(t){return(e.getAttribute(t)||"").toLowerCase()}return!1}(e))return rG.IGNORE}}function rZ(e,t){switch(t){case rG.MASK:case rG.HIDDEN:case rG.IGNORE:return!0;case rG.MASK_UNLESS_ALLOWLISTED:if(rf(e))return!!r0(e.parentNode)||!r2(e.textContent||"");return r0(e);case rG.MASK_USER_INPUT:return rf(e)?r0(e.parentNode):r0(e);default:return!1}}function rQ(e,t,r,n,i){if(n!==rG.MASK&&n!==rG.MASK_UNLESS_ALLOWLISTED||t===rz||rk.includes(t)||t===i.actionNameAttribute)return!1;switch(t){case"title":case"alt":case"placeholder":case"aria-label":case"name":return!0}return!!("A"===e&&"href"===t||"IFRAME"===e&&"srcdoc"===t||r&&t.startsWith("data-"))||("IMG"===e||"SOURCE"===e)&&("src"===t||"srcset"===t)}function r0(e){if(!e||e.nodeType!==e.ELEMENT_NODE)return!1;if("INPUT"===e.tagName)switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!rH[e.tagName]}function r1(e,t){var r;let n=null==(r=e.parentElement)?void 0:r.tagName,i=e.textContent||"";if("HEAD"!==n||i.trim()){if("SCRIPT"===n)i="***";else if(t===rG.HIDDEN)i="***";else if(rZ(e,t))if("DATALIST"===n||"SELECT"===n||"OPTGROUP"===n){if(!i.trim())return}else i="OPTION"===n?"***":t===rG.MASK_UNLESS_ALLOWLISTED?r5(i):i.replace(/\S/g,"x");return i}}function r2(e){var t;return!(e&&e.trim())||(null==(t=window.$DD_ALLOW)?void 0:t.has(e.toLocaleLowerCase()))||!1}function r5(e,t){return r2(e)?e:t||e.replace(/\S/g,"x")}function r4({lifeCycle:e,isChildEvent:t,onChange:r=x.noop}){let n={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},i=e.subscribe(13,e=>{var i;if("view"!==e.type&&"vital"!==e.type&&t(e))switch(e.type){case G.ERROR:n.errorCount+=1,r();break;case G.ACTION:n.actionCount+=1,e.action.frustration&&(n.frustrationCount+=e.action.frustration.type.length),r();break;case G.LONG_TASK:n.longTaskCount+=1,r();break;case G.RESOURCE:(null==(i=e._dd)?void 0:i.discarded)||(n.resourceCount+=1,r())}});return{stop:()=>{i.unsubscribe()},eventCounts:n}}e.s(["CENSORED_IMG_MARK",0,"data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==","CENSORED_STRING_MARK",0,"***","FORM_PRIVATE_TAG_NAMES",0,rH,"NodePrivacyLevel",0,rG,"PRIVACY_ATTR_NAME",0,rz,"PRIVACY_ATTR_VALUE_HIDDEN",0,"hidden","TEXT_MASKING_CHAR",0,"x","getPrivacySelector",()=>rW],78487),e.s(["getNodePrivacyLevel",()=>rY,"getNodeSelfPrivacyLevel",()=>rX,"getTextContent",()=>r1,"maskDisallowedTextContent",()=>r5,"reducePrivacyLevel",()=>rJ,"shouldMaskAttribute",()=>rQ,"shouldMaskNode",()=>rZ],42637);let r3=5*_.ONE_MINUTE;function r6(e){let t=tq({expireDelay:r3}),r=new Map;function n(e){var t;r.delete(e.key),null==(t=e.eventCounts)||t.stop()}function i(){r.forEach(e=>{n(e)}),t.reset()}let o=e.subscribe(10,i);return{start:function(i,o,a,s){let l=F(),u=t.add(l,o.relative),c=r.get(i);c&&n(c);let d=(null==s?void 0:s.isChildEvent)?r4({lifeCycle:e,isChildEvent:s.isChildEvent(l)}):void 0,p={id:l,key:i,startClocks:o,data:a,historyEntry:u,eventCounts:d};return r.set(i,p),p},stop:function(e,t,i){var o;let a=r.get(e);if(!a)return;let s=i?(0,E.combine)(a.data,i):a.data;a.historyEntry.close(t.relative);let l=(0,_.elapsed)(a.startClocks.timeStamp,t.timeStamp),u=null==(o=a.eventCounts)?void 0:o.eventCounts;return n(a),{...s,id:a.id,startClocks:a.startClocks,duration:l,counts:u}},discard:function(e){var t;let i=r.get(e);if(!i)return;let o=null==(t=i.eventCounts)?void 0:t.eventCounts;return n(i),i.historyEntry.remove(),{...i.data,id:i.id,startClocks:i.startClocks,counts:o}},getCounts:function(e){var t,n;return null==(n=null==(t=r.get(e))?void 0:t.eventCounts)?void 0:n.eventCounts},findId:function(e){return t.findAll(e)},stopAll:function(){o.unsubscribe(),i(),t.stop()}}}let r8=["HTML","BODY"],r9=2*eh.ONE_KIBI_BYTE,r7=rk.concat(["role","type","disabled","readonly","tabindex","draggable","target","rel","download","method","action","enctype","autocomplete"]),ne=_.ONE_SECOND;function nt(e,t){let r=function(e,t){let r=e;for(;r;){if(r.matches(t))return r;r=rh(r)}return null}(e,`[${t}]`);
4if(r)return na(no(r.getAttribute(t).trim()))}let nr=[(e,t,r)=>{if("labels"in e&&e.labels&&e.labels.length>0)return nl(e.labels[0],t,r)},e=>{if("INPUT"===e.nodeName){let t=e.getAttribute("type");if("button"===t||"submit"===t||"reset"===t)return{name:e.value,nameSource:"text_content"}}},(e,t,r)=>{if("BUTTON"===e.nodeName||"LABEL"===e.nodeName||"button"===e.getAttribute("role"))return nl(e,t,r)},(e,t,r)=>ns(e,"aria-label",t,r),(e,t,r)=>{let n=e.getAttribute("aria-labelledby");if(n)return{name:n.split(/\s+/).map(t=>(function(e,t){let r=e.getRootNode();if(r instanceof ShadowRoot){let e=r.getElementById(t);if(e)return e}return e.ownerDocument?e.ownerDocument.getElementById(t):null})(e,t)).filter(e=>!!e).map(e=>nu(e,t,r)).join(" "),nameSource:"text_content"}},(e,t,r)=>ns(e,"alt",t,r),(e,t,r)=>ns(e,"name",t,r),(e,t,r)=>ns(e,"title",t,r),(e,t,r)=>ns(e,"placeholder",t,r),(e,t,r)=>{if("options"in e&&e.options.length>0)return nl(e.options[0],t,r)}],nn=[(e,t,r)=>nl(e,t,r)];function ni(e,t,r,n){let i=e,o=0;for(;o<=10&&i&&"BODY"!==i.nodeName&&"HTML"!==i.nodeName&&"HEAD"!==i.nodeName;){for(let e of t){let t=e(i,r,n);if(t){let{name:e,nameSource:r}=t,n=e&&e.trim();if(n)return{name:na(no(n)),nameSource:r}}}if("FORM"===i.nodeName)break;i=rh(i),o+=1}}function no(e){return e.replace(/\s+/g," ")}function na(e){return e.length>100?`${q(e,100)} [...]`:e}function ns(e,t,r,n){let{enablePrivacyForActionName:i,defaultPrivacyLevel:o}=r,a=e.getAttribute(t);if(a&&i){let i=rY(e,o,n);rQ(e.tagName,t,a,i,r)&&(a=r5(a,rR))}else a||(a="");return{name:a,nameSource:"standard_attribute"}}function nl(e,t,r){return{name:nu(e,t,r)||"",nameSource:"text_content"}}function nu(e,t,r){if(e.isContentEditable)return;let{enablePrivacyForActionName:n,actionNameAttribute:i,defaultPrivacyLevel:o}=t;if((0,B.isExperimentalFeatureEnabled)(B.ExperimentalFeature.USE_TREE_WALKER_FOR_ACTION_NAME)){var a=e,s=i,l=n,u=o,c=r;let t=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,function(e){let t=rY(e,u,c);if(l&&t&&rZ(e,t))return NodeFilter.FILTER_REJECT;if(rg(e)){if(e.hasAttribute(rN)||s&&e.hasAttribute(s))return NodeFilter.FILTER_REJECT;let t=getComputedStyle(e);if("visible"!==t.visibility||"none"===t.display||t.contentVisibility&&"visible"!==t.contentVisibility)return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT}),d="";for(;t.nextNode();){let e=t.currentNode;if(rg(e)){("BR"===e.nodeName||"P"===e.nodeName||["block","flex","grid","list-item","table","table-caption"].includes(getComputedStyle(e).display))&&(d+=" ");continue}d+=e.textContent||""}return d.replace(/\s+/g," ").trim()}if("innerText"in e){let t=e.innerText,r=r=>{let n=e.querySelectorAll(r);for(let e=0;e<n.length;e+=1){let r=n[e];if("innerText"in r){let e=r.innerText;e&&e.trim().length>0&&(t=t.replace(e,""))}}};return r(`[${rN}]`),i&&r(`[${i}]`),n&&r(`${rW(rG.HIDDEN)}, ${rW(rG.MASK)}`),t}return e.textContent}function nc(){let e=window.getSelection();return!e||e.isCollapsed}function nd(e){return e.target instanceof Element&&!1!==e.isPrimary}function np(e){if(e.hasPageActivity||e.getUserActivity().input||e.getUserActivity().scroll)return!1;let t=e.event.target;return"LABEL"===t.tagName&&t.hasAttribute("for")&&(t=document.getElementById(t.getAttribute("for"))),!t||!t.matches('input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *')}let nf=10*_.ONE_SECOND,nm=new Map;function ng(e,t){nm.set(e,t),nm.forEach((e,t)=>{(0,_.elapsed)(t,(0,_.relativeNow)())>nf&&nm.delete(t)})}function nv(e){return t=>void 0!==t.action&&void 0!==t.action.id&&t.action.id.includes(e)}function ny(e){if(e.composed&&rv(e.target)&&"function"==typeof e.composedPath){let t=e.composedPath();if(t.length>0&&t[0]instanceof Element)return t[0]}return e.target}function nb(e){var t,r,n,i;let o="events"in e,a=rp((0,_.toServerDuration)(e.duration));return{rawRumEvent:{type:G.ACTION,date:e.startClocks.timeStamp,action:{id:e.id,target:{name:e.name},type:e.type,...void 0!==a&&{loading_time:a},...e.counts&&{error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},frustration:{type:e.frustrationTypes}},...o?{_dd:{action:{target:{selector:(null==(t=e.target)?void 0:t.selector)||void 0,width:(null==(r=e.target)?void 0:r.width)||void 0,height:(null==(n=e.target)?void 0:n.height)||void 0,composed_path_selector:null==(i=e.target)?void 0:i.composedPathSelector},position:e.position,name_source:e.nameSource}}}:{context:e.context}},duration:e.duration,startClocks:e.startClocks,domainContext:o?{events:e.events}:{handlingStack:e.handlingStack}}}var nE=e.i(71019);let nS={},nh="csp_violation";function n_(e){return{startClocks:(0,_.clocksNow)(),source:$.ErrorSource.REPORT,handling:"unhandled",...e}}function nT(e,t,r,n,i){return r?(0,T.toStackTraceString)({name:e,message:t,stack:[{func:"?",url:r,line:null!=n?n:void 0,column:null!=i?i:void 0}]}):void 0}function nC(e,t){var r;let n,i;if(window.requestIdleCallback&&window.cancelIdleCallback){let r=window.requestIdleCallback((0,h.monitor)(e),t);return()=>window.cancelIdleCallback(r)}return r=e,n=(0,_.dateNow)(),i=(0,k.setTimeout)(()=>{r({didTimeout:!1,timeRemaining:()=>Math.max(0,50-((0,_.dateNow)()-n))})},0),()=>(0,k.clearTimeout)(i)}e.s(["requestIdleCallback",()=>nC],80466);let nw=_.ONE_SECOND;function nO(){let e=[];function t(t){let n;if(t.didTimeout){let e=performance.now();n=()=>30-(performance.now()-e)}else n=t.timeRemaining.bind(t);for(;n()>0&&e.length;)e.shift()();e.length&&r()}function r(){nC(t,{timeout:nw}
4)}return{push(t){1===e.push(t)&&r()},stop(){e.length=0}}}let nA=new WeakSet;function nI(e){return(0,_.addDuration)(e.startTime,e.duration)}function nN(e,t,r){return document.readyState===t||"complete"===document.readyState?(r(),{stop:x.noop}):(0,eA.addEventListener)(e,window,"complete"===t?"load":"DOMContentLoaded",r,{once:!0})}function nR(e,t){return new Promise(r=>{nN(e,t,r)})}e.s(["asyncRunOnReadyState",()=>nR,"runOnReadyState",()=>nN],96411);let nk=2*_.ONE_MINUTE;function nx(e,t){let r=t&&Number(t);if(e&&r)return{traceId:e,traceTime:r}}function nD(e){if(e&&rm(e)){let t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function nM(){if(rT(v.NAVIGATION)){let e=performance.getEntriesByType(v.NAVIGATION)[0];if(e)return e}let e=function(){let e={},t=performance.timing;for(let r in t)if((0,eK.isNumber)(t[r])){let n=t[r];e[r]=0===n?0:(0,_.getRelativeTime)(n)}return e}(),t={entryType:v.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.loadEventEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:()=>({...t,toJSON:void 0}),...e};return t}function nL(e){return e.responseStart>=0&&e.responseStart<=(0,_.relativeNow)()?e.responseStart:void 0}function nP(e,t){nN(e,"interactive",()=>{let e=(0,R.mockable)(nM)(),r=Object.assign(e.toJSON(),{entryType:v.RESOURCE,initiatorType:tJ,duration:e.responseEnd,traceId:function(e){var t;let r,n,i=(r=(t=e).querySelector("meta[name=dd-trace-id]"),n=t.querySelector("meta[name=dd-trace-time]"),nx(r&&r.content,n&&n.content)||function(e){let t=function(e){for(let t=0;t<e.childNodes.length;t+=1){let r=nD(e.childNodes[t]);if(r)return r}if(e.body)for(let t=e.body.childNodes.length-1;t>=0;t-=1){let r=e.body.childNodes[t],n=nD(r);if(n)return n;if(!rf(r))break}}(e);if(t)return nx(j(t,"trace-id"),j(t,"trace-time"))}(e));if(!(!i||i.traceTime<=(0,_.dateNow)()-nk))return i.traceId}(document),toJSON:()=>({...r,toJSON:void 0})});t(r)})}function nU(e,t,r,n){let i=t0(e)&&n?n.getMatchingRequest(e):void 0;return n$(e,i,r,t)}function n$(e,t,r,n){var i,o,a,s;if(!e&&!t)return;let l=t?function(e,t){if(e.traceSampled&&e.traceId&&e.spanId)return{_dd:{span_id:e.spanId.toString(),trace_id:e.traceId.toString(),rule_psr:t.rulePsr}}}(t,n):function(e,t){if(e.traceId)return{_dd:{trace_id:e.traceId,span_id:ri(63).toString(),rule_psr:t.rulePsr}}}(e,n);if(!n.trackResources&&!l)return;let u=e?(0,_.relativeToClocks)(e.startTime):t.startClocks,c=e?t1(e):(i=r,o=u,a=t.duration,i.wasInPageStateDuringPeriod("frozen",o.relative,a)?void 0:a),d=t&&function(e,t){let r=ru(e.url,t);if(r){let t=function(e,t=!1){let r,n,i,o;if("POST"===e.method?r=function(e){if(!e||"string"!=typeof e)return;let t=(0,ef.tryJsonParse)(e);if(t)return{query:t.query,operationName:t.operationName,variables:t.variables?JSON.stringify(t.variables):void 0}}(e.requestBody):"GET"===e.method&&(o=(i=(n=el(e.url).searchParams).get("variables"))&&void 0!==(0,ef.tryJsonParse)(i)?i:void 0,r={query:n.get("query")||void 0,operationName:n.get("operationName")||void 0,variables:o}),r)return function(e,t){let r,n,i;if(e.query){var o;let i=e.query.trim();r=null==(o=i.match(/^\s*(query|mutation|subscription)\b/i))?void 0:o[1],t&&(n=q(i,rl,"..."))}return e.variables&&(i=e.variables),{operationType:r,operationName:e.operationName,variables:i,payload:n}}(r,t)}(e,r.trackPayload);if(t){if(r.trackResponseErrors&&e.responseBody){let r=function(e){let t=(0,ef.tryJsonParse)(e);if(t&&"object"==typeof t){if(er(t.errors))return t.errors.map(e=>{var t;return{message:e.message,path:e.path,locations:e.locations,code:null==(t=e.extensions)?void 0:t.code}})}}(e.responseBody);r&&(t.error_count=r.length,t.errors=r)}return t}return}}(t,n),p=e&&function(e){let t=e.contentType;if(t)return{headers:{"content-type":t}}}(e),f=(0,E.combine)({date:u.timeStamp,resource:{id:F(),duration:(0,_.toServerDuration)(c),type:t?"xhr"===t.type?"xhr":tG:tZ(e),method:t?t.method:void 0,status_code:t?t.status:0===(s=e.responseStatus)?void 0:s,url:t?rt(t.url):e.name,protocol:e&&t6(e),delivery_type:e&&t8(e),graphql:d,response:p},type:G.RESOURCE,_dd:{discarded:!n.trackResources}},l,e&&function(e){let{renderBlockingStatus:t}=e;return{resource:{render_blocking_status:t,...t9(e),...t2(e)}}}(e));return{startClocks:u,duration:c,rawRumEvent:f,domainContext:function(e,t){if(t){let r={performanceEntry:e,isAborted:t.isAborted,handlingStack:t.handlingStack};return"xhr"===t.type?{xhr:t.xhr,...r}:{requestInput:t.input,requestInit:t.init,response:t.response,error:t.error,...r}}return{performanceEntry:e}}(e,t)}}var nV=_;let nB=10*_.ONE_MINUTE,nF=10*_.ONE_MINUTE;function nK(e,t,r=window){if("hidden"===document.visibilityState)return{timeStamp:0,stop:x.noop};if(rT(v.VISIBILITY_STATE)){let e=performance.getEntriesByType(v.VISIBILITY_STATE).filter(e=>"hidden"===e.name).find(e=>e.startTime>=t.relative);if(e)return{timeStamp:e.startTime,stop:x.noop}}let n=1/0,{stop:i}=(0,eA.addEventListeners)(e,r,["pagehide","visibilitychange"],e=>{("pagehide"===e.type||"hidden"===document.visibilityState)&&(n=e.timeStamp,i())},{capture:!0});return{get timeStamp(){return n},stop:i}}let nj=e=>{var t,r;let n,i,o,a;return e.previousRect.width*e.previousRect.height+e.currentRect.width*e.currentRect.height-(t=e.previousRect,r=e.currentRect,n=Math.max(t.left,r.left),i=Math.max(t.top,r.top),o=Math.min(t.right,r.right),a=Math.min(t.bottom,r.bottom),n>=o||i>=a?0:(o-n)*(a-i))};function nq({x:e,y:t,width:r,height:n}){return{x:e,y:t,width:r,height:n}}let nG=5*_.ONE_SECOND,nz=_.ONE_SECOND,nH=0,nW=1/0,nY=0,nJ=()=>c?nH:window.performance.interactionCount||0,nX=+_.ONE_MINUTE;function nZ(e){return Math.min(e,nX)}
4function nQ(){let e=window.visualViewport;return Math.round(e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0)}function n0(){let e=window.visualViewport;return Math.round(e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0)}function n1(e){var t;return d||(t=e,d=new N.Observable(e=>{let{throttled:r}=(0,x.throttle)(()=>{e.notify(n2())},200);return(0,eA.addEventListener)(t,window,"resize",r,{capture:!0,passive:!0}).stop})),d}function n2(){let e=window.visualViewport;return e?{width:Number(e.width*e.scale),height:Number(e.height*e.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}e.s(["getScrollX",()=>nQ,"getScrollY",()=>n0],48407),e.s(["getViewportDimension",()=>n2,"initViewportObservable",()=>n1],84641);let n5=_.ONE_SECOND,n4=5*nV.ONE_MINUTE,n3=5*nV.ONE_MINUTE;function n6(e){let t=e.indexOf("?");return t<0?e:e.slice(0,t)}let n8=_.ONE_MINUTE,n9=[];async function n7(e){let t,r,n=e.sessionStoreStrategyType;n&&(n.type===eX.COOKIE?(t=e6(n.cookieOptions,e),r={cookie:await ie(),currentDomain:`${window.location.protocol}//${window.location.hostname}`}):t=e7(),(0,b.addTelemetryDebug)("Unexpected session state",{sessionStoreStrategyType:n.type,session:t,isSyntheticsTest:!!eS(),createdTimestamp:null==t?void 0:t.created,expireTimestamp:null==t?void 0:t.expire,...r}))}async function ie(){let e;return{count:(e="cookieStore"in window?await window.cookieStore.getAll(ez):document.cookie.split(/\s*;\s*/).filter(e=>e.startsWith(ez))).length,domain:ep()||"undefined",...e}}var it=e.i(53084),ir=e.i(81028),ii=e.i(99561);function io(e){return Object.prototype.hasOwnProperty.call(history,e)?history:History.prototype}let ia=10*_.ONE_SECOND;function is(){0!==p.batchCount&&((0,b.addTelemetryMetrics)("Customer data measures",p),ic())}function il(){return{min:1/0,max:0,sum:0}}function iu(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function ic(){p={batchCount:0,batchBytesCount:il(),batchMessagesCount:il()}}function id(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}let ip=_.ONE_SECOND;function im(e,t){let r=j(document.cookie,e),n=(0,k.setInterval)(()=>{let n=j(document.cookie,e);n!==r&&(r=n,t(n))},ip);return()=>{(0,k.clearInterval)(n)}}let ig="datadog-ci-visibility-test-execution-id";function iv(e,t,r=3e3){let n=0,i=!1;return{isLimitReached(){if(0===n&&(0,k.setTimeout)(()=>{n=0},_.ONE_MINUTE),(n+=1)<=r||i)return i=!1,!1;if(n===r+1){i=!0;try{t({message:`Reached max number of ${e}s by minute: ${r}`,source:$.ErrorSource.AGENT,startClocks:(0,_.clocksNow)()})}finally{i=!1}}return!0}}}var iy=e.i(37165);function ib(e){return"object"===(0,ek.getType)(e)}let iE={"view.name":"string","view.url":"string","view.referrer":"string"},iS={context:"object"},ih={service:"string",version:"string"};var i_=e.i(75599);let iT=[G.ACTION,G.ERROR,G.LONG_TASK,G.RESOURCE,G.VITAL];function iC(e,t,r,n,i,o,a,s,u,d,g){var y,S;let w,O,A=[],I=new tB;I.subscribe(13,e=>(0,tL.sendToExtension)("rum",e));let M=e=>{I.notify(14,{error:e}),(0,b.addTelemetryDebug)("Error reported to customer",{"error.message":e.message})},P=(0,tP.createPageMayExitObservable)(e),V=P.subscribe(e=>{I.notify(11,e)});A.push(()=>V.unsubscribe());let K=(0,ei.canUseEventBridge)()?(w={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:+!!(0,ei.bridgeSupports)("records")},{findTrackedSession:()=>w,expire:x.noop,expireObservable:new N.Observable,setForcedReplay:x.noop}):((O=function(e,t,r,n){let i=new N.Observable,o=new N.Observable,a=function(e,t,r,n,i=function(e,t){return e.type===eX.COOKIE?function(e,t){let r={isLockEnabled:ej(),persistSession:r=>e3(t,e,r,eY),retrieveSession:()=>e6(t,e),expireSession:r=>e3(t,e,eQ(r,e),eW)};if(!ed(ez)){let e=ed("_dd"),t=ed("_dd_r"),n=ed("_dd_l"),i={};e&&(i.id=e),n&&/^[01]$/.test(n)&&(i.logs=n),t&&/^[012]$/.test(t)&&(i.rum=t),e0(i)||(e2(i),r.persistSession(i))}return r}(t,e.cookieOptions):e.type===eX.LOCAL_STORAGE?{isLockEnabled:!1,persistSession:e9,retrieveSession:e7,expireSession:e=>(function(e,t){e9(eQ(e,t))})(e,t)}:{expireSession:e=>
4(function(e,t){ts(eQ(e,t))})(e,t),isLockEnabled:!1,persistSession:ts,retrieveSession:ta}}(e,t)){let o,a=new N.Observable,s=new N.Observable,l=new N.Observable,u=(0,k.setInterval)(function(){let e=i.retrieveSession();e1(e)?tr({process:e=>e1(e)?eQ(e,t):void 0,after:p},i):p(e)},tl);f();let{throttled:c,cancel:d}=(0,x.throttle)(()=>{tr({process:e=>{if(e0(e))return;let r=p(e);return function(e){if(e0(e))return;let r=n(e.rum);e.rum=r,delete e.isExpired,"0"===r||e.id||(e.id=F(),e.created=String((0,_.dateNow)())),t.trackAnonymousUser&&!e.anonymousId&&(e.anonymousId=F())}(r),r},after:e=>{e0(e)||m()||(o=e,a.notify()),o=e}},i)},tl);function p(e){var r;return e1(e)&&(e=eQ(e,t)),m()&&((r=e,o.id!==r.id||o.rum!==r.rum)?(o=eQ(o,t),s.notify()):(l.notify({previousState:o,newState:e}),o=e)),e}function f(){tr({process:e=>{if(e0(e))return e.anonymousId=F(),eQ(e,t)},after:e=>{o=e}},i)}function m(){return(null==o?void 0:o.rum)!==void 0}return{expandOrRenewSession:c,expandSession:function(){tr({process:e=>m()?p(e):void 0},i)},getSession:()=>o,renewObservable:a,expireObservable:s,sessionStateUpdateObservable:l,restartSession:f,expire:e=>{d(),!1===e&&o&&delete o.anonymousId,i.expireSession(o),p(eQ(o,t))},stop:()=>{(0,k.clearInterval)(u)},updateSessionState:function(e){tr({process:t=>({...t,...e}),after:p},i)}}}(e.sessionStoreStrategyType,e,"rum",r);n9.push(()=>a.stop());let s=tq({expireDelay:eW});if(n9.push(()=>s.stop()),a.renewObservable.subscribe(()=>{s.add(l(),(0,_.relativeNow)()),i.notify()}),a.expireObservable.subscribe(()=>{o.notify(),s.closeActive((0,_.relativeNow)())}),a.expandOrRenewSession(),s.add(l(),(0,_.clocksOrigin)().relative),(0,B.isExperimentalFeatureEnabled)(B.ExperimentalFeature.SHORT_SESSION_INVESTIGATION)){let t=a.getSession();t&&function(e,t){if(!window.cookieStore||!t.created)return;let r=Number(t.created),n=(0,_.dateNow)(),{stop:i}=(0,eA.addEventListener)(e,cookieStore,"change",function(e){let o=(0,eH.findLast)(e.changed,e=>e.name===ez);if(!o)return;let a=(0,_.dateNow)()-r;if(a>14*_.ONE_MINUTE)i();else{let e=e4(o.value);if(e.id&&e.id!==t.id){i();let r=(0,_.dateNow)()-n;ie().then(n=>{(0,b.addTelemetryDebug)("Session cookie changed",{time:r,session_age:a,old:t,new:e,cookie:n})}).catch(h.monitorError)}}});n9.push(i)}(e,t)}function l(){let t=a.getSession();return t?{id:t.id,trackingType:t.rum,isReplayForced:!!t.forcedReplay,anonymousId:t.anonymousId}:(n7(e).catch(()=>void 0),{id:"invalid",trackingType:"0",isReplayForced:!1,anonymousId:void 0})}return n.observable.subscribe(()=>{n.isGranted()?a.expandOrRenewSession():a.expire(!1)}),function(e,t){let{stop:r}=(0,eA.addEventListeners)(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0});n9.push(r)}(e,()=>{n.isGranted()&&a.expandOrRenewSession()}),function(e,t){let r=()=>{"visible"===document.visibilityState&&t()},{stop:n}=(0,eA.addEventListener)(e,document,"visibilitychange",r);n9.push(n);let i=(0,k.setInterval)(r,n8);n9.push(()=>{(0,k.clearInterval)(i)})}(e,()=>a.expandSession()),function(e,t){let{stop:r}=(0,eA.addEventListener)(e,window,"resume",t,{capture:!0});n9.push(r)}(e,()=>a.restartSession()),{findSession:(e,t)=>s.find(e,t),renewObservable:i,expireObservable:o,sessionStateUpdateObservable:a.sessionStateUpdateObservable,expire:a.expire,updateSessionState:a.updateSessionState}}(e,0,t=>{var r,n,i;return r=e,"0"===(i=n=t)||"1"===i||"2"===i?n:(0,eK.performDraw)(r.sessionSampleRate)?(0,eK.performDraw)(r.sessionReplaySampleRate)?"1":"2":"0"},o)).expireObservable.subscribe(()=>{I.notify(9)}),O.renewObservable.subscribe(()=>{I.notify(10)}),O.sessionStateUpdateObservable.subscribe(({previousState:e,newState:t})=>{if(!e.forcedReplay&&t.forcedReplay){let e=O.findSession();e&&(e.isReplayForced=!0)}}),{findTrackedSession:e=>{let t=O.findSession(e);if(t&&"0"!==t.trackingType)return{id:t.id,sessionReplay:"1"===t.trackingType?1:2*!!t.isReplayForced,anonymousId:t.anonymousId}},expire:O.expire,expireObservable:O.expireObservable,setForcedReplay:()=>O.updateSessionState({forcedReplay:"1"})});if((0,ei.canUseEventBridge)()){let e;e=(0,ei.getEventBridge)(),I.subscribe(13,t=>{e.send("rum",t)})}else{let t,r,n=(y=K.expireObservable,t=[e.rumEndpointBuilder],e.replica&&t.push(e.replica.rumEndpointBuilder),r=(0,it.createBatch)({encoder:i(2),request:(0,ii.createHttpRequest)(t,M),flushController:(0,ir.createFlushController)({pageMayExitObservable:P,sessionExpireOb
4servable:y})}),I.subscribe(13,e=>{e.type===G.VIEW?r.upsert(e,e.view.id):r.add(e)}),r);A.push(()=>n.stop()),S=n.flushController.flushObservable,u.metricsEnabled&&(ic(),f=!1,I.subscribe(13,()=>{f=!0}),S.subscribe(({bytesCount:e,messagesCount:t})=>{f&&(f=!1,p.batchCount+=1,iu(p.batchBytesCount,e),iu(p.batchMessagesCount,t))}),(0,k.setInterval)(is,ia))}d.register(1,()=>o.isGranted()?eR.SKIPPED:eR.DISCARDED);let{stop:j}=function(e,t){if(!t.metricsEnabled)return{stop:x.noop};let{unsubscribe:r}=e.subscribe(4,({initialViewMetrics:e})=>{var t,n;e.largestContentfulPaint&&e.navigationTimings&&((0,b.addTelemetryMetrics)("Initial view metrics",{metrics:(t=e.largestContentfulPaint,n=e.navigationTimings,{lcp:{value:t.value},navigation:{domComplete:n.domComplete,domContentLoaded:n.domContentLoaded,domInteractive:n.domInteractive,firstByte:n.firstByte,loadEvent:n.loadEvent}})}),r())});return{stop:r}}(I,u);A.push(j);let{stop:ee,...et}=function(e,t,r,n,i,o,a,s,u,d){var p,f,g,y,S,w,O,A,I,M;let P,V,K,j,ee,et,er,eo,ea,es,eu,ec,ep,em,eg,ev,ey,eb=[],eh=t$(),e_=(V=(0,ef.shallowClone)(location),new N.Observable(e=>{var t,n;let{stop:i}=function(e,t){let{stop:r}=D(io("pushState"),"pushState",({onPostCall:e})=>{e(t)}),{stop:n}=D(io("replaceState"),"replaceState",({onPostCall:e})=>{e(t)}),{stop:i}=(0,eA.addEventListener)(e,window,"popstate",t);return{stop:()=>{r(),n(),i()}}}(r,a),{stop:o}=(t=r,n=a,(0,eA.addEventListener)(t,window,"hashchange",n));function a(){if(V.href===location.href)return;let t=(0,ef.shallowClone)(location);e.notify({newLocation:t,oldLocation:V}),V=t}return()=>{i(),o()}})),{observable:eT,stop:eC}=function(){let e=new N.Observable,{stop:t}=D(window,"open",()=>e.notify());return{observable:e,stop:t}}();eb.push(eC),t.register(0,({eventType:e})=>{let t=r.source;return{type:e,_dd:{format_version:2,drift:(0,_.currentDrift)(),configuration:{session_sample_rate:(0,eK.round)(r.sessionSampleRate,3),session_replay_sample_rate:(0,eK.round)(r.sessionReplaySampleRate,3),profiling_sample_rate:(0,eK.round)(r.profilingSampleRate,3),trace_sample_rate:(0,eK.round)(r.traceSampleRate,3),beta_encode_cookie_options:r.betaEncodeCookieOptions},browser_sdk_version:(0,ei.canUseEventBridge)()?"6.32.0":void 0,sdk_name:u},application:{id:r.applicationId},date:(0,_.timeStampNow)(),source:t}}),t.register(1,()=>({application:{id:r.applicationId}}));let eO=function(e,t,r=500){let n,i=tq({expireDelay:eW,maxEntries:4e3});rT(v.VISIBILITY_STATE)&&performance.getEntriesByType(v.VISIBILITY_STATE).forEach(e=>{a("hidden"===e.name?"hidden":"active",e.startTime)}),a(id(),(0,_.relativeNow)());let{stop:o}=(0,eA.addEventListeners)(t,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],e=>{var t;a("freeze"===(t=e).type?"frozen":"pagehide"===t.type?t.persisted?"frozen":"terminated":id(),e.timeStamp)},{capture:!0});function a(e,t=(0,_.relativeNow)()){e!==n&&(n=e,i.closeActive(t),i.add({state:n,startTime:t},t))}function s(e,t,r){return i.findAll(t,r).some(t=>t.state===e)}return e.register(0,({startTime:e,duration:t=0,eventType:n})=>n===G.VIEW?{type:n,_dd:{page_states:function(e,t,r){if(0!==e.length)return e.slice(-r).reverse().map(({state:e,startTime:r})=>({state:e,start:(0,_.toServerDuration)((0,_.elapsed)(t,r))}))}(i.findAll(e,t),e,r)}}:n===G.ACTION||n===G.ERROR?{type:n,view:{in_foreground:s("active",e,0)}}:eR.SKIPPED),{wasInPageStateDuringPeriod:s,addPageState:a,stop:()=>{o(),i.stop()}}}(t,r);eb.push(()=>eO.stop());let eI=(K=tq({expireDelay:eW}),e.subscribe(1,e=>{var t;K.add({service:(t=e).service,version:t.version,context:t.context,id:t.id,name:t.name,startClocks:t.startClocks},e.startClocks.relative)}),e.subscribe(6,({endClocks:e})=>{K.closeActive(e.relative)}),e.subscribe(3,e=>{let t=K.find(e.startClocks.relative);t&&(e.name&&(t.name=e.name),e.context&&(t.context=e.context),t.sessionIsActive=e.sessionIsActive)}),e.subscribe(10,()=>{K.reset()}),{findView:e=>K.find(e),stop:()=>{K.stop()}});eb.push(()=>eI.stop());let ex=function(e,t,r){let n,i=tq({expireDelay:eW});e.subscribe(1,({startClocks:e,url:t})=>{let r=(0,R.mockable)(location).href,o=void 0!==t?el(t,r).href:r;i.add(a({url:o,referrer:n||document.referrer}),e.relative),n=o}),e.subscribe(6,({endClocks:e})=>{i.closeActive(e.relative)});let o=r.subscribe(({newLocation:e})=>{let t=i.find();if(t){let r=(0,_.relativeNow)();i.closeActive(r),i.add(a({url:e.href,referrer:t.referrer}),r)}});function a({url:e,referrer:t}){return{url:e,referrer:t}}return t.register(0,({startTime:e,eventType:t})=>{let r=i.find(e);return r?{type:t,view:{url:r.url,referrer:r.referrer}}:eR.DISCARDED}),{findUrl:e=>i.find(e),stop:()=>{o.unsubscribe(),i.stop()}}}(e,t,e_);eb.push(()=>ex.stop());let eD=(j=tq({expireDelay:eW}),e.subscribe(1,({startClocks:e})=>{j.add({},e.relative)}),e.subscribe(6,({endClocks:e})=>{j.closeActive(e.relative)}),t.register(0,({startTime:e,eventType:t})=>{if(!r.trackFeatureFlagsForEvents.concat([G.VIEW,G.ERROR]).includes(t))return eR.SKIPPED;let n=j.find(e);return!n||(0,ef.isEmptyObject)(n)?eR.SKIPPED:{type:t,feature_flags:n}}),{addFeatureFlagEvaluation:(e,t)=>{let r=j.find();r&&(r[e]=t)}});t.register(0,({eventType:e,startTime:t})=>{let r,o,a,s=n.findTrackedSession(t),l=eI.findView(t);return s&&l?(e===G.VIEW?(r=!!i.getReplayStats(l.id)||void 0,o=1===s.sessionReplay,a=!!l.sessionIsActive&&void 0):r=!!i.isRecording()||void 0,{type:e,session:{id:s.id,type:"user",has_replay:r,sampled_for_replay:o,is_active:a}}):eR.DISCARDED}),t.register(1,({startTime:e})=>{let t=n.findTrackedSession(e);return t?{session:{id:t.id}}:eR.SKIPPED}),t.register(0,({eventType:e})=>({type:e,connectivity:(0,i_.getConnectivity)()}));let e$=(ee=eP(),r.storeContextsAcrossPages&&eN(r,ee,"rum",2),t.register(0,()=>{let e=ee.getContext();return{context:e}}
4),ee),eV=(et=eU(),r.storeContextsAcrossPages&&eN(r,et,"rum",1),t.register(0,({eventType:e,startTime:t})=>{let i=et.getContext(),o=n.findTrackedSession(t);return(o&&o.anonymousId&&!i.anonymous_id&&r.trackAnonymousUser&&(i.anonymous_id=o.anonymousId),(0,ef.isEmptyObject)(i))?eR.SKIPPED:{type:e,usr:i}}),t.register(1,({startTime:e})=>{var t;return{anonymous_id:null==(t=n.findTrackedSession(e))?void 0:t.anonymousId}}),et),eB=(er=eL(),r.storeContextsAcrossPages&&eN(r,er,"rum",4),t.register(0,()=>{let e=er.getContext();return(0,ef.isEmptyObject)(e)||!e.id?eR.SKIPPED:{account:e}}),er),eF=function(e,t,r,n,i){var o;let a,s,{unsubscribe:l}=e.subscribe(0,t=>{e.notify(12,nb(t))}),u=x.noop;i.trackUserInteractions&&(a=function(e,t,r,n){let i,o=r6(e),a=new N.Observable;e.subscribe(5,u),e.subscribe(11,u);let{stop:s}=function(e,{onPointerDown:t,onPointerUp:r}){let n,i,o={selection:!1,input:!1,scroll:!1},a=[(0,eA.addEventListener)(e,window,"pointerdown",e=>{nd(e)&&(n=nc(),o={selection:!1,input:!1,scroll:!1},i=t(e))},{capture:!0}),(0,eA.addEventListener)(e,window,"selectionchange",()=>{n&&nc()||(o.selection=!0)},{capture:!0}),(0,eA.addEventListener)(e,window,"scroll",()=>{o.scroll=!0},{capture:!0,passive:!0}),(0,eA.addEventListener)(e,window,"pointerup",e=>{if(nd(e)&&i){let t=o;r(i,e,()=>t),i=void 0}},{capture:!0}),(0,eA.addEventListener)(e,window,"input",()=>{o.input=!0},{capture:!0})];return{stop:()=>{a.forEach(e=>e.stop())}}}(n,{onPointerDown:i=>(function(e,t,r,n,i){let o,a=e.betaTrackActionsInShadowDom?ny(n):n.target;if((o=e.enablePrivacyForActionName?rY(a,e.defaultPrivacyLevel):rG.ALLOW)===rG.HIDDEN)return;let s=function(e,t,r){let n=r.betaTrackActionsInShadowDom?ny(e):e.target,i=n.getBoundingClientRect(),o=rM(n,r.actionNameAttribute),a=(0,B.isExperimentalFeatureEnabled)(B.ExperimentalFeature.COMPOSED_PATH_SELECTOR)&&"function"==typeof e.composedPath?function(e,t){let r=e.filter(e=>e instanceof Element&&!r8.includes(e.tagName));if(0===r.length)return"";let n=t?[t].concat(r7):r7,i="";for(let e of r)if((i+=function(e,t){let r=rU(e),n=rP(e),i=Array.from(e.classList).filter(e=>!rL(e)).sort().map(e=>`.${CSS.escape(e)}`).join(""),o=function(e,t){let r=[];for(let n of Array.from(e.attributes))t.includes(n.name)&&r.push(rV(n.name,n.value));return r.sort().join("")}(e,t),a=function(e){let t=Array.from(e.parentNode.children);if(t.length<=1)return"";let r=t.filter(t=>t.tagName===e.tagName),n=t.indexOf(e),i=rB(e);return`:nth-child(${n+1})${r.length>1?`:nth-of-type(${i})`:""}`}(e);return`${r}${n||""}${o}${i}${a};`}(e,n)).length>=r9)return q(i,r9);return i}(e.composedPath(),r.actionNameAttribute):void 0;o&&ng(e.timeStamp,o);let{name:s,nameSource:l}=function(e,t,r=rG.ALLOW){let n=new Map,{actionNameAttribute:i}=t,o=nt(e,rN)||i&&nt(e,i);return o?{name:o,nameSource:"custom_attribute"}:r===rG.MASK?{name:rR,nameSource:"mask_placeholder"}:ni(e,nr,t,n)||ni(e,nn,t,n)||{name:"",nameSource:"blank"}}(n,r,t);return{type:W.CLICK,target:{width:Math.round(i.width),height:Math.round(i.height),selector:o,composedPathSelector:a||void 0},position:{x:Math.round(e.clientX-i.left),y:Math.round(e.clientY-i.top)},name:s,nameSource:l}}(n,o,e),l=!1;return rw(t,r,i,e,e=>{l=e.hadActivity},100),{clickActionBase:s,hadActivityOnPointerDown:()=>l}})(n,e,t,i,r),onPointerUp:({clickActionBase:i,hadActivityOnPointerDown:s},u,c)=>{!function(e,t,r,n,i,o,a,s,l,u,c){var d;let p=function e(t,r,n,i,o){let a,s=F(),l=(0,_.relativeToClocks)(o.timeStamp),u=r.start(s,l,i,{isChildEvent:nv});t.notify(15,u);let c=0,d=[],p=new N.Observable;function f(e){0===c&&(c=1,a=e?r.stop(s,(0,_.timeStampToClocks)(e)):r.discard(s),p.notify())}return{event:o,stop:f,stopObservable:p,get hasError(){var m;let e=null!=(m=null==a?void 0:a.counts)?m:r.getCounts(s);return!!e&&e.errorCount>0},get hasPageActivity(){return a&&"duration"in a},getUserActivity:n,addFrustration:e=>{d.push(e)},get startClocks(){return l},isStopped:()=>1===c||2===c,clone:()=>e(t,r,n,i,o),validate:e=>{if(f(),1!==c||!a)return;let r={frustrationTypes:d,events:null!=e?e:[o],event:o,...a,counts:a.counts};t.notify(0,r),c=2},discard:()=>{f(),c=2}}}(t,i,u,s,l);a(p);let f=null==(d=null==s?void 0:s.target)?void 0:d.selector;f&&ng(l.timeStamp,f);let{stop:m}=rw(t,r,n,e,e=>{e.hadActivity&&e.end<p.startClocks.timeStamp?p.discard():e.hadActivity?p.stop(e.end):c()?p.stop(p.startClocks.timeStamp):p.stop()},nf),g=t.subscribe(5,({endClocks:e})=>{p.stop(e.timeStamp)}),v=t.subscribe(11,()=>{p.stop((0,_.timeStampNow)())}),y=o.subscribe(()=>{p.stop()});p.stopObservable.subscribe(()=>{v.unsubscribe(),g.unsubscribe(),m(),y.unsubscribe()})}(n,e,t,r,o,a,l,i,u,c,s)}});return{stop:()=>{u(),a.notify(),s(),o.stopAll()},findActionId:o.findId};function l(e){if(!i||!i.tryAppend(e)){let t=e.clone();i=function(e,t){let r,n=[],i=0;function o(e){e.stopObservable.subscribe(a),n.push(e),(0,k.clearTimeout)(r),r=(0,k.setTimeout)(s,ne)}function a(){1===i&&n.every(e=>e.isStopped())&&(i=2,t(n))}function s(){(0,k.clearTimeout)(r),0===i&&(i=1,a())}return o(e),{tryAppend:e=>{var t,r,a,l;return 0===i&&(!(n.length>0)||(t=n[n.length-1].event,r=e.event,t.target===r.target&&100>=(a=t,l=r,Math.sqrt(Math.pow(a.clientX-l.clientX,2)+Math.pow(a.clientY-l.clientY,2)))&&t.timeStamp-r.timeStamp<=ne)?(o(e),
4!0):(s(),!1))},stop:()=>{s()}}}(e,e=>{(function(e,t){let{isRage:r}=function(e,t){if(function(e){if(e.some(e=>e.getUserActivity().selection||e.getUserActivity().scroll))return!1;for(let t=0;t<e.length-2;t+=1)if(e[t+3-1].event.timeStamp-e[t].event.timeStamp<=_.ONE_SECOND)return!0;return!1}(e))return t.addFrustration(Y.RAGE_CLICK),e.some(np)&&t.addFrustration(Y.DEAD_CLICK),t.hasError&&t.addFrustration(Y.ERROR_CLICK),{isRage:!0};let r=e.some(e=>e.getUserActivity().selection);return e.forEach(e=>{e.hasError&&e.addFrustration(Y.ERROR_CLICK),np(e)&&!r&&e.addFrustration(Y.DEAD_CLICK)}),{isRage:!1}}(e,t);r?(e.forEach(e=>e.discard()),t.stop((0,_.timeStampNow)()),t.validate(e.map(e=>e.event))):(t.discard(),e.forEach(e=>e.validate()))})(e,t),i=void 0})}}function u(){i&&i.stop()}}(e,r,n,i));let c=(o=t=>{e.notify(12,nb(t))},{addAction:function(e){o({id:F(),frustrationTypes:[],...e})},startAction:function(t,r={},n=(0,_.clocksNow)()){var i;let o=null!=(i=r.actionKey)?i:t,a=s.start(o,n,{name:t,...r},{isChildEvent:nv});e.notify(15,a)},stopAction:function(e,t={},r=(0,_.clocksNow)()){var n;let i=null!=(n=t.actionKey)?n:e,a=s.stop(i,r,t);if(!a)return;let l=[];a.counts&&a.counts.errorCount>0&&l.push(Y.ERROR_CLICK),o({...a,type:a.type||W.CUSTOM,frustrationTypes:l})},findActionId:(s=r6(e)).findId,stop:s.stopAll}),d={findActionId:e=>{var t;let r=c.findActionId(e),n=null!=(t=null==a?void 0:a.findActionId(e))?t:[];return r.concat(n)}};return t.register(0,({startTime:e,eventType:t})=>{if(t!==G.ERROR&&t!==G.RESOURCE&&t!==G.LONG_TASK)return eR.SKIPPED;let r=t===G.LONG_TASK?(0,_.addDuration)(e,1):e,n=d.findActionId(r);return n.length?{type:t,action:{id:n}}:eR.SKIPPED}),t.register(1,({startTime:e})=>({action:{id:d.findActionId(e)}})),{addAction:c.addAction,startAction:c.startAction,stopAction:c.stopAction,actionContexts:d,stop:()=>{l(),u(),c.stop(),null==a||a.stop()}}}(e,t,eh,eT,r);eb.push(eF.stop);let ej={addEvent:(t,r,n,i)=>{iT.includes(r.type)&&e.notify(12,{startClocks:(0,_.relativeToClocks)(t),rawRumEvent:r,domainContext:n,duration:i})}},eq=(ea=requestAnimationFrame((0,h.monitor)(()=>{eo=n2()})),es=n1(r).subscribe(e=>{eo=e}).unsubscribe,t.register(0,({eventType:e})=>({type:e,display:eo?{viewport:eo}:void 0})),{stop:()=>{es(),ea&&cancelAnimationFrame(ea)}});eb.push(eq.stop);let eG=function(e,t,r=function(e,t){let r=window.cookieStore?function(e){return(t,r)=>(0,eA.addEventListener)(e,window.cookieStore,"change",e=>{let n=e.changed.find(e=>e.name===t)||e.deleted.find(e=>e.name===t);n&&r(n.value)}).stop}(e):im;return new N.Observable(e=>r(t,t=>e.notify(t)))}(e,ig)){var n;let i=ed(ig)||(null==(n=window.Cypress)?void 0:n.env("traceId")),o=r.subscribe(e=>{i=e});return t.register(0,({eventType:e})=>"string"!=typeof i?eR.SKIPPED:{type:e,session:{type:"ci_test"},ci_test:{test_execution_id:i}}),{stop:()=>{o.unsubscribe()}}}(r,t);eb.push(eG.stop),t.register(0,({eventType:e})=>eS()?{type:e,session:{type:"synthetics"},synthetics:{...eS(),injected:eE()}}:eR.SKIPPED),m={[G.VIEW]:{"view.performance.lcp.resource_url":"string",...iS,...iE,...ih},[G.ERROR]:{"error.message":"string","error.stack":"string","error.handling_stack":"string","error.resource.url":"string","error.fingerprint":"string",...iS,...iE,...ih},[G.RESOURCE]:{"resource.url":"string","resource.graphql.variables":"string",...iS,...iE,...ih},[G.ACTION]:{"action.target.name":"string",...iS,...iE,...ih},[G.LONG_TASK]:{"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string",...iS,...iE,...ih},[G.VITAL]:{...iS,...iE,...ih}},eu={[G.ERROR]:iv(G.ERROR,d,void 0),[G.ACTION]:iv(G.ACTION,d,void 0),[G.VITAL]:iv(G.VITAL,d,void 0)},e.subscribe(12,({startClocks:n,duration:i,rawRumEvent:o,domainContext:a})=>{let s=t.triggerHook(0,{eventType:o.type,rawRumEvent:o,domainContext:a,startTime:n.relative,duration:i});if(s===eR.DISCARDED)return;let l=(0,E.combine)(s,o,{ddtags:(0,iy.buildTags)(r).join(",")});(function(e,t,r,n){var i,o;if(t){let n,i,a=(o=m[e.type],i=(e=>t(e,r))(n=(0,E.deepClone)(e)),(0,eH.objectEntries)(o).forEach(([t,r])=>(function e(t,r,n,i){let[o,...a]=n;if("[]"===o){Array.isArray(t)&&Array.isArray(r)&&t.forEach((t,n)=>e(t,r[n],a,i));return}if(ib(t)&&ib(r)){if(a.length>0)return e(t[o],r[o],a,i);!function(e,t,r,n){if(e[t]===r)return;let i=(0,ek.getType)(r);i===n?e[t]=(0,C.sanitize)(r):"object"===n&&("undefined"===i||"null"===i)&&(e[t]={})}(t,o,r[o],i)}})(e,n,t.split(/\.|(?=\[\])/),r)),i);if(!1===a&&e.type!==G.VIEW)return!1;!1===a&&en.display.warn("Can't dismiss view events using beforeSend!")}return!(null==(i=n[e.type])?void 0:i.isLimitReached())})(l,r.beforeSend,a,eu)&&((0,ef.isEmptyObject)(l.context)&&delete l.context,e.
4notify(13,l))});let{addTiming:ez,setLoadingTime:eY,startView:eJ,setViewName:eX,setViewContext:eZ,setViewContextProperty:eQ,getViewContext:e0,stop:e1}=(e.subscribe(4,t=>{var n,o,a,s,l,u,c,d,p,f,m,g,v,y,b,E,S,h,T,C;let w,O,A;return e.notify(12,(n=t,o=r,w=i.getReplayStats(n.id),O=null==(s=null==(a=n.commonViewMetrics)?void 0:a.cumulativeLayoutShift)?void 0:s.devicePixelRatio,A={_dd:{document_version:n.documentVersion,replay_stats:w,cls:O?{device_pixel_ratio:O}:void 0,configuration:{start_session_replay_recording_manually:o.startSessionReplayRecordingManually}},date:n.startClocks.timeStamp,type:G.VIEW,view:{action:{count:n.eventCounts.actionCount},frustration:{count:n.eventCounts.frustrationCount},cumulative_layout_shift:null==(l=n.commonViewMetrics.cumulativeLayoutShift)?void 0:l.value,cumulative_layout_shift_time:(0,_.toServerDuration)(null==(u=n.commonViewMetrics.cumulativeLayoutShift)?void 0:u.time),cumulative_layout_shift_target_selector:null==(c=n.commonViewMetrics.cumulativeLayoutShift)?void 0:c.targetSelector,first_byte:(0,_.toServerDuration)(null==(d=n.initialViewMetrics.navigationTimings)?void 0:d.firstByte),dom_complete:(0,_.toServerDuration)(null==(p=n.initialViewMetrics.navigationTimings)?void 0:p.domComplete),dom_content_loaded:(0,_.toServerDuration)(null==(f=n.initialViewMetrics.navigationTimings)?void 0:f.domContentLoaded),dom_interactive:(0,_.toServerDuration)(null==(m=n.initialViewMetrics.navigationTimings)?void 0:m.domInteractive),error:{count:n.eventCounts.errorCount},first_contentful_paint:(0,_.toServerDuration)(n.initialViewMetrics.firstContentfulPaint),first_input_delay:(0,_.toServerDuration)(null==(g=n.initialViewMetrics.firstInput)?void 0:g.delay),first_input_time:(0,_.toServerDuration)(null==(v=n.initialViewMetrics.firstInput)?void 0:v.time),first_input_target_selector:null==(y=n.initialViewMetrics.firstInput)?void 0:y.targetSelector,interaction_to_next_paint:(0,_.toServerDuration)(null==(b=n.commonViewMetrics.interactionToNextPaint)?void 0:b.value),interaction_to_next_paint_time:(0,_.toServerDuration)(null==(E=n.commonViewMetrics.interactionToNextPaint)?void 0:E.time),interaction_to_next_paint_target_selector:null==(S=n.commonViewMetrics.interactionToNextPaint)?void 0:S.targetSelector,is_active:n.isActive,name:n.name,largest_contentful_paint:(0,_.toServerDuration)(null==(h=n.initialViewMetrics.largestContentfulPaint)?void 0:h.value),largest_contentful_paint_target_selector:null==(T=n.initialViewMetrics.largestContentfulPaint)?void 0:T.targetSelector,load_event:(0,_.toServerDuration)(null==(C=n.initialViewMetrics.navigationTimings)?void 0:C.loadEvent),loading_time:rp((0,_.toServerDuration)(n.commonViewMetrics.loadingTime)),loading_type:n.loadingType,long_task:{count:n.eventCounts.longTaskCount},performance:function({cumulativeLayoutShift:e,interactionToNextPaint:t},{firstContentfulPaint:r,firstInput:n,largestContentfulPaint:i}){return{cls:e&&{score:e.value,timestamp:(0,_.toServerDuration)(e.time),target_selector:e.targetSelector,previous_rect:e.previousRect,current_rect:e.currentRect},fcp:r&&{timestamp:(0,_.toServerDuration)(r)},fid:n&&{duration:(0,_.toServerDuration)(n.delay),timestamp:(0,_.toServerDuration)(n.time),target_selector:n.targetSelector},inp:t&&{duration:(0,_.toServerDuration)(t.value),timestamp:(0,_.toServerDuration)(t.time),target_selector:t.targetSelector,sub_parts:t.subParts?{input_delay:(0,_.toServerDuration)(t.subParts.inputDelay),processing_duration:(0,_.toServerDuration)(t.subParts.processingDuration),presentation_delay:(0,_.toServerDuration)(t.subParts.presentationDelay)}:void 0},lcp:i&&{timestamp:(0,_.toServerDuration)(i.value),target_selector:i.targetSelector,resource_url:i.resourceUrl,sub_parts:i.subParts?{load_delay:(0,_.toServerDuration)(i.subParts.loadDelay),load_time:(0,_.toServerDuration)(i.subParts.loadTime),render_delay:(0,_.toServerDuration)(i.subParts.renderDelay)}:void 0}}}(n.commonViewMetrics,n.initialViewMetrics),resource:{count:n.eventCounts.resourceCount},time_spent:(0,_.toServerDuration)(n.duration)},display:n.commonViewMetrics.scroll?{scroll:{max_depth:n.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:n.
4commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:n.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:(0,_.toServerDuration)(n.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,privacy:{replay_level:o.defaultPrivacyLevel},device:{locale:navigator.language,locales:navigator.languages,time_zone:function(){try{return new Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return}}()}},(0,ef.isEmptyObject)(n.customTimings)||(A.view.custom_timings=(0,ef.mapValues)(n.customTimings,_.toServerDuration)),{rawRumEvent:A,startClocks:n.startClocks,duration:n.duration,domainContext:{location:n.location,handlingStack:n.handlingStack}}))}),t.register(0,({startTime:e,eventType:t})=>{let r=eI.findView(e);return r?{type:t,service:r.service,version:r.version,context:r.context,view:{id:r.id,name:r.name}}:eR.DISCARDED}),t.register(1,({startTime:e})=>{var t;return{view:{id:null==(t=eI.findView(e))?void 0:t.id}}}),function(e,t,r,n,i,o,a){let s,l,u=new Set,d=p(H.INITIAL_LOAD,(0,nV.clocksOrigin)(),a);function p(i,o,a){let s=function(e,t,r,n,i,o=(0,nV.clocksNow)(),a){var s;let l,u=F(),d=new N.Observable,p={},f=0,m=(0,ef.shallowClone)((0,R.mockable)(window.location)),g=eM(),y=!0,b=null==a?void 0:a.name,E=(null==a?void 0:a.service)||n.service,S=(null==a?void 0:a.version)||n.version,T=null==a?void 0:a.context,C=null==a?void 0:a.handlingStack;T&&g.setContext(T);let w={id:u,name:b,startClocks:o,service:E,version:S,context:T,url:null==a?void 0:a.url};e.notify(1,w),e.notify(2,w);let{throttled:O,cancel:A}=(0,x.throttle)(Y,3e3,{leading:!1}),{setLoadEvent:I,setViewEnd:D,stop:M,stopINPTracking:L,getCommonViewMetrics:P,setLoadingTime:U}=function(e,t,r,n,i,o,a){let s={},l=!1,u=!1,{stop:d,setLoadEvent:p}=function(e,t,r,n,i,o,a){let s=i===H.INITIAL_LOAD,l=!0,u=[],c=nK(n,o);function d(){if(!l&&!s&&u.length>0){let e=Math.max(...u);e<c.timeStamp-o.relative&&a(e)}}let{stop:p}=rw(e,t,r,n,e=>{l&&(l=!1,e.hadActivity&&u.push((0,_.elapsed)(o.timeStamp,e.end)),d())});return{stop:()=>{p(),c.stop()},setLoadEvent:e=>{s&&(s=!1,u.push(e),d())}}}(e,t,r,n,o,a,e=>{l||(s.loadingTime=e,i())}),{stop:f}=function(e,t,r,n=function(e,t=n5){return new N.Observable(r=>{if(window.ResizeObserver){let n=(0,x.throttle)(function(){r.notify(function(){let e=n0(),{height:t}=n2();return{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(t+e),scrollTop:e}}())},t,{leading:!1,trailing:!0}),i=document.scrollingElement||document.documentElement,o=new ResizeObserver((0,h.monitor)(n.throttled));i&&o.observe(i);let a=(0,eA.addEventListener)(e,window,"scroll",n.throttled,{passive:!0});return()=>{n.cancel(),o.disconnect(),a.stop()}}})}(e)){let i=0,o=0,a=0,s=n.subscribe(({scrollDepth:e,scrollTop:n,scrollHeight:s})=>{let l=!1;if(e>i&&(i=e,l=!0),s>o){o=s;let e=(0,_.relativeNow)();a=(0,_.elapsed)(t.relative,e),l=!0}l&&r({maxDepth:Math.min(i,o),maxDepthScrollTop:n,maxScrollHeight:o,maxScrollHeightTime:a})});return{stop:()=>s.unsubscribe()}}(n,a,e=>{s.scroll=e}),{stop:m}=function(e,t,r){let n,i,o,a,s;if(!(rT(v.LAYOUT_SHIFT)&&"WeakRef"in window))return{stop:x.noop};let l=0;r({value:0});let u=(a=0,s=0,{update:e=>{let t;return void 0===i||e.startTime-o>=nz||e.startTime-i>=nG?(i=o=e.startTime,s=a=e.value,t=!0):(a+=e.value,o=e.startTime,(t=e.value>s)&&(s=e.value)),{cumulatedValue:a,isMaxValue:t}}}),c=r_(e,{type:v.LAYOUT_SHIFT,buffered:!0}).subscribe(i=>{var o;for(let a of i){if(a.hadRecentInput||a.startTime<t)continue;let{cumulatedValue:i,isMaxValue:s}=u.update(a);if(s){let e=function(e){let t;for(let r of e)if(r.node&&rg(r.node)){let e=nj(r);(!t||nj(t)<e)&&(t=r)}return t}(a.sources);n={target:(null==e?void 0:e.node)?new WeakRef(e.node):void 0,time:(0,_.elapsed)(t,a.startTime),previousRect:null==e?void 0:e.previousRect,currentRect:null==e?void 0:e.currentRect,devicePixelRatio:window.devicePixelRatio}}if(i>l){l=i;let t=null==(o=null==n?void 0:n.target)?void 0:o.deref();r({value:(0,eK.round)(l,4),targetSelector:t&&rM(t,e.actionNameAttribute),time:null==n?void 0:n.time,previousRect:(null==n?void 0:n.previousRect)?nq(n.previousRect):void 0,currentRect:(null==n?void 0:n.currentRect)?nq(n.currentRect):void 0,devicePixelRatio:null==n?void 0:n.devicePixelRatio})}}});return{stop:()=>{c.unsubscribe()}}}(n,a.relative,e=>{s.cumulativeLayoutShift=e,i()}),{stop:g,getInteractionToNextPaint:y,setViewEnd:b}=function(e,t,r){var n;let i,o,a;if(!(rT(v.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:()=>
4void 0,setViewEnd:x.noop,stop:x.noop};let s=1/0,{getViewInteractionCount:l,stopViewInteractionCount:u}=(n=r,"interactionCount"in performance||c||(c=new window.PerformanceObserver((0,h.monitor)(e=>{e.getEntries().forEach(e=>{e.interactionId&&(nW=Math.min(nW,e.interactionId),nH=((nY=Math.max(nY,e.interactionId))-nW)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0}),o=n===H.INITIAL_LOAD?0:nJ(),a={stopped:!1},{getViewInteractionCount:()=>a.stopped?a.interactionCount:nJ()-o,stopViewInteractionCount:()=>{a={stopped:!0,interactionCount:nJ()-o}}}),d=function(e){let t=[];function r(){t.sort((e,t)=>t.duration-e.duration).splice(10)}return{process(e){let n=t.findIndex(t=>e.interactionId===t.interactionId),i=t[t.length-1];-1!==n?e.duration>t[n].duration&&(t[n]=e,r()):(t.length<10||e.duration>i.duration)&&(t.push(e),r())},estimateP98Interaction(){let r=Math.min(t.length-1,Math.floor(e()/50));return t[r]},isTracked:e=>t.some(t=>t.interactionId===e)}}(l),p=(0,B.isExperimentalFeatureEnabled)(B.ExperimentalFeature.INP_SUBPARTS)?function(e){let t=new Map;function r(e,t){e.startTime=Math.min(t.startTime,e.startTime),e.processingStart=Math.min(t.processingStart,e.processingStart),e.processingEnd=Math.max(t.processingEnd,e.processingEnd)}return{process(e){if(void 0===e.interactionId||!e.processingStart||!e.processingEnd)return;let n=e.startTime+e.duration,i=t.get(e.interactionId);if(i)return void r(i,e);for(let[,i]of t.entries())if(8>=Math.abs(n-i.referenceRenderTime)){r(i,e),t.set(e.interactionId,i);return}t.set(e.interactionId,{startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,referenceRenderTime:n})},pruneUntracked(){for(let[r]of t)e.isTracked(r)||t.delete(r)},computeSubParts(e,r){if(!e.processingStart||!e.processingEnd||void 0===e.interactionId)return;let n=t.get(e.interactionId);if(!n)return;let i=Math.max(n.startTime+r,n.processingStart),o=Math.min(n.processingEnd,i);return{inputDelay:(0,_.elapsed)(n.startTime,n.processingStart),processingDuration:(0,_.elapsed)(n.processingStart,o),presentationDelay:(0,_.elapsed)(o,i)}},stop(){t.clear()}}}(d):null,f=r_(e,{type:v.FIRST_INPUT,buffered:!0}).subscribe(g),m=r_(e,{type:v.EVENT,durationThreshold:40,buffered:!0}).subscribe(g);function g(r){for(let e of r)e.interactionId&&e.startTime>=t&&e.startTime<=s&&(d.process(e),null==p||p.process(e));null==p||p.pruneUntracked();let n=d.estimateP98Interaction();n&&function(r){let n=(0,_.elapsed)(t,r.startTime);if(!i||r.duration!==i.duration||n!==i.startTime){var o;let t,a=(o=r.startTime,t=nm.get(o),nm.delete(o),t);!a&&r.target&&rg(r.target)&&(a=rM(r.target,e.actionNameAttribute)),i={duration:r.duration,startTime:n,targetSelector:a}}p&&(i.subParts=p.computeSubParts(r,nZ(i.duration)))}(n)}return{getInteractionToNextPaint:()=>i?{value:nZ(i.duration),targetSelector:i.targetSelector,time:i.startTime,subParts:i.subParts}:l()?{value:0}:void 0,setViewEnd:e=>{s=e,u()},stop:()=>{m.unsubscribe(),f.unsubscribe(),null==p||p.stop()}}}(n,a.relative,o);return{stop:()=>{d(),m(),f()}
4,stopINPTracking:g,setLoadEvent:p,setViewEnd:e=>{u=!0,b(e)},getCommonViewMetrics:()=>(s.interactionToNextPaint=y(),s),setLoadingTime:e=>{if(u)return;let t=(0,_.elapsed)(a.timeStamp,null!=e?e:(0,_.timeStampNow)());l||d(),l=!0,s.loadingTime=t,i()}}}(e,t,r,n,W,i,o),{stop:$,initialViewMetrics:V}=i===H.INITIAL_LOAD?function(e,t,r,n){var i,o,a;let s,l={},{stop:u}=(i=e=>{r(e.loadEvent),l.navigationTimings=e,n()},function(e,t){let r,{stop:n}=nN(e,"complete",()=>{r=(0,k.setTimeout)(()=>t())});return{stop:()=>{n(),(0,k.clearTimeout)(r)}}}(e,()=>{var e;let t=(0,R.mockable)(nM)();t.loadEventEnd<=0||i({domComplete:(e=t).domComplete,domContentLoaded:e.domContentLoadedEventEnd,domInteractive:e.domInteractive,loadEvent:e.loadEventEnd,firstByte:nL(e)})})),c=nK(e,t),{stop:d}=(o=e=>{l.firstContentfulPaint=e,n()},{stop:r_(e,{type:v.PAINT,buffered:!0}).subscribe(e=>{let t=e.find(e=>"first-contentful-paint"===e.name&&e.startTime<c.timeStamp&&e.startTime<nB);t&&o(t.startTime)}).unsubscribe}),{stop:p}=function(e,t,r,n){let i=1/0,{stop:o}=(0,eA.addEventListeners)(e,r,["pointerdown","keydown"],e=>{i=e.timeStamp},{capture:!0,once:!0}),a=0,s=r_(e,{type:v.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(r=>{let o=(0,eH.findLast)(r,e=>e.entryType===v.LARGEST_CONTENTFUL_PAINT&&e.startTime<i&&e.startTime<t.timeStamp&&e.startTime<nF&&e.size>a);if(o){var s;let t;o.element&&(t=rM(o.element,e.actionNameAttribute));let r=""===(s=o).url?void 0:s.url,i=o.startTime,l=function(e,t){let r=nL(nM());if(void 0===r)return;let n=e?function(e,t){let r=function(){if(rT(v.RESOURCE))return performance.getEntriesByType(v.RESOURCE)}();if(r)return(0,eH.findLast)(r,r=>r.name===e&&r.startTime<=t)}(e,t):void 0,i=n?Math.max(r,n.requestStart||n.startTime):r,o=Math.min(t,Math.max(i,(null==n?void 0:n.responseEnd)||0));return{loadDelay:i-r,loadTime:o-i,renderDelay:t-o}}(r,i);n({value:i,targetSelector:t,resourceUrl:r,subParts:l}),a=o.size}});return{stop:()=>{o(),s.unsubscribe()}}}(e,c,window,e=>{l.largestContentfulPaint=e,n()}),{stop:f}=(a=e=>{l.firstInput=e,n()},s=r_(e,{type:v.FIRST_INPUT,buffered:!0}).subscribe(t=>{let r=t.find(e=>e.startTime<c.timeStamp);if(r){let t,n=(0,_.elapsed)(r.startTime,r.processingStart);r.target&&rg(r.target)&&(t=rM(r.target,e.actionNameAttribute)),a({delay:n>=0?n:0,time:r.startTime,targetSelector:t})}}),{stop:()=>{s.unsubscribe()}});return{stop:function(){u(),d(),p(),f(),c.stop()},initialViewMetrics:l}}(n,o,I,W):{stop:x.noop,initialViewMetrics:{}};i===H.BF_CACHE&&(s=o.relative,requestAnimationFrame(()=>{requestAnimationFrame(()=>{(e=>{V.firstContentfulPaint=e,V.largestContentfulPaint={value:e},W()})((0,_.elapsed)(s,(0,_.relativeNow)()))})}));let{stop:K,eventCounts:j}=function(e,t,r){let{stop:n,eventCounts:i}=r4({lifeCycle:e,isChildEvent:e=>e.view.id===t,onChange:r});return{stop:n,eventCounts:i}}(e,u,W),q=(0,k.setInterval)(Y,n4),G=e.subscribe(11,e=>{e.reason===tP.PageExitReason.UNLOADING&&Y()});function z(){e.notify(3,{id:u,name:b,context:g.getContext(),startClocks:o,sessionIsActive:y})}function W(){z(),O()}function Y(){A(),z(),f+=1;let t=void 0===l?(0,nV.timeStampNow)():l.timeStamp;e.notify(4,{customTimings:p,documentVersion:f,id:u,name:b,service:E,version:S,context:g.getContext(),loadingType:i,location:m,handlingStack:C,startClocks:o,commonViewMetrics:P(),initialViewMetrics:V,duration:(0,nV.elapsed)(o.timeStamp,t),isActive:void 0===l,sessionIsActive:y,eventCounts:j})}return Y(),g.changeObservable.subscribe(W),{get name(){return b},service:E,version:S,contextManager:g,stopObservable:d,end(t={}){var r,n;l||(l=null!=(r=t.endClocks)?r:(0,nV.clocksNow)(),y=null==(n=t.sessionIsActive)||n,e.notify(5,{endClocks:l}),e.notify(6,{endClocks:l}),(0,k.clearInterval)(q),D(l.relative),M(),G.unsubscribe(),Y(),(0,k.setTimeout)(()=>{this.stop()},n3))},stop(){$(),K(),L(),d.notify()},addTiming(e,t){var r;let n;if(l)return;let i=(0,nV.looksLikeRelativeTime)(t)?t:(0,nV.elapsed)(o.timeStamp,t);p[(n=(r=e).replace(/[^a-zA-Z0-9-_.@$]/g,"_"))!==r&&en.display.warn(`Invalid timing name: ${r}, sanitized to: ${n}`),n]=i,W()},setLoadingTime:U,setViewName(e){b=e,Y()}}}(e,t,r,n,i,o,a);return u.add(s),s.stopObservable.subscribe(()=>{u.delete(s)}),s}return e.subscribe(10,()=>{d=p(H.ROUTE_CHANGE,void 0,{name:d.name,service:d.service,version:d.version,context:d.contextManager.getContext()})}),e.subscribe(9,()=>{d.end({sessionIsActive:!1})}),o&&(l=i.subscribe(({oldLocation:e,newLocation:t})=>{var r,n;let i;r=e,n=t,r.pathname===n.pathname&&(""!==(i=n.hash.substring(1))&&document.getElementById(i)||n6(n.hash)===n6(r.hash))||(d.end(),d=p(H.ROUTE_CHANGE))}),n.trackBfcacheViews&&(s=function(e,t){let{stop:r}=(0,eA.addEventListener)(e,window,"pageshow",e=>{e.persisted&&t(e)},{capture:!0});return r}(n,e=>{d.end();let t=(0,nV.relativeToClocks)(e.timeStamp);d=p(H.BF_CACHE,t,void 0)}))),{addTiming:(e,t=(0,nV.timeStampNow)())=>{d.addTiming(e,t)}
4,setLoadingTime:e=>d.setLoadingTime(e),startView:(e,t)=>{d.end({endClocks:t}),d=p(H.ROUTE_CHANGE,t,e)},setViewContext:e=>{d.contextManager.setContext(e)},setViewContextProperty:(e,t)=>{d.contextManager.setContextProperty(e,t)},setViewName:e=>{d.setViewName(e)},getViewContext:()=>d.contextManager.getContext(),stop:()=>{l&&l.unsubscribe(),s&&s(),d.end(),u.forEach(e=>e.stop())}}}(e,eh,eT,r,e_,!r.trackViewsManually,o)),e2=window,e5=new Map;function e4(){e2.DD_SOURCE_CODE_CONTEXT&&((0,eH.objectEntries)(e2.DD_SOURCE_CODE_CONTEXT).forEach(([e,t])=>{let r=(0,L.computeStackTrace)({stack:e}).stack[0];r.url?e5.has(r.url)||e5.set(r.url,t):(0,b.addTelemetryError)("Source code context: missing frame url",{stack:e})}),e2.DD_SOURCE_CODE_CONTEXT={})}e4(),t.register(0,({domainContext:e,rawRumEvent:t})=>{var r,n,i,o;let a;if(e4(),0===e5.size)return eR.SKIPPED;let s=(r=e,"long_task"===(n=t).type&&"long-animation-frame"===n.long_task.entry_type?null==(i=n.long_task.scripts[0])?void 0:i.source_url:("handlingStack"in r&&(a=r.handlingStack),"error"===n.type&&n.error.stack&&(a=n.error.stack),null==(o=(0,L.computeStackTrace)({stack:a}).stack[0])?void 0:o.url)),l=s&&e5.get(s);return l?{type:t.type,service:l.service,version:l.version}:eR.SKIPPED}),eb.push(e1);let e3=function(e,t,r){let n,i=(0,R.mockable)(nO)(),o=t.trackEarlyRequests;if(o){let t,r,i;t=new Set,r=!1,i=e.subscribe(8,e=>{if(t.add(e),t.size>1e3){let e=t.values().next().value;if(!r){let n;if(r=!0,(0,B.isExperimentalFeatureEnabled)(B.ExperimentalFeature.TOO_MANY_REQUESTS_INVESTIGATION)){let r=0,i=0,o=0,a=0;for(let e of t)e.isAborted&&r++,e.isAbortedOnStart&&i++,"xhr"===e.type&&o++,!performance.getEntriesByName(e.url,"resource").some(t=>t.startTime>=e.startClocks.relative)&&a++;let s=(0,_.timeStampNow)()-e.startClocks.timeStamp;n={abortedCount:r,abortedOnStartCount:i,xhrCount:o,fetchCount:t.size-o,oldestRequestAge:s,oldestRequestEndAge:s-e.duration,withoutMatchingEntryCount:a}}(0,b.addTelemetryDebug)("Too many requests",n)}t.delete(e)}}),n={getMatchingRequest(e){let r,n=1/0;for(let i of t){let t=e.startTime-i.startClocks.relative;0<=t&&t<n&&i.url===e.name&&(n=Math.abs(t),r=i)}return r&&t.delete(r),r},stop(){i.unsubscribe()}}}else e.subscribe(8,e=>{s(()=>{var n,i,o;return n=e,i=t,o=r,n$(function(e){if(!performance||!("getEntriesByName"in performance))return;let t=performance.getEntriesByName(e.url,"resource");if(!t.length||!("toJSON"in t[0]))return;let r=t.filter(e=>!nA.has(e)).filter(e=>t5(e)&&t4(e)).filter(t=>{var r,n,i;return r=t,n=e.startClocks.relative,i=nI({startTime:e.startClocks.relative,duration:e.duration}),r.startTime>=n-1&&nI(r)<=(0,_.addDuration)(i,1)});if(1===r.length)return nA.add(r[0]),r[0].toJSON()}(n),n,o,i)})});let a=r_(t,{type:v.RESOURCE,buffered:!0}).subscribe(e=>{for(let i of e)(o||!t0(i))&&s(()=>nU(i,t,r,n))});function s(t){i.push(()=>{let r=t();r&&e.notify(12,r)})}(0,R.mockable)(nP)(t,e=>{s(()=>nU(e,t,r,n))});let l=r6(e),u={startResource:function(e,t={},r=(0,_.clocksNow)()){var n;let i=null!=(n=t.resourceKey)?n:e;l.start(i,r,{url:e,...t})},stopResource:function(t,r={},n=(0,_.clocksNow)()){var i;let o=null!=(i=r.resourceKey)?i:t,a=l.stop(o,n,{context:r.context,type:r.type});if(!a)return;let s=(0,_.elapsed)(a.startClocks.relative,n.relative),u={date:a.startClocks.timeStamp,type:G.RESOURCE,resource:{id:a.id,type:a.type||tz,url:rt(a.url),duration:(0,_.toServerDuration)(s),method:a.method,status_code:r.statusCode,size:r.size},_dd:{},context:a.context};e.notify(12,{rawRumEvent:u,startClocks:a.startClocks,duration:s,domainContext:{isManual:!0}})}};return{startResource:u.startResource,stopResource:u.stopResource,stop:()=>{i.stop(),a.unsubscribe(),l.stopAll()}}}(e,r,eO);eb.push(e3.stop);let{stop:e6}=(ec=r_(r,{type:rT(v.LONG_ANIMATION_FRAME)?v.LONG_ANIMATION_FRAME:v.LONG_TASK,buffered:!0}).subscribe(t=>{for(let n of t){if(!r.trackLongTasks)break;let t=(0,_.relativeToClocks)(n.startTime),i=function(e,t){let r=F(),n=(0,_.toServerDuration)(e.duration),i={date:t.timeStamp,type:G.LONG_TASK,_dd:{discarded:!1}};return e.entryType===v.LONG_TASK?{...i,long_task:{id:r,entry_type:z.LONG_TASK,duration:n}}:{...i,long_task:{id:r,entry_type:z.LONG_ANIMATION_FRAME,duration:n,blocking_duration:(0,_.toServerDuration)(e.blockingDuration),first_ui_event_timestamp:(0,_.toServerDuration)(e.firstUIEventTimestamp),render_start:(0,_.toServerDuration)(e.renderStart),style_and_layout_start:(0,_.toServerDuration)(e.styleAndLayoutStart),start_time:(0,_.toServerDuration)(e.startTime),scripts:e.scripts.map(e=>({duration:(0,_.toServerDuration)(e.duration),pause_duration:(0,_.toServerDuration)(e.pauseDuration),forced_style_and_layout_duration:(0,_.toServerDuration)(e.forcedStyleAndLayoutDuration),start_time:(0,_.toServerDuration)(e.startTime),execution_start:(0,_.toServerDuration)(e.executionStart),source_url:e.sourceURL,source_function_name:e.sourceFunctionName,source_char_position:e.sourceCharPosition,invoker:e.invoker,invoker_type:e.invokerType,window_attribution:e.windowAttribution}))}}}(n,t);e.notify(12,{rawRumEvent:i,startClocks:t,duration:n.duration,domainContext:{performanceEntry:n}})}}),{stop:()=>ec.unsubscribe()});eb.push(e6);let{addError:e8}=(ep=new N.Observable,s.subscribe(e=>{0===e.type&&ep.notify(e.error)}),y=ep,(P=[en.ConsoleApiName.error].map(e=>{var t;return nS[e]||(nS[e]=(t=e,new N.Observable(e=>{let r=en.globalConsole[t];return en.globalConsole[t]=(...n)=>{r.apply(console,n);let i=(0,T.createHandlingStack)("console error");(0,h.callMonitored)(()=>
4{e.notify(function(e,t,r){let n=e.map(e=>{var t;return"string"==typeof(t=e)?(0,C.sanitize)(t):(0,U.isError)(t)?(0,T.formatErrorMessage)((0,L.computeStackTrace)(t)):(0,nE.jsonStringify)((0,C.sanitize)(t),void 0,2)}).join(" ");if(t===en.ConsoleApiName.error){let i=e.find(U.isError),o=(0,U.computeRawError)({originalError:i,handlingStack:r,startClocks:(0,_.clocksNow)(),source:$.ErrorSource.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return o.message=n,{api:t,message:n,handlingStack:r,error:o}}return{api:t,message:n,error:void 0,handlingStack:r}}(n,t,i))})},()=>{en.globalConsole[t]=r}}))),nS[e]}),(0,N.mergeObservables)(...P)).subscribe(e=>y.notify(e.error)),ev=(em=[],(p=[nh,"intervention"]).includes(nh)&&em.push((S=r,new N.Observable(e=>{let{stop:t}=(0,eA.addEventListener)(S,document,"securitypolicyviolation",t=>{var r;let n;e.notify((r=t,n=`'${r.blockedURI}' blocked by '${r.effectiveDirective}' directive`,n_({type:r.effectiveDirective,message:`${nh}: ${n}`,originalError:r,csp:{disposition:r.disposition},stack:nT(r.effectiveDirective,r.originalPolicy?`${n} of the policy "${q(r.originalPolicy,100,"...")}"`:"no policy",r.sourceFile,r.lineNumber,r.columnNumber)})))});return t}))),(eg=p.filter(e=>e!==nh)).length&&em.push((w=eg,new N.Observable(e=>{if(!window.ReportingObserver)return;let t=(0,h.monitor)((t,r)=>t.forEach(t=>e.notify(function(e){let{type:t,body:r}=e;return n_({type:r.id,message:`${t}: ${r.message}`,originalError:e,stack:nT(r.id,r.message,r.sourceFile,r.lineNumber,r.columnNumber)})}(t)))),r=new window.ReportingObserver(t,{types:w,buffered:!0});return r.observe(),()=>{r.disconnect()}}))),(0,N.mergeObservables)(...em)).subscribe(e=>ep.notify(e)),ep.subscribe(t=>e.notify(14,{error:t})),(O=e).subscribe(14,({error:e})=>{var t;let r,n;O.notify(12,(r={date:(t=e).startClocks.timeStamp,error:{id:F(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,component_stack:t.componentStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser",fingerprint:t.fingerprint,csp:t.csp},type:G.ERROR,context:t.context},n={error:t.originalError,handlingStack:t.handlingStack},{rawRumEvent:r,startClocks:t.startClocks,domainContext:n}))}),{addError:({error:e,handlingStack:t,componentStack:r,startClocks:n,context:i})=>{let o=(0,U.computeRawError)({originalError:e,handlingStack:t,componentStack:r,startClocks:n,nonErrorPrefix:"Provided",source:$.ErrorSource.CUSTOM,handling:"handled"});o.context=(0,E.combine)(o.context,i),O.notify(14,{error:o})}});ey={clearTracingIfNeeded:ra,traceFetch:e=>rs(r,e,n,eV,eB,t=>{var r;if(e.input instanceof Request&&!(null==(r=e.init)?void 0:r.headers))e.input=new Request(e.input),Object.keys(t).forEach(r=>{e.input.headers.append(r,t[r])});else{e.init=(0,ef.shallowClone)(e.init);let r=[];e.init.headers instanceof Headers?e.init.headers.forEach((e,t)=>{r.push([t,e])}):Array.isArray(e.init.headers)?e.init.headers.forEach(e=>{r.push(e)}):e.init.headers&&Object.keys(e.init.headers).forEach(t=>{r.push([t,e.init.headers[t]])}),e.init.headers=r.concat((0,eH.objectEntries)(t))}}),traceXhr:(e,t)=>rs(r,e,n,eV,eB,e=>{Object.keys(e).forEach(r=>{t.setRequestHeader(r,e[r])})})},function(e,t,r){var n;(!l&&(n=t,l=new N.Observable(e=>{let{stop:t}=D(XMLHttpRequest.prototype,"open",tW),{stop:r}=D(XMLHttpRequest.prototype,"send",t=>{!function({target:e,parameters:[t],handlingStack:r},n,i){let o=tH.get(e);if(!o)return;o.state="start",o.startClocks=(0,_.clocksNow)(),o.isAborted=!1,o.xhr=e,o.handlingStack=r,o.requestBody=t;let a=!1,{stop:s}=D(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&l()}),l=()=>{u(),s(),a||(a=!0,o.state="complete",o.duration=(0,_.elapsed)(o.startClocks.timeStamp,(0,_.timeStampNow)()),o.status=e.status,"string"==typeof e.response&&(o.responseBody=e.response),i.notify((0,ef.shallowClone)(o)))},{stop:u}=(0,eA.addEventListener)(n,e,"loadend",l);i.notify(o)}(t,n,e)},{computeHandlingStack:!0}),{stop:i}=D(XMLHttpRequest.prototype,"abort",tY);return()=>{t(),r(),i()}})),l).subscribe(t=>{if(t7(t.url))switch(t.state){case"start":r.traceXhr(t,t.xhr),t.requestIndex=rd(),e.notify(7,{requestIndex:t.requestIndex,url:t.url});break;case"complete":r.clearTracingIfNeeded(t),e.notify(8,{...t,type:"xhr",isAbortedOnStart:!1})}})}(e,r,ey),A=e,I=r,M=ey,ew({responseBodyAction:e=>{var t;return(null==(t=ru(e.url,I))?void 0:t.trackResponseErrors)?2:1}}).subscribe(e=>{var t;if(t7(e.url))switch(e.state){case"start":M.traceFetch(e),e.requestIndex=rd(),A.notify(7,{requestIndex:e.requestIndex,url:e.url});break;case"resolve":M.clearTracingIfNeeded(e),A.notify(8,{...e,duration:(0,_.elapsed)(e.startClocks.timeStamp,(0,_.timeStampNow)()),type:tG,requestBody:null==(t=e.init)?void 0:t.body})}});let e9=function(e,t,r){function n(r){t.wasInPageStateDuringPeriod("frozen",r.startClocks.relative,r.duration)||e.notify(12,Q(r))}return{addOperationStepVital:function(t,r,n,i){if(!(0,B.isExperimentalFeatureEnabled)(B.ExperimentalFeature.FEATURE_OPERATION_VITAL))return;let{operationKey:o,context:a,description:s,handlingStack:l}=n||{}
4,u={name:t,type:J.OPERATION_STEP,operationKey:o,failureReason:i,stepType:r,startClocks:(0,_.clocksNow)(),context:(0,C.sanitize)(a),description:s,handlingStack:l};e.notify(12,Q(u))},addDurationVital:n,startDurationVital:(t,n={})=>{let i=X(r,t,n),o=r.vitalsByReference.get(i);return o&&e.notify(16,o),i},stopDurationVital:(e,t={})=>{Z(n,r,e,t)}}}(e,eO,a),e7=(f=r.applicationId,g=eF.actionContexts,{get:e=>{let t=eI.findView(e),r=ex.findUrl(e),i=n.findTrackedSession(e);if(i&&t&&r){let n=g.findActionId(e);return{application_id:f,session_id:i.id,user_action:n?{id:n}:void 0,view:{id:t.id,name:t.name,referrer:r.referrer,url:r.url}}}}});return{addAction:eF.addAction,startAction:eF.startAction,stopAction:eF.stopAction,startResource:e3.startResource,stopResource:e3.stopResource,addEvent:ej.addEvent,addError:e8,addTiming:ez,setLoadingTime:eY,addFeatureFlagEvaluation:eD.addFeatureFlagEvaluation,startView:eJ,setViewContext:eZ,setViewContextProperty:eQ,getViewContext:e0,setViewName:eX,viewHistory:eI,getInternalContext:e7.get,startDurationVital:e9.startDurationVital,stopDurationVital:e9.stopDurationVital,addDurationVital:e9.addDurationVital,addOperationStepVital:e9.addOperationStepVital,globalContext:e$,userContext:eV,accountContext:eB,stop:()=>eb.forEach(e=>e())}}(I,d,e,K,t,n,a,s,g,M);return A.push(ee),s.unbuffer(),A.push(()=>r.stop()),{...et,lifeCycle:I,session:K,stopSession:()=>K.expire(),telemetry:u,stop:()=>{A.forEach(e=>e())},hooks:d}}function iw(e,t,r={}){let n,i,o=(0,A.createTrackingConsentState)(),a={vitalsByName:new Map,vitalsByReference:new WeakMap},s=(n=new N.BufferedObservable(500),i=(0,R.mockable)(V)().subscribe(e=>{n.notify({type:0,error:e})}),{observable:n,stop:()=>{i.unsubscribe()}}).observable,l=function({ignoreInitIfSyntheticsWillInjectRum:e=!0,startDeflateWorker:t},r,n,i){let o,a,s,l,u,c,d=(c=[],{add:e=>{c.push(e)>500&&c.splice(0,1)},remove:e=>{et(c,e)},drain:e=>{c.forEach(t=>t(e)),c.length=0}}),p=eP();tM(p,y.CustomerContextKey.globalContext,d);let f=eU();tM(f,y.CustomerContextKey.userContext,d);let m=eL();tM(m,y.CustomerContextKey.accountContext,d);let g=e$(),v=r.observable.subscribe(S),E={};function S(){let e;if(!s||!l||!r.isGranted())return;if(u||(u=(0,R.mockable)(b.startTelemetry)("browser-rum-sdk",l,g)),v.unsubscribe(),l.trackViewsManually){if(!o)return;d.remove(o.callback),e=o.options}let t=i(l,a,e,u,g);d.drain(t)}function T(e,n){var i,o,u,c,d,p,f,m;let g,v,y=(0,ei.canUseEventBridge)();if(y&&(e={...p=e,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!=(f=p.defaultPrivacyLevel)?f:null==(m=(0,ei.getEventBridge)())?void 0:m.getPrivacyLevel()}),s=e,(0,b.addTelemetryConfiguration)((g={session_sample_rate:(u=i=e).sessionSampleRate,telemetry_sample_rate:u.telemetrySampleRate,telemetry_configuration_sample_rate:u.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:u.telemetryUsageSampleRate,use_before_send:!!u.beforeSend,use_partitioned_cross_site_session_cookie:u.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:u.useSecureSessionCookie,use_proxy:!!u.proxy,silent_multiple_init:u.silentMultipleInit,track_session_across_subdomains:u.trackSessionAcrossSubdomains,track_anonymous_user:u.trackA
4nonymousUser,session_persistence:Array.isArray(u.sessionPersistence)?u.sessionPersistence[0]:u.sessionPersistence,allow_fallback_to_local_storage:!!u.allowFallbackToLocalStorage,store_contexts_across_pages:!!u.storeContextsAcrossPages,allow_untrusted_events:!!u.allowUntrustedEvents,tracking_consent:u.trackingConsent,use_allowed_tracking_origins:Array.isArray(u.allowedTrackingOrigins),beta_encode_cookie_options:u.betaEncodeCookieOptions,source:u.source,sdk_version:u.sdkVersion,variant:u.variant},{session_replay_sample_rate:i.sessionReplaySampleRate,start_session_replay_recording_manually:i.startSessionReplayRecordingManually,trace_sample_rate:i.traceSampleRate,trace_context_injection:i.traceContextInjection,propagate_trace_baggage:i.propagateTraceBaggage,action_name_attribute:i.actionNameAttribute,use_allowed_tracing_urls:er(i.allowedTracingUrls),use_allowed_graph_ql_urls:er(i.allowedGraphQlUrls),use_track_graph_ql_payload:er(c=i.allowedGraphQlUrls)&&c.some(e=>(0,ek.isIndexableObject)(e)&&e.trackPayload),use_track_graph_ql_response_errors:er(d=i.allowedGraphQlUrls)&&d.some(e=>(0,ek.isIndexableObject)(e)&&e.trackResponseErrors),selected_tracing_propagators:(v=new Set,er(i.allowedTracingUrls)&&i.allowedTracingUrls.forEach(e=>{var t;null==(t=tE(e))||t.propagatorTypes.forEach(e=>v.add(e))}),Array.from(v)),default_privacy_level:i.defaultPrivacyLevel,enable_privacy_for_action_name:i.enablePrivacyForActionName,use_excluded_activity_urls:er(i.excludedActivityUrls),use_worker_url:!!i.workerUrl,compress_intake_requests:i.compressIntakeRequests,track_views_manually:i.trackViewsManually,track_user_interactions:i.trackUserInteractions,track_resources:i.trackResources,track_long_task:i.trackLongTasks,track_bfcache_views:i.trackBfcacheViews,track_early_requests:i.trackEarlyRequests,plugins:null==(o=i.plugins)?void 0:o.map(e=>{var t;return{name:e.name,...null==(t=e.getConfigurationTelemetry)?void 0:t.call(e)}}),track_feature_flags_for_events:i.trackFeatureFlagsForEvents,remote_configuration_id:i.remoteConfigurationId,profiling_sample_rate:i.profilingSampleRate,use_remote_configuration_proxy:!!i.remoteConfigurationProxy,...g})),l)return void(0,O.displayAlreadyInitializedError)("DD_RUM",e);let E=function(e,t){var r,n,i,o,a,s,l;if(void 0===e.trackFeatureFlagsForEvents||Array.isArray(e.trackFeatureFlagsForEvents)||en.display.warn("trackFeatureFlagsForEvents should be an array"),!e.applicationId)return void en.display.error("Application ID is not configured, no RUM data will be collected.");if(!ty(e.sessionReplaySampleRate,"Session Replay")||!ty(e.traceSampleRate,"Trace"))return;if(void 0!==e.excludedActivityUrls&&!Array.isArray(e.excludedActivityUrls))return void en.display.error("Excluded Activity Urls should be an array");let u=function(e){if(void 0===e.allowedTracingUrls)return[];if(!Array.isArray(e.allowedTracingUrls))return void en.display.error("Allowed Tracing URLs should be an array");if(0!==e.allowedTracingUrls.length&&void 0===e.service)return void en.display.error("Service needs to be configured when tracing is enabled");let t=[];return e.allowedTracingUrls.forEach(e=>{let r=tE(e);r?t.push(r):en.display.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",e)}),t}(e);if(!u)return;let c=function(e,t){var r,n,i,o,a,s,l,u,c,d,p,f,m;if(!e||!e.clientToken)return void en.display.error("Client Token is not configured, we will not send any data.");if(void 0!==e.allowedTrackingOrigins&&!Array.isArray(e.allowedTrackingOrigins))return void en.display.error("Allowed Tracking Origins must be an array");if((!(p=e.site)||"string"!=typeof p||/(datadog|ddog|datad0g|dd0g)/.test(p)||(en.display.error(`Site should be a valid Datadog site. ${en.MORE_DETAILS} ${en.DOCS_ORIGIN}/getting_started/site/.`),0))&&ty(e.sessionSampleRate,"Session")&&ty(e.telemetrySampleRate,"Telemetry")&&ty(e.telemetryConfigurationSampleRate,"Telemetry Configuration")&&ty(e.telemetryUsageSampleRate,"Telemetry Usage")&&tv(e.version,"Version")&&tv(e.env,"Env")&&tv(e.service,"Service")&&function(e,t){let r=(0,R.mockable)((0,P.getGlobalObject)().location),n=r?r.origin:"",i=e.allowedTrackingOrigins;if(!i)return!function(e,t=""){return!tc(e)&&tc(t.split("\n").filter(e=>{let t=e.trim();return t.length&&/^at\s+|@/.test(t)})[1]||"")}(n,t)||(en.display.error("Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided."),!1);let o=eB(i,n);return o||en.display.error("SDK initialized on a non-allowed domain."),o}(e,null!=t?t:"")){let t,p,g;if(void 0!==e.trackingConsent&&!(0,ef.objectHasValue)(A.TrackingConsent,e.trackingConsent))return void en.display.error('Tracking Consent should be either "granted" or "not-granted"');
4return{beforeSend:e.beforeSend&&(0,eF.catchUserErrors)(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:P.isWorkerEnvironment?void 0:function(e){var t,r;let{sessionPersistence:n}=e;for(let i of(t=n,r=e,Array.isArray(t)?t:void 0!==t?[t]:r.allowFallbackToLocalStorage?[eX.COOKIE,eX.LOCAL_STORAGE]:[eX.COOKIE])){let t=function(e,t){switch(e){case eX.COOKIE:let r;return(r=function(e){let t={};if(t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains){let e=ep();if(!e)return;t.domain=e}return t}(t))&&function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{let t=`dd_cookie_test_${F()}`,r="test";eu(t,r,_.ONE_MINUTE,e);let n=ec(t)===r;return eu(t,"",0,e),n}catch(e){return en.display.error(e),!1}}(r)?{type:eX.COOKIE,cookieOptions:r}:void 0;case eX.LOCAL_STORAGE:try{let e=F(),t=`_dd_test_${e}`;localStorage.setItem(t,e);let r=localStorage.getItem(t);return localStorage.removeItem(t),e===r?{type:eX.LOCAL_STORAGE}:void 0}catch(e){return}case eX.MEMORY:return{type:eX.MEMORY};default:en.display.error(`Invalid session persistence '${String(e)}'`);return}}(i,e);if(void 0!==t)return t}}(e),sessionSampleRate:null!=(r=e.sessionSampleRate)?r:100,telemetrySampleRate:null!=(n=e.telemetrySampleRate)?n:20,telemetryConfigurationSampleRate:null!=(i=e.telemetryConfigurationSampleRate)?i:5,telemetryUsageSampleRate:null!=(o=e.telemetryUsageSampleRate)?o:5,service:null!=(a=e.service)?a:void 0,env:null!=(s=e.env)?s:void 0,version:null!=(l=e.version)?l:void 0,datacenter:null!=(u=e.datacenter)?u:void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:null!=(c=e.trackingConsent)?c:A.TrackingConsent.GRANTED,trackAnonymousUser:null==(d=e.trackAnonymousUser)||d,storeContextsAcrossPages:!!e.storeContextsAcrossPages,betaEncodeCookieOptions:!!e.betaEncodeCookieOptions,variant:e.variant,sdkVersion:e.sdkVersion,...(t=e.site||td.INTAKE_SITE_US1,p="flutter"===(f=e.source)||"unity"===f?f:"browser",g={logsEndpointBuilder:tp(m={...e,site:t,source:p},"logs"),rumEndpointBuilder:tp(m,"rum"),profilingEndpointBuilder:tp(m,"profile"),sessionReplayEndpointBuilder:tp(m,"replay"),exposuresEndpointBuilder:tp(m,"exposures"),flagEvaluationEndpointBuilder:tp(m,"flagevaluation")},{replica:function(e){if(!e.replica)return;let t={...e,site:td.INTAKE_SITE_US1,clientToken:e.replica.clientToken};return{logsEndpointBuilder:tp(t,"logs"),rumEndpointBuilder:tp(t,"rum",[`application.id=${e.replica.applicationId}`])}}({...e,site:t,source:p}),site:t,source:p,...g})}}}(e,t),d=function(e){if(!e.allowedGraphQlUrls)return[];if(!Array.isArray(e.allowedGraphQlUrls))return en.display.warn("allowedGraphQlUrls should be an array"),[];let t=[];
4return e.allowedGraphQlUrls.forEach(e=>{eV(e)?t.push({match:e,trackPayload:!1,trackResponseErrors:!1}):(0,ek.isIndexableObject)(e)&&eV(e.match)&&t.push({match:e.match,trackPayload:!!e.trackPayload,trackResponseErrors:!!e.trackResponseErrors})}),t}(e);if(!c)return;let p=null!=(r=e.sessionReplaySampleRate)?r:0;return{applicationId:e.applicationId,actionNameAttribute:e.actionNameAttribute,betaTrackActionsInShadowDom:!!e.betaTrackActionsInShadowDom,sessionReplaySampleRate:p,startSessionReplayRecordingManually:void 0!==e.startSessionReplayRecordingManually?!!e.startSessionReplayRecordingManually:0===p,traceSampleRate:null!=(n=e.traceSampleRate)?n:100,rulePsr:(0,eK.isNumber)(e.traceSampleRate)?e.traceSampleRate/100:void 0,allowedTracingUrls:u,excludedActivityUrls:null!=(i=e.excludedActivityUrls)?i:[],workerUrl:e.workerUrl,compressIntakeRequests:!!e.compressIntakeRequests,trackUserInteractions:!!(null==(o=e.trackUserInteractions)||o),trackViewsManually:!!e.trackViewsManually,trackResources:!!(null==(a=e.trackResources)||a),trackLongTasks:!!(null==(s=e.trackLongTasks)||s),trackBfcacheViews:!!e.trackBfcacheViews,trackEarlyRequests:!!e.trackEarlyRequests,subdomain:e.subdomain,defaultPrivacyLevel:(0,ef.objectHasValue)(tm,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:tm.MASK,enablePrivacyForActionName:!!e.enablePrivacyForActionName,traceContextInjection:(0,ef.objectHasValue)(tg,e.traceContextInjection)?e.traceContextInjection:tg.SAMPLED,plugins:e.plugins||[],trackFeatureFlagsForEvents:e.trackFeatureFlagsForEvents||[],profilingSampleRate:null!=(l=e.profilingSampleRate)?l:0,propagateTraceBaggage:!!e.propagateTraceBaggage,allowedGraphQlUrls:d,...c}}(e,n);if(E){if(!y&&!E.sessionStoreStrategyType)return void en.display.warn("No storage available for session. We will not send any data.");if(E.compressIntakeRequests&&!y&&t&&!(a=t(E,"Datadog RUM",x.noop)))return;l=E,ew().subscribe(x.noop),r.tryToInit(E.trackingConsent),S()}}let w=e=>{d.add(t=>t.addDurationVital(e))};return{init(t,r,n){t?((0,B.initFeatureFlags)(t.enableExperimentalFeatures),s=t,e&&eE()||(ee(t.plugins,"onInit",{initConfiguration:t,publicApi:r}),t.remoteConfigurationId?tk(t,{user:f,context:p}).then(e=>{e&&T(e,n)}).catch(h.monitorError):T(t,n))):en.display.error("Missing configuration")},get initConfiguration(){return s},getInternalContext:x.noop,stopSession:x.noop,addTiming(e,t=(0,_.timeStampNow)()){d.add(r=>r.addTiming(e,t))},setLoadingTime:e=>{d.add(t=>t.setLoadingTime(e))},startView(e,t=(0,_.clocksNow)()){let r=r=>{r.startView(e,t)};d.add(r),o||(o={options:e,callback:r},S())}
4,setViewName(e){d.add(t=>t.setViewName(e))},setViewContext(e){d.add(t=>t.setViewContext(e))},setViewContextProperty(e,t){d.add(r=>r.setViewContextProperty(e,t))},getViewContext:()=>E,globalContext:p,userContext:f,accountContext:m,addAction(e){d.add(t=>t.addAction(e))},startAction(e,t){let r=(0,_.clocksNow)();d.add(n=>n.startAction(e,t,r))},stopAction(e,t){let r=(0,_.clocksNow)();d.add(n=>n.stopAction(e,t,r))},startResource(e,t){let r=(0,_.clocksNow)();d.add(n=>n.startResource(e,t,r))},stopResource(e,t){let r=(0,_.clocksNow)();d.add(n=>n.stopResource(e,t,r))},addError(e){d.add(t=>t.addError(e))},addFeatureFlagEvaluation(e,t){d.add(r=>r.addFeatureFlagEvaluation(e,t))},startDurationVital:(e,t)=>X(n,e,t),stopDurationVital(e,t){Z(w,n,e,t)},addDurationVital:w,addOperationStepVital:(e,t,r,n)=>{d.add(i=>i.addOperationStepVital((0,C.sanitize)(e),t,(0,C.sanitize)(r),(0,C.sanitize)(n)))}}}(r,o,a,(n,i,u,c,d)=>{var p,f;let m=i&&r.createDeflateEncoder?e=>r.createDeflateEncoder(n,i,e):w.createIdentityEncoder,g=(0,R.mockable)(iC)(n,e,t,u,m,o,a,s,c,d,r.sdkName);return e.onRumStart(g.lifeCycle,n,g.session,g.viewHistory,i,g.telemetry),t.onRumStart(g.lifeCycle,g.hooks,n,g.session,g.viewHistory,m),p=l,f=g,l={init:e=>{(0,O.displayAlreadyInitializedError)("DD_RUM",e)},initConfiguration:p.initConfiguration,...f},ee(n.plugins,"onRumStart",{strategy:l,addEvent:g.addEvent,addError:g.addError}),g}),u=()=>l,c=(0,S.makePublicApi)({init:e=>{let t=Error().stack;(0,h.callMonitored)(()=>l.init(e,c,t))},setTrackingConsent:(0,h.monitor)(e=>{o.update(e),(0,b.addTelemetryUsage)({feature:"set-tracking-consent",tracking_consent:e})}),setViewName:(0,h.monitor)(e=>{l.setViewName(e),(0,b.addTelemetryUsage)({feature:"set-view-name"})}),setViewContext:(0,h.monitor)(e=>{l.setViewContext(e),(0,b.addTelemetryUsage)({feature:"set-view-context"})}),setViewContextProperty:(0,h.monitor)((e,t)=>{l.setViewContextProperty(e,t),(0,b.addTelemetryUsage)({feature:"set-view-context-property"})}),getViewContext:(0,h.monitor)(()=>((0,b.addTelemetryUsage)({feature:"set-view-context-property"}),l.getViewContext())),getInternalContext:(0,h.monitor)(e=>l.getInternalContext(e)),getInitConfiguration:(0,h.monitor)(()=>(0,E.deepClone)(l.initConfiguration)),addAction:(e,t)=>{let r=(0,T.createHandlingStack)("action");(0,h.callMonitored)(()=>{l.addAction({name:(0,C.sanitize)(e),context:(0,C.sanitize)(t),startClocks:(0,_.clocksNow)(),type:W.CUSTOM,handlingStack:r}),(0,b.addTelemetryUsage)({feature:"add-action"})})},startAction:(0,h.monitor)((e,t)=>{(!l.initConfiguration||(0,B.isExperimentalFeatureEnabled)(B.ExperimentalFeature.START_STOP_ACTION))&&l.startAction((0,C.sanitize)(e),{type:(0,C.sanitize)(t&&t.type),context:(0,C.sanitize)(t&&t.context),actionKey:t&&t.actionKey})}),stopAction:(0,h.monitor)((e,t)=>{(!l.initConfiguration||(0,B.isExperimentalFeatureEnabled)(B.ExperimentalFeature.START_STOP_ACTION))&&l.stopAction((0,C.sanitize)(e),{type:(0,C.sanitize)(t&&t.type),context:(0,C.sanitize)(t&&t.context),actionKey:t&&t.actionKey})}),startResource:(0,h.monitor)((e,t)=>{(!l.initConfiguration||(0,B.isExperimentalFeatureEnabled)(B.ExperimentalFeature.START_STOP_RESOURCE))&&l.startResource((0,C.sanitize)(e),{type:(0,C.sanitize)(t&&t.type),method:(0,C.sanitize)(t&&t.method),context:(0,C.sanitize)(t&&t.context),resourceKey:t&&t.resourceKey})}),stopResource:(0,h.monitor)((e,t)=>{(!l.initConfiguration||(0,B.isExperimentalFeatureEnabled)(B.ExperimentalFeature.START_STOP_RESOURCE))&&l.stopResource((0,C.sanitize)(e),{type:(0,C.sanitize)(t&&t.type),statusCode:t&&t.statusCode,size:t&&t.size,context:(0,C.sanitize)(t&&t.context),resourceKey:t&&t.resourceKey})}),addError:(e,t)=>{let r=(0,T.createHandlingStack)("error");(0,h.callMonitored)(()=>{l.addError({error:e,handlingStack:r,context:(0,C.sanitize)(t),startClocks:(0,_.clocksNow)()}),(0,b.addTelemetryUsage)({feature:"add-error"})})},addTiming:(0,h.monitor)((e,t)=>{l.addTiming((0,C.sanitize)(e),t)}),setViewLoadingTime:(0,h.monitor)(()=>{let e=(0,_.timeStampNow)();l.setLoadingTime(e),(0,b.addTelemetryUsage)({feature:"addViewLoadingTime"})}),setGlobalContext:(0,I.defineContextMethod)(u,y.CustomerContextKey.globalContext,y.ContextManagerMethod.setContext,"set-global-context"),getGlobalContext:(0,I.defineContextMethod)(u,y.CustomerContextKey.globalContext,y.ContextManagerMethod.getContext,"get-global-context"),setGlobalContextProperty:(0,I.defineContextMethod)(u,y.CustomerContextKey.globalContext,y.ContextManagerMethod.setContextProperty,"set-global-context-property"),removeGlobalContextProperty:(0,I.defineContextMethod)(u,y.CustomerContextKey.globalContext,y.ContextManagerMethod.removeContextProperty,"remove-global-context-property"),clearGlobalContext:(0,I.defineContextMethod)(u,y.CustomerContextKey.globalContext,y.ContextManagerMethod.clearContext,"clear-global-context"),setUser:(0,I.defineContextMethod)(u,y.CustomerContextKey.userContext,y.ContextManagerMethod.setContext,"set-user"),getUser:(0,I.defineContextMethod)(u,y.CustomerContextKey.userContext,y.ContextManagerMethod.getContext,"get-user"),setUserProperty:(0,I.defineContextMethod)(u,y.CustomerContextKey.userContext,y.ContextManagerMethod.setContextProperty,"set-user-property"),removeUserProperty:(0,I.defineContextMethod)(u,y.CustomerContextKey.userContext,y.ContextManagerMethod.removeContextProperty,"remove-user-property"),clearUser:(0,I.defineContextMethod)(u,y.CustomerContextKey.userContext,y.ContextManagerMethod.clearContext,"clear-user"),setAccount:(0,I.defineContextMethod)(u,y.CustomerContextKey.accountContext,y.ContextManagerMethod.setContext,"set-account"),getAccount:(0,I.defineContextMethod)(u,y.CustomerContextKey.accountContext,y.ContextManagerMethod.getContext,"get-account"),setAccountProperty:(0,I.defineContextMethod)(u,y.CustomerContextKey.accountContext,y.ContextManagerMethod.setContextProperty,"set-account-property"),removeAccountProperty:(0,I.defineContextMethod)(u,y.CustomerContextKey.accountContext,y.ContextManagerMethod.removeContextProperty,"remove-account-property"),clearAccount:(0,I.defineContextMethod)(u,y.CustomerContextKey.accountContext,y.ContextManagerMethod.clearContext,"clear-account"),startView:e=>{let t=(0,T.createHandlingStack)("view");(0,h.callMonitored)(()=>{l.startView({..."object"==typeof e?e:{name:e},handlingStack:t}),(0,b.addTelemetryUsage)({feature:"start-view"})})},stopSession:(0,h.monitor)(()=>{l.stopSession(),(0,b.addTelemetryUsage)({feature:"stop-session"})}),addFeatureFlagEvaluation:(0,h.monitor)((e,t)=>{l.addFeatureFlagEvaluation((0,C.sanitize)(e),(0,C.sanitize)(t)),(0,b.addTelemetryUsage)({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:(0,h.monitor)(()=>e.getSessionReplayLink()),startSessionReplayRecording:(0,h.monitor)(t=>
4{e.start(t),(0,b.addTelemetryUsage)({feature:"start-session-replay-recording",force:t&&t.force})}),stopSessionReplayRecording:(0,h.monitor)(()=>e.stop()),addDurationVital:(e,t)=>{let r=(0,T.createHandlingStack)("vital");(0,h.callMonitored)(()=>{(0,b.addTelemetryUsage)({feature:"add-duration-vital"}),l.addDurationVital({id:F(),name:(0,C.sanitize)(e),type:J.DURATION,startClocks:(0,_.timeStampToClocks)(t.startTime),duration:t.duration,context:(0,C.sanitize)(t&&t.context),description:(0,C.sanitize)(t&&t.description),handlingStack:r})})},startDurationVital:(e,t)=>{let r=(0,T.createHandlingStack)("vital");return(0,h.callMonitored)(()=>((0,b.addTelemetryUsage)({feature:"start-duration-vital"}),l.startDurationVital((0,C.sanitize)(e),{context:(0,C.sanitize)(t&&t.context),description:(0,C.sanitize)(t&&t.description),handlingStack:r})))},stopDurationVital:(0,h.monitor)((e,t)=>{(0,b.addTelemetryUsage)({feature:"stop-duration-vital"}),l.stopDurationVital("string"==typeof e?(0,C.sanitize)(e):e,{context:(0,C.sanitize)(t&&t.context),description:(0,C.sanitize)(t&&t.description)})}),startFeatureOperation:(e,t)=>{let r=(0,T.createHandlingStack)("vital");(0,h.callMonitored)(()=>{(0,b.addTelemetryUsage)({feature:"add-operation-step-vital",action_type:"start"}),l.addOperationStepVital(e,"start",{...t,handlingStack:r})})},succeedFeatureOperation:(0,h.monitor)((e,t)=>{(0,b.addTelemetryUsage)({feature:"add-operation-step-vital",action_type:"succeed"}),l.addOperationStepVital(e,"end",t)}),failFeatureOperation:(0,h.monitor)((e,t,r)=>{(0,b.addTelemetryUsage)({feature:"add-operation-step-vital",action_type:"fail"}),l.addOperationStepVital(e,"end",r,t)})});return c}function iO(e,{session:t,viewContext:r,errorType:n}){var i;let o,a,s=t?t.id:"no-session-id",l=[];void 0!==n&&l.push(`error-type=${n}`),r&&(l.push(`seed=${r.id}`),l.push(`from=${r.startClocks.timeStamp}`));let u=(o=(i=e).site,a=i.subdomain||function(e){switch(e.site){case td.INTAKE_SITE_US1:case td.INTAKE_SITE_EU1:return"app";case td.INTAKE_SITE_STAGING:return"dd";default:return}}(i),`https://${a?`${a}.`:""}${o}`),c=`/rum/replay/sessions/${s}`;return`${u}${c}?${l.join("&")}`}function iA(e,t,r,n){let i=(0,ii.createHttpRequest)([e.profilingEndpointBuilder],e=>{t.notify(14,{error:e}),(0,b.addTelemetryDebug)("Error reported to customer",{"error.message":e.message})}),o=r(n);return{async send({event:e,...t}){let r=new FormData,n=(0,nE.jsonStringify)(e);if(!n)throw Error("Failed to serialize event");r.append("event",new Blob([n],{type:"application/json"}),"event.json");let a=n.length;for(let[e,n]of(0,eH.objectEntries)(t)){let t=(0,nE.jsonStringify)(n);if(!t)throw Error("Failed to serialize attachment");let i=await function(e,t){return new Promise(r=>{e.write(t),e.finish(e=>{r(e)})})}(o,t);a+=i.outputBytesCount,r.append(e,new Blob([i.output]),e)}i.send({data:r,bytesCount:a})}}}e.s(["makeRumPublicApi",()=>iw],66824),e.s(["getSessionReplayUrl",()=>iO],44119),e.s(["createFormDataTransport",()=>iA],8445),e.s([],93713)}]);
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.