"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[24486],{8678:(e,n,t)=>{t.d(n,{r:()=>a,y:()=>u});var r=t(40812),o=t(64933),i=t(94776);function a(e){var n=(0,i.f0)({version:"4.42.0",onReady:function(e){e()}},e);return Object.defineProperty(n,"_setDebug",{get:function(){return o.yD},enumerable:!1}),n}function u(e,n,t){var o=e[n];e[n]=t,o&&o.q&&o.q.forEach((function(e){return(0,r.Z)(e,"onReady callback threw an error:")()}))}},83206:(e,n,t)=>{t.d(n,{O:()=>i,y:()=>a});var r=t(64933),o=t(59693);function i(e,n,t,r){return a(e,[n],t,r)}function a(e,n,t,i){var a=void 0===i?{}:i,u=a.once,c=a.capture,s=a.passive,f=(0,r.zk)(u?function(e){v(),t(e)}:t),l=s?{capture:c,passive:s}:c,d=(0,o.I)(e,"addEventListener");function v(){var t=(0,o.I)(e,"removeEventListener");n.forEach((function(n){return t.call(e,n,f,l)}))}return n.forEach((function(n){return d.call(e,n,f,l)})),{stop:v}}},49647:(e,n,t)=>{t.d(n,{MI:()=>u,WQ:()=>d,d8:()=>c,ej:()=>s,kT:()=>f,oX:()=>l});var r,o=t(13842),i=t(25026),a=t(88129),u=i.WT;function c(e,n,t,r){var o=new Date;o.setTime(o.getTime()+t);var i="expires=".concat(o.toUTCString()),a=r&&r.crossSite?"none":"strict",u=r&&r.domain?";domain=".concat(r.domain):"",c=r&&r.secure?";secure":"";document.cookie="".concat(e,"=").concat(n,";").concat(i,";path=/;samesite=").concat(a).concat(u).concat(c)}function s(e){return(0,a.MY)(document.cookie,e)}function f(e,n){c(e,"",0,n)}function l(e){if(void 0===document.cookie||null===document.cookie)return!1;try{var n="dd_cookie_test_".concat((0,a.DO)()),t="test";c(n,t,i.yR,e);var r=s(n)===t;return f(n,e),r}catch(e){return o.j.error(e),!1}}function d(){if(void 0===r){for(var e="dd_site_test_".concat((0,a.DO)()),n=window.location.hostname.split("."),t=n.pop();n.length&&!s(e);)t="".concat(n.pop(),".").concat(t),c(e,"test",i.WT,{domain:t});f(e,{domain:t}),r=t}return r}},18679:(e,n,t)=>{t.d(n,{y:()=>s});var r,o=t(55801),i=t(64933),a=t(73473),u=t(25026),c=t(70170);function s(){var e;return r||(e=new a.y((function(){if(window.fetch)return(0,o.Su)(window,"fetch",(function(n){return function(t,r){var o,a=(0,i.L6)(f,null,[e,t,r]);return a?(o=n.call(this,a.input,a.init),(0,i.L6)(l,null,[e,o,a])):o=n.call(this,t,r),o}})).stop})),r=e),r}function f(e,n,t){var r=t&&t.method||n instanceof Request&&n.method||"GET",o=n instanceof Request?n.url:(0,c.D5)(String(n)),i={state:"start",init:t,input:n,method:r,startClocks:(0,u.$I)(),url:o};return e.notify(i),i}function l(e,n,t){var r=function(n){var r=t;r.state="resolve","stack"in n||n instanceof Error?(r.status=0,r.isAborted=n instanceof DOMException&&n.code===DOMException.ABORT_ERR,r.error=n):"status"in n&&(r.response=n,r.responseType=n.type,r.status=n.status,r.isAborted=!1),e.notify(r)};n.then((0,i.zk)(r),(0,i.zk)(r))}},9024:(e,n,t)=>{t.d(n,{PT:()=>f,Pd:()=>s,k$:()=>c});var r=t(57549),o=t(73473),i=t(94776),a=t(251),u=t(83206),c={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function s(){var e=new o.y((function(){var n=(0,r.W_)(r.uh.PAGEHIDE),t=(0,u.y)(window,["visibilitychange","freeze","pagehide"],(function(t){"pagehide"===t.type&&n?e.notify({reason:c.PAGEHIDE}):"visibilitychange"===t.type&&"hidden"===document.visibilityState?e.notify({reason:c.HIDDEN}):"freeze"===t.type&&e.notify({reason:c.FROZEN})}),{capture:!0}).stop,o=a.Z;return n||(o=(0,u.O)(window,"beforeunload",(function(){e.notify({reason:c.UNLOADING})})).stop),function(){t(),o()}}));return e}function f(e){return(0,i.q9)((0,i.TT)(c),e)}},10193:(e,n,t)=>{t.d(n,{T:()=>o});var r=t(83206);function o(e,n){if(document.readyState===e||"complete"===document.readyState)n();else{var t="complete"===e?"load":"DOMContentLoaded";(0,r.O)(window,t,n,{once:!0})}}},5343:(e,n,t)=>{t.d(n,{S:()=>l});var r,o=t(55801),i=t(73473),a=t(25026),u=t(70170),c=t(94162),s=t(83206),f=new WeakMap;function l(){var e;return r||(e=new i.y((function(){var n=(0,o.Lm)(XMLHttpRequest.prototype,"open",{before:d}).stop,t=(0,o.Lm)(XMLHttpRequest.prototype,"send",{before:function(){v.call(this,e)}}).stop,r=(0,o.Lm)(XMLHttpRequest.prototype,"abort",{before:p}).stop;return function(){n(),t(),r()}})),r=e),r}function d(e,n){f.set(this,{state:"open",method:e,url:(0,u.D5)(String(n))})}function v(e){var n=this,t=f.get(this);if(t){var r=t;r.state="start",r.startTime=(0,a._q)(),r.startClocks=(0,a.$I)(),r.isAborted=!1,r.xhr=this;var i=!1,u=(0,o.Lm)(this,"onreadystatechange",{before:function(){this.readyState===XMLHttpRequest.DONE&&l()}}).stop,l=function(){if(d(),u(),!i){i=!0;var o=t;o.state="complete",o.duration=(0,a._J)(r.startClocks.timeStamp,(0,a.n$)()),o.status=n.status,e.notify((0,c.mv)(o))}},d=(0,s.O)(this,"loadend",l).stop;e.notify(r)}}function p(){var e=f.get(this);e&&(e.isAborted=!0)}},27662:(e,n,t)=>{t.d(n,{Jj:()=>S,HZ:()=>E,JZ:()=>k,fP:()=>_});var r=t(49647),o=t(40812),i=t(13842),a=t(57549),u=t(25026),c=t(73603),s=t(51962),f=t(94162),l=t(94776),d=t(70170),v=t(88129),p=t(11095),h={logs:"logs",rum:"rum",sessionReplay:"session-replay"},y={logs:"logs",rum:"rum",sessionReplay:"replay"};function m(e,n,t){var r=function(e,n){var t="/api/v2/".concat(y[n]),r=e.proxy,o=e.proxyUrl;if(r){var i=(0,d.D5)(r);return function(e){return"".concat(i,"?ddforward=").concat(encodeURIComponent("".concat(t,"?").concat(e)))}}var a=function(e,n){var t=e.site,r=void 0===t?p.D_:t,o=e.internalAnalyticsSubdomain;if(o&&r===p.D_)return"".concat(o,".").concat(p.D_);var i=r.split("."),a=i.pop(),u=r!==p.G8?"".concat(h[n],"."):"";return"".concat(u,"browser-intake-").concat(i.join("-"),".").concat(a)}(e,n);if(void 0===r&&o){var u=(0,d.D5)(o);return function(e){return"".concat(u,"?ddforward=").concat(encodeURIComponent("https://".concat(a).concat(t,"?").concat(e)))}}return function(e){return"https://".concat(a).concat(t,"?").concat(e)}}(e,n);return{build:function(o,i,c){var s=function(e,n,t,r,o,i){var c=e.clientToken,s=e.internalAnalyticsSubdomain,f=["sdk_version:".concat("4.42.0"),"api:".concat(r)].concat(t);o&&(0,a.W_)(a.uh.COLLECT_FLUSH_REASON)&&f.push("flush_reason:".concat(o));i&&f.push("retry_count:".concat(i.count),"retry_after:".concat(i.lastFailureStatus));var l=["ddsource=browser","ddtags=".concat(encodeURIComponent(f.join(","))),"dd-api-key=".concat(c),"dd-evp-origin-version=".concat(encodeURIComponent("4.42.0")),"dd-evp-origin=browser","dd-request-id=".concat((0,v.DO)())];"rum"===n&&l.push("batch_time=".concat((0,u.n$)()));s&&l.reverse();return l.join("&")}(e,n,t,o,i,c);return r(s)},urlPrefix:r(""),endpointType:n}}var g=/[^a-z0-9_:./-]/;function b(e,n){var t=200-e.length-1;(n.length>t||g.test(n))&&i.j.warn("".concat(e," value doesn't meet tag requirements and will be sanitized"));var r=n.replace(/,/g,"_");return"".concat(e,":").concat(r)}function w(e){var n=function(e){var n=e.env,t=e.service,r=e.version,o=e.datacenter,i=[];return n&&i.push(b("env",n)),t&&i.push(b("service",t)),r&&i.push(b("version",r)),o&&i.push(b("datacenter",o)),i}(e),t=function(e,n){return{logsEndpointBuilder:m(e,"logs",n),rumEndpointBuilder:m(e,"rum",n),sessionReplayEndpointBuilder:m(e,"sessionReplay",n)}}(e,n),r=(0,l.TT)(t).map((function(e){return e.urlPrefix})),o=function(e,n,t){if(!e.replica)return;var r=(0,l.f0)({},e,{site:p.D_,clientToken:e.replica.clientToken}),o={logsEndpointBuilder:m(r,"logs",t),rumEndpointBuilder:m(r,"rum",t)};return n.push.apply(n,(0,l.TT)(o).map((function(e){return e.urlPrefix}))),(0,l.f0)({applicationId:e.replica.applicationId},o)}(e,r,n);return(0,l.f0)({isIntakeUrl:function(e){return r.some((function(n){return 0===e.indexOf(n)}))},replica:o,site:e.site||p.D_},t)}var S={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function _(e){var n,t,r;if(e&&e.clientToken){var d=null!==(n=e.sessionSampleRate)&&void 0!==n?n:e.sampleRate;if(void 0===d||(0,c.zz)(d))if(void 0===e.telemetrySampleRate||(0,c.zz)(e.telemetrySampleRate)){if(void 0===e.telemetryConfigurationSampleRate||(0,c.zz)(e.telemetryConfigurationSampleRate))return Array.isArray(e.enableExperimentalFeatures)&&(0,a.vn)(e.enableExperimentalFeatures.filter((function(e){return(0,f.E5)(a.uh,e)}))),(0,l.f0)({beforeSend:e.beforeSend&&(0,o.Z)(e.beforeSend,"beforeSend threw an error:"),cookieOptions:E(e),sessionSampleRate:null!==d&&void 0!==d?d:100,telemetrySampleRate:null!==(t=e.telemetrySampleRate)&&void 0!==t?t:20,telemetryConfigurationSampleRate:null!==(r=e.telemetryConfigurationSampleRate)&&void 0!==r?r:5,service:e.service,silentMultipleInit:!!e.silentMultipleInit,batchBytesLimit:16*s.Hi,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*u.WT,batchMessagesLimit:50,messageBytesLimit:256*s.Hi},w(e));i.j.error("Telemetry Configuration Sample Rate should be a number between 0 and 100")}else i.j.error("Telemetry Sample Rate should be a number between 0 and 100");else i.j.error("Session Sample Rate should be a number between 0 and 100")}else i.j.error("Client Token is not configured, we will not send any data.")}function E(e){var n={};return n.secure=function(e){return!!e.useSecureSessionCookie||!!e.useCrossSiteSessionCookie}(e),n.crossSite=!!e.useCrossSiteSessionCookie,e.trackSessionAcrossSubdomains&&(n.domain=(0,r.WQ)()),n}function k(e){var n,t,r=null!==(n=e.proxy)&&void 0!==n?n:e.proxyUrl;return{session_sample_rate:null!==(t=e.sessionSampleRate)&&void 0!==t?t:e.sampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,use_before_send:!!e.beforeSend,use_cross_site_session_cookie:e.useCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:void 0!==r?!!r:void 0,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,track_resources:e.trackResources,track_long_task:e.trackLongTasks}}},11095:(e,n,t)=>{t.d(n,{DZ:()=>r,D_:()=>o,Ds:()=>i,G8:()=>a,y7:()=>u});var r="datad0g.com",o="datadoghq.com",i="datadoghq.eu",a="ap1.datadoghq.com",u="ddog-gov.com"},86296:(e,n,t)=>{t.d(n,{a:()=>d});var r=t(1307),o=t(45242),i=t(73473),a=t(13842),u=t(64933),c=t(68566),s=t(94776),f=t(19012),l={};function d(e){var n=e.map((function(e){return l[e]||(l[e]=function(e){var n=new i.y((function(){var t=console[e];return console[e]=function(){for(var r=[],i=0;i{t.d(n,{AP:()=>s,K$:()=>c,P3:()=>l,Xp:()=>v,jN:()=>d,un:()=>f});var r=t(1307),o=t(64933),i=t(68566),a=t(251),u=t(19012),c="No stack, consider using an instance of Error";function s(e){var n=e.stackTrace,t=e.originalError,o=e.handlingStack,a=e.startClocks,s=e.nonErrorPrefix,d=e.source,v=e.handling,p=t instanceof Error,h=function(e,n,t,r){return(null===e||void 0===e?void 0:e.message)&&(null===e||void 0===e?void 0:e.name)?e.message:n?"Empty message":"".concat(t," ").concat((0,u.l)((0,i.N)(r)))}(n,p,s,t),y=function(e,n){if(void 0===n)return!1;if(e)return!0;return n.stack.length>0&&(n.stack.length>1||void 0!==n.stack[0].url)}(p,n)?l(n):c,m=p?function(e,n){var t=e,o=[];for(;(null===t||void 0===t?void 0:t.cause)instanceof Error&&o.length<10;){var i=(0,r._)(t.cause);o.push({message:t.cause.message,source:n,type:null===i||void 0===i?void 0:i.name,stack:i&&l(i)}),t=t.cause}return o.length?o:void 0}(t,d):void 0;return{startClocks:a,source:d,handling:v,handlingStack:o,originalError:t,type:null===n||void 0===n?void 0:n.name,message:h,stack:y,causes:m,fingerprint:f(t)}}function f(e){return e instanceof Error&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function l(e){var n=d(e);return e.stack.forEach((function(e){var t="?"===e.func?"":e.func,r=e.args&&e.args.length>0?"(".concat(e.args.join(", "),")"):"",o=e.line?":".concat(e.line):"",i=e.line&&e.column?":".concat(e.column):"";n+="\n at ".concat(t).concat(r," @ ").concat(e.url).concat(o).concat(i)})),n}function d(e){return"".concat(e.name||"Error",": ").concat(e.message)}function v(){var e,n=new Error;if(!n.stack)try{throw n}catch(e){(0,a.Z)()}return(0,o.L6)((function(){var t=(0,r._)(n);t.stack=t.stack.slice(2),e=l(t)})),e}},42419:(e,n,t)=>{t.d(n,{z:()=>r});var r={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"}},40403:(e,n,t)=>{t.d(n,{L:()=>f});var r=t(25026),o=t(55801),i=t(1307),a=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function u(e){var n=function(e){return(0,o.Lm)(window,"onerror",{before:function(n,t,r,o,u){var c;if(u instanceof Error)c=(0,i._)(u);else{var s=[{url:t,column:o,line:r}],f=function(e){var n,t,r;"[object String]"==={}.toString.call(e)&&(t=(n=a.exec(e))[1],r=n[2]);return{name:t,message:r}}(n);c={name:f.name,message:f.message,stack:s}}e(c,null!==u&&void 0!==u?u:n)}})}(e).stop,t=function(e){return(0,o.Lm)(window,"onunhandledrejection",{before:function(n){var t=n.reason||"Empty reason",r=(0,i._)(t);e(r,t)}})}(e).stop;return{stop:function(){n(),t()}}}var c=t(45242),s=t(42419);function f(e){return u((function(n,t){e.notify((0,c.AP)({stackTrace:n,originalError:t,startClocks:(0,r.$I)(),nonErrorPrefix:"Uncaught",source:s.z.SOURCE,handling:"unhandled"}))}))}},15123:(e,n,t)=>{t.d(n,{K:()=>a});var r=t(65483),o=t(25026),i=t(42419);function a(e,n,t){var a=0,u=!1;return{isLimitReached:function(){if(0===a&&(0,r.iK)((function(){a=0}),o.yR),(a+=1)<=n||u)return u=!1,!1;if(a===n+1){u=!0;try{t({message:"Reached max number of ".concat(e,"s by minute: ").concat(n),source:i.z.AGENT,startClocks:(0,o.$I)()})}finally{u=!1}}return!0}}}},73670:(e,n,t)=>{t.d(n,{_:()=>s,v:()=>f});var r=t(45242),o=t(64933),i=t(73473),a=t(83206),u=t(94776),c=t(88129),s={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function f(e){var n,t=[];(0,u.q9)(e,s.cspViolation)&&t.push(n=new i.y((function(){return(0,a.O)(document,"securitypolicyviolation",(function(e){n.notify(function(e){var n=s.cspViolation,t="'".concat(e.blockedURI,"' blocked by '").concat(e.effectiveDirective,"' directive");return{type:s.cspViolation,subtype:e.effectiveDirective,message:"".concat(n,": ").concat(t),stack:l(e.effectiveDirective,e.originalPolicy?"".concat(t,' of the policy "').concat((0,c._z)(e.originalPolicy,100,"..."),'"'):"no policy",e.sourceFile,e.lineNumber,e.columnNumber)}}(e))})).stop})));var r=e.filter((function(e){return e!==s.cspViolation}));return r.length&&t.push(function(e){var n=new i.y((function(){if(window.ReportingObserver){var t=(0,o.zk)((function(e){return e.forEach((function(e){var t,r,o;n.notify((r=(t=e).type,o=t.body,{type:r,subtype:o.id,message:"".concat(r,": ").concat(o.message),stack:l(o.id,o.message,o.sourceFile,o.lineNumber,o.columnNumber)}))}))})),r=new window.ReportingObserver(t,{types:e,buffered:!0});return r.observe(),function(){r.disconnect()}}}));return n}(r)),i.$.apply(void 0,t)}function l(e,n,t,o,i){return t&&(0,r.P3)({name:e,message:n,stack:[{func:"?",url:t,line:o,column:i}]})}},78981:(e,n,t)=>{t.d(n,{T:()=>o,s:()=>i});var r=t(25026),o=4*r.dV,i=15*r.yR},89713:(e,n,t)=>{t.d(n,{HX:()=>D});var r,o=t(69029),i=t(25026),a=t(83206),u=t(65483),c=t(49647),s=t(12172),f=t(94776),l=t(94162),d=t(88129),v=t(78981),p=/^([a-z]+)=([a-z0-9-]+)$/,h="&",y="_dd_s",m=[];function g(e,n){var t;if(void 0===n&&(n=0),r||(r=e),e===r)if(n>=100)S();else{var o,i=k();if(b()){if(i.lock)return void w(e,n);if(o=(0,d.DO)(),i.lock=o,E(i,e.options),(i=k()).lock!==o)return void w(e,n)}var a=e.process(i);if(b()&&(i=k()).lock!==o)w(e,n);else{if(a&&_(a,e.options),b()&&(!a||!R(a))){if((i=k()).lock!==o)return void w(e,n);delete i.lock,E(i,e.options),a=i}null===(t=e.after)||void 0===t||t.call(e,a||i),S()}}else m.push(e)}function b(){return(0,s.m)()}function w(e,n){(0,u.iK)((function(){g(e,n+1)}),10)}function S(){r=void 0;var e=m.shift();e&&g(e)}function _(e,n){R(e)?O(n):(e.expire=String((0,i.m6)()+v.s),E(e,n))}function E(e,n){(0,c.d8)(y,function(e){return(0,f.qP)(e).map((function(e){var n=e[0],t=e[1];return"".concat(n,"=").concat(t)})).join(h)}(e),v.s,n)}function k(){var e=(0,c.ej)(y),n={};return function(e){return void 0!==e&&(-1!==e.indexOf(h)||p.test(e))}(e)&&e.split(h).forEach((function(e){var t=p.exec(e);if(null!==t){var r=t[1],o=t[2];n[r]=o}})),n}function O(e){(0,c.kT)(y,e)}function R(e){return(0,l.Qr)(e)}var C=t(73473),T=t(251);function x(e,n,t){var r=new C.y,o=new C.y,a=(0,u.Zi)((function(){g({options:e,process:function(e){return p(e)?void 0:{}},after:f})}),c.MI),s=function(){var e=k();if(p(e))return e;return{}}();function f(e){return p(e)||(e={}),l()&&(!function(e){return s.id!==e.id||s[n]!==e[n]}(e)?s=e:(s={},o.notify())),e}function l(){return void 0!==s[n]}function p(e){return(void 0===e.created||(0,i.m6)()-Number(e.created){t.d(n,{L7:()=>i,QB:()=>a,Y9:()=>o});var r=t(49647);function o(){return Boolean(window._DATADOG_SYNTHETICS_INJECTS_RUM||(0,r.ej)("datadog-synthetics-injects-rum"))}function i(){var e=window._DATADOG_SYNTHETICS_PUBLIC_ID||(0,r.ej)("datadog-synthetics-public-id");return"string"===typeof e?e:void 0}function a(){var e=window._DATADOG_SYNTHETICS_RESULT_ID||(0,r.ej)("datadog-synthetics-result-id");return"string"===typeof e?e:void 0}},2632:(e,n,t)=>{t.d(n,{Uo:()=>R,eJ:()=>k,Sz:()=>O,VG:()=>E,VL:()=>_});var r,o=t(13842),i=t(45242),a=t(57549),u=t(11095),c=t(1307),s=t(73473),f=t(25026),l=t(64933),d=t(38971),v=t(94776),p=t(73603),h=t(19012),y=t(92904),m="log",g="configuration",b=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","http://localhost",""],w=[u.y7],S={maxEventsPerPage:0,sentEventCount:0,telemetryEnabled:!1,telemetryConfigurationEnabled:!1};function _(e,n){var t,o=new s.y;return S.telemetryEnabled=!(0,v.q9)(w,n.site)&&(0,p.y7)(n.telemetrySampleRate),S.telemetryConfigurationEnabled=S.telemetryEnabled&&(0,p.y7)(n.telemetryConfigurationSampleRate),r=function(n){if(S.telemetryEnabled){var r=function(e,n){return(0,y.$e)({type:"telemetry",date:(0,f.n$)(),service:e,version:"4.42.0",source:"browser",_dd:{format_version:2},telemetry:n,experimental_features:(0,v.Oc)((0,a.u0)())},void 0!==t?t():{})}(e,n);o.notify(r),(0,d.j)("telemetry",r)}},(0,l.P_)(O),(0,v.f0)(S,{maxEventsPerPage:n.maxTelemetryEventsPerPage,sentEventCount:0}),{setContextProvider:function(e){t=e},observable:o,enabled:S.telemetryEnabled}}function E(e){return e.site===u.DZ}function k(e,n){(0,l.DV)(o.v.debug,e,n),C((0,v.f0)({type:m,message:e,status:"debug"},n))}function O(e){C((0,v.f0)({type:m,status:"error"},function(e){if(e instanceof Error){var n=(0,c._)(e);return{error:{kind:n.name,stack:(0,i.P3)(T(n))},message:n.message}}return{error:{stack:i.K$},message:"".concat("Uncaught"," ").concat((0,h.l)(e))}}(e)))}function R(e){S.telemetryConfigurationEnabled&&C({type:g,configuration:e})}function C(e){r&&S.sentEventCount{t.d(n,{_:()=>i});var r=t(94776),o="?";function i(e){var n=[],t=p(e,"stack"),i=String(e);return t&&(0,r.Ny)(t,i)&&(t=t.slice(i.length)),t&&t.split("\n").forEach((function(e){var t=function(e){var n=c.exec(e);if(!n)return;var t=n[2]&&0===n[2].indexOf("native"),r=n[2]&&0===n[2].indexOf("eval"),i=s.exec(n[2]);r&&i&&(n[2]=i[1],n[3]=i[2],n[4]=i[3]);return{args:t?[n[2]]:[],column:n[4]?+n[4]:void 0,func:n[1]||o,line:n[3]?+n[3]:void 0,url:t?void 0:n[2]}}(e)||function(e){var n=f.exec(e);if(!n)return;return{args:[],column:n[3]?+n[3]:void 0,func:o,line:n[2]?+n[2]:void 0,url:n[1]}}(e)||function(e){var n=l.exec(e);if(!n)return;return{args:[],column:n[4]?+n[4]:void 0,func:n[1]||o,line:+n[3],url:n[2]}}(e)||function(e){var n=d.exec(e);if(!n)return;var t=n[3]&&n[3].indexOf(" > eval")>-1,r=v.exec(n[3]);t&&r&&(n[3]=r[1],n[4]=r[2],n[5]=void 0);return{args:n[2]?n[2].split(","):[],column:n[5]?+n[5]:void 0,func:n[1]||o,line:n[4]?+n[4]:void 0,url:n[3]}}(e);t&&(!t.func&&t.line&&(t.func=o),n.push(t))})),{message:p(e,"message"),name:p(e,"name"),stack:n}}var a="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet||\\w+\\.|\\/).*?)",u="(?::(\\d+))",c=new RegExp("^\\s*at (.*?) ?\\(".concat(a).concat(u,"?").concat(u,"?\\)?\\s*$"),"i"),s=new RegExp("\\((\\S*)".concat(u).concat(u,"\\)"));var f=new RegExp("^\\s*at ?".concat(a).concat(u,"?").concat(u,"??\\s*$"),"i");var l=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var d=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,v=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function p(e,n){if("object"===typeof e&&e&&n in e){var t=e[n];return"string"===typeof t?t:void 0}}},54910:(e,n,t)=>{t.d(n,{I:()=>a,z:()=>u});var r=t(13842),o=t(33234),i=t(94776);function a(e){var n=(0,i.f0)({},e);return["id","name","email"].forEach((function(e){e in n&&(n[e]=String(n[e]))})),n}function u(e){var n="object"===(0,o.o)(e);return n||r.j.error("Unsupported user:",e),n}},29307:(e,n,t)=>{t.d(n,{l:()=>r});var r=function(){function e(){this.callbacks={}}return e.prototype.notify=function(e,n){var t=this.callbacks[e];t&&t.forEach((function(e){return e(n)}))},e.prototype.subscribe=function(e,n){var t=this;return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(n),{unsubscribe:function(){t.callbacks[e]=t.callbacks[e].filter((function(e){return n!==e}))}}},e}()},68783:(e,n,t)=>{t.d(n,{S:()=>r});var r=function(){function e(){this.buffer=[]}return e.prototype.add=function(e){this.buffer.push(e)>500&&this.buffer.splice(0,1)},e.prototype.drain=function(){this.buffer.forEach((function(e){return e()})),this.buffer.length=0},e}()},40812:(e,n,t)=>{t.d(n,{Z:()=>o});var r=t(13842);function o(e,n){return function(){for(var t=[],o=0;o{t.d(n,{j:()=>o,v:()=>r});var r={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},o=function(e){for(var n=[],t=1;t{var r;t.d(n,{W_:()=>a,u0:()=>u,uh:()=>r,vn:()=>i}),function(e){e.PAGEHIDE="pagehide",e.FEATURE_FLAGS="feature_flags",e.RESOURCE_PAGE_STATES="resource_page_states",e.COLLECT_FLUSH_REASON="collect_flush_reason"}(r||(r={}));var o=new Set;function i(e){e.forEach((function(e){o.add(e)}))}function a(e){return o.has(e)}function u(){return o}},49271:(e,n,t)=>{function r(){if("object"===typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var e=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!==typeof e&&(e="object"===typeof self?self:"object"===typeof window?window:{}),e}t.d(n,{R:()=>r})},59693:(e,n,t)=>{t.d(n,{I:()=>o});var r=t(49271);function o(e,n){var t,o=(0,r.R)();return o.Zone&&"function"===typeof o.Zone.__symbol__&&(t=e[o.Zone.__symbol__(n)]),t||(t=e[n]),t}},55801:(e,n,t)=>{t.d(n,{Lm:()=>i,Su:()=>o});var r=t(64933);function o(e,n,t){var r=e[n],o=t(r),i=function(){if("function"===typeof o)return o.apply(this,arguments)};return e[n]=i,{stop:function(){e[n]===i?e[n]=r:o=r}}}function i(e,n,t){var i=t.before,a=t.after;return o(e,n,(function(e){return function(){var n,t=arguments;return i&&(0,r.L6)(i,this,t),"function"===typeof e&&(n=e.apply(this,t)),a&&(0,r.L6)(a,this,t),n}}))}},95562:(e,n,t)=>{t.d(n,{o:()=>a,v:()=>u});var r=t(94776),o=t(13842),i=t(33234);function a(e){var n=(0,i.o)(e);return"string"===n||"function"===n||e instanceof RegExp}function u(e,n,t){return void 0===t&&(t=!1),e.some((function(e){try{if("function"===typeof e)return e(n);if(e instanceof RegExp)return e.test(n);if("string"===typeof e)return t?(0,r.Ny)(n,e):e===n}catch(e){o.j.error(e)}return!1}))}},92904:(e,n,t)=>{t.d(n,{$e:()=>a,I8:()=>i});var r=t(33234);function o(e,n,t){if(void 0===t&&(t=function(){if("undefined"!==typeof WeakSet){var e=new WeakSet;return{hasAlreadyBeenSeen:function(n){var t=e.has(n);return t||e.add(n),t}}}var n=[];return{hasAlreadyBeenSeen:function(e){var t=n.indexOf(e)>=0;return t||n.push(e),t}}}()),void 0===n)return e;if("object"!==typeof n||null===n)return n;if(n instanceof Date)return new Date(n.getTime());if(n instanceof RegExp){var i=n.flags||[n.global?"g":"",n.ignoreCase?"i":"",n.multiline?"m":"",n.sticky?"y":"",n.unicode?"u":""].join("");return new RegExp(n.source,i)}if(!t.hasAlreadyBeenSeen(n)){if(Array.isArray(n)){for(var a=Array.isArray(e)?e:[],u=0;u{t.d(n,{DV:()=>l,L6:()=>f,P_:()=>u,yD:()=>c,zk:()=>s});var r,o=t(13842),i=function(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;o{t.d(n,{$:()=>o,y:()=>r});var r=function(){function e(e){this.onFirstSubscribe=e,this.observers=[]}return e.prototype.subscribe=function(e){var n=this;return!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe()||void 0),this.observers.push(e),{unsubscribe:function(){n.observers=n.observers.filter((function(n){return e!==n})),!n.observers.length&&n.onLastUnsubscribe&&n.onLastUnsubscribe()}}},e.prototype.notify=function(e){this.observers.forEach((function(n){return n(e)}))},e}();function o(){for(var e=[],n=0;n{t.d(n,{n:()=>i});var r=t(64933),o=t(251);function i(e,n,t){var i=e.getReader(),a=[],u=0;function c(){var e,r;if(i.cancel().catch(o.Z),t.collectStreamBody){var c;if(1===a.length)c=a[0];else{c=new Uint8Array(u);var s=0;a.forEach((function(e){c.set(e,s),s+=e.length}))}e=c.slice(0,t.bytesLimit),r=c.length>t.bytesLimit}n(void 0,e,r)}!function e(){i.read().then((0,r.zk)((function(n){n.done?c():(t.collectStreamBody&&a.push(n.value),(u+=n.value.length)>t.bytesLimit?c():e())})),(0,r.zk)((function(e){return n(e)})))}()}},38971:(e,n,t)=>{function r(e,n){var t=window.__ddBrowserSdkExtensionCallback;t&&t({type:e,payload:n})}t.d(n,{j:()=>r})},8696:(e,n,t)=>{t.d(n,{W:()=>s});var r=t(51962),o=t(251),i=t(92904),a=t(19012),u=t(68566),c=t(19378);function s(e,n){void 0===n&&(n=r.qt);var t,s={},f=!1,l=(0,o.P)((function(r){t=n((0,a.l)(r)),f||(f=(0,c.H)(t,e))}),200).throttled;return{getBytesCount:function(){return t},get:function(){return s},add:function(e,n){s[e]=n,l(s)},remove:function(e){delete s[e],l(s)},set:function(e){l(s=e)},getContext:function(){return(0,i.I8)(s)},setContext:function(e){s=(0,u.N)(e),l(s)},setContextProperty:function(e,n){s[e]=(0,u.N)(n),l(s)},removeContextProperty:function(e){delete s[e],l(s)},clearContext:function(){s={},t=0}}}},19378:(e,n,t)=>{t.d(n,{H:()=>a});var r=t(51962),o=t(13842),i=3*r.Hi;function a(e,n){return e>i&&(o.j.warn("The ".concat(n," data is over ").concat(i/r.Hi,"KiB. On low connectivity, the SDK has the potential to exhaust the user's upload bandwidth.")),!0)}},19012:(e,n,t)=>{t.d(n,{l:()=>o,y:()=>i});var r=t(251);function o(e,n,t){if("object"!==typeof e||null===e)return JSON.stringify(e);var r=i(Object.prototype),o=i(Array.prototype),a=i(Object.getPrototypeOf(e)),u=i(e);try{return JSON.stringify(e,n,t)}catch(e){return""}finally{r(),o(),a(),u()}}function i(e){var n=e,t=n.toJSON;return t?(delete n.toJSON,function(){n.toJSON=t}):r.Z}},68566:(e,n,t)=>{t.d(n,{N:()=>u});var r=t(13842),o=t(51962),i=t(19012),a=220*o.Hi;function u(e,n){var t;void 0===n&&(n=a);var r=(0,i.y)(Object.prototype),o=(0,i.y)(Array.prototype),u=[],f=new WeakMap,l=c(e,"$",void 0,u,f),d=(null===(t=JSON.stringify(l))||void 0===t?void 0:t.length)||0;if(!(d>n)){for(;u.length>0&&dn){s(n,"truncated",e);break}v.target[h]=y}else for(var h in v.source)if(Object.prototype.hasOwnProperty.call(v.source,h)){var y;if(void 0!==(y=c(v.source[h],v.path,h,u,f))&&(d+=JSON.stringify(y).length+p+h.length+3,p=1),d>n){s(n,"truncated",e);break}v.target[h]=y}}return r(),o(),l}s(n,"discarded",e)}function c(e,n,t,r,o){var i=function(e){var n=e;if(n&&"function"===typeof n.toJSON)try{return n.toJSON()}catch(e){}return e}(e);if(!i||"object"!==typeof i)return function(e){if("bigint"===typeof e)return"[BigInt] ".concat(e.toString());if("function"===typeof e)return"[Function] ".concat(e.name||"unknown");if("symbol"===typeof e)return"[Symbol] ".concat(e.description||e.toString());return e}(i);var a=function(e){try{if(e instanceof Event)return{isTrusted:e.isTrusted};var n=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(n&&n[1])return"[".concat(n[1],"]")}catch(e){}return"[Unserializable]"}(i);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;var u=e;if(o.has(u))return"[Reference seen at ".concat(o.get(u),"]");var c=void 0!==t?"".concat(n,".").concat(t):n,s=Array.isArray(i)?[]:{};return o.set(u,c),r.push({source:i,target:s,path:c}),s}function s(e,n,t){r.j.warn("The data provided has been ".concat(n," as it is over the limit of ").concat(e," characters:"),t)}},65483:(e,n,t)=>{t.d(n,{Zi:()=>c,cv:()=>s,gr:()=>u,iK:()=>a});var r=t(59693),o=t(64933),i=t(49271);function a(e,n){return(0,r.I)((0,i.R)(),"setTimeout")((0,o.zk)(e),n)}function u(e){(0,r.I)((0,i.R)(),"clearTimeout")(e)}function c(e,n){return(0,r.I)(window,"setInterval")((0,o.zk)(e),n)}function s(e){(0,r.I)(window,"clearInterval")(e)}},12172:(e,n,t)=>{function r(){return Boolean(document.documentMode)}function o(){return!!window.chrome||/HeadlessChrome/.test(window.navigator.userAgent)}t.d(n,{m:()=>o,w:()=>r})},51962:(e,n,t)=>{t.d(n,{Hi:()=>r,X9:()=>o,qt:()=>a});var r=1024,o=1024*r,i=/[^\u0000-\u007F]/;function a(e){return i.test(e)?void 0!==window.TextEncoder?(new TextEncoder).encode(e).length:new Blob([e]).size:e.length}},251:(e,n,t)=>{t.d(n,{P:()=>o,Z:()=>i});var r=t(65483);function o(e,n,t){var o,i,a=!t||void 0===t.leading||t.leading,u=!t||void 0===t.trailing||t.trailing,c=!1;return{throttled:function(){for(var t=[],s=0;s{function r(e){return 0!==e&&100*Math.random()<=e}function o(e,n){return+e.toFixed(n)}function i(e){return a(e)&&e>=0&&e<=100}function a(e){return"number"===typeof e}t.d(n,{NM:()=>o,hj:()=>a,y7:()=>r,zz:()=>i})},94162:(e,n,t)=>{t.d(n,{E5:()=>i,Q8:()=>u,Qr:()=>a,mv:()=>o});var r=t(94776);function o(e){return(0,r.f0)({},e)}function i(e,n){return Object.keys(e).some((function(t){return e[t]===n}))}function a(e){return 0===Object.keys(e).length}function u(e,n){for(var t={},r=0,o=Object.keys(e);r{function r(e,n){return-1!==e.indexOf(n)}function o(e){if(Array.from)return Array.from(e);var n=[];if(e instanceof Set)e.forEach((function(e){return n.push(e)}));else for(var t=0;t=0;t-=1){var r=e[t];if(n(r,t,e))return r}}function u(e){return Object.keys(e).map((function(n){return e[n]}))}function c(e){return Object.keys(e).map((function(n){return[n,e[n]]}))}function s(e,n){return e.slice(0,n.length)===n}function f(e,n){return e.slice(-n.length)===n}function l(e,n){return e.matches?e.matches(n):!!e.msMatchesSelector&&e.msMatchesSelector(n)}function d(e){return window.CSS&&window.CSS.escape?window.CSS.escape(e):e.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,(function(e,n){return n?"\0"===e?"�":"".concat(e.slice(0,-1),"\\").concat(e.charCodeAt(e.length-1).toString(16)," "):"\\".concat(e)}))}function v(e){for(var n=[],t=1;tl,Ny:()=>s,Oc:()=>o,QA:()=>d,TT:()=>u,dF:()=>a,f0:()=>v,pn:()=>f,q9:()=>r,qP:()=>c,sE:()=>i})},29100:(e,n,t)=>{function r(e){return e>=500}function o(e){try{return e.clone()}catch(e){return}}t.d(n,{o:()=>r,u:()=>o})},88129:(e,n,t)=>{function r(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,r)}function o(e,n){var t=new RegExp("(?:^|;)\\s*".concat(n,"\\s*=\\s*([^;]+)")).exec(e);return t?t[1]:void 0}function i(e,n,t){void 0===t&&(t="");var r=e.charCodeAt(n-1),o=r>=55296&&r<=56319?n+1:n;return e.length<=o?e:"".concat(e.slice(0,o)).concat(t)}t.d(n,{DO:()=>r,MY:()=>o,_z:()=>i})},25026:(e,n,t)=>{t.d(n,{$I:()=>y,Cn:()=>S,DY:()=>s,QA:()=>l,WK:()=>b,WT:()=>i,_J:()=>g,_q:()=>h,c0:()=>d,cQ:()=>m,dV:()=>u,m6:()=>v,n$:()=>p,ni:()=>w,yR:()=>a});var r,o=t(73603),i=1e3,a=60*i,u=60*a,c=365*(24*u);function s(e){return{relative:e,timeStamp:f(e)}}function f(e){var n=v()-performance.now();return n>_()?Math.round(b(n,e)):function(e){return Math.round(b(_(),e))}(e)}function l(){return Math.round(v()-b(_(),performance.now()))}function d(e){return(0,o.hj)(e)?(0,o.NM)(1e6*e,0):e}function v(){return(new Date).getTime()}function p(){return v()}function h(){return performance.now()}function y(){return{relative:h(),timeStamp:p()}}function m(){return{relative:0,timeStamp:_()}}function g(e,n){return n-e}function b(e,n){return e+n}function w(e){return e-_()}function S(e){return e{function r(e){return null===e?"null":Array.isArray(e)?"array":typeof e}t.d(n,{o:()=>r})},70170:(e,n,t)=>{t.d(n,{D5:()=>o,P$:()=>a,jv:()=>i,ye:()=>u});var r=t(19012);function o(e){return c(e,l(window.location)).href}function i(e){try{return!!c(e)}catch(e){return!1}}function a(e){return l(c(e))}function u(e){var n=c(e).pathname;return"/"===n[0]?n:"/".concat(n)}function c(e,n){var t=function(){if(void 0===s)try{var e=new f("http://test/path");s="http://test/path"===e.href}catch(e){s=!1}return s?f:void 0}();if(t)try{return void 0!==n?new t(e,n):new t(e)}catch(t){throw new Error("Failed to construct URL: ".concat(String(t)," ").concat((0,r.l)({url:e,base:n})))}if(void 0===n&&!/:/.test(e))throw new Error("Invalid URL: '".concat(e,"'"));var o=document,i=o.createElement("a");if(void 0!==n){var a=(o=document.implementation.createHTMLDocument("")).createElement("base");a.href=n,o.head.appendChild(a),o.body.appendChild(i)}return i.href=e,i}var s,f=URL;function l(e){if(e.origin)return e.origin;var n=e.host.replace(/(:80|:443)$/,"");return"".concat(e.protocol,"//").concat(n)}},69029:(e,n,t)=>{t.d(n,{P:()=>u});var r=t(65483),o=t(25026),i=1/0,a=o.yR,u=function(){function e(e){var n=this;this.expireDelay=e,this.entries=[],this.clearOldValuesInterval=(0,r.Zi)((function(){return n.clearOldValues()}),a)}return e.prototype.add=function(e,n){var t=this,r={value:e,startTime:n,endTime:i,remove:function(){var e=t.entries.indexOf(r);e>=0&&t.entries.splice(e,1)},close:function(e){r.endTime=e}};return this.entries.unshift(r),r},e.prototype.find=function(e){void 0===e&&(e=i);for(var n=0,t=this.entries;n0&&this.entries[this.entries.length-1].endTime{t.d(n,{E:()=>c});var r=t(13842),o=t(94776),i=t(9024),a=t(51962),u=t(19012),c=function(){function e(e,n,t){var r=this;this.request=e,this.flushController=n,this.messageBytesLimit=t,this.pushOnlyBuffer=[],this.upsertBuffer={},this.flushController.flushObservable.subscribe((function(e){return r.flush(e)}))}return e.prototype.add=function(e){this.addOrUpdate(e)},e.prototype.upsert=function(e,n){this.addOrUpdate(e,n)},e.prototype.flush=function(e){var n=this.pushOnlyBuffer.concat((0,o.TT)(this.upsertBuffer));this.pushOnlyBuffer=[],this.upsertBuffer={};var t={data:n.join("\n"),bytesCount:e.bytesCount,flushReason:e.reason};(0,i.PT)(e.reason)?this.request.sendOnExit(t):this.request.send(t)},e.prototype.addOrUpdate=function(e,n){var t=this.process(e),o=t.processedMessage,i=t.messageBytesCount;i>=this.messageBytesLimit?r.j.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(this.messageBytesLimit,"KB.")):(this.hasMessageFor(n)&&this.remove(n),this.push(o,i,n))},e.prototype.process=function(e){var n=(0,u.l)(e);return{processedMessage:n,messageBytesCount:(0,a.qt)(n)}},e.prototype.push=function(e,n,t){var r=this.flushController.messagesCount>0?1:0;this.flushController.notifyBeforeAddMessage(n+r),void 0!==t?this.upsertBuffer[t]=e:this.pushOnlyBuffer.push(e),this.flushController.notifyAfterAddMessage()},e.prototype.remove=function(e){var n=this.upsertBuffer[e];delete this.upsertBuffer[e];var t=(0,a.qt)(n),r=this.flushController.messagesCount>1?1:0;this.flushController.notifyAfterRemoveMessage(t+r)},e.prototype.hasMessageFor=function(e){return void 0!==e&&void 0!==this.upsertBuffer[e]},e}()},76876:(e,n,t)=>{t.d(n,{A:()=>i,x:()=>a});var r=t(94776),o=t(49271);function i(){var e=(0,o.R)().DatadogEventBridge;if(e)return{getAllowedWebViewHosts:function(){return JSON.parse(e.getAllowedWebViewHosts())},send:function(n,t){e.send(JSON.stringify({eventType:n,event:t}))}}}function a(e){var n;void 0===e&&(e=null===(n=(0,o.R)().location)||void 0===n?void 0:n.hostname);var t=i();return!!t&&t.getAllowedWebViewHosts().some((function(n){return e===n||(0,r.pn)(e,".".concat(n))}))}},5419:(e,n,t)=>{t.d(n,{r:()=>i});var r=t(73473),o=t(65483);function i(e){var n=e.messagesLimit,t=e.bytesLimit,i=e.durationLimit,a=e.pageExitObservable,u=e.sessionExpireObservable,c=new r.y;a.subscribe((function(e){return d(e.reason)})),u.subscribe((function(){return d("session_expire")}));var s,f=0,l=0;function d(e){if(0!==l){var n=l,t=f;l=0,f=0,v(),c.notify({reason:e,messagesCount:n,bytesCount:t})}}function v(){(0,o.gr)(s),s=void 0}return{flushObservable:c,get messagesCount(){return l},notifyBeforeAddMessage:function(e){f+e>=t&&d("bytes_limit"),l+=1,f+=e,void 0===s&&(s=(0,o.iK)((function(){d("duration_limit")}),i))},notifyAfterAddMessage:function(){l>=n?d("messages_limit"):f>=t&&d("bytes_limit")},notifyAfterRemoveMessage:function(e){f-=e,0===(l-=1)&&v()}}}},3723:(e,n,t)=>{t.d(n,{UF:()=>w});var r=t(2632),o=t(64933),i=t(83206),a=t(65483),u=t(25026),c=t(51962),s=t(29100),f=t(42419),l=80*c.Hi,d=3*c.X9,v=u.yR,p=u.WT;function h(e,n,t,r,o){0===n.transportStatus&&0===n.queuedPayloads.size()&&n.bandwidthMonitor.canHandle(e)?m(e,n,t,{onSuccess:function(){return g(0,n,t,r,o)},onFailure:function(){n.queuedPayloads.enqueue(e),y(n,t,r,o)}}):n.queuedPayloads.enqueue(e)}function y(e,n,t,r){2===e.transportStatus&&(0,a.iK)((function(){m(e.queuedPayloads.first(),e,n,{onSuccess:function(){e.queuedPayloads.dequeue(),e.currentBackoffTime=p,g(1,e,n,t,r)},onFailure:function(){e.currentBackoffTime=Math.min(v,2*e.currentBackoffTime),y(e,n,t,r)}})}),e.currentBackoffTime)}function m(e,n,t,r){var o=r.onSuccess,i=r.onFailure;n.bandwidthMonitor.add(e),t(e,(function(t){n.bandwidthMonitor.remove(e),!function(e){return"opaque"!==e.type&&(0===e.status&&!navigator.onLine||408===e.status||429===e.status||(0,s.o)(e.status))}(t)?(n.transportStatus=0,o()):(n.transportStatus=n.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:t.status},i())}))}function g(e,n,t,r,o){0===e&&n.queuedPayloads.isFull()&&!n.queueFullReported&&(o({message:"Reached max ".concat(r," events size queued for upload: ").concat(d/c.X9,"MiB"),source:f.z.AGENT,startClocks:(0,u.$I)()}),n.queueFullReported=!0);var i=n.queuedPayloads;for(n.queuedPayloads=b();i.size()>0;)h(i.dequeue(),n,t,r,o)}function b(){var e=[];return{bytesCount:0,enqueue:function(n){this.isFull()||(e.push(n),this.bytesCount+=n.bytesCount)},first:function(){return e[0]},dequeue:function(){var n=e.shift();return n&&(this.bytesCount-=n.bytesCount),n},size:function(){return e.length},isFull:function(){return this.bytesCount>=d}}}function w(e,n,t){var i={transportStatus:0,currentBackoffTime:p,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=l&&this.ongoingRequestCount<32},add:function(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove:function(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}},queuedPayloads:b(),queueFullReported:!1},a=function(t,r){return function(e,n,t,r){var i=t.data,a=t.bytesCount,u=t.flushReason,c=t.retry;if(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(e){return!1}}()&&a