1"use strict";(self.webpackChunk_uq_global_ec_cnc=self.webpackChunk_uq_global_ec_cnc||[]).push([[3643],{95974:(t,e,n)=>{n.d(e,{$:()=>o});var r=n(63215);function o(t,e){e.silentMultipleInit||r.Vy.error("".concat(t," is already initialized."))}},6202:(t,e,n)=>{n.d(e,{Z:()=>a,m:()=>s});var r=n(90230),o=n(82923),i=n(47231);function s(t){var e=(0,i.kp)({version:"5.16.0",onReady:function(t){t()}},t);return Object.defineProperty(e,"_setDebug",{get:function(){return o.pM},enumerable:!1}),e}function a(t,e,n){var o=t[e];t[e]=n,o&&o.q&&o.q.forEach((function(t){return(0,r.y)(t,"onReady callback threw an error:")()}))}},99813:(t,e,n)=>{n.d(e,{gX:()=>r,lQ:()=>a,q2:()=>s});var r,o=n(82923),i=n(94486);function s(t,e,n,r,o){return a(t,e,[n],r,o)}function a(t,e,n,r,s){var a=void 0===s?{}:s,c=a.once,u=a.capture,l=a.passive,d=(0,o.dm)((function(e){(e.isTrusted||e.__ddIsTrusted||t.allowUntrustedEvents)&&(c&&g(),r(e))})),f=l?{capture:u,passive:l}:u,p=(0,i.W)(e,"addEventListener");function g(){var t=(0,i.W)(e,"removeEventListener");n.forEach((function(n){return t.call(e,n,d,f)}))}return n.forEach((function(t){return p.call(e,t,d,f)})),{stop:g}}!function(t){t.BEFORE_UNLOAD="beforeunload",t.CLICK="click",t.DBL_CLICK="dblclick",t.KEY_DOWN="keydown",t.LOAD="load",t.POP_STATE="popstate",t.SCROLL="scroll",t.TOUCH_START="touchstart",t.TOUCH_END="touchend",t.TOUCH_MOVE="touchmove",t.VISIBILITY_CHANGE="visibilitychange",t.PAGE_SHOW="pageshow",t.FREEZE="freeze",t.RESUME="resume",t.DOM_CONTENT_LOADED="DOMContentLoaded",t.POINTER_DOWN="pointerdown",t.POINTER_UP="pointerup",t.POINTER_CANCEL="pointercancel",t.HASH_CHANGE="hashchange",t.PAGE_HIDE="pagehide",t.MOUSE_DOWN="mousedown",t.MOUSE_UP="mouseup",t.MOUSE_MOVE="mousemove",t.FOCUS="focus",t.BLUR="blur",t.CONTEXT_MENU="contextmenu",t.RESIZE="resize",t.CHANGE="change",t.INPUT="input",t.PLAY="play",t.PAUSE="pause",t.SECURITY_POLICY_VIOLATION="securitypolicyviolation",t.SELECTION_CHANGE="selectionchange",t.STORAGE="storage"}(r||(r={}))},186:(t,e,n)=>{n.d(e,{B9:()=>l,DQ:()=>p,Ri:()=>u,TV:()=>c,Yj:()=>d,z$:()=>f});var r,o,i=n(63215),s=n(73469),a=n(77341);function c(t,e,n,r){var o=new Date;o.setTime(o.getTime()+n);var i="expires=".concat(o.toUTCString()),s=r&&r.crossSite?"none":"strict",a=r&&r.domain?";domain=".concat(r.domain):"",c=r&&r.secure?";secure":"",u=r&&r.partitioned?";partitioned":"";document.cookie="".concat(t,"=").concat(e,";").concat(i,";path=/;samesite=").concat(s).concat(a).concat(c).concat(u)}function u(t){return(0,a.rx)(document.cookie,t)}function l(t){return r||(r=(0,a.it)(document.cookie)),r.get(t)}function d(t,e){c(t,"",0,e)}function f(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="dd_cookie_test_".concat((0,a.lk)()),n="test";c(e,n,s.iW,t);var r=u(e)===n;return d(e,t),r}catch(t){return i.Vy.error(t),!1}}function p(){if(void 0===o){for(var t="dd_site_test_".concat((0,a.lk)()),e=window.location.hostname.split("."),n=e.pop();e.length&&!u(t);)n="".concat(e.pop(),".").concat(n),c(t,"test",s.OY,{domain:n});d(t,{domain:n}),o=n}return o}},64091:(t,e,n)=>{n.d(e,{i:()=>u});var r,o=n(10829),i=n(82923),s=n(1512),a=n(73469),c=n(51637);function u(){return r||(r=new s.c((function(t){if(window.fetch){var e=(0,o.H)(window,"fetch",(function(e){return function(t,e){var n=t.parameters,r=t.onPostCall,o=n[0],s=n[1],u=s&&s.method;void 0===u&&o instanceof Request&&(u=o.method);var l=void 0!==u?String(u).toUpperCase():"GET",d=o instanceof Request?o.url:(0,c.l2)(String(o)),f=(0,a.M8)(),p={state:"start",init:s,input:o,method:l,startClocks:f,url:d};e.notify(p),n[0]=p.input,n[1]=p.init,r((function(t){return function(t,e,n){var r=function(e){var r=n;r.state="resolve","stack"in e||e instanceof Error?(r.status=0,r.isAborted=e instanceof DOMException&&e.code===DOMException.ABORT_ERR,r.error=e):"status"in e&&(r.response=e,r.responseType=e.type,r.status=e.status,r.isAborted=!1),t.notify(r)};e.then((0,i.dm)(r),(0,i.dm)(r))}(e,t,p)}))}(e,t)})).stop;return e}}))),r}},20254:(t,e,n)=>{n.d(e,{Kp:()=>l,hL:()=>u,y5:()=>c});var r=n(11092),o=n(1512),i=n(47231),s=n(90582),a=n(99813),c={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function u(t){return new o.c((function(e){var n=(0,r.sr)(r.R9.PAGEHIDE),o=(0,a.lQ)(t,window,[a.gX.VISIBILITY_CHANGE,a.gX.FREEZE,a.gX.PAGE_HIDE],(function(t){t.type===a.gX.PAGE_HIDE&&n?e.notify({reason:c.PAGEHIDE}):t.type===a.gX.VISIBILITY_CHANGE&&"hidden"===document.visibilityState?e.notify({reason:c.HI
1DDEN}):t.type===a.gX.FREEZE&&e.notify({reason:c.FROZEN})}),{capture:!0}).stop,i=s.l;return n||(i=(0,a.q2)(t,window,a.gX.BEFORE_UNLOAD,(function(){e.notify({reason:c.UNLOADING})})).stop),function(){o(),i()}}))}function l(t){return(0,i.mK)((0,i.KQ)(c),t)}},36069:(t,e,n)=>{n.d(e,{G:()=>d});var r,o=n(10829),i=n(1512),s=n(73469),a=n(51637),c=n(6679),u=n(99813),l=new WeakMap;function d(t){return r||(r=function(t){return new i.c((function(e){var n=(0,o.H)(XMLHttpRequest.prototype,"open",f).stop,r=(0,o.H)(XMLHttpRequest.prototype,"send",(function(n){!function(t,e,n){var r=t.target,i=l.get(r);if(!i)return;var a=i;a.state="start",a.startClocks=(0,s.M8)(),a.isAborted=!1,a.xhr=r;var d=!1,f=(0,o.H)(r,"onreadystatechange",(function(){r.readyState===XMLHttpRequest.DONE&&p()})).stop,p=function(){if(g(),f(),!d){d=!0;var t=i;t.state="complete",t.duration=(0,s.vk)(a.startClocks.timeStamp,(0,s.nx)()),t.status=r.status,n.notify((0,c.yG)(t))}},g=(0,u.q2)(e,r,"loadend",p).stop;n.notify(a)}(n,t,e)})).stop,i=(0,o.H)(XMLHttpRequest.prototype,"abort",p).stop;return function(){n(),r(),i()}}))}(t)),r}function f(t){var e=t.target,n=t.parameters,r=n[0],o=n[1];l.set(e,{state:"open",method:String(r).toUpperCase(),url:(0,a.l2)(String(o))})}function p(t){var e=t.target,n=l.get(e);n&&(n.isAborted=!0)}},74647:(t,e,n)=>{n.d(e,{WA:()=>w,uT:()=>S,hO:()=>C,Sz:()=>E});var r=n(90230),o=n(63215),i=n(11092),s=n(73469),a=n(1613),c=n(884),u=n(6679),l=n(47231),d=n(97474),f=n(57611),p=n(51637),g=n(77341),h=n(62723);function m(t,e,n){var r=function(t,e){var n="/api/v2/".concat(e),r=t.proxy;if("string"==typeof r){var o=(0,p.l2)(r);return function(t){return"".concat(o,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(t)))}}if("function"==typeof r)return function(t){return r({path:n,parameters:t})};var i=function(t,e){var n=e.site,r=void 0===n?h.NW:n,o=e.internalAnalyticsSubdomain;if("logs"===t&&e.usePciIntake&&r===h.NW)return h.$A;if(o&&r===h.NW)return"".concat(o,".").concat(h.NW);if(r===h.TC)return"http-intake.logs.".concat(r);var i=r.split("."),s=i.pop();return"browser-intake-".concat(i.join("-"),".").concat(s)}(e,t);return function(t){return"https://".concat(i).concat(n,"?").concat(t)}}(t,e);return{build:function(o,a){var c=function(t,e,n,r,o){var a=t.clientToken,c=t.internalAnalyticsSubdomain,u=o.retry,l=o.flushReason,d=o.encoding,f=["sdk_version:".concat("5.16.0"),"api:".concat(r)].concat(n);l&&(0,i.sr)(i.R9.COLLECT_FLUSH_REASON)&&f.push("flush_reason:".concat(l));u&&f.push("retry_count:".concat(u.count),"retry_after:".concat(u.lastFailureStatus));var p=["ddsource=browser","ddtags=".concat(encodeURIComponent(f.join(","))),"dd-api-key=".concat(a),"dd-evp-origin-version=".concat(encodeURIComponent("5.16.0")),"dd-evp-origin=browser","dd-request-id=".concat((0,g.lk)())];d&&p.push("dd-evp-encoding=".concat(d));"rum"===e&&p.push("batch_time=".concat((0,s.nx)()));c&&p.reverse();return p.join("&")}(t,e,n,o,a);return r(c)},urlPrefix:r(""),trackType:e}}var v=200;var y=/[^a-z0-9_:./-]/;function b(t,e){var n=v-t.length-1;(e.length>n||y.test(e))&&o.Vy.warn("".concat(t," value doesn't meet tag requirements and will be sanitized"));var r=e.replace(/,/g,"_");return"".concat(t,":").concat(r)}function _(t){var e=t.site||h.NW,n=function(t){var e=t.env,n=t.service,r=t.version,o=t.datacenter,i=[];return e&&i.push(b("env",e)),n&&i.push(b("service",n)),r&&i.push(b("version",r)),o&&i.push(b("datacenter",o)),i}(t),r=function(t,e){return{logsEndpointBuilder:m(t,"logs",e),rumEndpointBuilder:m(t,"rum",e),sessionReplayEndpointBuilder:m(t,"replay",e)}}(t,n),o=function(t,e){var n=(0,l.KQ)(t).map((function(t){return t.urlPrefix}));e===h.NW&&n.push("https://".concat(h.$A,"/"));return n}(r,e),i=function(t,e,n){if(!t.replica)return;var r=(0,l.kp)({},t,{site:h.NW,clientToken:t.replica.clientToken}),o={logsEndpointBuilder:m(r,"logs",n),rumEndpointBuilder:m(r,"rum",n)};return e.push.apply(e,(0,l.KQ)(o).map((function(t){return t.urlPrefix}))),(0,l.kp)({applicationId:t.replica.applicationId},o)}(t,o,n);return(0,l.kp)({isIntakeUrl:function(t){return o.some((function(e){return 0===t.indexOf(e)}))},replica:i,site:e},r)}var w={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"},S={ALL:"all",SAMPLED:"sampled"};function E(t){var e,n,p,g,h;if(t&&t.clientToken)if(void 0===t.sessionSampleRate||(0,a.fp)(t.sessionSampleRate))if(void 0===t.telemetrySampleRate||(0,a.fp)(t.telemetrySampleRate))if(void 0===t.telemetryConfigurationSampleRate||(0,a.fp)(t.telemetryConfigurationSampleRate))if(void 0===t.telemetryUsageSampleRate||(0,a.fp)(t.telemetryUsageSampleRate)){if(void 0===t.trackingConsent||(0,u.Rj)(f.w,t.trackingConsent))return Array.isArray(t.enableExperimentalFeatures)&&(0,i.jH)(t.enableExperimentalFeatures.filter((function(t){return(0,u.Rj)(i.R9,t)}))),(0,l.kp)({beforeSend:t.beforeSend&&(0,r.y)(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:(0,d.nd)(t),sessionSampleRate:null!==(e=t.sessionSampleRate)&&void 0!==e?e:100,telemetrySampleRate:null!==(n=t.telemetrySampleRate)&&void 0!==n?n:20,telemetryConfigurationSampleRate:null!==(p=t.telemetryConfigurationSampleRate)&&void 0!==p?p:5,telemetryUsageSampleRate:null!==(g=t.telemetryUsageSampleRate)&&void 0!==g?g:5,service:t.service,silentMultipleInit:!!t.silentMultipleInit,allowUntrustedEvents:!!t.allowUntrustedEvents,trackingConsent:null!==(h=t.trackingConsent)&&void 0!==h?h:f.w.GRANTED,batchBytesLimit:16*c._m,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*s.OY,batchMessagesLimit:50,messageBytesLimit:256*c._m},_(t));o.Vy.error('Tracking Consent should be either "granted" or "not-granted"')}else o.Vy.error("Telemetry Usage Sample Rate should be a number between 0 and 100");else o.Vy.error("Telemetry Configuration Sample Rate should be a number between 0 and 100");else o.Vy.error("Telemetry Sample Rate should be a number between 0 and 100");else o.Vy.error("Session Sample Rate should be a number between 0 and 100");else o.Vy.error("Client Token is not configured, we will not send any data.")}function C(t){return{session_sample_rate:t.sessionSampleRate,telemetry_sample_rate:t.telemetrySampleRate,telemetry_configuration_sample_rate:t.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:t.telemetryUsageSampleRate,use_before_send:!!t.beforeSend,use_cross_site_session_cookie:t.useCrossSiteSessionCookie,use_partitioned_cross_site_session_cookie:t.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:t.useSecureSessionCookie,use_proxy:!!t.proxy,silent_multiple_init:t.silentMultipleInit,track_session_across_subdomains:t.trackSessionAcrossSubdomains,allow_fallback_to_local_storage:!!t.allowFallbackToLocalStorage,store_contexts_across_pages:!!t.storeContextsAcrossPages,allow_untrusted_events:!!t.allowUntrustedEvents,tracking_consent:t.trackingConsent}}},62723:(t,e,n)=>{n.d(e,{$A:()=>c,Bb:()=>r,NW:()=>i,R8:()=>a,TC:()=>o,dV:()=>s});var r="datad0g.com",o="dd0g-gov.com",i="datadoghq.com",s="datadoghq.eu",a="ddog-gov.com",c="pci.browser-intake-datadoghq.com"},57081:(t,e,n)=>{function r(){var t,e=window.navigator;return{status:e.onLine?"connected":"not_connected",interfaces:e.connection&&e.connection.type?[e.connection.type]:void 0,effective_type:null===(t=e.connection)||void 0===t?void 0:t.effectiveType}}n.d(e,{q:()=>r})},89380:(t,e,n)=>{n.d(e,{l:()=>f});var r=n(87673),o=n(1512),i=n(63215),s=n(82923),a=n(99672),c=n(47231),u=n(16852),l=n(41791),d={};function f(t){var e=t.map((function(t){return d[t]||(d[t]=function(t){return new o.c((function(e){var n=i.JZ[t];return i.JZ[t]=function(){for(var o=[],d=0;d<arguments.length;d++)o[d]=arguments[d];n.apply(console,o);var f=(0,r.uC)();(0,s.um)((function(){e.notify(function(t,e,n){var o,s,d,f=t.map((function(t){return function(t){if("string"==typeof t)return(0,a.a)(t);if(t instanceof Error)return(0,r.NR)((0,l.T)(t));return(0,u.s)((0,a.a)(t),void 0,2)}(t)})).join(" ");if(e===i.bP.error){var p=(0,c.I6)(t,(function(t){return t instanceof Error}));o=p?(0,r.Yn)((0,l.T)(p)):void 0,s=(0,r.Nt)(p),d=p?(0,r.Dr)(p,"console"):void 0}return{api:e,message:f,stack:o,handlingStack:n,fingerprint:s,causes:d}}(o,t,f))}))},function(){i.JZ[t]=n}}))}(t)),d[t]}));return o.F.apply(void 0,e)}},42370:(t,e,n)=>{n.d(e,{D:()=>a});var r=n(78427),o=n(86086),i=n(99672),s=n(1512);function a(t){var e={},n=new s.c,a={getContext:function(){return(0,r.Go)(e)},setContext:function(r){"object"===(0,o.P)(r)?(e=(0,i.a)(r),t.updateCustomerData(e)):a.clearContext(),n.notify()},setContextProperty:function(r,o){e[r]=(0,i.a)(o),t.updateCustomerData(e),n.notify()},removeContextProperty:function(r){delete e[r],t.updateCustomerData(e),n.notify()},clearContext:function(){e={},t.resetCustomerData(),n.notify()},changeObservable:n};return a}},68914:(t,e,n)=>{n.d(e,{qR:()=>d});var r=n(884),o=n(90582),i=n(16852),s=n(63215),a=n(6679),c=3*r._m,u=16*r._m,l=200;function d(t){void 0===t&&(t=2);var e=new Map,n=!1;function o(o){if(void 0===o&&(o=0),!n&&0!==t){var i=2===t?c:u,a=o;e.forEach((function(t){a+=t.getBytesCount()}
1)),a>i&&(!function(t){s.Vy.warn("Customer data exceeds the recommended ".concat(t/r._m,"KiB threshold. More details: https://docs.datadoghq.com/real_user_monitoring/browser/troubleshooting/#customer-data-exceeds-the-recommended-threshold-warning"))}(i),n=!0)}}return{createDetachedTracker:function(){var t=f((function(){return o(t.getBytesCount())}));return t},getOrCreateTracker:function(t){return e.has(t)||e.set(t,f(o)),e.get(t)},setCompressionStatus:function(e){0===t&&(t=e,o())},getCompressionStatus:function(){return t},stop:function(){e.forEach((function(t){return t.stop()})),e.clear()}}}function f(t){var e=0,n=(0,o.n)((function(n){e=(0,r.WW)((0,i.s)(n)),t()}),l),s=n.throttled,c=n.cancel,u=function(){c(),e=0};return{updateCustomerData:function(t){(0,a.RI)(t)?u():s(t)},resetCustomerData:u,getBytesCount:function(){return e},stop:function(){c()}}}},66121:(t,e,n)=>{n.d(e,{Ck:()=>a});var r=n(99813),o=n(78427),i="_dd_c",s=[];function a(t,e,n,a){var c=function(t,e){return"".concat(i,"_").concat(t,"_").concat(e)}(n,a);function u(){var t=localStorage.getItem(c);return null!==t?JSON.parse(t):{}}s.push((0,r.q2)(t,window,r.gX.STORAGE,(function(t){var n=t.key;c===n&&e.setContext(u())}))),e.changeObservable.subscribe((function(){localStorage.setItem(c,JSON.stringify(e.getContext()))})),e.setContext((0,o.kg)(u(),e.getContext()))}},41791:(t,e,n)=>{n.d(e,{T:()=>i,h:()=>h});var r=n(47231),o="?";function i(t){var e=[],n=g(t,"stack"),i=String(t);return n&&(0,r.w1)(n,i)&&(n=n.slice(i.length)),n&&n.split("\n").forEach((function(t){var n=function(t){var e=c.exec(t);if(!e)return;var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=u.exec(e[2]);r&&i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]);return{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||o,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=l.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:o,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=d.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||o,line:+e[3],url:e[2]}}(t)||function(t){var e=f.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=p.exec(e[3]);n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0);return{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||o,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=o),e.push(n))})),{message:g(t,"message"),name:g(t,"name"),stack:e}}var s="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",a="(?::(\\d+))",c=new RegExp("^\\s*at (.*?) ?\\(".concat(s).concat(a,"?").concat(a,"?\\)?\\s*$"),"i"),u=new RegExp("\\((\\S*)".concat(a).concat(a,"\\)"));var l=new RegExp("^\\s*at ?".concat(s).concat(a,"?").concat(a,"??\\s*$"),"i");var d=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var f=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,p=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function g(t,e){if("object"==typeof t&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}function h(t,e,n,r){var o=[{url:e,column:r,line:n}],i=function(t){var e,n,r;"[object String]"==={}.toString.call(t)&&(n=(e=m.exec(t))[1],r=e[2]);return{name:n,message:r}}(t);return{name:i.name,message:i.message,stack:o}}var m=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/},87673:(t,e,n)=>{n.d(e,{$X:()=>f,As:()=>u,Dr:()=>h,NR:()=>p,Nt:()=>l,Yn:()=>d,e6:()=>c,uC:()=>g});var r=n(82923),o=n(99672),i=n(90582),s=n(16852),a=n(41791),c="No stack, consider using an instance of Error";function u(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,a=t.nonErrorPrefix,u=t.source,f=t.handling,p=n instanceof Error,g=function(t,e,n,r){return(null==t?void 0:t.message)&&(null==t?void 0:t.name)?t.message:e?"Empty message":"".concat(n," ").concat((0,s.s)((0,o.a)(r)))}(e,p,a,n),m=function(t,e){if(void 0===e)return!1;if(t)return!0;return e.stack.length>0&&(e.stack.length>1||void 0!==e.stack[0].url)}
1(p,e)?d(e):c,v=p?h(n,u):void 0;return{startClocks:i,source:u,handling:f,handlingStack:r,originalError:n,type:null==e?void 0:e.name,message:g,stack:m,causes:v,fingerprint:l(n)}}function l(t){return t instanceof Error&&"dd_fingerprint"in t?String(t.dd_fingerprint):void 0}function d(t){var e=p(t);return t.stack.forEach((function(t){var n="?"===t.func?"<anonymous>":t.func,r=t.args&&t.args.length>0?"(".concat(t.args.join(", "),")"):"",o=t.line?":".concat(t.line):"",i=t.line&&t.column?":".concat(t.column):"";e+="\n at ".concat(n).concat(r," @ ").concat(t.url).concat(o).concat(i)})),e}function f(t){var e;return null===(e=/@ (.+)/.exec(t))||void 0===e?void 0:e[1]}function p(t){return"".concat(t.name||"Error",": ").concat(t.message)}function g(){var t,e=new Error;if(!e.stack)try{throw e}catch(t){(0,i.l)()}return(0,r.um)((function(){var n=(0,a.T)(e);n.stack=n.stack.slice(2),t=d(n)})),t}function h(t,e){for(var n=t,r=[];(null==n?void 0:n.cause)instanceof Error&&r.length<10;){var o=(0,a.T)(n.cause);r.push({message:n.cause.message,source:e,type:null==o?void 0:o.name,stack:o&&d(o)}),n=n.cause}return r.length?r:void 0}},85794:(t,e,n)=>{n.d(e,{g:()=>r});var r={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"}},54246:(t,e,n)=>{n.d(e,{mj:()=>c});var r=n(10829),o=n(73469),i=n(41791),s=n(87673),a=n(85794);function c(t){var e,n=function(e,n){var r=(0,s.As)({stackTrace:e,originalError:n,startClocks:(0,o.M8)(),nonErrorPrefix:"Uncaught",source:a.g.SOURCE,handling:"unhandled"});t.notify(r)},c=(e=n,(0,r.H)(window,"onerror",(function(t){var n,r=t.parameters,o=r[0],s=r[1],a=r[2],c=r[3],u=r[4];n=u instanceof Error?(0,i.T)(u):(0,i.h)(o,s,a,c),e(n,null!=u?u:o)}))).stop,u=function(t){return(0,r.H)(window,"onunhandledrejection",(function(e){var n=e.parameters[0].reason||"Empty reason",r=(0,i.T)(n);t(r,n)}))}(n).stop;return{stop:function(){c(),u()}}}},18283:(t,e,n)=>{n.d(e,{$:()=>s});var r=n(49336),o=n(73469),i=n(85794);function s(t,e,n){var s=0,a=!1;return{isLimitReached:function(){if(0===s&&(0,r.wg)((function(){s=0}),o.iW),(s+=1)<=e||a)return a=!1,!1;if(s===e+1){a=!0;try{n({message:"Reached max number of ".concat(t,"s by minute: ").concat(e),source:i.g.AGENT,startClocks:(0,o.M8)()})}finally{a=!1}
1}return!0}}}},38346:(t,e,n)=>{n.d(e,{V:()=>u,u:()=>l});var r=n(87673),o=n(82923),i=n(1512),s=n(99813),a=n(47231),c=n(77341),u={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function l(t,e){var n=[];(0,a.mK)(e,u.cspViolation)&&n.push(function(t){return new i.c((function(e){return(0,s.q2)(t,document,s.gX.SECURITY_POLICY_VIOLATION,(function(t){e.notify(function(t){var e=u.cspViolation,n="'".concat(t.blockedURI,"' blocked by '").concat(t.effectiveDirective,"' directive");return{type:u.cspViolation,subtype:t.effectiveDirective,message:"".concat(e,": ").concat(n),stack:d(t.effectiveDirective,t.originalPolicy?"".concat(n,' of the policy "').concat((0,c._R)(t.originalPolicy,100,"..."),'"'):"no policy",t.sourceFile,t.lineNumber,t.columnNumber),originalReport:t}}(t))})).stop}))}(t));var r=e.filter((function(t){return t!==u.cspViolation}));return r.length&&n.push(function(t){return new i.c((function(e){if(window.ReportingObserver){var n=(0,o.dm)((function(t,n){return t.forEach((function(t){e.notify(function(t){var e=t.type,n=t.body;return{type:e,subtype:n.id,message:"".concat(e,": ").concat(n.message),originalReport:t,stack:d(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)}}(t))}))})),r=new window.ReportingObserver(n,{types:t,buffered:!0});return r.observe(),function(){r.disconnect()}}}))}(r)),i.F.apply(void 0,n)}function d(t,e,n,o,i){return n?(0,r.Yn)({name:t,message:e,stack:[{func:"?",url:n,line:null!=o?o:void 0,column:null!=i?i:void 0}]}):void 0}},35372:(t,e,n)=>{n.d(e,{A:()=>o,H:()=>i});var r=n(73469),o=4*r.MA,i=15*r.iW},46614:(t,e,n)=>{n.d(e,{ox:()=>p});var r=n(1512),o=n(99990),i=n(73469),s=n(99813),a=n(49336),c=n(35372),u=n(97474),l=i.iW,d=c.A,f=[];function p(t,e,n,c){var p=new r.c,g=new r.c,h=(0,u.oC)(t.sessionStoreStrategyType,e,n);f.push((function(){return h.stop()}));var m=new o.W(d);function v(){return{id:h.getSession().id,trackingType:h.getSession()[e]}}return f.push((function(){return m.stop()})),h.renewObservable.subscribe((function(){m.add(v(),(0,i.$S)()),p.notify()})),h.expireObservable.subscribe((function(){g.notify(),m.closeActive((0,i.$S)())})),h.expandOrRenewSession(),m.add(v(),(0,i.Oc)().relative),c.observable.subscribe((function(){c.isGranted()?h.expandOrRenewSession():h.expire()})),function(t,e){var n=(0,s.lQ)(t,window,[s.gX.CLICK,s.gX.TOUCH_START,s.gX.KEY_DOWN,s.gX.SCROLL],e,{capture:!0,passive:!0}).stop;f.push(n)}(t,(function(){c.isGranted()&&h.expandOrRenewSession()})),function(t,e){var n=function(){"visible"===document.visibilityState&&e()},r=(0,s.q2)(t,document,s.gX.VISIBILITY_CHANGE,n).stop;f.push(r);var o=(0,a.yb)(n,l);f.push((function(){(0,a.vG)(o)}))}(t,(function(){return h.expandSession()})),{findActiveSession:function(t){return m.find(t)},renewObservable:p,expireObservable:g,expire:h.expire}}},97474:(t,e,n)=>{n.d(e,{nd:()=>z,oC:()=>B});var r=n(49336),o=n(1512),i=n(73469),s=n(90582),a=n(77341),c=n(35372),u=n(71432),l=n(186),d="_dd_s",f=n(6679),p=n(47231),g=/^([a-z]+)=([a-z0-9-]+)$/,h="&";function m(t){return(0,f.RI)(t)}function v(t){t.expire=String((0,i.x3)()+c.H)}function y(t){return(0,p.WP)(t).map((function(t){var e=t[0],n=t[1];return"".concat(e,"=").concat(n)})).join(h)}function b(t){var e={};return function(t){return!!t&&(-1!==t.indexOf(h)||g.test(t))}(t)&&t.split(h).forEach((function(t){var n=g.exec(t);if(null!==n){var r=n[1],o=n[2];e[r]=o}})),e}var _="_dd",w="_dd_r",S="_dd_l",E="rum",C="logs";function k(t){var e=function(t){var e={};e.secure=!!t.useSecureSessionCookie||!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,e.crossSite=!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,e.partitioned=!!t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(e.domain=(0,l.DQ)());return e}(t);return(0,l.z$)(e)?{type:"Cookie",cookieOptions:e}:void 0}function T(t){var e,n={isLockEnabled:(0,u.F2)(),persistSession:(e=t,function(t){(0,l.TV)(d,y(t),c.H,e)}),retrieveSession:x,clearSession:A(t)};return function(t){if(!(0,l.B9)(d)){var e=(0,l.B9)(_),n=(0,l.B9)(w),r=(0,l.B9)(S),o={};e&&(o.id=e),r&&/^[01]$/.test(r)&&(o[C]=r),n&&/^[012]$/.test(n)&&(o[E]=n),m(o)||(v(o),t.persistSession(o))}}(n),n}function x(){return b((0,l.Ri)(d))}function A(t){return function(){(0,l.Yj)(d,t)}}var R="_dd_test_";function O(t){localStorage.setItem(d,y(t))}function I(){return b(localStorage.getItem(d))}function N(){localStorage.removeItem(d)}var L,M=10,D=100,P=[];function U(t,e,n){var r;void 0===n&&(n=0);var o=e.isLockEnabled,i=e.retrieveSession,s=e.persistSession,c=e.clearSession;if(L||(L=t),t===L)if(o&&n>=D)$(e);else{var u,l=i();if(o){if(l.lock)return void V(t,e,n);if(u=(0,a.lk)(),l.lock=u,s(l),(l=i()).lock!==u)return void V(t,e,n)}var d=t.process(l);if(o&&(l=i()).lock!==u)V(t,e,n);
1else{if(d&&(m(d)?c():(v(d),s(d))),o&&(!d||!m(d))){if((l=i()).lock!==u)return void V(t,e,n);delete l.lock,s(l),d=l}null===(r=t.after)||void 0===r||r.call(t,d||l),$(e)}}else P.push(t)}function V(t,e,n){(0,r.wg)((function(){U(t,e,n+1)}),M)}function $(t){L=void 0;var e=P.shift();e&&U(e,t)}var F=i.OY;function z(t){var e=k(t);return!e&&t.allowFallbackToLocalStorage&&(e=function(){try{var t=(0,a.lk)(),e="".concat(R).concat(t);localStorage.setItem(e,t);var n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:"LocalStorage"}:void 0}catch(t){return}}()),e}function B(t,e,n){var u=new o.c,l=new o.c,d="Cookie"===t.type?T(t.cookieOptions):{isLockEnabled:!1,persistSession:O,retrieveSession:I,clearSession:N},f=d.clearSession,p=d.retrieveSession,g=(0,r.yb)((function(){U({process:function(t){return w(t)?void 0:{}},after:b},d)}),F),h=function(){var t=p();if(w(t))return t;return{}}(),m=(0,s.n)((function(){var t;U({process:function(r){var o=b(r);return t=function(t){var r=n(t[e]),o=r.trackingType,s=r.isTracked;t[e]=o,s&&!t.id&&(t.id=(0,a.lk)(),t.created=String((0,i.x3)()));return s}(o),o},after:function(e){t&&!_()&&function(t){h=t,u.notify()}(e),h=e}},d)}),F),v=m.throttled,y=m.cancel;function b(t){return w(t)||(t={}),_()&&(!function(t){return h.id!==t.id||h[e]!==t[e]}(t)?h=t:(h={},l.notify())),t}function _(){return void 0!==h[e]}function w(t){return(void 0===t.created||(0,i.x3)()-Number(t.created)<c.A)&&(void 0===t.expire||(0,i.x3)()<Number(t.expire))}return{expandOrRenewSession:v,expandSession:function(){U({process:function(t){return _()?b(t):void 0}},d)},getSession:function(){return h},renewObservable:u,expireObservable:l,expire:function(){y(),f(),b({})},stop:function(){(0,r.vG)(g)}}}},70135:(t,e,n)=>{n.d(e,{X6:()=>u,aj:()=>c,ao:()=>a});var r=n(186),o="datadog-synthetics-public-id",i="datadog-synthetics-result-id",s="datadog-synthetics-injects-rum";function a(){return Boolean(window._DATADOG_SYNTHETICS_INJECTS_RUM||(0,r.B9)(s))}function c(){var t=window._DATADOG_SYNTHETICS_PUBLIC_ID||(0,r.B9)(o);return"string"==typeof t?t:void 0}function u(){var t=window._DATADOG_SYNTHETICS_RESULT_ID||(0,r.B9)(i);return"string"==typeof t?t:void 0}},98233:(t,e,n)=>{n.d(e,{Rr:()=>T,A2:()=>C,VJ:()=>k,Q6:()=>x,Wb:()=>E,a5:()=>S});var r,o=n(63215),i=n(87673),s=n(11092),a=n(62723),c=n(1512),u=n(73469),l=n(82923),d=n(8897),f=n(47231),p=n(1613),g=n(16852),h=n(78427),m=n(41791),v=n(57081),y={log:"log",configuration:"configuration",usage:"usage"},b=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],_=[a.R8],w={maxEventsPerPage:0,sentEventCount:0};function S(t,e){var n,o,i=new c.c,a=!(0,f.mK)(_,e.site)&&(0,p.ic)(e.telemetrySampleRate),g=((n={})[y.log]=a,n[y.configuration]=a&&(0,p.ic)(e.telemetryConfigurationSampleRate),n[y.usage]=a&&(0,p.ic)(e.telemetryUsageSampleRate),n),m={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return r=function(e){if(g[e.type]){var n=function(t,e,n){return(0,h.kg)({type:"telemetry",date:(0,u.nx
1)(),service:t,version:"5.16.0",source:"browser",_dd:{format_version:2},telemetry:(0,h.kg)(e,{runtime_env:n,connectivity:(0,v.q)()}),experimental_features:(0,f.A6)((0,s.q7)())},void 0!==o?o():{})}(t,e,m);i.notify(n),(0,d.b)("telemetry",n)}},(0,l.Bd)(k),(0,f.kp)(w,{maxEventsPerPage:e.maxTelemetryEventsPerPage,sentEventCount:0}),{setContextProvider:function(t){o=t},observable:i,enabled:a}}function E(t){return t.site===a.Bb}function C(t,e){(0,l.oO)(o.bP.debug,t,e),A((0,f.kp)({type:y.log,message:t,status:"debug"},e))}function k(t,e){A((0,f.kp)({type:y.log,status:"error"},function(t){if(t instanceof Error){var e=(0,m.T)(t);return{error:{kind:e.name,stack:(0,i.Yn)(R(e))},message:e.message}}return{error:{stack:i.e6},message:"".concat("Uncaught"," ").concat((0,g.s)(t))}}(t),e))}function T(t){A({type:y.configuration,configuration:t})}function x(t){A({type:y.usage,usage:t})}function A(t){r&&w.sentEventCount<w.maxEventsPerPage&&(w.sentEventCount+=1,r(t))}function R(t){return t.stack=t.stack.filter((function(t){return!t.url||b.some((function(e){return(0,f.w1)(t.url,e)}))}
1)),t}},57611:(t,e,n)=>{n.d(e,{D:()=>i,w:()=>o});var r=n(1512),o={GRANTED:"granted",NOT_GRANTED:"not-granted"};function i(t){var e=new r.c;return{tryToInit:function(e){t||(t=e)},update:function(n){t=n,e.notify()},isGranted:function(){return t===o.GRANTED},observable:e}}},66793:(t,e,n)=>{n.d(e,{O:()=>a,x:()=>s});var r=n(63215),o=n(86086),i=n(47231);function s(t){var e=(0,i.kp)({},t);return["id","name","email"].forEach((function(t){t in e&&(e[t]=String(e[t]))})),e}function a(t){var e="object"===(0,o.P)(t);return e||r.Vy.error("Unsupported user:",t),e}},29115:(t,e,n)=>{n.d(e,{D:()=>r});var r=function(){function t(){this.callbacks={}}return t.prototype.notify=function(t,e){var n=this.callbacks[t];n&&n.forEach((function(t){return t(e)}))},t.prototype.subscribe=function(t,e){var n=this;return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),{unsubscribe:function(){n.callbacks[t]=n.callbacks[t].filter((function(t){return e!==t}))}}},t}()},46858:(t,e,n)=>{n.d(e,{G:()=>o});var r=n(47833),o=function(){function t(){this.buffer=[]}return t.prototype.add=function(t){this.buffer.push(t)>500&&this.buffer.splice(0,1)},t.prototype.remove=function(t){(0,r.A)(this.buffer,t)},t.prototype.drain=function(t){this.buffer.forEach((function(e){return e(t)})),this.buffer.length=0},t}()},90230:(t,e,n)=>{n.d(e,{y:()=>o});var r=n(63215);function o(t,e){return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];try{return t.apply(void 0,n)}catch(t){r.Vy.error(e,t)}}}},63215:(t,e,n)=>{n.d(e,{JZ:()=>o,Vy:()=>a,Z9:()=>i,bP:()=>r});var r={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},o=console,i={};Object.keys(r).forEach((function(t){i[t]=o[t]}));var s="Datadog Browser SDK:",a={debug:i.debug.bind(o,s),log:i.log.bind(o,s),info:i.info.bind(o,s),warn:i.warn.bind(o,s),error:i.error.bind(o,s)}},1225:(t,e,n)=>{n.d(e,{N:()=>o});var r=n(884);function o(){var t="",e=0;return{isAsync:!1,get isEmpty(){return!t},write:function(n,o){var i=(0,r.WW)(n);e+=i,t+=n,o&&o(i)},finish:function(t){t(this.finishSync())},finishSync:function(){var n={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:""};return t="",e=0,n},estimateEncodedBytesCount:function(t){return t.length}}}},11092:(t,e,n)=>{var r;n.d(e,{R9:()=>r,jH:()=>i,q7:()=>a,sr:()=>s}),function(t){t.PAGEHIDE="pagehide",t.FEATURE_FLAGS="feature_flags",t.RESOURCE_PAGE_STATES="resource_page_states",t.COLLECT_FLUSH_REASON="collect_flush_reason",t.ZERO_LCP_TELEMETRY="zero_lcp_telemetry",t.DISABLE_REPLAY_INLINE_CSS="disable_replay_inline_css",t.WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",t.CUSTOM_VITALS="custom_vitals",t.TOLERANT_RESOURCE_TIMINGS="tolerant_resource_timings"}(r||(r={}));var o=new Set;function i(t){t.forEach((function(t){o.add(t)}))}function s(t){return o.has(t)}function a(){return o}},50729:(t,e,n)=>{function r(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var t=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof t&&(t="object"==typeof self?self:"object"==typeof window?window:{}),t}n.d(e,{V:()=>r})},94486:(t,e,n)=>{n.d(e,{W:()=>o});var r=n(50729);function o(t,e){var n,o=(0,r.V)();return o.Zone&&"function"==typeof o.Zone.__symbol__&&(n=t[o.Zone.__symbol__(e)]),n||(n=t[e]),n}},10829:(t,e,n)=>{n.d(e,{H:()=>a,t:()=>c});var r=n(49336),o=n(82923),i=n(90582),s=n(47231);function a(t,e,n){var r=t[e];if("function"!=typeof r){if(!(0,s.w1)(e,"on"))return{stop:i.l};r=i.l}var a=function(t,e){return function(){var n,r=(0,s.A6)(arguments);(0,o.um)(e,null,[{target:this,parameters:r,onPostCall:function(t){n=t}}]);var i=t.apply(this,r);return n&&(0,o.um)(n,null,[i]),i}}(r,n),c=function(){if("function"==typeof a)return a.apply(this,arguments)};return t[e]=c,{stop:function(){t[e]===c?t[e]=r:a=r}}}function c(t,e,n){var o=Object.getOwnPropertyDescriptor(t,e);if(!o||!o.set||!o.configurable)return{stop:i.l};var s=i.l,a=function(t,e){(0,r.wg)((function(){a!==s&&n(t,e)}),0)},c=function(t){o.set.call(this,t),a(this,t)};return Object.defineProperty(t,e,{set:c}),{stop:function(){var n;(null===(n=Object.getOwnPropertyDescriptor(t,e))||void 0===n?void 0:n.set)===c&&Object.defineProperty(t,e,o),a=s}}}},78427:(t,e,n)=>{n.d(e,{Go:()=>i,kg:()=>s});var r=n(86086);function o(t,e,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var t=new WeakSet;return{hasAlreadyBeenSeen:function(e){var n=t.has(e);return n||t.add(e),n}}}var e=[];return{hasAlreadyBeenSeen:function(t){var n=e.indexOf(t)>=0;return n||e.push(t),n}}}()),void 0===e)return t;if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var i=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return new RegExp(e.source,i)}if(!n.hasAlreadyBeenSeen(e)){if(Array.isArray(e)){for(var s=Array.isArray(t)?t:[],a=0;a<e.length;++a)s[a]=o(s[a],e[a],n);return s}var c="object"===(0,r.P)(t)?t:{};for(var u in e)Object.prototype.hasOwnProperty.call(e,u)&&(c[u]=o(c[u],e[u],n));return c}}function i(t){return o(void 0,t)}function s(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r=0,i=e;r<i.length;r++){var s=i[r];null!=s&&(t=o(t,s))}return t}},82923:(t,e,n)=>{n.d(e,{Bd:()=>a,Ed:()=>u,dm:()=>l,oO:()=>f,pM:()=>c,um:()=>d});var r,o=n(63215),i=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},s=!1;function a(t){r=t}function c(t){s=t}function u(t,e,n){var o=n.value;n.value=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(r?l(o):o).apply(this,t)}}function l(t){return function(){return d(t,this,arguments)}}function d(t,e,n){try{return t.apply(e,n)}catch(t){if(f(t),r)try{r(t)}catch(t){f(t)}}}function f(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];s&&o.Vy.error.apply(o.Vy,i(["[MONITOR]"],t,!1))}},1512:(t,e,n)=>{n.d(e,{F:()=>o,c:()=>r});var r=function(){function t(t){this.onFirstSubscribe=t,this.observers=[]}return t.prototype.subscribe=function(t){var e=this;return!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),this.observers.push(t),{unsubscribe:function(){e.observers=e.observers.filter((function(e){return t!==e})),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}}
1,t.prototype.notify=function(t){this.observers.forEach((function(e){return e(t)}))},t}();function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new r((function(e){var n=t.map((function(t){return t.subscribe((function(t){return e.notify(t)}))}));return function(){return n.forEach((function(t){return t.unsubscribe()}))}}))}},66938:(t,e,n)=>{n.d(e,{_:()=>i});var r=n(82923),o=n(90582);function i(t,e,n){var i=t.getReader(),s=[],a=0;function c(){var t,r;if(i.cancel().catch(o.l),n.collectStreamBody){var c;if(1===s.length)c=s[0];else{c=new Uint8Array(a);var u=0;s.forEach((function(t){c.set(t,u),u+=t.length}))}t=c.slice(0,n.bytesLimit),r=c.length>n.bytesLimit}e(void 0,t,r)}!function t(){i.read().then((0,r.dm)((function(e){e.done?c():(n.collectStreamBody&&s.push(e.value),(a+=e.value.length)>n.bytesLimit?c():t())})),(0,r.dm)((function(t){return e(t)})))}()}},8897:(t,e,n)=>{function r(t,e){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}n.d(e,{b:()=>r})},16852:(t,e,n)=>{n.d(e,{M:()=>i,s:()=>o});var r=n(90582);function o(t,e,n){if("object"!=typeof t||null===t)return JSON.stringify(t);var r=i(Object.prototype),o=i(Array.prototype),s=i(Object.getPrototypeOf(t)),a=i(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),o(),s(),a()}}function i(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):r.l}},99672:(t,e,n)=>{n.d(e,{a:()=>u});var r=n(63215),o=n(884),i=n(16852),s=220*o._m,a="$",c=3;function u(t,e){var n;void 0===e&&(e=s);var r=(0,i.M)(Object.prototype),o=(0,i.M)(Array.prototype),u=[],f=new WeakMap,p=l(t,a,void 0,u,f),g=(null===(n=JSON.stringify(p))||void 0===n?void 0:n.length)||0;if(!(g>e)){for(;u.length>0&&g<e;){var h=u.shift(),m=0;if(Array.isArray(h.source))for(var v=0;v<h.source.length;v++){if(g+=void 0!==(y=l(h.source[v],h.path,v,u,f))?JSON.stringify(y).length:4,g+=m,m=1,g>e){d(e,"truncated",t);break}h.target[v]=y}else for(var v in h.source)if(Object.prototype.hasOwnProperty.call(h.source,v)){var y;if(void 0!==(y=l(h.source[v],h.path,v,u,f))&&(g+=JSON.stringify(y).length+m+v.length+c,m=1),g>e){d(e,"truncated",t);break}h.target[v]=y}}return r(),o(),p}d(e,"discarded",t)}function l(t,e,n,r,o){var i=function(t){var e=t;if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(t){}return t}(t);if(!i||"object"!=typeof i)return function(t){if("bigint"==typeof t)return"[BigInt] ".concat(t.toString());if("function"==typeof t)return"[Function] ".concat(t.name||"unknown");if("symbol"==typeof t)return"[Symbol] ".concat(t.description||t.toString());return t}(i);var s=function(t){try{if(t instanceof Event)return{isTrusted:t.isTrusted};var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"[".concat(e[1],"]")}catch(t){}return"[Unserializable]"}(i);if("[Object]"!==s&&"[Array]"!==s&&"[Error]"!==s)return s;var a=t;if(o.has(a))return"[Reference seen at ".concat(o.get(a),"]");var c=void 0!==n?"".concat(e,".").concat(n):e,u=Array.isArray(i)?[]:{};return o.set(a,c),r.push({source:i,target:u,path:c}),u}function d(t,e,n){r.Vy.warn("The data provided has been ".concat(e," as it is over the limit of ").concat(t," characters:"),n)}},49336:(t,e,n)=>{n.d(e,{DJ:()=>a,vG:()=>u,wg:()=>s,yb:()=>c});var r=n(94486),o=n(82923),i=n(50729);function s(t,e){return(0,r.W)((0,i.V)(),"setTimeout")((0,o.dm)(t),e)}function a(t){(0,r.W)((0,i.V)(),"clearTimeout")(t)}function c(t,e){return(0,r.W)((0,i.V)(),"setInterval")((0,o.dm)(t),e)}function u(t){(0,r.W)((0,i.V)(),"clearInterval")(t)}},47833:(t,e,n)=>{n.d(e,{A:()=>i,R:()=>o});var r=n(47231);function o(t){var e=new Set;return t.forEach((function(t){return e.add(t)})),(0,r.A6)(e)}function i(t,e){var n=t.indexOf(e);n>=0&&t.splice(n,1)}},71432:(t,e,n)=>{function r(){return 0===a()}function o(){return 1===a()}function i(){return 2===a()}var s;function a(){return null!=s?s:s=function(t){var e;void 0===t&&(t=window);var n=t.navigator.userAgent;if(t.chrome||/HeadlessChrome/.test(n))return 1;if(0===(null===(e=t.navigator.vendor)||void 0===e?void 0:e.indexOf("Apple"))||/safari/i.test(n)&&!/chrome|android/i.test(n))return 2;if(t.document.documentMode)return 0;return 3}()}n.d(e,{F2:()=>
1o,lT:()=>r,nr:()=>i})},884:(t,e,n)=>{n.d(e,{WW:()=>s,_m:()=>r,iH:()=>o,wh:()=>a});var r=1024,o=1024*r,i=/[^\u0000-\u007F]/;function s(t){return i.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length}function a(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),n=new Uint8Array(e),r=0,o=0,i=t;o<i.length;o++){var s=i[o];n.set(s,r),r+=s.length}return n}},90582:(t,e,n)=>{n.d(e,{l:()=>i,n:()=>o});var r=n(49336);function o(t,e,n){var o,i,s=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,c=!1;return{throttled:function(){for(var n=[],u=0;u<arguments.length;u++)n[u]=arguments[u];c?o=n:(s?t.apply(void 0,n):o=n,c=!0,i=(0,r.wg)((function(){a&&o&&t.apply(void 0,o),c=!1,o=void 0}),e))},cancel:function(){(0,r.DJ)(i),c=!1,o=void 0}}}function i(){}},1613:(t,e,n)=>{function r(t){return 0!==t&&100*Math.random()<=t}function o(t,e){return+t.toFixed(e)}function i(t){return s(t)&&t>=0&&t<=100}function s(t){return"number"==typeof t}n.d(e,{Et:()=>s,LI:()=>o,fp:()=>i,ic:()=>r})},6679:(t,e,n)=>{n.d(e,{LG:()=>a,RI:()=>s,Rj:()=>i,yG:()=>o});var r=n(47231);function o(t){return(0,r.kp)({},t)}function i(t,e){return Object.keys(t).some((function(n){return t[n]===e}))}function s(t){return 0===Object.keys(t).length}function a(t,e){for(var n={},r=0,o=Object.keys(t);r<o.length;r++){var i=o[r];n[i]=e(t[i])}return n}},47231:(t,e,n)=>{function r(t,e){return-1!==t.indexOf(e)}function o(t){if(Array.from)return Array.from(t);var e=[];if(t instanceof Set)t.forEach((function(t){return e.push(t)}));else for(var n=0;n<t.length;n++)e.push(t[n]);return e}function i(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n))return r}}function s(t,e){for(var n=t.length-1;n>=0;n-=1){var r=t[n];if(e(r,n,t))return r}}function a(t,e){Array.prototype.forEach.call(t,e)}function c(t){return Object.keys(t).map((function(e){return t[e]}))}function u(t){return Object.keys(t).map((function(e){return[e,t[e]]}))}function l(t,e){return t.slice(0,e.length)===e}function d(t,e){return t.slice(-e.length)===e}function f(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.forEach((function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}n.d(e,{A6:()=>o,I6:()=>i,KQ:()=>c,Uk:()=>s,WP:()=>u,d5:()=>d,jJ:()=>a,kp:()=>f,mK:()=>r,w1:()=>l})},99719:(t,e,n)=>{function r(t){return t>=500}function o(t){try{return t.clone()}catch(t){return}}n.d(e,{G:()=>r,i:()=>o})},77341:(t,e,n)=>{function r(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,r)}n.d(e,{_R:()=>a,it:()=>s,lk:()=>r,rx:()=>i});var o=/([\w-]+)\s*=\s*([^;]+)/g;function i(t,e){for(o.lastIndex=0;;){var n=o.exec(t);if(!n)break;if(n[1]===e)return n[2]}}function s(t){var e=new Map;for(o.lastIndex=0;;){var n=o.exec(t);if(!n)break;e.set(n[1],n[2])}return e}function a(t,e,n){void 0===n&&(n="");var r=t.charCodeAt(e-1),o=r>=55296&&r<=56319?e+1:e;return t.length<=o?t:"".concat(t.slice(0,o)).concat(n)}},73469:(t,e,n)=>{n.d(e,{$S:()=>m,FR:()=>u,Gw:()=>_,M8:()=>v,MA:()=>a,OY:()=>i,Oc:()=>y,TP:()=>f,Zj:()=>p,gs:()=>w,iW:()=>s,jR:()=>l,nx:()=>h,pu:()=>S,vk:()=>b,x3:()=>g});var r,o=n(1613),i=1e3,s=60*i,a=60*s,c=365*(24*a);function u(t){return{relative:t,timeStamp:d(t)}}function l(t){return{relative:w(t),timeStamp:t}}function d(t){var e=g()-performance.now();return e>E()?Math.round(_(e,t)):function(t){return Math.round(_(E(),t))}(t)}function f(){return Math.round(g()-_(E(),performance.now()))}function p(t){return(0,o.Et)(t)?(0,o.LI)(1e6*t,0):t}function g(){return(new Date).getTime()}function h(){return g()}function m(){return performance.now()}function v(){return{relative:m(),timeStamp:h()}}function y(){return{relative:0,timeStamp:E()}}function b(t,e){return e-t}function _(t,e){return t+e}function w(t){return t-E()}function S(t){return t<c}function E(){return void 0===r&&(r=performance.timing.navigationStart),r}},86086:(t,e,n)=>{function r(t){return null===t?"null":Array.isArray(t)?"array":typeof t}n.d(e,{P:()=>r})},51637:(t,e,n)=>{n.d(e,{AY:()=>i,L2:()=>s,c$:()=>a,l2:()=>o});var r=n(16852);function o(t){return a(t,location.href).href}function i(t){try{return!!a(t)}catch(t){return!1}}function s(t){var e=a(t).pathname;return"/"===e[0]?e:"/".concat(e)}function a(t,e){var n=function(){if(void 0===c)try{var t=new u("http://test/path");c="http://test/path"===t.href}catch(t){c=!1}return c?u:void 0}();if(n)try{return void 0!==e?new n(t,e):new n(t)}catch(n){throw new Error("Failed to construct URL: ".concat(String(n)," ").concat((0,r.s)({url:t,base:e})))}if(void 0===e&&!/:/.test(t))throw new Error("Invalid URL: '".concat(t,"'"));var o=document,i=o.createElement("a");if(void 0!==e){var s=(o=document.implementation.createHTMLDocument("")).createElement("base");s.href=e,o.head.appendChild(s),o.body.appendChild(i)}return i.href=t,i}var c,u=URL},99990:(t,e,n)=>{n.d(e,{W:()=>c});var r=n(49336),o=n(47833),i=n(73469),s=1/0,a=i.iW,c=function(){function t(t,e){var n=this;this.expireDelay=t,this.maxEntries=e,this.entries=[],this.clearOldValuesInterval=(0,r.yb)((function(){return n.clearOldValues()}),a)}return t.prototype.add=function(t,e){var n=this,r={value:t,startTime:e,endTime:s,remove:function(){(0,o.A)(n.entries,r)},close:function(t){r.endTime=t}};return this.maxEntries&&this.entries.length>=this.maxEntries&&this.entries.pop(),this.entries.unshift(r),r},t.prototype.find=function(t){void 0===t&&(t=s);for(var e=0,n=this.entries;
1e<n.length;e++){var r=n[e];if(r.startTime<=t){if(t<=r.endTime)return r.value;break}}},t.prototype.closeActive=function(t){var e=this.entries[0];e&&e.endTime===s&&e.close(t)},t.prototype.findAll=function(t,e){void 0===t&&(t=s),void 0===e&&(e=0);var n=(0,i.Gw)(t,e);return this.entries.filter((function(e){return e.startTime<=n&&t<=e.endTime})).map((function(t){return t.value}))},t.prototype.reset=function(){this.entries=[]},t.prototype.stop=function(){(0,r.vG)(this.clearOldValuesInterval)},t.prototype.clearOldValues=function(){for(var t=(0,i.$S)()-this.expireDelay;this.entries.length>0&&this.entries[this.entries.length-1].endTime<t;)this.entries.pop()},t}()},6874:(t,e,n)=>{n.d(e,{Ww:()=>s,Y9:()=>i,d0:()=>a});var r=n(47231),o=n(50729);function i(){var t=(0,o.V)().DatadogEventBridge;if(t)return{getCapabilities:function(){var e;return JSON.parse((null===(e=t.getCapabilities)||void 0===e?void 0:e.call(t))||"[]")},getPrivacyLevel:function(){var e;return null===(e=t.getPrivacyLevel)||void 0===e?void 0:e.call(t)},getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts())},send:function(e,n,r){var o=r?{id:r}:void 0;t.send(JSON.stringify({eventType:e,event:n,view:o}))}}}function s(t){var e=i();return!!e&&(0,r.mK)(e.getCapabilities(),t)}function a(t){var e;void 0===t&&(t=null===(e=(0,o.V)().location)||void 0===e?void 0:e.hostname);var n=i();return!!n&&n.getAllowedWebViewHosts().some((function(e){return t===e||(0,r.d5)(t,".".concat(e))}))}},34716:(t,e,n)=>{n.d(e,{sA:()=>w});var r=n(98233),o=n(82923),i=n(99813),s=n(49336),a=n(73469),c=n(884),u=n(99719),l=n(85794),d=80*c._m,f=32,p=3*c.iH,g=a.iW,h=a.OY;function m(t,e,n,r,o){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?y(t,e,n,{onSuccess:function(){return b(0,e,n,r,o)},onFailure:function(){e.queuedPayloads.enqueue(t),v(e,n,r,o)}}):e.queuedPayloads.enqueue(t)}function v(t,e,n,r){2===t.transportStatus&&(0,s.wg)((function(){y(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=h,b(1,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(g,2*t.currentBackoffTime),v(t,e,n,r)}})}),t.currentBackoffTime)}function y(t,e,n,r){var o=r.onSuccess,i=r.onFailure;e.bandwidthMonitor.add(t),n(t,(function(n){e.bandwidthMonitor.remove(t),!function(t){return"opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||(0,u.G)(t.status))}(n)?(e.transportStatus=0,o()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},i())}))}function b(t,e,n,r,o){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(o({message:"Reached max ".concat(r," events size queued for upload: ").concat(p/c.iH,"MiB"),source:l.g.AGENT,startClocks:(0,a.M8)()}),e.queueFullReported=!0);var i=e.queuedPayloads;for(e.queuedPayloads=_();i.size()>0;)m(i.dequeue(),e,n,r,o)}function _(){var t=[];return{bytesCount:0,enqueue:function(e){this.isFull()||(t.push(e),this.bytesCount+=e.bytesCount)},first:function(){return t[0]},dequeue:function(){var e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size:function(){return t.length},isFull:function(){return this.bytesCount>=p}}}function w(t,e,n,i){var s={transportStatus:0,currentBackoffTime:h,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=d&&this.ongoingRequestCount<f},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:_(),queueFullReported:!1},a=function(r,i){return function(t,e,n,r,i){var s=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&r.bytesCount<n;if(s){var a=e.build("fetch",r);fetch(a,{method:"POST",body:r.data,keepalive:!0,mode:"cors"}).then((0,o.dm)((function(t){return null==i?void 0:i({status:t.status,type:t.type})})),(0,o.dm)((function(){var n=e.build("xhr",r);E(t,n,r.data,i)})))}else{var c=e.build("xhr",r);E(t,c,r.data,i)}}(t,e,n,r,i)};return{send:function(t){m(t,s,a,e.trackType,i)},sendOnExit:function(o){!function(t,e,n,o){var i=!!navigator.sendBeacon&&o.bytesCount<n;if(i)try{var s=e.build("beacon",o);if(navigator.sendBeacon(s,o.data))return}catch(t){!function(t){S||(S=!0,(0,r.VJ)(t))}(t)}var a=e.build("xhr",o);E(t,a,o.data)}(t,e,n,o)}}}var S=!1;function E(t,e,n,r){var o=new XMLHttpRequest;o.open("POST",e,!0),n instanceof Blob&&o.setRequestHeader("Content-Type",n.type),(0,i.q2)(t,o,"loadend",(function(){null==r||r({status:o.status})}),{once:!0}),o.send(n)}},20685:(t,e,n)=>{n.d(e,{Z:()=>g});var r=n(63215),o=n(47231),i=n(20254),s=n(16852),a=n(884),c=function(){function t(t,e,n,r){var o=this;this.encoder=t,this.request=e,this.flushController=n,this.messageBytesLimit=r,this.upsertBuffer={},this.flushSubscription=this.flushController.flushObservable.subscribe((function(t){return o.flush(t)}))}return t.prototype.add=function(t){this.addOrUpdate(t)},t.prototype.upsert=function(t,e){this.addOrUpdate(t,e)},t.prototype.stop=function(){this.flushSubscription.unsubscribe()},t.prototype.flush=function(t){var e=(0,o.KQ)(this.upsertBuffer).join("\n");this.upsertBuffer={};var n=(0,i.Kp)(t.reason),r=n?this.request.sendOnExit:this.request.send;if(n&&this.encoder.isAsync){var s=this.encoder.finishSync();s.outputBytesCount&&r(u(s,t));
1var c=[s.pendingData,e].filter(Boolean).join("\n");c&&r({data:c,bytesCount:(0,a.WW)(c),flushReason:t.reason})}else e&&this.encoder.write(this.encoder.isEmpty?e:"\n".concat(e)),this.encoder.finish((function(e){r(u(e,t))}))},t.prototype.addOrUpdate=function(t,e){var n=(0,s.s)(t),o=this.encoder.estimateEncodedBytesCount(n);o>=this.messageBytesLimit?r.Vy.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(this.messageBytesLimit,"KB.")):(this.hasMessageFor(e)&&this.remove(e),this.push(n,o,e))},t.prototype.push=function(t,e,n){var r=this;this.flushController.notifyBeforeAddMessage(e),void 0!==n?(this.upsertBuffer[n]=t,this.flushController.notifyAfterAddMessage()):this.encoder.write(this.encoder.isEmpty?t:"\n".concat(t),(function(t){r.flushController.notifyAfterAddMessage(t-e)}))},t.prototype.remove=function(t){var e=this.upsertBuffer[t];delete this.upsertBuffer[t];var n=this.encoder.estimateEncodedBytesCount(e);this.flushController.notifyAfterRemoveMessage(n)},t.prototype.hasMessageFor=function(t){return void 0!==t&&void 0!==this.upsertBuffer[t]},t}();function u(t,e){return{data:"string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),bytesCount:t.outputBytesCount,encoding:t.encoding,flushReason:e.reason}}var l=n(34716),d=n(1512),f=n(49336);function p(t){var e,n=t.messagesLimit,r=t.bytesLimit,o=t.durationLimit,i=t.pageExitObservable,s=t.sessionExpireObservable,a=i.subscribe((function(t){return g(t.reason)})),c=s.subscribe((function(){return g("session_expire")})),u=new d.c((function(){return function(){a.unsubscribe(),c.unsubscribe()}})),l=0,p=0;function g(t){if(0!==p){var e=p,n=l;p=0,l=0,h(),u.notify({reason:t,messagesCount:e,bytesCount:n})}}function h(){(0,f.DJ)(e),e=void 0}return{flushObservable:u,get messagesCount(){return p},notifyBeforeAddMessage:function(t){l+t>=r&&g("bytes_limit"),p+=1,l+=t,void 0===e&&(e=(0,f.wg)((function(){g("duration_limit")}),o))},notifyAfterAddMessage:function(t){void 0===t&&(t=0),l+=t,p>=n?g("messages_limit"):l>=r&&g("bytes_limit")},notifyAfterRemoveMessage:function(t){l-=t,0===(p-=1)&&h()}}}function g(t,e,n,r,o,i){var s=u(t,e),a=n&&u(t,n);function u(t,e){var n=e.endpoint,s=e.encoder;return new c(s,(0,l.sA)(t,n,t.batchBytesLimit,r),p({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:o,sessionExpireObservable:i}),t.messageBytesLimit)}return{flushObservable:s.flushController.flushObservable,add:function(t,e){void 0===e&&(e=!0),s.add(t),a&&e&&a.add(n.transformMessage?n.transformMessage(t):t)},upsert:function(t,e){s.upsert(t,e),a&&a.upsert(n.transformMessage?n.transformMessage(t):t,e)},stop:function(){s.stop(),null==a||a.stop()}}}},16867:(t,e,n)=>{n.r(e),n.d(e,{HandlerType:()=>S,Logger:()=>C,StatusType:()=>w,datadogLogs:()=>vt});var r=n(6202),o=n(50729),i=n(68914),s=n(42370),a=n(57611),c=n(66121),u=n(82923),l=n(98233),d=n(99672),f=n(78427),p=n(66793),g=n(47231),h=n(95974),m=n(41791),v=n(87673),y=n(85794),b=n(73469),_=function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},w={debug:"debug",error:"error",info:"info",warn:"warn"},S={console:"console",http:"http",silent:"silent"},E=Object.keys(w),C=function(){function t(t,e,n,r,o,i){void 0===r&&(r=S.http),void 0===o&&(o=w.debug),void 0===i&&(i={}),this.handleLogStrategy=t,this.handlerType=r,this.level=o,this.contextManager=(0,s.D)(e),this.contextManager.setContext(i),n&&this.contextManager.setContextProperty("logger",{name:n})}return t.prototype.log=function(t,e,n,r){var o;if(void 0===n&&(n=w.info),null!=r){var i=r instanceof Error?(0,m.T)(r):void 0,s=(0,v.As)({stackTrace:i,originalError:r,nonErrorPrefix:"Provided",source:y.g.LOGGER,handling:"handled",startClocks:(0,b.M8)()});o={stack:s.stack,kind:s.type,message:s.message,causes:s.causes}}var a=(0,d.a)(e),c=o?(0,f.kg)({error:o},a):a;this.handleLogStrategy({message:(0,d.a)(t),context:c,status:n},this)}
1,t.prototype.debug=function(t,e,n){this.log(t,e,w.debug,n)},t.prototype.info=function(t,e,n){this.log(t,e,w.info,n)},t.prototype.warn=function(t,e,n){this.log(t,e,w.warn,n)},t.prototype.error=function(t,e,n){this.log(t,e,w.error,n)},t.prototype.setContext=function(t){this.contextManager.setContext(t)},t.prototype.getContext=function(){return this.contextManager.getContext()},t.prototype.setContextProperty=function(t,e){this.contextManager.setContextProperty(t,e)},t.prototype.removeContextProperty=function(t){this.contextManager.removeContextProperty(t)},t.prototype.clearContext=function(){this.contextManager.clearContext()},t.prototype.setHandler=function(t){this.handlerType=t},t.prototype.getHandler=function(){return this.handlerType},t.prototype.setLevel=function(t){this.level=t},t.prototype.getLevel=function(){return this.level},_([u.Ed],t.prototype,"log",null),t}();var k=n(46858),T=n(63215),x=n(6874),A=n(90582),R=n(884),O=n(74647),I=n(38346),N=n(47833),L=32*R._m;function M(t,e,n){return void 0===t?[]:"all"===t||Array.isArray(t)&&t.every((function(t){return(0,g.mK)(e,t)}))?"all"===t?e:(0,N.R)(t):void T.Vy.error("".concat(n,' should be "all" or an array with allowed values "').concat(e.join('", "'),'"'))}function D(t,e,n){var r,o,i=new k.G,s=e.observable.subscribe(a);function a(){if(o&&r&&e.isGranted()){s.unsubscribe();var t=n(r,o);i.drain(t)}}return{init:function(t){if(t)if((0,x.d0)()&&(t=function(t){return(0,g.kp)({},t,{clientToken:"empty"})}(t)),r=t,o)(0,h.$)("DD_LOGS",t);else{var n=function(t){!0===t.usePciIntake&&t.site&&"datadoghq.com"!==t.site&&T.Vy.warn("PCI compliance for Logs is only available for Datadog organizations in the US1 site. Default intake will be used.");var e=(0,O.Sz)(t),n=M(t.forwardConsoleLogs,(0,g.KQ)(T.bP),"Forward Console Logs"),r=M(t.forwardReports,(0,g.KQ)(I.V),"Forward Reports");if(e&&n&&r)return t.forwardErrorsToLogs&&!(0,g.mK)(n,T.bP.error)&&n.push(T.bP.error),(0,g.kp)({forwardErrorsToLogs:!1!==t.forwardErrorsToLogs,forwardConsoleLogs:n,forwardReports:r,requestErrorResponseLengthLimit:L},e)}(t);n&&(o=n,e.tryToInit(n.trackingConsent),a())}else T.Vy.error("Missing configuration")},get initConfiguration(){return r},getInternalContext:A.l,handleLog:function(e,n,r,o){void 0===r&&(r=t()),void 0===o&&(o=(0,b.nx)()),i.add((function(t){return t.handleLog(e,n,r,o)}))}}}var P="logs";var U=n(8897),V=n(20254),$=n(70135),F=n(46614),z=n(1512),B=n(1613),G="logs";function H(t,e){var n=(0,F.ox)(t,G,(function(e){return function(t,e){var n=function(t){return"0"===t||"1"===t}(e)?e:q(t);return{trackingType:n,isTracked:"1"===n}}(t,e)}),e);return{findTrackedSession:function(t){var e=n.findActiveSession(t);return e&&"1"===e.trackingType?{id:e.id}:void 0},expireObservable:n.expireObservable}}function q(t){return(0,B.ic)(t.sessionSampleRate)?"1":"0"}var j=n(18283),W=n(6679),K=!1;function Z(t){var e=window;if((0,$.ao)()){var n=r(e.DD_RUM_SYNTHETICS);return n||K||(K=!0,(0,l.A2)("Logs sent before RUM is injected by the synthetics worker",{testId:(0,$.aj)(),resultId:(0,$.X6)()})),n}return r(e.DD_RUM);function r(e){if(e&&e.getInternalContext)return e.getInternalContext(t)}}var J,X,Y=n(89380),Q=((J={})[T.bP.log]=w.info,J[T.bP.debug]=w.debug,J[T.bP.info]=w.info,J[T.bP.warn]=w.warn,J[T.bP.error]=w.error,J);var tt=((X={})[I.V.cspViolation]=w.error,X[I.V.intervention]=w.error,X[I.V.deprecation]=w.warn,X);var et=n(36069),nt=n(64091),rt=n(99719),ot=n(66938);function it(t,e){if(!t.forwardErrorsToLogs)return{stop:A.l};var n=(0,et.G)(t).subscribe((function(t){"complete"===t.state&&o("xhr",t)})),r=(0,nt.i)().subscribe((function(t){"resolve"===t.state&&o("fetch",t)}));function o(n,r){function o(t){var o={isAborted:r.isAborted};e.notify(0,{rawLogsEvent:{message:"".concat(at(n)," error ").concat(r.method," ").concat(r.url),date:r.startClocks.timeStamp,error:{stack:t||"Failed to load"},http:{method:r.method,status_code:r.status,url:r.url},status:w.error,origin:y.g.NETWORK},domainContext:o})}t.isIntakeUrl(r.url)||!function(t){return 0===t.status&&"opaque"!==t.responseType}(r)&&!(0,rt.G)(r.status)||("xhr"in r?function(t,e,n){"string"==typeof t.response?n(st(t.response,e)):n(t.response)}(r.xhr,t,o):r.response?function(t,e,n){var r=(0,rt.i)(t);r&&r.body?window.TextDecoder?function(t,e,n){(0,ot._)(t,(function(t,e,r){if(t)n(t);else{var o=(new TextDecoder).decode(e);r&&(o+="..."),n(void 0,o)}}),{bytesLimit:e,collectStreamBody:!0})}(r.body,e.requestErrorResponseLengthLimit,(function(t,e){n(t?"Unable to retrieve response: ".concat(t):e)})):r.text().then((0,u.dm)((function(t){return n(st(t,e))})),(0,u.dm)((function(t){return n("Unable to retrieve response: ".concat(t))}))):n()}(r.response,t,o):r.error&&function(t,e,n){n(st((0,v.Yn)((0,m.T)(t)),e))}(r.error,t,o))}return{stop:function(){n.unsubscribe(),r.unsubscribe()}}}function st(t,e){return t.length>e.requestErrorResponseLengthLimit?"".concat(t.substring(0,e.requestErrorResponseLengthLimit),"..."):t}function at(t){return"xhr"===t?"XHR":"Fetch"}var ct=n(54246);var ut,lt=n(29115).D,dt=((ut={})[w.debug]=0,ut[w.info]=1,ut[w.warn]=2,ut[w.error]=3,ut);function ft(t){return{handleLog:function(e,n,r,o){var i=(0,f.kg)(n.getContext(),e.context);pt(e.status,S.console,n)&&function(t,e){T.Z9[t.status].call(T.JZ,t.message,e)}(e,i),pt(e.status,S.http,n)&&t.notify(0,{rawLogsEvent:{date:o||(0,b.nx)(),message:e.message,status:e.status,origin:y.g.LOGGER},messageContext:i,savedCommonContext:r})}}}function pt(t,e,n){var r=n.getHandler(),o=Array.isArray(r)?r:[r];return dt[t]>=dt[n.getLevel()]&&(0,g.mK)(o,e)}var gt=n(20685),ht=n(1225);function mt(t,e,n,r,o){var i=(0,l.a5)("browser-logs-sdk",e);i.setContextProvider((function(){var t,e,n,r,i,s;return{application:{id:null===(t=Z())||void 0===t?void 0:t.application_id},session:{id:null===(e=o.findTrackedSession())||void 0===e?void 0:e.id},view:{id:null===(r=null===(n=Z())||void 0===n?void 0:n.view)||void 0===r?void 0:r.id},action:{id:null===(s=null===(i=Z())||void 0===i?void 0:i.user_action)||void 0===s?void 0:s.id}}}));var s=[];if((0,x.d0)()){var a=(0,x.Y9)(),c=i.observable.subscribe((function(t){return a.send("internal_telemetry",t)}));s.push((function(){return c.unsubscribe()}))}else{var u=(0,gt.Z)(e,{endpoint:e.rumEndpointBuilder,encoder:(0,ht.N
1)()},e.replica&&{endpoint:e.replica.rumEndpointBuilder,encoder:(0,ht.N)()},n,r,o.expireObservable);s.push((function(){return u.stop()}));var d=i.observable.subscribe((function(t){return u.add(t,(0,l.Wb)(e))}));s.push((function(){return d.unsubscribe()}))}return(0,l.Rr)(function(t){var e=(0,O.hO)(t);return(0,g.kp)({forward_errors_to_logs:t.forwardErrorsToLogs,forward_console_logs:t.forwardConsoleLogs,forward_reports:t.forwardReports,use_pci_intake:t.usePciIntake},e)}(t)),{telemetry:i,stop:function(){s.forEach((function(t){return t()}))}}}var vt=function(t){var e=(0,i.qR)(),n=(0,s.D)(e.getOrCreateTracker(2)),o=(0,s.D)(e.getOrCreateTracker(1)),m=(0,a.D)();function v(){return function(t,e){return{view:{referrer:document.referrer,url:window.location.href},context:t.getContext(),user:e.getContext()}}(n,o)}var y=D(v,m,(function(e,r){e.storeContextsAcrossPages&&((0,c.Ck)(r,n,P,2),(0,c.Ck)(r,o,P,1));var i=t(e,r,v,m);return y=function(t,e){return(0,g.kp)({init:function(t){(0,h.$)("DD_LOGS",t)},initConfiguration:t},e)}(e,i),i})),b={},_=new C((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return y.handleLog.apply(y,t)}),e.createDetachedTracker());return(0,r.m)({logger:_,init:(0,u.dm)((function(t){return y.init(t)})),setTrackingConsent:(0,u.dm)((function(t){m.update(t),(0,l.Q6)({feature:"set-tracking-consent",tracking_consent:t})})),getGlobalContext:(0,u.dm)((function(){return n.getContext()})),setGlobalContext:(0,u.dm)((function(t){return n.setContext(t)})),setGlobalContextProperty:(0,u.dm)((function(t,e){return n.setContextProperty(t,e)})),removeGlobalContextProperty:(0,u.dm)((function(t){return n.removeContextProperty(t)})),clearGlobalContext:(0,u.dm)((function(){return n.clearContext()})),createLogger:(0,u.dm)((function(t,n){return void 0===n&&(n={}),b[t]=new C((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return y.handleLog.apply(y,t)}),e.createDetachedTracker(),(0,d.a)(t),n.handler,n.level,(0,d.a)(n.context)),b[t]})),getLogger:(0,u.dm)((function(t){return b[t]})),getInitConfiguration:(0,u.dm)((function(){return(0,f.Go)(y.initConfiguration)})),getInternalContext:(0,u.dm)((function(t){return y.getInternalContext(t)})),setUser:(0,u.dm)((function(t){(0,p.O)(t)&&o.setContext((0,p.x)(t))})),getUser:(0,u.dm)((function(){return o.getContext()})),setUserProperty:(0,u.dm)((function(t,e){var n,r=(0,p.x)((n={},n[t]=e,n))[t];o.setContextProperty(t,r)})),removeUserProperty:(0,u.dm)((function(t){return o.removeContextProperty(t)})),clearUser:(0,u.dm)((function(){return o.clearContext()}))})}((function(t,e,n,r){var o=new lt,i=[];o.subscribe(1,(function(t){return(0,U.b)("logs",t)}));var s=function(t){return function(e){t.notify(0,{rawLogsEvent:{message:e.message,date:e.startClocks.timeStamp,origin:y.g.AGENT,status:w.error}}),(0,l.A2)("Error reported to customer",{"error.message":e.message})}}(o),a=(0,V.hL)(e),c=!e.sessionStoreStrategyType||(0,x.d0)()||(0,$.ao)()?function(t){var e="1"===q(t)?{}:void 0;return{findTrackedSession:function(){return e},expireObservable:new z.c}}(e):H(e,r),u=mt(t,e,s,a,c).stop;i.push((function(){return u()})),it(e,o),function(t,e){if(!t.forwardErrorsToLogs)return{stop:A.l};var n=new z.c,r=(0,ct.mj)(n).stop,o=n.subscribe((function(t){e.notify(0,{rawLogsEvent:{message:t.message,date:t.startClocks.timeStamp,error:{kind:t.type,stack:t.stack,causes:t.causes},origin:y.g.SOURCE,status:w.error}})}))}(e,o),function(t,e){var n=(0,Y.l)(t.forwardConsoleLogs).subscribe((function(t){e.notify(0,{rawLogsEvent:{date:(0,b.nx)(),message:t.message,origin:y.g.CONSOLE,error:t.api===T.bP.error?{stack:t.stack,fingerprint:t.fingerprint,causes:t.causes}:void 0,status:Q[t.api]}})}))}(e,o),function(t,e){var n=(0,I.u)(t,t.forwardReports).subscribe((function(t){var n,r=t.message,o=tt[t.type];o===w.error?n={kind:t.subtype,stack:t.stack}:t.stack&&(r+=" Found in ".concat((0,v.$X)(t.stack))),e.notify(0,{rawLogsEvent:{date:(0,b.nx)(),message:r,origin:y.g.REPORT,error:n,status:o}})}))}(e,o);var d,p=ft(o).handleLog;if(function(t,e,n,r,o){var i=E.concat(["custom"]),s={};i.forEach((function(t){s[t]=(0,j.$)(t,e.eventRateLimiterThreshold,o)})),n.subscribe(0,(function(o){var i,a,c=o.rawLogsEvent,u=o.messageContext,l=void 0===u?void 0:u,d=o.savedCommonContext,p=void 0===d?void 0:d,g=o.domainContext,h=(0,b.gs)(c.date),m=t.findTrackedSession(h);if(m){var v=p||r(),_=(0,f.kg)({service:e.service,session_id:m.id,usr:(0,W.RI)(v.user)?void 0:v.user,view:v.view},v.context,Z(h),c,l);!1===(null===(i=e.beforeSend)||void 0===i?void 0:i.call(e,_,g))||_.origin!==y.g.AGENT&&(null!==(a=s[_.status])&&void 0!==a?a:s.custom).isLimitReached()||n.notify(1,_)}}))}(c,e,o,n,s),(0,x.d0)())!function(t){var e=(0,x.Y9)();t.subscribe(1,(function(t){e.send("log",t)}))}(o);else{var g=function(t,e,n,r,o){var i=(0,gt.Z)(t,{endpoint:t.logsEndpointBuilder,encoder:(0,ht.N
1)()},t.replica&&{endpoint:t.replica.logsEndpointBuilder,encoder:(0,ht.N)()},n,r,o.expireObservable);return e.subscribe(1,(function(t){i.add(t)})),i}(e,o,s,a,c).stop;i.push((function(){return g()}))}return{handleLog:p,getInternalContext:(d=c,{get:function(t){var e=d.findTrackedSession(t);if(e)return{session_id:e.id}}}).get,stop:function(){i.forEach((function(t){return t()}))}}}));(0,r.Z)((0,o.V)(),"DD_LOGS",vt)},35699:(t,e,n)=>{n.d(e,{L:()=>qo});var r=n(6202),o=n(50729),i=n(68914),s=n(42370),a=n(57611),c=n(11092),u=n(82923),l=n(99672),d=n(73469),f=n(66121),p=n(1225),g=n(98233),h=n(78427),m=n(87673),v=n(66793),y=n(47231),b=n(95974);var _=n(46858),w=n(63215),S=n(6874),E=n(70135),C=n(90582),k=n(1613),T=n(74647),x=n(6679),A=n(86086);function R(t){var e=(0,A.P)(t);return"string"===e||"function"===e||t instanceof RegExp}function O(t,e,n){return void 0===n&&(n=!1),t.some((function(t){try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);if("string"==typeof t)return n?(0,y.w1)(e,t):t===e}catch(t){w.Vy.error(t)}return!1}))}function I(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function N(t,e,n,r){if(void 0!==L()&&n.findTrackedSession()){var o,i,s,a,c,u=(0,y.I6)(t.allowedTracingUrls,(function(t){return O([t.match],e.url,!0)}));if(u)if(e.traceSampled=!(0,k.Et)(t.traceSampleRate)||(0,k.ic)(t.traceSampleRate),e.traceSampled||t.traceContextInjection===T.uT.ALL)e.traceId=new M,e.spanId=new M,r((o=e.traceId,i=e.spanId,s=e.traceSampled,a=u.propagatorTypes,c={},a.forEach((function(t){switch(t){case"datadog":(0,y.kp)(c,{"x-datadog-origin":"rum","x-datadog-parent-id":i.toDecimalString(),"x-datadog-sampling-priority":s?"1":"0","x-datadog-trace-id":o.toDecimalString()});break;case"tracecontext":(0,y.kp)(c,{traceparent:"00-0000000000000000".concat(o.toPaddedHexadecimalString(),"-").concat(i.toPaddedHexadecimalString(),"-0").concat(s?"1":"0")});break;case"b3":(0,y.kp)(c,{b3:"".concat(o.toPaddedHexadecimalString(),"-").concat(i.toPaddedHexadecimalString(),"-").concat(s?"1":"0")});break;case"b3multi":(0,y.kp)(c,{"X-B3-TraceId":o.toPaddedHexadecimalString(),"X-B3-SpanId":i.toPaddedHexadecimalString(),"X-B3-Sampled":s?"1":"0"})}})),c))}}function L(){return window.crypto||window.msCrypto}var M=function(){function t(){this.buffer=new Uint8Array(8),L().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}return t.prototype.toString=function(t){var e=this.readInt32(0),n=this.readInt32(4),r="";do{var o=e%t*4294967296+n;e=Math.floor(e/t),n=Math.floor(o/t),r=(o%t).toString(t)+r}while(e||n);return r},t.prototype.toDecimalString=function(){return this.toString(10)},t.prototype.toPaddedHexadecimalString=function(){var t=this.toString(16);return Array(17-t.length).join("0")+t},t.prototype.readInt32=function(t){return 16777216*this.buffer[t]+(this.buffer[t+1]<<16)+(this.buffer[t+2]<<8)+this.buffer[t+3]},t}(),D=["tracecontext","datadog"];function P(t){var e,n;if(t.applicationId)if(void 0===t.sessionReplaySampleRate||(0,k.fp)(t.sessionReplaySampleRate))if(void 0===t.traceSampleRate||(0,k.fp)(t.traceSampleRate))if(void 0===t.excludedActivityUrls||Array.isArray(t.excludedActivityUrls)){var r=function(t){if(void 0!==t.allowedTracingUrls){if(!Array.isArray(t.allowedTracingUrls))return void w.Vy.error("Allowed Tracing URLs should be an array");if(0!==t.allowedTracingUrls.length&&void 0===t.service)return void w.Vy.error("Service needs to be configured when tracing is enabled");var e=[];return t.allowedTracingUrls.forEach((function(t){var n;R(t)?e.push({match:t,propagatorTypes:D}):(n=t,"object"===(0,A.P)(n)&&R(n.match)&&Array.isArray(n.propagatorTypes)?e.push(t):w.Vy.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",t))})),e}return[]}(t);if(r){var o=(0,T.Sz)(t);if(o)return(0,y.kp)({applicationId:t.applicationId,version:t.version,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:null!==(e=t.sessionReplaySampleRate)&&void 0!==e?e:0,startSessionReplayRecordingManually:!!t.startSessionReplayRecordingManually,traceSampleRate:t.traceSampleRate,allowedTracingUrls:r,excludedActivityUrls:null!==(n=t.excludedActivityUrls)&&void 0!==n?n:[],workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:!!t.trackUserInteractions,trackViewsManually:!!t.trackViewsManually,trackResources:!!t.trackResources,trackLongTasks:!!t.trackLongTasks,subdomain:t.subdomain,defaultPrivacyLevel:(0,x.Rj)(T.WA,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:T.WA.MASK,customerDataTelemetrySampleRate:1,traceContextInjection:(0,x.Rj)(T.uT,t.traceContextInjection)?t.traceContextInjection:T.uT.ALL},o)}}
1else w.Vy.error("Excluded Activity Urls should be an array");else w.Vy.error("Trace Sample Rate should be a number between 0 and 100");else w.Vy.error("Session Replay Sample Rate should be a number between 0 and 100");else w.Vy.error("Application ID is not configured, no RUM data will be collected.")}function U(t){var e=new Set;return Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0&&t.allowedTracingUrls.forEach((function(t){R(t)?D.forEach((function(t){return e.add(t)})):"object"===(0,A.P)(t)&&Array.isArray(t.propagatorTypes)&&t.propagatorTypes.forEach((function(t){return e.add(t)}))})),(0,y.A6)(e)}function V(t,e,n,r){var o,i,s,a,c=t.ignoreInitIfSyntheticsWillInjectRum,u=t.startDeflateWorker,l=new _.G,f=n.observable.subscribe(p);function p(){if(s&&a&&n.isGranted()){var t;if(f.unsubscribe(),a.trackViewsManually){if(!o)return;l.remove(o.callback),t=o.options}var e=r(s,a,i,t);l.drain(e)}}return{init:function(t){if(t){var e=(0,S.d0)();if(e&&(t=function(t){var e,n;return(0,y.kp)({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!==(e=t.defaultPrivacyLevel)&&void 0!==e?e:null===(n=(0,S.Y9)())||void 0===n?void 0:n.getPrivacyLevel()})}(t)),s=t,a)(0,b.$)("DD_RUM",t);else if(!c||!(0,E.ao)()){var r=P(t);r&&(e||r.sessionStoreStrategyType?r.compressIntakeRequests&&!e&&u&&!(i=u(r,"Datadog RUM",C.l))||(a=r,n.tryToInit(r.trackingConsent),p()):w.Vy.warn("No storage available for session. We will not send any data."))}}else w.Vy.error("Missing configuration")},get initConfiguration(){return s},getInternalContext:C.l,stopSession:C.l,addTiming:function(t,e){void 0===e&&(e=(0,d.nx)()),l.add((function(n){return n.addTiming(t,e)}))},startView:function(t,e){void 0===e&&(e=(0,d.M8)());var n=function(n){n.startView(t,e)};l.add(n),o||(o={options:t,callback:n},p())},addAction:function(t,n){void 0===n&&(n=e()),l.add((function(e){return e.addAction(t,n)}))},addError:function(t,n){void 0===n&&(n=e()),l.add((function(e){return e.addError(t,n)}))},addFeatureFlagEvaluation:function(t,e){l.add((function(n){return n.addFeatureFlagEvaluation(t,e)}))},startDurationVital:function(t){l.add((function(e){return e.startDurationVital(t)}))},stopDurationVital:function(t){l.add((function(e){return e.stopDurationVital(t)}))}}}var $=n(8897),F=n(20254),z=n(1512),B=n(94486);function G(){var t,e=window;if(e.Zone&&(t=(0,B.W)(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=new e.MutationObserver(C.l),r=(0,B.W)(n,"originalInstance");t=r&&r.constructor}return t||(t=e.MutationObserver),t}var H=n(49336),q=n(99813);function j(t,e,n){if(document.readyState===e||"complete"===document.readyState)n();else{var r="complete"===e?q.gX.LOAD:q.gX.DOM_CONTENT_LOADED;(0,q.q2)(t,window,r,n,{once:!0})}}var W=n(51637),K="initial_document",Z=[["document",function(t){return K===t}],["xhr",function(t){return"xmlhttprequest"===t}],["fetch",function(t){return"fetch"===t}],["beacon",function(t){return"beacon"===t}],["css",function(t,e){return/\.css$/i.test(e)}],["js",function(t,e){return/\.js$/i.test(e)}],["image",function(t,e){return(0,y.mK)(["image","img","icon"],t)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(e)}],["font",function(t,e){return null!==/\.(woff|eot|woff2|ttf)$/i.exec(e)}],["media",function(t,e){return(0,y.mK)(["audio","video"],t)||null!==/\.(mp3|mp4)$/i.exec(e)}]];function J(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=1;n<t.length;n+=1)if(t[n-1]>t[n])return!1;return!0}function X(t){var e=Y(t);if(e){var n=e.startTime,r=e.fetchStart,o=e.redirectStart,i=e.redirectEnd,s=e.domainLookupStart,a=e.domainLookupEnd,c=e.connectStart,u=e.secureConnectionStart,l=e.connectEnd,d=e.requestStart,f=e.responseStart,p={download:Q(n,f,e.responseEnd),first_byte:Q(n,d,f)};return r<l&&(p.connect=Q(n,c,l),c<=u&&u<=l&&(p.ssl=Q(n,u,l))),r<a&&(p.dns=Q(n,s,a)),n<i&&(p.redirect=Q(n,o,i)),p}}function Y(t){if((0,c.sr)(c.R9.TOLERANT_RESOURCE_TIMINGS))return t;var e=J(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!function(t){return t.redirectEnd>t.startTime}(t)||J(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n?t:void 0}function Q(t,e,n){if(t<=e&&e<=n)return{duration:(0,d.Zj)((0,d.vk)(e,n)),start:(0,d.Zj)((0,d.vk)(t,e))}}function tt(t){if(t.startTime<t.responseStart){var e=t.encodedBodySize,n=t.decodedBodySize;return{size:n,encoded_body_size:e,decoded_body_size:n,transfer_size:t.transferSize}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}function et(t,e){return e&&!t.isIntakeUrl(e)}var nt=/data:(.+)?(;base64)?,/g,rt=24e3;function ot(t){return!(t.length<=rt)&&("data:"===t.substring(0,5)&&(t=t.substring(0,rt),!0))}function it(t){return"".concat(t.match(nt)[0],"[...]")}var st=n(77341);function at(t){return t.nodeType===Node.TEXT_NODE}function ct(t){return t.nodeType===Node.ELEMENT_NODE}function ut(t){return ct(t)&&Boolean(t.shadowRoot)}function lt(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&ct(e.host)}function dt(t,e){for(var n=t.firstChild;n;)e(n),n=n.nextSibling;ut(t)&&e(t.shadowRoot)}function ft(t){return lt(t)?t.host:t.parentNode}var pt,gt=2*d.iW;function ht(t){var e=function(t){var e=t.querySelector("meta[name=dd-trace-id]"),n=t.querySelector("meta[name=dd-trace-time]");return mt(e&&e.content,n&&n.content)}(t)||function(t){var e=function(t){for(var e=0;e<t.childNodes.length;e+=1){if(n=vt(t.childNodes[e]))return n}if(t.body)for(e=t.body.childNodes.length-1;e>=0;e-=1){var n,r=t.body.childNodes[e];if(n=vt(r))return n;if(!at(r))break}}(t);if(!e)return;return mt((0,st.rx)(e,"trace-id"),(0,st.rx)(e,"trace-time"))}(t);if(e&&!(e.traceTime<=(0,d.x3)()-gt))return e.traceId}function mt(t,e){var n=e&&Number(e);if(t&&n)return{traceId:t,traceTime:n}}function vt(t){if(t&&function(t){return t.nodeType===Node.COMMENT_NODE}(t)){var e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}function yt(){return void 0!==window.performance&&"getEntries"in performance}function bt(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function _t(t,e){var n=[];if(function(t,e){j(t,"interactive",(function(){var t,n={entryType:pt.RESOURCE,initiatorType:K,traceId:ht(document),toJSON:function(){return(0,y.kp)({},t,{toJSON:void 0})}};if(bt(pt.NAVIGATION)&&performance.getEntriesByType(pt.NAVIGATION).length>0){var r=performance.getEntriesByType(pt.NAVIGATION)[0];t=(0,y.kp)(r.toJSON(),n)}else{var o=wt();t=(0,y.kp)(o,{decodedBodySize:0,encodedBodySize:0,transferSize:0,renderBlockingStatus:"non-blocking",duration:o.responseEnd,name:window.location.href,startTime:0},n)}e(t)}))}(e,(function(n){St(t,e,[n])})),yt()){var r=performance.getEntries();(0,H.wg)((function(){return St(t,e,r)}))}if(window.PerformanceObserver){var o=(0,u.dm)((function(n){return St(t,e,n.getEntries())})),i=[pt.RESOURCE,pt.NAVIGATION,pt.LONG_TASK,pt.PAINT],s=[pt.LARGEST_CONTENTFUL_PAINT,pt.FIRST_INPUT,pt.LAYOUT_SHIFT,pt.EVENT];
1try{s.forEach((function(t){var e=new window.PerformanceObserver(o);e.observe({type:t,buffered:!0,durationThreshold:40}),n.push((function(){return e.disconnect()}))}))}catch(t){i.push.apply(i,s)}var a=new PerformanceObserver(o);if(a.observe({entryTypes:i}),n.push((function(){return a.disconnect()})),yt()&&"addEventListener"in performance){var c=(0,q.q2)(e,performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()})).stop;n.push(c)}}if(bt(pt.NAVIGATION)||function(t,e){function n(){e((0,y.kp)(wt(),{entryType:pt.NAVIGATION}))}j(t,"complete",(function(){(0,H.wg)(n)}))}(e,(function(n){St(t,e,[n])})),!bt(pt.FIRST_INPUT)){var l=function(t,e){var n=(0,d.x3)(),r=!1,o=(0,q.lQ)(t,window,[q.gX.CLICK,q.gX.MOUSE_DOWN,q.gX.KEY_DOWN,q.gX.TOUCH_START,q.gX.POINTER_DOWN],(function(e){if(e.cancelable){var n={entryType:pt.FIRST_INPUT,processingStart:(0,d.$S)(),processingEnd:(0,d.$S)(),startTime:e.timeStamp,duration:0,name:""};e.type===q.gX.POINTER_DOWN?i(t,n):s(n)}}),{passive:!0,capture:!0}).stop;return{stop:o};function i(t,e){(0,q.lQ)(t,window,[q.gX.POINTER_UP,q.gX.POINTER_CANCEL],(function(t){t.type===q.gX.POINTER_UP&&s(e)}),{once:!0})}function s(t){if(!r){r=!0,o();var i=t.processingStart-t.startTime;i>=0&&i<(0,d.x3)()-n&&e(t)}}}(e,(function(n){St(t,e,[n])})).stop;n.push(l)}return{stop:function(){n.forEach((function(t){return t()}))}}}function wt(){var t={},e=performance.timing;for(var n in e)if((0,k.Et)(e[n])){var r=n,o=e[r];t[r]=0===o?0:(0,d.gs)(o)}return t}function St(t,e,n){var r=n.filter((function(t){return(0,x.Rj)(pt,t.entryType)})).filter((function(t){return!function(t){return t.entryType===pt.NAVIGATION&&t.loadEventEnd<=0}(t)&&!function(t,e){return e.entryType===pt.RESOURCE&&!et(t,e.name)}(e,t)}));r.length&&t.notify(0,r)}!function(t){t.EVENT="event",t.FIRST_INPUT="first-input",t.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",t.LAYOUT_SHIFT="layout-shift",t.LONG_TASK="longtask",t.NAVIGATION="navigation",t.PAINT="paint",t.RESOURCE="resource"}(pt||(pt={}));var Et=n(18283),Ct=n(57081);function kt(t,e,n){var r=(0,h.Go)(t),o=n(r);return(0,y.WP)(e).forEach((function(e){var n=e[0],o=e[1],i=function(t,e){for(var n=t,r=0,o=e.split(".");r<o.length;r++){var i=o[r];if(!At(n,i))return;n=n[i]}return n}(r,n),s=(0,A.P)(i);s===o?Tt(t,n,(0,l.a)(i)):"object"!==o||"undefined"!==s&&"null"!==s||Tt(t,n,{})})),o}function Tt(t,e,n){for(var r=t,o=e.split("."),i=0;i<o.length;i+=1){var s=o[i];if(!xt(r))return;i!==o.length-1?r=r[s]:r[s]=n}}function xt(t){return"object"===(0,A.P)(t)}function At(t,e){return xt(t)&&Object.prototype.hasOwnProperty.call(t,e)}var Rt,Ot={"view.name":"string","view.url":"string","view.referrer":"string"},It={context:"object"};function Nt(t,e,n,r,o,i,s,a,u,l){var f,p;(f={}).view=Ot,f.error=(0,y.kp)({"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string"},It,Ot),f.resource=(0,y.kp)({"resource.url":"string"},(0,c.sr)(c.R9.WRITABLE_RESOURCE_GRAPHQL)&&{"resource.graphql":"object"},It,Ot),f.action=(0,y.kp)({"action.target.name":"string"},It,Ot),f.long_task=(0,y.kp)({},It,Ot),f.vital=(0,y.kp)({},It,Ot),Rt=f;var g=((p={}).error=(0,Et.$)("error",t.eventRateLimiterThreshold,l),p.action=(0,Et.$)("action",t.eventRateLimiterThreshold,l),p.vital=(0,Et.$)("vital",t.eventRateLimiterThreshold,l),p),m=function(){var t=(0,E.aj)(),e=(0,E.X6)();if(t&&e)return{test_id:t,result_id:e,injected:(0,E.ao)()}}();e.subscribe(12,(function(c){var l,f=c.startTime,p=c.rawRumEvent,v=c.domainContext,y=c.savedCommonContext,b=c.customerContext,_=r.findView(f),E=o.findUrl(f),C=n.findTrackedSession(f);if(C&&_&&E){var T=y||u(),A=i.findActionId(f),R={_dd:{format_version:2,drift:(0,d.TP)(),configuration:{session_sample_rate:(0,k.LI)(t.sessionSampleRate,3),session_replay_sample_rate:(0,k.LI)(t.sessionReplaySampleRate,3)},browser_sdk_version:(0,S.d0)()?"5.16.0":void 0},application:{id:t.applicationId},date:(0,d.nx)(),service:_.service||t.service,version:_.version||t.version,source:"browser",session:{id:C.id,type:m?"synthetics":a.get()?"ci_test":"user"},view:{id:_.id,name:_.name,url:E.url,referrer:E.referrer},action:(l=p,-1!==["error","resource","long_task"].indexOf(l.type)&&A?{id:A}:void 0),synthetics:m,ci_test:a.get(),display:s.get(),connectivity:(0,Ct.q)()},O=(0,h.kg)(R,p);O.context=(0,h.kg)(T.context,b),"has_replay"in O.session||(O.session.has_replay=T.hasReplay),"view"===O.type&&(O.session.sampled_for_replay=C.sessionReplayAllowed),(0,x.RI)(T.user)||(O.usr=T.user),function(t,e,n,r){var o;if(e){var i=kt(t,Rt[t.type],(function(t){return e(t,n)}));if(!1===i&&"view"!==t.type)return!1;!1===i&&w.Vy.warn("Can't dismiss view events using beforeSend!")}var s=null===(o=r[t.type])||void 0===o?void 0:o.isLimitReached();return!s}
1(O,t.beforeSend,v,g)&&((0,x.RI)(O.context)&&delete O.context,e.notify(13,O))}}))}var Lt=n(29115).D,Mt=n(35372),Dt=n(99990),Pt=Mt.A;var Ut=n(36069),Vt=n(64091),$t=n(99719),Ft=n(66938),zt=1;function Bt(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:I,traceFetch:function(n){return N(t,n,e,(function(t){var e;if(n.input instanceof Request&&!(null===(e=n.init)||void 0===e?void 0:e.headers))n.input=new Request(n.input),Object.keys(t).forEach((function(e){n.input.headers.append(e,t[e])}));else{n.init=(0,x.yG)(n.init);var r=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(t,e){r.push([e,t])})):Array.isArray(n.init.headers)?n.init.headers.forEach((function(t){r.push(t)})):n.init.headers&&Object.keys(n.init.headers).forEach((function(t){r.push([t,n.init.headers[t]])})),n.init.headers=r.concat((0,y.WP)(t))}}))},traceXhr:function(n,r){return N(t,n,e,(function(t){Object.keys(t).forEach((function(e){r.setRequestHeader(e,t[e])}))}))}}}(e,n);!function(t,e,n){var r=(0,Ut.G)(e).subscribe((function(r){var o=r;if(et(e,o.url))switch(o.state){case"start":n.traceXhr(o,o.xhr),o.requestIndex=Gt(),t.notify(7,{requestIndex:o.requestIndex,url:o.url});break;case"complete":n.clearTracingIfNeeded(o),t.notify(8,{duration:o.duration,method:o.method,requestIndex:o.requestIndex,spanId:o.spanId,startClocks:o.startClocks,status:o.status,traceId:o.traceId,traceSampled:o.traceSampled,type:"xhr",url:o.url,xhr:o.xhr,isAborted:o.isAborted})}}))}(t,e,r),function(t,e,n){var r=(0,Vt.i)().subscribe((function(r){var o=r;if(et(e,o.url))switch(o.state){case"start":n.traceFetch(o),o.requestIndex=Gt(),t.notify(7,{requestIndex:o.requestIndex,url:o.url});break;case"resolve":!function(t,e){var n=t.response&&(0,$t.i)(t.response);n&&n.body?(0,Ft._)(n.body,(function(){e((0,d.vk)(t.startClocks.timeStamp,(0,d.nx)()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e((0,d.vk)(t.startClocks.timeStamp,(0,d.nx)()))}(o,(function(e){n.clearTracingIfNeeded(o),t.notify(8,{duration:e,method:o.method,requestIndex:o.requestIndex,responseType:o.responseType,spanId:o.spanId,startClocks:o.startClocks,status:o.status,traceId:o.traceId,traceSampled:o.traceSampled,type:"fetch",url:o.url,response:o.response,init:o.init,input:o.input,isAborted:o.isAborted})}))}}))}(t,e,r)}function Gt(){var t=zt;return zt+=1,t}function Ht(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange,o=void 0===r?C.l:r,i={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},s=e.subscribe(13,(function(t){var e;if("view"!==t.type&&"vital"!==t.type&&n(t))switch(t.type){case"error":i.errorCount+=1,o();break;case"action":i.actionCount+=1,t.action.frustration&&(i.frustrationCount+=t.action.frustration.type.length),o();break;case"long_task":i.longTaskCount+=1,o();break;case"resource":(null===(e=t._dd)||void 0===e?void 0:e.discarded)||(i.resourceCount+=1,o())}}));return{stop:function(){s.unsubscribe()},eventCounts:i}}var qt=n(10829),jt=100,Wt=100;function Kt(t,e,n,r,o){var i=function(t,e,n){return new z.c((function(r){var o,i=[],s=0;i.push(e.subscribe(u),t.subscribe(0,(function(t){t.some((function(t){return t.entryType===pt.RESOURCE&&!Zt(n,t.name)}))&&u()})),t.subscribe(7,(function(t){Zt(n,t.url)||(void 0===o&&(o=t.requestIndex),s+=1,u())})),t.subscribe(8,(function(t){Zt(n,t.url)||void 0===o||t.requestIndex<o||(s-=1,u())})));var a,c=(a=u,(0,qt.H)(window,"open",a)).stop;return function(){c(),i.forEach((function(t){return t.unsubscribe()}))};function u(){r.notify({isBusy:s>0})}}))}(t,e,n);return function(t,e,n){var r,o=!1,i=(0,H.wg)((0,u.dm)((function(){return l({hadActivity:!1})})),jt),s=void 0!==n?(0,H.wg)((0,u.dm)((function(){return l({hadActivity:!0,end:(0,d.nx)()})})),n):void 0,a=t.subscribe((function(t){var e=t.isBusy;(0,H.DJ)(i),(0,H.DJ)(r);var n=(0,d.nx)();e||(r=(0,H.wg)((0,u.dm)((function(){return l({hadActivity:!0,end:n})})),Wt))})),c=function(){o=!0,(0,H.DJ)(i),(0,H.DJ)(r),(0,H.DJ)(s),a.unsubscribe()};function l(t){o||(c(),e(t))}return{stop:c}}(i,r,o)}function Zt(t,e){return O(t.excludedActivityUrls,e)}function Jt(t){return window.CSS&&window.CSS.escape?window.CSS.escape(t):t.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,(function(t,e){return e?"\0"===t?"�":"".concat(t.slice(0,-1),"\\").concat(t.charCodeAt(t.length-1).toString(16)," "):"\\".concat(t)}))}function Xt(t){if(t.parentElement)return t.parentElement;for(;t.parentNode;){if(t.parentNode.nodeType===Node.ELEMENT_NODE)return t.parentNode;t=t.parentNode}return null}var Yt=n(71432),Qt="data-dd-action-name";function te(t,e){return ee(t,Qt)||e&&ee(t,e)||ae(t,e,oe)||ae(t,e,ie)||""}function ee(t,e){var n;if(function(){void 0===re&&(re="closest"in HTMLElement.prototype);return re}())n=t.closest("[".concat(e,"]"));else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=Xt(r)}if(n)return ue(ce(n.getAttribute(e).trim()))}var ne,re,oe=[function(t,e){if(function(){void 0===ne&&(ne="labels"in HTMLInputElement.prototype);return ne}
1()){if("labels"in t&&t.labels&&t.labels.length>0)return le(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&(0,y.I6)(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return n&&le(n,e)}},function(t){if("INPUT"===t.nodeName){var e=t,n=e.getAttribute("type");if("button"===n||"submit"===n||"reset"===n)return e.value}},function(t,e){if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return le(t,e)},function(t){return t.getAttribute("aria-label")},function(t,e){var n=t.getAttribute("aria-labelledby");if(n)return n.split(/\s+/).map((function(e){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)})).filter((function(t){return Boolean(t)})).map((function(t){return le(t,e)})).join(" ")},function(t){return t.getAttribute("alt")},function(t){return t.getAttribute("name")},function(t){return t.getAttribute("title")},function(t){return t.getAttribute("placeholder")},function(t,e){if("options"in t&&t.options.length>0)return le(t.options[0],e)}],ie=[function(t,e){return le(t,e)}],se=10;function ae(t,e,n){for(var r=t,o=0;o<=se&&r&&"BODY"!==r.nodeName&&"HTML"!==r.nodeName&&"HEAD"!==r.nodeName;){for(var i=0,s=n;i<s.length;i++){var a=(0,s[i])(r,e);if("string"==typeof a){var c=a.trim();if(c)return ue(ce(c))}}if("FORM"===r.nodeName)break;r=Xt(r),o+=1}}function ce(t){return t.replace(/\s+/g," ")}function ue(t){return t.length>100?"".concat((0,st._R)(t,100)," [...]"):t}function le(t,e){if(!t.isContentEditable){if("innerText"in t){var n=t.innerText,r=function(e){for(var r=t.querySelectorAll(e),o=0;o<r.length;o+=1){var i=r[o];if("innerText"in i){var s=i.innerText;s&&s.trim().length>0&&(n=n.replace(s,""))}}};return(0,Yt.lT)()&&r("script, style"),r("[".concat(Qt,"]")),e&&r("[".concat(e,"]")),n}return t.textContent}}var de,fe=[Qt,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],pe=[ve,function(t){if(t.id&&!me(t.id))return"#".concat(Jt(t.id))}],ge=[ve,function(t){if("BODY"===t.tagName)return;for(var e=function(t){var e;if(t.classList)return t.classList;var n=null===(e=t.getAttribute("class"))||void 0===e?void 0:e.trim();return n?n.split(/\s+/):[]}(t),n=0;n<e.length;n+=1){var r=e[n];if(!me(r))return"".concat(Jt(t.tagName),".").concat(Jt(r))}},function(t){return Jt(t.tagName)}];function he(t,e){for(var n="",r=t;r&&"HTML"!==r.nodeName;){var o=be(r,pe,_e,e,n);if(o)return o;n=be(r,ge,we,e,n)||Se(ye(r),n),r=Xt(r)}return n}function me(t){return/[0-9]/.test(t)}function ve(t,e){if(e&&(o=i(e)))return o;for(var n=0,r=fe;n<r.length;n++){var o;if(o=i(r[n]))return o}function i(e){if(t.hasAttribute(e))return"".concat(Jt(t.tagName),"[").concat(e,'="').concat(Jt(t.getAttribute(e)),'"]')}}function ye(t){for(var e=Xt(t).firstElementChild,n=1;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;return"".concat(Jt(t.tagName),":nth-of-type(").concat(n,")")}function be(t,e,n,r,o){for(var i=0,s=e;i<s.length;i++){var a=(0,s[i])(t,r);if(a){var c=Se(a,o);if(n(t,c))return c}}}function _e(t,e){return 1===t.ownerDocument.querySelectorAll(e).length}function we(t,e){return 1===Xt(t).querySelectorAll(function(){if(void 0===de)try{document.querySelector(":scope"),de=!0}catch(t){de=!1}return de}()?Se(":scope",e):e).length}function Se(t,e){return e?"".concat(t,">").concat(e):t}var Ee=d.OY,Ce=100;function ke(t,e){var n,r=[],o=0;function i(t){t.stopObservable.subscribe(s),r.push(t),(0,H.DJ)(n),n=(0,H.wg)(a,Ee)}function s(){1===o&&r.every((function(t){return t.isStopped()}))&&(o=2,e(r))}function a(){(0,H.DJ)(n),0===o&&(o=1,s())}return i(t),{tryAppend:function(t){return 0===o&&(r.length>0&&(e=r[r.length-1].event,n=t.event,!(e.target===n.target&&(s=e,c=n,Math.sqrt(Math.pow(s.clientX-c.clientX,2)+Math.pow(s.clientY-c.clientY,2))<=Ce)&&e.timeStamp-n.timeStamp<=Ee))?(a(),!1):(i(t),!0));var e,n,s,c},stop:function(){a()}}}function Te(){var t=window.getSelection();return!t||t.isCollapsed}function xe(t){return t.target instanceof Element&&!1!==t.isPrimary}var Ae=3;function Re(t,e){if(function(t){if(t.some((function(t){return t.getUserActivity().selection||t.getUserActivity().scroll})))return!1;for(var e=0;e<t.length-(Ae-1);e+=1)if(t[e+Ae-1].event.timeStamp-t[e].event.timeStamp<=d.OY)return!0;return!1}(t))return e.addFrustration("rage_click"),t.some(Ie)&&e.addFrustration("dead_click"),e.hasError&&e.addFrustration("error_click"),{isRage:!0};var n=t.some((function(t){return t.getUserActivity().selection}));return t.forEach((function(t){t.hasError&&t.addFrustration("error_click"),Ie(t)&&!n&&t.addFrustration("dead_click")})),{isRage:!1}}var Oe='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *';function Ie(t){return!(t.hasPageActivity||t.getUserActivity().input||t.getUserActivity().scroll)&&(e=t.event.target,n=Oe,!(e.matches?e.matches(n):e.msMatchesSelector&&e.msMatchesSelector(n)));var e,n}var Ne=10*d.OY,Le=5*d.iW;function Me(t,e,n){var r,o=new Dt.W(Le),i=new z.c;t.subscribe(10,(function(){o.reset()})),t.subscribe(5,c);var s=function(t,e){var n,r,o=e.onPointerDown,i=e.onPointerUp,s={selection:!1,input:!1,scroll:!1},a=[(0,q.q2)(t,window,q.gX.POINTER_DOWN,(function(t){xe(t)&&(n=Te(),s={selection:!1,input:!1,scroll:!1},r=o(t))}),{capture:!0}),(0,q.q2)(t,window,q.gX.SELECTION_CHANGE,(function(){n&&Te()||(s.selection=!0)}),{capture:!0}),(0,q.q2)(t,window,q.gX.SCROLL,(function(){s.scroll=!0}),{capture:!0,passive:!0}),(0,q.q2)(t,window,q.gX.POINTER_UP,(function(t){if(xe(t)&&r){var e=s;i(r,t,(function(){return e})),r=void 0}}),{capture:!0}),(0,q.q2)(t,window,q.gX.INPUT,(function(){s.input=!0}),{capture:!0})];return{stop:function(){a.forEach((function(t){return t.stop()}))}}}(n,{onPointerDown:function(r){return function(t,e,n,r){var o=(s=r,a=t.actionNameAttribute,c=s.target.getBoundingClientRect(),{type:"click",target:{width:Math.round(c.width),height:Math.round(c.height),selector:he(s.target,a)},position:{x:Math.round(s.clientX-c.left),y:Math.round(s.clientY-c.top)},name:te(s.target,a)}),i=!1;var s,a,c;return Kt(e,n,t,(function(t){i=t.hadActivity}),jt),{clickActionBase:o,hadActivityOnPointerDown:function(){return i}}}(n,t,e,r)},onPointerUp:function(r,s,c){var u=r.clickActionBase,l=r.hadActivityOnPointerDown;return function(t,e,n,r,o,i,s,a,c,u){var l=De(e,r,c,s,a);i(l);var d=Kt(e,n,t,(function(t){t.hadActivity&&t.end<l.startClocks.timeStamp?l.discard():t.hadActivity?l.stop(t.end):u()?l.stop(l.startClocks.timeStamp):l.stop()}),Ne).stop,f=e.subscribe(5,(function(t){var e=t.endClocks;l.stop(e.timeStamp)}
1)),p=o.subscribe((function(){l.stop()}));l.stopObservable.subscribe((function(){f.unsubscribe(),d(),p.unsubscribe()}))}(n,t,e,o,i,a,u,s,c,l)}}).stop;return{stop:function(){c(),i.notify(),s()},actionContexts:{findActionId:function(t){return o.findAll(t)}}};function a(t){if(!r||!r.tryAppend(t)){var e=t.clone();r=ke(t,(function(t){!function(t,e){var n=Re(t,e).isRage;n?(t.forEach((function(t){return t.discard()})),e.stop((0,d.nx)()),e.validate(t.map((function(t){return t.event})))):(e.discard(),t.forEach((function(t){return t.validate()})))}(t,e)}))}}function c(){r&&r.stop()}}function De(t,e,n,r,o){var i,s=(0,st.lk)(),a=(0,d.M8)(),c=e.add(s,a.relative),u=Ht({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(Array.isArray(t.action.id)?(0,y.mK)(t.action.id,s):t.action.id===s)}}),l=0,f=[],p=new z.c;function g(t){0===l&&(l=1,(i=t)?c.close((0,d.gs)(i)):c.remove(),u.stop(),p.notify())}return{event:o,stop:g,stopObservable:p,get hasError(){return u.eventCounts.errorCount>0},get hasPageActivity(){return void 0!==i},getUserActivity:n,addFrustration:function(t){f.push(t)},startClocks:a,isStopped:function(){return 1===l||2===l},clone:function(){return De(t,e,n,r,o)},validate:function(e){if(g(),1===l){var n=u.eventCounts,c=n.resourceCount,p=n.errorCount,h=n.longTaskCount,m=(0,y.kp)({type:"click",duration:i&&(0,d.vk)(a.timeStamp,i),startClocks:a,id:s,frustrationTypes:f,counts:{resourceCount:c,errorCount:p,longTaskCount:h},events:null!=e?e:[o],event:o},r);t.notify(1,m),l=2}},discard:function(){g(),l=2}}}function Pe(t,e){var n=Ue(t)?{action:{id:t.id,loading_time:(0,d.Zj)(t.duration),frustration:{type:t.frustrationTypes},error:{count:t.counts.errorCount},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_dd:{action:{target:t.target,position:t.position}}}:void 0;return{customerContext:Ue(t)?void 0:t.context,rawRumEvent:(0,h.kg)({action:{id:(0,st.lk)(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:"action",view:{in_foreground:e.wasInPageStateAt("active",t.startClocks.relative)}},n),startTime:t.startClocks.relative,domainContext:Ue(t)?{events:t.events}:{}}}function Ue(t){return"custom"!==t.type}var Ve=n(54246),$e=n(41791),Fe=n(85794),ze=n(89380);var Be=n(38346);function Ge(t,e,n,r){var o=new z.c;return function(t){var e=(0,ze.l)([w.bP.error]).subscribe((function(e){return t.notify({startClocks:(0,d.M8)(),message:e.message,stack:e.stack,fingerprint:e.fingerprint,source:Fe.g.CONSOLE,handling:"handled",handlingStack:e.handlingStack})}))}(o),(0,Ve.mj)(o),function(t,e){var n=(0,Be.u)(t,[Be.V.cspViolation,Be.V.intervention]).subscribe((function(t){var n={startClocks:(0,d.M8)(),message:t.message,stack:t.stack,type:t.subtype,source:Fe.g.REPORT,handling:"unhandled",originalError:t.originalReport};return"securitypolicyviolation"===t.originalReport.type&&(n.csp={disposition:t.originalReport.disposition}),e.notify(n)}))}(e,o),o.subscribe((function(e){return t.notify(14,{error:e})})),function(t,e,n){return t.subscribe(14,(function(r){var o=r.error,i=r.customerContext,s=r.savedCommonContext;t.notify(12,(0,y.kp)({customerContext:i,savedCommonContext:s},function(t,e,n){var r={date:t.startClocks.timeStamp,error:{id:(0,st.lk)(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser",fingerprint:t.fingerprint,csp:t.csp},type:"error",view:{in_foreground:e.wasInPageStateAt("active",t.startClocks.relative)}},o=n.findFeatureFlagEvaluations(t.startClocks.relative);o&&!(0,x.RI)(o)&&(r.feature_flags=o);return{rawRumEvent:r,startTime:t.startClocks.relative,domainContext:{error:t.originalError}}}(o,e,n)))})),{addError:function(e,n){var r=e.error,o=e.handlingStack,i=e.startClocks,s=e.context,a=r instanceof Error?(0,$e.T)(r):void 0,c=(0,m.As)({stackTrace:a,originalError:r,handlingStack:o,startClocks:i,nonErrorPrefix:"Provided",source:Fe.g.CUSTOM,handling:"handled"});t.notify(14,{customerContext:s,savedCommonContext:n,error:c})}}}(t,n,r)}function He(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n=e.map((function(t){return t.toJSON()})).filter(Y).filter((function(e){return n=e,r=t.startClocks.relative,o=qe({startTime:t.startClocks.relative,duration:t.duration}),i=1,n.startTime>
1=r-i&&qe(n)<=(0,d.Gw)(o,i);var n,r,o,i}));return 1===n.length?n[0]:void 0}}}function qe(t){return(0,d.Gw)(t.startTime,t.duration)}function je(t,e,n,r){t.subscribe(8,(function(o){var i=function(t,e,n,r){var o,i=He(t),s=i?(0,d.FR)(i.startTime):t.startClocks,a=Ke(e,n,s),c=function(t,e){var n=t.traceSampled&&t.traceId&&t.spanId;if(!n)return;return{_dd:{span_id:t.spanId.toDecimalString(),trace_id:t.traceId.toDecimalString(),rule_psr:Je(e)}}}(t,e);if(!a&&!c)return;var u="xhr"===t.type?"xhr":"fetch",l=i?Ze(i):void 0,f=function(t,e,n){return t.wasInPageStateDuringPeriod("frozen",e.relative,n)?void 0:(0,d.Zj)(n)}(r,s,t.duration),p=Xe(r,s,null!==(o=null==i?void 0:i.duration)&&void 0!==o?o:t.duration),g=(0,h.kg)({date:s.timeStamp,resource:{id:(0,st.lk)(),type:u,duration:f,method:t.method,status_code:t.status,url:ot(t.url)?it(t.url):t.url},type:"resource",_dd:{discarded:!a}},c,l,p);return{startTime:s.relative,rawRumEvent:g,domainContext:{performanceEntry:i,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error,isAborted:t.isAborted}}}(o,e,n,r);i&&t.notify(12,i)})),t.subscribe(0,(function(o){for(var i=0,s=o;i<s.length;i++){var a=s[i];if(a.entryType===pt.RESOURCE&&("xmlhttprequest"!==(u=a).initiatorType&&"fetch"!==u.initiatorType)){var c=We(a,e,n,r);c&&t.notify(12,c)}}var u}))}function We(t,e,n,r){var o=(0,d.FR)(t.startTime),i=Ke(e,n,o),s=function(t,e){var n=t.traceId;if(!n)return;return{_dd:{trace_id:t.traceId,rule_psr:Je(e)}}}(t,e);if(i||s){var a,c=function(t){var e=t.name;if(!(0,W.AY)(e))return(0,g.A2)('Failed to construct URL for "'.concat(t.name,'"')),"other";for(var n=(0,W.L2)(e),r=0,o=Z;r<o.length;r++){var i=o[r],s=i[0];if((0,i[1])(t.initiatorType,n))return s}return"other"}(t),u=Ze(t),l=Xe(r,o,t.duration),f=(0,h.kg)({date:o.timeStamp,resource:{id:(0,st.lk)(),type:c,url:t.name,status_code:(a=t.responseStatus,0===a?void 0:a)},type:"resource",_dd:{discarded:!i}},s,u,l);return{startTime:o.relative,rawRumEvent:f,domainContext:{performanceEntry:t}}}}function Ke(t,e,n){return t.trackResources&&e.findTrackedSession(n.relative)}function Ze(t){var e,n,r,o,i=t.renderBlockingStatus;return{resource:(0,y.kp)({duration:(e=t,n=e.duration,r=e.startTime,o=e.responseEnd,0===n&&r<o?(0,d.Zj)((0,d.vk)(r,o)):(0,d.Zj)(n)),render_blocking_status:i},tt(t),X(t))}}function Je(t){return(0,k.Et)(t.traceSampleRate)?t.traceSampleRate/100:void 0}function Xe(t,e,n){if((0,c.sr)(c.R9.RESOURCE_PAGE_STATES))return{_dd:{page_states:t.findAll(e.relative,n),page_was_discarded:String(document.wasDiscarded)}}}var Ye=10*d.iW;var Qe,tn,en=10*d.iW,nn=!1;function rn(t,e,n,r,o){var i=1/0,s=(0,q.lQ)(e,r,[q.gX.POINTER_DOWN,q.gX.KEY_DOWN],(function(t){i=t.timeStamp}),{capture:!0,once:!0}).stop,a=0,u=t.subscribe(0,(function(t){var r=(0,y.Uk)(t,(function(t){return t.entryType===pt.LARGEST_CONTENTFUL_PAINT&&t.startTime<i&&t.startTime<n.timeStamp&&t.startTime<en&&t.size>a}));if(r){var s=void 0;r.element&&(s=he(r.element,e.actionNameAttribute)),(0,c.sr)(c.R9.ZERO_LCP_TELEMETRY)&&function(t,e){if(nn)return;var n=0===t.startTime?"LCP with startTime = 0":void 0!==Qe&&t.startTime<Qe.startTime?"LCP with startTime < previous LCP":void 0!==Qe&&t.size<Qe.size?"LCP with size < previous LCP":void 0;n&&(nn=!0,(0,g.A2)(n,{debug:{entry:on(t),previousLcp:Qe,timeOrigin:performance.timeOrigin,now:(0,d.$S)(),lcpEntries:e.map(on)}}));Qe=on(t)}(r,t.filter((function(t){return t.entryType===pt.LARGEST_CONTENTFUL_PAINT}))),o({value:r.startTime,targetSelector:s}),a=r.size}})).unsubscribe;return{stop:function(){s(),u()}}}function on(t){var e=t.toJSON();return delete e.element,e}function sn(t,e,n,r){var o={},i=function(t,e){return{stop:t.subscribe(0,(function(t){for(var n=0,r=t;n<r.length;n++){var o=r[n];o.entryType===pt.NAVIGATION&&e({domComplete:o.domComplete,domContentLoaded:o.domContentLoadedEventEnd,domInteractive:o.domInteractive,loadEvent:o.loadEventEnd,firstByte:o.responseStart>=0&&o.responseStart<=(0,d.$S)()?o.responseStart:void 0})}})).unsubscribe}}(t,(function(t){n(t.loadEvent),o.navigationTimings=t,r()})).stop,s=function(t,e){var n,r;return void 0===e&&(e=window),"hidden"===document.visibilityState?n=0:(n=1/0,r=(0,q.lQ)(t,e,[q.gX.PAGE_HIDE,q.gX.VISIBILITY_CHANGE],(function(t){t.type!==q.gX.PAGE_HIDE&&"hidden"
1!==document.visibilityState||(n=t.timeStamp,r())}),{capture:!0}).stop),{get timeStamp(){return n},stop:function(){null==r||r()}}}(e),a=function(t,e,n){return{stop:t.subscribe(0,(function(t){var r=(0,y.I6)(t,(function(t){return t.entryType===pt.PAINT&&"first-contentful-paint"===t.name&&t.startTime<e.timeStamp&&t.startTime<Ye}));r&&n(r.startTime)})).unsubscribe}}(t,s,(function(t){o.firstContentfulPaint=t,r()})).stop,c=rn(t,e,s,window,(function(t){o.largestContentfulPaint=t,r()})).stop,u=function(t,e,n,r){return{stop:t.subscribe(0,(function(t){var o=(0,y.I6)(t,(function(t){return t.entryType===pt.FIRST_INPUT&&t.startTime<n.timeStamp}));if(o){var i=(0,d.vk)(o.startTime,o.processingStart),s=void 0;o.target&&ct(o.target)&&(s=he(o.target,e.actionNameAttribute)),r({delay:i>=0?i:0,time:o.startTime,targetSelector:s})}})).unsubscribe}}(t,e,s,(function(t){o.firstInput=t,r()})).stop;return{stop:function(){i(),a(),c(),u(),s.stop()},initialViewMetrics:o}}function an(t,e,n){if(!bt(pt.LAYOUT_SHIFT))return{stop:C.l};var r=0;n({value:0});var o=function(){var t,e,n,r,o=0,i=0;return{update:function(s){var a,c;void 0===t||s.startTime-e>=d.OY||s.startTime-t>=5*d.OY?(t=e=s.startTime,o=s.value,i=0,n=void 0):(o+=s.value,e=s.startTime),s.value>i&&(i=s.value,r=s.startTime,n=(null===(a=s.sources)||void 0===a?void 0:a.length)?null===(c=(0,y.I6)(s.sources,(function(t){return!!t.node&&ct(t.node)})))||void 0===c?void 0:c.node:void 0)},value:function(){return o},largestLayoutShiftTarget:function(){return n},largestLayoutShiftTime:function(){return r}}}();return{stop:e.subscribe(0,(function(e){for(var i=0,s=e;i<s.length;i++){var a=s[i];if(a.entryType===pt.LAYOUT_SHIFT&&!a.hadRecentInput&&(o.update(a),o.value()>r)){r=o.value();var c=(0,k.LI)(r,4),u=o.largestLayoutShiftTarget(),l=void 0;u&&u.isConnected&&(l=he(u,t.actionNameAttribute)),n({value:c,targetSelector:l})}}})).unsubscribe}}var cn=0,un=1/0,ln=0;var dn,fn=function(){return tn?cn:window.performance.interactionCount||0},pn=10,gn=1*d.iW;function hn(t,e,n,r){if(!(bt(pt.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:C.l,stop:C.l};var o,i=function(t){"interactionCount"in performance||tn||(tn=new window.PerformanceObserver((0,u.dm)((function(t){t.getEntries().forEach((function(t){var e=t;e.interactionId&&(un=Math.min(un,e.interactionId),ln=Math.max(ln,e.interactionId),cn=(ln-un)/7+1)}))})))).observe({type:"event",buffered:!0,durationThreshold:0});var e="initial_load"===t?0:fn(),n={stopped:!1};function r(){return fn()-e}return{getViewInteractionCount:function(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount:function(){n={stopped:!0,interactionCount:r()}}}}(n),s=i.getViewInteractionCount,a=i.stopViewInteractionCount,c=1/0,l=function(t){var e=[];function n(){e.sort((function(t,e){return e.duration-t.duration})).splice(pn)}return{process:function(t){var r=e.findIndex((function(e){return t.interactionId===e.interactionId})),o=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.length<pn||t.duration>o.duration)&&(e.push(t),n())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}(s),d=-1;return{getInteractionToNextPaint:function(){return d>=0?{value:Math.min(d,gn),targetSelector:o}:s()?{value:0}:void 0},setViewEnd:function(t){c=t,a()},stop:r.subscribe(0,(function(n){for(var r=0,i=n;r<i.length;r++){var s=i[r];(s.entryType===pt.EVENT||s.entryType===pt.FIRST_INPUT)&&s.interactionId&&s.startTime>=e&&s.startTime<=c&&l.process(s)}var a=l.estimateP98Interaction();a&&a.duration!==d&&(d=a.duration,o=a.target&&ct(a.target)?he(a.target,t.actionNameAttribute):void 0)})).unsubscribe}}function mn(){var t,e=window.visualViewport;return t=e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0,Math.round(t)}function vn(){var t,e=window.visualViewport;return t=e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0,Math.round(t)}function yn(t){return dn||(dn=function(t){return new z.c((function(e){var n=(0,C.n)((function(){e.notify(bn())}),200).throttled;return(0,q.q2)(t,window,q.gX.RESIZE,n,{capture:!0,passive:!0}).stop}))}(t)),dn}
1function bn(){var t=window.visualViewport;return t?{width:Number(t.width*t.scale),height:Number(t.height*t.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}var _n=d.OY;function wn(t,e,n,r){void 0===r&&(r=function(t,e){void 0===e&&(e=_n);return new z.c((function(n){function r(){var t,e,r,o;n.notify((t=vn(),e=bn().height,r=Math.round((document.scrollingElement||document.documentElement).scrollHeight),o=Math.round(e+t),{scrollHeight:r,scrollDepth:o,scrollTop:t}))}if(window.ResizeObserver){var o=(0,C.n)(r,e,{leading:!1,trailing:!0}),i=document.scrollingElement||document.documentElement,s=new ResizeObserver((0,u.dm)(o.throttled));s.observe(i);var a=(0,q.q2)(t,window,q.gX.SCROLL,o.throttled,{passive:!0});return function(){o.cancel(),s.unobserve(i),a.stop()}}}))}(t));var o=0,i=0,s=0,a=r.subscribe((function(t){var r=t.scrollDepth,a=t.scrollTop,c=t.scrollHeight,u=!1;if(r>o&&(o=r,u=!0),c>i){i=c;var l=(0,d.$S)();s=(0,d.vk)(e.relative,l),u=!0}u&&n({maxDepth:Math.min(o,i),maxDepthScrollTop:a,maxScrollHeight:i,maxScrollHeightTime:s})}));return{stop:function(){return a.unsubscribe()}}}function Sn(t,e,n,r,o,i){var s={},a=function(t,e,n,r,o,i){var s="initial_load"===r,a=!0,c=[];function u(){!a&&!s&&c.length>0&&i(Math.max.apply(Math,c))}return{stop:Kt(t,e,n,(function(t){a&&(a=!1,t.hadActivity&&c.push((0,d.vk)(o.timeStamp,t.end)),u())}
1)).stop,setLoadEvent:function(t){s&&(s=!1,c.push(t),u())}}}(t,e,n,o,i,(function(t){s.loadingTime=t,r()})),c=a.stop,u=a.setLoadEvent,l=wn(n,i,(function(t){s.scroll=t})).stop,f=an(n,t,(function(t){s.cumulativeLayoutShift=t,r()})).stop,p=hn(n,i.relative,o,t),g=p.stop,h=p.getInteractionToNextPaint;return{stop:function(){c(),f(),l()},stopINPTracking:g,setLoadEvent:u,setViewEnd:p.setViewEnd,getCommonViewMetrics:function(){return s.interactionToNextPaint=h(),s}}}var En=3e3,Cn=5*d.iW,kn=5*d.iW;function Tn(t,e,n,r,o,i,s){var a,c=new Set,u=l("initial_load",(0,d.Oc)(),s);function l(o,i,s){var a=function(t,e,n,r,o,i,s){void 0===i&&(i=(0,d.M8)());var a,c,u,l,f=(0,st.lk)(),p=new z.c,g={},h=0,m=(0,x.yG)(r),v=!0;s&&(c=s.name,u=s.service,l=s.version);var y={id:f,name:c,startClocks:i,service:u,version:l};t.notify(2,y),t.notify(3,y);var b=(0,C.n)(V,En,{leading:!1}),_=b.throttled,S=b.cancel,E=Sn(t,e,n,_,o,i),k=E.setLoadEvent,T=E.setViewEnd,A=E.stop,R=E.stopINPTracking,O=E.getCommonViewMetrics,I="initial_load"===o?sn(t,n,k,_):{stop:C.l,initialViewMetrics:{}},N=I.stop,L=I.initialViewMetrics,M=function(t,e,n){var r=Ht({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{stop:r.stop,eventCounts:r.eventCounts}}(t,f,_),D=M.stop,P=M.eventCounts,U=(0,H.yb)(V,Cn);function V(){S(),h+=1;var e=void 0===a?(0,d.nx)():a.timeStamp;t.notify(4,{customTimings:g,documentVersion:h,id:f,name:c,service:u,version:l,loadingType:o,location:m,startClocks:i,commonViewMetrics:O(),initialViewMetrics:L,duration:(0,d.vk)(i.timeStamp,e),isActive:void 0===a,sessionIsActive:v,eventCounts:P})}return V(),{name:c,service:u,version:l,stopObservable:p,end:function(e){var n,r,o=this;void 0===e&&(e={}),a||(a=null!==(n=e.endClocks)&&void 0!==n?n:(0,d.M8)(),v=null===(r=e.sessionIsActive)||void 0===r||r,t.notify(5,{endClocks:a}),t.notify(6,{endClocks:a}),(0,H.vG)(U),T(a.relative),A(),V(),(0,H.wg)((function(){o.stop()}),kn))},stop:function(){N(),D(),R(),p.notify()},addTiming:function(t,e){if(!a){var n=(0,d.pu)(e)?e:(0,d.vk)(i.timeStamp,e);g[function(t){var e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");e!==t&&w.Vy.warn("Invalid timing name: ".concat(t,", sanitized to: ").concat(e));return e}(t)]=n,_()}}}}(e,n,r,t,o,i,s);return c.add(a),a.stopObservable.subscribe((function(){c.delete(a)})),a}return e.subscribe(10,(function(){u=l("route_change",void 0,{name:u.name,service:u.service,version:u.version})})),e.subscribe(9,(function(){u.end({sessionIsActive:!1})})),e.subscribe(11,(function(t){t.reason!==F.y5.UNLOADING&&t.reason!==F.y5.PAGEHIDE||u.end()})),i&&(a=function(t){return t.subscribe((function(t){var e,n,r,o,i=t.oldLocation,s=t.newLocation;n=s,(e=i).pathname===n.pathname&&(r=n.hash,""!==(o=r.substring(1))&&document.getElementById(o)||xn(n.hash)===xn(e.hash))||(u.end(),u=l("route_change"))}))}(o)),{addTiming:function(t,e){void 0===e&&(e=(0,d.nx)()),u.addTiming(t,e)},startView:function(t,e){u.end({endClocks:e}),u=l("route_change",e,t)},stop:function(){null==a||a.unsubscribe(),u.end(),c.forEach((function(t){return t.stop()}))}}}function xn(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function An(t,e,n,r,o,i,s,a,c){return t.subscribe(4,(function(n){return t.notify(12,function(t,e,n,r,o){var i,s,a,c,u,l,f,p,g,h,m,v,y,b,_=r.getReplayStats(t.id),w=n.findFeatureFlagEvaluations(t.startClocks.relative),S=o.findAll(t.startClocks.relative,t.duration),E={_dd:{document_version:t.documentVersion,replay_stats:_,page_states:S,configuration:{start_session_replay_recording_manually:e.startSessionReplayRecordingManually}},date:t.startClocks.timeStamp,type:"view",view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:null===(i=t.commonViewMetrics.cumulativeLayoutShift)||void 0===i?void 0:i.value,cumulative_layout_shift_target_selector:null===(s=t.commonViewMetrics.cumulativeLayoutShift)||void 0===s?void 0:s.targetSelector,first_byte:(0,d.Zj)(null===(a=t.initialViewMetrics.navigationTimings)||void 0===a?void 0:a.firstByte),dom_complete:(0,d.Zj)(null===(c=t.initialViewMetrics.navigationTimings)||void 0===c?void 0:c.domComplete),dom_content_loaded:(0,d.Zj)(null===(u=t.initialViewMetrics.navigationTimings)||void 0===u?void 0:u.domContentLoaded),dom_interactive:(0,d.Zj)(null===(l=t.initialViewMetrics.navigationTimings)||void 0===l?void 0:l.domInteractive),error:{count:t.eventCounts.errorCount},first_contentful_paint:(0,d.Zj)(t.initialViewMetrics.firstContentfulPaint),first_input_delay:(0,d.Zj)(null===(f=t.initialViewMetrics.firstInput)||void 0===f?void 0:f.delay),first_input_time:(0,d.Zj)(null===(p=t.initialViewMetrics.firstInput)||void 0===p?void 0:p.time),first_input_target_selector:null===(g=t.initialViewMetrics.firstInput)||void 0===g?void 0:g.targetSelector,interaction_to_next_paint:(0,d.Zj)(null===(h=t.commonViewMetrics.interactionToNextPaint)||void 0===h?void 0:h.value),interaction_to_next_paint_target_selector:null===(m=t.commonViewMetrics.interactionToNextPaint)||void 0===m?void 0:m.targetSelector,is_active:t.isActive,name:t.name,largest_contentful_paint:(0,d.Zj)(null===(v=t.initialViewMetrics.largestContentfulPaint)||void 0===v?void 0:v.value),largest_contentful_paint_target_selector:null===(y=t.initialViewMetrics.largestContentfulPaint)||void 0===y?void 0:y.targetSelector,load_event:(0,d.Zj)(null===(b=t.initialViewMetrics.navigationTimings)||void 0===b?void 0:b.loadEvent),loading_time:Rn((0,d.Zj)(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:(0,d.Zj)(t.duration)},feature_flags:w&&!(0,x.RI)(w)?w:void 0,display:t.commonViewMetrics.scroll?{scroll:{max_depth:t.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:t.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:t.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:(0,d.Zj)(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!_||void 0,is_active:!!t.sessionIsActive&&void 0},privacy:{replay_level:e.defaultPrivacyLevel}};(0,x.RI)(t.customTimings)||(E.view.custom_timings=(0,x.LG)(t.customTimings,d.Zj));return{rawRumEvent:E,startTime:t.startClocks.relative,domainContext:{location:t.location}}}(n,e,i,a,s))})),Tn(n,t,r,e,o,!e.trackViewsManually,c)}function Rn(t){return(0,k.Et)(t)&&t<0?void 0:t}var On=n(46614),In="rum";function Nn(t,e,n){var r=(0,On.ox)(t,In,(function(e){return function(t,e){var n;n=function(t){return"0"===t||"1"===t||"2"===t}(e)?e:(0,k.ic)(t.sessionSampleRate)?(0,k.ic)(t.sessionReplaySampleRate)?"1":"2":"0";return{trackingType:n,isTracked:Ln(n)}}(t,e)}),n);return r.expireObservable.subscribe((function(){e.notify(9)}
1)),r.renewObservable.subscribe((function(){e.notify(10)})),{findTrackedSession:function(t){var e=r.findActiveSession(t);if(e&&Ln(e.trackingType))return{id:e.id,sessionReplayAllowed:"1"===e.trackingType}},expire:r.expire,expireObservable:r.expireObservable}}function Ln(t){return"2"===t||"1"===t}var Mn=n(20685);var Dn=Mt.A;function Pn(t,e){var n=(0,x.yG)(e);return new z.c((function(r){var o=function(t,e){var n=(0,qt.H)(history,"pushState",(function(t){(0,t.onPostCall)(e)})).stop,r=(0,qt.H)(history,"replaceState",(function(t){(0,t.onPostCall)(e)})).stop,o=(0,q.q2)(t,window,q.gX.POP_STATE,e).stop;return{stop:function(){n(),r(),o()}}}(t,s).stop,i=function(t,e){return(0,q.q2)(t,window,q.gX.HASH_CHANGE,e)}(t,s).stop;function s(){if(n.href!==e.href){var t=(0,x.yG)(e);r.notify({newLocation:t,oldLocation:n}),n=t}}return function(){o(),i()}}))}var Un=Mt.A;var Vn,$n,Fn,zn=10*d.OY;function Bn(){0!==Vn.batchCount&&((0,g.A2)("Customer data measures",Vn),qn())}function Gn(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function Hn(t,e){t.sum+=e.sum,t.min=Math.min(t.min,e.min),t.max=Math.max(t.max,e.max)}function qn(){Vn={batchCount:0,batchBytesCount:{min:1/0,max:0,sum:0},batchMessagesCount:{min:1/0,max:0,sum:0},globalContextBytes:{min:1/0,max:0,sum:0},userContextBytes:{min:1/0,max:0,sum:0},featureFlagBytes:{min:1/0,max:0,sum:0}}}function jn(){Fn=!1,$n={globalContextBytes:{min:1/0,max:0,sum:0},userContextBytes:{min:1/0,max:0,sum:0},featureFlagBytes:{min:1/0,max:0,sum:0}}}var Wn=4e3,Kn=500,Zn=Mt.A;function Jn(t,e){void 0===e&&(e=Kn);var n,r=new Dt.W(Zn,Wn);i(Xn(),(0,d.$S)());var o=(0,q.lQ)(t,window,[q.gX.PAGE_SHOW,q.gX.FOCUS,q.gX.BLUR,q.gX.VISIBILITY_CHANGE,q.gX.RESUME,q.gX.FREEZE,q.gX.PAGE_HIDE],(function(t){i(function(t){if(t.type===q.gX.FREEZE)return"frozen";if(t.type===q.gX.PAGE_HIDE)return t.persisted?"frozen":"terminated";return Xn()}(t),t.timeStamp)}),{capture:!0}).stop;function i(t,e){void 0===e&&(e=(0,d.$S)()),t!==n&&(n=t,r.closeActive(e),r.add({state:n,startTime:e},e))}var s={findAll:function(t,n){var o=r.findAll(t,n);if(0!==o.length){for(var i=[],s=Math.max(0,o.length-e),a=o.length-1;a>=s;a--){var c=o[a],u=(0,d.vk)(t,c.startTime);i.push({state:c.state,start:(0,d.Zj)(u)})}return i}},wasInPageStateAt:function(t,e){return s.wasInPageStateDuringPeriod(t,e,0)},wasInPageStateDuringPeriod:function(t,e,n){return r.findAll(e,n).some((function(e){return e.state===t}))},addPageState:i,stop:function(){o(),r.stop()}};return s}function Xn(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function Yn(t,e){var n=new Map;return t.subscribe(10,(function(){n.clear()})),{startDurationVital:function(t){n.set(t.name,t)},stopDurationVital:function(r){var o=n.get(r.name);if(o){var i=function(t,e){return{name:t.name,type:"duration",startClocks:t.startClocks,value:(0,d.vk)(t.startClocks.timeStamp,e.stopClocks.timeStamp),context:(0,h.kg)(t.context,e.context)}}(o,r);n.delete(i.name),function(t){return!e.wasInPageStateDuringPeriod("frozen",t.startClocks.relative,t.value)}(i)&&t.notify(12,function(t){var e;return{rawRumEvent:{date:t.startClocks.timeStamp,vital:{id:(0,st.lk)(),type:t.type,name:t.name,custom:(e={},e[t.name]=t.value,e)},type:"vital"},startTime:t.startClocks.relative,customerContext:t.context,domainContext:{}}}(i))}}}}var Qn=n(186);function tr(t,e){var n=window.cookieStore?function(t){return function(e,n){return(0,q.q2)(t,window.cookieStore,q.gX.CHANGE,(function(t){var r=(0,y.I6)(t.changed,(function(t){return t.name===e}))||(0,y.I6)(t.deleted,(function(t){return t.name===e}));r&&n(r.value)})).stop}}(t):nr;return new z.c((function(t){return n(e,(function(e){return t.notify(e)}))}))}var er=d.OY;function nr(t,e){var n=(0,st.rx)(document.cookie,t),r=(0,H.yb)((function(){var r=(0,st.rx)(document.cookie,t);r!==n&&e(r)}),er);return function(){(0,H.vG)(r)}}var rr="datadog-ci-visibility-test-execution-id";var or=n(62723);function ir(t,e){var n=e.session,r=e.viewContext,o=e.errorType,i=n?n.id:"no-session-id",s=[];void 0!==o&&s.push("error-type=".concat(o)),r&&(s.push("seed=".concat(r.id)),s.push("from=".concat(r.startClocks.timeStamp)));var a,c,u,l=(c=(a=t).site,u=a.subdomain||function(t){switch(t.site){case or.NW:case or.dV:return"app";case or.Bb:return"dd";default:return}}(a),"https://".concat(u?"".concat(u,"."):"").concat(c)),d="/rum/replay/sessions/".concat(i);return"".concat(l).concat(d,"?").concat(s.join("&"))}var sr,ar=n(34716),cr=10;function ur(t){return lr(t).segments_count}function lr(t){var e;return sr||(sr=new Map),sr.has(t)?e=sr.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},sr.set(t,e),sr.size>cr&&function(){if(!sr)return;if(sr.keys)sr.delete(sr.keys().next().value);else{var t=!0;sr.forEach((function(e,n){t&&(sr.delete(n),t=!1)}))}}()),e}var dr={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:T.WA.ALLOW,MASK:T.WA.MASK,MASK_USER_INPUT:T.WA.MASK_USER_INPUT},fr="data-dd-privacy",pr="allow",gr="mask",hr="mask-user-input",mr="hidden",vr="dd-privacy-allow",yr="dd-privacy-mask",br="dd-privacy-mask-user-input",_r="dd-privacy-hidden",wr="***",Sr="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",Er={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function Cr(t,e,n){if(n&&n.has(t))return n.get(t);var r=ft(t),o=r?Cr(r,e,n):e,i=kr(Tr(t),o);return n&&n.set(t,i),i}function kr(t,e){switch(e){case dr.HIDDEN:case dr.IGNORE:return e}switch(t){case dr.ALLOW:case dr.MASK:case dr.MASK_USER_INPUT:case dr.HIDDEN:case dr.IGNORE:return t;default:return e}}function Tr(t){if(ct(t)){var e=t.getAttribute(fr);if("BASE"===t.tagName)return dr.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return dr.MASK;if("hidden"===n.type)return dr.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return dr.MASK}return e===mr||t.classList.contains(_r)?dr.HIDDEN:e===gr||t.classList.contains(yr)?dr.MASK:e===hr||t.classList.contains(br)?dr.MASK_USER_INPUT:e===pr||t.classList.contains(vr)?dr.ALLOW:function(t){if("SCRIPT"===t.nodeName)return!0;
1if("LINK"===t.nodeName){var e=o("rel");return/preload|prefetch/i.test(e)&&"script"===o("as")||"shortcut icon"===e||"icon"===e}if("META"===t.nodeName){var n=o("name"),r=(e=o("rel"),o("property"));return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===e||"apple-touch-icon"===e||"shortcut icon"===e||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(r)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||t.hasAttribute("http-equiv")||"author"===n||"generator"===n||"framework"===n||"publisher"===n||"progid"===n||/^article:/.test(r)||/^product:/.test(r)||"google-site-verification"===n||"yandex-verification"===n||"csrf-token"===n||"p:domain_verify"===n||"verify-v1"===n||"verification"===n||"shopify-checkout-api-token"===n}function o(e){return(t.getAttribute(e)||"").toLowerCase()}return!1}(t)?dr.IGNORE:void 0}}function xr(t,e){switch(e){case dr.MASK:case dr.HIDDEN:case dr.IGNORE:return!0;case dr.MASK_USER_INPUT:return at(t)?Ar(t.parentNode):Ar(t);default:return!1}}function Ar(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;var e=t;if("INPUT"===e.tagName)switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!Er[e.tagName]}var Rr=function(t){return t.replace(/\S/g,"x")};function Or(t,e,n){var r,o=null===(r=t.parentElement)||void 0===r?void 0:r.tagName,i=t.textContent||"";if(!e||i.trim()){var s=n;if("SCRIPT"===o)i=wr;else if(s===dr.HIDDEN)i=wr;else if(xr(t,s))if("DATALIST"===o||"SELECT"===o||"OPTGROUP"===o){if(!i.trim())return}else i="OPTION"===o?wr:Rr(i);return i}}var Ir=new WeakMap;function Nr(t){return Ir.has(t)}function Lr(t){return Ir.get(t)}function Mr(t,e){var n=t.tagName,r=t.value;if(xr(t,e)){var o=t.type;if("INPUT"===n&&("button"===o||"submit"===o||"reset"===o))return r;if(!r||"OPTION"===n)return;return wr}return"OPTION"===n||"SELECT"===n?t.value:"INPUT"===n||"TEXTAREA"===n?r:void 0}var Dr=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,Pr=/^[A-Za-z]+:|^\/\//,Ur=/^data:.*,/i;function Vr(t,e){return t.replace(Dr,(function(t,n,r,o,i,s){var a=r||i||s;if(!e||!a||Pr.test(a)||Ur.test(a))return t;var c=n||o||"";return"url(".concat(c).concat(function(t,e){try{return(0,W.c$)(t,e).href}catch(e){return t}}(a,e)).concat(c,")")}))}var $r=/[^a-z1-6-_]/;function Fr(t){var e=t.toLowerCase().trim();return $r.test(e)?"div":e}function zr(t,e){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='".concat(t,"' height='").concat(e,"' style='background-color:silver'%3E%3C/svg%3E")}var Br={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},Gr={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},Hr={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},qr={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},jr={Play:0,Pause:1};function Wr(t){if(void 0!==t&&0!==t.length)return t.map((function(t){var e=t.cssRules||t.rules;return{cssRules:Array.from(e,(function(t){return t.cssText})),disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0}}))}function Kr(t,e,n,r){if(e===dr.HIDDEN)return null;var o=t.getAttribute(n);if(e===dr.MASK&&n!==fr&&!fe.includes(n)&&n!==r.actionNameAttribute){var i=t.tagName;switch(n){case"title":case"alt":case"placeholder":return wr}if("IMG"===i&&("src"===n||"srcset"===n)){var s=t;if(s.naturalWidth>0)return zr(s.naturalWidth,s.naturalHeight);var a=t.getBoundingClientRect(),c=a.width,u=a.height;return c>0||u>0?zr(c,u):Sr}if("SOURCE"===i&&("src"===n||"srcset"===n))return Sr;if("A"===i&&"href"===n)return wr;if(o&&(0,y.w1)(n,"data-"))return wr;if("IFRAME"===i&&"srcdoc"===n)return wr}return o&&"string"==typeof o&&ot(o)?it(o):o}function Zr(t){if(!t)return null;var e;try{e=t.rules||t.cssRules}catch(t){}return e?Vr(Array.from(e,(0,Yt.nr)()?Jr:Xr).join(""),t.href):null}function Jr(t){if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")){return t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2")}return Xr(t)}function Xr(t){return function(t){return"styleSheet"in t}(t)&&Zr(t.styleSheet)||t.cssText}function Yr(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:Gr.Document,childNodes:to(t,e),adoptedStyleSheets:Wr(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=lt(t);n&&e.serializationContext.shadowRootsController.addShadowRoot(t);return{type:Gr.DocumentFragment,childNodes:to(t,e),isShadowRoot:n,adoptedStyleSheets:n?Wr(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return n=t,{type:Gr.DocumentType,name:n.name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n,r=Fr(t.tagName),o=(s=t,"svg"===s.tagName||s instanceof SVGElement||void 0),i=kr(Tr(t),e.parentNodePrivacyLevel);var s;if(i===dr.HIDDEN){var a=t.getBoundingClientRect(),u=a.width,l=a.height;return{type:Gr.Element,tagName:r,attributes:(n={rr_width:"".concat(u,"px"),rr_height:"".concat(l,"px")},n[fr]=mr,n),childNodes:[],isSVG:o}}if(i===dr.IGNORE)return;var d=function(t,e,n){var r;if(e===dr.HIDDEN)return{};for(var o={},i=Fr(t.tagName),s=t.ownerDocument,a=0;a<t.attributes.length;a+=1){var u=t.attributes.item(a).name,l=Kr(t,e,u,n.configuration);null!==l&&(o[u]=l)}if(t.value&&("textarea"===i||"select"===i||"option"===i||"input"===i)){var d=Mr(t,e);void 0!==d&&(o.value=d)}if("option"===i&&e===dr.ALLOW){var f=t;f.selected&&(o.selected=f.selected)}if("link"===i){var p,g=Array.from(s.styleSheets).find((function(e){return e.href===t.href}));(p=Zr(g))&&g&&!(0,c.sr)(c.R9.DISABLE_REPLAY_INLINE_CSS)&&(o._cssText=p)}"style"===i&&t.sheet&&(p=Zr(t.sheet))&&(o._cssText=p);var h,m,v=t;if("input"!==i||"radio"!==v.type&&"checkbox"!==v.type||(e===dr.ALLOW?o.checked=!!v.checked:xr(v,e)&&delete o.checked),"audio"===i||"video"===i){var y=t;o.rr_mediaState=y.paused?"paused":"played"}
1var b=n.serializationContext;switch(b.status){case 0:h=Math.round(t.scrollTop),m=Math.round(t.scrollLeft),(h||m)&&b.elementsScrollPositions.set(t,{scrollTop:h,scrollLeft:m});break;case 1:b.elementsScrollPositions.has(t)&&(h=(r=b.elementsScrollPositions.get(t)).scrollTop,m=r.scrollLeft)}return m&&(o.rr_scrollLeft=m),h&&(o.rr_scrollTop=h),o}(t,i,e),f=[];if(function(t){return t.childNodes.length>0||ut(t)}(t)&&"style"!==r){f=to(t,e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===("head"===r)?e:(0,y.kp)({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:"head"===r}))}return{type:Gr.Element,tagName:r,attributes:d,childNodes:f,isSVG:o}}(t,e);case t.TEXT_NODE:return function(t,e){var n=Or(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0===n)return;return{type:Gr.Text,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:Gr.CDATA,textContent:""}}var n}(t,e);if(!n)return null;var r=Lr(t)||Qr++,o=n;return o.id=r,function(t,e){Ir.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),o}var Qr=1;function to(t,e){var n=[];return dt(t,(function(t){var r=Yr(t,e);r&&n.push(r)})),n}function eo(t,e,n){return Yr(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function no(t){return Boolean(t.changedTouches)}function ro(t){return!0===t.composed&&ut(t.target)?t.composedPath()[0]:t.target}var oo=function(t,e){var n=window.visualViewport,r={layoutViewportX:t,layoutViewportY:e,visualVie
1wportX:t,visualViewportY:e};return n?(!function(t){return Math.abs(t.pageTop-t.offsetTop-window.scrollY)>25||Math.abs(t.pageLeft-t.offsetLeft-window.scrollX)>25}(n)?(r.visualViewportX=Math.round(t-n.offsetLeft),r.visualViewportY=Math.round(e-n.offsetTop)):(r.layoutViewportX=Math.round(t+n.offsetLeft),r.layoutViewportY=Math.round(e+n.offsetTop)),r):r},io=function(t){return{scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width}};function so(t,e){return{data:(0,y.kp)({source:t},e),type:Br.IncrementalSnapshot,timestamp:(0,d.nx)()}}var ao,co=50;function uo(t,e){var n=(0,C.n)((function(t){var n=ro(t);if(Nr(n)){var r=lo(t);if(!r)return;var o={id:Lr(n),timeOffset:0,x:r.x,y:r.y};e(so(no(t)?Hr.TouchMove:Hr.MouseMove,{positions:[o]}))}}),co,{trailing:!1}),r=n.throttled,o=n.cancel,i=(0,q.lQ)(t,document,[q.gX.MOUSE_MOVE,q.gX.TOUCH_MOVE],r,{capture:!0,passive:!0}).stop;return{stop:function(){i(),o()}}}function lo(t){var e=no(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var o=oo(n,r);n=o.visualViewportX,r=o.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r};t.isTrusted&&(0,g.A2)("mouse/touch event without x/y")}var fo=((ao={})[q.gX.POINTER_UP]=qr.MouseUp,ao[q.gX.MOUSE_DOWN]=qr.MouseDown,ao[q.gX.CLICK]=qr.Click,ao[q.gX.CONTEXT_MENU]=qr.ContextMenu,ao[q.gX.DBL_CLICK]=qr.DblClick,ao[q.gX.FOCUS]=qr.Focus,ao[q.gX.BLUR]=qr.Blur,ao[q.gX.TOUCH_START]=qr.TouchStart,ao[q.gX.TOUCH_END]=qr.TouchEnd,ao);function po(t,e,n){return(0,q.lQ)(t,document,Object.keys(fo),(function(r){var o=ro(r);if(Cr(o,t.defaultPrivacyLevel)!==dr.HIDDEN&&Nr(o)){var i,s=Lr(o),a=fo[r.type];if(a!==qr.Blur&&a!==qr.Focus){var c=lo(r);if(!c)return;i={id:s,type:a,x:c.x,y:c.y}}else i={id:s,type:a};var u=(0,y.kp)({id:n.getIdForEvent(r)},so(Hr.MouseInteraction,i));e(u)}}),{capture:!0,passive:!0})}var go=100;function ho(t,e,n,r){void 0===r&&(r=document);var o=(0,C.n)((function(r){var o=ro(r);if(o&&Cr(o,t.defaultPrivacyLevel)!==dr.HIDDEN&&Nr(o)){var i=Lr(o),s=o===document?{scrollTop:vn(),scrollLeft:mn()}:{scrollTop:Math.round(o.scrollTop),scrollLeft:Math.round(o.scrollLeft)};n.set(o,s),e(so(Hr.Scroll,{id:i,x:s.scrollLeft,y:s.scrollTop}))}}),go),i=o.throttled,s=o.cancel,a=(0,q.q2)(t,r,q.gX.SCROLL,i,{capture:!0,passive:!0}).stop;return{stop:function(){a(),s()}}}function mo(t,e){var n=yn(t).subscribe((function(t){e(so(Hr.ViewportResize,t))}));return{stop:function(){n.unsubscribe()}}}function vo(t,e){return(0,q.lQ)(t,document,[q.gX.PLAY,q.gX.PAUSE],(function(n){var r=ro(n);r&&Cr(r,t.defaultPrivacyLevel)!==dr.HIDDEN&&Nr(r)&&e(so(Hr.MediaInteraction,{id:Lr(r),type:n.type===q.gX.PLAY?jr.Play:jr.Pause}))}),{capture:!0,passive:!0})}function yo(t){function e(t,e){t&&Nr(t.ownerNode)&&e(Lr(t.ownerNode))}var n=[(0,qt.H)(CSSStyleSheet.prototype,"insertRule",(function(n){var r=n.target,o=n.parameters,i=o[0],s=o[1];e(r,(function(e){return t(so(Hr.StyleSheetRule,{id:e,adds:[{rule:i,index:s}]}))}))})),(0,qt.H)(CSSStyleSheet.prototype,"deleteRule",(function(n){var r=n.target,o=n.parameters[0];e(r,(function(e){return t(so(Hr.StyleSheetRule,{id:e,removes:[{index:o}]}))}))}))];function r(r){n.push((0,qt.H)(r.prototype,"insertRule",(function(n){var r=n.target,o=n.parameters,i=o[0],s=o[1];e(r.parentStyleSheet,(function(e){var n=bo(r);n&&(n.push(s||0),t(so(Hr.StyleSheetRule,{id:e,adds:[{rule:i,index:n}]})))}))})),(0,qt.H)(r.prototype,"deleteRule",(function(n){var r=n.target,o=n.parameters[0];e(r.parentStyleSheet,(function(e){var n=bo(r);n&&(n.push(o),t(so(Hr.StyleSheetRule,{id:e,removes:[{index:n}]})))}))})))}return"undefined"!=typeof CSSGroupingRule?r(CSSGroupingRule):(r(CSSMediaRule),r(CSSSupportsRule)),{stop:function(){n.forEach((function(t){return t.stop()}))}}}function bo(t){for(var e=[],n=t;n.parentRule;){var r=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(r),n=n.parentRule}if(n.parentStyleSheet){var o=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(o),e}}function _o(t,e){return(0,q.lQ)(t,window,[q.gX.FOCUS,q.gX.BLUR],(function(){e({data:{has_focus:document.hasFocus()},type:Br.Focus,timestamp:(0,d.nx)()})}))}function wo(t,e,n){var r=t.subscribe(12,(function(t){var r,o,i;"action"===t.rawRumEvent.type&&"click"===t.rawRumEvent.action.type&&(null===(o=null===(r=t.rawRumEvent.action.frustration)||void 0===r?void 0:r.type)||void 0===o?void 0:o.length)&&"events"in t.domainContext&&(null===(i=t.domainContext.events)||void 0===i?void 0:i.length)&&e({timestamp:t.rawRumEvent.date,type:Br.FrustrationRecord,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map((function(t){return n.getIdForEvent(t)}))}})}));return{stop:function(){r.unsubscribe()}}}function So(t,e){var n=t.subscribe(5,(function(){e({timestamp:(0,d.nx)(),type:Br.ViewEnd})}));return{stop:function(){n.unsubscribe()}}}function Eo(t,e,n){void 0===n&&(n=document);var r,o=t.defaultPrivacyLevel,i=new WeakMap,s=n!==document,a=(0,q.lQ)(t,
1n,s?[q.gX.CHANGE]:[q.gX.INPUT,q.gX.CHANGE],(function(t){var e=ro(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&u(e)}),{capture:!0,passive:!0}).stop;if(s)r=C.l;else{var c=[(0,qt.t)(HTMLInputElement.prototype,"value",u),(0,qt.t)(HTMLInputElement.prototype,"checked",u),(0,qt.t)(HTMLSelectElement.prototype,"value",u),(0,qt.t)(HTMLTextAreaElement.prototype,"value",u),(0,qt.t)(HTMLSelectElement.prototype,"selectedIndex",u)];r=function(){c.forEach((function(t){return t.stop()}))}}return{stop:function(){r(),a()}};function u(t){var e=Cr(t,o);if(e!==dr.HIDDEN){var n,r=t.type;if("radio"===r||"checkbox"===r){if(xr(t,e))return;n={isChecked:t.checked}}else{var i=Mr(t,e);if(void 0===i)return;n={text:i}}l(t,n);var s=t.name;"radio"===r&&s&&t.checked&&(0,y.jJ)(document.querySelectorAll('input[type="radio"][name="'.concat(Jt(s),'"]')),(function(e){e!==t&&l(e,{isChecked:!1})}))}}function l(t,n){if(Nr(t)){var r=i.get(t);r&&r.text===n.text&&r.isChecked===n.isChecked||(i.set(t,n),e(so(
1Hr.Input,(0,y.kp)({id:Lr(t)},n))))}}}var Co=100;function ko(t){var e=C.l,n=[];function r(){e(),t(n),n=[]}return{addMutations:function(t){0===n.length&&(e=function(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback((0,u.dm)(t),e);return function(){return window.cancelIdleCallback(n)}}var r=window.requestAnimationFrame((0,u.dm)(t));return function(){return window.cancelAnimationFrame(r)}}(r,{timeout:Co})),n.push.apply(n,t)},flush:r,stop:function(){e()}}}function To(t,e,n,r){var o=G();if(!o)return{stop:C.l,flush:C.l};var i=ko((function(r){!function(t,e,n,r){var o=new Map;t.filter((function(t){return"childList"===t.type})).forEach((function(t){t.removedNodes.forEach((function(t){xo(t,r.removeShadowRoot)}))}));var i=t.filter((function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!Nr(e)&&!lt(e))return!1;e=ft(e)}return!0}(t.target)&&Cr(t.target,n.defaultPrivacyLevel,o)!==dr.HIDDEN})),s=function(t,e,n,r){for(var o=new Set,i=new Map,s=function(t){t.addedNodes.forEach((function(t){o.add(t)})),t.removedNodes.forEach((function(e){o.has(e)||i.set(e,t.target),o.delete(e)}))},a=0,c=t;a<c.length;a++){s(c[a])}var u=Array.from(o);l=u,l.sort((function(t,e){var n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_CONTAINS||n&Node.DOCUMENT_POSITION_FOLLOWING?1:n&Node.DOCUMENT_POSITION_PRECEDING?-1:0}));var l;for(var d=new Set,f=[],p=0,g=u;p<g.length;p++){var h=g[p];if(!_(h)){var m=Cr(h.parentNode,e.defaultPrivacyLevel,r);if(m!==dr.HIDDEN&&m!==dr.IGNORE){var v=Yr(h,{serializedNodeIds:d,parentNodePrivacyLevel:m,serializationContext:{status:2,shadowRootsController:n},configuration:e});if(v){var y=ft(h);f.push({nextId:w(h),parentId:Lr(y),node:v})}}}}var b=[];return i.forEach((function(t,e){Nr(e)&&b.push({parentId:Lr(t),id:Lr(e)})})),{adds:f,removes:b,hasBeenSerialized:_};function _(t){return Nr(t)&&d.has(Lr(t))}function w(t){for(var e=t.nextSibling;e;){if(Nr(e))return Lr(e);e=e.nextSibling}return null}}(i.filter((function(t){return"childList"===t.type})),n,r,o),a=s.adds,c=s.removes,u=s.hasBeenSerialized,l=function(t,e,n){for(var r,o=[],i=new Set,s=t.filter((function(t){return!i.has(t.target)&&(i.add(t.target),!0)})),a=0,c=s;a<c.length;a++){var u=c[a];if(u.target.textContent!==u.oldValue){var l=Cr(ft(u.target),e.defaultPrivacyLevel,n);l!==dr.HIDDEN&&l!==dr.IGNORE&&o.push({id:Lr(u.target),value:null!==(r=Or(u.target,!1,l))&&void 0!==r?r:null})}}return o}(i.filter((function(t){return"characterData"===t.type&&!u(t.target)})),n,o),d=function(t,e,n){for(var r=[],o=new Map,i=t.filter((function(t){var e=o.get(t.target);return!(null==e?void 0:e.has(t.attributeName))&&(e?e.add(t.attributeName):o.set(t.target,new Set([t.attributeName])),!0)})),s=new Map,a=0,c=i;a<c.length;a++){var u=c[a];if(u.target.getAttribute(u.attributeName)!==u.oldValue){var l=Cr(u.target,e.defaultPrivacyLevel,n),d=Kr(u.target,l,u.attributeName,e),f=void 0;if("value"===u.attributeName){var p=Mr(u.target,l);if(void 0===p)continue;f=p}else f="string"==typeof d?d:null;var g=s.get(u.target);g||(g={id:Lr(u.target),attributes:{}},r.push(g),s.set(u.target,g)),g.attributes[u.attributeName]=f}}return r}(i.filter((function(t){return"attributes"===t.type&&!u(t.target)})),n,o);if(!(l.length||d.length||c.length||a.length))return;e(so(Hr.Mutation,{adds:a,removes:c,texts:l,attributes:d}))}(r.concat(s.takeRecords()),t,e,n)})),s=new o((0,u.dm)(i.addMutations));return s.observe(r,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){s.disconnect(),i.stop()},flush:function(){i.flush()}}}function xo(t,e){ut(t)&&e(t.shadowRoot),dt(t,(function(t){return xo(t,e)}))}var Ao=function(t,e,n){var r=new Map,o={addShadowRoot:function(i){if(!r.has(i)){var s=To(e,t,o,i),a=Eo(t,e,i),c=ho(t,e,n,i);r.set(i,{flush:function(){return s.flush()},stop:function(){s.stop(),a.stop(),c.stop()}})}},removeShadowRoot:function(t){var e=r.get(t);e&&(e.stop(),r.delete(t))},stop:function(){r.forEach((function(t){return(0,t.stop)()}))},flush:function(){r.forEach((function(t){return(0,t.flush)()}))}};return o};function Ro(t){var e=t.emit,n=t.configuration,r=t.lifeCycle;if(!e)throw new Error("emit function is required");var o,i=function(n){e(n),(0,$.b)("record",{record:n});var r=t.viewContexts.findView();lr(r.id).records_count+=1},s=(o=new WeakMap,{set:function(t,e){(t!==document||document.scrollingElement)&&o.set(t===document?document.scrollingElement:t,e)},get:function(t){return o.get(t)},has:function(t){return o.has(t)}}),a=Ao(n,i,s),c=function(t,e,n,r,o,i){var s=function(n,o){void 0===n&&(n=(0,d.nx)()),void 0===o&&(o={status:0,elementsScrollPositions:t,shadowRootsController:e});var i=bn(),s=i.width,a=[{data:{height:i.height,href:window.location.href,width:s},type:Br.Meta,timestamp:n},{data:{has_focus:document.hasFocus()},type:Br.Focus,timestamp:n},{data:{node:eo(document,r,o),initialOffset:{left:mn(),top:vn()}},type:Br.FullSnapshot,timestamp:n}];
1return window.visualViewport&&a.push({data:io(window.visualViewport),type:Br.VisualViewport,timestamp:n}),a};return i(s()),{stop:n.subscribe(3,(function(n){o(),i(s(n.startClocks.timeStamp,{shadowRootsController:e,status:1,elementsScrollPositions:t}))})).unsubscribe}}(s,a,r,n,u,(function(t){return t.forEach((function(t){return i(t)}))})).stop;function u(){a.flush(),f.flush()}var l=function(){var t=new WeakMap,e=1;return{getIdForEvent:function(n){return t.has(n)||t.set(n,e++),t.get(n)}}}(),f=To(i,n,a,document),p=[f,uo(n,i),po(n,i,l),ho(n,i,s,document),mo(n,i),Eo(n,i),vo(n,i),yo(i),_o(n,i),mo(n,i),wo(r,i,l),So(r,(function(t){u(),i(t)}))];return{stop:function(){a.stop(),p.forEach((function(t){return t.stop()})),c()},flushMutations:u,shadowRootsController:a}}var Oo=function(){function t(t,e,n){this.encoder=t,this.encodedBytesCount=0;var r=e.view.id;this.metadata=(0,y.kp)({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:ur(r),source:"browser"},e),function(t){lr(t).segments_count+=1}(r)}return t.prototype.addRecord=function(t,e){var n,r=this;this.metadata.start=Math.min(this.metadata.start,t.timestamp),this.metadata.end=Math.max(this.metadata.end,t.timestamp),this.metadata.records_count+=1,(n=this.metadata).has_full_snapshot||(n.has_full_snapshot=t.type===Br.FullSnapshot);var o=this.encoder.isEmpty?'{"records":[':",";this.encoder.write(o+JSON.stringify(t),(function(t){r.encodedBytesCount+=t,e(r.encodedBytesCount)}))},t.prototype.flush=function(t){var e=this;if(this.encoder.isEmpty)throw new Error("Empty segment flushed");this.encoder.write("],".concat(JSON.stringify(this.metadata).slice(1),"\n")),this.encoder.finish((function(n){var r,o;r=e.metadata.view.id,o=n.rawBytesCount,lr(r).segments_total_raw_size+=o,t(e.metadata,n)}))},t}(),Io=30*d.OY,No=6e4;function Lo(t,e,n,r,o,i){return function(t,e,n,r){var o={status:0,nextSegmentCreationReason:"init"},i=t.subscribe(3,(function(){a("view_change")})).unsubscribe,s=t.subscribe(11,(function(t){a(t.reason)})).unsubscribe;function a(t){1===o.status&&(o.segment.flush((function(e,r){var o=function(t,e,n){var r=new FormData;r.append("segment",new Blob([t],{type:"application/octet-stream"}),"".concat(e.session.id,"-").concat(e.start));var o=(0,y.kp)({raw_segment_size:n,compressed_segment_size:t.byteLength},e),i=JSON.stringify(o);return r.append("event",new Blob([i],{type:"application/json"})),{data:r,bytesCount:t.byteLength}}(r.output,e,r.rawBytesCount);(0,F.Kp)(t)?n.sendOnExit(o):n.send(o)})),(0,H.DJ)(o.expirationTimeoutId)),o="stop"!==t?{status:0,nextSegmentCreationReason:t}:{status:2}}return{addRecord:function(t){if(2!==o.status){if(0===o.status){var n=e();if(!n)return;o={status:1,segment:new Oo(r,n,o.nextSegmentCreationReason),expirationTimeoutId:(0,H.wg)((function(){a("segment_duration_limit")}),Io)}}o.segment.addRecord(t,(function(t){t>No&&a("segment_bytes_limit")}))}},stop:function(){a("stop"),i(),s()}}}(t,(function(){return function(t,e,n){var r=e.findTrackedSession(),o=n.findView();if(!r||!o)return;return{application:{id:t},session:{id:r.id},view:{id:o.id}}}(e.applicationId,n,r)}),o,i)}function Mo(){return"function"==typeof Array.from&&"function"==typeof CSSSupportsRule&&"function"==typeof URL.createObjectURL&&"forEach"in NodeList.prototype}function Do(t,e,n,r){var o=e.findTrackedSession(),i=function(t,e){if(!Mo())return"browser-not-supported";if(!t)return"rum-not-tracked";if(!t.sessionReplayAllowed)return"incorrect-session-plan";if(!e)return"replay-not-started"}(o,r);return ir(t,{viewContext:n.findView(),errorType:i,session:o})}var Po=n(884);function Uo(t,e,n){var r,o=0,i=[],s=0,a=[],c=(0,q.q2)(t,e,"message",(function(t){var e=t.data;if("wrote"===e.type&&e.streamId===n){o+=e.additionalBytesCount,i.push(e.result),r=e.trailer;var s=a.shift();s&&s.id===e.id?s.writeCallback?s.writeCallback(e.result.byteLength):s.finishCallback&&s.finishCallback():(c(),(0,g.A2)("Worker responses received out of order."))}})).stop;function u(){var t=0===i.length?new Uint8Array(0):(0,Po.wh)(i.concat(r)),e={rawBytesCount:o,output:t,outputBytesCount:t.byteLength,encoding:"deflate"};return o=0,i=[],e}function l(){s>0&&(e.postMessage({action:"reset",streamId:n}),s=0)}return{isAsync:!0,get isEmpty(){return 0===s},write:function(t,r){e.postMessage({action:"write",id:s,data:t,streamId:n}),a.push({id:s,writeCallback:r,data:t}),s+=1}
1,finish:function(t){l(),a.length?(a.forEach((function(t){delete t.writeCallback})),a[a.length-1].finishCallback=function(){return t(u())}):t(u())},finishSync:function(){l();var t=a.map((function(t){return delete t.writeCallback,delete t.finishCallback,t.data})).join("");return(0,y.kp)(u(),{pendingData:t})},estimateEncodedBytesCount:function(t){return t.length/8},stop:function(){c()}}}var Vo=10*d.OY;function $o(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r<i.length;r++){var s=i[r];a.set(s,n),n+=s.length}return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),_=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,k(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},x=function(t,e,a){z(t,a[2*e],a[2*e+1])},A=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},E=function(t,e,a){var n,r,s=new Array(16),_=0;for(n=1;n<=i;n++)s[n]=_=_+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=A(s[h]++,h))}},Z=function(t){var e;for(e=0;e<n;e++)t.dyn_ltree[2*e]=0;for(e=0;e<r;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},U=function(t){t.bi_valid>8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},S=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},R=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&S(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!S(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},L=function(t,e,n){var r,i,h,l,o=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===r?x(t,i,e):(h=f[i],x(t,h+a+1,e),0!==(l=s[h])&&(i-=c[h],z(t,i,l)),r--,h=y(r),x(t,h,n),0!==(l=_[h])&&(r-=v[h],z(t,r,l)))}while(o<t.last_lit);x(t,256,e)},F=function(t,e){var a,n,r,s=e.dyn_tree,_=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==s[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;)s[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=_[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)R(t,s,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],R(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,R(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,_,h,l=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=l[2*l[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),l[2*n+1]=s,n>o||(t.bl_count[s]++,_=0,n>=c&&(_=f[n-c]),h=l[2*n],t.opt_len+=h*(s+_),u&&(t.static_len+=h*(d[2*n+1]+_)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;
vendor: 4,275 bytes, line 1
1)(r=t.heap[--a])>o||(l[2*r+1]!==s&&(t.opt_len+=(s-l[2*r+1])*l[2*r],l[2*r+1]=s),n--)}}(t,e),E(s,o,t.bl_count)},T=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++_<h&&r===s||(_<l?t.bl_tree[2*r]+=_:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):_<=10?t.bl_tree[34]++:t.bl_tree[36]++,_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4))},I=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++_<h&&r===s)){if(_<l)do{x(t,r,t.bl_tree)}while(0!=--_);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),_--),x(t,16,t.bl_tree),z(t,_-3,2)):_<=10?(x(t,17,t.bl_tree),z(t,_-3,3)):(x(t,18,t.bl_tree),z(t,_-11,7));_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4)}},N=!1,O=function(t,e,a,n){z(t,0+(n?1:0),3),function(t,e,a,n){U(t),n&&(k(t,a),k(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},D=function(t,e,n,r){var i,s,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<a;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),F(t,t.l_desc),F(t,t.d_desc),_=function(t){var e;for(T(t,t.dyn_ltree,t.l_desc.max_code),T(t,t.dyn_dtree,t.d_desc.max_code),F(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?O(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),L(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r<n;r++)z(t,t.bl_tree[2*l[r]+1],3);I(t,t.dyn_ltree,e-1),I(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),L(t,t.dyn_ltree,t.dyn_dtree)),Z(t),r&&U(t)},B={_tr_init:function(t){N||(!function(){var t,e,a,l,m,y=new Array(16);for(a=0,l=0;l<28;l++)for(c[l]=a,t=0;t<1<<s[l];t++)f[a++]=l;for(f[a-1]=l,m=0,l=0;l<16;l++)for(v[l]=m,t=0;t<1<<_[l];t++)u[m++]=l;for(m>>=7;l<r;l++)for(v[l]=m<<7,t=0;t<1<<_[l]-7;t++)u[256+m++]=l;for(e=0;e<=i;e++)y[e]=0;for(t=0;t<=143;)o[2*t+1]=8,t++,y[8]++;for(;t<=255;)o[2*t+1]=9,t++,y[9]++;for(;t<=279;)o[2*t+1]=7,t++,y[7]++;for(;t<=287;)o[2*t+1]=8,t++,y[8]++;for(E(o,287,y),t=0;t<r;t++)d[2*t+1]=5,d[2*t]=A(t,5);p=new b(o,s,257,n,i),g=new b(d,_,0,r,i),w=new b(new Array(0),h,0,19,7)}(),N=!0),t.l_desc=new m(t.dyn_ltree,p),t.d_desc=new m(t.dyn_dtree,g),t.bl_desc=new m(t.bl_tree,w),t.bi_buf=0,t.bi_valid=0,Z(t)},_tr_stored_block:O,_tr_flush_block:D,_tr_tally:function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},C=function(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16|0},H=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),M=function(t,e,a,n){var r=H,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},Y={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},K={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},P=B._tr_init,j=B._tr_stored_block,G=B._tr_flush_block,X=B._tr_tally,W=B._tr_align,q=K.Z_NO_FLUSH,J=K.Z_PARTIAL_FLUSH,Q=K.Z_FULL_FLUSH,V=K.Z_FINISH,$=K.Z_BLOCK,tt=K.Z_OK,et=K.Z_STREAM_END,at=K.Z_STREAM_ERROR,nt=K.Z_DATA_ERROR,rt=K.Z_BUF_ER
1ROR,it=K.Z_DEFAULT_COMPRESSION,st=K.Z_FILTERED,_t=K.Z_HUFFMAN_ONLY,ht=K.Z_RLE,lt=K.Z_FIXED,ot=K.Z_DEFAULT_STRATEGY,dt=K.Z_UNKNOWN,ut=K.Z_DEFLATED,ft=258,ct=262,pt=103,gt=113,wt=666,vt=function(t,e){return t.msg=Y[e],e},bt=function(t){return(t<<1)-(t>4?9:0)},mt=function(t){for(var e=t.length;--e>=0;)t[e]=0},yt=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},kt=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},zt=function(t,e){G(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,kt(t.strm)},xt=function(t,e){t.pending_buf[t.pending++]=e},At=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-ct?t.strstart-(t.w_size-ct):0,l=t.window,o=t.w_mask,d=t.prev,u=t.strstart+ft,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(l[(a=e)+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do{}while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&i<u);if(n=ft-(u-i),i=u-ft,n>s){if(t.match_start=e,s=n,n>=_)break;f=l[i+s-1],c=l[i+s]}}}while((e=d[e&o])>h&&0!=--r);return s<=t.lookahead?s:t.lookahead},Zt=function(t){var e,a,n,r,i,s,_,h,l,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-ct)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,_=t.window,h=t.strstart+t.lookahead,l=r,o=void 0,(o=s.avail_in)>l&&(o=l),a=0===o?0:(s.avail_in-=o,_.set(s.input.subarray(s.next_in,s.next_in+o),h),1===s.state.wrap?s.adler=C(s.adler,_,o,h):2===s.state.wrap&&(s.adler=M(s.adler,_,o,h)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=yt(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=yt(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<ct&&0!==t.strm.avail_in)},Ut=function(t,e){for(var a,n;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a)),t.match_length>=3)if(n=X(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=yt(t,t.ins_h,t.window[t.strstart+1]);else n=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2},St=function(t,e){for(var a,n,r;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a),t.match_length<=5&&(t.strategy===st||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=X(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(zt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=X(t,0,t.window[t.strstart-1]))&&zt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=X(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2};function Rt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Lt=[new Rt(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Zt(t),0===t.lookahead&&e===q)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,zt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-ct&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(zt(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Ut),new Rt(4,5,16,8,Ut),new Rt(4,6,32,32,Ut),new Rt(4,4,16,16,St),new Rt(8,16,32,32,St),new Rt(8,16,128,128,St),new Rt(8,32,128,256,St),new Rt(32,128,258,1024,St),new Rt(32,258,258,4096,St)];function Ft(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ut,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),mt(this.dyn_ltree),mt(this.dyn_dtree),mt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),mt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),mt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Tt=function(t){if(!t||!t.state)return vt(t,at);t.total_in=t.total_out=0,t.data_type=dt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:gt,t.adler=2===e.wrap?0:1,e.last_flush=q,P(e),tt},It=function(t){var e,a=Tt(t);return a===tt&&((e=t.state).window_size=2*e.w_size,mt(e.head),e.max_lazy_match=Lt[e.level].max_lazy,e.good_match=Lt[e.level].good_length,e.nice_match=Lt[e.level].nice_length,e.max_chain_length=Lt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Nt=function(t,e,a,n,r,i){if(!t)return at;var s=1;if(e===it&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==ut||n<8||n>15||e<0||e>9||i<0||i>lt)return vt(t,at);8===n&&(n=9);var _=new Ft;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=n,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<<r+6,_.pending_buf_size=4*_.lit_bufsize,_.pending_buf=new Uint8Array(_.pending_buf_size),_.d_buf=1*_.lit_bufsize,_.l_buf=3*_.lit_bufsize,_.level=e,_.strategy=i,_.method=a,It(t)}
1,Ot={deflateInit:function(t,e){return Nt(t,e,ut,15,8,ot)},deflateInit2:Nt,deflateReset:It,deflateResetKeep:Tt,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?at:(t.state.gzhead=e,tt):at},deflate:function(t,e){var a,n;if(!t||!t.state||e>$||e<0)return t?vt(t,at):at;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===wt&&e!==V)return vt(t,0===t.avail_out?rt:at);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,xt(r,31),xt(r,139),xt(r,8),r.gzhead?(xt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),xt(r,255&r.gzhead.time),xt(r,r.gzhead.time>>8&255),xt(r,r.gzhead.time>>16&255),xt(r,r.gzhead.time>>24&255),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(xt(r,255&r.gzhead.extra.length),xt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=M(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,3),r.status=gt);else{var s=ut+(r.w_bits-8<<4)<<8;s|=(r.strategy>=_t||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=gt,At(r,s),0!==r.strstart&&(At(r,t.adler>>>16),At(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending!==r.pending_buf_size));)xt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=pt)}else r.status=pt;if(r.status===pt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&kt(t),r.pending+2<=r.pending_buf_size&&(xt(r,255&t.adler),xt(r,t.adler>>8&255),t.adler=0,r.status=gt)):r.status=gt),0!==r.pending){if(kt(t),0===t.avail_out)return r.last_flush=-1,tt}else if(0===t.avail_in&&bt(e)<=bt(i)&&e!==V)return vt(t,rt);if(r.status===wt&&0!==t.avail_in)return vt(t,rt);if(0!==t.avail_in||0!==r.lookahead||e!==q&&r.status!==wt){var _=r.strategy===_t?function(t,e){for(var a;;){if(0===t.lookahead&&(Zt(t),0===t.lookahead)){if(e===q)return 1;break}if(t.match_length=0,a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===ht?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=ft){if(Zt(t),t.lookahead<=ft&&e===q)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+ft;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=ft-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=X(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Lt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=wt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),tt;if(2===_&&(e===J?W(r):e!==$&&(j(r,0,0,!1),e===Q&&(mt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),kt(t),0===t.avail_out))return r.last_flush=-1,tt}return e!==V?tt:r.wrap<=0?et:(2===r.wrap?(xt(r,255&t.adler),xt(r,t.adler>>8&255),xt(r,t.adler>>16&255),xt(r,t.adler>>24&255),xt(r,255&t.total_in),xt(r,t.total_in>>8&255),xt(r,t.total_in>>16&255),xt(r,t.total_in>>24&255)):(At(r,t.adler>>>16),At(r,65535&t.adler)),kt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?tt:et)},deflateEnd:function(t){if(!t||!t.state)return at;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==pt&&e!==gt&&e!==wt?vt(t,at):(t.state=null,e===gt?vt(t,nt):tt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return at;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return at;if(1===r&&(t.adler=C(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(mt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);
1i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Zt(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=yt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Zt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=_,t.input=h,t.avail_in=s,n.wrap=r,tt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Dt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Dt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Dt[254]=Dt[254]=1;var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Ht=Object.prototype.toString,Mt=K.Z_NO_FLUSH,Yt=K.Z_SYNC_FLUSH,Kt=K.Z_FULL_FLUSH,Pt=K.Z_FINISH,jt=K.Z_OK,Gt=K.Z_STREAM_END,Xt=K.Z_DEFAULT_COMPRESSION,Wt=K.Z_DEFAULT_STRATEGY,qt=K.Z_DEFLATED;function Jt(){this.options={level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;var e=Ot.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==jt)throw new Error(Y[e]);if(t.header&&Ot.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Ht.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ot.deflateSetDictionary(this.strm,a))!==jt)throw new Error(Y[e]);this._dict_set=!0}}function Qt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function Vt(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Jt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Pt:Mt,"[object ArrayBuffer]"===Ht.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Yt||n===Kt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ot.deflate(r,n))===Gt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ot.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===jt;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===jt&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,_=t.length;i<_;i++){var h=t[i];r.set(h,s),s+=h.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e){void 0===e&&(e=self);try{var a=new Map;e.addEventListener("message",(function(n){try{var r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"5.16.0"};case"write":var n=e.get(a.streamId);n||(n=new Jt,e.set(a.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,a,n,r,i,s=t.length,_=0;for(r=0;r<s;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),_+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(_),i=0,r=0;i<_;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,K.Z_SYNC_FLUSH),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:Vt(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){Qt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){Qt(e,t)}}()}();'])))}var Fo={status:0};function zo(t,e,n,r){switch(void 0===r&&(r=$o),0===Fo.status&&function(t,e,n){void 0===n&&(n=$o);try{var r=n(t),o=(0,q.q2)(t,r,"error",(function(n){Go(t,e,n)}
1)).stop,i=(0,q.q2)(t,r,"message",(function(n){var r,o=n.data;"errored"===o.type?Go(t,e,o.error,o.streamId):"initialized"===o.type&&(r=o.version,1===Fo.status&&(Fo={status:3,worker:Fo.worker,stop:Fo.stop,version:r}))})).stop;r.postMessage({action:"init"}),(0,H.wg)((function(){return function(t){1===Fo.status&&(w.Vy.error("".concat(t," failed to start: a timeout occurred while initializing the Worker")),Fo.initializationFailureCallbacks.forEach((function(t){return t()})),Fo={status:2})}(e)}),Vo),Fo={status:1,worker:r,stop:function(){o(),i()},initializationFailureCallbacks:[]}}catch(n){Go(t,e,n)}}(t,e,r),Fo.status){case 1:return Fo.initializationFailureCallbacks.push(n),Fo.worker;case 3:return Fo.worker}}function Bo(){return Fo.status}function Go(t,e,n,r){if(1===Fo.status||0===Fo.status){if(w.Vy.error("".concat(e," failed to start: an error occurred while creating the Worker:"),n),n instanceof Event||n instanceof Error&&(i=n.message,(0,y.mK)(i,"Content Security Policy")||(0,y.mK)(i,"requires 'TrustedScriptURL'"))){var o=void 0;o=t.workerUrl?"Please make sure the Worker URL ".concat(t.workerUrl," is correct and CSP is correctly configured."):"Please make sure CSP is correctly configured.",w.Vy.error("".concat(o," See documentation at https://docs.datadoghq.com/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay"))}else(0,g.VJ)(n);1===Fo.status&&Fo.initializationFailureCallbacks.forEach((function(t){return t()})),Fo={status:2}}else(0,g.VJ)(n,{worker_version:3===Fo.status&&Fo.version,stream_id:r});var i}var Ho=function(t,e){if((0,S.d0)()&&!(0,S.Ww)("records")||!Mo())return{start:C.l,stop:C.l,getReplayStats:function(){},onRumStart:C.l,isRecording:function(){return!1},getSessionReplayLink:function(){}};var n={status:1},r=function(){n={status:1}},o=function(){n={status:0}},i=C.l;return{start:function(){return r()},stop:function(){return o()},getSessionReplayLink:function(){return i()},onRumStart:function(s,a,c,u,l){var d;a.startSessionReplayRecordingManually&&(n={status:0}),s.subscribe(9,(function(){2!==n.status&&3!==n.status||(o(),n={status:1})})),s.subscribe(11,(function(t){t.reason!==F.y5.UNLOADING&&t.reason!==F.y5.PAGEHIDE||o()})),s.subscribe(10,(function(){1===n.status&&r()})),r=function(){var r=c.findTrackedSession();r&&r.sessionReplayAllowed?2!==n.status&&3!==n.status&&(n={status:2},j(a,"interactive",(function(){if(2===n.status){var r=(d||(l||(l=zo(a,"Datadog Session Replay",(function(){o()}),e)),l&&(d=Uo(a,l,1))),d);if(r){var i=t(s,a,c,u,r).stop;n={status:3,stopRecording:i}}else n={status:0}}}))):n={status:1}},o=function(){0!==n.status&&(3===n.status&&n.stopRecording(),n={status:0})},i=function(){return Do(a,c,u,0!==n.status)},1===n.status&&r()},isRecording:function(){return 3===Bo()&&3===n.status},getReplayStats:function(t){return 3===Bo()?function(t){return null==sr?void 0:sr.get(t)}(t):void 0}}}((function(t,e,n,r,o,i){var s,a=[],c=i||(0,ar.sA)(e,e.sessionReplayEndpointBuilder,No,(function(e){t.notify(14,{error:e}),(0,g.A2)("Error reported to customer",{"error.message":e.message})}));if((0,S.d0)())s=function(t){var e=(0,S.Y9)();return{addRecord:function(n){var r=t.findView();e.send("record",n,r.id)}}}(r).addRecord;else{var u=Lo(t,e,n,r,c,o);s=u.addRecord,a.push(u.stop)}var l=Ro({emit:s,configuration:e,lifeCycle:t,viewContexts:r}).stop;return a.push(l),{stop:function(){a.forEach((function(t){return t()}))}}})),qo=function(t,e,n){void 0===n&&(n={});var o=(0,i.qR)(0),_=(0,s.D)(o.getOrCreateTracker(2)),w=(0,s.D)(o.getOrCreateTracker(1)),S=(0,a.D)();function E(){return function(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}(_,w,e)}var C=V(n,E,S,(function(r,i,s,a){(0,c.sr)(c.R9.CUSTOM_VITALS)&&(T.startDurationVital=(0,u.dm)((function(t,e){C.startDurationVital({name:(0,l.a)(t),startClocks:(null==e?void 0:e.startTime)?(0,d.jR)(e.startTime):(0,d.M8)(),context:(0,l.a)(null==e?void 0:e.context)})})),T.stopDurationVital=(0,u.dm)((function(t,e){C.stopDurationVital({name:(0,l.a)(t),stopClocks:(null==e?void 0:e.stopTime)?(0,d.jR)(e.stopTime):(0,d.M8)(),context:(0,l.a)(null==e?void 0:e.context)})}))),r.storeContextsAcrossPages&&((0,f.Ck)(i,_,"rum",2),(0,f.Ck)(i,w,"rum",1)),o.setCompressionStatus(s?1:2);var g=t(r,i,e,o,E,a,s&&n.createDeflateEncoder?function(t){return n.createDeflateEncoder(i,s,t)}:p.N,S);return e.onRumStart(g.lifeCycle,i,g.session,g.viewContexts,s),C=function(t,e){return(0,y.kp)({init:function(t){(0,b.$)("DD_RUM",t)},initConfiguration:t},e)}(r,g),g})),k=(0,u.dm)((function(t){var e="object"==typeof t?t:{name:t};C.startView(e)})),T=(0,r.m)({init:(0,u.dm)((function(t){return C.init(t)})),setTrackingConsent:(0,u.dm)((function(t){S.update(t),(0,g.Q6)({feature:"set-tracking-consent",tracking_consent:t})})),setGlobalContextProperty:(0,u.dm)((function(t,e){return _.setContextProperty(t,e)})),removeGlobalContextProperty:(0,u.dm)((function(t){return _.removeContextProperty(t)})),getGlobalContext:(0,u.dm)((function(){return _.getContext()})),setGlobalContext:(0,u.dm)((function(t){return _.setContext(t)}
1)),clearGlobalContext:(0,u.dm)((function(){return _.clearContext()})),getInternalContext:(0,u.dm)((function(t){return C.getInternalContext(t)})),getInitConfiguration:(0,u.dm)((function(){return(0,h.Go)(C.initConfiguration)})),addAction:(0,u.dm)((function(t,e){C.addAction({name:(0,l.a)(t),context:(0,l.a)(e),startClocks:(0,d.M8)(),type:"custom"})})),addError:function(t,e){var n=(0,m.uC)();(0,u.um)((function(){C.addError({error:t,handlingStack:n,context:(0,l.a)(e),startClocks:(0,d.M8)()})}))},addTiming:(0,u.dm)((function(t,e){C.addTiming((0,l.a)(t),e)})),setUser:(0,u.dm)((function(t){(0,v.O)(t)&&w.setContext((0,v.x)(t))})),getUser:(0,u.dm)((function(){return w.getContext()})),setUserProperty:(0,u.dm)((function(t,e){var n,r=(0,v.x)((n={},n[t]=e,n))[t];w.setContextProperty(t,r)})),removeUserProperty:(0,u.dm)((function(t){return w.removeContextProperty(t)})),clearUser:(0,u.dm)((function(){return w.clearContext()})),startView:k,stopSession:(0,u.dm)((function(){C.stopSession(),(0,g.Q6)({feature:"stop-session"})})),addFeatureFlagEvaluation:(0,u.dm)((function(t,e){C.addFeatureFlagEvaluation((0,l.a)(t),(0,l.a)(e))})),getSessionReplayLink:(0,u.dm)((function(){return e.getSessionReplayLink()})),startSessionReplayRecording:(0,u.dm)((function(){e.start(),(0,g.Q6)({feature:"start-session-replay-recording"})})),stopSessionReplayRecording:(0,u.dm)((function(){return e.stop()}))});return T}((function(t,e,n,r,o,i,s,a){var l=[],f=new Lt;f.subscribe(13,(function(t){return(0,$.b)("rum",t)}));var p=function(t){var e=(0,g.a5)("browser-rum-sdk",t);if((0,S.d0)()){var n=(0,S.Y9)();e.observable.subscribe((function(t){return n.send("internal_telemetry",t)}))}return e}(e);p.setContextProvider((function(){var t,n;return{application:{id:e.applicationId},session:{id:null===(t=w.findTrackedSession())||void 0===t?void 0:t.id},view:{id:null===(n=I.findView())||void 0===n?void 0:n.id},action:{id:M.findActionId()}}}));var m=function(t){f.notify(14,{error:t}),(0,g.A2)("Error reported to customer",{"error.message":t.message})},v=function(t,e){if(!(0,c.sr)(c.R9.FEATURE_FLAGS))return{findFeatureFlagEvaluations:function(){},addFeatureFlagEvaluation:C.l,stop:C.l};var n=new Dt.W(Un);return t.subscribe(2,(function(t){var r=t.startClocks;n.add({},r.relative),e.resetCustomerData()})),t.subscribe(6,(function(t){var e=t.endClocks;n.closeActive(e.relative)})),{findFeatureFlagEvaluations:function(t){return n.find(t)},addFeatureFlagEvaluation:function(t,r){var o=n.find();o&&(o[t]=r,e.updateCustomerData(o))},stop:function(){return e.stop()}}}(f,r.getOrCreateTracker(0)),b=(0,F.hL)(e),_=b.subscribe((function(t){f.notify(11,t)}));l.push((function(){return _.unsubscribe()}));var w=(0,S.d0)()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplayAllowed:(0,S.Ww)("records")};return{findTrackedSession:function(){return t},expire:C.l,expireObservable:new z.c}}():Nn(e,f,a);if((0,S.d0)())!function(t){var e=(0,S.Y9)();t.subscribe(13,(function(t){e.send("rum",t)}))}(f);else{var E=function(t,e,n,r,o,i,s){var a=t.replica,c=(0,Mn.Z)(t,{endpoint:t.rumEndpointBuilder,encoder:s(2)},a&&{endpoint:a.rumEndpointBuilder,transformMessage:function(t){return(0,h.kg)(t,{application:{id:a.applicationId}})},encoder:s(3)},r,o,i);return e.subscribe(13,(function(t){"view"===t.type?c.upsert(t,t.view.id):c.add(t)})),n.subscribe((function(e){return c.add(e,(0,g.Wb)(t))})),c}(e,f,p.observable,m,b,w.expireObservable,s);l.push((function(){return E.stop()})),function(t,e,n,r,o){e.enabled&&(0,k.ic)(t.customerDataTelemetrySampleRate)&&(qn(),jn(),n.subscribe(13,(function(t){Fn=!0,Gn($n.globalContextBytes,r.getOrCreateTracker(2).getBytesCount()),Gn($n.userContextBytes,r.getOrCreateTracker(1).getBytesCount()),Gn($n.featureFlagBytes,(0,y.mK)(["view","error"],t.type)?r.getOrCreateTracker(0).getBytesCount():0)})),o.subscribe((function(t){var e=t.bytesCount,n=t.messagesCount;Fn&&(Vn.batchCount+=1,Gn(Vn.batchBytesCount,e),Gn(Vn.batchMessagesCount,n),Hn(Vn.globalContextBytes,$n.globalContextBytes),Hn(Vn.userContextBytes,$n.userContextBytes),Hn(Vn.featureFlagBytes,$n.featureFlagBytes),jn())})),(0,H.yb)(Bn,zn))}(e,p,f,r,E.flushObservable)}var x,A=(x=G(),new z.c((function(t){if(x){var e=new x((0,u.dm)((function(){return t.notify()})));return e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return e.disconnect()}}}
1))),R=Pn(e,location),O=function(t,e,n,r,o,i,s,a){var c=function(t){var e=new Dt.W(Pt);return t.subscribe(2,(function(t){e.add(function(t){return{service:t.service,version:t.version,id:t.id,name:t.name,startClocks:t.startClocks}}(t),t.startClocks.relative)})),t.subscribe(6,(function(t){var n=t.endClocks;e.closeActive(n.relative)})),t.subscribe(10,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),u=function(t,e,n){var r,o=new Dt.W(Dn);t.subscribe(2,(function(t){var e=t.startClocks,i=n.href;o.add(s({url:i,referrer:r||document.referrer}),e.relative),r=i})),t.subscribe(6,(function(t){var e=t.endClocks;o.closeActive(e.relative)}));var i=e.subscribe((function(t){var e=t.newLocation,n=o.find();if(n){var r=(0,d.$S)();o.closeActive(r),o.add(s({url:e.href,referrer:n.referrer}),r)}}));function s(t){return{url:t.url,referrer:t.referrer}}return{findUrl:function(t){return o.find(t)},stop:function(){i.unsubscribe(),o.stop()}}}(t,o,n),l=Jn(e),f=function(t,e,n,r){t.subscribe(1,(function(e){return t.notify(12,Pe(e,r))}));var o={findActionId:C.l};return n.trackUserInteractions&&(o=Me(t,e,n).actionContexts),{addAction:function(e,n){t.notify(12,(0,y.kp)({savedCommonContext:n},Pe(e,r)))},actionContexts:o}}(t,i,e,l),p=f.addAction,g=f.actionContexts,h=function(t){var e=bn();return{get:function(){return{viewport:e}},stop:yn(t).subscribe((function(t){e=t})).unsubscribe}}(e),m=function(t,e){var n;void 0===e&&(e=tr(t,rr));var r=(0,Qn.B9)(rr)||(null===(n=window.Cypress)||void 0===n?void 0:n.env("traceId")),o=e.subscribe((function(t){r=t}));return{get:function(){if("string"==typeof r)return{test_execution_id:r}},stop:function(){return o.unsubscribe()}}}(e);return Nt(e,t,r,c,u,g,h,m,s,a),{viewContexts:c,pageStateHistory:l,urlContexts:u,addAction:p,actionContexts:g,stop:function(){m.stop(),h.stop(),l.stop(),u.stop(),c.stop(),l.stop()}}}(f,e,location,w,R,A,o,m),I=O.viewContexts,N=O.pageStateHistory,L=O.urlContexts,M=O.actionContexts,D=O.addAction,P=O.stop;l.push(P),(0,g.Rr)(function(t){var e=(0,T.hO)(t);return(0,y.kp)({session_replay_sample_rate:t.sessionReplaySampleRate,start_session_replay_recording_manually:t.startSessionReplayRecordingManually,trace_sample_rate:t.traceSampleRate,trace_context_injection:t.traceContextInjection,action_name_attribute:t.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0,selected_tracing_propagators:U(t),default_privacy_level:t.defaultPrivacyLevel,use_excluded_activity_urls:Array.isArray(t.excludedActivityUrls)&&t.excludedActivityUrls.length>0,use_worker_url:!!t.workerUrl,compress_intake_requests:t.compressIntakeRequests,track_views_manually:t.trackViewsManually,track_user_interactions:t.trackUserInteractions,track_resources:t.trackResources,track_long_task:t.trackLongTasks},e)}(t)),function(t,e,n){t.subscribe(0,(function(r){for(var o=0,i=r;o<i.length;o++){var s=i[o];if(s.entryType!==pt.LONG_TASK)break;if(!n.findTrackedSession(s.startTime)||!e.trackLongTasks)break;var a=(0,d.FR)(s.startTime),c={date:a.timeStamp,long_task:{id:(0,st.lk)(),duration:(0,d.Zj)(s.duration)},type:"long_task",_dd:{discarded:!1}};t.notify(12,{rawRumEvent:c,startTime:a.relative,domainContext:{performanceEntry:s}})}}))}(f,e,w),je(f,e,w,N);var V=An(f,e,location,A,R,v,N,n,i),B=V.addTiming,q=V.startView,j=V.stop;l.push(j);var W=Ge(f,e,N,v).addError;Bt(f,e,w);var K=_t(f,e).stop;l.push(K);var Z=Yn(f,N),J=function(t,e,n,r,o){return{get:function(i){var s=n.findView(i),a=o.findUrl(i),c=e.findTrackedSession(i);if(c&&s&&a){var u=r.findActionId(i);return{application_id:t,session_id:c.id,user_action:u?{id:u}:void 0,view:{id:s.id,name:s.name,referrer:a.referrer,url:a.url}}}}}}(e.applicationId,w,I,M,L);return{addAction:D,addError:W,addTiming:B,addFeatureFlagEvaluation:v.addFeatureFlagEvaluation,startView:q,lifeCycle:f,viewContexts:I,session:w,stopSession:function(){return w.expire()},getInternalContext:J.get,startDurationVital:Z.startDurationVital,stopDurationVital:Z.stopDurationVital,stop:function(){l.forEach((function(t){return t()}))}}}),Ho,{startDeflateWorker:zo,createDeflateEncoder:Uo});
1(0,r.Z)((0,o.V)(),"DD_RUM",qo)},53992:(t,e,n)=>{function r(t,e,n){const r=n.getHandler(),o=Array.isArray(r)?r:[r];return i[t]>=i[n.getLevel()]&&o.includes(e)}n.r(e),n.d(e,{HandlerType:()=>Le,Logger:()=>De,StatusType:()=>o,datadogLogs:()=>ro});const o={ok:"ok",debug:"debug",info:"info",notice:"notice",warn:"warn",error:"error",critical:"critical",alert:"alert",emerg:"emerg"},i={[o.ok]:0,[o.debug]:1,[o.info]:2,[o.notice]:4,[o.warn]:5,[o.error]:6,[o.critical]:7,[o.alert]:8,[o.emerg]:9};function s(t,{includeMessage:e=!1}={}){return{stack:t.stack,kind:t.type,message:e?t.message:void 0,causes:t.causes,fingerprint:t.fingerprint,handling:t.handling}}var a=n(7481),c=n(61689);const u=(0,c.XH)("Datadog Browser SDK:"),l=`${c.fH}/real_user_monitoring/browser/troubleshooting`;var d=n(5489);let f;const{monitored:p,monitor:g,callMonitored:h,monitorError:m}=(0,d.l)(u,(t=>f?.(t)));var v=n(95041);function y(t){const e=v.J.queueMicrotask;"function"==typeof e?e(g(t)):Promise.resolve().then(g(t))}var b=class{constructor(t){this.onFirstSubscribe=t,this.observers=[]}subscribe(t){return this.addObserver(t),{unsubscribe:()=>this.removeObserver(t)}}notify(t){this.observers.forEach((e=>e(t)))}addObserver(t){this.observers.push(t),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(t){this.observers=this.observers.filter((e=>t!==e)),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}};function _(...t){return new b((e=>{const n=t.map((t=>t.subscribe((t=>e.notify(t)))));return()=>n.forEach((t=>t.unsubscribe()))}))}var w=class extends b{constructor(t,e){super(),this.maxBufferSize=t,this.onDrop=e,this.buffer=[],this.droppedCount=0}notify(t){this.buffer.push(t),this.buffer.length>this.maxBufferSize&&(this.buffer.shift(),this.droppedCount++),super.notify(t)}subscribe(t){let e=!1;const n={unsubscribe:()=>{e=!0,this.removeObserver(t)}};return y((()=>{for(const n of this.buffer){if(e)return;t(n)}e||this.addObserver(t)})),n}unbuffer(){y((()=>{this.droppedCount>0&&this.onDrop&&this.onDrop(this.droppedCount),this.maxBufferSize=this.buffer.length=0}))}};const S=1024,E=1024*S,C=/[^\u0000-\u007F]/;function k(t){return C.test(t)?(new TextEncoder).encode(t).length:t.length}function T(t,e){const n=v.J;let r;return n.Zone&&"function"==typeof n.Zone.__symbol__&&(r=t[n.Zone.__symbol__(e)]),r||(r=t[e]),r}function x(t,e){return T(v.J,"setTimeout")(g(t),e)}function A(t){T(v.J,"clearTimeout")(t)}function R(t,e){return T(v.J,"setInterval")(g(t),e)}function O(t){T(v.J,"clearInterval")(t)}function I(){}function N(t,e,n){if("object"!=typeof t||null===t)return JSON.stringify(t);const r=L(Object.prototype),o=L(Array.prototype),i=L(Object.getPrototypeOf(t)),s=L(t);try{return JSON.stringify(t,e,n)}catch{return"<error: unable to serialize object>"}finally{r(),o(),i(),s()}}function L(t){const e=t,n=e.toJSON;return n?(delete e.toJSON,()=>{e.toJSON=n}):I}const M=220*S,D="$",P=3;function U(t,e=M){const n=L(Object.prototype),r=L(Array.prototype);try{const n=[],r=new WeakMap,o=V(t,D,void 0,n,r),i=JSON.stringify(o);let s=i?i.length:0;if(s>e)return void F(e,"discarded",t);for(;n.length>0&&s<e;){const o=n.shift();let i=0;if(Array.isArray(o.source))for(let a=0;a<o.source.length;a++){const c=V(o.source[a],o.path,a,n,r);if(s+=void 0!==c?JSON.stringify(c).length:4,s+=i,i=1,s>e){F(e,"truncated",t);break}o.target[a]=c}else for(const a in o.source)if(Object.prototype.hasOwnProperty.call(o.source,a)){const c=V(o.source[a],o.path,a,n,r);if(void 0!==c&&(s+=JSON.stringify(c).length+i+a.length+P,i=1),s>e){F(e,"truncated",t);break}o.target[a]=c}}return o}finally{n(),r()}}function V(t,e,n,r,o){const i=function(t){if(("object"!=typeof t||null===t)&&"function"!=typeof t)return t;const e=t;if("function"==typeof e.toJSON)try{return e.toJSON()}catch{}return t}(t);if(!i||"object"!=typeof i)return"bigint"==typeof(s=i)?`[BigInt] ${s.toString()}`:"function"==typeof s?`[Function] ${s.name||"unknown"}`:"symbol"==typeof s?`[Symbol] ${s.description||s.toString()}`:s;var s;const a=$(i);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;const c=t;if(o.has(c))return`[Reference seen at ${o.get(c)}]`;const u=void 0!==n?`${e}.${n}`:e,l=Array.isArray(i)?[]:{};return o.set(c,u),r.push({source:i,target:l,path:u}),l}function $(t){try{if(t instanceof Event)return{type:(e=t).type,isTrusted:e.isTrusted,currentTarget:e.currentTarget?$(e.currentTarget):null,target:e.target?$(e.target):null};if(t instanceof RegExp)return`[RegExp] ${t.toString()}`;const n=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(n?.[1])return`[${n[1]}]`}catch{}var e;return"[Unserializable]"}function F(t,e,n){u.warn(`The data provided has been ${e} as it is over the limit of ${t} characters:`,n)}var z=n(2788);function B(t,e,n){const r={...t};for(const[t,{required:o,type:i}]of Object.entries(e))"string"!==i||G(r[t])||(r[t]=String(r[t])),o&&G(r[t])&&u.warn(`The property ${t} of ${n} is required; context will not be sent to the intake.`);return r}function G(t){return null==t||""===t}function H(t="",{propertiesConfig:e={}}={}){let n={};const r=new b,o={getContext:()=>(0,a.Go)(n),setContext:i=>{!function(t){const e="object"===(0,z.Pw)(t);return e||u.error("Unsupported context:",t),e}
1(i)?o.clearContext():n=U(B(i,e,t)),r.notify()},setContextProperty:(o,i)=>{n=U(B({...n,[o]:i},e,t)),r.notify()},removeContextProperty:o=>{delete n[o],B(n,e,t),r.notify()},clearContext:()=>{n={},r.notify()},changeObservable:r};return o}const q="?";function j(t){const e=[];let n=et(t,"stack");const r=String(t);if(n?.startsWith(r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach((t=>{const n=function(t){const e=Z.exec(t);if(!e)return;const n=0===e[2]?.indexOf("native"),r=0===e[2]?.indexOf("eval"),o=J.exec(e[2]);r&&o&&(e[2]=o[1],e[3]=o[2],e[4]=o[3]);return{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||q,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){const e=X.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||q,line:e[3]?+e[3]:void 0,url:e[2]}}(t)||function(t){const e=Y.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||q,line:+e[3],url:e[2]}}(t)||function(t){const e=Q.exec(t);if(!e)return;const n=e[3]&&e[3].indexOf(" > eval")>-1,r=tt.exec(e[3]);n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0);return{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||q,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=q),e.push(n))})),e.length>0&&function(){if(void 0!==it)return it;class t extends Error{constructor(){super(),this.name="Error"}}const[e,n]=[t,Error].map((t=>new t));return it=ot(Object.getPrototypeOf(e))&&n.stack!==e.stack,it}()&&t instanceof Error){const n=[];let r=t;for(;(r=Object.getPrototypeOf(r))&&ot(r);){const t=r.constructor?.name||q;n.push(t)}for(let t=n.length-1;t>=0&&e[0]?.func===n[t];t--)e.shift()}return{message:et(t,"message"),name:et(t,"name"),stack:e}}const W="((?:blob|native|eval|<anonymous>|[a-zA-Z][a-zA-Z0-9+.-]*:\\/\\/|\\w+\\.|\\/).*?)",K="(?::(\\d+))",Z=new RegExp(`^\\s*at (.*?) ?\\(${W}${K}?${K}?\\)?\\s*$`,"i"),J=new RegExp(`\\((\\S*)${K}${K}\\)`);const X=new RegExp(`^\\s*at\\s*(?:(.*)?(?: @))?\\s*${W}${K}?${K}??\\s*$`,"i");const Y=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;const Q=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,tt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function et(t,e){return(0,z.OE)(t)&&"string"==typeof t[e]?t[e]:void 0}function nt(t,e,n,r){if(void 0===e)return;const{name:o,message:i}=function(t){let e,n;"[object String]"==={}.toString.call(t)&&([,e,n]=rt.exec(t));return{name:e,message:n}}(t);return{name:o,message:i,stack:[{url:e,column:r,line:n}]}}const rt=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function ot(t){return String(t.constructor).startsWith("class ")}let it;function st(t){const e=new Error(t);let n;return e.name="HandlingStack",h((()=>{const t=j(e);t.stack=t.stack.slice(2),n=at(t)})),n}function at(t){let e=ct(t);return t.stack.forEach((t=>{const n="?"===t.func?"<anonymous>":t.func,r=t.args&&t.args.length>0?`(${t.args.join(", ")})`:"",o=t.line?`:${t.line}`:"",i=t.line&&t.column?`:${t.column}`:"";e+=`\n at ${n}${r} @ ${t.url}${o}${i}`})),e}function ct(t){return`${t.name||"Error"}: ${t.message}`}const ut="No stack, consider using an instance of Error";function lt(t){try{return t instanceof Error||"[object Error]"===Object.prototype.toString.call(t)}catch{return!1}}const dt=(t,e)=>"__proto__"===t?void 0:e;function ft(t){return 0===Object.keys(t).length}let pt=function(t){return t.SESSION_REPLAY_RECORD_CANVAS="session_replay_record_canvas",t.TRACK_INTAKE_REQUESTS="track_intake_requests",t.TRACK_WEBSOCKETS="track_websockets",t}({});const gt=new Set;function ht(t){Array.isArray(t)&&t.filter((t=>{return e=pt,n=t,Object.keys(e).some((t=>e[t]===n));var e,n})).forEach((t=>{gt.add(t)}))}function mt(){return gt}function vt(t){const{env:e,service:n,version:r,datacenter:o,sdkVersion:i,variant:s}=t,a=[yt("sdk_version",i??"7.12.0")];return e&&a.push(yt("env",e)),n&&a.push(yt("service",n)),r&&a.push(yt("version",r)),o&&a.push(yt("datacenter",o)),s&&a.push(yt("variant",s)),a}function yt(t,e){const n=e?`${t}:${e}`:t;return(n.length>200||function(t){return new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(t)}(n))&&u.warn(`Tag ${n} doesn't meet tag requirements and will be sanitized. ${c.xG} ${c.fH}/getting_started/tagging/#defining-tags`),bt(n)}function bt(t){return t.replace(/,/g,"_")}function _t(t,e){const n=v.J.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}function wt(){const{navigator:t}=v.J;return{status:t?.onLine?"connected":"not_connected",interfaces:t?.connection?.type?[t.connection.type]:void 0,effective_type:t?.connection?.effectiveType}}function St(){const t=v.J.DatadogEventBridge;if(t)return{getCapabilities:()=>JSON.parse(t.getCapabilities?.()||"[]"),getPrivacyLevel:()=>t.getPrivacyLevel?.(),getIsTraceSampled:()=>JSON.parse(t.getIsTraceSampled?.()||"null"),getAllowedWebViewHosts:()=>JSON.parse(t.getAllowedWebViewHosts()),send(e,n,r){const o=r?{id:r}:void 0;t.send(JSON.stringify({eventType:e,event:n,view:o}))}}}function Et(t=v.J.location?.hostname){return St()?.getAllowedWebViewHosts().some((e=>function(t,e){if(!e.includes("*"))return t===e||t.endsWith(`.${e}`);const n=e.split("*");if(2!==n.length)return u.error(`Invalid WebView host pattern "${e}": only one wildcard (*) is supported.`),!1;const[r,o]=n;return t.length>r.length+o.length&&t.startsWith(r)&&t.endsWith(o)}(t,e)))??!1}function Ct(t){return t>=500}var kt=n(48678);const Tt=80*S,xt=20*E,At=kt.iW,Rt=kt.OY;function Ot(t,e,n,r,o,i){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?Nt(t,e,n,i,{onSuccess:()=>Lt(0,e,n,r,o,i),onFailure:()=>{e.queuedPayloads.enqueue(t)||i.notify({type:"queue-full",bandwidth:e.bandwidthMonitor.stats(),payload:t}),It(e,n,r,o,i)}}):e.queuedPayloads.enqueue(t)||i.notify({type:"queue-full",bandwidth:e.bandwidthMonitor.stats(),payload:t})}function It(t,e,n,r,o){2===t.transportStatus&&x((()=>{Nt(t.queuedPayloads.first(),t,e,o,{onSuccess:()=>{t.queuedPayloads.dequeue(),t.currentBackoffTime=Rt,Lt(1,t,e,n,r,o)},onFailure:()=>{t.currentBackoffTime=Math.min(At,2*t.currentBackoffTime),It(t,e,n,r,o)}})}),t.currentBackoffTime)}function Nt(t,e,n,r,{onSuccess:o,onFailure:i}){e.bandwidthMonitor.add(t),n(t,(n=>{e.bandwidthMonitor.remove(t),!function(t){return"opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||Ct(t.status))}(n)?(e.transportStatus=0,r.notify({type:"success",bandwidth:e.bandwidthMonitor.stats(),payload:t}),o()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status}
1,r.notify({type:"failure",bandwidth:e.bandwidthMonitor.stats(),payload:t}),i())}))}function Lt(t,e,n,r,o,i){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(o(`Reached max ${r} events size queued for upload: ${xt/E}MiB`),e.queueFullReported=!0);const s=e.queuedPayloads;for(e.queuedPayloads=Mt();s.size()>0;)Ot(s.dequeue(),e,n,r,o,i)}function Mt(){const t=[];return{bytesCount:0,enqueue(e){return!this.isFull()&&(t.push(e),this.bytesCount+=e.bytesCount,!0)},first:()=>t[0],dequeue(){const e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size:()=>t.length,isFull(){return this.bytesCount>=xt}}}const Dt=16*S;function Pt(t,e,n=Dt){const r=new b,o={transportStatus:0,currentBackoffTime:Rt,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=Tt&&this.ongoingRequestCount<32},add(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount},stats(){return{ongoingByteCount:this.ongoingByteCount,ongoingRequestCount:this.ongoingRequestCount}}},queuedPayloads:Mt(),queueFullReported:!1};return{observable:r,send:n=>{for(const i of t)Ot(n,o,((t,e)=>{$t(i,t,e)}),i.trackType,e,r)},sendOnExit:e=>{for(const r of t)Ut(r,n,e)}}}function Ut(t,e,n){if(n.bytesCount<e)try{const e=t.build("beacon",n);if(navigator.sendBeacon(e,n.data))return}catch(t){!function(t){Vt||(Vt=!0,m(t))}(t)}$t(t,n)}let Vt=!1;function $t(t,e,n){const r=t.build("fetch",e);var o,i;(o=r,i={method:"POST",body:e.data,mode:"cors"},T(v.J,"fetch")(o,i)).then(g((t=>n?.({status:t.status,type:t.type})))).catch(g((()=>n?.({status:0}))))}function Ft(t){return Object.values(t)}let zt;function Bt(t,e,n,r){return Gt(t,[e],n,r)}function Gt(t,e,n,{once:r,capture:o,passive:i}={}){const s=g((t=>{(t.isTrusted||t.__ddIsTrusted||!1!==zt)&&(r&&l(),n(t))})),a=i?{capture:o,passive:i}:o,c=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,u=T(c,"addEventListener");function l(){const n=T(c,"removeEventListener");e.forEach((e=>n.call(t,e,s,a)))}return e.forEach((e=>u.call(t,e,s,a))),{stop:l}}function Ht(t,e){if(!t)return!1;try{return Bt(t,e,I).stop(),!0}catch{return!1}}const qt={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function jt(){let t="",e=0;return{isAsync:!1,get isEmpty(){return!t},write(n,r){const o=k(n);e+=o,t+=n,r&&r(o)},finish(t){t(this.finishSync())},finishSync(){const n={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:""};return t="",e=0,n},estimateEncodedBytesCount:t=>t.length}}const Wt=30*kt.OY,Kt=v.W?1:50;function Zt({pageMayExitObservable:t}){let e;const n=new b,r=t.subscribe((t=>{e=t.reason;try{n.notify(t.reason)}finally{e=void 0}c(t.reason)})),o=new b((()=>()=>{r.unsubscribe()}));let i,s=0,a=0;function c(t){if(0===a)return;const e=a,n=s;a=0,s=0,A(i),i=void 0,o.notify({reason:t,messagesCount:e,bytesCount:n})}return{flushObservable:o,prepareUrgentFlushObservable:n,forceFlush:c,get messagesCount(){return a},notifyBeforeAddMessage(t){s+t>=Dt&&c(e??"bytes_limit"),a+=1,s+=t,void 0===i&&(i=x((()=>{c("duration_limit")}),Wt))},notifyAfterAddMessage(t=0){s+=t,a>=Kt?c(e??"messages_limit"):s>=Dt&&c(e??"bytes_limit")}}}const Jt=256*S;function Xt({encoder:t=jt(),endpoints:e,reportError:n}){const r=Pt(e,n),o=Zt({pageMayExitObservable:new b((t=>{const e=v.J.window;if(!e)return;const{stop:n}=Gt(e,["visibilitychange","freeze"],(e=>{"visibilitychange"===e.type&&"hidden"===document.visibilityState?t.notify({reason:qt.HIDDEN}):"freeze"===e.type&&t.notify({reason:qt.FROZEN})}),{capture:!0}),r=Bt(e,"beforeunload",(()=>{t.notify({reason:qt.UNLOADING})})).stop;return()=>{n(),r()}}))});let i={};const s=o.flushObservable.subscribe((e=>function(e){const n=Ft(i).join("\n");i={};const o=(a=e.reason,Ft(qt).includes(a)),s=o?r.sendOnExit:r.send;var a;if(o&&t.isAsync){const e=t.finishSync();e.outputBytesCount&&s(Yt(e));const r=[e.pendingData,n].filter(Boolean).join("\n");r&&s({data:r,bytesCount:k(r)})}else n&&t.write(t.isEmpty?n:`\n${n}`),t.finish((t=>{s(Yt(t))}))}(e)));function a(e,n){const r=N(e),s=t.estimateEncodedBytesCount(r);s>=Jt?u.warn(`Discarded a message whose size was bigger than the maximum allowed size ${Jt/S}KiB. ${c.xG} ${l}/#technical-limitations`):function(e,n,r){if(void 0!==r){let s;void 0!==i[r]?s=n-t.estimateEncodedBytesCount(i[r]):(o.notifyBeforeAddMessage(n),s=0),i[r]=e,o.notifyAfterAddMessage(s)}else o.notifyBeforeAddMessage(n),t.write(t.isEmpty?e:`\n${e}`,(t=>{o.notifyAfterAddMessage(t-n)}))}(r,s,n)}return{get isEmpty(){return 0===o.messagesCount},add:a,upsert:a,prepareUrgentFlushObservable:o.prepareUrgentFlushObservable,forceFlush:o.forceFlush,flushObservable:o.flushObservable,stop:s.unsubscribe}}function Yt(t){let e;return e="string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),{data:e,bytesCount:t.outputBytesCount,encoding:t.encoding}}const Qt={LOG:"log",CONFIGURATION:"configuration",USAGE:"usage"};var te=n(80056),ee=n(22084),ne=n(94718),re=n(18712),oe=n(4751);const ie=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"];let se=function(t){return t.LOGS="browser-logs-sdk",t.RUM="browser-rum-sdk",t}({});const ae=1,ce=[te.R8,te.KG],ue=15;let le;function de(){return le||(le=new w(100)),le}function fe(t,e,n,r){const o=new b,{enabled:i,metricsEnabled:s}=function(t,e,n,r,o,i=ae,s=ue){const c={},u=!ce.includes(e.site)&&(0,oe.i)(e.telemetrySampleRate),l={[Qt.LOG]:u,[Qt.CONFIGURATION]:u&&(0,oe.i)(e.telemetryConfigurationSampleRate),[Qt.USAGE]:u&&(0,oe.i)(e.telemetryUsageSampleRate),metric:u&&(0,oe.i)(i)},d={is_local_file:"file:"===v.J.location?.protocol,is_worker:v.W},p=de();return p.subscribe((({rawEvent:e,metricName:o})=>{if(o&&!l.metric||!l[e.type])return;const i=o||e.status||e.type;let a=c[i];if(a||(a=c[i]=new Set),a.size>=s)return;const u=N(e);if(a.has(u))return;const f=n.trigger({startTime:(0,kt.M8)().relative});if(f===re.ug)return;const p=g(f,t,e,d);r.notify(p),_t("telemetry",p),a.add(u)})),p.unbuffer(),function(t){f=t}(ge),{enabled:u,metricsEnabled:l.metric};function g(t,n,r,i){const s={type:"telemetry",date:(0,kt.M8)().timeStamp,service:n,version:"7.12.0",source:"browser",_dd:{format_version:2},telemetry:(0,a.kg)(r,{runtime_env:i,connectivity:wt(),sdk_setup:"npm",sdk_name:o}),ddtags:vt(e).join(","),experimental_features:Array.from(mt())};return(0,a.kg)(s,t)}}(t,e,n,o,r),{stop:c}=function(t,e){const n=[];if(Et()){const t=St(),r=e.subscribe((e=>t.send("internal_telemetry",e)));n.push(r.unsubscribe)}else{const r=[(0,ee.ns)(t,"rum")],o=(0,ee.np)(t,"rum");o&&function(t){return t.site===te.Bb}(t)&&r.push(o);const i=Xt({endpoints:r,reportError:I});n.push(i.stop);const s=e.subscribe(i.add);n.push(s.unsubscribe)}return{stop:()=>n.forEach((t=>t()))}}(e,o);return{stop:c,enabled:i,metricsEnabled:s}}function pe(t,e){(0,ne.N)()&&u.debug("[Telemetry]",t,e),de().notify({rawEvent:{type:Qt.LOG,message:t,status:"debug",...e}})}function ge(t,e){de().notify({rawEvent:{type:Qt.LOG,status:"error",...me(t),...e}})}function he(t){de().notify({rawEvent:{type:Qt.USAGE,usage:t}})}function me(t){if(lt(t)){const e=j(t);return{error:{kind:e.name,stack:at(ve(e))},message:e.message}}return{error:{stack:ut},message:`Uncaught ${N(t)}`}}function ve(t){return t.stack=t.stack.filter((t=>!t.url||ie.some((e=>t.url.startsWith(e))))),t}const ye=new Map,be=new Set;let _e=!1;function we(){const t=v.J.window?.DD_SOURCE_CODE_CONTEXT;if(!t)return;let e=!1,n=!1,r=!1;for(const[o,i]of Object.entries(t)){if(e=e||void 0!==i.ddDebugId,n=n||void 0!==i.service,r=r||void 0!==i.version,be.has(o))continue;be.add(o);const t=j({stack:o}).stack[0]?.url;t&&!ye.has(t)&&ye.set(t,i)}_e||(_e=!0,he({feature:"source-code-context",use_debug_id:e,use_service:n,use_version:r}))}function Se(t){we();const e=new Set,n=[];for(const r of t){if(e.has(r))continue;e.add(r);const t=ye.get(r)?.ddDebugId;void 0!==t&&n.push({url:r,id:t})}return n.length?n:void 0}function Ee({originalError:t,stackTrace:e,source:n,useFallbackStack:r=!0,nonErrorPrefix:o}){const i=lt(t);return{source:n,type:e?e.name:void 0,message:xe(e,i,o,t),stack:e?at(e):r?ut:void 0}}function Ce(t){return t?.stack.map((t=>t.url)).filter((t=>!!t))??[]}function ke(t,e){const n=e.flatMap((({stackTrace:t})=>Ce(t)));return Se(Ce(t).concat(n))}function Te({stackTrace:t,originalError:e,handlingStack:n,componentStack:r,startClocks:o,nonErrorPrefix:i,useFallbackStack:s=!0,source:a,handling:c}){const u=t??(lt(e)?j(e):void 0),l=lt(e)?function(t){const e=[];let n=t.cause;for(;null!=n&&e.length<10;){const t=lt(n),r=t?j(n):void 0;e.push({originalError:n,stackTrace:r}),n=t?n.cause:void 0}return e}(e):[],d=Ee({originalError:e,stackTrace:u,source:a,useFallbackStack:s,nonErrorPrefix:i}),f=l.map((({originalError:t,stackTrace:e})=>Ee({originalError:t,stackTrace:e,source:a,useFallbackStack:!1})));return{startClocks:o,handling:c,handlingStack:n,componentStack:r,originalError:e,...d,debugIds:ke(u,l),causes:f.length?f:void 0,fingerprint:Ae(e),context:Re(e)}}function xe(t,e,n,r){return t?.message&&t?.name?t.message:e?"Empty message":n?`${n} ${N(U(r))}`:N(U(r))}function Ae(t){return lt(t)&&"dd_fingerprint"in t?String(t.dd_fingerprint):void 0}function Re(t){if((0,z.OE)(t))return t.dd_context}const Oe={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};let Ie=function(t){return t.UNCAUGHT="Uncaught",t.PROVIDED="Provided",t}({}),Ne=function(t){return t.HANDLED="handled",t.UNHANDLED="unhandled",t}({});const Le={console:"console",http:"http",silent:"silent"},Me=Object.keys(o);var De=class{constructor(t,e,n=Le.http,r=o.debug,i={}){this.handleLogStrategy=t,this.handlerType=n,this.level=r,this.contextManager=H("logger"),this.tags=[],this.contextManager.setContext(i),e&&this.contextManager.setContextProperty("logger",{name:e})}logImplementation(t,e,n=o.info,r,i){h((()=>{const o=U(e);let c,u;if(null!=r){const t=Te({originalError:r,nonErrorPrefix:Ie.PROVIDED,source:Oe.LOGGER,handling:Ne.HANDLED,startClocks:(0,kt.M8)()});u=t.debugIds,c=(0,a.kg)({error:s(t,{includeMessage:!0})},t.context,o)}else c=o;this.handleLogStrategy({message:U(t),context:c,status:n,...u?{debugIds:u}:{}},this,i)}))}log(t,e,n=o.info,i){let s;r(n,Le.http,this)&&(s=st("log")),this.logImplementation(t,e,n,i,s)}setContext(t){this.contextManager.setContext(t)}
1getContext(){return this.contextManager.getContext()}setContextProperty(t,e){this.contextManager.setContextProperty(t,e)}removeContextProperty(t){this.contextManager.removeContextProperty(t)}clearContext(){this.contextManager.clearContext()}addTag(t,e){this.tags.push(yt(t,e))}removeTagsWithKey(t){const e=bt(t);this.tags=this.tags.filter((t=>t!==e&&!t.startsWith(`${e}:`)))}getTags(){return this.tags.slice()}setHandler(t){this.handlerType=t}getHandler(){return this.handlerType}setLevel(t){this.level=t}getLevel(){return this.level}};function Pe(t){return function(e,n,o){let i;r(t,Le.http,this)&&(i=st("log")),this.logImplementation(e,n,t,o,i)}}function Ue(){return v.W?{}:{view:{referrer:document.referrer,url:window.location.href}}}De.prototype.ok=Pe(o.ok),De.prototype.debug=Pe(o.debug),De.prototype.info=Pe(o.info),De.prototype.notice=Pe(o.notice),De.prototype.warn=Pe(o.warn),De.prototype.error=Pe(o.error),De.prototype.critical=Pe(o.critical),De.prototype.alert=Pe(o.alert),De.prototype.emerg=Pe(o.emerg);const Ve=class{constructor(){this.callbacks={}}notify(t,e){const n=this.callbacks[t];n&&n.forEach((t=>t(e)))}subscribe(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),{unsubscribe:()=>{this.callbacks[t]=this.callbacks[t].filter((t=>e!==t))}}}},$e=3e3;function Fe(t,e,n,r,o,i){const s=Me.concat(["custom"]),c={};s.forEach((t=>{c[t]=function(t,e,n=$e){let r=0,o=!1;return{isLimitReached(){if(0===r&&x((()=>{r=0}),kt.iW),r+=1,r<=n||o)return o=!1,!1;if(r===n+1){o=!0;try{e(`Reached max number of ${t}s by minute: ${n}`)}finally{o=!1}}return!0}}}(t,o,i)})),e.subscribe(0,(({rawLogsEvent:o,messageContext:i,savedCommonContext:s,domainContext:u,ddtags:l=[]})=>{const d=(0,kt.d6)(o.date),f=s||r(),p=n.trigger({startTime:d});if(p===re.ug)return;const g=vt(t),h=(0,a.kg)({view:f.view},p,o,i,{ddtags:g.concat(l).join(",")});!1===t.beforeSend?.(h,u)||h.origin!==Oe.AGENT&&(c[h.status]??c.custom).isLimitReached()||e.notify(1,h)}))}function ze(t,e,n,{computeHandlingStack:r}={}){let o=t[e];if("function"!=typeof o){if(!(e in t)||"string"!=typeof e||!e.startsWith("on"))return{stop:I};o=I}let i=!1;const{stop:s}=Be(t,e,o,(function(){if(i)return o.apply(this,arguments);const t=Array.from(arguments);return Ge(n,{target:this,parameters:t,handlingStack:r?st("instrumented method"):void 0},(()=>o.apply(this,t)))}));return{stop:()=>{i=!0,s()}}}function Be(t,e,n,r){return t[e]=r,{stop:()=>{t[e]===r&&(t[e]=n)}}}function Ge(t,e,n){let r;h(t,null,[{...e,onPostCall:t=>{r=t}}]);const o=n();return r&&h(r,null,[o]),o}function He(){return new b((t=>{const e=(e,n)=>{const r=Te({stackTrace:n,originalError:e,startClocks:(0,kt.M8)(),nonErrorPrefix:"Uncaught",source:Oe.SOURCE,handling:"unhandled"});t.notify(r)},{stop:n}=(r=e,ze(v.J,"onerror",(({parameters:[t,e,n,o,i]})=>{let s;lt(i)||(s=nt(t,e,n,o)),r(i??t,s)})));var r;const{stop:o}=function(t){return Ht(v.J.window,"unhandledrejection")?ze(v.J,"onunhandledrejection",(({parameters:[e]})=>{t(e.reason||"Empty reason")})):{stop:I}}(e);return()=>{n(),o()}}))}var qe=n(97165);let je;const We=new WeakMap;function Ke(){return je||(je="XMLHttpRequest"in v.J?new b((t=>{const{stop:e}=ze(XMLHttpRequest.prototype,"open",Ze),{stop:n}=ze(XMLHttpRequest.prototype,"send",(e=>{!function({target:t,parameters:[e],handlingStack:n},r){const o=We.get(t);if(!o)return;const i=o;i.state="start",i.startClocks=(0,kt.M8)(),i.isAborted=!1,i.xhr=t,i.handlingStack=n,i.requestBody=e;let s=!1;const{stop:a}=ze(t,"onreadystatechange",(()=>{t.readyState===XMLHttpRequest.DONE&&c()})),c=()=>{if(u(),a(),s)return;s=!0;const e=o;e.duration=(0,kt.vk)(i.startClocks.timeStamp,(0,kt.nx)()),e.status=t.status,"string"==typeof t.response&&(e.responseBody=t.response),r.notify({...e,state:"complete"})},{stop:u}=Bt(t,"loadend",c);r.notify(i)}(e,t)}),{computeHandlingStack:!0}),{stop:r}=ze(XMLHttpRequest.prototype,"abort",Je);return()=>{e(),n(),r()}})):new b),je}function Ze({target:t,parameters:[e,n]}){We.set(t,{state:"open",method:String(e).toUpperCase(),url:(0,qe.l2)(String(n))})}function Je({target:t}){const e=We.get(t);e&&(e.isAborted=!0)}async function Xe(t){const e=t.getReader(),n=[];for(;;){const t=await e.read();if(t.done)break;n.push(t.value)}return e.cancel().catch(I),function(t){if(1===t.length)return t[0];const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(n)}let Ye,Qe=function(t){return t[t.IGNORE=0]="IGNORE",t[t.COLLECT=1]="COLLECT",t}({});const tn=[];function en({responseBodyAction:t}={}){return t&&tn.push(t),Ye||(Ye=new b((t=>{if(!v.J.fetch)return;const{stop:e}=ze(v.J,"fetch",(e=>function({parameters:t,onPostCall:e,handlingStack:n},r){const[o,i]=t;let s=i?.method;void 0===s&&o instanceof Request&&(s=o.method);const a=void 0!==s?String(s).toUpperCase():"GET",c=o instanceof Request?o.url:(0,qe.l2)(String(o)),u={state:"start",init:i,input:o,method:a,startClocks:(0,kt.M8)(),url:c,handlingStack:n,isAbortedOnStart:o instanceof Request&&o.signal?.aborted||i?.signal?.aborted||!1};r.notify(u),t[0]=u.input,t[1]=u.init,e((t=>{(async function(t,e,n){const r=n;let o;try{o=await e}catch(e){return void t.notify({...r,state:"resolve",status:0,isAborted:r.init?.signal?.aborted||e instanceof DOMException&&e.code===DOMException.ABORT_ERR,error:e})}if(r.response=o,r.status=o.status,r.responseType=o.type,r.isAborted=!1,1===tn.reduce(((t,e)=>Math.max(t,e(r))),0)){const t=function(t){try{return t.clone()}catch{return}}(o);if(t?.body)try{const e=await Xe(t.body);r.responseBody=(new TextDecoder).decode(e)}catch{}}t.notify({...r,state:"resolve"})})(r,t,u).catch(m)}))}(e,t)),{computeHandlingStack:!0});return e}))),Ye}let nn={};function rn(t){return _(...t.map((t=>(nn[t]||(nn[t]=function(t){return new b((e=>{const n=c.JZ[t];return c.JZ[t]=(...r)=>{n.apply(console,r);const o=st("console error");h((()=>
1{e.notify(function(t,e,n){const r=t.map((t=>function(t){return"string"==typeof t?U(t):lt(t)?ct(j(t)):N(U(t),void 0,2)}(t))).join(" ");if(e===c.bP.error){const o=Te({originalError:t.find(lt),handlingStack:n,startClocks:(0,kt.M8)(),source:Oe.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return o.message=r,{api:e,message:r,handlingStack:n,error:o}}return{api:e,message:r,error:void 0,handlingStack:n}}(r,t,o))}))},()=>{c.JZ[t]=n}}))}(t)),nn[t]))))}const on=500;let sn=function(t){return t[t.RUNTIME_ERROR=0]="RUNTIME_ERROR",t[t.FETCH=1]="FETCH",t[t.XHR=2]="XHR",t[t.CONSOLE=3]="CONSOLE",t}({});const an={[c.bP.log]:o.info,[c.bP.debug]:o.debug,[c.bP.info]:o.info,[c.bP.warn]:o.warn,[c.bP.error]:o.error};function cn(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,cn)}const un=/(\S+?)\s*=\s*(.*?)(?:;|$)/g;function ln(t,e,n=""){const r=t.charCodeAt(e-1),o=r>=55296&&r<=56319?e+1:e;return t.length<=o?t:`${t.slice(0,o)}${n}`}const dn={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function fn(t){const e=[];t.includes(dn.cspViolation)&&e.push(new b((t=>{if(!Ht(document,"securitypolicyviolation"))return;const{stop:e}=Bt(document,"securitypolicyviolation",(e=>{t.notify(function(t){const e=`'${t.blockedURI}' blocked by '${t.effectiveDirective}' directive`;return pn({type:t.effectiveDirective,message:`${dn.cspViolation}: ${e}`,originalError:t,csp:{disposition:t.disposition},stack:gn(t.effectiveDirective,t.originalPolicy?`${e} of the policy "${ln(t.originalPolicy,100,"...")}"`:"no policy",t.sourceFile,t.lineNumber,t.columnNumber),debugIds:t.sourceFile?Se([t.sourceFile]):void 0})}(e))}));return e})));const n=t.filter((t=>t!==dn.cspViolation));return n.length&&e.push(function(t){return new b((e=>{if(!window.ReportingObserver)return;const n=g(((t,n)=>t.forEach((t=>e.notify(function(t){const{type:e,body:n}=t;return pn({type:n.id,message:`${e}: ${n.message}`,originalError:t,stack:gn(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber),debugIds:n.sourceFile?Se([n.sourceFile]):void 0})}(t)))))),r=new window.ReportingObserver(n,{types:t,buffered:!0});return r.observe(),()=>{r.disconnect()}}))}(n)),_(...e)}function pn(t){return{startClocks:(0,kt.M8)(),source:Oe.REPORT,handling:"unhandled",...t}}function gn(t,e,n,r,o){return n?at({name:t,message:e,stack:[{func:"?",url:n,line:r??void 0,column:o??void 0}]}):void 0}const hn={FETCH:"fetch",XHR:"xhr"},mn=32*S;function vn(t){return hn.XHR===t?"XHR":"Fetch"}function yn(t){return{handleLog:function(e,n,o,i,s){const u=(0,a.kg)(n.getContext(),e.context);if(r(e.status,Le.console,n)&&function({status:t,message:e},n){c.Z9[bn[t]].call(c.JZ,e,n)}(e,u),r(e.status,Le.http,n)){const r={rawLogsEvent:{date:s||(0,kt.nx)(),message:e.message,status:e.status,origin:Oe.LOGGER,_dd:{debug_ids:e.debugIds}},messageContext:u,savedCommonContext:i,ddtags:n.getTags()};o&&(r.domainContext={handlingStack:o}),t.notify(0,r)}}}}const bn={[o.ok]:c.bP.debug,[o.debug]:c.bP.debug,[o.info]:c.bP.info,[o.notice]:c.bP.info,[o.warn]:c.bP.warn,[o.error]:c.bP.error,[o.critical]:c.bP.error,[o.alert]:c.bP.error,[o.emerg]:c.bP.error};function _n(t){return{get:e=>{const n=t.findTrackedSession(e);if(n)return{session_id:n.id}}}}function wn(t,e,n=0,r){const o=new Date;o.setTime(o.getTime()+n);const i=`expires=${o.toUTCString()}`,s=r?.crossSite?"none":"strict",a=r?.domain?`;domain=${r.domain}`:"",c=r?.secure?";secure":"",u=r?.partitioned?";partitioned":"";document.cookie=`${t}=${e};${i};path=/;samesite=${s}${a}${c}${u}`}function Sn(t){const e=function(t,e){for(un.lastIndex=0;;){const n=un.exec(t);if(!n)break;if(n[1]===e)return n[2]}}(document.cookie,t);if(""!==e)return e}function En(t){return function(t){const e=new Map;for(un.lastIndex=0;;){const n=un.exec(t);if(!n)break;{const t=n[1],r=n[2];e.has(t)?e.get(t).push(r):e.set(t,[r])}}return e}(document.cookie).get(t)||[]}let Cn,kn;function Tn(t){return Cn||(Cn=function(t){const e=new Map;for(un.lastIndex=0;;){const n=un.exec(t);if(!n)break;e.set(n[1],n[2])}return e}(document.cookie)),Cn.get(t)}function xn(t,e){wn(t,"",0,e)}function An(t=v.J.location?.hostname??"",e=("undefined"!=typeof document?document.referrer:"")){if("undefined"!=typeof document){if(void 0===kn){const n=function(t,e){try{return t||(0,qe.c$)(e).hostname}catch{}}(t,e);if(n){const t=`dd_site_test_${cn()}`,e="test",r=n.split(".");let o=r.pop();for(;r.length&&!Sn(t);)o=`${r.pop()}.${o}`,wn(t,e,kt.OY,{domain:o});xn(t,{domain:o}),kn=o}}return kn}}const Rn="datadog-synthetics-",On=`${Rn}injects-rum`;function In(t){const e=v.J;function n(t){const n=function(t,e){if(e?.getInternalContext)return e.getInternalContext(t)}
1(t,!v.W&&Boolean(v.J._DATADOG_SYNTHETICS_INJECTS_RUM||Tn(On))?e.DD_RUM_SYNTHETICS:e.DD_RUM);if(n)return n}t.assemble.register((({startTime:t})=>{const e=n(t);return e||re.$O})),t.assembleTelemetry.register((({startTime:t})=>{const e=n(t);return e?{application:{id:e.application_id},view:{id:e.view?.id},action:{id:e.user_action?.id}}:re.$O}))}const Nn="_dd_c",Ln=[];function Mn(t,e,n){if("undefined"==typeof window||"undefined"==typeof localStorage)return;const r=function(t,e){return`${Nn}_${t}_${e}`}(e,n);Ln.push(Bt(window,"storage",(({key:e})=>{r===e&&t.setContext(i())}))),t.changeObservable.subscribe((function(){localStorage.setItem(r,JSON.stringify(t.getContext()))}));const o=(0,a.kg)(i(),t.getContext());function i(){const t=localStorage.getItem(r);return t?function(t){try{return JSON.parse(t,dt)}catch{}}(t)??{}:{}}ft(o)||t.setContext(o)}function Dn(){return H("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}function Pn(){return H("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}function Un(){return H("global context")}const Vn="_dd_tab_id";let $n;function Fn(t){const e=function(){$n||($n=function(){try{const t=sessionStorage.getItem(Vn);if(t)return t;const e=cn();return sessionStorage.setItem(Vn,e),e}catch{return}}()??cn());return $n}();t.register((()=>({tab:{id:e}})))}const zn="logs";function Bn(t,e,n,r,i){const a=new Ve,c=[];a.subscribe(1,(t=>_t("logs",t)));const u=function(t){return e=>{t.notify(0,{rawLogsEvent:{message:e,date:(0,kt.nx)(),origin:Oe.AGENT,status:o.error}}),pe("Error reported to customer",{"error.message":e})}}(a),l=i.assemble;!function(t,e,n){t.register((({startTime:t})=>{const r=n.findTrackedSession(t);return n.findTrackedSession(t,{returnInactive:!0,maxAge:1/0})?{service:e.service,session_id:r?r.id:void 0,session:r?{id:r.id}:void 0}:re.ug}))}(l,t,e);const d=function(t,e,n){const r=Dn();return e.storeContextsAcrossPages&&Mn(r,n,4),t.register((()=>{const t=r.getContext();return ft(t)||!t.id?re.$O:{account:t}})),r}(l,t,zn),f=function(t,e,n,r){const o=Pn();return e.storeContextsAcrossPages&&Mn(o,r,1),t.register((({eventType:t,startTime:r})=>{const i=o.getContext(),s=n.findTrackedSession(r);return s?.anonymousId&&!i.anonymous_id&&e.trackAnonymousUser&&(i.anonymous_id=s.anonymousId),ft(i)?re.$O:{type:t,usr:i}})),o}(l,t,e,zn),p=function(t,e,n,r){const o=Un();return e.storeContextsAcrossPages&&Mn(o,n,2),t.register((()=>{const t=o.getContext();return r?{context:t}:t})),o}(l,t,zn,!1);In(i),Fn(l),function(t,e,n){if(!t.forwardErrorsToLogs)return{stop:I};en({responseBodyAction:t=>i(t)?Qe.COLLECT:Qe.IGNORE});const r=n.subscribe((({data:t,type:e})=>{e===sn.FETCH&&"resolve"===t.state?s(hn.FETCH,t):e===sn.XHR&&"complete"===t.state&&s(hn.XHR,t)}));function i(t){return!(0,te.wo)(t.url)&&!t.isAborted&&(function(t){return 0===t.status&&"opaque"!==t.responseType}(t)||Ct(t.status))}function s(t,n){if(!i(n))return;const r="error"in n&&n.error?j(n.error):void 0,s=r?at(r):n.responseBody||"Failed to load",a=r?Se(Ce(r)):void 0,c={handlingStack:n.handlingStack};e.notify(0,{rawLogsEvent:{message:`${vn(t)} error ${n.method} ${n.url}`,date:n.startClocks.timeStamp,error:{stack:ln(s,mn,"..."),handling:void 0},_dd:{debug_ids:a},http:{method:n.method,status_code:n.status,url:n.url},status:o.error,origin:Oe.NETWORK},domainContext:c})}}(t,a,r),function(t,e,n){if(!t.forwardErrorsToLogs)return{stop:I};const r=n.subscribe((t=>{if(t.type===sn.RUNTIME_ERROR){const n=t.data;e.notify(0,{rawLogsEvent:{message:n.message,date:n.startClocks.timeStamp,error:s(n),_dd:{debug_ids:n.debugIds},origin:Oe.SOURCE,status:o.error},messageContext:n.context})}}))}(t,a,r),function(t,e,n){const r=n.subscribe((({data:n,type:r})=>{if(r!==sn.CONSOLE||!t.forwardConsoleLogs.includes(n.api))return;const o={rawLogsEvent:{date:(0,kt.nx)(),message:n.message,origin:Oe.CONSOLE,error:n.error&&s(n.error),_dd:n.error&&{debug_ids:n.error.debugIds},status:an[n.api]},messageContext:n.error?.context,domainContext:{handlingStack:n.handlingStack}};e.notify(0,o)}))}(t,a,r),r.unbuffer(),function(t,e){const n=fn(t.forwardReports).subscribe((t=>{let n,r=t.message;const i="deprecation"===t.originalError.type?o.warn:o.error;var a;i===o.error?n=s(t):t.stack&&(r+=` Found in ${a=t.stack,/@ (.+)/.exec(a)?.[1]}`),e.notify(0,{rawLogsEvent:{date:(0,kt.nx)(),message:r,origin:Oe.REPORT,error:n,_dd:{debug_ids:t.debugIds},status:i}})}))}(t,a);const{handleLog:g}=yn(a);if(Fe(t,a,l,n,u),Et())!function(t){const e=St();t.subscribe(1,(t=>{e.send("log",t)}))}(a);else{const{stop:n}=function(t,e,n,r){const o=[(0,ee.ns)(t,"logs")],i=(0,ee.np)(t,"logs");i&&o.push(i);const s=Xt({endpoints:o,reportError:n});return r.expireObservable.subscribe((()=>s.forceFlush("session_expire"))),e.subscribe(1,(t=>{s.add(t)})),s}(t,a,u,e);c.push((()=>n()))}return{handleLog:g,getInternalContext:_n(e).get,accountContext:d,globalContext:p,userContext:f,stop:()=>
1{c.forEach((t=>t()))}}}const Gn={GRANTED:"granted",NOT_GRANTED:"not-granted"};const Hn={clientToken:{type:"string",required:!0},service:{type:"string"},env:{type:"string"},version:{type:"string"},site:{type:"site",default:te.NW},proxy:{type:"union",variants:[{type:"string"},{type:"function",signature:void 0}]},sessionSampleRate:{type:"percentage",default:100},telemetrySampleRate:{type:"percentage",default:20},telemetryConfigurationSampleRate:{type:"percentage",default:5},telemetryUsageSampleRate:{type:"percentage",default:5},silentMultipleInit:{type:"boolean",default:!1,strict:!1},storeContextsAcrossPages:{type:"boolean",default:!1,strict:!1},trackAnonymousUser:{type:"boolean",default:!0,strict:!1},useSecureSessionCookie:{type:"boolean",default:!1,strict:!1},usePartitionedCrossSiteSessionCookie:{type:"boolean",default:!1,strict:!1},trackSessionAcrossSubdomains:{type:"boolean",default:!1,strict:!1},allowedTrackingOrigins:{type:"match-option",multiple:!0,strict:!1},trackingConsent:{type:"enum",values:Gn,default:Gn.GRANTED},beforeSend:{type:"function",signature:void 0},source:{type:"enum",values:["browser","flutter","unity"],default:"browser",strict:!1},sessionPersistence:{type:"enum",values:["cookie","local-storage","memory"],multiple:!0,strict:!1},replica:{type:"schema",schema:{clientToken:{type:"string",required:!0},applicationId:{type:"string"}}},datacenter:{type:"string"},sdkVersion:{type:"string"},variant:{type:"string"}};function qn(t,e){return(...n)=>{try{return t(...n)}catch(t){u.error(e,t)}}}var jn=n(92761);const Wn={...Hn,forwardErrorsToLogs:{type:"boolean",default:!0,strict:!1},forwardConsoleLogs:{type:"enum",values:c.bP,multiple:!0,allowAll:!0,default:[]},forwardReports:{type:"enum",values:dn,multiple:!0,allowAll:!0,default:[]}};function Kn(t){const e=(0,jn.S)(t,Wn,u);if(e)return{...e,beforeSend:e.beforeSend?qn(e.beforeSend,"beforeSend threw an error:"):void 0}}function Zn(t){const e={session_sample_rate:(n=t).sessionSampleRate,telemetry_sample_rate:n.telemetrySampleRate,telemetry_configuration_sample_rate:n.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:n.telemetryUsageSampleRate,use_before_send:!!n.beforeSend,use_partitioned_cross_site_session_cookie:n.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:n.useSecureSessionCookie,use_proxy:!!n.proxy,silent_multiple_init:n.silentMultipleInit,track_session_across_subdomains:n.trackSessionAcrossSubdomains,track_anonymous_user:n.trackAnonymousUser,session_persistence:Array.isArray(n.sessionPersistence)?n.sessionPersistence[0]:n.sessionPersistence,store_contexts_across_pages:!!n.storeContextsAcrossPages,allow_untrusted_events:!!n.allowUntrustedEvents,tracking_consent:n.trackingConsent,use_allowed_tracking_origins:Array.isArray(n.allowedTrackingOrigins),source:n.source,sdk_version:n.sdkVersion,variant:n.variant};var n;return{forward_errors_to_logs:t.forwardErrorsToLogs,forward_console_logs:t.forwardConsoleLogs,forward_reports:t.forwardReports,...e}}function Jn(t,e,n,r){return g(((...o)=>(r&&he({feature:r}),t()[e][n](...o))))}function Xn(t,e,n){t.changeObservable.subscribe((()=>{const r=t.getContext();n.notify((t=>t[e].setContext(r)))}))}const Yn={userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"},Qn="getContext",tr="setContext",er="setContextProperty",nr="removeContextProperty",rr="clearContext";function or(t,e){e.silentMultipleInit||u.error(`${t} is already initialized.`)}const ir=["chrome-extension://","moz-extension://"];function sr(t){return ir.some((e=>t.includes(e)))}const ar="Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided.",cr="SDK initialized on a non-allowed domain.";function ur(t,e){const n=v.J.location,r=n?n.origin:"",o=t.allowedTrackingOrigins;if(!o)return!function(t,e=""){return!sr(t)&&sr(e.split("\n").filter((t=>{const e=t.trim();return e.length&&/^at\s+|@/.test(e)}))[1]||"")}(r,e)||(u.error(ar),!1);const i=function(t,e,n=!1){return t.some((t=>{try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.lastIndex=0,t.test(e);
1if("string"==typeof t)return n?e.startsWith(t):t===e}catch(t){u.error(t)}return!1}))}(o,r);return i||u.error(cr),i}const lr=1/0,dr=kt.iW;let fr;const pr=new Set;function gr({expireDelay:t,maxEntries:e}){let n=[];const r=()=>{if(!t)return;const e=(0,kt.$S)()-t;for(;n.length>0&&n[n.length-1].endTime<e;)n.pop()};return t&&(fr||(fr=R((()=>{pr.forEach((t=>t()))}),dr)),pr.add(r)),{add:function(t,r){const o={value:t,startTime:r,endTime:lr,remove:()=>{!function(t,e){const n=t.indexOf(e);n>=0&&t.splice(n,1)}(n,o)},close:t=>{o.endTime=t}};return e&&n.length>=e&&n.pop(),n.unshift(o),o},find:function(t=lr,e={returnInactive:!1}){for(const r of n)if(r.startTime<=t){if(e.returnInactive||t<=r.endTime)return r.value;break}},closeActive:function(t){const e=n[0];e?.endTime===lr&&e.close(t)},findAll:function(t=lr,e=0){const r=(0,kt.Gw)(t,e);return n.filter((e=>e.startTime<=r&&t<=e.endTime)).map((t=>t.value))},findAllEntries:function(t=lr,e=0){const r=(0,kt.Gw)(t,e);return n.filter((e=>e.startTime<=r&&t<=e.endTime))},getEntries:function(t){return n.filter((e=>e.startTime===t))},reset:function(){n=[]},stop:function(){pr.delete(r),0===pr.size&&fr&&(O(fr),fr=void 0)}}}const hr=new Map;function mr(t,e){if(100===e)return!0;if(0===e)return!1;const n=hr.get(e);if(t===n?.sessionId)return n.decision;const r=function(t,e){const n=1n<<64n;return Number(1111111111111111111n*t%n)<=e/100*Number(n)}(BigInt(`0x${t.split("-")[4]}`),e);return hr.set(e,{sessionId:t,decision:r}),r}const vr=4*kt.MA,yr=15*kt.iW,br=kt.$H,_r={COOKIE:"cookie",MEMORY:"memory",LOCAL_STORAGE:"local-storage"},wr=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function Sr(t){return t.created?Number(t.created):void 0}function Er(t){const e=t.expire&&Number(t.expire),n=Sr(t);if(e&&n)return Math.min(e,n+vr)}function Cr(t,e){const n={isExpired:"1"};return e.trackAnonymousUser&&t?.anonymousId&&(n.anonymousId=t?.anonymousId),n}function kr(t){return ft(t)}function Tr(t){return void 0!==t.isExpired||!function(t){const e=Er(t);return!!e&&(0,kt.x3)()<e}(t)}function xr(t){t.expire=String((0,kt.x3)()+yr)}function Ar(t){return(e=t,Object.entries(e)).map((([t,e])=>"anonymousId"===t?`aid=${e}`:`${t}=${e}`)).join("&");var e}function Rr(t){const e={};return function(t){return!!t&&(-1!==t.indexOf("&")||wr.test(t))}(t)&&t.split("&").forEach((t=>{const n=wr.exec(t);if(null!==n){const[,t,r]=n;"aid"===t?e.anonymousId=r:e[t]=r}})),e}
1function Or(t,e){return kr(t)?(e.trackAnonymousUser&&(t.anonymousId=cn()),Cr(t,e)):t}function Ir(t,e){if(kr(t))return t;let n=t;return Tr(t)&&(n=Cr(t,e)),n.id||(n.id=cn(),n.created=String((0,kt.x3)())),e.trackAnonymousUser&&!n.anonymousId&&(n.anonymousId=cn()),delete n.isExpired,xr(n),n}const Nr="dd_cookie_test_";async function Lr(t,e){const n=`${Nr}${cn()}`,r="test",o=t(n,e);try{return await o.getAllAndSet((()=>({value:r,expireDelay:kt.iW}))),(await o.getAll()).includes(r)}catch(t){return u.error(t),!1}finally{try{await o.delete()}catch{}}}function Mr(t,e){const n=v.J.cookieStore,r=new b((()=>Bt(n,"change",(e=>{(e.changed.some((e=>e.name===t))||e.deleted.some((e=>e.name===t)))&&r.notify()})).stop));return{getAll:async()=>(await n.getAll(t)).map((t=>t.value)),delete:()=>n.delete({name:t,domain:e.domain,path:"/",partitioned:e.partitioned}),async getAllAndSet(r){const o=await n.getAll(t),{value:i,expireDelay:s}=r(o.map((t=>t.value)));try{await n.set({name:t,value:i,expires:(0,kt.x3)()+s,path:"/",sameSite:e.crossSite?"none":"strict",domain:e.domain,secure:e.secure,partitioned:e.partitioned})}catch(n){if(!t.startsWith("dd_cookie_test_")){const r=En(t);pe("Failed to set cookie using Cookie Store API",{"error.message":n.message,newValue:i,cookieOptions:{...e},cookies:o.map((t=>({...t}))),cookieCount:o.length,documentCookies:r})}}},observable:r}}const Dr=kt.OY;function Pr(t,e){let n=En(t);const r=new b((()=>{const e=R((()=>{o(En(t))}),Dr);return()=>{O(e)}}));function o(t){String(t)!==String(n)&&(n=t,r.notify())}return{getAll:()=>Promise.resolve(En(t)),async getAllAndSet(n){const{value:r,expireDelay:i}=n(En(t));wn(t,r,i,e),await Promise.resolve(),o([r])},async delete(){xn(t,e),await Promise.resolve(),o([])},observable:r}}const Ur="_dd_s_v2",Vr="_dd_s";async function $r(t){const e=function(t){const e={};if(e.secure=t.useSecureSessionCookie||t.usePartitionedCrossSiteSessionCookie,e.crossSite=t.usePartitionedCrossSiteSessionCookie,e.partitioned=t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains){const t=An();if(!t)return;e.domain=t}return e}(t);if(e)return function(){const t=v.J.cookieStore;return Boolean(t&&Ht(t,"change"))}()&&await Lr(Mr,e)?{type:_r.COOKIE,cookieOptions:e,cookieApi:1}:await Lr(Pr,e)?{type:_r.COOKIE,cookieOptions:e,cookieApi:0}:void 0}let Fr;function zr(t,e){const{cookieOptions:n,cookieApi:r}=t,o=new b,i=!!e.trackAnonymousUser,s=qr(n),a=Br(r,n);let c=!0;function u(t){return a.getAllAndSet((e=>{let r=Gr(e,s);return c&&ft(r)&&(r=Gr(En(Vr),s)),c=!1,{value:Hr(t(r),n),expireDelay:i?br:vr}}))}return a.observable.subscribe((()=>{a.getAll().then((t=>{o.notify(Gr(t,s))})).catch((t=>m(new Error(`Error while reading session cookies on change: ${t}`))))})),{async setSessionState(t,e){"undefined"!=typeof navigator&&navigator.locks?await navigator.locks.request(Ur,(()=>u(t))).catch((t=>{if(!function(t){return t instanceof Error&&("AbortError"===t.name||t.message.includes("no longer runnable"))}(t))throw t})):(Fr=(Fr??Promise.resolve()).then((()=>u(t))),await Fr)},sessionObservable:o}}function Br(t,e){return 1===t?Mr(Ur,e):Pr(Ur,e)}function Gr(t,e){let n;for(const r of t.slice().reverse())if(n=Rr(r),n.c===e)break;return delete n?.c,n??{}}function Hr(t,e){return Ar(ft(t)?t:{...t,c:qr(e)})}function qr(t){let e=0;return e|=0,e|=(t.domain?t.domain.split(".").length-1:0)<<1,e|=t.crossSite?1:0,e.toString(16)}const jr="_dd_test_";const Wr="_DD_SESSION";async function Kr(t){const e=void 0!==(n=t.sessionPersistence)?n:v.W?[_r.MEMORY]:[_r.COOKIE];var n;for(const n of e){const e=await Zr(n,t);if(void 0!==e)return e}}function Zr(t,e){switch(t){case _r.COOKIE:return $r(e);case _r.LOCAL_STORAGE:return function(){try{const t=cn(),e=`${jr}${t}`;localStorage.setItem(e,t);const n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:_r.LOCAL_STORAGE}:void 0}catch{return}}();case _r.MEMORY:return{type:_r.MEMORY};default:return void u.error(`Invalid session persistence '${String(t)}'`)}}function Jr(t,e){switch(t.type){case _r.COOKIE:return zr(t,e);case _r.LOCAL_STORAGE:return function(){const t=new b((t=>Bt(window,"storage",(e=>{"_dd_s_v2"===e.key&&e.storageArea===localStorage&&t.notify(Rr(e.newValue))})).stop));let e=!0;return{async setSessionState(n,r){let o=Rr(localStorage.getItem(Ur));e&&kr(o)&&(o=Rr(localStorage.getItem(Vr))),e=!1;const i=n(o);localStorage.setItem(Ur,Ar(i)),await Promise.resolve(),t.notify(i)},sessionObservable:t}}();case _r.MEMORY:return function(){const t=v.J;t._DD_SESSION||(t[Wr]={});const e=t[Wr],n=new b,r=e.onChange;return e.onChange=t=>{r?.(t),n.notify(t)},{async setSessionState(t,n){const r=(o=t(e.state??{}),{...o});var o;e.state=r,await Promise.resolve(),e.onChange?.(r)},sessionObservable:n}}()}}
1const Xr=kt.iW,Yr=1e3,Qr=12*kt.MA;let to=[];async function eo(t,e){const n=(0,kt.$S)(),r=new b,o=new b,i=await Kr(t);if(!i)return void u.warn("No storage available for session. We will not send any data.");const s=Jr(i,t),a=gr({maxEntries:Yr});to.push((()=>a.stop()));let c=!1;const{throttled:l,cancel:d}=function(t,e,n){const r=void 0===n?.leading||n.leading,o=void 0===n?.trailing||n.trailing;let i,s,a=!1;return{throttled:(...n)=>{a?i=n:(r?t(...n):i=n,a=!0,s=x((()=>{o&&i&&t(...i),a=!1,i=void 0}),e))},cancel:()=>{A(s),a=!1,i=void 0}}}((()=>{c=!1,s.setSessionState((e=>Ir(e,t)),"expandOrRenewOnActivity").catch(m)}),kt.OY);let f;to.push(d),to.push((()=>A(f)));let p=!1;to.push((()=>{p=!0}));let g=await _().catch((t=>m(new Error(`Error while resolving initial session state: ${t}`))));if(g&&!p){for(;!e.isGranted();){if(E(),await new Promise((t=>e.onGrantedOnce(t))),p)return;if(g=await _().catch(m),!g||p)return}var h,y;return a.add(C(g),(0,kt.Oc)().relative),w(g),function(){const t=s.sessionObservable.subscribe((t=>{w(t),S(t)}));to.push((()=>t.unsubscribe()))}(),e.observable.subscribe((()=>{e.isGranted()?(c=!1,s.setSessionState((e=>Ir(e,t)),"expandOrRenewOnConsent").catch(m)):E()})),v.W||(function(t){const{stop:e}=Gt(window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0});to.push(e)}((()=>{e.isGranted()&&l()})),function(t){const e=()=>{"visible"===document.visibilityState&&t()},{stop:n}=Bt(document,"visibilitychange",e);to.push(n);const r=R(e,Xr);to.push((()=>{O(r)}))}((()=>{c||s.setSessionState((t=>function(t){return Tr(t)||kr(t)||!t.id||xr(t),t}(t)),"expandOnVisibility").catch(m)})),function(t){const{stop:e}=Bt(window,"resume",t,{capture:!0});to.push(e)}((()=>{s.setSessionState((e=>Or(e,t)),"initializeOnResume").catch(m)}))),h="Session manager init metrics",y={metrics:{duration:(0,kt.vk)(n,(0,kt.$S)())}},de().notify({rawEvent:{type:Qt.LOG,message:h,status:"debug",...y},metricName:h}),{findSession:(t,e)=>a.find(t,e),findTrackedSession:(e,{returnInactive:n=!1,maxAge:r=Qr}={})=>{const o=a.find(e,{returnInactive:n});if(o&&"invalid"!==o.id&&mr(o.id,t.sessionSampleRate)&&!((0,kt.x3)()-o.createdAt>r))return o},renewObservable:r,expireObservable:o,expire:E,updateSessionState:t=>{s.setSessionState((e=>({...e,...t})),"updateState").catch(m)}}}async function _(){let e={};return await s.setSessionState((n=>{const r=Or(n,t);return e=Ir(r,t),e}),"initialize"),e}function w(n){A(f);const r=Er(n);if(r){const n=r-(0,kt.x3)();f=x((()=>{s.setSessionState((n=>Tr(n)?(e.isGranted()||delete n.anonymousId,Cr(n,t)):n),"expireOnTimeout").catch(m)}),n)}}function S(t){const e=a.find(),n=void 0!==e?.id,i=void 0!==t.id,s=n&&i&&e.id!==t.id;if(!n||i&&!s||(c=!0,o.notify(),a.closeActive((0,kt.$S)())),!i||n&&!s)n&&i&&!s&&(e.isReplayForced=!!t.forcedReplay);else{if(c)return;a.add(C(t),(0,kt.$S)()),r.notify()}}function E(){d();const n=Cr(a.find(),t);e.isGranted()||delete n.anonymousId,S(n),s.setSessionState((n=>(e.isGranted()||delete n.anonymousId,Cr(n,t))),"expire").catch(m)}function C(t){const e=Sr(t)??(0,kt.nx)();return t.id?{id:t.id,isReplayForced:!!t.forcedReplay,anonymousId:t.anonymousId,createdAt:e}:{id:"invalid",isReplayForced:!1,anonymousId:void 0,createdAt:e}}}function no(t,e,n,r){const o=new w(500,(t=>{pe("preStartLogs buffer data lost",{count:t})})),i=Un();Xn(i,Yn.globalContext,o);const s=Dn();Xn(s,Yn.accountContext,o);const a=Pn();let c,l,d;Xn(a,Yn.userContext,o);const f={assemble:(0,re.ab)(),assembleTelemetry:(0,re.ab)()},p=e.observable.subscribe(g);function g(){if(!l||!c||!d)return;p.unsubscribe();const t=n(l,d,f);o.subscribe((e=>e(t))),o.unbuffer()}return{init(t,n){if(!t)return void u.error("Missing configuration");var o;if(ht(t.enableExperimentalFeatures),o=t.allowUntrustedEvents,!0!==zt&&(zt=o??!1),Et()&&(t=function(t){return{...t,clientToken:"empty"}}(t)),c=t,l)return void or("DD_LOGS",t);const i=Kn(t);i&&ur(i,n??"")&&(l=i,e.tryToInit(i.trackingConsent),e.onGrantedOnce((()=>{!function(t,e){function n(){return e.isGranted()?re.$O:re.ug}t.assemble.register(n),t.assembleTelemetry.register(n)}(f,e),fe(se.LOGS,i,f.assembleTelemetry,r),(Et()?function(){let t={id:cn(),isReplayForced:!1,anonymousId:void 0,createdAt:(0,kt.nx)()};return Promise.resolve({findSession:()=>t,findTrackedSession:()=>t,renewObservable:new b,expireObservable:new b,expire:I,updateSessionState:e=>{t={...t,...e}}})}():eo(i,e)).then((e=>{e&&(d=e,function(t,e,n){t.register((({startTime:t})=>{const r=e.findTrackedSession(t);return r?{session:{id:r.id},anonymous_id:r.anonymousId,...n}:re.$O}))}(f.assembleTelemetry,d),function(t){de().notify({rawEvent:{type:Qt.CONFIGURATION,configuration:t}})}(Zn(t)),g())})).catch(m)})))},get initConfiguration(){return c},globalContext:i,accountContext:s,userContext:a,getInternalContext:I,handleLog(e,n,r,i=t(),s=(0,kt.nx)()){o.notify((t=>t.handleLog(e,n,r,i,s)))}}}const ro=function(t={}){const e=function(t){const e=new b;function n(){return t===Gn.GRANTED}return{tryToInit(e){t||(t=e)},onGrantedOnce(t){if(n())t();else{const r=e.subscribe((()=>{n()&&(t(),r.unsubscribe())}))}},update(n){t=n,e.notify()},isGranted:n,observable:e}}(),n=function(){const t=new w(on,(t=>{pe("Early data collection dropped data on unbuffer",{count:t})})),e=[];function n(n,r){e.push(r.subscribe((e=>{t.notify({type:n,data:e})})))}return n(0,He()),n(1,en()),n(2,Ke()),n(3,rn(Object.values(c.bP))),{observable:t,stop:()=>e.forEach((t=>t.unsubscribe()))}}().observable;let r=no(Ue,e,((t,e,o)=>{const i=Bn(t,e,Ue,n,o);return r=function(t,e){return{...t,init:t=>{or("DD_LOGS",t)},getInternalContext:e.getInternalContext,globalContext:e.globalContext,userContext:e.userContext,accountContext:e.accountContext}}(r,i),i}),t.sdkName);const o=()=>r,i={};
1return function(t){const e={version:"7.12.0",onReady(t){t()},...t};return Object.defineProperty(e,"_setDebug",{get:()=>ne.p,enumerable:!1}),e}({logger:new De(((...t)=>r.handleLog(...t))),init:t=>{const e=(new Error).stack;h((()=>r.init(t,e)))},setTrackingConsent:g((t=>{e.update(t),he({feature:"set-tracking-consent",tracking_consent:t})})),getGlobalContext:Jn(o,Yn.globalContext,Qn),setGlobalContext:Jn(o,Yn.globalContext,tr),setGlobalContextProperty:Jn(o,Yn.globalContext,er),removeGlobalContextProperty:Jn(o,Yn.globalContext,nr),clearGlobalContext:Jn(o,Yn.globalContext,rr),createLogger:g(((t,e={})=>(i[t]=new De(((...t)=>r.handleLog(...t)),U(t),e.handler,e.level,U(e.context)),i[t]))),getLogger:g((t=>i[t])),getInitConfiguration:g((()=>(0,a.Go)(r.initConfiguration))),getInternalContext:g((t=>r.getInternalContext(t))),setUser:Jn(o,Yn.userContext,tr),getUser:Jn(o,Yn.userContext,Qn),setUserProperty:Jn(o,Yn.userContext,er),removeUserProperty:Jn(o,Yn.userContext,nr),clearUser:Jn(o,Yn.userContext,rr),setAccount:Jn(o,Yn.accountContext,tr),getAccount:Jn(o,Yn.accountContext,Qn),setAccountProperty:Jn(o,Yn.accountContext,er),removeAccountProperty:Jn(o,Yn.accountContext,nr),clearAccount:Jn(o,Yn.accountContext,rr)})}({sdkName:"logs"});!function(t,e,n){const r=t[e];r&&!r.q&&r.version&&u.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),t[e]=n,r?.q&&r.q.forEach((t=>qn(t,"onReady callback threw an error:")()))}(v.J,"DD_LOGS",ro)},23044:(t,e,n)=>{n.d(e,{eT:()=>Ir,o:()=>Or,HF:()=>fn,Rg:()=>Cn,$m:()=>Tr,NT:()=>xr,Wd:()=>Ar,bb:()=>r,K:()=>o,do:()=>ir,xC:()=>Xr,DL:()=>c,K$:()=>Yr,wP:()=>nu,wI:()=>er,W3:()=>En,PJ:()=>Mr,dT:()=>Pr,$4:()=>nr,Gn:()=>Gr,zL:()=>Hr,dx:()=>eu,rf:()=>zr,pB:()=>Wr,g1:()=>jr,nS:()=>Yn,XS:()=>Qn,p_:()=>tr,AB:()=>Qc,jR:()=>Dr,ei:()=>Jn,ap:()=>Vr,Ie:()=>Ur});const r={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",VIEW_UPDATE:"view_update",RESOURCE:"resource",VITAL:"vital"},o={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},i={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change",SESSION_RENEWAL:"session_renewal",BF_CACHE:"bf_cache"},s={CLICK:"click",CUSTOM:"custom",TAP:"tap",SCROLL:"scroll",SWIPE:"swipe",APPLICATION_START:"application_start",BACK:"back"},a={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"},c={DURATION:"duration",OPERATION_STEP:"operation_step"};function u(t,e){e.lastIndex=0;const n=e.exec(t);if(!n)return;const[r,o]=n;return o||r}const l=/[a-zA-Z_$]/,d=/[a-zA-Z0-9_$]/,f=/[0-9]/,p=/[a-fA-F0-9]/,g={0:()=>!1,1:()=>!1,2:t=>l.test(t),3:t=>d.test(t),4:t=>"."===t,5:t=>"["===t,6:t=>"]"===t,7:t=>f.test(t),8:t=>"'\"".includes(t),9:(t,e)=>t===e.quote,10:()=>!0,11:t=>"\\"===t,12:(t,e)=>void 0===e.escapeSequence?`${e.quote}/\\bfnrtu`.includes(t):!!(e.escapeSequence.startsWith("u")&&e.escapeSequence.length<5)&&p.test(t)},h={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]},m=[2,3,7,10],v=[4,5,6];const y={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function b(t){return t.startsWith("u")?String.fromCharCode(parseInt(t.slice(1),16)):y[t]}var _=n(48678);const w=(t,e)=>"__proto__"===t?void 0:e;function S(t){try{return JSON.parse(t,w)}catch{}}function E(t){return{...t}}function C(t){return 0===Object.keys(t).length}function k(t,e){const n={};for(const r of Object.keys(t))n[r]=e(t[r]);return n}const T="dd_rc_",x={hit:"success",miss:"missing",error:"failure"};function A({remoteConfigurationId:t}){const e=function(t){return`${T}${t}`}(t);return{read(){let t;try{t=localStorage.getItem(e)}catch{return{status:"error"}}if(null===t)return{status:"miss"};const n=S(t);return void 0===n?(this.remove(),{status:"error"}):function(t){if("object"!=typeof t||null===t)return!1;const e="version"in t&&2===t.version,n="config"in t&&"object"==typeof t.config&&null!==t.config;return e&&n}(n)?{status:"hit",config:n.config}:(this.remove(),{status:"error"})},remove(){try{localStorage.removeItem(e)}catch{}},write(t){const n={version:2,config:t,fetchedAt:(0,_.nx)()};try{localStorage.setItem(e,JSON.stringify(n))}catch{}}}}var R=n(2788),O=n(61689);const I=(0,O.XH)("Datadog Browser SDK:"),N=`${O.fH}/real_user_monitoring/browser/troubleshooting`;var L=n(5489);let M;const{monitored:D,monitor:P,callMonitored:U,monitorError:V}=(0,L.l)(I,(t=>M?.(t)));var $=n(95041);function F(t){const e=$.J.queueMicrotask;"function"==typeof e?e(P(t)):Promise.resolve().then(P(t))}var z=class{constructor(t){this.onFirstSubscribe=t,this.observers=[]}subscribe(t){return this.addObserver(t),{unsubscribe:()=>this.removeObserver(t)}}
1notify(t){this.observers.forEach((e=>e(t)))}addObserver(t){this.observers.push(t),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(t){this.observers=this.observers.filter((e=>t!==e)),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}};function B(...t){return new z((e=>{const n=t.map((t=>t.subscribe((t=>e.notify(t)))));return()=>n.forEach((t=>t.unsubscribe()))}))}var G=class extends z{constructor(t,e){super(),this.maxBufferSize=t,this.onDrop=e,this.buffer=[],this.droppedCount=0}notify(t){this.buffer.push(t),this.buffer.length>this.maxBufferSize&&(this.buffer.shift(),this.droppedCount++),super.notify(t)}subscribe(t){let e=!1;const n={unsubscribe:()=>{e=!0,this.removeObserver(t)}};return F((()=>{for(const n of this.buffer){if(e)return;t(n)}e||this.addObserver(t)})),n}unbuffer(){F((()=>{this.droppedCount>0&&this.onDrop&&this.onDrop(this.droppedCount),this.maxBufferSize=this.buffer.length=0}))}};let H=function(t){return t.SESSION_REPLAY_RECORD_CANVAS="session_replay_record_canvas",t.TRACK_INTAKE_REQUESTS="track_intake_requests",t.TRACK_WEBSOCKETS="track_websockets",t}({});const q=new Set;function j(t){Array.isArray(t)&&t.filter((t=>{return e=H,n=t,Object.keys(e).some((t=>e[t]===n));var e,n})).forEach((t=>{q.add(t)}))}function W(t){return q.has(t)}function K(){return q}function Z(t,e){const n=$.J;let r;return n.Zone&&"function"==typeof n.Zone.__symbol__&&(r=t[n.Zone.__symbol__(e)]),r||(r=t[e]),r}function J(t,e){return Z($.J,"setTimeout")(P(t),e)}function X(t){Z($.J,"clearTimeout")(t)}function Y(t,e){return Z($.J,"setInterval")(P(t),e)}function Q(t){Z($.J,"clearInterval")(t)}function tt(t,e,n){const r=void 0===n?.leading||n.leading,o=void 0===n?.trailing||n.trailing;let i,s,a=!1;return{throttled:(...n)=>{a?i=n:(r?t(...n):i=n,a=!0,s=J((()=>{o&&i&&t(...i),a=!1,i=void 0}),e))},cancel:()=>{X(s),a=!1,i=void 0}}}function et(){}const nt="?";function rt(t){const e=[];let n=ft(t,"stack");const r=String(t);if(n?.startsWith(r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach((t=>{const n=function(t){const e=st.exec(t);if(!e)return;const n=0===e[2]?.indexOf("native"),r=0===e[2]?.indexOf("eval"),o=at.exec(e[2]);r&&o&&(e[2]=o[1],e[3]=o[2],e[4]=o[3]);return{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||nt,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){const e=ct.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||nt,line:e[3]?+e[3]:void 0,url:e[2]}}(t)||function(t){const e=ut.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||nt,line:+e[3],url:e[2]}}(t)||function(t){const e=lt.exec(t);if(!e)return;const n=e[3]&&e[3].indexOf(" > eval")>-1,r=dt.exec(e[3]);n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0);return{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||nt,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=nt),e.push(n))})),e.length>0&&function(){if(void 0!==mt)return mt;class t extends Error{constructor(){super(),this.name="Error"}}const[e,n]=[t,Error].map((t=>new t));return mt=ht(Object.getPrototypeOf(e))&&n.stack!==e.stack,mt}()&&t instanceof Error){const n=[];let r=t;for(;(r=Object.getPrototypeOf(r))&&ht(r);){const t=r.constructor?.name||nt;n.push(t)}for(let t=n.length-1;t>=0&&e[0]?.func===n[t];t--)e.shift()}return{message:ft(t,"message"),name:ft(t,"name"),stack:e}}const ot="((?:blob|native|eval|<anonymous>|[a-zA-Z][a-zA-Z0-9+.-]*:\\/\\/|\\w+\\.|\\/).*?)",it="(?::(\\d+))",st=new RegExp(`^\\s*at (.*?) ?\\(${ot}${it}?${it}?\\)?\\s*$`,"i"),at=new RegExp(`\\((\\S*)${it}${it}\\)`);const ct=new RegExp(`^\\s*at\\s*(?:(.*)?(?: @))?\\s*${ot}${it}?${it}??\\s*$`,"i");const ut=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;const lt=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,dt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function ft(t,e){return(0,R.OE)(t)&&"string"==typeof t[e]?t[e]:void 0}function pt(t,e,n,r){if(void 0===e)return;const{name:o,message:i}=function(t){let e,n;"[object String]"==={}.toString.call(t)&&([,e,n]=gt.exec(t));return{name:e,message:n}}(t);return{name:o,message:i,stack:[{url:e,column:r,line:n}
1]}}const gt=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function ht(t){return String(t.constructor).startsWith("class ")}let mt;function vt(t){const e=new Error(t);let n;return e.name="HandlingStack",U((()=>{const t=rt(e);t.stack=t.stack.slice(2),n=yt(t)})),n}function yt(t){let e=bt(t);return t.stack.forEach((t=>{const n="?"===t.func?"<anonymous>":t.func,r=t.args&&t.args.length>0?`(${t.args.join(", ")})`:"",o=t.line?`:${t.line}`:"",i=t.line&&t.column?`:${t.column}`:"";e+=`\n at ${n}${r} @ ${t.url}${o}${i}`})),e}function bt(t){return`${t.name||"Error"}: ${t.message}`}function _t(t,e,n){if("object"!=typeof t||null===t)return JSON.stringify(t);const r=wt(Object.prototype),o=wt(Array.prototype),i=wt(Object.getPrototypeOf(t)),s=wt(t);try{return JSON.stringify(t,e,n)}catch{return"<error: unable to serialize object>"}finally{r(),o(),i(),s()}}function wt(t){const e=t,n=e.toJSON;return n?(delete e.toJSON,()=>{e.toJSON=n}):et}const St="No stack, consider using an instance of Error";function Et(t){try{return t instanceof Error||"[object Error]"===Object.prototype.toString.call(t)}catch{return!1}}function Ct(t){const{env:e,service:n,version:r,datacenter:o,sdkVersion:i,variant:s}=t,a=[kt("sdk_version",i??"7.12.0")];return e&&a.push(kt("env",e)),n&&a.push(kt("service",n)),r&&a.push(kt("version",r)),o&&a.push(kt("datacenter",o)),s&&a.push(kt("variant",s)),a}function kt(t,e){const n=e?`${t}:${e}`:t;return(n.length>200||function(t){return new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(t)}(n))&&I.warn(`Tag ${n} doesn't meet tag requirements and will be sanitized. ${O.xG} ${O.fH}/getting_started/tagging/#defining-tags`),function(t){return t.replace(/,/g,"_")}(n)}function Tt(t,e){const n=$.J.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}function xt(){const{navigator:t}=$.J;return{status:t?.onLine?"connected":"not_connected",interfaces:t?.connection?.type?[t.connection.type]:void 0,effective_type:t?.connection?.effectiveType}}let At=function(t){return t.RECORDS="records",t.PROFILES="profiles",t}({});function Rt(){const t=$.J.DatadogEventBridge;if(t)return{getCapabilities:()=>JSON.parse(t.getCapabilities?.()||"[]"),getPrivacyLevel:()=>t.getPrivacyLevel?.(),getIsTraceSampled:()=>JSON.parse(t.getIsTraceSampled?.()||"null"),getAllowedWebViewHosts:()=>JSON.parse(t.getAllowedWebViewHosts()),send(e,n,r){const o=r?{id:r}:void 0;t.send(JSON.stringify({eventType:e,event:n,view:o}))}}}function Ot(t=$.J.location?.hostname){return Rt()?.getAllowedWebViewHosts().some((e=>function(t,e){if(!e.includes("*"))return t===e||t.endsWith(`.${e}`);const n=e.split("*");if(2!==n.length)return I.error(`Invalid WebView host pattern "${e}": only one wildcard (*) is supported.`),!1;const[r,o]=n;return t.length>r.length+o.length&&t.startsWith(r)&&t.endsWith(o)}(t,e)))??!1}const It=1024,Nt=1024*It,Lt=/[^\u0000-\u007F]/;function Mt(t){return Lt.test(t)?(new TextEncoder).encode(t).length:t.length}function Dt(t,e){return Z($.J,"fetch")(t,e)}const Pt=80*It,Ut=20*Nt,Vt=_.iW,$t=_.OY;function Ft(t,e,n,r,o,i){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?Bt(t,e,n,i,{onSuccess:()=>Gt(0,e,n,r,o,i),onFailure:()=>{e.queuedPayloads.enqueue(t)||i.notify({type:"queue-full",bandwidth:e.bandwidthMonitor.stats(),payload:t}),zt(e,n,r,o,i)}}):e.queuedPayloads.enqueue(t)||i.notify({type:"queue-full",bandwidth:e.bandwidthMonitor.stats(),payload:t})}function zt(t,e,n,r,o){2===t.transportStatus&&J((()=>{Bt(t.queuedPayloads.first(),t,e,o,{onSuccess:()=>{t.queuedPayloads.dequeue(),t.currentBackoffTime=$t,Gt(1,t,e,n,r,o)},onFailure:()=>{t.currentBackoffTime=Math.min(Vt,2*t.currentBackoffTime),zt(t,e,n,r,o)}})}),t.currentBackoffTime)}function Bt(t,e,n,r,{onSuccess:o,onFailure:i}){e.bandwidthMonitor.add(t),n(t,(n=>{e.bandwidthMonitor.remove(t),!function(t){return"opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||(e=t.status,e>=500));var e}(n)?(e.transportStatus=0,r.notify({type:"success",bandwidth:e.bandwidthMonitor.stats(),payload:t}),o()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status}
1,r.notify({type:"failure",bandwidth:e.bandwidthMonitor.stats(),payload:t}),i())}))}function Gt(t,e,n,r,o,i){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(o(`Reached max ${r} events size queued for upload: ${Ut/Nt}MiB`),e.queueFullReported=!0);const s=e.queuedPayloads;for(e.queuedPayloads=Ht();s.size()>0;)Ft(s.dequeue(),e,n,r,o,i)}function Ht(){const t=[];return{bytesCount:0,enqueue(e){return!this.isFull()&&(t.push(e),this.bytesCount+=e.bytesCount,!0)},first:()=>t[0],dequeue(){const e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size:()=>t.length,isFull(){return this.bytesCount>=Ut}}}const qt=16*It;function jt(t,e,n=qt){const r=new z,o={transportStatus:0,currentBackoffTime:$t,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=Pt&&this.ongoingRequestCount<32},add(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount},stats(){return{ongoingByteCount:this.ongoingByteCount,ongoingRequestCount:this.ongoingRequestCount}}},queuedPayloads:Ht(),queueFullReported:!1};return{observable:r,send:n=>{for(const i of t)Ft(n,o,((t,e)=>{Zt(i,t,e)}),i.trackType,e,r)},sendOnExit:e=>{for(const r of t)Wt(r,n,e)}}}function Wt(t,e,n){if(n.bytesCount<e)try{const e=t.build("beacon",n);if(navigator.sendBeacon(e,n.data))return}catch(t){!function(t){Kt||(Kt=!0,V(t))}(t)}Zt(t,n)}let Kt=!1;function Zt(t,e,n){Dt(t.build("fetch",e),{method:"POST",body:e.data,mode:"cors"}).then(P((t=>n?.({status:t.status,type:t.type})))).catch(P((()=>n?.({status:0}))))}function Jt(t,e){for(let n=t.length-1;n>=0;n-=1){const r=t[n];if(e(r,n,t))return r}}function Xt(t){return Object.values(t)}function Yt(t){return Object.entries(t)}let Qt,te=function(t){return t.BEFORE_UNLOAD="beforeunload",t.CLICK="click",t.DBL_CLICK="dblclick",t.KEY_DOWN="keydown",t.LOAD="load",t.POP_STATE="popstate",t.SCROLL="scroll",t.TOUCH_START="touchstart",t.TOUCH_END="touchend",t.TOUCH_MOVE="touchmove",t.VISIBILITY_CHANGE="visibilitychange",t.PAGE_SHOW="pageshow",t.FREEZE="freeze",t.RESUME="resume",t.DOM_CONTENT_LOADED="DOMContentLoaded",t.POINTER_DOWN="pointerdown",t.POINTER_UP="pointerup",t.POINTER_CANCEL="pointercancel",t.HASH_CHANGE="hashchange",t.PAGE_HIDE="pagehide",t.MOUSE_DOWN="mousedown",t.MOUSE_UP="mouseup",t.MOUSE_MOVE="mousemove",t.FOCUS="focus",t.BLUR="blur",t.CONTEXT_MENU="contextmenu",t.RESIZE="resize",t.CHANGE="change",t.INPUT="input",t.PLAY="play",t.PAUSE="pause",t.SECURITY_POLICY_VIOLATION="securitypolicyviolation",t.SELECTION_CHANGE="selectionchange",t.STORAGE="storage",t.UNHANDLED_REJECTION="unhandledrejection",t}({});function ee(t,e,n,r){return ne(t,[e],n,r)}function ne(t,e,n,{once:r,capture:o,passive:i}={}){const s=P((t=>{(t.isTrusted||t.__ddIsTrusted||!1!==Qt)&&(r&&l(),n(t))})),a=i?{capture:o,passive:i}:o,c=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,u=Z(c,"addEventListener");function l(){const n=Z(c,"removeEventListener");e.forEach((e=>n.call(t,e,s,a)))}return e.forEach((e=>u.call(t,e,s,a))),{stop:l}}function re(t,e){if(!t)return!1;try{return ee(t,e,et).stop(),!0}catch{return!1}}const oe={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function ie(){return new z((t=>{const e=$.J.window;if(!e)return;const{stop:n}=ne(e,["visibilitychange","freeze"],(e=>{"visibilitychange"===e.type&&"hidden"===document.visibilityState?t.notify({reason:oe.HIDDEN}):"freeze"===e.type&&t.notify({reason:oe.FROZEN})}),{capture:!0}),r=ee(e,"beforeunload",(()=>{t.notify({reason:oe.UNLOADING})})).stop;return()=>{n(),r()}}))}function se(){let t="",e=0;return{isAsync:!1,get isEmpty(){return!t},write(n,r){const o=Mt(n);e+=o,t+=n,r&&r(o)},finish(t){t(this.finishSync())},finishSync(){const n={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:""};return t="",e=0,n},estimateEncodedBytesCount:t=>t.length}}const ae=30*_.OY,ce=$.W?1:50;function ue({pageMayExitObservable:t}){let e;const n=new z,r=t.subscribe((t=>{e=t.reason;try{n.notify(t.reason)}finally{e=void 0}c(t.reason)})),o=new z((()=>()=>{r.unsubscribe()}));let i,s=0,a=0;function c(t){if(0===a)return;const e=a,n=s;a=0,s=0,X(i),i=void 0,o.notify({reason:t,messagesCount:e,bytesCount:n})}return{flushObservable:o,prepareUrgentFlushObservable:n,forceFlush:c,get messagesCount(){return a},notifyBeforeAddMessage(t){s+t>=qt&&c(e??"bytes_limit"),a+=1,s+=t,void 0===i&&(i=J((()=>{c("duration_limit")}),ae))},notifyAfterAddMessage(t=0){s+=t,a>=ce?c(e??"messages_limit"):s>=qt&&c(e??"bytes_limit")}}}const le=256*It;function de({encoder:t=se(),endpoints:e,reportError:n}){const r=jt(e,n),o=ue({pageMayExitObservable:ie()});let i={};const s=o.flushObservable.subscribe((e=>function(e){const n=Xt(i).join("\n");i={};const o=(a=e.reason,Xt(oe).includes(a)),s=o?r.sendOnExit:r.send;var a;if(o&&t.isAsync){const e=t.finishSync();e.outputBytesCount&&s(fe(e));
1const r=[e.pendingData,n].filter(Boolean).join("\n");r&&s({data:r,bytesCount:Mt(r)})}else n&&t.write(t.isEmpty?n:`\n${n}`),t.finish((t=>{s(fe(t))}))}(e)));function a(e,n){const r=_t(e),s=t.estimateEncodedBytesCount(r);s>=le?I.warn(`Discarded a message whose size was bigger than the maximum allowed size ${le/It}KiB. ${O.xG} ${N}/#technical-limitations`):function(e,n,r){if(void 0!==r){let s;void 0!==i[r]?s=n-t.estimateEncodedBytesCount(i[r]):(o.notifyBeforeAddMessage(n),s=0),i[r]=e,o.notifyAfterAddMessage(s)}else o.notifyBeforeAddMessage(n),t.write(t.isEmpty?e:`\n${e}`,(t=>{o.notifyAfterAddMessage(t-n)}))}(r,s,n)}return{get isEmpty(){return 0===o.messagesCount},add:a,upsert:a,prepareUrgentFlushObservable:o.prepareUrgentFlushObservable,forceFlush:o.forceFlush,flushObservable:o.flushObservable,stop:s.unsubscribe}}function fe(t){let e;return e="string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),{data:e,bytesCount:t.outputBytesCount,encoding:t.encoding}}const pe={LOG:"log",CONFIGURATION:"configuration",USAGE:"usage"};var ge=n(80056),he=n(22084),me=n(7481),ve=n(94718),ye=n(18712),be=n(4751);const _e=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"];let we=function(t){return t.LOGS="browser-logs-sdk",t.RUM="browser-rum-sdk",t}({}),Se=function(t){return t.CUSTOMER_DATA_METRIC_NAME="Customer data measures",t.REMOTE_CONFIGURATION_METRIC_NAME="remote configuration metrics",t.RECORDER_INIT_METRICS_TELEMETRY_NAME="Recorder init metrics",t.SEGMENT_METRICS_TELEMETRY_NAME="Segment network request metrics",t.SESSION_MANAGER_INIT_METRICS_TELEMETRY_NAME="Session manager init metrics",t}({});const Ee=1,Ce=[ge.R8,ge.KG],ke=15;let Te;function xe(){return Te||(Te=new G(100)),Te}function Ae(t,e,n,r){const o=new z,{enabled:i,metricsEnabled:s}=function(t,e,n,r,o,i=Ee,s=ke){const a={},c=!Ce.includes(e.site)&&(0,be.i)(e.telemetrySampleRate),u={[pe.LOG]:c,[pe.CONFIGURATION]:c&&(0,be.i)(e.telemetryConfigurationSampleRate),[pe.USAGE]:c&&(0,be.i)(e.telemetryUsageSampleRate),metric:c&&(0,be.i)(i)},l={is_local_file:"file:"===$.J.location?.protocol,is_worker:$.W},d=xe();return d.subscribe((({rawEvent:e,metricName:o})=>{if(o&&!u.metric||!u[e.type])return;const i=o||e.status||e.type;let c=a[i];if(c||(c=a[i]=new Set),c.size>=s)return;const d=_t(e);if(c.has(d))return;const p=n.trigger({startTime:(0,_.M8)().relative});if(p===ye.ug)return;const g=f(p,t,e,l);r.notify(g),Tt("telemetry",g),c.add(d)})),d.unbuffer(),function(t){M=t}(Oe),{enabled:c,metricsEnabled:u.metric};function f(t,n,r,i){const s={type:"telemetry",date:(0,_.M8)().timeStamp,service:n,version:"7.12.0",source:"browser",_dd:{format_version:2},telemetry:(0,me.kg)(r,{runtime_env:i,connectivity:xt(),sdk_setup:"npm",sdk_name:o}),ddtags:Ct(e).join(","),experimental_features:Array.from(K())};return(0,me.kg)(s,t)}}(t,e,n,o,r),{stop:a}=function(t,e){const n=[];if(Ot()){const t=Rt(),r=e.subscribe((e=>t.send("internal_telemetry",e)));n.push(r.unsubscribe)}else{const r=[(0,he.ns)(t,"rum")],o=(0,he.np)(t,"rum");o&&function(t){return t.site===ge.Bb}(t)&&r.push(o);const i=de({endpoints:r,reportError:et});n.push(i.stop);const s=e.subscribe(i.add);n.push(s.unsubscribe)}return{stop:()=>n.forEach((t=>t()))}}(e,o);return{stop:a,enabled:i,metricsEnabled:s}}function Re(t,e){(0,ve.N)()&&I.debug("[Telemetry]",t,e),xe().notify({rawEvent:{type:pe.LOG,message:t,status:"debug",...e}})}function Oe(t,e){xe().notify({rawEvent:{type:pe.LOG,status:"error",...Le(t),...e}})}function Ie(t,e){xe().notify({rawEvent:{type:pe.LOG,message:t,status:"debug",...e},metricName:t})}function Ne(t){xe().notify({rawEvent:{type:pe.USAGE,usage:t}})}function Le(t){if(Et(t)){const e=rt(t);return{error:{kind:e.name,stack:yt(Me(e))},message:e.message}}return{error:{stack:St},message:`Uncaught ${_t(t)}`}}function Me(t){return t.stack=t.stack.filter((t=>!t.url||_e.some((e=>t.url.startsWith(e))))),t}function De(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,De)}const Pe=/(\S+?)\s*=\s*(.*?)(?:;|$)/g;function Ue(t,e){for(Pe.lastIndex=0;;){const n=Pe.exec(t);if(!n)break;if(n[1]===e)return n[2]}}function Ve(t,e,n=""){const r=t.charCodeAt(e-1),o=r>=55296&&r<=56319?e+1:e;return t.length<=o?t:`${t.slice(0,o)}${n}`}var $e=n(97165);function Fe(t,e,n=0,r){const o=new Date;o.setTime(o.getTime()+n);const i=`expires=${o.toUTCString()}`,s=r?.crossSite?"none":"strict",a=r?.domain?`;domain=${r.domain}`:"",c=r?.secure?";secure":"",u=r?.partitioned?";partitioned":"";document.cookie=`${t}=${e};${i};path=/;samesite=${s}${a}${c}${u}`}function ze(t){const e=Ue(document.cookie,t);if(""!==e)return e}function Be(t){return function(t){const e=new Map;for(Pe.lastIndex=0;;){const n=Pe.exec(t);if(!n)break;{const t=n[1],r=n[2];e.has(t)?e.get(t).push(r):e.set(t,[r])}}return e}(document.cookie).get(t)||[]}let Ge,He;function qe(t){return Ge||(Ge=function(t){const e=new Map;for(Pe.lastIndex=0;;){const n=Pe.exec(t);if(!n)break;e.set(n[1],n[2])}return e}(document.cookie)),Ge.get(t)}function je(t,e){Fe(t,"",0,e)}function We(t=$.J.location?.hostname??"",e=("undefined"!=typeof document?document.referrer:"")){if("undefined"!=typeof document){if(void 0===He){const n=function(t,e){try{return t||(0,$e.c$)(e).hostname}catch{}}(t,e);if(n){const t=`dd_site_test_${De()}`,e="test",r=n.split(".");let o=r.pop();for(;r.length&&!ze(t);)o=`${r.pop()}.${o}`,Fe(t,e,_.OY,{domain:o});je(t,{domain:o}
1),He=o}}return He}}const Ke="v1",Ze=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","telemetrySampleRate","trackAnonymousUser","trackUserInteractions","trackResources","trackLongTasks","traceContextInjection","actionNameAttribute","defaultPrivacyLevel","enablePrivacyForActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];function Je(t,e,n,r){const o={...t};if(e.rum){const t=e.rum;Ze.forEach((e=>{e in t&&(o[e]=i(t[e]))})),Object.keys(n).forEach((e=>{var r;void 0!==t[e]&&(r=n[e],t[e].forEach((({key:t,value:e})=>{r.setContextProperty(t,i(e))})))}))}return void 0!==e.profiling?.sampleRate&&(o.profilingSampleRate=e.profiling.sampleRate),o;function i(t){if(Array.isArray(t))return t.map(i);if((0,R.OE)(t)){if("rcSerializedType"in t){const e=t.rcSerializedType;switch(e){case"string":return t.value;case"regex":return Ye(t.value);case"dynamic":return function(t){const e=t.strategy;let n;switch(e){case"cookie":n=function({name:t}){const e=ze(t);return r.increment("cookie",void 0!==e?"success":"missing"),e}(t);break;case"dom":n=function({selector:t,attribute:e}){let n;try{n=document.querySelector(t)}catch{return I.error(`Invalid selector in the remote configuration: '${t}'`),void r.increment("dom","failure")}if(!n)return void r.increment("dom","missing");if(function(t,e){return"password"===t.getAttribute("type")&&"value"===e}(n,e))return I.error(`Forbidden element selected by the remote configuration: '${t}'`),void r.increment("dom","failure");const o=void 0!==e?n.getAttribute(e):n.textContent;if(null===o)return void r.increment("dom","missing");return r.increment("dom","success"),o}(t);break;case"js":n=function({path:t}){let e=window;const n=function(t){const e=[];let n,r=0;const o={quote:void 0,escapeSequence:void 0};let i="";for(const a of t){if(n=h[r].find((t=>g[t](a,o))),!n)return[];if(void 0!==o.escapeSequence&&12!==n){if(s=o.escapeSequence,!("\"'/\\bfnrt".includes(s)||s.startsWith("u")&&5===s.length))return[];i+=b(o.escapeSequence),o.escapeSequence=void 0}m.includes(n)?i+=a:v.includes(n)&&""!==i?(e.push(i),i=""):12===n?o.escapeSequence=o.escapeSequence?`${o.escapeSequence}${a}`:a:8===n?o.quote=a:9===n&&(o.quote=void 0),r=n}var s;return h[r].includes(1)?(""!==i&&e.push(i),e):[]}(t);if(0===n.length)return I.error(`Invalid JSON path in the remote configuration: '${t}'`),void r.increment("js","failure");for(const o of n){if(!(o in e))return void r.increment("js","missing");try{e=e[o]}catch(e){return I.error(`Error accessing: '${t}'`,e),void r.increment("js","failure")}}return r.increment("js","success"),e}(t);break;case"localStorage":n=function({key:t}){let e;try{e=localStorage.getItem(t)}catch{return void r.increment("localStorage","failure")}return r.increment("localStorage",null!==e?"success":"missing"),e??void 0}(t);break;default:return void I.error(`Unsupported remote configuration: "strategy": "${e}"`)}const o=t.extractor;return void 0!==o&&"string"==typeof n?function(t,e){const n=Ye(t.value);if(void 0===n)return;return u(e,n)}(o,n):n}(t);default:return void I.error(`Unsupported remote configuration: "rcSerializedType": "${e}"`)}}return k(t,i)}return t}}function Xe(){const t={fetch:{}};return{get:()=>t,increment:(e,n)=>{t[e]||(t[e]={}),t[e][n]||(t[e][n]=0),t[e][n]=t[e][n]+1}}}function Ye(t){try{return new RegExp(t)}catch{I.error(`Invalid regex in the remote configuration: '${t}'`)}}async function Qe(t){let e;try{e=await Dt(function(t){if(t.remoteConfigurationProxy)return t.remoteConfigurationProxy;const e=tn(t);return(0,he.Hg)({site:t.site,path:`/${Ke}/${encodeURIComponent(e)}.json`,subdomain:"sdk-configuration"})}(t))}catch{e=void 0}if(!e?.ok)return{ok:!1,error:new Error("Error fetching the remote configuration.")};const n=await e.json();return n.rum||n.profiling?{ok:!0,value:n}:{ok:!1,error:new Error("No remote configuration for RUM.")}}function tn(t){return t.remoteConfiguration?.id??t.remoteConfigurationId}function en(t,e){const n=A({remoteConfigurationId:tn(t)}),r=Xe(),o=n.read();return r.increment("cache",x[o.status]),function(t,e,n){Qe(t).then((t=>{t.ok?(n.increment("fetch","success"),e.write(t.value)):(n.increment("fetch","failure"),I.error(t.error))})).catch(V).finally((()=>{Ie(Se.REMOTE_CONFIGURATION_METRIC_NAME,{metrics:n.get()})}))}(t,n,r),"hit"===o.status?Je(t,o.config,e,r):t.remoteConfiguration?.required?void 0:t}const nn={GRANTED:"granted",NOT_GRANTED:"not-granted"};const rn={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"},on={ALL:"all",SAMPLED:"sampled"},sn={clientToken:{type:"string",required:!0},service:{type:"string"},env:{type:"string"},version:{type:"string"},site:{type:"site",default:ge.NW},proxy:{type:"union",variants:[{type:"string"},{type:"function",signature:void 0}]},sessionSampleRate:{type:"percentage",default:100},telemetrySampleRate:{type:"percentage",default:20},telemetryConfigurationSampleRate:{type:"percentage",default:5},telemetryUsageSampleRate:{type:"percentage",default:5},silentMultipleInit:{type:"boolean",default:!1,strict:!1},storeContextsAcrossPages:{type:"boolean",default:!1,strict:!1},trackAnonymousUser:{type:"boolean",default:!0,strict:!1},useSecureSessionCookie:{type:"boolean",default:!1,strict:!1},usePartitionedCrossSiteSessionCookie:{type:"boolean",default:!1,strict:!1}
1,trackSessionAcrossSubdomains:{type:"boolean",default:!1,strict:!1},allowedTrackingOrigins:{type:"match-option",multiple:!0,strict:!1},trackingConsent:{type:"enum",values:nn,default:nn.GRANTED},beforeSend:{type:"function",signature:void 0},source:{type:"enum",values:["browser","flutter","unity"],default:"browser",strict:!1},sessionPersistence:{type:"enum",values:["cookie","local-storage","memory"],multiple:!0,strict:!1},replica:{type:"schema",schema:{clientToken:{type:"string",required:!0},applicationId:{type:"string"}}},datacenter:{type:"string"},sdkVersion:{type:"string"},variant:{type:"string"}};function an(t,e){return+t.toFixed(e)}function cn(t){return"number"==typeof t}function un(t){return Array.isArray(t)&&t.length>0}var ln=n(92761);const dn=["tracecontext","datadog"],fn=["cache-control","etag","age","expires","content-type","content-encoding","vary","content-length","server-timing","x-cache","cf-cache-status","x-vercel-cache"],pn={...sn,applicationId:{type:"string",required:!0},actionNameAttribute:{type:"string"},workerUrl:{type:"string"},subdomain:{type:"string"},sessionReplaySampleRate:{type:"percentage",default:0},traceSampleRate:{type:"percentage",default:100},profilingSampleRate:{type:"percentage",default:0},compressIntakeRequests:{type:"boolean",default:!1},trackUserInteractions:{type:"boolean",default:!0,strict:!1},trackResources:{type:"boolean",default:!0,strict:!1},trackLongTasks:{type:"boolean",default:!0,strict:!1},trackViewsManually:{type:"boolean",default:!1,strict:!1},betaEnableViewUpdates:{type:"boolean"},betaTrackWebSockets:{type:"boolean",default:!1,strict:!1},enablePrivacyForActionName:{type:"boolean",default:!0},propagateTraceBaggage:{type:"boolean",default:!0},startSessionReplayRecordingManually:{type:"boolean",default:!1,strict:!1},sessionReplayCanvasRecording:{type:"schema",schema:{enable:{type:"boolean",required:!0},maxFramesPerSecond:{type:"number",min:0,max:5,default:1}}},defaultPrivacyLevel:{type:"enum",values:rn,default:rn.MASK_USER_INPUT,strict:!1},traceContextInjection:{type:"enum",values:on,default:on.SAMPLED,strict:!1},excludedActivityUrls:{type:"match-option",multiple:!0,default:[]},allowedTracingUrls:{type:"union",multiple:!0,strict:!1,default:[],variants:[{type:"match-option"},{type:"schema",schema:{match:{type:"match-option",required:!0},propagatorTypes:{type:"enum",values:["datadog","b3","b3multi","tracecontext"],multiple:!0,strict:!1,default:dn}}}]},plugins:{type:"schema",multiple:!0,strict:!1,default:[],schema:{name:{type:"string",required:!0},getConfigurationTelemetry:{type:"function",strict:!1,signature:void 0},onInit:{type:"function",strict:!1,signature:void 0},onRumStart:{type:"function",strict:!1,signature:void 0}}},trackFeatureFlagsForEvents:{type:"enum",values:["vital","action","long_task","resource"],multiple:!0,strict:!1,default:[]}};function gn(t,e,n){return!Ot()&&(t??!1)}function hn(t,e){const n=(0,ln.S)(t,pn,I);if(!n)return;const r=n.allowedTracingUrls.map(vn).filter(Boolean);if(r.length>0&&!n.service)return void I.error("Service needs to be configured when tracing is enabled");const o=W(H.SESSION_REPLAY_RECORD_CANVAS)?n.sessionReplayCanvasRecording:void 0;return{...n,sessionReplayCanvasRecording:o,betaEnableViewUpdates:gn(n.betaEnableViewUpdates,n.proxy),allowedTracingUrls:r,beforeSend:n.beforeSend?(i=n.beforeSend,s="beforeSend threw an error:",(...t)=>{try{return i(...t)}catch(t){I.error(s,t)}}):void 0,rulePsr:cn(t.traceSampleRate)?t.traceSampleRate/100:void 0,trackResourceHeaders:_n(t),allowedGraphQlUrls:yn(t),remoteConfigurationId:tn(t)};var i,s}function mn(t){const e=new Set;return un(t.allowedTracingUrls)&&t.allowedTracingUrls.forEach((t=>{vn(t)?.propagatorTypes.forEach((t=>e.add(t)))})),Array.from(e)}function vn(t){return(0,R.Vl)(t)?{match:t,propagatorTypes:dn}:(0,R.OE)(t)&&(0,R.Vl)(t.match)&&(null===t.propagatorTypes||void 0===t.propagatorTypes||Array.isArray(t.propagatorTypes))?{match:t.match,propagatorTypes:t.propagatorTypes||dn}:void 0}function yn(t){if(!t.allowedGraphQlUrls)return[];if(!Array.isArray(t.allowedGraphQlUrls))return I.warn("allowedGraphQlUrls should be an array"),[];const e=[];
1return t.allowedGraphQlUrls.forEach((t=>{(0,R.Vl)(t)?e.push({match:t,trackPayload:!1,trackResponseErrors:!1}):(0,R.OE)(t)&&(0,R.Vl)(t.match)&&e.push({match:t.match,trackPayload:!!t.trackPayload,trackResponseErrors:!!t.trackResponseErrors})})),e}const bn=["request","response","any"];function _n(t){const e=t.trackResourceHeaders;if(void 0===e||!1===e)return[];if(!0===e)return fn.map((t=>({name:t})));if(!Array.isArray(e))return I.warn("trackResourceHeaders should be true or an array of MatchHeader"),[];if(0===e.length)return I.warn("trackResourceHeaders is an empty array, no headers will be captured"),[];const n=[];return e.forEach(((t,e)=>{if(!(0,R.OE)(t))return void I.warn(`trackResourceHeaders[${e}] should be a MatchHeader object`);if(void 0!==t.name&&!(0,R.Vl)(t.name))return void I.warn(`trackResourceHeaders[${e}].name should be a MatchOption`);if(void 0!==t.url&&!(0,R.Vl)(t.url))return void I.warn(`trackResourceHeaders[${e}].url should be a MatchOption`);if(void 0!==t.extractor&&!(t.extractor instanceof RegExp))return void I.warn(`trackResourceHeaders[${e}].extractor should be a RegExp`);if(void 0!==t.location&&("string"!=typeof t.location||!bn.includes(t.location)))return void I.warn(`trackResourceHeaders[${e}].location should be 'request', 'response', or 'any'`);const{name:r,...o}=t;n.push({...o,...void 0!==r?{name:"string"==typeof r?r.toLowerCase():r}:{}})})),n}function wn(t){return un(t)&&t.some((t=>(0,R.OE)(t)&&t.trackResponseErrors))}function Sn(t,e){const n={session_sample_rate:(r=t).sessionSampleRate,telemetry_sample_rate:r.telemetrySampleRate,telemetry_configuration_sample_rate:r.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:r.telemetryUsageSampleRate,use_before_send:!!r.beforeSend,use_partitioned_cross_site_session_cookie:r.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:r.useSecureSessionCookie,use_proxy:!!r.proxy,silent_multiple_init:r.silentMultipleInit,track_session_across_subdomains:r.trackSessionAcrossSubdomains,track_anonymous_user:r.trackAnonymousUser,session_persistence:Array.isArray(r.sessionPersistence)?r.sessionPersistence[0]:r.sessionPersistence,store_contexts_across_pages:!!r.storeContextsAcrossPages,allow_untrusted_events:!!r.allowUntrustedEvents,tracking_consent:r.trackingConsent,use_allowed_tracking_origins:Array.isArray(r.allowedTrackingOrigins),source:r.source,sdk_version:r.sdkVersion,variant:r.variant};var r,o,i;return{session_replay_sample_rate:t.sessionReplaySampleRate,start_session_replay_recording_manually:t.startSessionReplayRecordingManually,trace_sample_rate:t.traceSampleRate,trace_context_injection:t.traceContextInjection,propagate_trace_baggage:t.propagateTraceBaggage,action_name_attribute:t.actionNameAttribute,use_allowed_tracing_urls:un(t.allowedTracingUrls),use_allowed_graph_ql_urls:un(t.allowedGraphQlUrls),use_track_graph_ql_payload:(i=t.allowedGraphQlUrls,un(i)&&i.some((t=>(0,R.OE)(t)&&t.trackPayload))),use_track_graph_ql_response_errors:wn(t.allowedGraphQlUrls),selected_tracing_propagators:mn(t),default_privacy_level:t.defaultPrivacyLevel,enable_privacy_for_action_name:t.enablePrivacyForActionName,use_excluded_activity_urls:un(t.excludedActivityUrls),use_worker_url:!!t.workerUrl,compress_intake_requests:t.compressIntakeRequests,track_views_manually:t.trackViewsManually,track_user_interactions:t.trackUserInteractions,track_resources:t.trackResources,track_long_task:t.trackLongTasks,plugins:t.plugins?.map((t=>({name:t.name,...t.getConfigurationTelemetry?.()}))),track_feature_flags_for_events:t.trackFeatureFlagsForEvents,remote_configuration_id:tn(t),profiling_sample_rate:t.profilingSampleRate,use_remote_configuration_proxy:!!t.remoteConfigurationProxy,track_resource_headers:(o=t.trackResourceHeaders,!0===o?"default_headers":Array.isArray(o)?"custom":void 0),beta_enable_view_updates:gn(t.betaEnableViewUpdates,t.proxy),beta_track_web_sockets:t.betaTrackWebSockets,...n}}function En(){let t;const e=window;if(e.Zone&&(t=Z(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){const n=new e.MutationObserver(et);t=Z(n,"originalInstance")?.constructor}return t||(t=e.MutationObserver),t}let Cn=function(t){return t[t.AUTO_ACTION_COMPLETED=0]="AUTO_ACTION_COMPLETED",t[t.BEFORE_VIEW_CREATED=1]="BEFORE_VIEW_CREATED",t[t.VIEW_CREATED=2]="VIEW_CREATED",t[t.BEFORE_VIEW_UPDATED=3]="BEFORE_VIEW_UPDATED",t[t.VIEW_UPDATED=4]="VIEW_UPDATED",t[t.VIEW_ENDED=5]="VIEW_ENDED",t[t.AFTER_VIEW_ENDED=6]="AFTER_VIEW_ENDED",t[t.REQUEST_STARTED=7]="REQUEST_STARTED",t[t.REQUEST_COMPLETED=8]="REQUEST_COMPLETED",t[t.WEBSOCKET_COMPLETED=9]="WEBSOCKET_COMPLETED",t[t.SESSION_EXPIRED=10]="SESSION_EXPIRED",t[t.SESSION_RENEWED=11]="SESSION_RENEWED",t[t.PREPARE_URGENT_FLUSH=12]="PREPARE_URGENT_FLUSH",t[t.RAW_RUM_EVENT_COLLECTED=13]="RAW_RUM_EVENT_COLLECTED",t[t.RUM_EVENT_COLLECTED=14]="RUM_EVENT_COLLECTED",t[t.RAW_ERROR_COLLECTED=15]="RAW_ERROR_COLLECTED",t[t.ACTION_STARTED=16]="ACTION_STARTED",t[t.DURATION_VITAL_STARTED=17]="DURATION_VITAL_STARTED",t}({});const kn=class{constructor(){this.callbacks={}}notify(t,e){const n=this.callbacks[t];
1n&&n.forEach((t=>t(e)))}subscribe(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),{unsubscribe:()=>{this.callbacks[t]=this.callbacks[t].filter((t=>e!==t))}}}},Tn=4*_.MA,xn=15*_.iW,An=_.$H,Rn={COOKIE:"cookie",MEMORY:"memory",LOCAL_STORAGE:"local-storage"},On=1/0,In=_.iW;let Nn;const Ln=new Set;function Mn({expireDelay:t,maxEntries:e}){let n=[];const r=()=>{if(!t)return;const e=(0,_.$S)()-t;for(;n.length>0&&n[n.length-1].endTime<e;)n.pop()};return t&&(Nn||(Nn=Y((()=>{Ln.forEach((t=>t()))}),In)),Ln.add(r)),{add:function(t,r){const o={value:t,startTime:r,endTime:On,remove:()=>{!function(t,e){const n=t.indexOf(e);n>=0&&t.splice(n,1)}(n,o)},close:t=>{o.endTime=t}};return e&&n.length>=e&&n.pop(),n.unshift(o),o},find:function(t=On,e={returnInactive:!1}){for(const r of n)if(r.startTime<=t){if(e.returnInactive||t<=r.endTime)return r.value;break}},closeActive:function(t){const e=n[0];e?.endTime===On&&e.close(t)},findAll:function(t=On,e=0){const r=(0,_.Gw)(t,e);return n.filter((e=>e.startTime<=r&&t<=e.endTime)).map((t=>t.value))},findAllEntries:function(t=On,e=0){const r=(0,_.Gw)(t,e);return n.filter((e=>e.startTime<=r&&t<=e.endTime))},getEntries:function(t){return n.filter((e=>e.startTime===t))},reset:function(){n=[]},stop:function(){Ln.delete(r),0===Ln.size&&Nn&&(Q(Nn),Nn=void 0)}}}const Dn=Tn;const Pn={DOCUMENT:"document",XHR:"xhr",BEACON:"beacon",FETCH:"fetch",CSS:"css",JS:"js",IMAGE:"image",FONT:"font",MEDIA:"media",WEBSOCKET:"websocket",OTHER:"other"},Un={FETCH:Pn.FETCH,XHR:Pn.XHR},Vn=[[Pn.DOCUMENT,t=>"navigation"===t],[Pn.XHR,t=>"xmlhttprequest"===t],[Pn.FETCH,t=>"fetch"===t],[Pn.BEACON,t=>"beacon"===t],[Pn.CSS,(t,e)=>/\.css$/i.test(e)],[Pn.JS,(t,e)=>/\.js$/i.test(e)],[Pn.IMAGE,(t,e)=>["image","img","icon"].includes(t)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(e)],[Pn.FONT,(t,e)=>null!==/\.(woff|eot|woff2|ttf)$/i.exec(e)],[Pn.MEDIA,(t,e)=>["audio","video"].includes(t)||null!==/\.(mp3|mp4)$/i.exec(e)]];function $n(t){const e=t.name;if(!(0,$e.AY)(e))return Pn.OTHER;const n=(0,$e.L2)(e);for(const[e,r]of Vn)if(r(t.initiatorType,n))return e;return Pn.OTHER}function Fn(...t){for(let e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}function zn(t){return"xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType}function Bn(t){if(!function(t){const e=Fn(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!function(t){return t.redirectEnd>t.startTime}(t)||Fn(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n}(t))return;const{startTime:e,fetchStart:n,workerStart:r,redirectStart:o,redirectEnd:i,domainLookupStart:s,domainLookupEnd:a,connectStart:c,secureConnectionStart:u,connectEnd:l,requestStart:d,responseStart:f,responseEnd:p}=t,g={download:Gn(e,f,p),first_byte:Gn(e,d,f)};return 0<r&&r<n&&(g.worker=Gn(e,r,n)),n<l&&(g.connect=Gn(e,c,l),c<=u&&u<=l&&(g.ssl=Gn(e,u,l))),n<a&&(g.dns=Gn(e,s,a)),e<i&&(g.redirect=Gn(e,o,i)),g}function Gn(t,e,n){if(t<=e&&e<=n)return{duration:(0,_.Zj)((0,_.vk)(e,n)),start:(0,_.Zj)((0,_.vk)(t,e))}}function Hn(t){return""===t.nextHopProtocol?void 0:t.nextHopProtocol}function qn(t){return""===t.deliveryType?"other":t.deliveryType}function jn(t){if(t.startTime<t.responseStart){const{encodedBodySize:e,decodedBodySize:n,transferSize:r}=t;return{size:n,encoded_body_size:e,decoded_body_size:n,transfer_size:r}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}function Wn(t){return t&&(!(0,ge.wo)(t)||W(H.TRACK_INTAKE_REQUESTS))}const Kn=/data:(.+)?(;base64)?,/g,Zn=24e3;function Jn(t,e=Zn){if(t.length<=e||!t.startsWith("data:"))return t;const n=t.substring(0,100).match(Kn);return n?`${n[0]}[...]`:t}function Xn(t){return t.nodeType===Node.TEXT_NODE}function Yn(t){return t.nodeType===Node.ELEMENT_NODE}function Qn(t){return Yn(t)&&Boolean(t.shadowRoot)}function tr(t){const e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Yn(e.host)}function er(t,e){let n=t.firstChild;for(;n;)e(n),n=n.nextSibling;Qn(t)&&e(t.shadowRoot)}function nr(t){return tr(t)?t.host:t.parentNode}function rr(t){if(t.parentElement)return t.parentElement;const e=t.parentNode;return e&&tr(e)?e.host:null}let or,ir=function(t){return t.EVENT="event",t.FIRST_INPUT="first-input",t.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",t.LAYOUT_SHIFT="layout-shift",t.LONG_TASK="longtask",t.LONG_ANIMATION_FRAME="long-animation-frame",t.NAVIGATION="navigation",t.PAINT="paint",t.RESOURCE="resource",t.VISIBILITY_STATE="visibility-state",t}({});function sr(t){return new z((e=>{const n=t=>{const n=function(t){return t.filter((t=>!function(t){return!("resource"!==t.entryType||Wn(t.name)&&function(t){return t.duration>=0}(t))}(t)))}(t);n.length>0&&e.notify(n)};let r,o=!0;const i=new PerformanceObserver(P((t=>{o?r=J((()=>n(t.getEntries()))):n(t.getEntries())})));return i.observe(t),o=!1,!or&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(or=ee(performance,"resourcetimingbufferfull",(()=>{performance.clearResourceTimings()}))),()=>{i.disconnect(),X(r)}}))}function ar(t){return PerformanceObserver.supportedEntryTypes.includes(t)}const cr="Masked Element",ur="::shadow ",lr=["data-dd-action-name","data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],dr=[yr,mr],fr=[yr,function(t){if("BODY"===t.tagName)return;const e=t.classList;for(let n=0;n<e.length;n+=1){const r=e[n];if(!hr(r))return`${CSS.escape(t.tagName)}.${CSS.escape(r)}`}},vr];function pr(t,e){if(!t.isConnected)return;const n=function(t){const e=[];let n=t;for(;n;){const t=n.getRootNode();if(e.push({rootNode:t,target:n}),!tr(t))break;n=t.host}return e.reverse()}(t),r=[];for(const{rootNode:t,target:o}of n){const n=gr(o,t,e);if(!n)return;r.push(n)}return r.join(ur)}function gr(t,e,n){let r,o=t;for(;o&&"HTML"!==o.nodeName;){const t=Sr(o,e,dr,Er,n,r);if(t)return kr(t,r);r=kr(Sr(o,e,fr,Cr,n,r)||_r(o),r),o=o.parentElement}return r}function hr(t){return/[0-9]/.test(t)}function mr(t){if(t.id&&!hr(t.id))return`#${CSS.escape(t.id)}`}function vr(t){return CSS.escape(t.tagName)}function yr(t,e){if(e){const t=n(e);if(t)return t}for(const t of lr){const e=n(t);if(e)return e}function n(e){if(t.hasAttribute(e))return`${CSS.escape(t.tagName)}${br(e,t.getAttribute(e))}`}}function br(t,e){return`[${t}="${CSS.escape(e)}"]`}function _r(t){const e=wr(t);return`${CSS.escape(t.tagName)}:nth-of-type(${e})`}function wr(t){let e=t.parentNode.firstElementChild,n=1;for(;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;return n}function Sr(t,e,n,r,o,i){for(const s of n){const n=s(t,o);if(n&&r(t,e,n,i))return n}}function Er(t,e,n,r){return 1===e.querySelectorAll(kr(n,r)).length}function Cr(t,e,n,r){let o;if(void 0===r)o=t=>t.matches(n);else{const t=kr(`${n}:scope`,r);o=e=>null!==e.querySelector(t)}let i=t.previousElementSibling;for(;i;){if(o(i))return!1;i=i.previousElementSibling}for(i=t.nextElementSibling;i;){if(o(i))return!1;i=i.nextElementSibling}return!0}function kr(t,e){return e?`${t}>${e}`:t}const Tr={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:rn.ALLOW,MASK:rn.MASK,MASK_USER_INPUT:rn.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:rn.MASK_UNLESS_ALLOWLISTED},xr="data-dd-privacy",Ar="hidden",Rr="dd-privacy-",Or="***",Ir="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",Nr={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function Lr(t){return`[${xr}="${t}"], .${Rr}${t}`}function Mr(t,e,n){if(n?.has(t))return n.get(t);const r=nr(t),o=r?Mr(r,e,n):e,i=Dr(Pr(t),o);return n&&n.set(t,i),i}function Dr(t,e){switch(e){case Tr.HIDDEN:case Tr.IGNORE:return e}switch(t){case Tr.ALLOW:case Tr.MASK:case Tr.MASK_USER_INPUT:case Tr.MASK_UNLESS_ALLOWLISTED:case Tr.HIDDEN:case Tr.IGNORE:return t;default:return e}}function Pr(t){if(Yn(t)){if("BASE"===t.tagName)return Tr.ALLOW;if("INPUT"===t.tagName){const e=t;if("password"===e.type||"email"===e.type||"tel"===e.type)return Tr.MASK;if("hidden"===e.type)return Tr.MASK;const n=e.getAttribute("autocomplete");if(n&&(n.startsWith("cc-")||n.endsWith("-password")))return Tr.MASK}return t.matches(Lr(Tr.HIDDEN))?Tr.HIDDEN:t.matches(Lr(Tr.MASK))?Tr.MASK:t.matches(Lr(Tr.MASK_UNLESS_ALLOWLISTED))?Tr.MASK_UNLESS_ALLOWLISTED:t.matches(Lr(Tr.MASK_USER_INPUT))?Tr.MASK_USER_INPUT:t.matches(Lr(Tr.ALLOW))?Tr.ALLOW:function(t){if("SCRIPT"===t.nodeName)return!0;
1if("LINK"===t.nodeName){const t=e("rel");return/preload|prefetch/i.test(t)&&"script"===e("as")||"shortcut icon"===t||"icon"===t}if("META"===t.nodeName){const n=e("name"),r=e("rel"),o=e("property");return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===r||"apple-touch-icon"===r||"shortcut icon"===r||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(o)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||t.hasAttribute("http-equiv")||"author"===n||"generator"===n||"framework"===n||"publisher"===n||"progid"===n||/^article:/.test(o)||/^product:/.test(o)||"google-site-verification"===n||"yandex-verification"===n||"csrf-token"===n||"p:domain_verify"===n||"verify-v1"===n||"verification"===n||"shopify-checkout-api-token"===n}function e(e){return(t.getAttribute(e)||"").toLowerCase()}return!1}(t)?Tr.IGNORE:void 0}}function Ur(t,e){switch(e){case Tr.MASK:case Tr.HIDDEN:case Tr.IGNORE:return!0;case Tr.MASK_UNLESS_ALLOWLISTED:return Xn(t)?!!$r(t.parentNode)||!Br(t.textContent||""):$r(t);case Tr.MASK_USER_INPUT:return Xn(t)?$r(t.parentNode):$r(t);default:return!1}}function Vr(t,e,n,r,o){if(r!==Tr.MASK&&r!==Tr.MASK_UNLESS_ALLOWLISTED)return!1;if("data-dd-privacy"===e||lr.includes(e)||e===o.actionNameAttribute)return!1;switch(e){case"title":case"alt":case"placeholder":case"aria-label":case"name":return!0}return"A"===t&&"href"===e||("IFRAME"===t&&"srcdoc"===e||(!(!n||!e.startsWith("data-"))||!("IMG"!==t&&"SOURCE"!==t||"src"!==e&&"srcset"!==e)))}function $r(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;const e=t;if("INPUT"===e.tagName)switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!Nr[e.tagName]}function Fr(t){return t.replace(/\S/g,"x")}function zr(t,e){const n=t.parentElement?.tagName;let r=t.textContent||"";const o=e;return"SCRIPT"===n||o===Tr.HIDDEN?r="***":Ur(t,o)&&("DATALIST"===n||"SELECT"===n||"OPTGROUP"===n||(r="OPTION"===n?"***":Fr(r))),"HEAD"!==n||r.trim()?r:""}function Br(t){return!t?.trim()||(window.$DD_ALLOW?.has(t.toLocaleLowerCase())||!1)}function Gr(){let t;const e=window.visualViewport;return t=e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0,Math.round(t)}function Hr(){let t;const e=window.visualViewport;return t=e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0,Math.round(t)}let qr;function jr(){return qr||(qr=new z((t=>{const{throttled:e}=tt((()=>{t.notify(Wr())}),200);return ee(window,te.RESIZE,e,{capture:!0,passive:!0}).stop}))),qr}function Wr(){const t=window.visualViewport;return t?{width:Number(t.width*t.scale),height:Number(t.height*t.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}function Kr(t,e){return t*e/100}const Zr=new Map;function Jr(t,e){if(100===e)return!0;if(0===e)return!1;const n=Zr.get(e);if(t===n?.sessionId)return n.decision;const r=function(t,e){const n=1n<<64n;return Number(1111111111111111111n*t%n)<=e/100*Number(n)}(BigInt(`0x${t.split("-")[4]}`),e);return Zr.set(e,{sessionId:t,decision:r}),r}let Xr=function(t){return t[t.OFF=0]="OFF",t[t.SAMPLED=1]="SAMPLED",t[t.FORCED=2]="FORCED",t}({});function Yr(t,e){return Ot()?function(t){const e=Rt();return!!e&&e.getCapabilities().includes(t)}(At.RECORDS)?1:0:Jr(t.id,Kr(e.sessionSampleRate,e.sessionReplaySampleRate))?1:t.isReplayForced?2:0}function Qr(t,e,n,{computeHandlingStack:r}={}){let o=t[e];if("function"!=typeof o){if(!(e in t)||"string"!=typeof e||!e.startsWith("on"))return{stop:et};o=et}let i=!1;const{stop:s}=eo(t,e,o,(function(){if(i)return o.apply(this,arguments);const t=Array.from(arguments);return no(n,{target:this,parameters:t,handlingStack:r?vt("instrumented method"):void 0},(()=>o.apply(this,t)))}));return{stop:()=>{i=!0,s()}}}function to(t,e,n,{computeHandlingStack:r}={}){const o=t[e];if("function"!=typeof o)return{stop:et};let i=!1;const s=function(){if(!new.target)return Reflect.apply(o,this,Array.from(arguments));const t=new.target===s?o:new.target;if(i)return Reflect.construct(o,arguments,t);const e=Array.from(arguments);return no(n,{parameters:e,handlingStack:r?vt("instrumented constructor"):void 0},(()=>Reflect.construct(o,e,t)))},a=function(t,e){for(const n of[].concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e))){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r)}const{stop:n}=eo(e.prototype,"constructor",e.prototype.constructor,t);return n}(s,o),{stop:c}=eo(t,e,o,s);return{stop:()=>{i=!0,a(),c()}}}function eo(t,e,n,r){return t[e]=r,{stop:()=>{t[e]===r&&(t[e]=n)}}}function no(t,e,n){let r;U(t,null,[{...e,onPostCall:t=>{r=t}}]);const o=n();return r&&U(r,null,[o]),o}function ro(){return oo(63)}function oo(t){const e=crypto.getRandomValues(new Uint32Array(2));let n=BigInt(e[0])+(BigInt(e[1])<<32n);return 63===t&&(n&=9223372036854775807n),n}function io(t){return t.toString(16).padStart(16,"0")}function so(t,e,n=!1){return t.some((t=>{try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.lastIndex=0,t.test(e);
1if("string"==typeof t)return n?e.startsWith(t):t===e}catch(t){I.error(t)}return!1}))}function ao(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function co(t,e,n,r,o,i){const s=n.findTrackedSession();if(!s)return;const a=t.allowedTracingUrls.find((t=>so([t.match],e.url,!0)));if(!a)return;const c=Jr(s.id,Kr(t.sessionSampleRate,t.traceSampleRate)),u=Ot()?Rt()?.getIsTraceSampled()??c:c;(u||t.traceContextInjection===on.ALL)&&(e.traceSampled=u,e.traceId=oo(64),e.spanId=ro(),i(function(t,e,n,r,o,i,s,a){const c={};if(o.forEach((r=>{switch(r){case"datadog":Object.assign(c,{"x-datadog-origin":"rum","x-datadog-parent-id":e.toString(),"x-datadog-sampling-priority":n?"1":"0","x-datadog-trace-id":t.toString()});break;case"tracecontext":Object.assign(c,{traceparent:`00-0000000000000000${io(t)}-${io(e)}-0${n?"1":"0"}`,tracestate:`dd=s:${n?"1":"0"};o:rum`});break;case"b3":Object.assign(c,{b3:`${io(t)}-${io(e)}-${n?"1":"0"}`});break;case"b3multi":Object.assign(c,{"X-B3-TraceId":io(t),"X-B3-SpanId":io(e),"X-B3-Sampled":n?"1":"0"})}})),a.propagateTraceBaggage){const t={"session.id":r},e=i.getContext().id;"string"==typeof e&&(t["user.id"]=e);const n=s.getContext().id;"string"==typeof n&&(t["account.id"]=n);const o=Object.entries(t).map((([t,e])=>`${t}=${encodeURIComponent(e)}`)).join(",");o&&(c.baggage=o)}return c}(e.traceId,e.spanId,e.traceSampled,s.id,a.propagatorTypes,r,o,t)))}const uo=32*It;function lo(t,e){const n=function(t,e=!1){let n;"POST"===t.method?n=function(t){if(!t||"string"!=typeof t)return;const e=S(t);if(!e)return;return{query:e.query,operationName:e.operationName,variables:e.variables?JSON.stringify(e.variables):void 0,operationType:e.operationType}}(t.requestBody):"GET"===t.method&&(n=function(t){const e=(0,$e.c$)(t).searchParams,n=e.get("variables"),r=n&&void 0!==S(n)?n:void 0;return{query:e.get("query")||void 0,operationName:e.get("operationName")||void 0,variables:r,operationType:e.get("operationType")||void 0}}(t.url));if(!n)return;return function(t,e){let n,r,o;if(t.query){const o=t.query.trim();i=o,n=i.match(/^\s*(query|mutation|subscription)\b/i)?.[1],e&&(r=Ve(o,uo,"..."))}var i;if(!n){const e=t.operationType;"query"!==e&&"mutation"!==e&&"subscription"!==e||(n=e)}t.variables&&(o=t.variables);return{operationType:n,operationName:t.operationName,variables:o,payload:r}}(n,e)}(t,e.trackPayload);if(n){if(e.trackResponseErrors&&t.responseBody){const e=function(t){const e=S(t);if(!e||"object"!=typeof e)return;const n=e;if(!un(n.errors))return;return n.errors.map((t=>({message:t.message,path:t.path,locations:t.locations,code:t.extensions?.code})))}(t.responseBody);e&&(n.error_count=e.length,n.errors=e)}return n}}function fo(t,e){return e.allowedGraphQlUrls.find((e=>so([e.match],t)))}let po;const go=new WeakMap;function ho(){return po||(po="XMLHttpRequest"in $.J?new z((t=>{const{stop:e}=Qr(XMLHttpRequest.prototype,"open",mo),{stop:n}=Qr(XMLHttpRequest.prototype,"send",(e=>{!function({target:t,parameters:[e],handlingStack:n},r){const o=go.get(t);if(!o)return;const i=o;i.state="start",i.startClocks=(0,_.M8)(),i.isAborted=!1,i.xhr=t,i.handlingStack=n,i.requestBody=e;let s=!1;const{stop:a}=Qr(t,"onreadystatechange",(()=>{t.readyState===XMLHttpRequest.DONE&&c()})),c=()=>{if(u(),a(),s)return;s=!0;const e=o;e.duration=(0,_.vk)(i.startClocks.timeStamp,(0,_.nx)()),e.status=t.status,"string"==typeof t.response&&(e.responseBody=t.response),r.notify({...e,state:"complete"})},{stop:u}=ee(t,"loadend",c);r.notify(i)}(e,t)}),{computeHandlingStack:!0}),{stop:r}=Qr(XMLHttpRequest.prototype,"abort",vo);return()=>{e(),n(),r()}})):new z),po}function mo({target:t,parameters:[e,n]}){go.set(t,{state:"open",method:String(e).toUpperCase(),url:(0,$e.l2)(String(n))})}function vo({target:t}){const e=go.get(t);e&&(e.isAborted=!0)}const yo={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};let bo=function(t){return t.UNCAUGHT="Uncaught",t.PROVIDED="Provided",t}({}),_o=function(t){return t.HANDLED="handled",t.UNHANDLED="unhandled",t}({});const wo=220*It,So="$",Eo=3;function Co(t,e=wo){const n=wt(Object.prototype),r=wt(Array.prototype);try{const n=[],r=new WeakMap,o=ko(t,So,void 0,n,r),i=JSON.stringify(o);let s=i?i.length:0;if(s>e)return void xo(e,"discarded",t);for(;n.length>0&&s<e;){const o=n.shift();let i=0;if(Array.isArray(o.source))for(let a=0;a<o.source.length;a++){const c=ko(o.source[a],o.path,a,n,r);if(s+=void 0!==c?JSON.stringify(c).length:4,s+=i,i=1,s>e){xo(e,"truncated",t);break}o.target[a]=c}else for(const a in o.source)if(Object.prototype.hasOwnProperty.call(o.source,a)){const c=ko(o.source[a],o.path,a,n,r);if(void 0!==c&&(s+=JSON.stringify(c).length+i+a.length+Eo,i=1),s>e){xo(e,"truncated",t);break}o.target[a]=c}}return o}finally{n(),r()}}function ko(t,e,n,r,o){const i=function(t){if(("object"!=typeof t||null===t)&&"function"!=typeof t)return t;const e=t;if("function"==typeof e.toJSON)try{return e.toJSON()}catch{}return t}(t);if(!i||"object"!=typeof i)return"bigint"==typeof(s=i)?`[BigInt] ${s.toString()}`:"function"==typeof s?`[Function] ${s.name||"unknown"}`:"symbol"==typeof s?`[Symbol] ${s.description||s.toString()}`:s;var s;const a=To(i);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;const c=t;if(o.has(c))return`[Reference seen at ${o.get(c)}]`;const u=void 0!==n?`${e}.${n}`:e,l=Array.isArray(i)?[]:{};return o.set(c,u),r.push({source:i,target:l,path:u}),l}function To(t){try{if(t instanceof Event)return{type:(e=t).type,isTrusted:e.isTrusted,currentTarget:e.currentTarget?To(e.currentTarget):null,target:e.target?To(e.target):null};if(t instanceof RegExp)return`[RegExp] ${t.toString()}`;const n=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(n?.[1])return`[${n[1]}]`}catch{}var e;return"[Unserializable]"}function xo(t,e,n){I.warn(`The data provided has been ${e} as it is over the limit of ${t} characters:`,n)}const Ao=new Map,Ro=new Set;let Oo=!1;function Io(){const t=$.J.window?.DD_SOURCE_CODE_CONTEXT;if(!t)return;let e=!1,n=!1,r=!1;for(const[o,i]of Object.entries(t)){if(e=e||void 0!==i.ddDebugId,n=n||void 0!==i.service,r=r||void 0!==i.version,Ro.has(o))continue;Ro.add(o);const t=rt({stack:o}).stack[0]?.url;t&&!Ao.has(t)&&Ao.set(t,i)}Oo||(Oo=!0,Ne({feature:"source-code-context",use_debug_id:e,use_service:n,use_version:r}))}function No(t){Io();const e=new Set,n=[];for(const r of t){if(e.has(r))continue;e.add(r);const t=Ao.get(r)?.ddDebugId;void 0!==t&&n.push({url:r,id:t})}return n.length?n:void 0}function Lo({originalError:t,stackTrace:e,source:n,useFallbackStack:r=!0,nonErrorPrefix:o}){const i=Et(t);return{source:n,type:e?e.name:void 0,message:Uo(e,i,o,t),stack:e?yt(e):r?St:void 0}}function Mo(t){return t?.stack.map((t=>t.url)).filter((t=>!!t))??[]}function Do(t,e){const n=e.flatMap((({stackTrace:t})=>Mo(t)));return No(Mo(t).concat(n))}function Po({stackTrace:t,originalError:e,handlingStack:n,componentStack:r,startClocks:o,nonErrorPrefix:i,useFallbackStack:s=!0,source:a,handling:c}){const u=t??(Et(e)?rt(e):void 0),l=Et(e)?function(t){const e=[];let n=t.cause;for(;null!=n&&e.length<10;){const t=Et(n),r=t?rt(n):void 0;e.push({originalError:n,stackTrace:r}),n=t?n.cause:void 0}return e}(e):[],d=Lo({originalError:e,stackTrace:u,source:a,useFallbackStack:s,nonErrorPrefix:i}),f=l.map((({originalError:t,stackTrace:e})=>Lo({originalError:t,stackTrace:e,source:a,useFallbackStack:!1})));return{startClocks:o,handling:c,handlingStack:n,componentStack:r,originalError:e,...d,debugIds:Do(u,l),causes:f.length?f:void 0,fingerprint:Vo(e),context:$o(e)}}function Uo(t,e,n,r){return t?.message&&t?.name?t.message:e?"Empty message":n?`${n} ${_t(Co(r))}`:_t(Co(r))}function Vo(t){return Et(t)&&"dd_fingerprint"in t?String(t.dd_fingerprint):void 0}function $o(t){if((0,R.OE)(t))return t.dd_context}function Fo(){return new z((t=>{const e=(e,n)=>{const r=Po({stackTrace:n,originalError:e,startClocks:(0,_.M8)(),nonErrorPrefix:"Uncaught",source:yo.SOURCE,handling:"unhandled"});t.notify(r)},{stop:n}=(r=e,Qr($.J,"onerror",(({parameters:[t,e,n,o,i]})=>{let s;Et(i)||(s=pt(t,e,n,o)),r(i??t,s)})));var r;const{stop:o}=function(t){return re($.J.window,"unhandledrejection")?Qr($.J,"onunhandledrejection",(({parameters:[e]})=>{t(e.reason||"Empty reason")})):{stop:et}}(e);return()=>{n(),o()}}))}async function zo(t){const e=t.getReader(),n=[];for(;;){const t=await e.read();if(t.done)break;n.push(t.value)}return e.cancel().catch(et),function(t){if(1===t.length)return t[0];const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(n)}let Bo,Go=function(t){return t[t.IGNORE=0]="IGNORE",t[t.COLLECT=1]="COLLECT",t}({});const Ho=[];function qo({responseBodyAction:t}={}){return t&&Ho.push(t),Bo||(Bo=new z((t=>{if(!$.J.fetch)return;const{stop:e}=Qr($.J,"fetch",(e=>function({parameters:t,onPostCall:e,handlingStack:n},r){const[o,i]=t;let s=i?.method;void 0===s&&o instanceof Request&&(s=o.method);const a=void 0!==s?String(s).toUpperCase():"GET",c=o instanceof Request?o.url:(0,$e.l2)(String(o)),u={state:"start",init:i,input:o,method:a,startClocks:(0,_.M8)(),url:c,handlingStack:n,isAbortedOnStart:o instanceof Request&&o.signal?.aborted||i?.signal?.aborted||!1};r.notify(u),t[0]=u.input,t[1]=u.init,e((t=>{(async function(t,e,n){const r=n;let o;try{o=await e}catch(e){return void t.notify({...r,state:"resolve",status:0,isAborted:r.init?.signal?.aborted||e instanceof DOMException&&e.code===DOMException.ABORT_ERR,error:e})}if(r.response=o,r.status=o.status,r.responseType=o.type,r.isAborted=!1,1===Ho.reduce(((t,e)=>Math.max(t,e(r))),0)){const t=function(t){try{return t.clone()}catch{return}}(o);if(t?.body)try{const e=await zo(t.body);r.responseBody=(new TextDecoder).decode(e)}catch{}}t.notify({...r,state:"resolve"})})(r,t,u).catch(V)}))}(e,t)),{computeHandlingStack:!0});return e}))),Bo}let jo={};function Wo(t){return B(...t.map((t=>(jo[t]||(jo[t]=function(t){return new z((e=>{const n=O.JZ[t];return O.JZ[t]=(...r)=>{n.apply(console,r);const o=vt("console error");U((()=>
1{e.notify(function(t,e,n){const r=t.map((t=>function(t){return"string"==typeof t?Co(t):Et(t)?bt(rt(t)):_t(Co(t),void 0,2)}(t))).join(" ");if(e===O.bP.error){const o=Po({originalError:t.find(Et),handlingStack:n,startClocks:(0,_.M8)(),source:yo.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return o.message=r,{api:e,message:r,handlingStack:n,error:o}}return{api:e,message:r,error:void 0,handlingStack:n}}(r,t,o))}))},()=>{O.JZ[t]=n}}))}(t)),jo[t]))))}const Ko=500;let Zo=function(t){return t[t.RUNTIME_ERROR=0]="RUNTIME_ERROR",t[t.FETCH=1]="FETCH",t[t.XHR=2]="XHR",t[t.CONSOLE=3]="CONSOLE",t}({});let Jo,Xo=1;function Yo(t,e,n,r,o,i){const s=function(t,e,n,r){return{clearTracingIfNeeded:ao,traceFetch:o=>co(t,o,e,n,r,(t=>{if(o.input instanceof Request&&!o.init?.headers)o.input=new Request(o.input),Object.keys(t).forEach((e=>{o.input.headers.append(e,t[e])}));else{o.init=E(o.init);const e=[];o.init.headers instanceof Headers?o.init.headers.forEach(((t,n)=>{e.push([n,t])})):Array.isArray(o.init.headers)?o.init.headers.forEach((t=>{e.push(t)})):o.init.headers&&Object.keys(o.init.headers).forEach((t=>{e.push([t,o.init.headers[t]])})),o.init.headers=e.concat(Yt(t))}})),traceXhr:(o,i)=>co(t,o,e,n,r,(t=>{try{Object.keys(t).forEach((e=>{i.setRequestHeader(e,t[e])}))}catch{}}))}}(e,n,r,o);!function(t,e,n){const r=[];r.push(ho().subscribe((t=>{"start"===t.state&&Wn(t.url)&&(e.traceXhr(t,t.xhr),Qo(t))}))),r.push(n.subscribe((({data:n,type:r})=>{if(r!==Zo.XHR)return;const o=n;if(Wn(o.url))switch(o.state){case"start":Qo(o),t.notify(7,{requestIndex:o.requestIndex,url:o.url});break;case"complete":e.clearTracingIfNeeded(o),t.notify(8,{...o,type:Un.XHR,isAbortedOnStart:!1})}})))}(t,s,i),function(t,e,n,r){const o=[];o.push(qo({responseBodyAction:t=>fo(t.url,e)?.trackResponseErrors?Go.COLLECT:Go.IGNORE}).subscribe((t=>{"start"===t.state&&Wn(t.url)&&(n.traceFetch(t),Qo(t))}))),o.push(r.subscribe((({data:e,type:r})=>{if(r!==Zo.FETCH)return;const o=e;if(Wn(o.url))switch(o.state){case"start":Qo(o),t.notify(7,{requestIndex:o.requestIndex,url:o.url});break;case"resolve":n.clearTracingIfNeeded(o),t.notify(8,{...o,duration:(0,_.vk)(o.startClocks.timeStamp,(0,_.nx)()),type:Un.FETCH,requestBody:o.init?.body})}})))}(t,e,s,i)}function Qo(t){t.requestIndex||(t.requestIndex=Xo++)}function ti(){return Jo||(Jo=new z((t=>{if("function"!=typeof $.J.WebSocket)return;const{stop:e}=to($.J,"WebSocket",(({parameters:e,onPostCall:n})=>{const r=Array.isArray(e[1])?[].concat(e[1]):e[1],o=(0,_.M8)();n((e=>{t.notify({state:"connecting",instance:e,url:e.url,protocols:r,startClocks:o}),function(t,e){const{stop:n}=ee(t,"open",(()=>{e.notify({state:"open",instance:t,openClocks:(0,_.M8)(),protocol:t.protocol||""}),n()})),{stop:r}=ee(t,"message",(n=>{e.notify({state:"message-in",instance:t,size:ei(n.data),at:(0,_.M8)()})})),{stop:o}=ee(t,"close",(n=>{e.notify({state:"closed",instance:t,code:n.code,reason:n.reason,wasClean:n.wasClean,at:(0,_.M8)()}),r(),o()}))}(e,t)}))})),{stop:n}=Qr($.J.WebSocket.prototype,"send",(({target:e,parameters:[n],onPostCall:r})=>{const o=ei(n),i=e.bufferedAmount;r((()=>{t.notify({state:"message-out",instance:e,size:o,bufferedAmountPreSend:i,at:(0,_.M8)()})}))}));return()=>{e(),n()}}))),Jo}function ei(t){return"string"==typeof t?Mt(t):t instanceof ArrayBuffer||ArrayBuffer.isView(t)?t.byteLength:"undefined"!=typeof Blob&&t instanceof Blob?t.size:0}const ni="websocket-connecting",ri="websocket-closed";function oi(t,e,n){const r=function(t,e,n,r){const o=new Map;function i(e,o,i){const s=function(t,e,n,r){const o=e.at,i="session_end"===n?r.findView(o.relative,{returnInactive:!0})?.id:r.findView(o.relative)?.id,s=void 0!==t.lastMessageInAt?(0,_.vk)(t.lastMessageInAt,o.timeStamp):void 0,{openClocks:a,...c}=t;return{...c,endClocks:o,endViewId:i,inboundIdleDurationBeforeClose:s,trackingEndReason:n,handshakeSucceeded:void 0!==a,setupDuration:t.setupDuration??(0,_.vk)(t.startClocks.timeStamp,o.timeStamp),closeCode:e.code,closeReason:e.reason,wasClean:e.wasClean}}(e,o,i,n);t.notify(9,s),r({id:De(),name:ri,type:c.DURATION,startClocks:s.endClocks,duration:0,
1context:Co({url:s.url,connection_id:s.connectionId})})}const s=e.subscribe((t=>{switch(t.state){case"connecting":{const e=De(),i=n.findView(t.startClocks.relative)?.id,s=function(t){const e=(0,$e.c$)(t);return e.search="",e.href}(t.url),a={webSocket:t.instance,connectionId:e,url:s,startClocks:t.startClocks,startViewId:i,messagesIn:{count:0,size:0},messagesOut:{count:0,size:0},longestInboundSilence:0,bufferedAmountMax:0};return o.set(t.instance,a),void r({id:De(),name:ni,type:c.DURATION,startClocks:t.startClocks,duration:0,context:Co({url:s,connection_id:e})})}case"open":{const e=o.get(t.instance);if(!e)return;return e.openClocks=t.openClocks,e.protocol=t.protocol,void(e.setupDuration=(0,_.vk)(e.startClocks.timeStamp,t.openClocks.timeStamp))}case"message-in":{const e=o.get(t.instance);if(!e)return;return e.messagesIn.count+=1,e.messagesIn.size+=t.size,void ii(e,t.at,"in")}case"message-out":{const e=o.get(t.instance);if(!e)return;return t.bufferedAmountPreSend>e.bufferedAmountMax&&(e.bufferedAmountMax=t.bufferedAmountPreSend),e.messagesOut.count+=1,e.messagesOut.size+=t.size,void ii(e,t.at,"out")}case"closed":{const e=o.get(t.instance);if(!e)return;return o.delete(t.instance),void i(e,t,"close_event")}}}));return{flushOpenConnections:(t,e=(0,_.M8)())=>{o.forEach((n=>{i(n,{at:e},t)})),o.clear()},stop:()=>{s.unsubscribe(),o.clear()}}}(t,ti(),e,n),o=t.subscribe(10,(({endClocks:t})=>{r.flushOpenConnections("session_end",t)}));return{stop:()=>{o.unsubscribe(),r.flushOpenConnections("session_end"),r.stop()}}}function ii(t,e,n){if(void 0===t.openClocks)return;const r=(0,_.vk)(t.openClocks.timeStamp,e.timeStamp);if("in"===n&&void 0===t.firstMessageInOffset?t.firstMessageInOffset=r:"out"===n&&void 0===t.firstMessageOutOffset&&(t.firstMessageOutOffset=r),"in"===n){if(void 0!==t.lastMessageInAt){const n=(0,_.vk)(t.lastMessageInAt,e.timeStamp);n>t.longestInboundSilence&&(t.longestInboundSilence=n)}t.lastMessageInAt=e.timeStamp}}function si(t){return cn(t)&&t<0?void 0:t}function ai(t,e,n,r,o,i){const s=ci(t,e,n,r);let a,c=!1;const u=J(P((()=>p({hadActivity:!1}))),100),l=void 0!==i?J(P((()=>p({hadActivity:!0,end:(0,_.nx)()}))),i):void 0,d=s.subscribe((({isBusy:t})=>{X(u),X(a);const e=(0,_.nx)();t||(a=J(P((()=>p({hadActivity:!0,end:e}))),100))})),f=()=>{c=!0,X(u),X(a),X(l),d.unsubscribe()};function p(t){c||(f(),o(t))}return{stop:f}}function ci(t,e,n,r){return new z((o=>{const i=[];let s,a=0;return i.push(e.subscribe((t=>{t.every(li)||c()})),n.subscribe(c),sr({type:"resource"}).subscribe((t=>{t.some((t=>!ui(r,t.name)))&&c()})),t.subscribe(7,(t=>{ui(r,t.url)||(void 0===s&&(s=t.requestIndex),a+=1,c())})),t.subscribe(8,(t=>{ui(r,t.url)||void 0===s||t.requestIndex<s||(a-=1,c())}))),()=>{i.forEach((t=>t.unsubscribe()))};function c(){o.notify({isBusy:a>0})}}))}function ui(t,e){return so(t.excludedActivityUrls,e)}function li(t){const e="characterData"===t.type?t.target.parentElement:t.target;return Boolean(e&&Yn(e)&&e.matches("[data-dd-excluded-activity-mutations], [data-dd-excluded-activity-mutations] *"))}function di({lifeCycle:t,isChildEvent:e,onChange:n=et}){const o={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},i=t.subscribe(14,(t=>{if("view"!==t.type&&"vital"!==t.type&&e(t))switch(t.type){case r.ERROR:o.errorCount+=1,n();break;case r.ACTION:o.actionCount+=1,t.action.frustration&&(o.frustrationCount+=t.action.frustration.type.length),n();break;case r.LONG_TASK:o.longTaskCount+=1,n();break;case r.RESOURCE:t._dd?.discarded||(o.resourceCount+=1,n())}}));return{stop:()=>{i.unsubscribe()},eventCounts:o}}const fi=5*_.iW;function pi(t){const e=Mn({expireDelay:fi}),n=new Map;function r(t){n.delete(t.key),t.eventCounts?.stop()}function o(){n.forEach((t=>{r(t)})),e.reset()}const i=t.subscribe(11,o);return{start:function(o,i,s,a){const c=De(),u=e.add(c,i.relative),l=n.get(o);l&&r(l);const d={id:c,key:o,startClocks:i,data:s,historyEntry:u,eventCounts:a?.isChildEvent?di({lifeCycle:t,isChildEvent:a.isChildEvent(c)}):void 0};return n.set(o,d),d},stop:function(t,e,o){const i=n.get(t);if(!i)return;const s=o?(0,me.kg)(i.data,o):i.data;i.historyEntry.close(e.relative);const a=(0,_.vk)(i.startClocks.timeStamp,e.timeStamp),c=i.eventCounts?.eventCounts;return r(i),{...s,id:i.id,startClocks:i.startClocks,duration:a,counts:c}},discard:function(t){const e=n.get(t);if(!e)return;const o=e.eventCounts?.eventCounts;return r(e),e.historyEntry.remove(),{...e.data,id:e.id,startClocks:e.startClocks,counts:o}},getCounts:function(t){return n.get(t)?.eventCounts?.eventCounts},findId:function(t){return e.findAll(t)},stopAll:function(){i.unsubscribe(),o(),e.stop()}}}const gi=["HTML","BODY"],hi=2*It,mi=lr.concat(["role","type","disabled","readonly","tabindex","draggable","target","rel","download","method","action","enctype","autocomplete"]);function vi(t,e){const n=vr(t),r=mr(t),o=function(t){return Array.from(t.classList).filter((t=>!hr(t))).sort().map((t=>`.${CSS.escape(t)}`)).join("")}(t),i=function(t,e){const n=[],r=Array.from(t.attributes);for(const t of r)e.includes(t.name)&&n.push(br(t.name,t.value));return n.sort().join("")}(t,e),s=function(t){const e=Array.from(t.parentNode.children);if(e.length<=1)return"";const n=e.filter((e=>e.tagName===t.tagName)),r=e.indexOf(t),o=wr(t);return`:nth-child(${r+1})${n.length>1?`:nth-of-type(${o})`:""}`}(t);return`${n}${r||""}${i}${o}${s};`}const yi=_.OY;function bi(t,e){const n=[];let r,o=0;function i(t){t.stopObservable.subscribe(s),n.push(t),X(r),r=J(a,yi)}function s(){1===o&&n.every((t=>t.isStopped()))&&(o=2,e(n))}function a(){X(r),0===o&&(o=1,s())}return i(t),{tryAppend:t=>{return 0===o&&(n.length>0&&(e=n[n.length-1].event,r=t.event,!(e.target===r.target&&(s=e,c=r,Math.sqrt(Math.pow(s.clientX-c.clientX,2)+Math.pow(s.clientY-c.
1clientY,2))<=100)&&e.timeStamp-r.timeStamp<=yi))?(a(),!1):(i(t),!0));var e,r,s,c},stop:()=>{a()}}}function _i(t,e){const n=function(t,e){let n=t;for(;n;){if(n.matches(e))return n;n=rr(n)}return null}(t,`[${e}]`);if(n)return Ti(ki(n.getAttribute(e).trim()))}const wi=[(t,e,n)=>{if("labels"in t&&t.labels&&t.labels.length>0)return Ai(t.labels[0],e,n)},t=>{if("INPUT"===t.nodeName){const e=t,n=e.getAttribute("type");if("button"===n||"submit"===n||"reset"===n)return{name:e.value,nameSource:"text_content"}}},(t,e,n)=>{if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return Ai(t,e,n)},(t,e,n)=>xi(t,"aria-label",e,n),(t,e,n)=>{const r=t.getAttribute("aria-labelledby");if(r)return{name:r.split(/\s+/).map((e=>function(t,e){const n=t.getRootNode();if(n instanceof ShadowRoot){const t=n.getElementById(e);if(t)return t}return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e))).filter((t=>Boolean(t))).map((t=>Ri(t,e,n))).join(" "),nameSource:"text_content"}},(t,e,n)=>xi(t,"alt",e,n),(t,e,n)=>xi(t,"name",e,n),(t,e,n)=>xi(t,"title",e,n),(t,e,n)=>xi(t,"placeholder",e,n),(t,e,n)=>{if("options"in t&&t.options.length>0)return Ai(t.options[0],e,n)}],Si=[(t,e,n)=>Ai(t,e,n)],Ei=10;function Ci(t,e,n,r){let o=t,i=0;for(;i<=Ei&&o&&"BODY"!==o.nodeName&&"HTML"!==o.nodeName&&"HEAD"!==o.nodeName;){for(const t of e){const e=t(o,n,r);if(e){const{name:t,nameSource:n}=e,r=t?.trim();if(r)return{name:Ti(ki(r)),nameSource:n}}}if("FORM"===o.nodeName)break;o=rr(o),i+=1}}function ki(t){return t.replace(/\s+/g," ")}function Ti(t){return t.length>100?`${Ve(t,100)} [...]`:t}function xi(t,e,n,r){const{enablePrivacyForActionName:o,defaultPrivacyLevel:i}=n;let s=t.getAttribute(e);if(s&&o){const o=Mr(t,i,r);Vr(t.tagName,e,s,o,n)&&(c=cr,s=Br(a=s)?a:c||Fr(a))}else s||(s="");var a,c;return{name:s,nameSource:"standard_attribute"}}function Ai(t,e,n){return{name:Ri(t,e,n)||"",nameSource:"text_content"}}function Ri(t,e,n){if(t.isContentEditable)return;const{enablePrivacyForActionName:r,actionNameAttribute:o,defaultPrivacyLevel:i}=e,s=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,(function(t){const e=Mr(t,i,n);if(r&&e&&Ur(t,e))return NodeFilter.FILTER_REJECT;if(Yn(t)){if(t.hasAttribute("data-dd-action-name")||o&&t.hasAttribute(o))return NodeFilter.FILTER_REJECT;const e=getComputedStyle(t);if("visible"!==e.visibility||"none"===e.display||e.contentVisibility&&"visible"!==e.contentVisibility)return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT}));let a="";for(;s.nextNode();){const t=s.currentNode;Yn(t)?("BR"===t.nodeName||"P"===t.nodeName||["block","flex","grid","list-item","table","table-caption"].includes(getComputedStyle(t).display))&&(a+=" "):a+=t.textContent||""}return a.replace(/\s+/g," ").trim()}function Oi(){const t=window.getSelection();return!t||t.isCollapsed}function Ii(t){return t.target instanceof Element&&!1!==t.isPrimary}const Ni=3;function Li(t,e){if(function(t){if(t.some((t=>t.getUserActivity().selection||t.getUserActivity().scroll)))return!1;for(let e=0;e<t.length-2;e+=1)if(t[e+Ni-1].event.timeStamp-t[e].event.timeStamp<=_.OY)return!0;return!1}(t))return e.addFrustration(a.RAGE_CLICK),t.some(Di)&&e.addFrustration(a.DEAD_CLICK),e.hasError&&e.addFrustration(a.ERROR_CLICK),{isRage:!0};const n=t.some((t=>t.getUserActivity().selection));return t.forEach((t=>{t.hasError&&t.addFrustration(a.ERROR_CLICK),Di(t)&&!n&&t.addFrustration(a.DEAD_CLICK)})),{isRage:!1}}const Mi='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *';function Di(t){if(t.hasPageActivity||t.getUserActivity().input||t.getUserActivity().scroll)return!1;let e=t.event.target;return"LABEL"===e.tagName&&e.hasAttribute("for")&&(e=document.getElementById(e.getAttribute("for"))),!e?.matches(Mi)}const Pi=10*_.OY,Ui=new Map;function Vi(t,e){Ui.set(t,e),Ui.forEach(((t,e)=>{(0,_.vk)(e,(0,_.$S)())>Pi&&Ui.delete(e)}))}function $i(t){return e=>e.action?.id?.includes(t)??!1}function Fi(t,e,n,r){const o=pi(t),i=new z;let a;t.subscribe(5,l),t.subscribe(12,l);const{stop:c}=function({onPointerDown:t,onPointerUp:e}){let n,r,o={selection:!1,input:!1,scroll:!1};const i=[ee(window,te.POINTER_DOWN,(e=>{Ii(e)&&(n=Oi(),o={selection:!1,input:!1,scroll:!1},r=t(e))}
1),{capture:!0}),ee(window,te.SELECTION_CHANGE,(()=>{n&&Oi()||(o.selection=!0)}),{capture:!0}),ee(window,te.SCROLL,(()=>{o.scroll=!0}),{capture:!0,passive:!0}),ee(window,te.POINTER_UP,(t=>{if(Ii(t)&&r){const n=o;e(r,t,(()=>n)),r=void 0}}),{capture:!0}),ee(window,te.INPUT,(()=>{o.input=!0}),{capture:!0})];return{stop:()=>{i.forEach((t=>t.stop()))}}}({onPointerDown:o=>function(t,e,n,r,o){let i;i=t.enablePrivacyForActionName?Mr(zi(r),t.defaultPrivacyLevel):Tr.ALLOW;if(i===Tr.HIDDEN)return;const a=function(t,e,n){const r=zi(t),o=r.getBoundingClientRect(),i=pr(r,n.actionNameAttribute),a=function(t,e){const n=t.filter((t=>t instanceof Element&&!gi.includes(t.tagName)));if(0===n.length)return"";const r=e?[e].concat(mi):mi;let o="";for(const t of n)if(o+=vi(t,r),o.length>=hi)return Ve(o,hi);return o}(t.composedPath(),n.actionNameAttribute);i&&Vi(t.timeStamp,i);const{name:c,nameSource:u}=function(t,e,n=Tr.ALLOW){const r=new Map,{actionNameAttribute:o}=e,i=_i(t,"data-dd-action-name")||o&&_i(t,o);return i?{name:i,nameSource:"custom_attribute"}:n===Tr.MASK?{name:cr,nameSource:"mask_placeholder"}:Ci(t,wi,e,r)||Ci(t,Si,e,r)||{name:"",nameSource:"blank"}}(r,n,e);return{type:s.CLICK,target:{width:Math.round(o.width),height:Math.round(o.height),selector:i,composedPathSelector:a||void 0},position:{x:Math.round(t.clientX-o.left),y:Math.round(t.clientY-o.top)},name:c,nameSource:u}}(r,i,t);let c=!1;return ai(e,n,o,t,(t=>{c=t.hadActivity}),100),{clickActionBase:a,hadActivityOnPointerDown:()=>c}}(r,t,e,o,n),onPointerUp:({clickActionBase:s,hadActivityOnPointerDown:a},c,l)=>{!function(t,e,n,r,o,i,s,a,c,u,l){const d=Bi(e,o,u,a,c);s(d);const f=a?.target?.selector;f&&Vi(c.timeStamp,f);const{stop:p}=ai(e,n,r,t,(t=>{t.hadActivity&&t.end<d.startClocks.timeStamp?d.discard():t.hadActivity?d.stop(t.end):l()?d.stop(d.startClocks.timeStamp):d.stop()}),Pi),g=e.subscribe(5,(({endClocks:t})=>{d.stop(t.timeStamp)})),h=e.subscribe(12,(()=>{d.stop((0,_.nx)())})),m=i.subscribe((()=>{d.stop()}));d.stopObservable.subscribe((()=>{h.unsubscribe(),g.unsubscribe(),p(),m.unsubscribe()}))}(r,t,e,n,o,i,u,s,c,l,a)}});return{stop:()=>{l(),i.notify(),c(),o.stopAll()},findActionId:o.findId};function u(t){if(!a?.tryAppend(t)){const e=t.clone();a=bi(t,(t=>{!function(t,e){const{isRage:n}=Li(t,e);n?(t.forEach((t=>t.discard())),e.stop((0,_.nx)()),e.validate(t.map((t=>t.event)))):(e.discard(),t.forEach((t=>t.validate())))}(t,e),a=void 0}))}}function l(){a&&a.stop()}}function zi(t){if(t.composed&&Qn(t.target)&&"function"==typeof t.composedPath){const e=t.composedPath();if(e.length>0&&e[0]instanceof Element)return e[0]}return t.target}function Bi(t,e,n,r,o){const i=De(),s=(0,_.FR)(o.timeStamp),a=e.start(i,s,r,{isChildEvent:$i});t.notify(16,a);let c,u=0;const l=[],d=new z;function f(t){0===u&&(u=1,c=t?e.stop(i,(0,_.jR)(t)):e.discard(i),d.notify())}return{event:o,stop:f,stopObservable:d,get hasError(){const t=c?.counts??e.getCounts(i);return!!t&&t.errorCount>0},get hasPageActivity(){return c&&"duration"in c},getUserActivity:n,addFrustration:t=>{l.push(t)},get startClocks(){return s},isStopped:()=>1===u||2===u,clone:()=>Bi(t,e,n,r,o),validate:e=>{if(f(),1!==u)return;if(!c)return;const n={frustrationTypes:l,events:e??[o],event:o,...c,counts:c.counts};t.notify(0,n),u=2},discard:()=>{f(),u=2}}}function Gi(t,e,n,o,i){const{unsubscribe:c}=t.subscribe(0,(e=>{t.notify(13,Hi(e))})),u=et;let l;i.trackUserInteractions&&(l=Fi(t,n,o,i));const d=function(t,e){const n=pi(t);return{addAction:function(t){e({id:De(),frustrationTypes:[],...t})},startAction:function(e,r={},o=(0,_.M8)()){const i=r.actionKey??e,s=n.start(i,o,{name:e,...r},{isChildEvent:$i});t.notify(16,s)},stopAction:function(t,r={},o=(0,_.M8)()){const i=r.actionKey??t,c=n.stop(i,o,r);if(!c)return;const u=[];c.counts&&c.counts.errorCount>0&&u.push(a.ERROR_CLICK),e({...c,type:c.type||s.CUSTOM,frustrationTypes:u})},findActionId:n.findId,stop:n.stopAll}}(t,(e=>{t.notify(13,Hi(e))})),f={findActionId:t=>{const e=d.findActionId(t),n=l?.findActionId(t)??[];return e.concat(n)}};return e.assemble.register((({startTime:t,eventType:e})=>{if(e!==r.ERROR&&e!==r.RESOURCE&&e!==r.LONG_TASK)return ye.$O;const n=e===r.LONG_TASK?(0,_.Gw)(t,1):t,o=f.findActionId(n);return o.length?{type:e,action:{id:o}}:ye.$O})),e.assembleTelemetry.register((({startTime:t})=>({action:{id:f.findActionId(t)}}))),{addAction:d.addAction,startAction:d.startAction,stopAction:d.stopAction,actionContexts:f,stop:()=>{c(),u(),d.stop(),l?.stop()}}}function Hi(t){const e=function(t){return"events"in t}(t),n=si((0,_.Zj)(t.duration));return{rawRumEvent:{type:r.ACTION,date:t.startClocks.timeStamp,action:{id:t.id,target:{name:t.name},type:t.type,...void 0!==n&&{loading_time:n},...t.counts&&{error:{count:t.counts.errorCount},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},frustration:{type:t.frustrationTypes}},...e?{_dd:{action:{target:{selector:t.target?.selector||void 0,width:t.target?.width||void 0,height:t.target?.height||void 0,composed_path_selector:t.target?.composedPathSelector},position:t.position,name_source:t.nameSource}}}:{context:t.context}},duration:t.duration,startClocks:t.startClocks,domainContext:e?{events:t.events}:{handlingStack:t.handlingStack}}}const qi={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function ji(t){const e=[];t.includes(qi.cspViolation)&&e.push(new z((t=>{if(!re(document,"securitypolicyviolation"))return;const{stop:e}=ee(document,"securitypolicyviolation",(e=>{t.notify(function(t){const e=`'${t.blockedURI}' blocked by '${t.effectiveDirective}' directive`;return Wi({type:t.effectiveDirective,message:`${qi.cspViolation}: ${e}
1`,originalError:t,csp:{disposition:t.disposition},stack:Ki(t.effectiveDirective,t.originalPolicy?`${e} of the policy "${Ve(t.originalPolicy,100,"...")}"`:"no policy",t.sourceFile,t.lineNumber,t.columnNumber),debugIds:t.sourceFile?No([t.sourceFile]):void 0})}(e))}));return e})));const n=t.filter((t=>t!==qi.cspViolation));return n.length&&e.push(function(t){return new z((e=>{if(!window.ReportingObserver)return;const n=P(((t,n)=>t.forEach((t=>e.notify(function(t){const{type:e,body:n}=t;return Wi({type:n.id,message:`${e}: ${n.message}`,originalError:t,stack:Ki(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber),debugIds:n.sourceFile?No([n.sourceFile]):void 0})}(t)))))),r=new window.ReportingObserver(n,{types:t,buffered:!0});return r.observe(),()=>{r.disconnect()}}))}(n)),B(...e)}function Wi(t){return{startClocks:(0,_.M8)(),source:yo.REPORT,handling:"unhandled",...t}}function Ki(t,e,n,r,o){return n?yt({name:t,message:e,stack:[{func:"?",url:n,line:r??void 0,column:o??void 0}]}):void 0}function Zi(t,e){const n=new z;return e.subscribe((({data:t,type:e})=>{e===Zo.RUNTIME_ERROR?n.notify(t):e===Zo.CONSOLE&&t.api===O.bP.error&&n.notify(t.error)})),function(t){const e=ji([qi.cspViolation,qi.intervention]).subscribe((e=>t.notify(e)))}(n),n.subscribe((e=>t.notify(15,{error:e}))),function(t){return t.subscribe(15,(({error:e})=>{t.notify(13,function(t){const e={date:t.startClocks.timeStamp,error:{id:De(),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},_dd:{debug_ids:t.debugIds},type:r.ERROR,context:t.context},n={error:t.originalError,handlingStack:t.handlingStack};return{rawRumEvent:e,startClocks:t.startClocks,domainContext:n}}(e))})),{addError:({error:e,handlingStack:n,componentStack:r,startClocks:o,context:i})=>{const s=Po({originalError:e,handlingStack:n,componentStack:r,startClocks:o,nonErrorPrefix:bo.PROVIDED,source:yo.CUSTOM,handling:_o.HANDLED});s.context=(0,me.kg)(s.context,i),t.notify(15,{error:s})}}}(t)}function Ji(){if(ar("navigation")){const t=performance.getEntriesByType("navigation")[0];if(t&&function(t){return!(t.loadEventEnd>0&&t.domComplete<=0)}(t))return t}const t=function(){const t={},e=performance.timing;for(const n in e)if(cn(e[n])){const r=n,o=e[r];t[r]=0===o?0:(0,_.d6)(o)}return t}(),e={entryType:"navigation",initiatorType:"navigation",name:window.location.href,startTime:0,duration:t.loadEventEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:()=>({...e,toJSON:void 0}),...t};return e}function Xi(t){return t.responseStart>=0&&t.responseStart<=(0,_.$S)()?t.responseStart:void 0}function Yi(t,e){const n=function(){if(ar("resource"))return performance.getEntriesByType("resource")}();if(n)return Jt(n,(n=>n.name===t&&n.startTime<=e))}const Qi=2*_.iW;function ts(t){const e=function(t){const e=t.querySelector("meta[name=dd-trace-id]"),n=t.querySelector("meta[name=dd-trace-time]");return es(e?.content,n?.content)}(t)||function(t){const e=function(t){for(let e=0;e<t.childNodes.length;e+=1){const n=ns(t.childNodes[e]);if(n)return n}if(t.body)for(let e=t.body.childNodes.length-1;e>=0;e-=1){const n=t.body.childNodes[e],r=ns(n);if(r)return r;if(!Xn(n))break}}(t);if(!e)return;return es(Ue(e,"trace-id"),Ue(e,"trace-time"))}(t);if(e&&!(e.traceTime<=(0,_.uc)()-Qi))return e.traceId}function es(t,e){const n=e&&Number(e);if(t&&n)return{traceId:t,traceTime:n}}function ns(t){if(t&&function(t){return t.nodeType===Node.COMMENT_NODE}(t)){const e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}function rs(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){const n=window.requestIdleCallback(P(t),e);return()=>window.cancelIdleCallback(n)}return function(t){const e=(0,_.x3)(),n=J((()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-((0,_.x3)()-e))})}),0);return()=>X(n)}(t)}const os=_.OY;function is(){const t=[];function e(e){let r;if(!e||e.didTimeout){const t=performance.now();r=()=>30-(performance.now()-t)}else r=e.timeRemaining.bind(e);for(;r()>0&&t.length;)t.shift()();t.length&&n()}function n(){rs(e,{timeout:os})}return{push(e){1===t.push(e)&&n()},stop(){t.length=0}}}function ss(t,e){return document.readyState===t||"complete"===document.readyState?(e(),{stop:et}):ee(window,"complete"===t?"load":"DOMContentLoaded",e,{once:!0})}function as(t,e){const n=is(),o=function(t){const e=new Set,n=t.subscribe(8,(t=>{e.add(t),e.size>1e3&&e.delete(e.values().next().value)}));return{getMatchingRequest(t){let n,r=1/0;for(const o of e){const e=t.startTime-o.startClocks.relative;0<=e&&e<r&&o.url===t.name&&(r=Math.abs(e),n=o)}return n&&e.delete(n),n},stop(){n.unsubscribe()}}}(t);t.subscribe(9,(n=>{const o=function(t,e){const n=(0,_.vk)(t.startClocks.timeStamp,t.endClocks.timeStamp),o={date:t.startClocks.timeStamp,type:r.RESOURCE,resource:{id:De(),type:Pn.WEBSOCKET,url:t.url,duration:(0,_.Zj)(n),websocket:{connection_id:t.connectionId,handshake_succeeded:t.handshakeSucceeded,start_time:t.startClocks.timeStamp,end_time:t.endClocks.timeStamp,start_view_id:t.startViewId,end_view_id:t.endViewId,tracking_end_reason:t.trackingEndReason,close_code:t.closeCode,close_reason:t.closeReason,was_clean:t.wasClean,messages_in:t.messagesIn,messages_out:t.messagesOut,time_to_first_message_in:(0,_.Zj)(t.firstMessageInOffset),time_to_first_message_out:(0,_.Zj)(t.firstMessageOutOffset),last_message_in_at:t.lastMessageInAt,longest_inbound_silence:(0,_.Zj)(t.longestInboundSilence),inbound_idle_duration_before_close:(0,_.Zj)(t.inboundIdleDurationBeforeClose),buffered_amount_max:t.bufferedAmountMax,protocol:t.protocol,setup_duration:(0,_.Zj)(t.setupDuration)}},_dd:{discarded:!e.trackResources}};return{startClocks:t.startClocks,duration:n,rawRumEvent:o,domainContext:{isWebSocket:!0,isManual:!1,webSocket:t.webSocket}}}(n,e);o&&t.notify(13,o)}));const i=sr({type:"resource",buffered:!0}).subscribe((n=>{for(const r of n)zn(r)?J((()=>{const n=cs(r,o.getMatchingRequest(r),e);n&&t.notify(13,n)}),50):a((()=>cs(r,void 0,e)))})),{stop:s}=ss("interactive",(()=>{a((()=>cs(Ji(),void 0,e)))}));function a(e){n.push((()=>{const n=e();n&&t.notify(13,n)}))}const c=pi(t),u=function(t,e){return{startResource:function(t,n={},r=(0,_.M8)()){const o=n.resourceKey??t;e.start(o,r,{url:t,...n})},stopResource:function(n,o={},i=(0,_.M8)()){const s=o.resourceKey??n,a=e.stop(s,i,{context:o.context,type:o.type});if(!a)return;const c=(0,_.vk)(a.startClocks.relative,i.relative),u={date:a.startClocks.timeStamp,type:r.RESOURCE,resource:{id:a.id,type:a.type||Pn.OTHER,url:Jn(a.url),duration:(0,_.Zj)(c),method:a.method,status_code:o.statusCode,size:o.size},_dd:{},context:a.context};t.notify(13,{rawRumEvent:u,startClocks:a.startClocks,duration:c,domainContext:{isManual:!0}})}}}(t,c);return{startResource:u.startResource,stopResource:u.stopResource,stop:()=>{s(),n.stop(),i.unsubscribe(),c.stopAll()}}}function cs(t,e,n){const o=e?function(t,e){if(!(t.traceSampled&&t.traceId&&t.spanId))return;return{_dd:{span_id:t.spanId.toString(),trace_id:t.traceId.toString(),rule_psr:e.rulePsr}}}
1(e,n):function(t,e){if("navigation"!==t.initiatorType)return;const n=ts(document);if(!n)return;return{_dd:{trace_id:n,span_id:ro().toString(),rule_psr:e.rulePsr}}}(t,n);if(!n.trackResources&&!o)return;const i=(0,_.FR)(t.startTime),s=function(t){const{duration:e,startTime:n,responseEnd:r}=t;return"navigation"===t.initiatorType||0===e&&n<r?(0,_.vk)(n,r):e}(t),a=function(t,e){const n=e.trackResourceHeaders;if(0===n.length||!t)return;const r=n.filter((e=>void 0===e.url||so([e.url],t.url,!0)));if(0===r.length)return;const o=r.filter((t=>void 0===t.location||"any"===t.location||"response"===t.location)),i=r.filter((t=>void 0===t.location||"any"===t.location||"request"===t.location)),s=o.length>0?function(t,e){if(t.type===Un.FETCH&&t.response)return ms(t.response.headers,e);if(t.type===Un.XHR&&t.xhr){const n=t.xhr.getAllResponseHeaders();if(n)try{return ms(new Headers(function(t){const e=[],n=t.trim().split(/\r\n/);for(const t of n){const n=t.indexOf(":");n>0&&e.push([t.substring(0,n).trim(),t.substring(n+1).trim()])}return e}(n)),e)}catch{}}}(t,o):void 0,a=i.length>0?function(t,e){if(t.type!==Un.FETCH)return;let n;t.init?.headers?n=new Headers(t.init.headers):t.input instanceof Request&&(n=t.input.headers);return n?ms(n,e):void 0}(t,i):void 0;if(!s&&!a)return;return{resource:{request:a?{headers:a}:void 0,response:s?{headers:s}:void 0}}}(e,n);return{startClocks:i,duration:s,rawRumEvent:(0,me.kg)({date:i.timeStamp,resource:{id:De(),duration:(0,_.Zj)(s),type:$n(t),method:e?.method,status_code:e?e.status:(c=t.responseStatus,0===c?void 0:c),url:e?Jn(e.url):t.name,protocol:Hn(t),delivery_type:qn(t),graphql:e&&us(e,n),render_blocking_status:t.renderBlockingStatus,...jn(t),...Bn(t)},type:r.RESOURCE,_dd:{discarded:!n.trackResources}},o,ls(t),a),domainContext:ds(t,e)};var c}function us(t,e){const n=fo(t.url,e);if(n)return lo(t,n)}function ls(t){const e=t.contentType;if(e)return{resource:{response:{headers:{"content-type":e}}}}}function ds(t,e){return{performanceEntry:t,isManual:!1,isAborted:!!e&&e.isAborted,isWebSocket:!1,handlingStack:e?.handlingStack,requestInit:e?.init,requestInput:e?.input,response:e?.response,error:e?.error,xhr:e?.xhr}}const fs=/(token|cookie|secret|authorization|(api|secret|access|app).?key|(client|connecting|real).?ip|forwarded)/,ps=100,gs=128,hs=t=>fn.includes(t);function ms(t,e){const n={};let r=0,o=!1;return t.forEach(((t,i)=>{if(r>=ps)return void(o||(I.warn(`Maximum number of headers (${ps}) has been reached. Further headers are dropped.`),o=!0));const s=i.toLowerCase();if(fs.test(s))return;const a=e.find((t=>so([t.name??hs],s)));if(!a)return;const{extractor:c}=a,l=c?u(t,c):t;void 0!==l&&(l.length>gs&&I.warn(`Header "${s}" value was truncated from ${l.length} to ${gs} characters.`),n[s]=Ve(l,gs),r++)})),r>0?n:void 0}const vs=10*_.iW;function ys(t){return function(t){let e;const{stop:n}=ss("complete",(()=>{e=J((()=>t()))}));return{stop:()=>{n(),X(e)}}}((()=>{const e=Ji();(function(t){return t.loadEventEnd<=0})(e)||t(function(t){return{domComplete:t.domComplete,domContentLoaded:t.domContentLoadedEventEnd,domInteractive:t.domInteractive,loadEvent:t.loadEventEnd,firstByte:Xi(t)}}(e))}))}const bs=10*_.iW;function _s(t,e,n,r){let o=1/0;const{stop:i}=ne(n,[te.POINTER_DOWN,te.KEY_DOWN],(t=>{o=t.timeStamp}),{capture:!0,once:!0});let s=0;const a=sr({type:"largest-contentful-paint",buffered:!0}).subscribe((n=>{const i=Jt(n,(t=>"largest-contentful-paint"===t.entryType&&t.startTime<o&&t.startTime<e.timeStamp&&t.startTime<bs&&t.size>s));if(i){let e;i.element&&(e=pr(i.element,t.actionNameAttribute));const n=""===(a=i).url?void 0:a.url,o=i.startTime,c=function(t,e){const n=Xi(Ji());if(void 0===n)return;const r=t?Yi(t,e):void 0,o=r?Math.max(n,r.requestStart||r.startTime):n,i=Math.min(e,Math.max(o,r?.responseEnd||0));return{loadDelay:o-n,loadTime:i-o,renderDelay:e-i}}(n,o);r({value:o,targetSelector:e,resourceUrl:n,subParts:c}),s=i.size}var a}));return{stop:()=>{i(),a.unsubscribe()}}}function ws(t,e=window){if("hidden"===document.visibilityState)return{timeStamp:0,stop:et};if(ar("visibility-state")){const e=performance.getEntriesByType("visibility-state").filter((t=>"hidden"===t.name)).find((e=>e.startTime>=t.relative));if(e)return{timeStamp:e.startTime,stop:et}}let n=1/0;const{stop:r}=ne(e,[te.PAGE_HIDE,te.VISIBILITY_CHANGE],(t=>
1{t.type!==te.PAGE_HIDE&&"hidden"!==document.visibilityState||(n=t.timeStamp,r())}),{capture:!0});return{get timeStamp(){return n},stop:r}}function Ss(t,e,n,r){const o={},{stop:i}=ys((t=>{n(t.loadEvent),o.navigationTimings=t,r()})),s=ws(e),{stop:a}=function(t,e){return{stop:sr({type:"paint",buffered:!0}).subscribe((n=>{const r=n.find((e=>"first-contentful-paint"===e.name&&e.startTime<t.timeStamp&&e.startTime<vs));r&&e(r.startTime)})).unsubscribe}}(s,(t=>{o.firstContentfulPaint=t,r()})),{stop:c}=_s(t,s,window,(t=>{o.largestContentfulPaint=t,r()}));return{stop:function(){i(),a(),c(),s.stop()},initialViewMetrics:o}}const Es=(t,e)=>t*e,Cs=t=>Es(t.previousRect.width,t.previousRect.height)+Es(t.currentRect.width,t.currentRect.height)-((t,e)=>{const n=Math.max(t.left,e.left),r=Math.max(t.top,e.top),o=Math.min(t.right,e.right),i=Math.min(t.bottom,e.bottom);return n>=o||r>=i?0:Es(o-n,i-r)})(t.previousRect,t.currentRect);function ks(t,e,n){if(!ar("layout-shift")||!("WeakRef"in window))return{stop:et};let r,o=0;n({value:0});const i=function(){let t,e,n=0,r=0;return{update:o=>{let i;return void 0===t||o.startTime-e>=Rs||o.startTime-t>=As?(t=e=o.startTime,r=n=o.value,i=!0):(n+=o.value,e=o.startTime,i=o.value>r,i&&(r=o.value)),{cumulatedValue:n,isMaxValue:i}}}}(),s=sr({type:"layout-shift",buffered:!0}).subscribe((s=>{for(const a of s){if(a.hadRecentInput||a.startTime<e)continue;const{cumulatedValue:s,isMaxValue:c}=i.update(a);if(c){const t=Ts(a.sources);r={target:t?.node?new WeakRef(t.node):void 0,time:(0,_.vk)(e,a.startTime),previousRect:t?.previousRect,currentRect:t?.currentRect,devicePixelRatio:window.devicePixelRatio}}if(s>o){o=s;const e=r?.target?.deref();n({value:an(o,4),targetSelector:e&&pr(e,t.actionNameAttribute),time:r?.time,previousRect:r?.previousRect?xs(r.previousRect):void 0,currentRect:r?.currentRect?xs(r.currentRect):void 0,devicePixelRatio:r?.devicePixelRatio})}}}));return{stop:()=>{s.unsubscribe()}}}function Ts(t){let e;for(const n of t)if(n.node&&Yn(n.node)){const t=Cs(n);(!e||Cs(e)<t)&&(e=n)}return e}function xs({x:t,y:e,width:n,height:r}){return{x:t,y:e,width:n,height:r}}const As=5*_.OY,Rs=_.OY;let Os,Is=0,Ns=1/0,Ls=0;const Ms=()=>Os?Is:window.performance.interactionCount||0,Ds=10,Ps=1*_.iW,Us=8;function Vs(t,e,n){if(!(ar("event")&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:()=>{},setViewEnd:et,stop:et};let r,o=1/0;const{getViewInteractionCount:s,stopViewInteractionCount:a}=function(t){"interactionCount"in performance||Os||(Os=new window.PerformanceObserver(P((t=>{t.getEntries().forEach((t=>{const e=t;e.interactionId&&(Ns=Math.min(Ns,e.interactionId),Ls=Math.max(Ls,e.interactionId),Is=(Ls-Ns)/7+1)}))}))),Os.observe({type:"event",buffered:!0,durationThreshold:0}));const e=t===i.INITIAL_LOAD?0:Ms();let n={stopped:!1};function r(){return Ms()-e}return{getViewInteractionCount:()=>n.stopped?n.interactionCount:r(),stopViewInteractionCount:()=>{n={stopped:!0,interactionCount:r()}}}}(n),c=function(t){const e=[];function n(){e.sort(((t,e)=>e.duration-t.duration)).splice(Ds)}return{process(t){const r=e.findIndex((e=>t.interactionId===e.interactionId)),o=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.length<Ds||t.duration>o.duration)&&(e.push(t),n())},estimateP98Interaction(){const n=Math.min(e.length-1,Math.floor(t()/50));return e[n]},isTracked:t=>e.some((e=>e.interactionId===t))}}(s),u=function(t){const e=new Map;function n(t,e){t.startTime=Math.min(e.startTime,t.startTime),t.processingStart=Math.min(e.processingStart,t.processingStart),t.processingEnd=Math.max(e.processingEnd,t.processingEnd)}return{process(t){if(void 0===t.interactionId||!t.processingStart||!t.processingEnd)return;const r=t.startTime+t.duration,o=e.get(t.interactionId);if(o)n(o,t);else{for(const[,o]of e.entries())if(Math.abs(r-o.referenceRenderTime)<=Us)return n(o,t),void e.set(t.interactionId,o);e.set(t.interactionId,{startTime:t.startTime,processingStart:t.processingStart,processingEnd:t.processingEnd,referenceRenderTime:r})}},pruneUntracked(){for(const[n]of e)t.isTracked(n)||e.delete(n)},computeSubParts(t,n){if(!t.processingStart||!t.processingEnd||void 0===t.interactionId)return;const r=e.get(t.interactionId);if(!r)return;const o=Math.max(r.startTime+n,r.processingStart),i=Math.min(r.processingEnd,o);
1return{inputDelay:(0,_.vk)(r.startTime,r.processingStart),processingDuration:(0,_.vk)(r.processingStart,i),presentationDelay:(0,_.vk)(i,o)}},stop(){e.clear()}}}(c),l=sr({type:"first-input",buffered:!0}).subscribe(f),d=sr({type:"event",durationThreshold:40,buffered:!0}).subscribe(f);function f(n){for(const t of n)t.interactionId&&t.startTime>=e&&t.startTime<=o&&(c.process(t),u.process(t));u.pruneUntracked();const i=c.estimateP98Interaction();i&&function(n){const o=(0,_.vk)(e,n.startTime);if(n.duration!==r?.duration||o!==r.startTime){let e=function(t){const e=Ui.get(t);return Ui.delete(t),e}(n.startTime);!e&&n.target&&Yn(n.target)&&(e=pr(n.target,t.actionNameAttribute)),r={duration:n.duration,startTime:o,targetSelector:e}}r.subParts=u.computeSubParts(n,$s(r.duration))}(i)}return{getInteractionToNextPaint:()=>r?{value:$s(r.duration),targetSelector:r.targetSelector,time:r.startTime,subParts:r.subParts}:s()?{value:0}:void 0,setViewEnd:t=>{o=t,a()},stop:()=>{d.unsubscribe(),l.unsubscribe(),u.stop()}}}function $s(t){return Math.min(t,Ps)}const Fs=_.OY;function zs(t,e,n=function(t=Fs){return new z((e=>{function n(){e.notify(function(){const t=Hr(),{height:e}=Wr();return{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(e+t),scrollTop:t}}())}const r=tt(n,t,{leading:!1,trailing:!0}),o=document.scrollingElement||document.documentElement,i=new ResizeObserver(P(r.throttled));o&&i.observe(o);const s=ee(window,te.SCROLL,r.throttled,{passive:!0});return()=>{r.cancel(),i.disconnect(),s.stop()}}))}()){let r=0,o=0,i=0;const s=n.subscribe((({scrollDepth:n,scrollTop:s,scrollHeight:a})=>{let c=!1;if(n>r&&(r=n,c=!0),a>o){o=a;const e=(0,_.$S)();i=(0,_.vk)(t.relative,e),c=!0}c&&e({maxDepth:Math.min(r,o),maxDepthScrollTop:s,maxScrollHeight:o,maxScrollHeightTime:i})}));return{stop:()=>s.unsubscribe()}}function Bs(t,e,n,r,o,s,a){const c={};let u=!1,l=!1;const{stop:d,setLoadEvent:f}=function(t,e,n,r,o,s,a){let c=o===i.INITIAL_LOAD,u=!0;const l=[],d=ws(s);function f(){if(!u&&!c&&l.length>0){const t=Math.max(...l);t<d.timeStamp-s.relative&&a(t)}}const{stop:p}=ai(t,e,n,r,(t=>{u&&(u=!1,t.hadActivity&&l.push((0,_.vk)(s.timeStamp,t.end)),f())}));return{stop:()=>{p(),d.stop()},setLoadEvent:t=>{c&&(c=!1,l.push(t),f())}}}(t,e,n,r,s,a,(t=>{u||(c.loadingTime=t,o())})),{stop:p}=zs(a,(t=>{c.scroll=t})),{stop:g}=ks(r,a.relative,(t=>{c.cumulativeLayoutShift=t,o()})),{stop:h,getInteractionToNextPaint:m,setViewEnd:v}=Vs(r,a.relative,s);return{stop:()=>{d(),g(),p()},stopINPTracking:h,setLoadEvent:f,setViewEnd:t=>{l=!0,v(t)},getCommonViewMetrics:()=>(c.interactionToNextPaint=m(),c),setLoadingTime:t=>{if(l)return;const e=(0,_.vk)(a.timeStamp,t??(0,_.nx)());u||d(),u=!0,c.loadingTime=e,o()}}}function Gs(t,e,n){var r,o;r=t.relative,o=t=>{e.firstContentfulPaint=t,e.largestContentfulPaint={value:t},n()},requestAnimationFrame((()=>{requestAnimationFrame((()=>{o((0,_.vk)(r,(0,_.$S)()))}))}))}function Hs(t,e,n){const r={...t};for(const[t,{required:o,type:i}]of Object.entries(e))"string"!==i||qs(r[t])||(r[t]=String(r[t])),o&&qs(r[t])&&I.warn(`The property ${t} of ${n} is required; context will not be sent to the intake.`);return r}function qs(t){return null==t||""===t}function js(t="",{propertiesConfig:e={}}={}){let n={};const r=new z,o={getContext:()=>(0,me.Go)(n),setContext:i=>{!function(t){const e="object"===(0,R.Pw)(t);return e||I.error("Unsupported context:",t),e}(i)?o.clearContext():n=Co(Hs(i,e,t)),r.notify()},setContextProperty:(o,i)=>{n=Co(Hs({...n,[o]:i},e,t)),r.notify()},removeContextProperty:o=>{delete n[o],Hs(n,e,t),r.notify()},clearContext:()=>{n={},r.notify()},changeObservable:r};return o}const Ws=3e3,Ks=5*_.iW,Zs=5*_.iW;function Js(t,e,n,r,o,s,a){const c=new Set;let u,l,d=f(i.INITIAL_LOAD,(0,_.Oc)(),a);function f(o,s,a){const u=function(t,e,n,r,o,s=(0,_.M8)(),a){const c=De(),u=new z,l={};let d,f=0;const p=E(window.location),g=js();let h=!0,m=a?.name;const v=a?.service||r.service,y=a?.version||r.version,b=a?.context,w=a?.handlingStack;b&&g.setContext(b);const S={id:c,name:m,startClocks:s,service:v,version:y,context:b,url:a?.url};t.notify(1,S),t.notify(2,S);const{throttled:C,cancel:k}=tt(B,Ws,{leading:!1}),{setLoadEvent:T,setViewEnd:x,stop:A,stopINPTracking:R,getCommonViewMetrics:O,setLoadingTime:N}=Bs(t,e,n,r,F,o,s),{stop:L,initialViewMetrics:M}=o===i.INITIAL_LOAD?Ss(r,s,T,F):{stop:et,initialViewMetrics:{}};o===i.BF_CACHE&&Gs(s,M,F);const{stop:D,eventCounts:P}=function(t,e,n){const{stop:r,eventCounts:o}=di({lifeCycle:t,isChildEvent:t=>t.view.id===e,onChange:n});return{stop:r,eventCounts:o}}(t,c,F),U=Y(B,Ks),V=t.subscribe(12,(t=>{t===oe.UNLOADING&&B()}));function $(){t.notify(3,{id:c,name:m,context:g.getContext(),startClocks:s,sessionIsActive:h})}function F(){$(),C()}function B(){k(),$(),f+=1;const e=void 0===d?(0,_.nx)():d.timeStamp;t.notify(4,{customTimings:l,documentVersion:f,id:c,name:m,service:v,version:y,context:g.getContext(),loadingType:o,location:p,handlingStack:w,startClocks:s,commonViewMetrics:O(),initialViewMetrics:M,duration:(0,_.vk)(s.timeStamp,e),isActive:void 0===d,sessionIsActive:h,eventCounts:P})}return B(),g.changeObservable.subscribe(F),{get name(){return m},service:v,version:y,contextManager:g,stopObservable:u,end(e={}){d||(d=e.endClocks??(0,_.M8)(),h=e.sessionIsActive??!0,t.notify(5,{endClocks:d}),t.notify(6,{endClocks:d}),Q(U),x(d.relative),A(),V.unsubscribe(),B(),J((()=>{this.stop()}),Zs))},stop(){L(),D(),R(),u.notify()},addTiming(t,e){if(d)return;const n=(0,_.A3)(e)?e:(0,_.vk)(s.timeStamp,e);l[function(t){const e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");e!==t&&I.warn(`Invalid timing name: ${t}, sanitized to: ${e}`);return e}(t)]=n,F()}
1,setLoadingTime:N,setViewName(t){m=t,B()}}}(t,e,n,r,o,s,a);return c.add(u),u.stopObservable.subscribe((()=>{c.delete(u)})),u}return t.subscribe(11,(()=>{d=f(i.SESSION_RENEWAL,void 0,{name:d.name,service:d.service,version:d.version,context:d.contextManager.getContext()})})),t.subscribe(10,(({endClocks:t})=>{d.end({sessionIsActive:!1,endClocks:t})})),s&&(l=function(t){return t.subscribe((({oldLocation:t,newLocation:e})=>{var n,r;r=e,((n=t).pathname!==r.pathname||!function(t){const e=t.substring(1);return""!==e&&!!document.getElementById(e)}(r.hash)&&Xs(r.hash)!==Xs(n.hash))&&(d.end(),d=f(i.ROUTE_CHANGE))}))}(o),u=function(t){const{stop:e}=ee(window,te.PAGE_SHOW,(e=>{e.persisted&&t(e)}),{capture:!0});return e}((t=>{d.end();const e=(0,_.FR)(t.timeStamp);d=f(i.BF_CACHE,e,void 0)}))),{addTiming:(t,e=(0,_.nx)())=>{d.addTiming(t,e)},setLoadingTime:t=>d.setLoadingTime(t),startView:(t,e)=>{d.end({endClocks:e}),d=f(i.ROUTE_CHANGE,e,t)},setViewContext:t=>{d.contextManager.setContext(t)},setViewContextProperty:(t,e)=>{d.contextManager.setContextProperty(t,e)},setViewName:t=>{d.setViewName(t)},getViewContext:()=>d.contextManager.getContext(),stop:()=>{l&&l.unsubscribe(),u&&u(),d.end(),c.forEach((t=>t.stop()))}}}function Xs(t){const e=t.indexOf("?");return e<0?t:t.slice(0,e)}function Ys(){try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch{return}}function Qs(t,e,n,o,i,s,a,c,u){return t.subscribe(4,(e=>t.notify(13,function(t,e,n){const o=n.getReplayStats(t.id),i=t.commonViewMetrics?.cumulativeLayoutShift?.devicePixelRatio,s={_dd:{document_version:t.documentVersion,replay_stats:o,cls:i?{device_pixel_ratio:i}:void 0,configuration:{start_session_replay_recording_manually:e.startSessionReplayRecordingManually,remote_configuration_id:e.remoteConfigurationId}},date:t.startClocks.timeStamp,type:r.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:t.commonViewMetrics.cumulativeLayoutShift?.value,cumulative_layout_shift_time:(0,_.Zj)(t.commonViewMetrics.cumulativeLayoutShift?.time),cumulative_layout_shift_target_selector:t.commonViewMetrics.cumulativeLayoutShift?.targetSelector,first_byte:(0,_.Zj)(t.initialViewMetrics.navigationTimings?.firstByte),dom_complete:(0,_.Zj)(t.initialViewMetrics.navigationTimings?.domComplete),dom_content_loaded:(0,_.Zj)(t.initialViewMetrics.navigationTimings?.domContentLoaded),dom_interactive:(0,_.Zj)(t.initialViewMetrics.navigationTimings?.domInteractive),error:{count:t.eventCounts.errorCount},first_contentful_paint:(0,_.Zj)(t.initialViewMetrics.firstContentfulPaint),interaction_to_next_paint:(0,_.Zj)(t.commonViewMetrics.interactionToNextPaint?.value),interaction_to_next_paint_time:(0,_.Zj)(t.commonViewMetrics.interactionToNextPaint?.time),interaction_to_next_paint_target_selector:t.commonViewMetrics.interactionToNextPaint?.targetSelector,is_active:t.isActive,name:t.name,largest_contentful_paint:(0,_.Zj)(t.initialViewMetrics.largestContentfulPaint?.value),largest_contentful_paint_target_selector:t.initialViewMetrics.largestContentfulPaint?.targetSelector,load_event:(0,_.Zj)(t.initialViewMetrics.navigationTimings?.loadEvent),loading_time:si((0,_.Zj)(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},performance:ta(t.commonViewMetrics,t.initialViewMetrics),resource:{count:t.eventCounts.resourceCount},time_spent:(0,_.Zj)(t.duration)},display:t.commonViewMetrics.scroll?{scroll:{max_depth:t.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:t.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:t.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:(0,_.Zj)(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,privacy:{replay_level:e.defaultPrivacyLevel},device:{locale:navigator.language,locales:navigator.languages,time_zone:Ys()}};C(t.customTimings)||(s.view.custom_timings=k(t.customTimings,_.Zj));return{rawRumEvent:s,startClocks:t.startClocks,duration:t.duration,domainContext:{location:t.location,handlingStack:t.handlingStack}}}(e,n,a)))),e.assemble.register((({startTime:t,eventType:e})=>{const n=c.findView(t);return n?{type:e,service:n.service,version:n.version,context:n.context,view:{id:n.id,name:n.name}}:ye.ug})),e.assembleTelemetry.register((({startTime:t})=>({view:{id:c.findView(t)?.id}}))),Js(t,o,i,n,s,!n.trackViewsManually,u)}function ta({cumulativeLayoutShift:t,interactionToNextPaint:e},{firstContentfulPaint:n,largestContentfulPaint:r}){return{cls:t&&{score:t.value,timestamp:(0,_.Zj)(t.time),target_selector:t.targetSelector,previous_rect:t.previousRect,current_rect:t.currentRect},fcp:n&&{timestamp:(0,_.Zj)(n)},inp:e&&{duration:(0,_.Zj)(e.value),timestamp:(0,_.Zj)(e.time),target_selector:e.targetSelector,sub_parts:e.subParts?{input_delay:(0,_.Zj)(e.subParts.inputDelay),processing_duration:(0,_.Zj)(e.subParts.processingDuration),presentation_delay:(0,_.Zj)(e.subParts.presentationDelay)}:void 0},lcp:r&&{timestamp:(0,_.Zj)(r.value),target_selector:r.targetSelector,resource_url:r.resourceUrl,sub_parts:r.subParts?{load_delay:(0,_.Zj)(r.subParts.loadDelay),load_time:(0,_.Zj)(r.subParts.loadTime),render_delay:(0,_.Zj)(r.subParts.renderDelay)}:void 0}}}function ea(t,e){if(t===e)return!0;
1if(null===t||"object"!=typeof t||null===e||"object"!=typeof e)return t===e;if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&t.every(((t,n)=>ea(t,e[n])));if(Array.isArray(t)||Array.isArray(e))return!1;const n=t,r=e,o=Object.keys(n),i=Object.keys(r);return o.length===i.length&&o.every((t=>i.includes(t)&&ea(n[t],r[t])))}function na(t,e,n){const r={},o=n?.replaceKeys??new Set,i=n?.appendKeys??new Set,s=n?.ignoreKeys??new Set;for(const n of Object.keys(t)){if(s.has(n))continue;const a=t[n],c=e[n];if(!o.has(n)&&(0,R.OE)(a)&&(0,R.OE)(c)){const t=na(a,c,{replaceKeys:ra(o,n),appendKeys:ra(i,n),ignoreKeys:ra(s,n)});t&&(r[n]=t)}else i.has(n)&&Array.isArray(a)&&Array.isArray(c)?a.length>c.length&&(r[n]=a.slice(c.length)):ea(a,c)||(r[n]=a)}for(const n of Object.keys(e))n in t||(r[n]=null);return Object.keys(r).length>0?r:void 0}function ra(t,e){const n=new Set;for(const r of t)r.startsWith(`${e}.`)&&n.add(r.slice(e.length+1));return n}let oa=function(t){return t[t.REPLAY=1]="REPLAY",t[t.RUM=2]="RUM",t[t.TELEMETRY=4]="TELEMETRY",t[t.PROFILING=6]="PROFILING",t}({});function ia(t,e){const n=na(t,e,{replaceKeys:new Set(["view.custom_timings","context","connectivity","usr","device","privacy"]),appendKeys:new Set(["_dd.page_states"]),ignoreKeys:new Set(["date","type","application","session","view.id","view.url","_dd.document_version","_dd.format_version"])});if(n)return(0,me.kg)(n,{type:r.VIEW_UPDATE,date:t.date,application:t.application,session:t.session,view:{id:t.view.id,url:t.view.url},_dd:{document_version:t._dd.document_version,format_version:t._dd.format_version}})}function sa(t,e,n,o,i){const s=[(0,he.ns)(t,"rum")],a=(0,he.np)(t,"rum");a&&s.push(a);const c=de({encoder:i(oa.RUM),endpoints:s,reportError:n});o.subscribe((()=>c.forceFlush("session_expire")));const{dispatch:u,stop:l}=function(t,e){let n,o,i=!1,s=0;const{unsubscribe:a}=t.flushObservable.subscribe((()=>{i=!1,o=n}));return{dispatch:a=>{if(a.type!==r.VIEW)return void t.add(a);if(!e)return void t.upsert(a,a.view.id);const c=a.view.id;if(!a.view.is_active)return c===n?.view.id&&(n=void 0,o=void 0,i=!1,s=0),void t.upsert(a,c);if(c!==n?.view.id)return s=0,t.upsert(a,c),n=a,void(i=!t.isEmpty);if(n=a,i)t.upsert(a,c);else{if(s+=1,s>=100)return s=0,t.upsert(a,c),void(i=!t.isEmpty);if(o){const e=ia(a,o);e&&(Tt("rum",e),t.upsert(e,c))}}},stop:a}}(c,t.betaEnableViewUpdates);e.subscribe(14,u);const d=c.stop.bind(c);return c.stop=()=>{l(),d()},c}const aa=Tn;function ca(){let t=E(ua());return new z((e=>{const{stop:n}=function(t){const{stop:e}=Qr(la("pushState"),"pushState",(({onPostCall:e})=>{e(t)})),{stop:n}=Qr(la("replaceState"),"replaceState",(({onPostCall:e})=>{e(t)})),{stop:r}=ee(window,te.POP_STATE,t);return{stop:()=>{e(),n(),r()}}}(i),{stop:r}=(o=i,ee(window,te.HASH_CHANGE,o));var o;function i(){if(t.href===ua().href)return;const n=E(ua());e.notify({newLocation:n,oldLocation:t}),t=n}return()=>{n(),r()}}))}function ua(){return $.J.location}function la(t){return Object.prototype.hasOwnProperty.call(history,t)?history:History.prototype}const da=Tn;const fa=10*_.OY;let pa,ga;function ha(){0!==pa.batchCount&&(Ie(Se.CUSTOMER_DATA_METRIC_NAME,pa),va())}function ma(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function va(){pa={batchCount:0,batchBytesCount:{min:1/0,max:0,sum:0},batchMessagesCount:{min:1/0,max:0,sum:0}}}const ya=4e3,ba=Tn;function _a(t,e=500){const n=Mn({expireDelay:ba,maxEntries:ya});let o;ar("visibility-state")&&performance.getEntriesByType("visibility-state").forEach((t=>{s("hidden"===t.name?"hidden":"active",t.startTime)})),s(Sa(),(0,_.$S)());const{stop:i}=ne(window,[te.PAGE_SHOW,te.FOCUS,te.BLUR,te.VISIBILITY_CHANGE,te.RESUME,te.FREEZE,te.PAGE_HIDE],(t=>{s(function(t){if(t.type===te.FREEZE)return"frozen";if(t.type===te.PAGE_HIDE)return t.persisted?"frozen":"terminated";return Sa()}(t),t.timeStamp)}),{capture:!0});function s(t,e=(0,_.$S)()){t!==o&&(o=t,n.closeActive(e),n.add({state:o,startTime:e},e))}function a(t,e,r){return n.findAll(e,r).some((e=>e.state===t))}return t.register((({startTime:t,duration:o=0,eventType:i})=>i===r.VIEW?{type:i,_dd:{page_states:wa(n.findAll(t,o),t,e)}}:i===r.ACTION||i===r.ERROR?{type:i,view:{in_foreground:a("active",t,0)}}:ye.$O)),{wasInPageStateDuringPeriod:a,addPageState:s,stop:()=>{i(),n.stop()}}}function wa(t,e,n){if(0!==t.length)return t.slice(-n).reverse().map((({state:t,startTime:n})=>({state:t,start:(0,_.Zj)((0,_.vk)(e,n))})))}function Sa(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function Ea(t,e){const n=pi(t);function r(n){(function(t){return!e.wasInPageStateDuringPeriod("frozen",t.startClocks.relative,t.duration)})(n)&&t.notify(13,Ca(n))}return{addOperationStepVital:function(e,n,r,o){const{operationKey:i,context:s,description:a,handlingStack:u}=r||{}
1,l={name:e,type:c.OPERATION_STEP,operationKey:i,failureReason:o,stepType:n,startClocks:(0,_.M8)(),context:Co(s),description:a,handlingStack:u};t.notify(13,Ca(l))},addDurationVital:r,startDurationVital:function(e,r={},o=(0,_.M8)()){const{id:i}=n.start(r.vitalKey??e,o,{name:e,...r});t.notify(17,{id:i,name:e,startClocks:o,...r})},stopDurationVital:function(t,e={},o=(0,_.M8)()){const i=n.stop(e.vitalKey??t,o,e);i&&r({type:c.DURATION,...i})}}}function Ca(t){const{startClocks:e,type:n,name:o,description:i,context:s,handlingStack:a}=t,u={id:(t.type===c.DURATION?t.id:void 0)??De(),type:n,name:o,description:i,...n===c.DURATION?{duration:(0,_.Zj)(t.duration)}:{step_type:t.stepType,operation_key:t.operationKey,failure_reason:t.failureReason}};return{rawRumEvent:{date:e.timeStamp,vital:u,type:r.VITAL,context:s},startClocks:e,duration:n===c.DURATION?t.duration:void 0,domainContext:a?{handlingStack:a}:{}}}const ka="dd_cookie_test_";async function Ta(t,e){const n=`${ka}${De()}`,r="test",o=t(n,e);try{return await o.getAllAndSet((()=>({value:r,expireDelay:_.iW}))),(await o.getAll()).includes(r)}catch(t){return I.error(t),!1}finally{try{await o.delete()}catch{}}}function xa(t,e){const n=$.J.cookieStore,r=new z((()=>ee(n,"change",(e=>{(e.changed.some((e=>e.name===t))||e.deleted.some((e=>e.name===t)))&&r.notify()})).stop));return{getAll:async()=>(await n.getAll(t)).map((t=>t.value)),delete:()=>n.delete({name:t,domain:e.domain,path:"/",partitioned:e.partitioned}),async getAllAndSet(r){const o=await n.getAll(t),{value:i,expireDelay:s}=r(o.map((t=>t.value)));try{await n.set({name:t,value:i,expires:(0,_.x3)()+s,path:"/",sameSite:e.crossSite?"none":"strict",domain:e.domain,secure:e.secure,partitioned:e.partitioned})}catch(n){if(!t.startsWith("dd_cookie_test_")){const r=Be(t);Re("Failed to set cookie using Cookie Store API",{"error.message":n.message,newValue:i,cookieOptions:{...e},cookies:o.map((t=>({...t}))),cookieCount:o.length,documentCookies:r})}}},observable:r}}const Aa=_.OY;function Ra(t,e){let n=Be(t);const r=new z((()=>{const e=Y((()=>{o(Be(t))}),Aa);return()=>{Q(e)}}));function o(t){String(t)!==String(n)&&(n=t,r.notify())}return{getAll:()=>Promise.resolve(Be(t)),async getAllAndSet(n){const{value:r,expireDelay:i}=n(Be(t));Fe(t,r,i,e),await Promise.resolve(),o([r])},async delete(){je(t,e),await Promise.resolve(),o([])},observable:r}}function Oa(){const t=$.J.cookieStore;return Boolean(t&&re(t,"change"))}function Ia(t){const e=Oa()?(t,e)=>ee($.J.cookieStore,te.CHANGE,(n=>{const r=n.changed.find((e=>e.name===t))||n.deleted.find((e=>e.name===t));r&&e(r.value)})).stop:La;return new z((n=>e(t,(t=>n.notify(t)))))}const Na=_.OY;function La(t,e){let n=ze(t);const r=Y((()=>{const r=ze(t);r!==n&&(n=r,e(r))}),Na);return()=>{Q(r)}}const Ma="datadog-ci-visibility-test-execution-id";function Da(t,e=Ia(Ma)){let n=qe("datadog-ci-visibility-test-execution-id")||function(){const t=window.Cypress;if(!t)return;try{return t.env("traceId")}catch{return void I.warn("Failed to read Cypress test execution id via Cypress.env(). Upgrade dd-trace-js to >= 5.88.0 to keep RUM ↔ test correlation working.")}}();const r=e.subscribe((t=>{n=t}));return t.register((({eventType:t})=>"string"!=typeof n?ye.$O:{type:t,session:{type:"ci_test"},ci_test:{test_execution_id:n}})),{stop:()=>{r.unsubscribe()}}}function Pa(t,e){const n=De(),i=(0,_.Zj)(t.duration),s={date:e.timeStamp,type:r.LONG_TASK,_dd:{discarded:!1}};if("longtask"===t.entryType)return{...s,long_task:{id:n,entry_type:o.LONG_TASK,duration:i}};const a=No(t.scripts.map((t=>t.sourceURL)).filter((t=>!!t)));return{...s,_dd:{discarded:!1,debug_ids:a},long_task:{id:n,entry_type:o.LONG_ANIMATION_FRAME,duration:i,blocking_duration:(0,_.Zj)(t.blockingDuration),first_ui_event_timestamp:(0,_.Zj)(t.firstUIEventTimestamp),render_start:(0,_.Zj)(t.renderStart),style_and_layout_start:(0,_.Zj)(t.styleAndLayoutStart),start_time:(0,_.Zj)(t.startTime),scripts:t.scripts.map((t=>({duration:(0,_.Zj)(t.duration),pause_duration:(0,_.Zj)(t.pauseDuration),forced_style_and_layout_duration:(0,_.Zj)(t.forcedStyleAndLayoutDuration),start_time:(0,_.Zj)(t.startTime),execution_start:(0,_.Zj)(t.executionStart),source_url:t.sourceURL,source_function_name:t.sourceFunctionName,source_char_position:t.sourceCharPosition,invoker:t.invoker,invoker_type:t.invokerType,window_attribution:t.windowAttribution})))}}}const Ua="datadog-synthetics-",Va=`${Ua}public-id`,$a=`${Ua}result-id`,Fa=`${Ua}injects-rum`,za=`${Ua}rum-context`;function Ba(){return!$.W&&Boolean($.J._DATADOG_SYNTHETICS_INJECTS_RUM||qe(Fa))}function Ga(){const t=function(){const t=$.J._DATADOG_SYNTHETICS_RUM_CONTEXT;if(t)return t;const e=qe(za);return e?S(decodeURIComponent(e)):{test_id:window._DATADOG_SYNTHETICS_PUBLIC_ID||qe(Va),result_id:window._DATADOG_SYNTHETICS_RESULT_ID||qe($a)}}();return"object"==typeof(e=t)&&null!==e&&"string"==typeof e.test_id&&"string"==typeof e.result_id?t:void 0;var e}function Ha(t){t.register((({eventType:t})=>Boolean(Ga())?{type:t,session:{type:"synthetics"},synthetics:{...Ga(),injected:Ba()}}:ye.$O))}function qa(t,e,n){const r=(0,me.Go)(t),o=n(r);return Yt(e).forEach((([e,n])=>ja(t,r,e.split(/\.|(?=\[\])/),n))),o}function ja(t,e,n,r){const[o,...i]=n;if("[]"!==o){if(Wa(t)&&Wa(e))return i.length>0?ja(t[o],e[o],i,r):void function(t,e,n,r){if(t[e]===n)return;const o=(0,R.Pw)(n);o===r?t[e]=Co(n):"object"!==r||"undefined"!==o&&"null"!==o?"array"!==r||"undefined"!==o&&"null"!==o||(t[e]=[]):t[e]={}}(t,o,e[o],r)}else Array.isArray(t)&&Array.isArray(e)&&t.forEach(((t,n)=>ja(t,e[n],i,r)))}function Wa(t){return"object"===(0,R.Pw)(t)}const Ka=3e3;function Za(t,e,n=Ka){let r=0,o=!1;return{isLimitReached(){if(0===r&&J((()=>{r=0}),_.iW),r+=1,r<=n||o)return o=!1,!1;if(r===n+1){o=!0;try{e(`Reached max number of ${t}s by minute: ${n}`)}finally{o=!1}}return!0}}}const Ja={"view.name":"string","view.url":"string","view.referrer":"string",context:"object",service:"string",version:"string"},Xa={[r.VIEW]:{...Ja,"view.performance.lcp.resource_url":"string"},[r.ERROR]:{...Ja,"error.message":"string","error.stack":"string","error.handling_stack":"string","error.resource.url":"string","error.fingerprint":"string","_dd.debug_ids":"array"},[r.RESOURCE]:{...Ja,"resource.url":"string","resource.graphql.variables":"string","resource.request.headers":"object","resource.response.headers":"object","resource.websocket.close_reason":"string","resource.websocket.protocol":"string"},[r.ACTION]:{...Ja,"action.target.name":"string"},[r.LONG_TASK]:{...Ja,"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string","_dd.debug_ids":"array"},[r.VITAL]:Ja};function Ya(t,e,n,o,i){const s={[r.ERROR]:Za(r.ERROR,o,i),[r.ACTION]:Za(r.ACTION,o,i),[r.VITAL]:Za(r.VITAL,o,i)};e.subscribe(13,(({startClocks:o,duration:i,rawRumEvent:a,domainContext:c})=>{const u=n.trigger({eventType:a.type,rawRumEvent:a,domainContext:c,startTime:o.relative,duration:i});if(u===ye.ug)return;const l=(0,me.kg)(u,a,{ddtags:Ct(t).join(",")});(function(t,e,n,o){if(e){const o=qa(t,Xa[t.type],(t=>e(t,n)));if(!1===o&&t.type!==r.VIEW)return!1;!1===o&&I.warn("Can't dismiss view events using beforeSend!")}return!o[t.type]?.isLimitReached()}
1)(l,t.beforeSend,c,s)&&(C(l.context)&&delete l.context,e.notify(14,l))}))}const Qa=[r.ACTION,r.ERROR,r.LONG_TASK,r.RESOURCE,r.VITAL];function tc(t){t.register((({domainContext:t,rawRumEvent:e})=>{const n=function(t,e){if("long_task"===e.type&&"long-animation-frame"===e.long_task.entry_type)return e.long_task.scripts[0]?.source_url;let n;"handlingStack"in t&&(n=t.handlingStack);"error"===e.type&&e.error.stack&&(n=e.error.stack);return rt({stack:n}).stack[0]?.url}(t,e);if(!n)return ye.$O;const r=function(t){return Io(),Ao.get(t)}(n);return r?{type:e.type,service:r.service,version:r.version}:ye.$O}))}const ec="_dd_tab_id";let nc;function rc(t){const e=function(){nc||(nc=function(){try{const t=sessionStorage.getItem(ec);if(t)return t;const e=De();return sessionStorage.setItem(ec,e),e}catch{return}}()??De());return nc}();t.register((()=>({tab:{id:e}})))}const oc="_dd_c",ic=[];function sc(t,e,n){if("undefined"==typeof window||"undefined"==typeof localStorage)return;const r=function(t,e){return`${oc}_${t}_${e}`}(e,n);ic.push(ee(window,"storage",(({key:e})=>{r===e&&t.setContext(i())}))),t.changeObservable.subscribe((function(){localStorage.setItem(r,JSON.stringify(t.getContext()))}));const o=(0,me.kg)(i(),t.getContext());function i(){const t=localStorage.getItem(r);return t?S(t)??{}:{}}C(o)||t.setContext(o)}function ac(){return js("global context")}function cc(){return js("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}function uc(){return js("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}function lc(t,e,n,o,i,s,a,c,u,l){const d=[],f=new kn;f.subscribe(14,(t=>Tt("rum",t))),e.expireObservable.subscribe((()=>f.notify(10,{endClocks:(0,_.M8)()}))),e.renewObservable.subscribe((()=>f.notify(11)));const p=t=>{f.notify(15,{error:{message:t,source:yo.AGENT,startClocks:(0,_.M8)()}}),Re("Error reported to customer",{"error.message":t})};if(Ot()){!function(t){const e=Rt();t.subscribe(14,(t=>{e.send("rum",t)}))}(f);const t=ie().subscribe((t=>{f.notify(12,t.reason)}));d.push((()=>t.unsubscribe()))}else{const n=sa(t,f,p,e.expireObservable,s),r=n.prepareUrgentFlushObservable.subscribe((t=>{f.notify(12,t)}));d.push((()=>r.unsubscribe())),d.push((()=>n.stop())),function(t,e,n){t.metricsEnabled&&(va(),ga=!1,e.subscribe(14,(()=>{ga=!0})),n.subscribe((({bytesCount:t,messagesCount:e})=>{ga&&(ga=!1,pa.batchCount+=1,ma(pa.batchBytesCount,t),ma(pa.batchMessagesCount,e))})),Y(ha,fa))}(c,f,n.flushObservable)}const{stop:g,...h}=function(t,e,n,o,i,s,a,c,u){const l=[],d=function(){const t=En();return new z((e=>{const n=new t(P((t=>e.notify(t))));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>n.disconnect()}))}(),f=ca(),{observable:p,stop:g}=function(){const t=new z,{stop:e}=Qr(window,"open",(()=>t.notify()));return{observable:t,stop:e}}();l.push(g);const{assemble:h}=e;!function(t,e,n){t.register((({eventType:t})=>{const r=e.source;return{type:t,_dd:{format_version:2,drift:(0,_._O)(),configuration:{session_sample_rate:an(e.sessionSampleRate,3),session_replay_sample_rate:an(e.sessionReplaySampleRate,3),profiling_sample_rate:an(e.profilingSampleRate,3),trace_sample_rate:an(e.traceSampleRate,3)},browser_sdk_version:Ot()?"7.12.0":void 0,sdk_name:n},application:{id:e.applicationId},date:(0,_.nx)(),source:r}}))}(h,n,c);const m=_a(h);l.push((()=>m.stop()));const v=function(t){const e=Mn({expireDelay:Dn});return t.subscribe(1,(t=>{e.add(function(t){return{service:t.service,version:t.version,context:t.context,id:t.id,name:t.name,startClocks:t.startClocks}}(t),t.startClocks.relative)})),t.subscribe(6,(({endClocks:t})=>{e.closeActive(t.relative)})),t.subscribe(3,(t=>{const n=e.find(t.startClocks.relative);n&&(t.name&&(n.name=t.name),t.context&&(n.context=t.context),n.sessionIsActive=t.sessionIsActive)})),t.subscribe(11,(()=>{e.reset()})),{findView:(t,n)=>e.find(t,n),stop:()=>{e.stop()}}}(t);l.push((()=>v.stop()));const y=function(t,e,n){const r=Mn({expireDelay:aa});let o;t.subscribe(1,(({startClocks:t,url:e})=>{const n=$.J.location.href,i=void 0!==e?(0,$e.c$)(e,n).href:n;r.add(s({url:i,referrer:o||document.referrer}),t.relative),o=i})),t.subscribe(6,(({endClocks:t})=>{r.closeActive(t.relative)}));const i=n.subscribe((({newLocation:t})=>{const e=r.find();if(e){const n=(0,_.$S)();r.closeActive(n),r.add(s({url:t.href,referrer:e.referrer}),n)}}));function s({url:t,referrer:e}){return{url:t,referrer:e}}return e.register((({startTime:t,eventType:e})=>{const n=r.find(t);return n?{type:e,view:{url:n.url,referrer:n.referrer}}:ye.ug})),{findUrl:t=>r.find(t),stop:()=>{i.unsubscribe(),r.stop()}}}(t,h,f);l.push((()=>y.stop()));const b=function(t,e,n){const o=Mn({expireDelay:da});return t.subscribe(1,(({startClocks:t})=>{o.add({},t.relative)})),t.subscribe(6,(({endClocks:t})=>{o.closeActive(t.relative)})),e.register((({startTime:t,eventType:e})=>
1{if(!n.trackFeatureFlagsForEvents.concat([r.VIEW,r.ERROR]).includes(e))return ye.$O;const i=o.find(t);return!i||C(i)?ye.$O:{type:e,feature_flags:i}})),{addFeatureFlagEvaluation:(t,e)=>{const n=o.find();n&&(n[t]=e)}}}(t,h,n);(function(t,e,n,o,i){t.register((({eventType:t,startTime:s})=>{const a=n.findTrackedSession(s),c=i.findView(s);if(!a||!c)return ye.ug;let u,l,d;return t===r.VIEW?(u=!!o.getReplayStats(c.id)||void 0,l=1===Yr(a,e),d=!!c.sessionIsActive&&void 0):u=!!o.isRecording()||void 0,{type:t,session:{id:a.id,type:"user",has_replay:u,sampled_for_replay:l,is_active:d}}}))})(h,n,o,i,v),function(t){t.register((({eventType:t})=>({type:t,connectivity:xt()})))}(h),rc(h);const w=function(t,e,n,r){const o=ac();return e.storeContextsAcrossPages&&sc(o,n,2),t.register((()=>{const t=o.getContext();return r?{context:t}:t})),o}(h,n,"rum",!0),S=function(t,e,n,r){const o=cc();return e.storeContextsAcrossPages&&sc(o,r,1),t.register((({eventType:t,startTime:r})=>{const i=o.getContext(),s=n.findTrackedSession(r);return s?.anonymousId&&!i.anonymous_id&&e.trackAnonymousUser&&(i.anonymous_id=s.anonymousId),C(i)?ye.$O:{type:t,usr:i}})),o}(h,n,o,"rum"),E=function(t,e,n){const r=uc();return e.storeContextsAcrossPages&&sc(r,n,4),t.register((()=>{const t=r.getContext();return C(t)||!t.id?ye.$O:{account:t}})),r}(h,n,"rum"),k=Gi(t,e,d,p,n);l.push(k.stop);const T=function(t){return{addEvent:(e,n,r,o)=>{Qa.includes(n.type)&&t.notify(13,{startClocks:(0,_.FR)(e),rawRumEvent:n,domainContext:r,duration:o})}}}(t),x=function(t){let e;const n=requestAnimationFrame(P((()=>{e=Wr()}))),r=jr().subscribe((t=>{e=t})).unsubscribe;return t.register((({eventType:t})=>({type:t,display:e?{viewport:e}:void 0}))),{stop:()=>{r(),n&&cancelAnimationFrame(n)}}}(h);l.push(x.stop);const A=Da(h);l.push(A.stop),Ha(h),Ya(n,t,h,u);const{addTiming:R,setLoadingTime:O,startView:I,setViewName:N,setViewContext:L,setViewContextProperty:M,getViewContext:D,stop:U}=Qs(t,e,n,d,p,f,i,v,s);tc(h),l.push(U);const V=as(t,n);l.push(V.stop);const{stop:F}=function(t,e){const n=sr({type:ar("long-animation-frame")?"long-animation-frame":"longtask",buffered:!0}).subscribe((n=>{for(const r of n){if(!e.trackLongTasks)break;const n=(0,_.FR)(r.startTime),o=Pa(r,n);t.notify(13,{rawRumEvent:o,startClocks:n,duration:r.duration,domainContext:{performanceEntry:r}})}}));return{stop:()=>n.unsubscribe()}}(t,n);l.push(F);const{addError:B}=Zi(t,a);Yo(t,n,o,S,E,a);const G=Ea(t,m);if(n.trackResources&&(n.betaTrackWebSockets||W(H.TRACK_WEBSOCKETS))){const e=oi(t,v,G.addDurationVital);l.push(e.stop)}const q=function(t,e,n,r,o){return{get:i=>{const s=n.findView(i),a=o.findUrl(i),c=e.findTrackedSession(i);if(c&&s&&a){const e=r.findActionId(i);return{application_id:t,session_id:c.id,user_action:e?{id:e}:void 0,view:{id:s.id,name:s.name,referrer:a.referrer,url:a.url}}}}}}(n.applicationId,o,v,k.actionContexts,y);return{addAction:k.addAction,startAction:k.startAction,stopAction:k.stopAction,startResource:V.startResource,stopResource:V.stopResource,addEvent:T.addEvent,addError:B,addTiming:R,setLoadingTime:O,addFeatureFlagEvaluation:b.addFeatureFlagEvaluation,startView:I,setViewContext:L,setViewContextProperty:M,getViewContext:D,setViewName:N,viewHistory:v,sessionManager:o,stopSession:()=>o.expire(),getInternalContext:q.get,startDurationVital:G.startDurationVital,stopDurationVital:G.stopDurationVital,addDurationVital:G.addDurationVital,addOperationStepVital:G.addOperationStepVital,globalContext:w,userContext:S,accountContext:E,stop:()=>l.forEach((t=>t()))}}(f,u,t,e,n,i,a,l,p);return d.push(g),a.unbuffer(),d.push((()=>o.stop())),{...h,lifeCycle:f,sessionManager:e,stopSession:()=>e.expire(),telemetry:c,stop:()=>{d.forEach((t=>t()))},hooks:u}}function dc(t){return!!t&&"function"==typeof t.then}function fc(t,e,n,r){return P(((...o)=>(r&&Ne({feature:r}),t()[e][n](...o))))}function pc(t,e,n){t.changeObservable.subscribe((()=>{const r=t.getContext();n.notify((t=>t[e].setContext(r)))}))}const gc={userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"},hc={getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"};function mc(t,e){e.silentMultipleInit||I.error(`${t} is already initialized.`)}const vc=["chrome-extension://","moz-extension://"];
1function yc(t){return vc.some((e=>t.includes(e)))}const bc="Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided.",_c="SDK initialized on a non-allowed domain.";function wc(t,e){const n=$.J.location,r=n?n.origin:"",o=t.allowedTrackingOrigins;if(!o)return!function(t,e=""){return!yc(t)&&yc(e.split("\n").filter((t=>{const e=t.trim();return e.length&&/^at\s+|@/.test(e)}))[1]||"")}(r,e)||(I.error(bc),!1);const i=so(o,r);return i||I.error(_c),i}const Sc=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function Ec(t){return t.created?Number(t.created):void 0}function Cc(t){const e=t.expire&&Number(t.expire),n=Ec(t);if(e&&n)return Math.min(e,n+Tn)}function kc(t,e){const n={isExpired:"1"};return e.trackAnonymousUser&&t?.anonymousId&&(n.anonymousId=t?.anonymousId),n}function Tc(t){return C(t)}function xc(t){return void 0!==t.isExpired||!function(t){const e=Cc(t);return!!e&&(0,_.x3)()<e}(t)}function Ac(t){t.expire=String((0,_.x3)()+xn)}function Rc(t){return Yt(t).map((([t,e])=>"anonymousId"===t?`aid=${e}`:`${t}=${e}`)).join("&")}function Oc(t){const e={};return function(t){return!!t&&(-1!==t.indexOf("&")||Sc.test(t))}(t)&&t.split("&").forEach((t=>{const n=Sc.exec(t);if(null!==n){const[,t,r]=n;"aid"===t?e.anonymousId=r:e[t]=r}})),e}
1function Ic(t,e){return Tc(t)?(e.trackAnonymousUser&&(t.anonymousId=De()),kc(t,e)):t}function Nc(t,e){if(Tc(t))return t;let n=t;return xc(t)&&(n=kc(t,e)),n.id||(n.id=De(),n.created=String((0,_.x3)())),e.trackAnonymousUser&&!n.anonymousId&&(n.anonymousId=De()),delete n.isExpired,Ac(n),n}const Lc="_dd_s_v2",Mc="_dd_s";async function Dc(t){const e=function(t){const e={};if(e.secure=t.useSecureSessionCookie||t.usePartitionedCrossSiteSessionCookie,e.crossSite=t.usePartitionedCrossSiteSessionCookie,e.partitioned=t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains){const t=We();if(!t)return;e.domain=t}return e}(t);if(e)return Oa()&&await Ta(xa,e)?{type:Rn.COOKIE,cookieOptions:e,cookieApi:1}:await Ta(Ra,e)?{type:Rn.COOKIE,cookieOptions:e,cookieApi:0}:void 0}let Pc;function Uc(t,e){const{cookieOptions:n,cookieApi:r}=t,o=new z,i=!!e.trackAnonymousUser,s=zc(n),a=Vc(r,n);let c=!0;function u(t){return a.getAllAndSet((e=>{let r=$c(e,s);return c&&C(r)&&(r=$c(Be(Mc),s)),c=!1,{value:Fc(t(r),n),expireDelay:i?An:Tn}}))}return a.observable.subscribe((()=>{a.getAll().then((t=>{o.notify($c(t,s))})).catch((t=>V(new Error(`Error while reading session cookies on change: ${t}`))))})),{async setSessionState(t,e){"undefined"!=typeof navigator&&navigator.locks?await navigator.locks.request(Lc,(()=>u(t))).catch((t=>{if(!function(t){return t instanceof Error&&("AbortError"===t.name||t.message.includes("no longer runnable"))}(t))throw t})):(Pc=(Pc??Promise.resolve()).then((()=>u(t))),await Pc)},sessionObservable:o}}function Vc(t,e){return 1===t?xa(Lc,e):Ra(Lc,e)}function $c(t,e){let n;for(const r of t.slice().reverse())if(n=Oc(r),n.c===e)break;return delete n?.c,n??{}}function Fc(t,e){return Rc(C(t)?t:{...t,c:zc(e)})}function zc(t){let e=0;return e|=0,e|=(t.domain?t.domain.split(".").length-1:0)<<1,e|=t.crossSite?1:0,e.toString(16)}const Bc="_dd_test_";const Gc="_DD_SESSION";async function Hc(t){const e=void 0!==(n=t.sessionPersistence)?n:$.W?[Rn.MEMORY]:[Rn.COOKIE];var n;for(const n of e){const e=await qc(n,t);if(void 0!==e)return e}}function qc(t,e){switch(t){case Rn.COOKIE:return Dc(e);case Rn.LOCAL_STORAGE:return function(){try{const t=De(),e=`${Bc}${t}`;localStorage.setItem(e,t);const n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:Rn.LOCAL_STORAGE}:void 0}catch{return}}();case Rn.MEMORY:return{type:Rn.MEMORY};default:return void I.error(`Invalid session persistence '${String(t)}'`)}}function jc(t,e){switch(t.type){case Rn.COOKIE:return Uc(t,e);case Rn.LOCAL_STORAGE:return function(){const t=new z((t=>ee(window,"storage",(e=>{"_dd_s_v2"===e.key&&e.storageArea===localStorage&&t.notify(Oc(e.newValue))})).stop));let e=!0;return{async setSessionState(n,r){let o=Oc(localStorage.getItem(Lc));e&&Tc(o)&&(o=Oc(localStorage.getItem(Mc))),e=!1;const i=n(o);localStorage.setItem(Lc,Rc(i)),await Promise.resolve(),t.notify(i)},sessionObservable:t}}();case Rn.MEMORY:return function(){const t=$.J;t._DD_SESSION||(t[Gc]={});const e=t[Gc],n=new z,r=e.onChange;return e.onChange=t=>{r?.(t),n.notify(t)},{async setSessionState(t,n){const r=E(t(e.state??{}));e.state=r,await Promise.resolve(),e.onChange?.(r)},sessionObservable:n}}()}}const Wc=_.iW,Kc=1e3,Zc=12*_.MA;let Jc=[];async function Xc(t,e){const n=(0,_.$S)(),r=new z,o=new z,i=await Hc(t);if(!i)return void I.warn("No storage available for session. We will not send any data.");const s=jc(i,t),a=Mn({maxEntries:Kc});Jc.push((()=>a.stop()));let c=!1;const{throttled:u,cancel:l}=tt((()=>{c=!1,s.setSessionState((e=>Nc(e,t)),"expandOrRenewOnActivity").catch(V)}),_.OY);let d;Jc.push(l),Jc.push((()=>X(d)));let f=!1;Jc.push((()=>{f=!0}));let p=await g().catch((t=>V(new Error(`Error while resolving initial session state: ${t}`))));if(p&&!f){for(;!e.isGranted();){if(v(),await new Promise((t=>e.onGrantedOnce(t))),f)return;if(p=await g().catch(V),!p||f)return}return a.add(y(p),(0,_.Oc)().relative),h(p),function(){const t=s.sessionObservable.subscribe((t=>{h(t),m(t)}));Jc.push((()=>t.unsubscribe()))}(),e.observable.subscribe((()=>{e.isGranted()?(c=!1,s.setSessionState((e=>Nc(e,t)),"expandOrRenewOnConsent").catch(V)):v()})),$.W||(function(t){const{stop:e}=ne(window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0});Jc.push(e)}((()=>{e.isGranted()&&u()})),function(t){const e=()=>{"visible"===document.visibilityState&&t()},{stop:n}=ee(document,"visibilitychange",e);Jc.push(n);const r=Y(e,Wc);Jc.push((()=>{Q(r)}))}((()=>{c||s.setSessionState((t=>function(t){return xc(t)||Tc(t)||!t.id||Ac(t),t}(t)),"expandOnVisibility").catch(V)})),function(t){const{stop:e}=ee(window,"resume",t,{capture:!0});Jc.push(e)}((()=>{s.setSessionState((e=>Ic(e,t)),"initializeOnResume").catch(V)}))),Ie("Session manager init metrics",{metrics:{duration:(0,_.vk)(n,(0,_.$S)())}}),{findSession:(t,e)=>a.find(t,e),findTrackedSession:(e,{returnInactive:n=!1,maxAge:r=Zc}={})=>{const o=a.find(e,{returnInactive:n});if(o&&"invalid"!==o.id&&Jr(o.id,t.sessionSampleRate)&&!((0,_.x3)()-o.createdAt>r))return o},renewObservable:r,expireObservable:o,expire:v,updateSessionState:t=>{s.setSessionState((e=>({...e,...t})),"updateState").catch(V)}}}async function g(){let e={};return await s.setSessionState((n=>{const r=Ic(n,t);return e=Nc(r,t),e}),"initialize"),e}function h(n){X(d);const r=Cc(n);if(r){const n=r-(0,_.x3)();d=J((()=>{s.setSessionState((n=>xc(n)?(e.isGranted()||delete n.anonymousId,kc(n,t)):n),"expireOnTimeout").catch(V)}),n)}}
1function m(t){const e=a.find(),n=void 0!==e?.id,i=void 0!==t.id,s=n&&i&&e.id!==t.id;if(!n||i&&!s||(c=!0,o.notify(),a.closeActive((0,_.$S)())),!i||n&&!s)n&&i&&!s&&(e.isReplayForced=!!t.forcedReplay);else{if(c)return;a.add(y(t),(0,_.$S)()),r.notify()}}function v(){l();const n=kc(a.find(),t);e.isGranted()||delete n.anonymousId,m(n),s.setSessionState((n=>(e.isGranted()||delete n.anonymousId,kc(n,t))),"expire").catch(V)}function y(t){const e=Ec(t)??(0,_.nx)();return t.id?{id:t.id,isReplayForced:!!t.forcedReplay,anonymousId:t.anonymousId,createdAt:e}:{id:"invalid",isReplayForced:!1,anonymousId:void 0,createdAt:e}}}function Yc({ignoreInitIfSyntheticsWillInjectRum:t=!0,startDeflateWorker:e,sdkName:n},r,o){const i=new G(500,(t=>{Re("preStartRum buffer data lost",{count:t})})),s=ac();pc(s,gc.globalContext,i);const a=cc();pc(a,gc.userContext,i);const c=uc();let u,l,d,f,p,g;pc(c,gc.accountContext,i);const h={assemble:(0,ye.ab)(),assembleTelemetry:(0,ye.ab)()},m=r.observable.subscribe(b),v={};let y=!1;function b(){if(y||!d||!f||!p||!g)return;let t;if(m.unsubscribe(),f.trackViewsManually){if(!u)return;t=u.options}const e=f.trackViewsManually?u?.callback:void 0,n=o(f,p,l,t,g,h);y=!0,i.subscribe((t=>{t!==e&&t(n)})),i.unbuffer()}function w(t,o){const i=Ot();if(i&&(t=function(t){return{...t,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:t.defaultPrivacyLevel??Rt()?.getPrivacyLevel()}}(t)),d=t,f)return void mc("DD_RUM",t);const s=hn(t);s&&wc(s,o??"")&&(s.compressIntakeRequests&&!i&&e&&(l=e(s,"Datadog RUM",et),!l)||(f=s,r.tryToInit(s.trackingConsent),r.onGrantedOnce((()=>{const{assembleTelemetry:e}=h;!function(t,e){t.register((()=>e.isGranted()?ye.$O:ye.ug))}(e,r),g=Ae(we.RUM,s,e,n),$.W?I.warn("The RUM SDK is not supported in a web or service worker environment."):(Ot()?function(){let t={id:De(),isReplayForced:!1,anonymousId:void 0,createdAt:(0,_.nx)()};return Promise.resolve({findSession:()=>t,findTrackedSession:()=>t,renewObservable:new z,expireObservable:new z,expire:et,updateSessionState:e=>{t={...t,...e}}})}():Xc(s,r)).then((n=>{n&&(p=n,function(t,e,n){t.register((({startTime:t})=>{const r=e.findTrackedSession(t);return r?{session:{id:r.id},anonymous_id:r.anonymousId,...n}:ye.$O}))}(e,p,{application:{id:s.applicationId}}),function(t){xe().notify({rawEvent:{type:pe.CONFIGURATION,configuration:t}})}(Sn(t)),b())})).catch(V)}))))}return{init(e,n,r){if(!e)return void I.error("Missing configuration");var o;if(j(e.enableExperimentalFeatures),o=e.allowUntrustedEvents,!0!==Qt&&(Qt=o??!1),d=e,t&&Ba())return;const i=function(t,e){if(!t)return!0;const n=t.map((t=>t.onInit?.(e)));return n.some(dc)?Promise.all(n).then((t=>!t.includes(!1))):!n.includes(!1)}(e.plugins,{initConfiguration:e,publicApi:n});function c(){if(tn(e)){const t={user:a,context:s};if(e.remoteConfigurationId||e.remoteConfiguration?.sync)(async function(t,e){let n;const r=Xe(),o=await Qe(t);return o.ok?(r.increment("fetch","success"),n=Je(t,o.value,e,r)):(r.increment("fetch","failure"),I.error(o.error)),Ie(Se.REMOTE_CONFIGURATION_METRIC_NAME,{metrics:r.get()}),n})(e,t).then((t=>{t&&w(t,r)})).catch(V);else{const n=en(e,t);n&&w(n,r)}}else w(e,r)}"boolean"==typeof i?i&&c():i.then((t=>{t&&c()})).catch(V)},get initConfiguration(){return d},getInternalContext:et,stopSession:et,addTiming(t,e=(0,_.nx)()){i.notify((n=>n.addTiming(t,e)))},setLoadingTime:t=>{i.notify((e=>e.setLoadingTime(t)))},startView(t,e=(0,_.M8)()){const n=n=>{n.startView(t,e)};i.notify(n),u||(u={options:t,callback:n},b())},setViewName(t){i.notify((e=>e.setViewName(t)))},setViewContext(t){i.notify((e=>e.setViewContext(t)))},setViewContextProperty(t,e){i.notify((n=>n.setViewContextProperty(t,e)))},getViewContext:()=>v,globalContext:s,userContext:a,accountContext:c,addAction(t){i.notify((e=>e.addAction(t)))},startAction(t,e){const n=(0,_.M8)();i.notify((r=>r.startAction(t,e,n)))},stopAction(t,e){const n=(0,_.M8)();i.notify((r=>r.stopAction(t,e,n)))},startResource(t,e){const n=(0,_.M8)();i.notify((r=>r.startResource(t,e,n)))},stopResource(t,e){const n=(0,_.M8)();i.notify((r=>r.stopResource(t,e,n)))},addError(t){i.notify((e=>e.addError(t)))},addFeatureFlagEvaluation(t,e){i.notify((n=>n.addFeatureFlagEvaluation(t,e)))},startDurationVital(t,e){const n=(0,_.M8)();i.notify((r=>r.startDurationVital(t,e,n)))},stopDurationVital(t,e){const n=(0,_.M8)();i.notify((r=>r.stopDurationVital(t,e,n)))},addDurationVital(t){i.notify((e=>e.addDurationVital(t)))},addOperationStepVital:(t,e,n,r)=>{i.notify((o=>o.addOperationStepVital(Co(t),e,Co(n),Co(r))))}}}function Qc(t,e,n={}){const r=function(t){const e=new z;function n(){return t===nn.GRANTED}return{tryToInit(e){t||(t=e)},onGrantedOnce(t){if(n())t();else{const r=e.subscribe((()=>{n()&&(t(),r.unsubscribe())}))}},update(n){t=n,e.notify()},isGranted:n,observable:e}}(),o=function(){const t=new G(Ko,(t=>{Re("Early data collection dropped data on unbuffer",{count:t})})),e=[];function n(n,r){e.push(r.subscribe((e=>{t.notify({type:n,data:e})})))}return n(0,Fo()),n(1,qo()),n(2,ho()),n(3,Wo(Object.values(O.bP))),{observable:t,stop:()=>e.forEach((t=>t.unsubscribe()))}}();let i=Yc(n,r,((r,s,a,c,u,l)=>{const d=a&&n.createDeflateEncoder?t=>n.createDeflateEncoder(a,t):se,f=lc(r,s,t,e,c,d,o.observable,u,l,n.sdkName);return t.onRumStart(f.lifeCycle,r,s,f.viewHistory,a,f.telemetry),e.onRumStart(f.lifeCycle,f.hooks,r,s,f.viewHistory,d),i=function(t,e){return{...t,init:t=>{mc("DD_RUM",t)},getInternalContext:e.getInternalContext,stopSession:e.stopSession,getViewContext:e.getViewContext,globalContext:e.globalContext,userContext:e.userContext,accountContext:e.accountContext}}(i,f),function(t,e){for(const n of t??[])n.onRumStart?.(e)}(r.plugins,{addEvent:f.addEvent,addError:f.addError}),f}));const a=()=>i,u=(t,e)=>{const n=vt("vital");U((()=>{Ne({feature:"add-operation-step-vital",action_type:"start"}),i.addOperationStepVital(t,"start",{...e,handlingStack:n})}))},l=P(((t,e)=>{Ne({feature:"add-operation-step-vital",action_type:"succeed"}),i.addOperationStepVital(t,"end",e)})),d=P(((t,e,n)=>{Ne({feature:"add-operation-step-vital",action_type:"fail"}),i.addOperationStepVital(t,"end",n,e)}
1)),f=function(t){const e={version:"7.12.0",onReady(t){t()},...t};return Object.defineProperty(e,"_setDebug",{get:()=>ve.p,enumerable:!1}),e}({init:t=>{const e=(new Error).stack;U((()=>i.init(t,f,e)))},setTrackingConsent:P((t=>{r.update(t),Ne({feature:"set-tracking-consent",tracking_consent:t})})),setViewName:P((t=>{i.setViewName(tu(t,"view name")),Ne({feature:"set-view-name"})})),setViewContext:P((t=>{i.setViewContext(t),Ne({feature:"set-view-context"})})),setViewContextProperty:P(((t,e)=>{i.setViewContextProperty(t,e),Ne({feature:"set-view-context-property"})})),getViewContext:P((()=>(Ne({feature:"set-view-context-property"}),i.getViewContext()))),getInternalContext:P((t=>i.getInternalContext(t))),getInitConfiguration:P((()=>(0,me.Go)(i.initConfiguration))),addAction:(t,e)=>{const n=vt("action");U((()=>{i.addAction({name:Co(t),context:Co(e),startClocks:(0,_.M8)(),type:s.CUSTOM,handlingStack:n}),Ne({feature:"add-action"})}))},startAction:P(((t,e)=>{Ne({feature:"start-action"}),i.startAction(Co(t),{type:Co(e?.type),context:Co(e?.context),actionKey:e?.actionKey})})),stopAction:P(((t,e)=>{Ne({feature:"stop-action"}),i.stopAction(Co(t),{type:Co(e?.type),context:Co(e?.context),actionKey:e?.actionKey})})),startResource:P(((t,e)=>{Ne({feature:"start-resource"}),i.startResource(Co(t),{type:Co(e?.type),method:Co(e?.method),context:Co(e?.context),resourceKey:e?.resourceKey})})),stopResource:P(((t,e)=>{Ne({feature:"stop-resource"}),i.stopResource(Co(t),{type:Co(e?.type),statusCode:e?.statusCode,size:e?.size,context:Co(e?.context),resourceKey:e?.resourceKey})})),addError:(t,e)=>{const n=vt("error");U((()=>{i.addError({error:t,handlingStack:n,context:Co(e),startClocks:(0,_.M8)()}),Ne({feature:"add-error"})}))},addTiming:P(((t,e)=>{i.addTiming(Co(t),e)})),setViewLoadingTime:P((()=>{const t=(0,_.nx)();i.setLoadingTime(t),Ne({feature:"addViewLoadingTime"})})),setGlobalContext:fc(a,gc.globalContext,hc.setContext,"set-global-context"),getGlobalContext:fc(a,gc.globalContext,hc.getContext,"get-global-context"),setGlobalContextProperty:fc(a,gc.globalContext,hc.setContextProperty,"set-global-context-property"),removeGlobalContextProperty:fc(a,gc.globalContext,hc.removeContextProperty,"remove-global-context-property"),clearGlobalContext:fc(a,gc.globalContext,hc.clearContext,"clear-global-context"),setUser:fc(a,gc.userContext,hc.setContext,"set-user"),getUser:fc(a,gc.userContext,hc.getContext,"get-user"),setUserProperty:fc(a,gc.userContext,hc.setContextProperty,"set-user-property"),removeUserProperty:fc(a,gc.userContext,hc.removeContextProperty,"remove-user-property"),clearUser:fc(a,gc.userContext,hc.clearContext,"clear-user"),setAccount:fc(a,gc.accountContext,hc.setContext,"set-account"),getAccount:fc(a,gc.accountContext,hc.getContext,"get-account"),setAccountProperty:fc(a,gc.accountContext,hc.setContextProperty,"set-account-property"),removeAccountProperty:fc(a,gc.accountContext,hc.removeContextProperty,"remove-account-property"),clearAccount:fc(a,gc.accountContext,hc.clearContext,"clear-account"),startView:t=>{const e=vt("view");U((()=>{const n="object"==typeof t?t:{name:t};i.startView({...n,name:tu(n.name,"view name"),service:tu(n.service,"view service"),version:tu(n.version,"view version"),handlingStack:e}),Ne({feature:"start-view"})}))},stopSession:P((()=>{i.stopSession(),Ne({feature:"stop-session"})})),addFeatureFlagEvaluation:P(((t,e)=>{i.addFeatureFlagEvaluation(Co(t),Co(e)),Ne({feature:"add-feature-flag-evaluation"})})),getSessionReplayLink:P((()=>t.getSessionReplayLink())),startSessionReplayRecording:P((e=>{t.start(e),Ne({feature:"start-session-replay-recording",force:e?.force})})),stopSessionReplayRecording:P((()=>t.stop())),addDurationVital:(t,e)=>{const n=vt("vital");U((()=>{Ne({feature:"add-duration-vital"}),i.addDurationVital({id:De(),name:Co(t),type:c.DURATION,startClocks:(0,_.jR)(e.startTime),duration:e.duration,context:Co(e?.context),description:Co(e?.description),handlingStack:n})}))},startDurationVital:(t,e)=>{const n=vt("vital");U((()=>{Ne({feature:"start-duration-vital"}),i.startDurationVital(Co(t),{vitalKey:e?.vitalKey,context:Co(e?.context),description:Co(e?.description),handlingStack:n})}))},stopDurationVital:P(((t,e)=>{Ne({feature:"stop-duration-vital"}),i.stopDurationVital(Co(t),{vitalKey:e?.vitalKey,context:Co(e?.context),description:Co(e?.description)})})),startOperation:u,succeedOperation:l,failOperation:d,startFeatureOperation:u,succeedFeatureOperation:l,failFeatureOperation:d,DEFAULT_TRACKED_RESOURCE_HEADERS:fn});return f}function tu(t,e){if(void 0!==t){if("string"==typeof t)return Co(t);I.warn(`Invalid ${e} provided (expected a string, got ${typeof t}). Ignoring.`)}}function eu(t,{session:e,viewContext:n,errorType:r}){const o=e?e.id:"no-session-id",i=[];return void 0!==r&&i.push(`error-type=${r}`),n&&(i.push(`seed=${n.id}`),i.push(`from=${n.startClocks.timeStamp}`)),`${function(t){const e=t.site,n=t.subdomain||function(t){switch(t.site){case ge.NW:case ge.dV:return"app";case ge.Bb:return"dd";default:return}}(t);return`https://${n?`${n}.`:""}${e}`}(t)}/rum/replay/sessions/${o}?${i.join("&")}`}function nu(t,e,n,r){const o=jt([(0,he.ns)(t,"profile")],(t=>{e.notify(15,{error:{message:t,source:yo.AGENT,startClocks:(0,_.M8)()}}),Re("Error reported to customer",{"error.message":t})})),i=n(r);return{async send({event:t,...e}){const n=new FormData,r=_t(t);if(!r)throw new Error("Failed to serialize event");n.append("event",new Blob([r],{type:"application/json"}),"event.json");let s=r.length;for(const[t,r]of Yt(e)){const e=_t(r);if(!e)throw new Error("Failed to serialize attachment");const o=await ru(i,e);s+=o.outputBytesCount,n.append(t,new Blob([o.output]),t)}o.send({data:n,bytesCount:s})}}}function ru(t,e){return new Promise((n=>{t.write(e),t.finish((t=>{n(t)}))}))}},72518:(t,e,n)=>{n.r(e),n.d(e,{startRecording:()=>_e});const r={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9,Change:12},o={AddString:0,AddNode:1,RemoveNode:2,Attribute:3,Text:4,Size:5,ScrollPosition:6,AddStyleSheet:7,AttachedStyleSheets:8,MediaPlaybackState:9,VisualViewport:10,AddRoleAnnotatedStrings:11,InputValue:12,InputSelection:13,ClearStr
1ings:14},i={Default:0,NodeName:1,AttributeName:2,AttributeValue:3,TextContent:4,FormInput:5,Css:6,Url:7},s={Selected:0,Deselected:1,Indeterminate:2},a={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},c={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},u={Play:0,Pause:1},l={V1:0,Change:1};function d(t,e,n){return f(t,e,n)}function f(t,e,n){let r={container:void 0,parentId:t,previousSiblingId:void 0,nextSiblingId:e};return{advance(t){const e=n.getOrInsert(t),o=(t=>r.previousSiblingId===t-1?0:void 0!==r.nextSiblingId?r.nextSiblingId-t:void 0!==r.parentId?t-r.parentId:null)(e);return r.previousSiblingId=e,{nodeId:e,insertionPoint:o}},ascend(){r.container&&(r=r.container)},descend(){void 0!==r.previousSiblingId&&(r={container:r,parentId:r.previousSiblingId,previousSiblingId:void 0,nextSiblingId:void 0})}}}function p(t,e){return{role:t,string:e}}function g(t,e,n){return[p(i.AttributeName,e),p(y(t,e),n)]}function h(t,e,n){const r=p(i.AttributeName,e);return null===n?[r]:[r,p(y(t,e),n)]}const m=new Set(["input","option","select","textarea"]),v=new Set(["action","background","cite","data","formaction","href","longdesc","manifest","ping","poster","src","srcset","xlink:href"]);function y(t,e){switch(e){case"value":return m.has(t)?i.FormInput:i.AttributeValue;case"style":return i.Css;default:return v.has(e)?i.Url:i.AttributeValue}}function b(t){let e=[],n=_(t);const r=()=>{n.flushInto(e),n=_(t)};return{add:(i,s)=>{n.add(i,s),t.size+n.pendingStringCount>=1e6&&(r(),e.push([o.ClearStrings]),t.clear())},flush:()=>{r();const t=e;return e=[],t}}}function _(t){const e={},n=new Map,r=[];let s=0,a=!1;const c=e=>{const r=t.get(e);if(void 0!==r)return r;a=!0;let o=n.get(e.role);o||(o={role:e.role,strings:new Map,references:0},n.set(e.role,o)),o.references++;const i=o.strings.get(e.string);if(i)return i;const c={literal:e,id:void 0};return o.strings.set(e.string,c),s++,c},u=t=>{for(let e=0,n=t.length;e<n;e++){const n=t[e];"string"==typeof n?t[e]=c(p(i.Default,n)):Array.isArray(n)?u(n):E(n)&&(t[e]=c(n))}};return{add:(t,n)=>{t in e||(e[t]=[t]),Array.isArray(n)&&(a=!1,u(n),a&&r.push(n)),e[t].push(n)},flushInto:i=>{const s=(()=>{if(0===n.size)return;const e=[o.AddRoleAnnotatedStrings];for(const r of Array.from(n.values()).sort(S)){const n=[r.role];for(const e of r.strings.values())e.id=t.getOrInsert(e.literal),n.push(e.literal.string);e.push(n)}return e})();s&&i.push(s);for(const t of r)w(t);[o.AddNode,o.RemoveNode,o.Attribute,o.Text,o.InputValue,o.InputSelection,o.Size,o.ScrollPosition,o.AddStyleSheet,o.AttachedStyleSheets,o.MediaPlaybackState,o.VisualViewport].forEach((t=>{const n=e[t];n&&i.push(n)}))},get pendingStringCount(){return s}}}function w(t){for(let e=0,n=t.length;e<n;e++){const n=t[e];Array.isArray(n)?w(n):C(n)&&(t[e]=n.id)}}function S(t,e){return e.references-t.references}function E(t){return"object"==typeof t&&null!==t&&"string"in t}function C(t){return"object"==typeof t&&null!==t&&"literal"in t}function k(t,e,n){t[e].count+=1,t[e].max=Math.max(t[e].max,n),t[e].sum+=n}var T=n(48678);function x(t,e,n,i,s,a){const c=b(i.stringIds),u={cssText:{count:0,max:0,sum:0},serializationDuration:{count:0,max:0,sum:0}},d={addMetric(t,e){k(u,t,e)},addNode(...t){c.add(o.AddNode,t)},addStyleSheet(t,e,n){n?c.add(o.AddStyleSheet,[t,e||[],n]):e?c.add(o.AddStyleSheet,[t,e]):c.add(o.AddStyleSheet,[t])},attachStyleSheets(t,e){const n=[t];for(const t of e)n.push(t);c.add(o.AttachedStyleSheets,n)},removeNode(t){c.add(o.RemoveNode,t)},setAttributes(t){c.add(o.Attribute,t)},setInputSelection(t,e){const n=[t];for(const t of e)n.push(t);c.add(o.InputSelection,n)},setInputValue(t,e){c.add(o.InputValue,[t,e])},setMediaPlaybackState(t,e){c.add(o.MediaPlaybackState,[t,e])},setScrollPosition(t,e,n){c.add(o.ScrollPosition,[t,e,n])},setSize(t,e,n){c.add(o.Size,[t,e,n])},setText(t,e){c.add(o.Text,[t,e])},kind:t,scope:i},f=(0,T.nx)();a(d),k(u,"serializationDuration",(0,T.vk)(f,(0,T.nx)()));const p=c.flush();p.length>0&&e(0===t||1===t?{data:p,format:l.Change,type:r.FullSnapshot,timestamp:s}:{data:p,type:r.Change,timestamp:s}),n(u)}var A=n(23044),R=n(97165);function O(t,e){const n=t.tagName,r=t.value;if((0,A.Ie)(t,e)){const e=t.type;if("INPUT"===n&&("button"===e||"submit"===e||"reset"===e))return r;if(!r||"OPTION"===n)return;return A.o}return"OPTION"===n||"SELECT"===n?t.value:"INPUT"===n||"TEXTAREA"===n?r:void 0}const I=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,N=/^[A-Za-z]+:|^\/\//,L=/^["']?data:.*,/i;function M(t,e){return t.replace(I,((t,n,r,o,i,s)=>{const a=r||i||s;if(!e||!a||N.test(a)||L.test(a))return t;const c=n||o||"";return`url(${c}${function(t,e){try{return(0,R.c$)(t,e).href}catch{return t}}(a,e)}${c})`}))}function D(t){return t.tagName.toLowerCase()}function P(t,e){return`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${e}' style='background-color:silver'%3E%3C/svg%3E`}const U=["width","height"];function V(t){return(0,A.nS)(t)&&"CANVAS"===t.tagName}function $(t){return U.includes(t.toLowerCase())}const F=1e6;function z(t,e,n,r){if(e===A.$m.HIDDEN)return null;const o=t.getAttribute(n),i=t.tagName;if((0,A.ap)(i,n,o,e,r)){if("IMG"===i){const e=t;
1if(e.naturalWidth>0)return P(e.naturalWidth,e.naturalHeight);const{width:n,height:r}=t.getBoundingClientRect();return n>0||r>0?P(n,r):A.eT}return"SOURCE"===i?A.eT:A.o}return o?(0,A.ei)(o,F):o}let B;function G(){return B??(B=function(t=window){const e=t.navigator.userAgent;return t.chrome||/HeadlessChrome/.test(e)?0:0===t.navigator.vendor?.indexOf("Apple")||/safari/i.test(e)&&!/chrome|android/i.test(e)?1:2}())}function H(t,e,n,r,o,i){const s=z(e,o,r,i.scope.configuration);null!==s&&t.push(g(n,r,s))}function q(t){if(!t)return null;let e;try{e=t.rules||t.cssRules}catch{}if(!e)return null;return M(Array.from(e,1===G()?j:W).join(""),t.href)}function j(t){return function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")?t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2"):W(t)}function W(t){return function(t){return"styleSheet"in t}(t)&&q(t.styleSheet)||t.cssText}function K(t,e,n,r){if("STYLE"===e.parentNode?.nodeName)return;if(n===A.$m.HIDDEN||n===A.$m.IGNORE)return;let o;const s=(0,A.dT)(e);if(o=s?(0,A.jR)(s,n):n,o!==A.$m.HIDDEN){if(o!==A.$m.IGNORE){switch(e.nodeType){case e.CDATA_SECTION_NODE:!function(t,e,n){const{insertionPoint:r}=t.advance(e);n.addNode(r,p(i.NodeName,"#cdata-section"))}(t,e,r);break;case e.DOCUMENT_NODE:!function(t,e,n){const{nodeId:r,insertionPoint:o}=t.advance(e);n.addNode(o,p(i.NodeName,"#document")),n.setScrollPosition(r,(0,A.Gn)(),(0,A.zL)()),Z(e.adoptedStyleSheets,r,n)}(t,e,r);break;case e.DOCUMENT_FRAGMENT_NODE:!function(t,e,n){const{nodeId:r,insertionPoint:o}=t.advance(e);if(!(0,A.p_)(e))return void n.addNode(o,p(i.NodeName,"#document-fragment"));n.addNode(o,p(i.NodeName,"#shadow-root")),n.scope.shadowRootsController.addShadowRoot(e,n.scope),Z(e.adoptedStyleSheets,r,n)}(t,e,r);break;case e.DOCUMENT_TYPE_NODE:!function(t,e,n){const{insertionPoint:r}=t.advance(e);n.addNode(r,p(i.NodeName,"#doctype"),p(i.AttributeValue,e.name),p(i.AttributeValue,e.publicId),p(i.Url,e.systemId))}(t,e,r);break;case e.ELEMENT_NODE:!function(t,e,n,r){const{nodeId:o,insertionPoint:s}=t.advance(e),a=function(t,e,n){if(e===A.$m.HIDDEN)return[];const r=[],o=D(t);for(let i=0;i<t.attributes.length;i+=1){const s=t.attributes.item(i).name;"value"!==s&&"selected"!==s&&"checked"!==s&&H(r,t,o,s,e,n)}if(!t.value||"textarea"!==o&&"select"!==o&&"option"!==o&&"input"!==o)t.hasAttribute("value")&&H(r,t,o,"value",e,n);else{const n=O(t,e);void 0!==n&&r.push(g(o,"value",n))}"option"===o?t.selected&&!(0,A.Ie)(t,e)&&r.push(g(o,"selected","")):t.hasAttribute("selected")&&H(r,t,o,"selected",e,n);const i=t;return"input"!==o||"radio"!==i.type&&"checkbox"!==i.type?t.hasAttribute("checked")&&H(r,t,o,"checked",e,n):i.checked&&!(0,A.Ie)(t,e)&&r.push(g(o,"checked","")),r}(e,n,r);r.addNode(s,J(e),...a),V(e)&&r.scope.canvasManager.markCanvasDirty(e);const{_cssText:c,rr_mediaState:l,rr_scrollLeft:d,rr_scrollTop:f}=function(t,e,n){if(e===A.$m.HIDDEN)return{};const r={},o=t.ownerDocument,i=D(t);if("link"===i){const e=Array.from(o.styleSheets).find((e=>e.href===t.href)),i=q(e);i&&e&&(n.addMetric("cssText",i.length),r._cssText=i)}if("style"===i&&t.sheet){const e=q(t.sheet);e&&(n.addMetric("cssText",e.length),r._cssText=e)}let s,a;switch("audio"!==i&&"video"!==i||(r.rr_mediaState=t.paused?"paused":"played"),n.kind){case 0:s=Math.round(t.scrollTop),a=Math.round(t.scrollLeft),(s||a)&&n.scope.elementsScrollPositions.set(t,{scrollTop:s,scrollLeft:a});break;case 1:n.scope.elementsScrollPositions.has(t)&&({scrollTop:s,scrollLeft:a}=n.scope.elementsScrollPositions.get(t))}return a&&(r.rr_scrollLeft=a),s&&(r.rr_scrollTop=s),r}(e,n,r),h=e;if(void 0!==c&&h.sheet){const t=r.scope.styleSheetIds.getOrInsert(h.sheet);r.addStyleSheet(p(i.Css,c)),r.attachStyleSheets(o,[t])}"played"===l?r.setMediaPlaybackState(o,u.Play):"paused"===l&&r.setMediaPlaybackState(o,u.Pause);void 0===d&&void 0===f||r.setScrollPosition(o,d||0,f||0)}(t,e,o,r);break;case e.TEXT_NODE:!function(t,e,n,r){const{insertionPoint:o}=t.advance(e),s=(0,A.rf)(e,n);r.addNode(o,p(i.NodeName,"#text"),p(i.TextContent,s))}(t,e,o,r);break;default:return}switch(e.nodeType){case e.CDATA_SECTION_NODE:case e.DOCUMENT_TYPE_NODE:case e.TEXT_NODE:return}t.descend(),(0,A.wI)(e,(e=>{K(t,e,o,r)})),t.ascend()}}else!function(t,e,n){if(!(0,A.nS)(e))return;const{nodeId:r,insertionPoint:o}=t.advance(e);n.addNode(o,J(e),g(D(e),A.NT,A.Wd));const{width:i,height:s}=e.getBoundingClientRect();n.setSize(r,i,s)}(t,e,r)}function Z(t,e,n){t&&0!==t.length&&n.attachStyleSheets(e,t.map((t=>function(t,e){const n=Array.from(t.cssRules||t.rules,(t=>p(i.Css,t.cssText))),r=t.media.length>0?Array.from(t.media).map((t=>p(i.Css,t))):void 0;return e.addMetric("cssText",n.reduce(((t,e)=>t+e.string.length),0)),e.addStyleSheet(n,r,t.disabled),e.scope.styleSheetIds.getOrInsert(t)}(t,n))))}function J(t){const e=t.nodeName;return function(t){return"http://www.w3.org/2000/svg"===t.namespaceURI}(t)?p(i.NodeName,`svg>${e}`):p(i.NodeName,e)}function X(t,e,n,r,o,i){i.resetIds(),x(e,r,o,i,t,(t=>{K(f(void 0,void 0,i.nodeIds),n,i.configuration.defaultPrivacyLevel,t)}))}function Y(t,e,n,r,o){x(2,n,r,o,t,(t=>function(t,e){const n=new Set,r=new Map,o=new Map,s=new Set;for(const e of t)switch(e.type){case"attributes":{const t=e.target;let n=r.get(t);n||(n=new Map,r.set(t,n));const o=e.attributeName;n.has(o)||n.set(o,e.oldValue);break}case"characterData":o.has(e.target)||o.set(e.target,e.oldValue);break;case"childList":for(let t=0;t<e.addedNodes.length;t++)n.add(e.addedNodes[t]);for(let t=0;t<e.removedNodes.length;t++)s.add(e.removedNodes[t])}const a=e.scope.nodeIds.nextId,c=new Map;(function(t,e){const n=e.scope.nodeIds;for(const r of t){const t=n.get(r);void 0!==t&&(tt(r,(t=>{V(t)&&e.scope.canvasManager.markCanvasClean(t),(0,A.XS)(t)&&e.scope.shadowRootsController.removeShadowRoot(t.shadowRoot),n.delete(t)})),e.removeNode(t))}})(s,e),function(t,e,n){const r=n.scope.nodeIds;for(const o of t){if(!o.isConnected)continue;if(void 0!==r.get(o))continue;const t=(0,A.$4)(o);if(!t)continue;const i=r.get(t);if(void 0===i)continue;const s=(0,A.PJ)(t,n.scope.configuration.defaultPrivacyLevel,e);K(d(i,Q(o,r),r),o,s,n)}}(n,c,e),function(t,e,n,r){const o=r.scope.nodeIds;for(const[s,a]of t){if(s.textContent===a)continue;if(!s.isConnected)continue;const t=o.get(s);if(void 0===t)continue;if(t>=e)continue;const c=(0,A.$4)(s);if(!c)continue;const u=(0,A.PJ)(c,r.scope.configuration.defaultPrivacyLevel,n);if(u===A.$m.HIDDEN||u===A.$m.IGNORE)continue;const l=(0,A.rf)(s,u);r.setText(t,p(i.TextContent,l))}}(o,a,c,e),function(t,e,n,r){const o=r.scope.nodeIds;for(const[i,s]of t){if(!i.isConnected)continue;const t=o.get(i);if(void 0===t)continue;if(t>=e)continue;const a=(0,A.PJ)(i,r.scope.configuration.defaultPrivacyLevel,n);if(a===A.$m.HIDDEN||a===A.$m.IGNORE)continue;const c=D(i),u=[t];for(const[t,e]of s){if(i.getAttribute(t)===e)continue;if(V(i)&&$(t)&&r.scope.canvasManager.markCanvasDirty(i),"value"===t){const e=O(i,a);void 0!==e&&u.push(g(c,t,e));continue}const n=z(i,a,t,r.scope.configuration);u.push(h(c,t,n))}u.length>1&&r.setAttributes(u)}}(r,a,c,e)}(e,t)))}function Q(t,e){let n=t.nextSibling;for(;n;){const t=e.get(n);if(void 0!==t)return t;n=n.nextSibling}}function tt(t,e){e(t),(0,A.wI)(t,(t=>tt(t,e)))}const et=(t,e)=>
1{const n=window.visualViewport,r={layoutViewportX:t,layoutViewportY:e,visualViewportX:t,visualViewportY:e};return n?(!function(t){return Math.abs(t.pageTop-t.offsetTop-window.scrollY)>25||Math.abs(t.pageLeft-t.offsetLeft-window.scrollX)>25}(n)?(r.visualViewportX=Math.round(t-n.offsetLeft),r.visualViewportY=Math.round(e-n.offsetTop)):(r.layoutViewportX=Math.round(t+n.offsetLeft),r.layoutViewportY=Math.round(e+n.offsetTop)),r):r},nt=t=>({scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width});function rt(t,e,n,o,i){const{width:s,height:a}=(0,A.pB)();n({data:{height:a,href:window.location.href,width:s},type:r.Meta,timestamp:t}),n({data:{has_focus:document.hasFocus()},type:r.Focus,timestamp:t}),X(t,e,document,n,o,i),window.visualViewport&&n({data:nt(window.visualViewport),type:r.VisualViewport,timestamp:t})}function ot(){let t=0,e=it();const n=t=>e[t.role][t.string];return{clear(){0!==t&&(e=it(),t=0)},get:n,getOrInsert(r){let o=n(r);return void 0===o&&(o=t++,e[r.role][r.string]=o),o},get size(){return t-0}}}function it(){return{[i.Default]:st(),[i.NodeName]:st(),[i.AttributeName]:st(),[i.AttributeValue]:st(),[i.TextContent]:st(),[i.FormInput]:st(),[i.Css]:st(),[i.Url]:st()}}function st(){return Object.create(null)}function at(t){return function(t,e){let n=t(),r=e;const o=t=>n.get(t);return{clear(){r!==e&&(n=t(),r=e)},delete(t){n.delete(t)},get:o,getOrInsert(t){let e=o(t);return void 0===e&&(e=r++,n.set(t,e)),e},get nextId(){return r},get size(){return r-e}}}((()=>new WeakMap),t)}var ct=n(76197);function ut(t){return Boolean(t.changedTouches)}function lt(t){return!0===t.composed&&(0,A.XS)(t.target)?t.composedPath()[0]:t.target}function dt(t,e,n=(0,T.nx)()){return{data:{source:t,...e},type:r.IncrementalSnapshot,timestamp:n}}var ft=n(29076),pt=n(86251);const gt=50;function ht(t,e){const{throttled:n,cancel:r}=(0,ft.n)((n=>{const r=lt(n),o=e.nodeIds.get(r);if(void 0===o)return;const i=mt(n);if(!i)return;const s={id:o,timeOffset:0,x:i.x,y:i.y};t(dt(ut(n)?a.TouchMove:a.MouseMove,{positions:[s]}))}),gt,{trailing:!1}),{stop:o}=(0,pt.lQ)(document,[pt.gX.MOUSE_MOVE,pt.gX.TOUCH_MOVE],n,{capture:!0,passive:!0});return{stop:()=>{o(),r()}}}function mt(t){let{clientX:e,clientY:n}=ut(t)?t.changedTouches[0]:t;if(window.visualViewport){const{visualViewportX:t,visualViewportY:r}=et(e,n);e=t,n=r}if(Number.isFinite(e)&&Number.isFinite(n))return{x:e,y:n}}const vt={[pt.gX.POINTER_UP]:c.MouseUp,[pt.gX.MOUSE_DOWN]:c.MouseDown,[pt.gX.CLICK]:c.Click,[pt.gX.CONTEXT_MENU]:c.ContextMenu,[pt.gX.DBL_CLICK]:c.DblClick,[pt.gX.FOCUS]:c.Focus,[pt.gX.BLUR]:c.Blur,[pt.gX.TOUCH_START]:c.TouchStart,[pt.gX.TOUCH_END]:c.TouchEnd};function yt(t,e){return(0,pt.lQ)(document,Object.keys(vt),(n=>{const r=lt(n),o=e.nodeIds.get(r);if(void 0===o||(0,A.PJ)(r,e.configuration.defaultPrivacyLevel)===A.$m.HIDDEN)return;const i=vt[n.type];let s;if(i!==c.Blur&&i!==c.Focus){const t=mt(n);if(!t)return;s={id:o,type:i,x:t.x,y:t.y}}else s={id:o,type:i};t({id:e.eventIds.getOrInsert(n),...dt(a.MouseInteraction,s)})}),{capture:!0,passive:!0})}const bt=100;function _t(t,e,n){const{throttled:r,cancel:o}=(0,ft.n)((t=>{const r=lt(t);if(!r)return;const o=n.nodeIds.get(r);if(void 0===o||(0,A.PJ)(r,n.configuration.defaultPrivacyLevel)===A.$m.HIDDEN)return;const i=r===document?{scrollTop:(0,A.zL)(),scrollLeft:(0,A.Gn)()}:{scrollTop:Math.round(r.scrollTop),scrollLeft:Math.round(r.scrollLeft)};n.elementsScrollPositions.set(r,i),e(dt(a.Scroll,{id:o,x:i.scrollLeft,y:i.scrollTop}))}),bt),{stop:i}=(0,pt.q2)(t,pt.gX.SCROLL,r,{capture:!0,passive:!0});return{stop:()=>{i(),o()}}}const wt=200;function St(t){const e=(0,A.g1)().subscribe((e=>{t(dt(a.ViewportResize,e))}));return{stop:()=>{e.unsubscribe()}}}function Et(t){const e=window.visualViewport;if(!e)return{stop:ft.l};const{throttled:n,cancel:o}=(0,ft.n)((()=>{t({data:nt(e),type:r.VisualViewport,timestamp:(0,T.nx)()})}),wt,{trailing:!1}),{stop:i}=(0,pt.lQ)(e,[pt.gX.RESIZE,pt.gX.SCROLL],n,{capture:!0,passive:!0});return{stop:()=>{i(),o()}}}function Ct(t,e){return(0,pt.lQ)(document,[pt.gX.PLAY,pt.gX.PAUSE],(n=>{const r=lt(n);if(!r)return;const o=e.nodeIds.get(r);void 0!==o&&(0,A.PJ)(r,e.configuration.defaultPrivacyLevel)!==A.$m.HIDDEN&&t(dt(a.MediaInteraction,{id:o,type:n.type===pt.gX.PLAY?u.Play:u.Pause}))}),{capture:!0,passive:!0})}var kt=n(15103),Tt=n(21070),xt=n(2588);function At(t,e,n,{computeHandlingStack:r}={}){let o=t[e];if("function"!=typeof o){if(!(e in t)||"string"!=typeof e||!e.startsWith("on"))return{stop:ft.l};o=ft.l}let i=!1;const{stop:s}=Rt(t,e,o,(function(){if(i)return o.apply(this,arguments);const t=Array.from(arguments);return Ot(n,{target:this,parameters:t,handlingStack:r?(0,xt.uC)("instrumented method"):void 0},(()=>o.apply(this,t)))}));return{stop:()=>{i=!0,s()}}}function Rt(t,e,n,r){return t[e]=r,{stop:()=>{t[e]===r&&(t[e]=n)}}}function Ot(t,e,n){let r;(0,kt.um)(t,null,[{...e,onPostCall:t=>{r=t}}]);const o=n();return r&&(0,kt.um)(r,null,[o]),o}function It(t,e,n){const r=Object.getOwnPropertyDescriptor(t,e);if(!r?.set||!r.configurable)return{stop:ft.l};const o=ft.l;let i=(t,e)=>{(0,Tt.wg)((()=>{i!==o&&n(t,e)}),0)};const s=function(t){r.set.call(this,t),i(this,t)};return Object.defineProperty(t,e,{set:s}),{stop:()=>{Object.getOwnPropertyDescriptor(t,e)?.set===s&&Object.defineProperty(t,e,r),i=o}}}function Nt(t,e){function n(t,n){if(!t?.ownerNode)return;const r=e.nodeIds.get(t.ownerNode);void 0!==r&&n(r)}const r=[At(CSSStyleSheet.prototype,"insertRule",(({target:e,parameters:[r,o]})=>{n(e,(e=>t(dt(a.StyleSheetRule,{id:e,adds:[{rule:r,index:o}]}))))}
1)),At(CSSStyleSheet.prototype,"deleteRule",(({target:e,parameters:[r]})=>{n(e,(e=>t(dt(a.StyleSheetRule,{id:e,removes:[{index:r}]}))))}))];function o(e){r.push(At(e.prototype,"insertRule",(({target:e,parameters:[r,o]})=>{n(e.parentStyleSheet,(n=>{const i=Lt(e);i&&(i.push(o||0),t(dt(a.StyleSheetRule,{id:n,adds:[{rule:r,index:i}]})))}))})),At(e.prototype,"deleteRule",(({target:e,parameters:[r]})=>{n(e.parentStyleSheet,(n=>{const o=Lt(e);o&&(o.push(r),t(dt(a.StyleSheetRule,{id:n,removes:[{index:o}]})))}))})))}return"undefined"!=typeof CSSGroupingRule?o(CSSGroupingRule):(o(CSSMediaRule),o(CSSSupportsRule)),{stop:()=>{r.forEach((t=>t.stop()))}}}function Lt(t){const e=[];let n=t;for(;n.parentRule;){const t=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(t),n=n.parentRule}if(!n.parentStyleSheet)return;const r=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(r),e}function Mt(t){return(0,pt.lQ)(window,[pt.gX.FOCUS,pt.gX.BLUR],(()=>{t({data:{has_focus:document.hasFocus()},type:r.Focus,timestamp:(0,T.nx)()})}))}function Dt(t,e,n){const o=t.subscribe(A.Rg.VIEW_ENDED,(()=>{n(),e({timestamp:(0,T.nx)(),type:r.ViewEnd})}));return{stop:()=>{o.unsubscribe()}}}const Pt={type:1,selection:s.Deselected};function Ut(t,e,n,r){const o=r.configuration.defaultPrivacyLevel,a=new WeakMap,c=t.nodeType!==t.DOCUMENT_NODE,u=(c?t.ownerDocument:t).defaultView;if(!u)return{stop:ft.l};const{stop:l}
1=(0,pt.lQ)(t,c?[pt.gX.CHANGE]:[pt.gX.INPUT,pt.gX.CHANGE],(t=>{const e=lt(t);(e instanceof u.HTMLInputElement||e instanceof u.HTMLTextAreaElement||e instanceof u.HTMLSelectElement)&&f(e)}),{capture:!0,passive:!0});let d;if(c)d=ft.l;else{const t=[It(u.HTMLInputElement.prototype,"value",f),It(u.HTMLInputElement.prototype,"checked",f),It(u.HTMLSelectElement.prototype,"value",f),It(u.HTMLTextAreaElement.prototype,"value",f),It(u.HTMLSelectElement.prototype,"selectedIndex",f)];d=()=>{t.forEach((t=>t.stop()))}}return{stop:()=>{d(),l()}};function f(t){const c=(0,A.PJ)(t,o);if(c===A.$m.HIDDEN)return;const u=t.type;let l,d=t;if("radio"===u||"checkbox"===u){if((0,A.Ie)(t,c))return;l={type:1,selection:(f=t,f.checked?s.Selected:s.Deselected)}}else if(Vt(t)){if((0,A.Ie)(t,c))return;const e=t.options[t.selectedIndex];if(!e)return;d=e,l={type:1,selection:s.Selected}}else{const e=O(t,c);if(void 0===e)return;l={type:0,value:e}}var f;const h=g(d,l),m=[];if("radio"===u&&t.checked&&function(t,e){if(!t.name)return;t.ownerDocument.querySelectorAll(`input[type="radio"][name="${CSS.escape(t.name)}"]`).forEach((n=>{n!==t&&e(n)}))}(t,(t=>{const e=g(t,Pt);void 0!==e&&m.push(e)})),Vt(t))for(let e=0;e<t.options.length;e++){const n=t.options[e];n!==d&&a.delete(n)}void 0===h&&0===m.length||x(2,e,n,r,(0,T.nx)(),(t=>{void 0!==h&&(0===l.type?t.setInputValue(h,p(i.FormInput,l.value)):t.setInputSelection(l.selection,[h])),m.length>0&&t.setInputSelection(s.Deselected,m)}))}function g(t,e){const n=r.nodeIds.get(t);if(void 0===n)return;const o=a.get(t);var i,s;return o&&(s=e,0===(i=o).type?0===s.type&&i.value===s.value:1===s.type&&i.selection===s.selection)?void 0:(a.set(t,e),n)}}function Vt(t){return"SELECT"===t.tagName}function $t(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){const n=window.requestIdleCallback((0,kt.dm)(t),e);return()=>window.cancelIdleCallback(n)}return function(t){const e=(0,T.x3)(),n=(0,Tt.wg)((()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-((0,T.x3)()-e))})}),0);return()=>(0,Tt.DJ)(n)}(t)}const Ft=100;function zt(t,e,n,r){const o=(0,A.W3)();if(!o)return{stop:ft.l,flush:ft.l};const i=function(t){let e=ft.l,n=[];function r(){e(),t(n),n=[]}const{throttled:o,cancel:i}=(0,ft.n)(r,16,{leading:!1});return{addMutations:t=>{0===n.length&&(e=$t(o,{timeout:Ft}));for(const e of t)n.push(e)},flush:r,stop:()=>{e(),i()}}}((t=>{Y((0,T.nx)(),t.concat(s.takeRecords()),e,n,r)})),s=new o((0,kt.dm)(i.addMutations));return s.observe(t,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:()=>{s.disconnect(),i.stop()},flush:()=>{i.flush()}}}const Bt=["clearRect","fillRect","strokeRect","fill","stroke","fillText","strokeText","drawImage","putImageData","drawFocusIfNeeded","reset"];function Gt(t){if(!t.configuration.sessionReplayCanvasRecording?.enable||0===t.configuration.sessionReplayCanvasRecording.maxFramesPerSecond||"undefined"==typeof CanvasRenderingContext2D)return{stop:ft.l};const e=[];return Bt.forEach((n=>{e.push(At(CanvasRenderingContext2D.prototype,n,(({target:e,onPostCall:n})=>{n((()=>{void 0!==t.nodeIds.get(e.canvas)&&t.canvasManager.markCanvasDirty(e.canvas)}))})))})),{stop:()=>e.forEach((t=>t.stop()))}}const Ht=(t,e)=>{const n=new Map;return{addShadowRoot:(r,o)=>{if(n.has(r))return;const i=zt(r,t,e,o),s=Ut(r,t,e,o),a=_t(r,t,o);n.set(r,{flush:()=>i.flush(),stop:()=>{i.stop(),s.stop(),a.stop()}})},removeShadowRoot:t=>{const e=n.get(t);e&&(e.stop(),n.delete(t))},stop:()=>{n.forEach((({stop:t})=>t()))},flush:()=>{n.forEach((({flush:t})=>t()))}}};var qt=n(95041);function jt(t){const{emitRecord:e,emitStats:n,configuration:r,lifeCycle:o}=t;if(!e||!n)throw new Error("emit functions are required");const i=n=>{e(n),function(t,e){const n=qt.J.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}("record",{record:n});const r=t.viewHistory.findView();(0,ct.$1)(r.id)},s=function(){const t=new Set;return{clearDirtyCanvases:()=>t.clear(),getDirtyCanvases:()=>{const e=[];return t.forEach((n=>{n.isConnected?e.push(n):t.delete(n)})),e},isCanvasDirty:e=>t.has(e),markCanvasClean:e=>t.delete(e),markCanvasDirty:e=>{e.isConnected&&t.add(e)}}}(),a=Ht(i,n),c=function(t,e,n,r){const o={resetIds(){o.eventIds.clear(),o.nodeIds.clear(),o.stringIds.clear(),o.styleSheetIds.clear()},canvasManager:t,configuration:e,elementsScrollPositions:n,eventIds:at(1),nodeIds:at
1(0),shadowRootsController:r,stringIds:ot(),styleSheetIds:at(0)};return o}(s,r,function(){const t=new WeakMap;return{set(e,n){(e!==document||document.scrollingElement)&&t.set(e===document?document.scrollingElement:e,n)},get:e=>t.get(e),has:e=>t.has(e)}}(),a),{stop:u}=function(t,e,n,r,o){rt((0,T.nx)(),0,e,n,o);const{unsubscribe:i}=t.subscribe(A.Rg.VIEW_CREATED,(t=>{r(),rt(t.startClocks.timeStamp,1,e,n,o)}));return{stop:i}}(o,i,n,l,c);function l(){a.flush(),d.flush()}const d=zt(document,i,n,c),f=[d,ht(i,c),yt(i,c),_t(document,i,c),St(i),Ut(document,i,n,c),Ct(i,c),Nt(i,c),Mt(i),Et(i),Dt(o,i,l),Gt(c)];return{stop:()=>{a.stop(),f.forEach((t=>t.stop())),u()},flushMutations:l,shadowRootsController:a}}function Wt({context:t,creationReason:e,encoder:n}){let o=0;const i=t.view.id,s={start:1/0,end:-1/0,creation_reason:e,records_count:0,has_full_snapshot:!1,index_in_view:(0,ct.K_)(i),source:"browser",...t},a={cssText:{count:0,max:0,sum:0},serializationDuration:{count:0,max:0,sum:0}};return(0,ct.H5)(i),{addRecord:function(t,e){s.start=Math.min(s.start,t.timestamp),s.end=Math.max(s.end,t.timestamp),s.records_count+=1,s.has_full_snapshot||=t.type===r.FullSnapshot||t.type===r.Change&&0===s.index_in_view;const i=n.isEmpty?'{"records":[':",";n.write(i+JSON.stringify(t),(t=>{o+=t,e(o)}))},addStats:function(t){!function(t,e){for(const n of["cssText","serializationDuration"])t[n].count+=e[n].count,t[n].max=Math.max(t[n].max,e[n].max),t[n].sum+=e[n].sum}(a,t)},flush:function(t){if(n.isEmpty)throw new Error("Empty segment flushed");n.write(`],${JSON.stringify(s).slice(1)}\n`),n.finish((e=>{(0,ct.L7)(s.view.id,e.rawBytesCount),t(s,a,e)}))}}}const Kt={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function Zt(t){return(e=Kt,Object.values(e)).includes(t);var e}const Jt=5*T.OY;let Xt=6e4;function Yt(t,e,n,r,o,i){return function(t,e,n,r){let o={status:0,nextSegmentCreationReason:"init"};const{unsubscribe:i}=t.subscribe(A.Rg.VIEW_CREATED,(()=>{a("view_change")})),{unsubscribe:s}=t.subscribe(A.Rg.PREPARE_URGENT_FLUSH,(t=>{a(t)}));function a(t){1===o.status&&(o.segment.flush(((e,r,o)=>{const i=function(t,e,n,r){const o=new FormData;o.append("segment",new Blob([t],{type:"application/octet-stream"}),`${e.session.id}-${e.start}`);const i={raw_segment_size:r,compressed_segment_size:t.byteLength,...e},s=JSON.stringify(i);return o.append("event",new Blob([s],{type:"application/json"})),{data:o,bytesCount:t.byteLength,cssText:n.cssText,isFullSnapshot:0===e.index_in_view,rawSize:r,recordCount:e.records_count,serializationDuration:n.serializationDuration}}(o.output,e,r,o.rawBytesCount);Zt(t)&&t!==Kt.HIDDEN?n.sendOnExit(i):n.send(i)})),(0,Tt.DJ)(o.expirationTimeoutId)),o="stop"!==t?{status:0,nextSegmentCreationReason:t}:{status:2}}return{addRecord:t=>{if(2!==o.status){if(0===o.status){const t=e();if(!t)return;o={status:1,segment:Wt({encoder:r,context:t,creationReason:o.nextSegmentCreationReason}),expirationTimeoutId:(0,Tt.wg)((()=>{a("segment_duration_limit")}),Jt)}}o.segment.addRecord(t,(t=>{t>Xt&&a("segment_bytes_limit")}))}},addStats:t=>{1===o.status&&o.segment.addStats(t)},stop:()=>{a("stop"),i(),s()}}}(t,(()=>function(t,e,n){const r=e.findTrackedSession(),o=n.findView();if(!r||!o)return;return{application:{id:t},session:{id:r.id},view:{id:o.id}}}(e.applicationId,n,r)),o,i)}var Qt=n(81452);var te=n(65616);const ee={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};var ne=n(56204),re=n(33274),oe=n(57675);const ie=80*re._m,se=20*re.iH,ae=T.iW,ce=T.OY;function ue(t,e,n,r,o,i){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?de(t,e,n,i,{onSuccess:()=>fe(0,e,n,r,o,i),onFailure:()=>{e.queuedPayloads.enqueue(t)||i.notify({type:"queue-full",bandwidth:e.bandwidthMonitor.stats(),payload:t}),le(e,n,r,o,i)}}):e.queuedPayloads.enqueue(t)||i.notify({type:"queue-full",bandwidth:e.bandwidthMonitor.stats(),payload:t})}function le(t,e,n,r,o){2===t.transportStatus&&(0,Tt.wg)((()=>{de(t.queuedPayloads.first(),t,e,o,{onSuccess:()=>{t.queuedPayloads.dequeue(),t.currentBackoffTime=ce,fe(1,t,e,n,r,o)},onFailure:()=>{t.currentBackoffTime=Math.min(ae,2*t.currentBackoffTime),le(t,e,n,r,o)}})}),t.currentBackoffTime)}function de(t,e,n,r,{onSuccess:o,onFailure:i}){e.bandwidthMonitor.add(t),n(t,(n=>{e.bandwidthMonitor.remove(t),!function(t){return"opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||(e=t.status,e>=500));var e}(n)?(e.transportStatus=0,r.notify({type:"success",bandwidth:e.bandwidthMonitor.stats(),payload:t}),o()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status}
1,r.notify({type:"failure",bandwidth:e.bandwidthMonitor.stats(),payload:t}),i())}))}function fe(t,e,n,r,o,i){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(o(`Reached max ${r} events size queued for upload: ${se/re.iH}MiB`),e.queueFullReported=!0);const s=e.queuedPayloads;for(e.queuedPayloads=pe();s.size()>0;)ue(s.dequeue(),e,n,r,o,i)}function pe(){const t=[];return{bytesCount:0,enqueue(e){return!this.isFull()&&(t.push(e),this.bytesCount+=e.bytesCount,!0)},first:()=>t[0],dequeue(){const e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size:()=>t.length,isFull(){return this.bytesCount>=se}}}const ge=16*re._m;function he(t,e,n=ge){const r=new ne.cP,o={transportStatus:0,currentBackoffTime:ce,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=ie&&this.ongoingRequestCount<32},add(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount},stats(){return{ongoingByteCount:this.ongoingByteCount,ongoingRequestCount:this.ongoingRequestCount}}},queuedPayloads:pe(),queueFullReported:!1};return{observable:r,send:n=>{for(const i of t)ue(n,o,((t,e)=>{ye(i,t,e)}),i.trackType,e,r)},sendOnExit:e=>{for(const r of t)me(r,n,e)}}}function me(t,e,n){if(n.bytesCount<e)try{const e=t.build("beacon",n);if(navigator.sendBeacon(e,n.data))return}catch(t){!function(t){ve||(ve=!0,(0,kt.Dx)(t))}(t)}ye(t,n)}let ve=!1;function ye(t,e,n){const r=t.build("fetch",e);(0,oe.h)(r,{method:"POST",body:e.data,mode:"cors"}).then((0,kt.dm)((t=>n?.({status:t.status,type:t.type})))).catch((0,kt.dm)((()=>n?.({status:0}))))}var be=n(22084);function _e(t,e,n,r,o,i,s){const a=[],c=s||he([(0,be.ns)(e,"replay")],(e=>{t.notify(A.Rg.RAW_ERROR_COLLECTED,{error:{message:e,source:ee.AGENT,startClocks:(0,T.M8)()}}),(0,Qt.A2)("Error reported to customer",{"error.message":e})}),Xt);let u,l;if((0,te.d0)())({addRecord:u}=function(t){const e=(0,te.Y9)();return{addRecord:n=>{const r=t.findView();e.send("record",n,r.id)}}}(r)),l=ft.l;else{const s=Yt(t,e,n,r,c,o);u=s.addRecord,l=s.addStats,a.push(s.stop);const d=function(t,e){if(!t.metricsEnabled)return{stop:ft.l};const{unsubscribe:n}=e.subscribe((t=>{if("failure"===t.type||"queue-full"===t.type||"success"===t.type&&t.payload.isFullSnapshot){const o=(e=t.type,n=t.bandwidth,{cssText:{count:(r=t.payload).cssText.count,max:r.cssText.max,sum:r.cssText.sum},encoding:{fullSnapshot:"change",incrementalSnapshot:"change"},isFullSnapshot:r.isFullSnapshot,ongoingRequests:{count:n.ongoingRequestCount,totalSize:n.ongoingByteCount},recordCount:r.recordCount,result:e,serializationDuration:{count:r.serializationDuration.count,max:r.serializationDuration.max,sum:r.serializationDuration.sum},size:{compressed:r.bytesCount,raw:r.rawSize}});(0,Qt.Gk)(Qt.Xf.SEGMENT_METRICS_TELEMETRY_NAME,{metrics:o})}var e,n,r}));return{stop:n}}(i,c.observable);a.push(d.stop)}const{stop:d}=jt({emitRecord:u,emitStats:l,configuration:e,lifeCycle:t,viewHistory:r});return a.push(d),{stop:()=>{a.forEach((t=>t()))}}}},60389:(t,e,n)=>{n.r(e),n.d(e,{DEFAULT_RUM_PROFILER_CONFIGURATION:()=>G,createRumProfiler:()=>H});var r=n(65616);function o(){const t=(0,r.Y9)();return e=>{t.send("profile",e)}}var i=n(23044),s=n(80642);function a(t,e,n){const r=(0,i.wP)(t,e,n,s.j.PROFILING);return({profile:t,trace:e})=>{const n={event:t,"wall-time.json":e};r.send(n)}}const c=/\/(?![vV]\d{1,2}\/)([^/\d?]*\d+[^/?]*)/g;const u=(t,e)=>t||function(t){return t?t.replace(c,"/?"):"/"}(e);var l=n(54767),d=n(61689);function f(t,e){const n=e?`${t}:${e}`:t;return(n.length>200||function(t){return new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(t)}(n))&&l.V.warn(`Tag ${n} doesn't meet tag requirements and will be sanitized. ${d.xG} ${d.fH}/getting_started/tagging/#defining-tags`),function(t){return t.replace(/,/g,"_")}(n)}var p=n(48678);function g(t,e,n){const r=function(t){const{env:e,service:n,version:r,datacenter:o,sdkVersion:i,variant:s}=t,a=[f("sdk_version",i??"7.12.0")];return e&&a.push(f("env",e)),n&&a.push(f("service",n)),r&&a.push(f("version",r)),o&&a.push(f("datacenter",o)),s&&a.push(f("variant",s)),a}(e),o=function(t,e,n){const{ids:r,names:o}=function(t){const e={ids:[],names:[]};for(const n of t)e.ids.push(n.viewId),n.viewName&&e.names.push(n.viewName);return e.names=Array.from(new Set(e.names)),e}(t.views),i=t.longTasks.map((t=>t.id)).filter((t=>void 0!==t)),s=t.actions?.map((t=>t.id)).filter((t=>void 0!==t))??[],{ids:a,labels:c}=function(t){const e={ids:[],labels:[]};if(!t)return e;for(const n of t)e.ids.push(n.id),e.labels.push(n.label);return e.labels=Array.from(new Set(e.labels)),e}(t.vitals),u={application:{id:e}};n&&(u.session={id:n});r.length&&(u.view={id:r,name:o});i.length&&(u.long_task={id:i});s.length&&(u.action={id:s,label:[]});a.length&&(u.vital={id:a,label:c});return u}(t,e.applicationId,n),i=function(t){return t.concat(["language:javascript","runtime:chrome","family:chrome","host:browser"])}(r);return{...o,attachments:["wall-time.json"],start:new Date(t.startClocks.timeStamp).toISOString(),end:new Date(t.endClocks.timeStamp).toISOString(),family:"chrome",runtime:"chrome",format:"json",version:4,tags_profiler:i.join(","),_dd:{clock_drift:(0,p._O)()}}}const h=4*p.MA;p.iW;var m=n(21070);const v=1/0,y=p.iW;let b;const _=new Set;function w({expireDelay:t,maxEntries:e}){let n=[];const r=()=>{if(!t)return;const e=(0,p.$S)()-t;
1for(;n.length>0&&n[n.length-1].endTime<e;)n.pop()};return t&&(b||(b=(0,m.yb)((()=>{_.forEach((t=>t()))}),y)),_.add(r)),{add:function(t,r){const o={value:t,startTime:r,endTime:v,remove:()=>{!function(t,e){const n=t.indexOf(e);n>=0&&t.splice(n,1)}(n,o)},close:t=>{o.endTime=t}};return e&&n.length>=e&&n.pop(),n.unshift(o),o},find:function(t=v,e={returnInactive:!1}){for(const r of n)if(r.startTime<=t){if(e.returnInactive||t<=r.endTime)return r.value;break}},closeActive:function(t){const e=n[0];e?.endTime===v&&e.close(t)},findAll:function(t=v,e=0){const r=(0,p.Gw)(t,e);return n.filter((e=>e.startTime<=r&&t<=e.endTime)).map((t=>t.value))},findAllEntries:function(t=v,e=0){const r=(0,p.Gw)(t,e);return n.filter((e=>e.startTime<=r&&t<=e.endTime))},getEntries:function(t){return n.filter((e=>e.startTime===t))},reset:function(){n=[]},stop:function(){_.delete(r),0===_.size&&b&&((0,m.vG)(b),b=void 0)}}}const S=h;function E(t){const e=w({expireDelay:S});return t.subscribe(i.Rg.RAW_RUM_EVENT_COLLECTED,(({rawRumEvent:t,startClocks:n,duration:r})=>{"long_task"===t.type&&e.add({id:t.long_task.id,startClocks:n,duration:r,entryType:t.long_task.entry_type===i.K.LONG_TASK?i.do.LONG_TASK:i.do.LONG_ANIMATION_FRAME},n.relative).close((0,p.Gw)(n.relative,r))})),e}const C=h;function k(t){const e=w({expireDelay:C});return t.subscribe(i.Rg.ACTION_STARTED,(t=>{e.add({id:t.id,label:"",startClocks:t.startClocks,duration:void 0},t.startClocks.relative)})),t.subscribe(i.Rg.RAW_RUM_EVENT_COLLECTED,(({rawRumEvent:t,startClocks:n,duration:r})=>{if("action"===t.type){const o=e.getEntries(n.relative).find((e=>e.value.id===t.action.id)),i=r??0;o?(o.value.duration=i,o.close((0,p.Gw)(n.relative,i))):e.add({id:t.action.id,label:"",startClocks:n,duration:r},n.relative).close((0,p.Gw)(n.relative,i))}})),e}const T=h;function x(t){const e=w({expireDelay:T});return t.subscribe(i.Rg.DURATION_VITAL_STARTED,(t=>{e.add({id:t.id,type:i.DL.DURATION,startClocks:t.startClocks,duration:void 0,label:t.name},t.startClocks.relative)})),t.subscribe(i.Rg.RAW_RUM_EVENT_COLLECTED,(({rawRumEvent:t,startClocks:n,duration:r})=>{if("vital"!==t.type)return;if(t.vital.type===i.DL.OPERATION_STEP){if("start"===t.vital.step_type)e.add({id:t.vital.id,type:t.vital.type,operationKey:t.vital.operation_key,startClocks:n,label:t.vital.name},n.relative);else if("end"===t.vital.step_type){const r=e.findAllEntries().find((e=>e.value.type===i.DL.OPERATION_STEP&&e.value.label===t.vital.name&&e.value.operationKey===t.vital.operation_key));if(!r)return;r.value.duration=(0,p.vk)(r.value.startClocks.relative,n.relative),r.close(n.relative)}return}const o=e.getEntries(n.relative).find((e=>e.value.id===t.vital.id));if(o)return o.value.duration=r,void o.close((0,p.Gw)(n.relative,r));e.add({id:t.vital.id,type:t.vital.type,operationKey:t.vital.operation_key,startClocks:n,duration:r,label:t.vital.name},n.relative).close((0,p.Gw)(n.relative,r))})),e}var A=n(57675),R=n(22084);function O(t,e,n=5e3){const r=function(t,e){return(0,R.Hg)({proxy:t.proxy,site:t.site,path:"/api/v2/profiling/quota",parameters:`session_id=${e}`,subdomain:"quota"})}(t,e),o=new AbortController;let i;const s=(0,A.h)(r,{credentials:"omit",signal:o.signal,headers:new Headers({"DD-CLIENT-TOKEN":t.clientToken})}).then((t=>{const e=429===t.status?{decision:"quota_ko",reason:"quota_exceeded"}:{decision:"quota_ok",reason:"api-error"};return t.json().then((t=>((0,m.DJ)(i),function(t,e){const n=t?.data?.attributes;if(!n||"boolean"!=typeof n.admitted||"string"!=typeof n.reason)return e;const r="backend_client_not_initialized"===n.reason?"backend_unavailable":n.reason;return{decision:n.admitted?"quota_ok":"quota_ko",reason:r}}(t,e))),(()=>((0,m.DJ)(i),e)))})).catch((()=>((0,m.DJ)(i),{decision:"quota_ok",reason:"api-error"}))),a=new Promise((t=>{i=(0,m.wg)((()=>{o.abort(),t({decision:"quota_ok",reason:"timeout"})}),n)}));return Promise.race([s,a])}var I=n(69161),N=n(81452),L=n(95041);const M=new Map,D=new Set;let P=!1;function U(){const t=L.J.window?.DD_SOURCE_CODE_CONTEXT;if(!t)return;let e=!1,n=!1,r=!1;for(const[o,i]of Object.entries(t)){if(e=e||void 0!==i.ddDebugId,n=n||void 0!==i.service,r=r||void 0!==i.version,D.has(o))continue;D.add(o);const t=(0,I.T)({stack:o}).stack[0]?.url;t&&!M.has(t)&&M.set(t,i)}P||(P=!0,(0,N.Q6)({feature:"source-code-context",use_debug_id:e,use_service:n,use_version:r}))}function V(t){const e=new Map(function(t){U();const e=new Set,n=[];for(const r of t){if(e.has(r))continue;e.add(r);const t=M.get(r)?.ddDebugId;void 0!==t&&n.push({url:r,id:t})}return n.length?n:void 0}(t)?.map((t=>[t.url,t.id]))),n=[];return t.forEach(((t,r)=>{const o=e.get(t);void 0!==o&&n.push({resourceId:r,debugId:o})})),n.length?n:void 0}var $=n(20769),F=n(64354),z=n(86251),B=n(15103);const G={sampleIntervalMs:10,collectIntervalMs:6e4,minProfileDurationMs:5e3};function H(t,e,n,s,c,d,f=G){const h=(0,r.d0)()?(0,$.B)(o)():(0,$.B)(a)(t,e,c);let v;const y=[],b=(0,$.B)(E)(e),_=(0,$.B)(k)(e),w=(0,$.B)(x)(e);let S={state:"stopped",stateReason:"initializing"},C=0;function T(){if("running"===S.state)return;const e=d.findView();v=e?{startClocks:e.startClocks,viewId:e.id,viewName:u(e.name,document.location.pathname)}:void 0,y.push((0,z.q2)(window,z.gX.VISIBILITY_CHANGE,D).stop,(0,z.q2)(window,z.gX.BEFORE_UNLOAD,P).stop),R(),function(){if((0,r.d0)())return;const e=++C,o=n.findTrackedSession()?.id;o&&(0,$.B)(O)(t,o).then((t=>{e===C&&("running"!==S.state&&"paused"!==S.state||"quota_ko"===t.decision&&A("quota_ko",t.reason))})).catch(B.Dx)}()}function A(t,e){!function(t){if("running"!==S.state)return void(("paused"===S.state||"stopped"===S.state&&"stopped-by-user"===t)&&(S={state:"stopped",stateReason:t}));const e=S;S={state:"stopped",stateReason:t},e.cleanupTasks.forEach((t=>t())),"quota_ko"===t?((0,m.DJ)(e.timeoutId),e.profiler.removeEventListener("samplebufferfull",M),e.profiler.stop().catch(B.Dx)):I(e)}
1(t),y.forEach((t=>t())),y.length=0,s.set({status:"stopped",error_reason:void 0,quota_reason:e})}function R(){const t=L.J.Profiler;if(!t)throw s.set({status:"error",error_reason:"not-supported-by-browser"}),new Error("RUM Profiler is not supported in this browser.");"running"===S.state&&I(S);const{cleanupTasks:r}=function(t){if("running"===t.state)return{cleanupTasks:t.cleanupTasks};const n=[],r=e.subscribe(i.Rg.VIEW_CREATED,(t=>{const e={viewId:t.id,viewName:u(t.name,document.location.pathname),startClocks:t.startClocks};N(e),v=e}));return n.push(r.unsubscribe),{cleanupTasks:n}}(S);let o;try{o=new t({sampleInterval:f.sampleIntervalMs,maxBufferSize:Math.round(1.5*f.collectIntervalMs/f.sampleIntervalMs)})}catch(t){return void(t instanceof Error&&t.message.includes("disabled by Document Policy")?(l.V.warn("[DD_RUM] Profiler startup failed. Ensure your server includes the `Document-Policy: js-profiling` response header when serving HTML pages.",t),s.set({status:"error",error_reason:"missing-document-policy-header"})):s.set({status:"error",error_reason:"unexpected-exception"}))}s.set({status:"running",error_reason:void 0}),S={state:"running",startClocks:(0,p.M8)(),profiler:o,timeoutId:(0,m.wg)(R,f.collectIntervalMs),views:[],cleanupTasks:r,longTasks:[],sessionId:n.findTrackedSession()?.id},N(v),o.addEventListener("samplebufferfull",M)}function I(e){(0,m.DJ)(e.timeoutId),e.profiler.removeEventListener("samplebufferfull",M);const{startClocks:n,views:r,sessionId:o}=e;e.profiler.stop().then((e=>{const i=(0,p.M8)(),s=(0,p.vk)(n.relative,i.relative),a=b.findAll(n.relative,s),c=_.findAll(n.relative,s),u=w.findAll(n.relative,s).map((t=>({id:t.id,label:t.label,startClocks:t.startClocks,duration:t.duration}))),l=s<f.minProfileDurationMs;0===a.length&&l||function(e,n){const r={profile:g(e,t,n),trace:e};h(r)}(Object.assign({},e,{startClocks:n,endClocks:i,clocksOrigin:(0,p.Oc)(),longTasks:a,actions:c,vitals:u,views:r,sampleInterval:f.sampleIntervalMs,debugIds:V(e.resources)}),o)})).catch(B.Dx)}function N(t){"running"===S.state&&t&&S.views.push(t)}function M(){R()}function D(){"hidden"===document.visibilityState&&"running"===S.state?function(){if("running"!==S.state)return;const t=S;S={state:"paused"},t.cleanupTasks.forEach((t=>t())),I(t)}():"visible"===document.visibilityState&&"paused"===S.state&&R()}function P(){R()}return e.subscribe(i.Rg.SESSION_EXPIRED,(()=>{A("session-expired")})),e.subscribe(i.Rg.SESSION_RENEWED,(()=>{if("stopped"===S.state&&("session-expired"===S.stateReason||"quota_ko"===S.stateReason)){const e=n.findTrackedSession();if(!e||!(0,F.$5)(e.id,(0,F.it)(t.sessionSampleRate,t.profilingSampleRate)))return;T()}})),{start:T,stop:function(){A("stopped-by-user")},isStopped:function(){return"stopped"===S.state},isRunning:function(){return"running"===S.state},isPaused:function(){return"paused"===S.state}}}},76197:(t,e,n)=>{n.d(e,{$1:()=>s,H5:()=>i,K_:()=>o,L7:()=>a,lv:()=>c});let r;function o(t){return u(t).segments_count}function i(t){u(t).segments_count+=1}function s(t){u(t).records_count+=1}function a(t,e){u(t).segments_total_raw_size+=e}function c(t){return r?.get(t)}function u(t){let e;return r||(r=new Map),r.has(t)?e=r.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},r.set(t,e),r.size>1e3&&function(){if(!r)return;const t=r.keys().next().value;t&&r.delete(t)}()),e}},37912:(t,e,n)=>{n.r(e),n.d(e,{DEFAULT_TRACKED_RESOURCE_HEADERS:()=>_.HF,DefaultPrivacyLevel:()=>$,datadogRum:()=>B});var r=n(86251),o=n(33274);function i(t,e){let n,i=0,s=[],a=!0,c=0;const u=[],l=e,{stop:d}=(0,r.q2)(t,"message",(({data:t})=>{if("wrote"!==t.type||t.streamId!==l)return;const e=u[0];e&&(e.id===t.id?(u.shift(),i+=t.additionalBytesCount,s.push(t.result),n=t.trailer,e.writeCallback?e.writeCallback(t.result.byteLength):e.finishCallback&&e.finishCallback()):e.id<t.id&&d())}));function f(){const t=0===s.length?new Uint8Array(0):(0,o.wh)(s.concat(n)),e={rawBytesCount:i,output:t,outputBytesCount:t.byteLength,encoding:"deflate"};return i=0,s=[],e}function p(){a||(t.postMessage({action:"reset",streamId:e}),a=!0)}return{isAsync:!0,get isEmpty(){return a},write(n,r){t.postMessage({action:"write",id:c,data:n,streamId:e}),u.push({id:c,writeCallback:r,data:n}),a=!1,c+=1},finish(t){p(),u.length?(u.forEach((t=>{delete t.writeCallback})),u[u.length-1].finishCallback=()=>t(f())):t(f())},finishSync(){p();const t=u.map((t=>t.data)).join("");return u.length=0,{...f(),pendingData:t}},estimateEncodedBytesCount:t=>t.length/8,stop(){d()}}}var s=n(54767),a=n(81452),c=n(61689);function u({configuredUrl:t,error:e,source:n,scriptType:r}){if(s.V.error(`${n} failed to start: an error occurred while initializing the ${r}:`,e),e instanceof Event||e instanceof Error&&((o=e.message).includes("Content Security Policy")||o.includes("requires 'TrustedScriptURL'"))){let e;e=t?`Please make sure the ${r} URL ${t} is correct and CSP is correctly configured.`:"Please make sure CSP is correctly configured.",s.V.error(`${e} See documentation at ${c.fH}/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay`)}else"worker"===r&&(0,a.VJ)(e);var o}var l=n(20769),d=n(21070),f=n(48678);const p=30*f.OY;function g(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['(()=>{function t(t){if(1===t.length)return t[0];const e=t.reduce((t,e)=>t+e.length,0),a=new Uint8Array(e);let n=0;for(const e of t)a.set(e,n),n+=e.length;return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),n=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),r=new
1Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),i=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=Array(576);e(s);var h=Array(60);e(h);var l=Array(512);e(l);var _=Array(256);e(_);var o=Array(29);e(o);var d,u,f,c=Array(30);function p(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t?.length}function g(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(c);var v=function(t){return t<256?l[t]:l[256+(t>>>7)]},w=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},m=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,w(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},b=function(t,e,a){m(t,a[2*e],a[2*e+1])},y=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},z=function(t,e,a){var n,r,i=Array(16),s=0;for(n=1;n<=15;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=y(i[h]++,h))}},k=function(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},x=function(t){t.bi_valid>8?w(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},A=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},U=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&A(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!A(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},B=function(t,e,r){var i,s,h,l,d=0;if(0!==t.last_lit)do{i=t.pending_buf[t.d_buf+2*d]<<8|t.pending_buf[t.d_buf+2*d+1],s=t.pending_buf[t.l_buf+d],d++,0===i?b(t,s,e):(h=_[s],b(t,h+256+1,e),0!==(l=a[h])&&(s-=o[h],m(t,s,l)),i--,h=v(i),b(t,h,r),0!==(l=n[h])&&(i-=c[h],m(t,i,l)))}while(d<t.last_lit);b(t,256,e)},I=function(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,_=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==i[2*a]?(t.heap[++t.heap_len]=_=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=_<2?++_:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=_,a=t.heap_len>>1;a>=1;a--)U(t,i,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],U(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,U(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,s,h,l=e.dyn_tree,_=e.max_code,o=e.stat_desc.static_tree,d=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,c=e.stat_desc.max_length,p=0;for(i=0;i<=15;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(i=l[2*l[2*(n=t.heap[a])+1]+1]+1)>c&&(i=c,p++),l[2*n+1]=i,n>_||(t.bl_count[i]++,s=0,n>=f&&(s=u[n-f]),h=l[2*n],t.opt_len+=h*(i+s),d&&(t.static_len+=h*(o[2*n+1]+s)));if(0!==p){do{for(i=c-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[c]--,p-=2}while(p>0);for(i=c;0!==i;i--)for(n=t.bl_count[i];0!==n;)(r=t.heap[--a])>_||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),z(i,_,t.bl_count)},E=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},D=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{b(t,r,t.bl_tree)}while(0!==--h);else 0!==r?(r!==i&&(b(t,r,t.bl_tree),h--),b(t,16,t.bl_tree),m(t,h-3,2)):h<=10?(b(t,17,t.bl_tree),m(t,h-3,3)):(b(t,18,t.bl_tree),m(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},M=!1,j=function(t,e,a,n){m(t,0+(n?1:0),3),function(t,e,a){x(t),w(t,a),w(t,~a),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a)},C=j,L=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16},S=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),O=function(t,e,a,n){var r=S,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},T={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},q=C,F=function(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(_[a]+256+1)]++,t.dyn_dtree[2*v(e)]++),t.last_lit===t.lit_bufsize-1},G=-2,H=258,J=262,K=103,N=113,P=666,Q=function(t,e){return t.msg=T[e],e},R=function(t){return(t<<1)-(t>4?9:0)},V=function(t){for(var e=t.length;--e>=0;)t[e]=0},W=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},X=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},Y=function(t,e){(function(t,e,a,n){var r,l,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),_=function(t){var e;
vendor: 8,957 bytes, line 1
1for(E(t,t.dyn_ltree,t.l_desc.max_code),E(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*i[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(l=t.static_len+3+7>>>3)<=r&&(r=l)):r=l=a+5,a+4<=r&&-1!==e?j(t,e,a,n):4===t.strategy||l===r?(m(t,2+(n?1:0),3),B(t,s,h)):(m(t,4+(n?1:0),3),function(t,e,a,n){var r;for(m(t,e-257,5),m(t,a-1,5),m(t,n-4,4),r=0;r<n;r++)m(t,t.bl_tree[2*i[r]+1],3);D(t,t.dyn_ltree,e-1),D(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),B(t,t.dyn_ltree,t.dyn_dtree)),k(t),n&&x(t)})(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,X(t.strm)},Z=function(t,e){t.pending_buf[t.pending++]=e},$=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},tt=function(t,e,a,n){var r=t.avail_in;return r>n&&(r=n),0===r?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),a),1===t.state.wrap?t.adler=L(t.adler,e,r,a):2===t.state.wrap&&(t.adler=O(t.adler,e,r,a)),t.next_in+=r,t.total_in+=r,r)},et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-J?t.strstart-(t.w_size-J):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+H,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&i<u);if(n=H-(u-i),i=u-H,n>s){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!==--r);return s<=t.lookahead?s:t.lookahead},at=function(t){var e,a,n,r,i,s=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-J)){t.window.set(t.window.subarray(s,s+s),0),t.match_start-=s,t.strstart-=s,t.block_start-=s,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=s?n-s:0}while(--a);e=a=s;do{n=t.prev[--e],t.prev[e]=n>=s?n-s:0}while(--a);r+=s}if(0===t.strm.avail_in)break;if(a=tt(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=W(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=W(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<J&&0!==t.strm.avail_in)},nt=function(t,e){for(var a,n;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a)),t.match_length>=3)if(n=F(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=W(t,t.ins_h,t.window[t.strstart+1]);else n=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2},rt=function(t,e){for(var a,n,r;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=F(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Y(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=F(t,0,t.window[t.strstart-1]))&&Y(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=F(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2};function it(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var st=[new it(0,0,0,0,function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(at(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Y(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-J&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Y(t,!1),t.strm.avail_out),1)}),new it(4,4,8,4,nt),new it(4,5,16,8,nt),new it(4,6,32,32,nt),new it(4,4,16,16,rt),new it(8,16,32,32,rt),new it(8,16,128,128,rt),new it(8,32,128,256,rt),new it(32,128,258,1024,rt),new it(32,258,258,4096,rt)];function ht(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}for(var lt=function(t){var e,i=function(t){if(!t?.state)return Q(t,G);t.total_in=t.total_out=0,t.data_type=2;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:N,t.adler=2===e.wrap?0:1,e.last_flush=0,function(t){M||(function(){var t,e,i,g,v,w=Array(16);for(i=0,g=0;g<28;g++)for(o[g]=i,t=0;t<1<<a[g];t++)_[i++]=g;for(_[i-1]=g,v=0,g=0;g<16;g++)for(c[g]=v,t=0;t<1<<n[g];t++)l[v++]=g;for(v>>=7;g<30;g++)for(c[g]=v<<7,t=0;t<1<<n[g]-7;t++)l[256+v++]=g;for(e=0;e<=15;e++)w[e]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,w[8]++;for(;t<=255;)s[2*t+1]=9,t++,w[9]++;for(;t<=279;)s[2*t+1]=7,t++,w[7]++;for(;t<=287;)s[2*t+1]=8,t++,w[8]++;for(z(s,287,w),t=0;t<30;t++)h[2*t+1]=5,h[2*t]=y(t,5);d=new p(s,a,257,286,15),u=new p(h,n,0,30,15),f=new p([],r,0,19,7)}(),M=!0),t.l_desc=new g(t.dyn_ltree,d),t.d_desc=new g(t.dyn_dtree,u),t.bl_desc=new g(t.bl_tree,f),t.bi_buf=0,t.bi_valid=0,k(t)}(e),0}(t);return 0===i&&((e=t.state).window_size=2*e.w_size,V(e.head),e.max_lazy_match=st[e.level].max_lazy,e.good_match=st[e.level].good_length,e.nice_match=st[e.level].nice_length,e.max_chain_length=st[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),i},_t=function(t,e){var a,n;if(!t?.state||e>5||e<0)return t?Q(t,G):G;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===P&&4!==e)return Q(t,0===t.avail_out?-5:G);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Z(r,31),Z(r,139),Z(r,8),r.gzhead?(Z(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Z(r,255&r.gzhead.time),Z(r,r.gzhead.time>>8&255),Z(r,r.gzhead.time>>16&255),Z(r,r.gzhead.time>>24&255),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,255&r.gzhead.os),r.gzhead.extra?.length&&(Z(r,255&r.gzhead.extra.length),Z(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=O(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,3),r.status=N);else{var h=8+(r.w_bits-8<<4)<<8;h|=(r.strategy>
1=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(h|=32),h+=31-h%31,r.status=N,$(r,h),0!==r.strstart&&($(r,t.adler>>>16),$(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending!==r.pending_buf_size));)Z(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=K)}else r.status=K;if(r.status===K&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&X(t),r.pending+2<=r.pending_buf_size&&(Z(r,255&t.adler),Z(r,t.adler>>8&255),t.adler=0,r.status=N)):r.status=N),0!==r.pending){if(X(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&R(e)<=R(i)&&4!==e)return Q(t,-5);if(r.status===P&&0!==t.avail_in)return Q(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&r.status!==P){var l=2===r.strategy?function(t,e){for(var a;;){if(0===t.lookahead&&(at(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=H){if(at(t),t.lookahead<=H&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+H;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=H-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=F(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):st[r.level].func(r,e);if(3!==l&&4!==l||(r.status=P),1===l||3===l)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===l&&(1===e?function(t){m(t,2,3),b(t,256,s),function(t){16===t.bi_valid?(w(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}(r):5!==e&&(q(r,0,0,!1),3===e&&(V(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),X(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(Z(r,255&t.adler),Z(r,t.adler>>8&255),Z(r,t.adler>>16&255),Z(r,t.adler>>24&255),Z(r,255&t.total_in),Z(r,t.total_in>>8&255),Z(r,t.total_in>>16&255),Z(r,t.total_in>>24&255)):($(r,t.adler>>>16),$(r,65535&t.adler)),X(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},ot=function(t){if(!t?.state)return G;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==K&&e!==N&&e!==P?Q(t,G):(t.state=null,e===N?Q(t,-3):0)},dt=new Uint8Array(256),ut=0;ut<256;ut++)dt[ut]=ut>=252?6:ut>=248?5:ut>=240?4:ut>=224?3:ut>=192?2:1;dt[254]=dt[254]=1;var ft=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},ct=Object.prototype.toString;function pt(){this.options={level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ft,this.strm.avail_out=0;var e,a,n=function(t,e,a,n,r,i){if(!t)return G;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||8!==a||n<8||n>15||e<0||e>9||i<0||i>4)return Q(t,G);8===n&&(n=9);var h=new ht;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,lt(t)}(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw Error(T[n]);if(t.header&&(e=this.strm,a=t.header,e?.state&&(2!==e.state.wrap||(e.state.gzhead=a))),t.dictionary){var r;if(r="[object ArrayBuffer]"===ct.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=function(t,e){var a=e.length;if(!t?.state)return G;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return G;if(1===r&&(t.adler=L(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(V(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);
1i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,at(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=W(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,at(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,0}(this.strm,r)))throw Error(T[n]);this._dict_set=!0}}function gt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch{t.postMessage({type:"errored",error:e+"",streamId:a})}}function vt(t){const e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}pt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?4:0,"[object ArrayBuffer]"===ct.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(2===n||3===n)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(1===(a=_t(r,n)))return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=ot(this.strm),this.onEnd(a),this.ended=!0,0===a;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},pt.prototype.onData=function(t){this.chunks.push(t)},pt.prototype.onEnd=function(t){0===t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e=self){try{const a=new Map;e.addEventListener("message",n=>{try{const r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"7.12.0"};case"write":{let n=e.get(a.streamId);n||(n=new pt,e.set(a.streamId,n));const r=n.chunks.length,i=(new TextEncoder).encode(a.data);return n.push(i,2),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:vt(n),additionalBytesCount:i.length}}case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){gt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}})}catch(t){gt(e,t)}}()})();'])))}let h={status:0};function m(t,e,n){switch(0===h.status&&function(t,e){try{const n=(0,l.B)(g)(t),{stop:o}=(0,r.q2)(n,"error",(n=>{y(t,e,n)})),{stop:i}=(0,r.q2)(n,"message",(({data:n})=>{var r;"errored"===n.type?y(t,e,n.error,n.streamId):"initialized"===n.type&&(r=n.version,1===h.status&&(h={status:3,worker:h.worker,stop:h.stop,version:r}))}));n.postMessage({action:"init"}),(0,d.wg)((()=>function(t){1===h.status&&(s.V.error(`${t} failed to start: a timeout occurred while initializing the Worker`),h.initializationFailureCallbacks.forEach((t=>t())),h={status:2})}(e)),p);h={status:1,worker:n,stop:()=>{o(),i()},initializationFailureCallbacks:[]}}catch(n){y(t,e,n)}}(t,e),h.status){case 1:return h.initializationFailureCallbacks.push(n),h.worker;case 3:return h.worker}}function v(){return h.status}function y(t,e,n,r){1===h.status||0===h.status?(u({configuredUrl:t.workerUrl,error:n,source:e,scriptType:"worker"}),1===h.status&&h.initializationFailureCallbacks.forEach((t=>t())),h={status:2}):(0,a.VJ)(n,{worker_version:3===h.status&&h.version,stream_id:r})}var b=n(76197),_=n(23044);function w(t,e,n,r){const o=e.findTrackedSession(),i=function(t,e,n){if(!e)return"rum-not-tracked";if((0,_.K$)(e,t)===_.xC.OFF)return"incorrect-session-plan";if(!n)return"replay-not-started"}(t,o,r),s=n.findView();return(0,_.dx)(t,{viewContext:s,errorType:i,session:o})}var S=n(29076);async function E(){try{return await(0,l.B)(C)()}catch(t){u({error:t,source:"Recorder",scriptType:"module"})}}async function C(){return(await n.e(3643).then(n.bind(n,72518))).startRecording}var k=n(56204);function T(t){return new Promise((e=>{!function(t,e){document.readyState===t||"complete"===document.readyState?(e(),S.l):(0,r.q2)(window,"complete"===t?"load":"DOMContentLoaded",e,{once:!0})}(t,e)}))}var x=n(15103);function A(t,e,n,r,o,i){let s,c=0;e.subscribe(_.Rg.SESSION_EXPIRED,(()=>{2!==c&&3!==c||(p(),c=1)})),e.subscribe(_.Rg.SESSION_RENEWED,(()=>{1===c&&d()}));const u=new k.cP;!function(t,e){if(!t.metricsEnabled)return{stop:S.l};let n,r,o;const{unsubscribe:i}=e.subscribe((t=>{switch(t.type){case"start":n={forced:t.forced,timestamp:(0,f.nx)()},r=void 0,o=void 0;break;case"document-ready":n&&(r=(0,f.vk)(n.timestamp,(0,f.nx)()));break;
1case"recorder-settled":n&&(o=(0,f.vk)(n.timestamp,(0,f.nx)()));break;case"aborted":case"deflate-encoder-load-failed":case"recorder-load-failed":case"succeeded":i(),n&&(0,a.Gk)(a.Xf.RECORDER_INIT_METRICS_TELEMETRY_NAME,{metrics:(e=n.forced,s=o,c=(0,f.vk)(n.timestamp,(0,f.nx)()),u=t.type,l=r,{forced:e,loadRecorderModuleDuration:s,recorderInitDuration:c,result:u,waitForDocReadyDuration:l})})}var e,s,c,u,l}))}(i,u);const l=async a=>{u.notify({type:"start",forced:a});const[l]=await Promise.all([R(u,{type:"recorder-settled"},E()),R(u,{type:"document-ready"},T("interactive"))]);if(2!==c)return void u.notify({type:"aborted"});if(!l)return c=0,void u.notify({type:"recorder-load-failed"});const d=o();if(!d)return c=0,void u.notify({type:"deflate-encoder-load-failed"});({stop:s}=l(e,t,n,r,d,i)),c=3,u.notify({type:"succeeded"})};function d(e){const r=n.findTrackedSession(),o=r?(0,_.K$)(r,t):void 0;if(!function(t,e){return void 0!==t&&(t!==_.xC.OFF||e?.force)}(o,e))return void(c=1);if(function(t){return 2===t||3===t}(c))return;c=2;const i=function(t,e){return e&&e.force&&t===_.xC.OFF}(o,e)||!1;l(i).catch(x.Dx),i&&n.updateSessionState({forcedReplay:"1"})}function p(){3===c&&s?.(),c=0}return{start:d,stop:p,getSessionReplayLink:()=>w(t,n,r,0!==c),isRecording:()=>3===c}}async function R(t,e,n){try{return await n}finally{t.notify(e)}}var O=n(65616),I=n(80642);var N=n(95041);function L(){return void 0!==N.J.Profiler}var M=n(18712);async function D(){try{return await(0,l.B)(P)()}catch(t){u({error:t,source:"Profiler",scriptType:"module"})}}async function P(){return(await n.e(3643).then(n.bind(n,60389))).createRumProfiler}var U=n(64354);var V=n(80056);const $={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"};V.NW;const F=function(){if((0,O.d0)()&&!(0,O.Ww)(O.oc.RECORDS))return{start:S.l,stop:S.l,getReplayStats:()=>{},onRumStart:S.l,isRecording:()=>!1,getSessionReplayLink:()=>{}};let{strategy:t,shouldStartImmediately:e}=function(){let t=0;return{strategy:{start(){t=1},stop(){t=2},isRecording:()=>!1,getSessionReplayLink:S.l},shouldStartImmediately:e=>1===t||0===t&&!e.startSessionReplayRecordingManually}}();return{start:e=>t.start(e),stop:()=>t.stop(),getSessionReplayLink:()=>t.getSessionReplayLink(),onRumStart:function(n,r,o,s,a,c){let u;t=A(r,n,o,s,(function(){u||(a??=m(r,"Datadog Session Replay",(()=>t.stop())),a&&(u=i(a,I.j.REPLAY)));return u}),c),e(r)&&t.start()},isRecording:()=>3===v()&&t.isRecording(),getReplayStats:t=>3===v()?(0,b.lv)(t):void 0}}(),z=function(){let t;return{onRumStart:function(e,n,r,o,i,s){const a=o.findTrackedSession();if(!a)return;if(!function(t,e){return(0,O.d0)()?(0,O.Ww)(O.oc.PROFILES):(0,U.$5)(e.id,(0,U.it)(t.sessionSampleRate,t.profilingSampleRate))}(r,a))return;const c=function(t){let e={status:"starting"};return t.assemble.register((({eventType:t})=>t!==_.bb.VIEW&&t!==_.bb.LONG_TASK&&t!==_.bb.ACTION&&t!==_.bb.VITAL?M.$O:{type:t,_dd:{profiling:e}})),{get:()=>e,set:t=>{e=t}}}(n);(0,l.B)(L)()?(0,l.B)(D)().then((n=>{n?(t=n(r,e,o,c,s,i,void 0),t.start()):c.set({status:"error",error_reason:"failed-to-lazy-load"})})).catch(x.Dx):c.set({status:"error",error_reason:"not-supported-by-browser"})},stop:()=>{t?.stop()}}}(),B=(0,_.AB)(F,z,{startDeflateWorker:m,createDeflateEncoder:i,sdkName:"rum"});!function(t,e,n){const r=t[e];r&&!r.q&&r.version&&s.V.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),t[e]=n,r?.q&&r.q.forEach((t=>function(t,e){return(...n)=>{try{return t(...n)}catch(t){s.V.error(e,t)}}}(t,"onReady callback threw an error:")()))}(N.J,"DD_RUM",B)},86251:(t,e,n)=>{n.d(e,{gX:()=>s,lQ:()=>c,q2:()=>a});var r=n(15103),o=n(86870);let i,s=function(t){return t.BEFORE_UNLOAD="beforeunload",t.CLICK="click",t.DBL_CLICK="dblclick",t.KEY_DOWN="keydown",t.LOAD="load",t.POP_STATE="popstate",t.SCROLL="scroll",t.TOUCH_START="touchstart",t.TOUCH_END="touchend",t.TOUCH_MOVE="touchmove",t.VISIBILITY_CHANGE="visibilitychange",t.PAGE_SHOW="pageshow",t.FREEZE="freeze",t.RESUME="resume",t.DOM_CONTENT_LOADED="DOMContentLoaded",t.POINTER_DOWN="pointerdown",t.POINTER_UP="pointerup",t.POINTER_CANCEL="pointercancel",t.HASH_CHANGE="hashchange",t.PAGE_HIDE="pagehide",t.MOUSE_DOWN="mousedown",t.MOUSE_UP="mouseup",t.MOUSE_MOVE="mousemove",t.FOCUS="focus",t.BLUR="blur",t.CONTEXT_MENU="contextmenu",t.RESIZE="resize",t.CHANGE="change",t.INPUT="input",t.PLAY="play",t.PAUSE="pause",t.SECURITY_POLICY_VIOLATION="securitypolicyviolation",t.SELECTION_CHANGE="selectionchange",t.STORAGE="storage",t.UNHANDLED_REJECTION="unhandledrejection",t}({});function a(t,e,n,r){return c(t,[e],n,r)}function c(t,e,n,{once:s,capture:a,passive:c}={}){const u=(0,r.dm)((t=>{(t.isTrusted||t.__ddIsTrusted||!1!==i)&&(s&&p(),n(t))})),l=c?{capture:a,passive:c}:a,d=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,f=(0,o.W)(d,"addEventListener");function p(){const n=(0,o.W)(d,"removeEventListener");e.forEach((e=>n.call(t,e,u,l)))}return e.forEach((e=>f.call(t,e,u,l))),{stop:p}}},57675:(t,e,n)=>{n.d(e,{h:()=>i});var r=n(86870),o=n(95041);function i(t,e){return(0,r.W)(o.J,"fetch")(t,e)}},80642:(t,e,n)=>{n.d(e,{j:()=>r});let r=function(t){return t[t.REPLAY=1]="REPLAY",t[t.RUM=2]="RUM",t[t.TELEMETRY=4]="TELEMETRY",t[t.PROFILING=6]="PROFILING",t}({})},64354:(t,e,n)=>{function r(t,e){return t*e/100}n.d(e,{$5:()=>i,it:()=>r});const o=new Map;function i(t,e){if(100===e)return!0;
1if(0===e)return!1;const n=o.get(e);if(t===n?.sessionId)return n.decision;const r=function(t,e){const n=1n<<64n;return Number(1111111111111111111n*t%n)<=e/100*Number(n)}(BigInt(`0x${t.split("-")[4]}`),e);return o.set(e,{sessionId:t,decision:r}),r}},81452:(t,e,n)=>{n.d(e,{Xf:()=>h,A2:()=>y,VJ:()=>b,Gk:()=>_,Q6:()=>w});var r=n(54767),o=n(56204),i=n(69161),s=n(2588),a=n(29076);function c(t,e,n){if("object"!=typeof t||null===t)return JSON.stringify(t);const r=u(Object.prototype),o=u(Array.prototype),i=u(Object.getPrototypeOf(t)),s=u(t);try{return JSON.stringify(t,e,n)}catch{return"<error: unable to serialize object>"}finally{r(),o(),i(),s()}}function u(t){const e=t,n=e.toJSON;return n?(delete e.toJSON,()=>{e.toJSON=n}):a.l}const l="No stack, consider using an instance of Error";const d={LOG:"log",CONFIGURATION:"configuration",USAGE:"usage"};var f=n(80056),p=n(94718);const g=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"];let h=function(t){return t.CUSTOMER_DATA_METRIC_NAME="Customer data measures",t.REMOTE_CONFIGURATION_METRIC_NAME="remote configuration metrics",t.RECORDER_INIT_METRICS_TELEMETRY_NAME="Recorder init metrics",t.SEGMENT_METRICS_TELEMETRY_NAME="Segment network request metrics",t.SESSION_MANAGER_INIT_METRICS_TELEMETRY_NAME="Session manager init metrics",t}({});f.R8,f.KG;let m;function v(){return m||(m=new o.dX(100)),m}function y(t,e){(0,p.N)()&&r.V.debug("[Telemetry]",t,e),v().notify({rawEvent:{type:d.LOG,message:t,status:"debug",...e}})}function b(t,e){v().notify({rawEvent:{type:d.LOG,status:"error",...S(t),...e}})}function _(t,e){v().notify({rawEvent:{type:d.LOG,message:t,status:"debug",...e},metricName:t})}function w(t){v().notify({rawEvent:{type:d.USAGE,usage:t}})}function S(t){if(function(t){try{return t instanceof Error||"[object Error]"===Object.prototype.toString.call(t)}catch{return!1}}(t)){const e=(0,i.T)(t);return{error:{kind:e.name,stack:(0,s.Yn)(E(e))},message:e.message}}return{error:{stack:l},message:`Uncaught ${c(t)}`}}function E(t){return t.stack=t.stack.filter((t=>!t.url||g.some((e=>t.url.startsWith(e))))),t}},54767:(t,e,n)=>{n.d(e,{V:()=>r});const r=(0,n(61689).XH)("Datadog Browser SDK:")},86870:(t,e,n)=>{n.d(e,{W:()=>o});var r=n(95041);function o(t,e){const n=r.J;let o;return n.Zone&&"function"==typeof n.Zone.__symbol__&&(o=t[n.Zone.__symbol__(e)]),o||(o=t[e]),o}},20769:(t,e,n)=>{function r(t){return t}n.d(e,{B:()=>r})},15103:(t,e,n)=>{n.d(e,{Dx:()=>u,dm:()=>a,um:()=>c});var r=n(54767),o=n(5489);let i;const{monitored:s,monitor:a,callMonitored:c,monitorError:u}=(0,o.l)(r.V,(t=>i?.(t)))},56204:(t,e,n)=>{n.d(e,{dX:()=>a,cP:()=>s});var r=n(15103),o=n(95041);function i(t){const e=o.J.queueMicrotask;"function"==typeof e?e((0,r.dm)(t)):Promise.resolve().then((0,r.dm)(t))}var s=class{constructor(t){this.onFirstSubscribe=t,this.observers=[]}subscribe(t){return this.addObserver(t),{unsubscribe:()=>this.removeObserver(t)}}notify(t){this.observers.forEach((e=>e(t)))}addObserver(t){this.observers.push(t),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(t){this.observers=this.observers.filter((e=>t!==e)),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}};var a=class extends s{constructor(t,e){super(),this.maxBufferSize=t,this.onDrop=e,this.buffer=[],this.droppedCount=0}notify(t){this.buffer.push(t),this.buffer.length>this.maxBufferSize&&(this.buffer.shift(),this.droppedCount++),super.notify(t)}subscribe(t){let e=!1;const n={unsubscribe:()=>{e=!0,this.removeObserver(t)}};return i((()=>{for(const n of this.buffer){if(e)return;t(n)}e||this.addObserver(t)})),n}unbuffer(){i((()=>{this.droppedCount>0&&this.onDrop&&this.onDrop(this.droppedCount),this.maxBufferSize=this.buffer.length=0}))}}},69161:(t,e,n)=>{n.d(e,{T:()=>i});var r=n(2788);const o="?";function i(t){const e=[];let n=g(t,"stack");const r=String(t);if(n?.startsWith(r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach((t=>{const n=function(t){const e=c.exec(t);if(!e)return;const n=0===e[2]?.indexOf("native"),r=0===e[2]?.indexOf("eval"),i=u.exec(e[2]);r&&i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]);return{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||o,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){const e=l.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||o,line:e[3]?+e[3]:void 0,url:e[2]}}(t)||function(t){const e=d.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||o,line:+e[3],url:e[2]}}(t)||function(t){const e=f.exec(t);if(!e)return;const n=e[3]&&e[3].indexOf(" > eval")>-1,r=p.exec(e[3]);n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0);return{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||o,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=o),e.push(n))})),e.length>0&&function(){if(void 0!==m)return m;
1class t extends Error{constructor(){super(),this.name="Error"}}const[e,n]=[t,Error].map((t=>new t));return m=h(Object.getPrototypeOf(e))&&n.stack!==e.stack,m}()&&t instanceof Error){const n=[];let r=t;for(;(r=Object.getPrototypeOf(r))&&h(r);){const t=r.constructor?.name||o;n.push(t)}for(let t=n.length-1;t>=0&&e[0]?.func===n[t];t--)e.shift()}return{message:g(t,"message"),name:g(t,"name"),stack:e}}const s="((?:blob|native|eval|<anonymous>|[a-zA-Z][a-zA-Z0-9+.-]*:\\/\\/|\\w+\\.|\\/).*?)",a="(?::(\\d+))",c=new RegExp(`^\\s*at (.*?) ?\\(${s}${a}?${a}?\\)?\\s*$`,"i"),u=new RegExp(`\\((\\S*)${a}${a}\\)`);const l=new RegExp(`^\\s*at\\s*(?:(.*)?(?: @))?\\s*${s}${a}?${a}??\\s*$`,"i");const d=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;const f=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,p=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function g(t,e){return(0,r.OE)(t)&&"string"==typeof t[e]?t[e]:void 0}function h(t){return String(t.constructor).startsWith("class ")}let m},2588:(t,e,n)=>{n.d(e,{Yn:()=>s,uC:()=>i});var r=n(15103),o=n(69161);function i(t){const e=new Error(t);let n;return e.name="HandlingStack",(0,r.um)((()=>{const t=(0,o.T)(e);t.stack=t.stack.slice(2),n=s(t)})),n}function s(t){let e=function(t){return`${t.name||"Error"}: ${t.message}`}(t);return t.stack.forEach((t=>{const n="?"===t.func?"<anonymous>":t.func,r=t.args&&t.args.length>0?`(${t.args.join(", ")})`:"",o=t.line?`:${t.line}`:"",i=t.line&&t.column?`:${t.column}`:"";e+=`\n at ${n}${r} @ ${t.url}${o}${i}`})),e}},21070:(t,e,n)=>{n.d(e,{DJ:()=>a,vG:()=>u,wg:()=>s,yb:()=>c});var r=n(15103),o=n(86870),i=n(95041);function s(t,e){return(0,o.W)(i.J,"setTimeout")((0,r.dm)(t),e)}function a(t){(0,o.W)(i.J,"clearTimeout")(t)}function c(t,e){return(0,o.W)(i.J,"setInterval")((0,r.dm)(t),e)}function u(t){(0,o.W)(i.J,"clearInterval")(t)}},33274:(t,e,n)=>{n.d(e,{_m:()=>r,iH:()=>o,wh:()=>i});const r=1024,o=1024*r;function i(t){if(1===t.length)return t[0];const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}},29076:(t,e,n)=>{n.d(e,{l:()=>i,n:()=>o});var r=n(21070);function o(t,e,n){const o=void 0===n?.leading||n.leading,i=void 0===n?.trailing||n.trailing;let s,a,c=!1;return{throttled:(...n)=>{c?s=n:(o?t(...n):s=n,c=!0,a=(0,r.wg)((()=>{i&&s&&t(...s),c=!1,s=void 0}),e))},cancel:()=>{(0,r.DJ)(a),c=!1,s=void 0}}}function i(){}},65616:(t,e,n)=>{n.d(e,{Ww:()=>a,Y9:()=>s,d0:()=>c,oc:()=>i});var r=n(54767),o=n(95041);let i=function(t){return t.RECORDS="records",t.PROFILES="profiles",t}({});function s(){const t=o.J.DatadogEventBridge;if(t)return{getCapabilities:()=>JSON.parse(t.getCapabilities?.()||"[]"),getPrivacyLevel:()=>t.getPrivacyLevel?.(),getIsTraceSampled:()=>JSON.parse(t.getIsTraceSampled?.()||"null"),getAllowedWebViewHosts:()=>JSON.parse(t.getAllowedWebViewHosts()),send(e,n,r){const o=r?{id:r}:void 0;t.send(JSON.stringify({eventType:e,event:n,view:o}))}}}function a(t){const e=s();return!!e&&e.getCapabilities().includes(t)}function c(t=o.J.location?.hostname){return s()?.getAllowedWebViewHosts().some((e=>function(t,e){if(!e.includes("*"))return t===e||t.endsWith(`.${e}`);const n=e.split("*");if(2!==n.length)return r.V.error(`Invalid WebView host pattern "${e}": only one wildcard (*) is supported.`),!1;const[o,i]=n;return t.length>o.length+i.length&&t.startsWith(o)&&t.endsWith(i)}(t,e)))??!1}},18712:(t,e,n)=>{n.d(e,{$O:()=>s,ab:()=>o,ug:()=>i});var r=n(7481);function o(){let t=[];return{register:e=>(t.push(e),{unregister(){t=t.filter((t=>t!==e))}}),trigger(e){const n=[];for(const r of t){const t=r(e);if("DISCARDED"===t)return i;"SKIPPED"!==t&&n.push(t)}return(0,r.kg)(...n)}}}const i="DISCARDED",s="SKIPPED"},92761:(t,e,n)=>{n.d(e,{S:()=>a});var r=n(2788),o=n(7481),i=n(61689);function s(t,e){switch(e.type){case"string":return`"${t}" must be a non-empty string`;case"number":return void 0!==e.min&&void 0!==e.max?`"${t}" must be a number between ${e.min} and ${e.max}`:void 0!==e.min?`"${t}" must be a number greater than or equal to ${e.min}`:void 0!==e.max?`"${t}" must be a number less than or equal to ${e.max}`:`"${t}" must be a finite number`;case"percentage":return`"${t}" must be a number between 0 and 100`;case"boolean":return`"${t}" must be a boolean`;case"site":return`"${t}" must be a valid Datadog site. ${i.xG} ${i.fH}/getting_started/site/.`;case"match-option":return`"${t}" must be a string, RegExp, or function`;case"enum":return`"${t}" must be one of: "${f(e.values).join('", "')}"`;case"union":return`"${t}" does not match any expected type`;case"schema":return`"${t}" is not a valid object`;case"function":return`"${t}" must be a function`}}
1function a(t,e,n){if(t&&"object"==typeof t)return c(e,t,n);n.error("Configuration must be an object")}function c(t,e,n){const r={};for(const[i,a]of Object.entries(t)){const t=e[i],c=a.multiple?u(a,t,n):d(a,t,n);if(void 0===c){if(null!=t&&""!==t){if(n.error(s(i,a)),a.required||!1!==a.strict)return}else if(a.required)return void n.error(`"${i}" is required`);r[i]="default"in a?(0,o.Go)(a.default):void 0}else r[i]=c}return r}function u(t,e,n){if(null==e)return;if("enum"===t.type&&t.allowAll&&"all"===e)return f(t.values).slice();const r=Array.isArray(e)?e:[e],o=[];for(const e of r){const r=d(t,e,n);if(void 0===r){if(!1!==t.strict)return}else o.push(r)}return!1===t.strict&&0===o.length&&r.length>0?void 0:o}const l=/(datadog|ddog|datad0g|dd0g)/;function d(t,e,n){if("schema"===t.type){if("object"!=typeof e||null===e)return;return c(t.schema,e,n)}if("union"!==t.type){if(null!=e)switch(t.type){case"function":return"function"==typeof e?e:void 0;case"string":return"string"==typeof e&&e.length>0?e:void 0;case"number":return"number"==typeof e&&Number.isFinite(e)&&(void 0===t.min||e>=t.min)&&(void 0===t.max||e<=t.max)?e:void 0;case"percentage":return(0,r.fp)(e)?e:void 0;case"boolean":return"boolean"==typeof e?e:!1===t.strict?!!e:void 0;case"site":if("string"!=typeof e||!l.test(e))return;return e;case"match-option":return(0,r.Vl)(e)?e:void 0;case"enum":return"string"==typeof e&&f(t.values).includes(e)?e:void 0}}else{if(null==e)return;for(const r of t.variants){const t=d(r,e,n);if(void 0!==t)return t}}}function f(t){return e=t,Array.isArray(e)?t:Object.values(t);var e}},5489:(t,e,n)=>{n.d(e,{l:()=>o});var r=n(94718);function o(t,e){function n(t){return function(...e){return o(t,this,e)}}function o(t,e,n){try{return t.apply(e,n)}catch(t){i(t)}}function i(n){const o=e=>{(0,r.N)()&&t.error("[MONITOR]",e)};o(n);try{e(n)}catch(n){o(n)}}return{monitored:function(t,e,r){r.value=n(r.value)},monitor:n,callMonitored:o,monitorError:i}}},4751:(t,e,n)=>{function r(t){return 0!==t&&100*Math.random()<=t}n.d(e,{i:()=>r})},48678:(t,e,n)=>{n.d(e,{$H:()=>s,$S:()=>f,A3:()=>y,FR:()=>h,Gw:()=>d,M8:()=>p,MA:()=>i,OY:()=>r,Oc:()=>g,Zj:()=>l,_O:()=>b,d6:()=>v,iW:()=>o,jR:()=>m,nx:()=>c,uc:()=>w,vk:()=>u,x3:()=>a});const r=1e3,o=60*r,i=60*o,s=31536e6;function a(){return(new Date).getTime()}function c(){return a()}function u(t,e){return e-t}function l(t){return"number"!=typeof t?t:Math.round(1e6*t)}function d(t,e){return t+e}function f(){return performance.now()}function p(){return{relative:f(),timeStamp:c()}}function g(){return{relative:0,timeStamp:w()}}function h(t){return{relative:t,timeStamp:S(t)}}function m(t){return{relative:v(t),timeStamp:t}}function v(t){return t-w()}function y(t){return t<s}function b(){return Math.round(a()-d(w(),performance.now()))}let _;function w(){return void 0===_&&(_=performance.timing?.navigationStart??performance.timeOrigin),_}function S(t){const e=a()-performance.now();return e>w()?Math.round(d(e,t)):function(t){return Math.round(d(w(),t))}(t)}},22084:(t,e,n)=>{n.d(e,{Hg:()=>c,np:()=>a,ns:()=>s});var r=n(97165),o=n(48678),i=n(80056);function s(t,e,n){return{build:(r,o)=>c({proxy:t.proxy,site:t.site,path:`/api/v2/${e}`,parameters:u(t,e,r,o,n)}),trackType:e}}function a({replica:t,proxy:e,source:n},r){if(t)return s({clientToken:t.clientToken,proxy:e,source:n,site:i.NW},r,"rum"===r?[`application.id=${t.applicationId}`]:void 0)}function c({proxy:t,site:e=i.NW,path:n,parameters:o="",subdomain:s}){let a=n;if(o&&(a+=`?${o}`),"string"==typeof t){let e=`${(0,r.l2)(t)}?ddforward=${encodeURIComponent(a)}`;return s&&(e+=`&ddforwardSubdomain=${s}`),e}if("function"==typeof t)return t({path:n,parameters:o,subdomain:s});const c=e.split("."),u=c.pop();let l=`browser-intake-${c.join("-")}.${u}`;return s&&(l=`${s}.${l}`),`https://${l}${a}`}function u({clientToken:t,source:e="browser"},n,r,{retry:i,encoding:s},a=[]){const c=[`ddsource=${e}`,`dd-api-key=${t}`,`dd-evp-origin-version=${encodeURIComponent("7.12.0")}`,"dd-evp-origin=browser",`dd-request-id=${l()}`].concat(a);return s&&c.push(`dd-evp-encoding=${s}`),"rum"===n&&(c.push(`batch_time=${(0,o.nx)()}`,`_dd.api=${r}`),i&&c.push(`_dd.retry_count=${i.count}`,`_dd.retry_after=${i.lastFailureStatus}`)),c.join("&")}function l(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,l)}},80056:(t,e,n)=>{n.d(e,{Bb:()=>r,KG:()=>a,NW:()=>o,R8:()=>s,dV:()=>i,wo:()=>u});const r="datad0g.com",o="datadoghq.com",i="datadoghq.eu",s="ddog-gov.com",a="us2.ddog-gov.com",c=["ddsource","dd-api-key","dd-request-id"];function u(t){return c.every((e=>t.includes(e)))}},94718:(t,e,n)=>{n.d(e,{N:()=>i,p:()=>o});let r=!1;function o(t){r=t}function i(){return r}},61689:(t,e,n)=>{n.d(e,{JZ:()=>s,XH:()=>c,Z9:()=>a,bP:()=>i,fH:()=>r,xG:()=>
1o});const r="https://docs.datadoghq.com",o="More details:",i={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},s=console,a={log:s.log,debug:s.debug,info:s.info,warn:s.warn,error:s.error};function c(t){return{debug:a.debug.bind(s,t),log:a.log.bind(s,t),info:a.info.bind(s,t),warn:a.warn.bind(s,t),error:a.error.bind(s,t)}}},95041:(t,e,n)=>{n.d(e,{J:()=>r,W:()=>o});const r=globalThis,o="WorkerGlobalScope"in r},7481:(t,e,n)=>{n.d(e,{Go:()=>s,kg:()=>a});var r=n(2788);function o(t,e){return i(t,e,function(){const t=new WeakSet;return{hasAlreadyBeenSeen(e){const n=t.has(e);return n||t.add(e),n}}}())}function i(t,e,n){if(void 0===e)return t;if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e.source,e.flags);if(n.hasAlreadyBeenSeen(e))return;if(Array.isArray(e)){const r=Array.isArray(t)?t:[];for(let t=0;t<e.length;++t)r[t]=i(r[t],e[t],n);return r}const o="object"===(0,r.Pw)(t)?t:{};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&"__proto__"!==t&&(o[t]=i(o[t],e[t],n));return o}function s(t){return o(void 0,t)}function a(...t){let e;for(const n of t)null!=n&&(e=o(e,n));return e}},2788:(t,e,n)=>{function r(t){return null===t?"null":Array.isArray(t)?"array":typeof t}function o(t){return"object"===r(t)}function i(t){return"number"==typeof t&&t>=0&&t<=100}function s(t){return"string"==typeof t||t instanceof RegExp||"function"==typeof t}n.d(e,{OE:()=>o,Pw:()=>r,Vl:()=>s,fp:()=>i})},97165:(t,e,n)=>{n.d(e,{AY:()=>i,L2:()=>s,c$:()=>a,l2:()=>o});var r=n(95041);function o(t){return a(t,r.J.document?.baseURI??r.J.location?.href).href}function i(t){try{return!!a(t)}catch{return!1}}function s(t){const e=a(t).pathname;return"/"===e[0]?e:`/${e}`}function a(t,e){const n=function(){if(!c){let t=!1;try{t="http://a/b"===new r.J.URL("b","http://a").href}catch{}c=t?r.J.URL:function(){if(!u){let t,e;try{t=document.createElement("iframe"),t.style.display="none",document.body.appendChild(t),e=t.contentWindow??r.J}catch{e=r.J}u={URL:e.URL},t?.remove()}return u}().URL}return c}();try{return void 0!==e?new n(t,e):new n(t)}catch(t){throw new Error(`Failed to construct URL: ${String(t)}`)}}let c,u}}]);
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.