@datadog/browser-logs
Advanced tools
Comparing version 5.31.1 to 5.32.0
@@ -1,1 +0,1 @@ | ||
!function(){"use strict";var e={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},t=console,n={};Object.keys(e).forEach((function(e){n[e]=t[e]}));var r="Datadog Browser SDK:",o={debug:n.debug.bind(t,r),log:n.log.bind(t,r),info:n.info.bind(t,r),warn:n.warn.bind(t,r),error:n.error.bind(t,r)},i="https://docs.datadoghq.com",a="".concat(i,"/real_user_monitoring/browser/troubleshooting"),s="More details:";function c(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return e.apply(void 0,n)}catch(e){o.error(t,e)}}}var u,f=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},l=!1;function d(e){l=e}function v(e,t,n){var r=n.value;n.value=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(u?p(r):r).apply(this,e)}}function p(e){return function(){return g(e,this,arguments)}}function g(e,t,n){try{return e.apply(t,n)}catch(e){if(m(e),u)try{u(e)}catch(e){m(e)}}}function m(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];l&&o.error.apply(o,f(["[MONITOR]"],e,!1))}function y(e,t){return-1!==e.indexOf(t)}function h(e){if(Array.from)return Array.from(e);var t=[];if(e instanceof Set)e.forEach((function(e){return t.push(e)}));else for(var n=0;n<e.length;n++)t.push(e[n]);return t}function b(e){return Object.keys(e).map((function(t){return e[t]}))}function w(e,t){return e.slice(0,t.length)===t}function S(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})),e}function k(){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}var C=1024,x=1024*C,E=/[^\u0000-\u007F]/;function _(e){return E.test(e)?void 0!==window.TextEncoder?(new TextEncoder).encode(e).length:new Blob([e]).size:e.length}function T(e,t){var n,r=k();return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=e[r.Zone.__symbol__(t)]),n||(n=e[t]),n}function O(e,t){return T(k(),"setTimeout")(p(e),t)}function R(e){T(k(),"clearTimeout")(e)}function L(e,t){return T(k(),"setInterval")(p(e),t)}function A(e){T(k(),"clearInterval")(e)}function I(e,t,n){var r,o,i=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,s=!1;return{throttled:function(){for(var n=[],c=0;c<arguments.length;c++)n[c]=arguments[c];s?r=n:(i?e.apply(void 0,n):r=n,s=!0,o=O((function(){a&&r&&e.apply(void 0,r),s=!1,r=void 0}),t))},cancel:function(){R(o),s=!1,r=void 0}}}function P(){}function D(e,t,n){if("object"!=typeof e||null===e)return JSON.stringify(e);var r=B(Object.prototype),o=B(Array.prototype),i=B(Object.getPrototypeOf(e)),a=B(e);try{return JSON.stringify(e,t,n)}catch(e){return"<error: unable to serialize object>"}finally{r(),o(),i(),a()}}function B(e){var t=e,n=t.toJSON;return n?(delete t.toJSON,function(){t.toJSON=n}):P}function M(e,t){return Object.keys(e).some((function(n){return e[n]===t}))}function N(e){return 0===Object.keys(e).length}var U=3*C,q=16*C,j=200;function G(e){void 0===e&&(e=2);var t=new Map,n=!1;function r(r){if(void 0===r&&(r=0),!n&&0!==e){var i=2===e?U:q,c=r;t.forEach((function(e){c+=e.getBytesCount()})),c>i&&(!function(e){o.warn("Customer data exceeds the recommended ".concat(e/C,"KiB threshold. ").concat(s," ").concat(a,"/#customer-data-exceeds-the-recommended-threshold-warning"))}(i),n=!0)}}return{createDetachedTracker:function(){var e=F((function(){return r(e.getBytesCount())}));return e},getOrCreateTracker:function(e){return t.has(e)||t.set(e,F(r)),t.get(e)},setCompressionStatus:function(t){0===e&&(e=t,r())},getCompressionStatus:function(){return e},stop:function(){t.forEach((function(e){return e.stop()})),t.clear()}}}function F(e){var t=0,n=I((function(n){t=_(D(n)),e()}),j),r=n.throttled,o=n.cancel,i=function(){o(),t=0};return{updateCustomerData:function(e){N(e)?i():r(e)},resetCustomerData:i,getBytesCount:function(){return t},stop:function(){o()}}}function H(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function z(e,t,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var e=new WeakSet;return{hasAlreadyBeenSeen:function(t){var n=e.has(t);return n||e.add(t),n}}}var t=[];return{hasAlreadyBeenSeen:function(e){var n=t.indexOf(e)>=0;return n||t.push(e),n}}}()),void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){var r=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,r)}if(!n.hasAlreadyBeenSeen(t)){if(Array.isArray(t)){for(var o=Array.isArray(e)?e:[],i=0;i<t.length;++i)o[i]=z(o[i],t[i],n);return o}var a="object"===H(e)?e:{};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(a[s]=z(a[s],t[s],n));return a}}function J(e){return z(void 0,e)}function W(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r];null!=i&&(e=z(e,i))}return e}var $=220*C,V="$",K=3;function X(e,t){void 0===t&&(t=$);var n=B(Object.prototype),r=B(Array.prototype),o=[],i=new WeakMap,a=Z(e,V,void 0,o,i),s=JSON.stringify(a),c=s?s.length:0;if(!(c>t)){for(;o.length>0&&c<t;){var u=o.shift(),f=0;if(Array.isArray(u.source))for(var l=0;l<u.source.length;l++){if(c+=void 0!==(d=Z(u.source[l],u.path,l,o,i))?JSON.stringify(d).length:4,c+=f,f=1,c>t){Y(t,"truncated",e);break}u.target[l]=d}else for(var l in u.source)if(Object.prototype.hasOwnProperty.call(u.source,l)){var d;if(void 0!==(d=Z(u.source[l],u.path,l,o,i))&&(c+=JSON.stringify(d).length+f+l.length+K,f=1),c>t){Y(t,"truncated",e);break}u.target[l]=d}}return n(),r(),a}Y(t,"discarded",e)}function Z(e,t,n,r,o){var i=function(e){var t=e;if(t&&"function"==typeof t.toJSON)try{return t.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 t=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(t&&t[1])return"[".concat(t[1],"]")}catch(e){}return"[Unserializable]"}(i);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;var s=e;if(o.has(s))return"[Reference seen at ".concat(o.get(s),"]");var c=void 0!==n?"".concat(t,".").concat(n):t,u=Array.isArray(i)?[]:{};return o.set(s,c),r.push({source:i,target:u,path:c}),u}function Y(e,t,n){o.warn("The data provided has been ".concat(t," as it is over the limit of ").concat(e," characters:"),n)}var Q=function(){function e(e){this.onFirstSubscribe=e,this.observers=[]}return e.prototype.subscribe=function(e){var t=this;return this.observers.push(e),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),{unsubscribe:function(){t.observers=t.observers.filter((function(t){return e!==t})),!t.observers.length&&t.onLastUnsubscribe&&t.onLastUnsubscribe()}}},e.prototype.notify=function(e){this.observers.forEach((function(t){return t(e)}))},e}();function ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new Q((function(t){var n=e.map((function(e){return e.subscribe((function(e){return t.notify(e)}))}));return function(){return n.forEach((function(e){return e.unsubscribe()}))}}))}function te(e){var t={},n=new Q,r={getContext:function(){return J(t)},setContext:function(o){"object"===H(o)?(t=X(o),e&&e.updateCustomerData(t)):r.clearContext(),n.notify()},setContextProperty:function(r,o){t[r]=X(o),e&&e.updateCustomerData(t),n.notify()},removeContextProperty:function(r){delete t[r],e&&e.updateCustomerData(t),n.notify()},clearContext:function(){t={},e&&e.resetCustomerData(),n.notify()},changeObservable:n};return r}var ne={GRANTED:"granted",NOT_GRANTED:"not-granted"};function re(e,t,n,r,o){return oe(e,t,[n],r,o)}function oe(e,t,n,r,o){var i=void 0===o?{}:o,a=i.once,s=i.capture,c=i.passive,u=p((function(t){(t.isTrusted||t.__ddIsTrusted||e.allowUntrustedEvents)&&(a&&v(),r(t))})),f=c?{capture:s,passive:c}:s,l=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,d=T(l,"addEventListener");function v(){var e=T(l,"removeEventListener");n.forEach((function(n){return e.call(t,n,u,f)}))}return n.forEach((function(e){return d.call(t,e,u,f)})),{stop:v}}var ie="_dd_c",ae=[];function se(e,t,n,r){var o=function(e,t){return"".concat(ie,"_").concat(e,"_").concat(t)}(n,r);function i(){var e=localStorage.getItem(o);return null!==e?JSON.parse(e):{}}ae.push(re(e,window,"storage",(function(e){var n=e.key;o===n&&t.setContext(i())}))),t.changeObservable.subscribe((function(){localStorage.setItem(o,JSON.stringify(t.getContext()))})),t.setContext(W(i(),t.getContext()))}var ce="?";function ue(e){var t=[],n=he(e,"stack"),r=String(e);return n&&w(n,r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach((function(e){var n=function(e){var t=de.exec(e);if(!t)return;var n=t[2]&&0===t[2].indexOf("native"),r=t[2]&&0===t[2].indexOf("eval"),o=ve.exec(t[2]);r&&o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3]);return{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||ce,line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}(e)||function(e){var t=pe.exec(e);if(!t)return;return{args:[],column:t[3]?+t[3]:void 0,func:ce,line:t[2]?+t[2]:void 0,url:t[1]}}(e)||function(e){var t=ge.exec(e);if(!t)return;return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||ce,line:+t[3],url:t[2]}}(e)||function(e){var t=me.exec(e);if(!t)return;var n=t[3]&&t[3].indexOf(" > eval")>-1,r=ye.exec(t[3]);n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0);return{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||ce,line:t[4]?+t[4]:void 0,url:t[3]}}(e);n&&(!n.func&&n.line&&(n.func=ce),t.push(n))})),{message:he(e,"message"),name:he(e,"name"),stack:t}}var fe="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",le="(?::(\\d+))",de=new RegExp("^\\s*at (.*?) ?\\(".concat(fe).concat(le,"?").concat(le,"?\\)?\\s*$"),"i"),ve=new RegExp("\\((\\S*)".concat(le).concat(le,"\\)"));var pe=new RegExp("^\\s*at ?".concat(fe).concat(le,"?").concat(le,"??\\s*$"),"i");var ge=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var me=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,ye=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function he(e,t){if("object"==typeof e&&e&&t in e){var n=e[t];return"string"==typeof n?n:void 0}}function be(e,t,n,r){var o=[{url:t,column:r,line:n}],i=function(e){var t,n,r;"[object String]"==={}.toString.call(e)&&(n=(t=we.exec(e))[1],r=t[2]);return{name:n,message:r}}(e);return{name:i.name,message:i.message,stack:o}}var we=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function Se(){var e,t=new Error;if(!t.stack)try{throw t}catch(e){}return g((function(){var n=ue(t);n.stack=n.stack.slice(2),e=ke(n)})),e}function ke(e){var t=Ce(e);return e.stack.forEach((function(e){var n="?"===e.func?"<anonymous>":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):"";t+="\n at ".concat(n).concat(r," @ ").concat(e.url).concat(o).concat(i)})),t}function Ce(e){return"".concat(e.name||"Error",": ").concat(e.message)}var xe,Ee="No stack, consider using an instance of Error";function _e(e){var t=e.stackTrace,n=e.originalError,r=e.handlingStack,o=e.startClocks,i=e.nonErrorPrefix,a=e.source,s=e.handling,c=n instanceof Error,u=function(e,t,n,r){return(null==e?void 0:e.message)&&(null==e?void 0:e.name)?e.message:t?"Empty message":"".concat(n," ").concat(D(X(r)))}(t,c,i,n),f=function(e,t){if(void 0===t)return!1;if(e)return!0;return t.stack.length>0&&(t.stack.length>1||void 0!==t.stack[0].url)}(c,t)?ke(t):Ee,l=c?Oe(n,a):void 0;return{startClocks:o,source:a,handling:s,handlingStack:r,originalError:n,type:t?t.name:void 0,message:u,stack:f,causes:l,fingerprint:Te(n)}}function Te(e){return e instanceof Error&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function Oe(e,t){for(var n=e,r=[];(null==n?void 0:n.cause)instanceof Error&&r.length<10;){var o=ue(n.cause);r.push({message:n.cause.message,source:t,type:null==o?void 0:o.name,stack:o&&ke(o)}),n=n.cause}return r.length?r:void 0}!function(e){e.WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",e.REMOTE_CONFIGURATION="remote_configuration",e.LONG_ANIMATION_FRAME="long_animation_frame"}(xe||(xe={}));var Re=new Set;function Le(e){Array.isArray(e)&&e.filter((function(e){return M(xe,e)})).forEach((function(e){Re.add(e)}))}function Ae(){return Re}var Ie,Pe="datad0g.com",De="dd0g-gov.com",Be="datadoghq.com",Me="pci.browser-intake-datadoghq.com",Ne=["ddsource","ddtags"],Ue=1e3,qe=60*Ue,je=60*qe;function Ge(){return(new Date).getTime()}function Fe(){return Ge()}function He(){return performance.now()}function ze(){return{relative:He(),timeStamp:Fe()}}function Je(e,t){return e+t}function We(e){return e-$e()}function $e(){return void 0===Ie&&(Ie=performance.timing.navigationStart),Ie}function Ve(e,t){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}function Ke(e){return 0!==e&&100*Math.random()<=e}function Xe(){var e,t=window.navigator;return{status:t.onLine?"connected":"not_connected",interfaces:t.connection&&t.connection.type?[t.connection.type]:void 0,effective_type:null===(e=t.connection)||void 0===e?void 0:e.effectiveType}}function Ze(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}var Ye=500;function Qe(){var e=[];return{add:function(t){e.push(t)>Ye&&e.splice(0,1)},remove:function(t){Ze(e,t)},drain:function(t){e.forEach((function(e){return e(t)})),e.length=0}}}var et={log:"log",configuration:"configuration",usage:"usage"},tt=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],nt=["ddog-gov.com"],rt=Qe(),ot=function(e){rt.add((function(){return ot(e)}))};function it(e,t){var n,r,o=new Q,i=new Set,a=!y(nt,t.site)&&Ke(t.telemetrySampleRate),s=((n={})[et.log]=a,n[et.configuration]=a&&Ke(t.telemetryConfigurationSampleRate),n[et.usage]=a&&Ke(t.telemetryUsageSampleRate),n),c={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return ot=function(n){var a=D(n);if(s[n.type]&&i.size<t.maxTelemetryEventsPerPage&&!i.has(a)){var u=function(e,t,n){return W({type:"telemetry",date:Fe(),service:e,version:"5.31.1",source:"browser",_dd:{format_version:2},telemetry:W(t,{runtime_env:n,connectivity:Xe(),sdk_setup:"cdn"}),experimental_features:h(Ae())},void 0!==r?r():{})}(e,n,c);o.notify(u),Ve("telemetry",u),i.add(a)}},u=st,{setContextProvider:function(e){r=e},observable:o,enabled:a}}function at(t,n){m(e.debug,t,n),ot(S({type:et.log,message:t,status:"debug"},n))}function st(e,t){ot(S({type:et.log,status:"error"},function(e){if(e instanceof Error){var t=ue(e);return{error:{kind:t.name,stack:ke(ct(t))},message:t.message}}return{error:{stack:Ee},message:"".concat("Uncaught"," ").concat(D(e))}}(e),t))}function ct(e){return e.stack=e.stack.filter((function(e){return!e.url||tt.some((function(t){return w(e.url,t)}))})),e}function ut(e){var t=S({},e);return["id","name","email"].forEach((function(e){e in t&&(t[e]=String(t[e]))})),t}function ft(e,t){t.silentMultipleInit||o.error("".concat(e," is already initialized."))}var lt,dt={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function vt(e,t,n){var r=n.getHandler(),o=Array.isArray(r)?r:[r];return gt[e]>=gt[n.getLevel()]&&y(o,t)}var pt={ok:"ok",debug:"debug",info:"info",notice:"notice",warn:"warn",error:"error",critical:"critical",alert:"alert",emerg:"emerg"},gt=((lt={})[pt.ok]=0,lt[pt.debug]=1,lt[pt.info]=2,lt[pt.notice]=4,lt[pt.warn]=5,lt[pt.error]=6,lt[pt.critical]=7,lt[pt.alert]=8,lt[pt.emerg]=9,lt);function mt(e,t){var n=(void 0===t?{}:t).includeMessage,r=void 0!==n&&n;return{stack:e.stack,kind:e.type,message:r?e.message:void 0,causes:e.causes,fingerprint:e.fingerprint,handling:e.handling}}var yt=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ht={console:"console",http:"http",silent:"silent"},bt=Object.keys(pt),wt=function(){function e(e,t,n,r,o,i){void 0===r&&(r=ht.http),void 0===o&&(o=pt.debug),void 0===i&&(i={}),this.handleLogStrategy=e,this.handlerType=r,this.level=o,this.contextManager=te(t),this.contextManager.setContext(i),n&&this.contextManager.setContextProperty("logger",{name:n})}return e.prototype.logImplementation=function(e,t,n,r,o){void 0===n&&(n=pt.info);var i,a=X(t);null!=r?i=W({error:mt(_e({stackTrace:r instanceof Error?ue(r):void 0,originalError:r,nonErrorPrefix:"Provided",source:dt.LOGGER,handling:"handled",startClocks:ze()}),{includeMessage:!0})},a):i=a;this.handleLogStrategy({message:X(e),context:i,status:n},this,o)},e.prototype.log=function(e,t,n,r){var o;void 0===n&&(n=pt.info),vt(n,ht.http,this)&&(o=Se()),this.logImplementation(e,t,n,r,o)},e.prototype.setContext=function(e){this.contextManager.setContext(e)},e.prototype.getContext=function(){return this.contextManager.getContext()},e.prototype.setContextProperty=function(e,t){this.contextManager.setContextProperty(e,t)},e.prototype.removeContextProperty=function(e){this.contextManager.removeContextProperty(e)},e.prototype.clearContext=function(){this.contextManager.clearContext()},e.prototype.setHandler=function(e){this.handlerType=e},e.prototype.getHandler=function(){return this.handlerType},e.prototype.setLevel=function(e){this.level=e},e.prototype.getLevel=function(){return this.level},yt([v],e.prototype,"logImplementation",null),e}();function St(e){return function(t,n,r){var o;vt(e,ht.http,this)&&(o=Se()),this.logImplementation(t,n,e,r,o)}}function kt(){var e=k().DatadogEventBridge;if(e)return{getCapabilities:function(){var t;return JSON.parse((null===(t=e.getCapabilities)||void 0===t?void 0:t.call(e))||"[]")},getPrivacyLevel:function(){var t;return null===(t=e.getPrivacyLevel)||void 0===t?void 0:t.call(e)},getAllowedWebViewHosts:function(){return JSON.parse(e.getAllowedWebViewHosts())},send:function(t,n,r){var o=r?{id:r}:void 0;e.send(JSON.stringify({eventType:t,event:n,view:o}))}}}function Ct(e){var t;void 0===e&&(e=null===(t=k().location)||void 0===t?void 0:t.hostname);var n=kt();return!!n&&n.getAllowedWebViewHosts().some((function(t){return e===t||(n=e,r=".".concat(t),n.slice(-r.length)===r);var n,r}))}function xt(e,t,n,r){var o=(void 0===r?{}:r).computeHandlingStack,i=e[t];if("function"!=typeof i){if(!(t in e)||!w(t,"on"))return{stop:P};i=P}var a=!1,s=function(){if(a)return i.apply(this,arguments);var e,t=h(arguments);g(n,null,[{target:this,parameters:t,onPostCall:function(t){e=t},handlingStack:o?Se():void 0}]);var r=i.apply(this,t);return e&&g(e,null,[r]),r};return e[t]=s,{stop:function(){a=!0,e[t]===s&&(e[t]=i)}}}function Et(e){return _t(e,location.href).href}function _t(e,t){var n=function(){if(void 0===Tt)try{var e=new Rt("http://test/path");Tt="http://test/path"===e.href}catch(e){Tt=!1}return Tt?Rt:void 0}();if(n)try{return void 0!==t?new n(e,t):new n(e)}catch(n){throw new Error("Failed to construct URL: ".concat(String(n)," ").concat(D({url:e,base:t})))}if(void 0===t&&!/:/.test(e))throw new Error("Invalid URL: '".concat(e,"'"));var r=document,o=r.createElement("a");if(void 0!==t){var i=(r=document.implementation.createHTMLDocument("")).createElement("base");i.href=t,r.head.appendChild(i),r.body.appendChild(o)}return o.href=e,o}wt.prototype.ok=St(pt.ok),wt.prototype.debug=St(pt.debug),wt.prototype.info=St(pt.info),wt.prototype.notice=St(pt.notice),wt.prototype.warn=St(pt.warn),wt.prototype.error=St(pt.error),wt.prototype.critical=St(pt.critical),wt.prototype.alert=St(pt.alert),wt.prototype.emerg=St(pt.emerg);var Tt,Ot,Rt=URL;function Lt(){return Ot||(Ot=new Q((function(e){if(window.fetch){var t=xt(window,"fetch",(function(t){return function(e,t){var n=e.parameters,r=e.onPostCall,o=e.handlingStack,i=n[0],a=n[1],s=a&&a.method;void 0===s&&i instanceof Request&&(s=i.method);var c=void 0!==s?String(s).toUpperCase():"GET",u=i instanceof Request?i.url:Et(String(i)),f=ze(),l={state:"start",init:a,input:i,method:c,startClocks:f,url:u,handlingStack:o};t.notify(l),n[0]=l.input,n[1]=l.init,r((function(e){return function(e,t,n){var r=n;function o(t){r.state="resolve",S(r,t),e.notify(r)}t.then(p((function(e){o({response:e,responseType:e.type,status:e.status,isAborted:!1})})),p((function(e){var t,n;o({status:0,isAborted:(null===(n=null===(t=r.init)||void 0===t?void 0:t.signal)||void 0===n?void 0:n.aborted)||e instanceof DOMException&&e.code===DOMException.ABORT_ERR,error:e})})))}(t,e,l)}))}(t,e)}),{computeHandlingStack:!0}).stop;return t}}))),Ot}function At(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,At)}var It,Pt,Dt,Bt=/([\w-]+)\s*=\s*([^;]+)/g;function Mt(e,t,n){void 0===n&&(n="");var r=e.charCodeAt(t-1),o=r>=55296&&r<=56319?t+1:t;return e.length<=o?e:"".concat(e.slice(0,o)).concat(n)}function Nt(){return null!=It?It:It=function(e){var t;void 0===e&&(e=window);var n=e.navigator.userAgent;if(e.chrome||/HeadlessChrome/.test(n))return 1;if(0===(null===(t=e.navigator.vendor)||void 0===t?void 0:t.indexOf("Apple"))||/safari/i.test(n)&&!/chrome|android/i.test(n))return 2;if(e.document.documentMode)return 0;return 3}()}function Ut(e,t,n,r){var o=new Date;o.setTime(o.getTime()+n);var i="expires=".concat(o.toUTCString()),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain=".concat(r.domain):"",c=r&&r.secure?";secure":"",u=r&&r.partitioned?";partitioned":"";document.cookie="".concat(e,"=").concat(t,";").concat(i,";path=/;samesite=").concat(a).concat(s).concat(c).concat(u)}function qt(e){return function(e,t){for(Bt.lastIndex=0;;){var n=Bt.exec(e);if(!n)break;if(n[1]===t)return n[2]}}(document.cookie,e)}function jt(e){return Pt||(Pt=function(e){var t=new Map;for(Bt.lastIndex=0;;){var n=Bt.exec(e);if(!n)break;t.set(n[1],n[2])}return t}(document.cookie)),Pt.get(e)}function Gt(e,t){Ut(e,"",0,t)}var Ft="_dd_s",Ht=4*je,zt=15*qe,Jt=/^([a-zA-Z]+)=([a-z0-9-]+)$/,Wt="&",$t="1";function Vt(){return{isExpired:$t}}function Kt(e){return N(e)}function Xt(e){return!Kt(e)}function Zt(e){return void 0!==e.isExpired||!((void 0===(t=e).created||Ge()-Number(t.created)<Ht)&&(void 0===t.expire||Ge()<Number(t.expire)));var t}function Yt(e){e.expire=String(Ge()+zt)}function Qt(e){return(t=e,Object.keys(t).map((function(e){return[e,t[e]]}))).map((function(e){var t=e[0],n=e[1];return"".concat(t,"=").concat(n)})).join(Wt);var t}function en(e){var t={};return function(e){return!!e&&(-1!==e.indexOf(Wt)||Jt.test(e))}(e)&&e.split(Wt).forEach((function(e){var n=Jt.exec(e);if(null!==n){var r=n[1],o=n[2];t[r]=o}})),t}var tn="_dd",nn="_dd_r",rn="_dd_l",on="rum",an="logs";function sn(e){var t=function(e){var t={};t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains&&(t.domain=function(){if(void 0===Dt){for(var e="dd_site_test_".concat(At()),t=window.location.hostname.split("."),n=t.pop();t.length&&!qt(e);)n="".concat(t.pop(),".").concat(n),Ut(e,"test",Ue,{domain:n});Gt(e,{domain:n}),Dt=n}return Dt}());return t}(e);return function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{var t="dd_cookie_test_".concat(At()),n="test";Ut(t,n,qe,e);var r=qt(t)===n;return Gt(t,e),r}catch(e){return o.error(e),!1}}(t)?{type:"Cookie",cookieOptions:t}:void 0}function cn(e){var t,n={isLockEnabled:1===Nt(),persistSession:(t=e,function(e){Ut(Ft,Qt(e),zt,t)}),retrieveSession:un,expireSession:function(){return function(e){Ut(Ft,Qt(Vt()),Ht,e)}(e)}};return function(e){if(!jt(Ft)){var t=jt(tn),n=jt(nn),r=jt(rn),o={};t&&(o.id=t),r&&/^[01]$/.test(r)&&(o[an]=r),n&&/^[012]$/.test(n)&&(o[on]=n),Xt(o)&&(Yt(o),e.persistSession(o))}}(n),n}function un(){return en(qt(Ft))}var fn="_dd_test_";function ln(e){localStorage.setItem(Ft,Qt(e))}function dn(){return en(localStorage.getItem(Ft))}function vn(){ln(Vt())}var pn,gn=10,mn=100,yn=[];function hn(e,t,n){var r;void 0===n&&(n=0);var o=t.isLockEnabled,i=t.persistSession,a=t.expireSession,s=function(e){return i(S({},e,{lock:u}))},c=function(){var e=t.retrieveSession(),n=e.lock;return e.lock&&delete e.lock,{session:e,lock:n}};if(pn||(pn=e),e===pn)if(o&&n>=mn)wn(t);else{var u,f=c();if(o){if(f.lock)return void bn(e,t,n);if(u=At(),s(f.session),(f=c()).lock!==u)return void bn(e,t,n)}var l=e.process(f.session);if(o&&(f=c()).lock!==u)bn(e,t,n);else{if(l&&(Zt(l)?a():(Yt(l),o?s(l):i(l))),o&&(!l||!Zt(l))){if((f=c()).lock!==u)return void bn(e,t,n);i(f.session),l=f.session}null===(r=e.after)||void 0===r||r.call(e,l||f.session),wn(t)}}else yn.push(e)}function bn(e,t,n){O((function(){hn(e,t,n+1)}),gn)}function wn(e){pn=void 0;var t=yn.shift();t&&hn(t,e)}var Sn=Ue;function kn(e){var t=sn(e);return!t&&e.allowFallbackToLocalStorage&&(t=function(){try{var e=At(),t="".concat(fn).concat(e);localStorage.setItem(t,e);var n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:"LocalStorage"}:void 0}catch(e){return}}()),t}function Cn(e,t,n){var r,o=new Q,i=new Q,a=new Q,s="Cookie"===e.type?cn(e.cookieOptions):{isLockEnabled:!1,persistSession:ln,retrieveSession:dn,expireSession:vn},c=s.expireSession,u=L((function(){hn({process:function(e){return Zt(e)?Vt():void 0},after:v},s)}),Sn);p();var f=I((function(){hn({process:function(e){if(!Kt(e)){var r=v(e);return function(e){if(Kt(e))return!1;var r=n(e[t]),o=r.trackingType,i=r.isTracked;e[t]=o,delete e.isExpired,i&&!e.id&&(e.id=At(),e.created=String(Ge()))}(r),r}},after:function(e){Xt(e)&&!g()&&function(e){r=e,o.notify()}(e),r=e}},s)}),Sn),l=f.throttled,d=f.cancel;function v(e){return Zt(e)&&(e=Vt()),g()&&(!function(e){return r.id!==e.id||r[t]!==e[t]}(e)?(a.notify({previousState:r,newState:e}),r=e):(r=Vt(),i.notify())),e}function p(){hn({process:function(e){if(Kt(e))return Vt()},after:function(e){r=e}},s)}function g(){return void 0!==r[t]}return{expandOrRenewSession:l,expandSession:function(){hn({process:function(e){return g()?v(e):void 0}},s)},getSession:function(){return r},renewObservable:o,expireObservable:i,sessionStateUpdateObservable:a,restartSession:p,expire:function(){d(),c(),v(Vt())},stop:function(){A(u)},updateSessionState:function(e){hn({process:function(t){return S({},t,e)},after:v},s)}}}function xn(e,t,n){var r=function(e,t){var n="/api/v2/".concat(t),r=e.proxy;if("string"==typeof r){var o=Et(r);return function(e){return"".concat(o,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(e)))}}if("function"==typeof r)return function(e){return r({path:n,parameters:e})};var i=function(e,t){var n=t.site,r=void 0===n?Be:n,o=t.internalAnalyticsSubdomain;if("logs"===e&&t.usePciIntake&&r===Be)return Me;if(o&&r===Be)return"".concat(o,".").concat(Be);if(r===De)return"http-intake.logs.".concat(r);var i=r.split("."),a=i.pop();return"browser-intake-".concat(i.join("-"),".").concat(a)}(t,e);return function(e){return"https://".concat(i).concat(n,"?").concat(e)}}(e,t);return{build:function(o,i){var a=function(e,t,n,r,o){var i=e.clientToken,a=e.internalAnalyticsSubdomain,s=o.retry,c=o.encoding,u=["sdk_version:".concat("5.31.1"),"api:".concat(r)].concat(n);s&&u.push("retry_count:".concat(s.count),"retry_after:".concat(s.lastFailureStatus));var f=["ddsource=browser","ddtags=".concat(encodeURIComponent(u.join(","))),"dd-api-key=".concat(i),"dd-evp-origin-version=".concat(encodeURIComponent("5.31.1")),"dd-evp-origin=browser","dd-request-id=".concat(At())];c&&f.push("dd-evp-encoding=".concat(c));"rum"===t&&f.push("batch_time=".concat(Fe()));a&&f.reverse();return f.join("&")}(e,t,n,o,i);return r(a)},urlPrefix:r(""),trackType:t}}var En=200;function _n(e,t){var n=En-e.length-1;(t.length>n||function(e){if(!function(){try{return new RegExp("[\\p{Ll}]","u"),!0}catch(e){return!1}}())return!1;return new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(e)}(t))&&o.warn("".concat(e," value doesn't meet tag requirements and will be sanitized. ").concat(s," ").concat(i,"/getting_started/tagging/#defining-tags"));var r=t.replace(/,/g,"_");return"".concat(e,":").concat(r)}function Tn(e){var t=e.site||Be,n=function(e){var t=e.env,n=e.service,r=e.version,o=e.datacenter,i=[];return t&&i.push(_n("env",t)),n&&i.push(_n("service",n)),r&&i.push(_n("version",r)),o&&i.push(_n("datacenter",o)),i}(e),r=function(e,t){return{logsEndpointBuilder:xn(e,"logs",t),rumEndpointBuilder:xn(e,"rum",t),sessionReplayEndpointBuilder:xn(e,"replay",t)}}(e,n),o=function(e,t){if(!e.replica)return;var n=S({},e,{site:Be,clientToken:e.replica.clientToken}),r={logsEndpointBuilder:xn(n,"logs",t),rumEndpointBuilder:xn(n,"rum",t)};return S({applicationId:e.replica.applicationId},r)}(e,n);return S({replica:o,site:t},r)}function On(e,t){return null==e||"string"==typeof e||(o.error("".concat(t," must be defined as a string")),!1)}function Rn(e,t){return!!(void 0===e||(n=e,function(e){return"number"==typeof e}(n)&&n>=0&&n<=100))||(o.error("".concat(t," Sample Rate should be a number between 0 and 100")),!1);var n}function Ln(e){var t,n,r,a,u;if(e&&e.clientToken){if((!(f=e.site)||"string"!=typeof f||/(datadog|ddog|datad0g|dd0g)/.test(f)||(o.error("Site should be a valid Datadog site. ".concat(s," ").concat(i,"/getting_started/site/.")),0))&&Rn(e.sessionSampleRate,"Session")&&Rn(e.telemetrySampleRate,"Telemetry")&&Rn(e.telemetryConfigurationSampleRate,"Telemetry Configuration")&&Rn(e.telemetryUsageSampleRate,"Telemetry Usage")&&On(e.version,"Version")&&On(e.env,"Env")&&On(e.service,"Service")){var f;if(void 0===e.trackingConsent||M(ne,e.trackingConsent))return S({beforeSend:e.beforeSend&&c(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:kn(e),sessionSampleRate:null!==(t=e.sessionSampleRate)&&void 0!==t?t:100,telemetrySampleRate:null!==(n=e.telemetrySampleRate)&&void 0!==n?n:20,telemetryConfigurationSampleRate:null!==(r=e.telemetryConfigurationSampleRate)&&void 0!==r?r:5,telemetryUsageSampleRate:null!==(a=e.telemetryUsageSampleRate)&&void 0!==a?a:5,service:e.service||void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:null!==(u=e.trackingConsent)&&void 0!==u?u:ne.GRANTED,storeContextsAcrossPages:!!e.storeContextsAcrossPages,batchBytesLimit:16*C,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*Ue,batchMessagesLimit:50,messageBytesLimit:256*C},Tn(e));o.error('Tracking Consent should be either "granted" or "not-granted"')}}else o.error("Client Token is not configured, we will not send any data.")}var An={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function In(e,t){var n=[];y(t,An.cspViolation)&&n.push(function(e){return new Q((function(t){return re(e,document,"securitypolicyviolation",(function(e){t.notify(function(e){var t="'".concat(e.blockedURI,"' blocked by '").concat(e.effectiveDirective,"' directive");return Pn({type:e.effectiveDirective,message:"".concat(An.cspViolation,": ").concat(t),originalError:e,csp:{disposition:e.disposition},stack:Dn(e.effectiveDirective,e.originalPolicy?"".concat(t,' of the policy "').concat(Mt(e.originalPolicy,100,"..."),'"'):"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}(e))})).stop}))}(e));var r=t.filter((function(e){return e!==An.cspViolation}));return r.length&&n.push(function(e){return new Q((function(t){if(window.ReportingObserver){var n=p((function(e,n){return e.forEach((function(e){return t.notify(function(e){var t=e.type,n=e.body;return Pn({type:n.id,message:"".concat(t,": ").concat(n.message),originalError:e,stack:Dn(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)})}(e))}))})),r=new window.ReportingObserver(n,{types:e,buffered:!0});return r.observe(),function(){r.disconnect()}}}))}(r)),ee.apply(void 0,n)}function Pn(e){return S({startClocks:ze(),source:dt.REPORT,handling:"unhandled"},e)}function Dn(e,t,n,r,o){return n?ke({name:e,message:t,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=o?o:void 0}]}):void 0}var Bn=32*C;function Mn(e,t,n){return void 0===e?[]:"all"===e||Array.isArray(e)&&e.every((function(e){return y(t,e)}))?"all"===e?t:(r=e,i=new Set,r.forEach((function(e){return i.add(e)})),h(i)):void o.error("".concat(n,' should be "all" or an array with allowed values "').concat(t.join('", "'),'"'));var r,i}function Nn(t,n,r){var i,a,s=Qe(),c=n.observable.subscribe(u);function u(){if(a&&i&&n.isGranted()){c.unsubscribe();var e=r(i,a);s.drain(e)}}return{init:function(t){if(t)if(Le(t.enableExperimentalFeatures),Ct()&&(t=function(e){return S({},e,{clientToken:"empty"})}(t)),i=t,a)ft("DD_LOGS",t);else{var r=function(t){!0===t.usePciIntake&&t.site&&"datadoghq.com"!==t.site&&o.warn("PCI compliance for Logs is only available for Datadog organizations in the US1 site. Default intake will be used.");var n=Ln(t),r=Mn(t.forwardConsoleLogs,b(e),"Forward Console Logs"),i=Mn(t.forwardReports,b(An),"Forward Reports");if(n&&r&&i)return t.forwardErrorsToLogs&&!y(r,e.error)&&r.push(e.error),S({forwardErrorsToLogs:!1!==t.forwardErrorsToLogs,forwardConsoleLogs:r,forwardReports:i,requestErrorResponseLengthLimit:Bn,sendLogsAfterSessionExpiration:!!t.sendLogsAfterSessionExpiration},n)}(t);r&&(a=r,Lt().subscribe(P),n.tryToInit(r.trackingConsent),u())}else o.error("Missing configuration")},get initConfiguration(){return i},getInternalContext:P,handleLog:function(e,n,r,o,i){void 0===o&&(o=t()),void 0===i&&(i=Fe()),s.add((function(t){return t.handleLog(e,n,r,o,i)}))}}}var Un="logs";var qn={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};var jn="datadog-synthetics-public-id",Gn="datadog-synthetics-result-id",Fn="datadog-synthetics-injects-rum";function Hn(){return Boolean(window._DATADOG_SYNTHETICS_INJECTS_RUM||jt(Fn))}function zn(){var e=window._DATADOG_SYNTHETICS_RESULT_ID||jt(Gn);return"string"==typeof e?e:void 0}var Jn=1/0,Wn=qe;function $n(e){var t=e.expireDelay,n=e.maxEntries,r=[],o=L((function(){return function(){var e=He()-t;for(;r.length>0&&r[r.length-1].endTime<e;)r.pop()}()}),Wn);return{add:function(e,t){var o={value:e,startTime:t,endTime:Jn,remove:function(){Ze(r,o)},close:function(e){o.endTime=e}};return n&&r.length>=n&&r.pop(),r.unshift(o),o},find:function(e,t){void 0===e&&(e=Jn),void 0===t&&(t={returnInactive:!1});for(var n=0,o=r;n<o.length;n++){var i=o[n];if(i.startTime<=e){if(t.returnInactive||e<=i.endTime)return i.value;break}}},closeActive:function(e){var t=r[0];t&&t.endTime===Jn&&t.close(e)},findAll:function(e,t){void 0===e&&(e=Jn),void 0===t&&(t=0);var n=Je(e,t);return r.filter((function(t){return t.startTime<=n&&e<=t.endTime})).map((function(e){return e.value}))},reset:function(){r=[]},stop:function(){A(o)}}}var Vn=qe,Kn=Ht,Xn=[];function Zn(e,t,n,r){var o=new Q,i=new Q,a=Cn(e.sessionStoreStrategyType,t,n);Xn.push((function(){return a.stop()}));var s=$n({expireDelay:Kn});function c(){return{id:a.getSession().id,trackingType:a.getSession()[t],isReplayForced:!!a.getSession().forcedReplay}}return Xn.push((function(){return s.stop()})),a.renewObservable.subscribe((function(){s.add(c(),He()),o.notify()})),a.expireObservable.subscribe((function(){i.notify(),s.closeActive(He())})),a.expandOrRenewSession(),s.add(c(),[0,$e()][0]),r.observable.subscribe((function(){r.isGranted()?a.expandOrRenewSession():a.expire()})),function(e,t){var n=oe(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0}).stop;Xn.push(n)}(e,(function(){r.isGranted()&&a.expandOrRenewSession()})),function(e,t){var n=function(){"visible"===document.visibilityState&&t()},r=re(e,document,"visibilitychange",n).stop;Xn.push(r);var o=L(n,Vn);Xn.push((function(){A(o)}))}(e,(function(){return a.expandSession()})),function(e,t){var n=re(e,window,"resume",t,{capture:!0}).stop;Xn.push(n)}(e,(function(){return a.restartSession()})),{findSession:function(e,t){return s.find(e,t)},renewObservable:o,expireObservable:i,sessionStateUpdateObservable:a.sessionStateUpdateObservable,expire:a.expire,updateSessionState:a.updateSessionState}}var Yn="logs";function Qn(e,t){var n=Zn(e,Yn,(function(t){return function(e,t){var n=function(e){return"0"===e||"1"===e}(t)?t:er(e);return{trackingType:n,isTracked:"1"===n}}(e,t)}),t);return{findTrackedSession:function(e,t){void 0===t&&(t={returnInactive:!1});var r=n.findSession(e,t);return r&&"1"===r.trackingType?{id:r.id}:void 0},expireObservable:n.expireObservable}}function er(e){return Ke(e.sessionSampleRate)?"1":"0"}var tr=!1;function nr(e){var t,n=window;if(Hn()){var r=o(n.DD_RUM_SYNTHETICS);return r||tr||(tr=!0,at("Logs sent before RUM is injected by the synthetics worker",{testId:(t=window._DATADOG_SYNTHETICS_PUBLIC_ID||jt(jn),"string"==typeof t?t:void 0),resultId:zn()})),r}return o(n.DD_RUM);function o(t){if(t&&t.getInternalContext)return t.getInternalContext(e)}}function rr(e,t,n,r,o){var i=bt.concat(["custom"]),a={};i.forEach((function(e){var n,r,i,s,c;a[e]=(n=e,r=t.eventRateLimiterThreshold,i=o,s=0,c=!1,{isLimitReached:function(){if(0===s&&O((function(){s=0}),qe),(s+=1)<=r||c)return c=!1,!1;if(s===r+1){c=!0;try{i({message:"Reached max number of ".concat(n,"s by minute: ").concat(r),source:dt.AGENT,startClocks:ze()})}finally{c=!1}}return!0}})})),n.subscribe(0,(function(o){var i,s,c=o.rawLogsEvent,u=o.messageContext,f=void 0===u?void 0:u,l=o.savedCommonContext,d=void 0===l?void 0:l,v=o.domainContext,p=We(c.date),g=e.findTrackedSession(p);if(g||t.sendLogsAfterSessionExpiration&&e.findTrackedSession(p,{returnInactive:!0})){var m=d||r(),y=W({service:t.service,session_id:g?g.id:void 0,session:g?{id:g.id}:void 0,usr:N(m.user)?void 0:m.user,view:m.view},m.context,nr(p),c,f);!1===(null===(i=t.beforeSend)||void 0===i?void 0:i.call(t,y,v))||y.origin!==dt.AGENT&&(null!==(s=a[y.status])&&void 0!==s?s:a.custom).isLimitReached()||n.notify(1,y)}}))}var or,ir={};function ar(n){var r=n.map((function(n){return ir[n]||(ir[n]=function(n){return new Q((function(r){var o=t[n];return t[n]=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];o.apply(console,t);var a=Se();g((function(){r.notify(function(t,n,r){var o,i=t.map((function(e){return function(e){if("string"==typeof e)return X(e);if(e instanceof Error)return Ce(ue(e));return D(X(e),void 0,2)}(e)})).join(" ");if(n===e.error){var a=function(e,t){for(var n=0;n<e.length;n+=1){var r=e[n];if(t(r,n))return r}}(t,(function(e){return e instanceof Error}));o={stack:a?ke(ue(a)):void 0,fingerprint:Te(a),causes:a?Oe(a,"console"):void 0,startClocks:ze(),message:i,source:dt.CONSOLE,handling:"handled",handlingStack:r}}return{api:n,message:i,error:o,handlingStack:r}}(t,n,a))}))},function(){t[n]=o}}))}(n)),ir[n]}));return ee.apply(void 0,r)}var sr,cr=((or={})[e.log]=pt.info,or[e.debug]=pt.debug,or[e.info]=pt.info,or[e.warn]=pt.warn,or[e.error]=pt.error,or);var ur=new WeakMap;function fr(e){return sr||(sr=function(e){return new Q((function(t){var n=xt(XMLHttpRequest.prototype,"open",lr).stop,r=xt(XMLHttpRequest.prototype,"send",(function(n){!function(e,t,n){var r=e.target,o=e.handlingStack,i=ur.get(r);if(!i)return;var a=i;a.state="start",a.startClocks=ze(),a.isAborted=!1,a.xhr=r,a.handlingStack=o;var s=!1,c=xt(r,"onreadystatechange",(function(){r.readyState===XMLHttpRequest.DONE&&u()})).stop,u=function(){if(f(),c(),!s){s=!0;var e,t=i;t.state="complete",t.duration=(e=a.startClocks.timeStamp,Fe()-e),t.status=r.status,n.notify(S({},t))}},f=re(t,r,"loadend",u).stop;n.notify(a)}(n,e,t)}),{computeHandlingStack:!0}).stop,o=xt(XMLHttpRequest.prototype,"abort",dr).stop;return function(){n(),r(),o()}}))}(e)),sr}function lr(e){var t=e.target,n=e.parameters,r=n[0],o=n[1];ur.set(t,{state:"open",method:String(r).toUpperCase(),url:Et(String(o))})}function dr(e){var t=e.target,n=ur.get(t);n&&(n.isAborted=!0)}function vr(e){return e>=500}function pr(e,t){if(!e.forwardErrorsToLogs)return{stop:P};var n=fr(e).subscribe((function(e){"complete"===e.state&&o("xhr",e)})),r=Lt().subscribe((function(e){"resolve"===e.state&&o("fetch",e)}));function o(n,r){var o;function i(e){var o={isAborted:r.isAborted,handlingStack:r.handlingStack};t.notify(0,{rawLogsEvent:{message:"".concat(mr(n)," error ").concat(r.method," ").concat(r.url),date:r.startClocks.timeStamp,error:{stack:e||"Failed to load",handling:void 0},http:{method:r.method,status_code:r.status,url:r.url},status:pt.error,origin:dt.NETWORK},domainContext:o})}o=r.url,Ne.every((function(e){return y(o,e)}))||!function(e){return 0===e.status&&"opaque"!==e.responseType}(r)&&!vr(r.status)||("xhr"in r?function(e,t,n){"string"==typeof e.response?n(gr(e.response,t)):n(e.response)}(r.xhr,e,i):r.response?function(e,t,n){var r=function(e){try{return e.clone()}catch(e){return}}(e);r&&r.body?window.TextDecoder?function(e,t,n){!function(e,t,n){var r=e.getReader(),o=[],i=0;function a(){var e,a;if(r.cancel().catch(P),n.collectStreamBody){var s;if(1===o.length)s=o[0];else{s=new Uint8Array(i);var c=0;o.forEach((function(e){s.set(e,c),c+=e.length}))}e=s.slice(0,n.bytesLimit),a=s.length>n.bytesLimit}t(void 0,e,a)}!function e(){r.read().then(p((function(t){t.done?a():(n.collectStreamBody&&o.push(t.value),(i+=t.value.length)>n.bytesLimit?a():e())})),p((function(e){return t(e)})))}()}(e,(function(e,t,r){if(e)n(e);else{var o=(new TextDecoder).decode(t);r&&(o+="..."),n(void 0,o)}}),{bytesLimit:t,collectStreamBody:!0})}(r.body,t.requestErrorResponseLengthLimit,(function(e,t){n(e?"Unable to retrieve response: ".concat(e):t)})):r.text().then(p((function(e){return n(gr(e,t))})),p((function(e){return n("Unable to retrieve response: ".concat(e))}))):n()}(r.response,e,i):r.error&&function(e,t,n){n(gr(ke(ue(e)),t))}(r.error,e,i))}return{stop:function(){n.unsubscribe(),r.unsubscribe()}}}function gr(e,t){return e.length>t.requestErrorResponseLengthLimit?"".concat(e.substring(0,t.requestErrorResponseLengthLimit),"..."):e}function mr(e){return"xhr"===e?"XHR":"Fetch"}function yr(e){var t,n=function(t,n){var r=_e({stackTrace:t,originalError:n,startClocks:ze(),nonErrorPrefix:"Uncaught",source:dt.SOURCE,handling:"unhandled"});e.notify(r)},r=(t=n,xt(window,"onerror",(function(e){var n,r=e.parameters,o=r[0],i=r[1],a=r[2],s=r[3],c=r[4];n=c instanceof Error?ue(c):be(o,i,a,s),t(n,null!=c?c:o)}))).stop,o=function(e){return xt(window,"onunhandledrejection",(function(t){var n=t.parameters[0].reason||"Empty reason",r=ue(n);e(r,n)}))}(n).stop;return{stop:function(){r(),o()}}}var hr,br=function(){function e(){this.callbacks={}}return e.prototype.notify=function(e,t){var n=this.callbacks[e];n&&n.forEach((function(e){return e(t)}))},e.prototype.subscribe=function(e,t){var n=this;return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:function(){n.callbacks[e]=n.callbacks[e].filter((function(e){return t!==e}))}}},e}();function wr(e){return{handleLog:function(r,o,i,a,s){var c=W(o.getContext(),r.context);if(vt(r.status,ht.console,o)&&function(e,r){var o=e.status,i=e.message;n[Sr[o]].call(t,i,r)}(r,c),vt(r.status,ht.http,o)){var u={rawLogsEvent:{date:s||Fe(),message:r.message,status:r.status,origin:dt.LOGGER},messageContext:c,savedCommonContext:a};i&&(u.domainContext={handlingStack:i}),e.notify(0,u)}}}}var Sr=((hr={})[pt.ok]=e.debug,hr[pt.debug]=e.debug,hr[pt.info]=e.info,hr[pt.notice]=e.info,hr[pt.warn]=e.warn,hr[pt.error]=e.error,hr[pt.critical]=e.error,hr[pt.alert]=e.error,hr[pt.emerg]=e.error,hr);function kr(e){var t=e.encoder,n=e.request,r=e.flushController,i=e.messageBytesLimit,c={},u=r.flushObservable.subscribe((function(e){return function(e){var r=b(c).join("\n");c={};var o=(a=e.reason,y(b(qn),a)),i=o?n.sendOnExit:n.send;var a;if(o&&t.isAsync){var s=t.finishSync();s.outputBytesCount&&i(Cr(s));var u=[s.pendingData,r].filter(Boolean).join("\n");u&&i({data:u,bytesCount:_(u)})}else r&&t.write(t.isEmpty?r:"\n".concat(r)),t.finish((function(e){i(Cr(e))}))}(e)}));function f(e,n){var u=D(e),f=t.estimateEncodedBytesCount(u);f>=i?o.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(i,"KB. ").concat(s," ").concat(a,"/#technical-limitations")):(function(e){return void 0!==e&&void 0!==c[e]}(n)&&function(e){var n=c[e];delete c[e];var o=t.estimateEncodedBytesCount(n);r.notifyAfterRemoveMessage(o)}(n),function(e,n,o){r.notifyBeforeAddMessage(n),void 0!==o?(c[o]=e,r.notifyAfterAddMessage()):t.write(t.isEmpty?e:"\n".concat(e),(function(e){r.notifyAfterAddMessage(e-n)}))}(u,f,n))}return{flushController:r,add:f,upsert:f,stop:u.unsubscribe}}function Cr(e){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding}}var xr=80*C,Er=32,_r=3*x,Tr=qe,Or=Ue;function Rr(e,t,n,r,o){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?Ar(e,t,n,{onSuccess:function(){return Ir(0,t,n,r,o)},onFailure:function(){t.queuedPayloads.enqueue(e),Lr(t,n,r,o)}}):t.queuedPayloads.enqueue(e)}function Lr(e,t,n,r){2===e.transportStatus&&O((function(){Ar(e.queuedPayloads.first(),e,t,{onSuccess:function(){e.queuedPayloads.dequeue(),e.currentBackoffTime=Or,Ir(1,e,t,n,r)},onFailure:function(){e.currentBackoffTime=Math.min(Tr,2*e.currentBackoffTime),Lr(e,t,n,r)}})}),e.currentBackoffTime)}function Ar(e,t,n,r){var o=r.onSuccess,i=r.onFailure;t.bandwidthMonitor.add(e),n(e,(function(n){t.bandwidthMonitor.remove(e),!function(e){return"opaque"!==e.type&&(0===e.status&&!navigator.onLine||408===e.status||429===e.status||vr(e.status))}(n)?(t.transportStatus=0,o()):(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:n.status},i())}))}function Ir(e,t,n,r,o){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(o({message:"Reached max ".concat(r," events size queued for upload: ").concat(_r/x,"MiB"),source:dt.AGENT,startClocks:ze()}),t.queueFullReported=!0);var i=t.queuedPayloads;for(t.queuedPayloads=Pr();i.size()>0;)Rr(i.dequeue(),t,n,r,o)}function Pr(){var e=[];return{bytesCount:0,enqueue:function(t){this.isFull()||(e.push(t),this.bytesCount+=t.bytesCount)},first:function(){return e[0]},dequeue:function(){var t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:function(){return e.length},isFull:function(){return this.bytesCount>=_r}}}function Dr(e,t,n){var r={transportStatus:0,currentBackoffTime:Or,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=xr&&this.ongoingRequestCount<Er},add:function(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove:function(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}},queuedPayloads:Pr(),queueFullReported:!1},o=function(n,r){return function(e,t,n,r){var o=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(e){return!1}}()&&n.bytesCount<t;if(o){var i=e.build("fetch",n);fetch(i,{method:"POST",body:n.data,keepalive:!0,mode:"cors"}).then(p((function(e){return null==r?void 0:r({status:e.status,type:e.type})})),p((function(){Mr(e.build("xhr",n),n.data,r)})))}else{Mr(e.build("xhr",n),n.data,r)}}(e,t,n,r)};return{send:function(t){Rr(t,r,o,e.trackType,n)},sendOnExit:function(n){!function(e,t,n){var r=!!navigator.sendBeacon&&n.bytesCount<t;if(r)try{var o=e.build("beacon",n);if(navigator.sendBeacon(o,n.data))return}catch(e){!function(e){Br||(Br=!0,st(e))}(e)}var i=e.build("xhr",n);Mr(i,n.data)}(e,t,n)}}}var Br=!1;function Mr(e,t,n){var r=new XMLHttpRequest;r.open("POST",e,!0),t instanceof Blob&&r.setRequestHeader("Content-Type",t.type),re({allowUntrustedEvents:!0},r,"loadend",(function(){null==n||n({status:r.status})}),{once:!0}),r.send(t)}function Nr(e){var t,n=e.messagesLimit,r=e.bytesLimit,o=e.durationLimit,i=e.pageExitObservable,a=e.sessionExpireObservable,s=i.subscribe((function(e){return d(e.reason)})),c=a.subscribe((function(){return d("session_expire")})),u=new Q((function(){return function(){s.unsubscribe(),c.unsubscribe()}})),f=0,l=0;function d(e){if(0!==l){var t=l,n=f;l=0,f=0,v(),u.notify({reason:e,messagesCount:t,bytesCount:n})}}function v(){R(t),t=void 0}return{flushObservable:u,get messagesCount(){return l},notifyBeforeAddMessage:function(e){f+e>=r&&d("bytes_limit"),l+=1,f+=e,void 0===t&&(t=O((function(){d("duration_limit")}),o))},notifyAfterAddMessage:function(e){void 0===e&&(e=0),f+=e,l>=n?d("messages_limit"):f>=r&&d("bytes_limit")},notifyAfterRemoveMessage:function(e){f-=e,0===(l-=1)&&v()}}}function Ur(e,t,n,r,o,i,a){void 0===a&&(a=kr);var s=u(e,t),c=n&&u(e,n);function u(e,t){var n=t.endpoint,s=t.encoder;return a({encoder:s,request:Dr(n,e.batchBytesLimit,r),flushController:Nr({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageExitObservable:o,sessionExpireObservable:i}),messageBytesLimit:e.messageBytesLimit})}return{flushObservable:s.flushController.flushObservable,add:function(e,t){void 0===t&&(t=!0),s.add(e),c&&t&&c.add(n.transformMessage?n.transformMessage(e):e)},upsert:function(e,t){s.upsert(e,t),c&&c.upsert(n.transformMessage?n.transformMessage(e):e,t)},stop:function(){s.stop(),c&&c.stop()}}}function qr(){var e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write:function(n,r){var o=_(n);t+=o,e+=n,r&&r(o)},finish:function(e){e(this.finishSync())},finishSync:function(){var n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount:function(e){return e.length}}}function jr(e,t,n,r,o){var i=it("browser-logs-sdk",t);i.setContextProvider((function(){var e,t,n,r,i,a;return{application:{id:null===(e=nr())||void 0===e?void 0:e.application_id},session:{id:null===(t=o.findTrackedSession())||void 0===t?void 0:t.id},view:{id:null===(r=null===(n=nr())||void 0===n?void 0:n.view)||void 0===r?void 0:r.id},action:{id:null===(a=null===(i=nr())||void 0===i?void 0:i.user_action)||void 0===a?void 0:a.id}}}));var a=[];if(Ct()){var s=kt(),c=i.observable.subscribe((function(e){return s.send("internal_telemetry",e)}));a.push((function(){return c.unsubscribe()}))}else{var u=Ur(t,{endpoint:t.rumEndpointBuilder,encoder:qr()},t.replica&&{endpoint:t.replica.rumEndpointBuilder,encoder:qr()},n,r,o.expireObservable);a.push((function(){return u.stop()}));var f=i.observable.subscribe((function(e){return u.add(e,function(e){return e.site===Pe}(t))}));a.push((function(){return f.unsubscribe()}))}return rt.drain(),function(e){ot({type:et.configuration,configuration:e})}(function(e){var t,n={session_sample_rate:(t=e).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};return S({forward_errors_to_logs:e.forwardErrorsToLogs,forward_console_logs:e.forwardConsoleLogs,forward_reports:e.forwardReports,use_pci_intake:e.usePciIntake,send_logs_after_session_expiration:e.sendLogsAfterSessionExpiration},n)}(e)),{telemetry:i,stop:function(){a.forEach((function(e){return e()}))}}}var Gr,Fr,Hr,zr,Jr=function(e){var t,n,r=G(),i=te(r.getOrCreateTracker(2)),a=te(r.getOrCreateTracker(1)),s={tryToInit:function(e){t||(t=e)},update:function(e){t=e,n.notify()},isGranted:function(){return t===ne.GRANTED},observable:n=new Q};function c(){return function(e,t){return{view:{referrer:document.referrer,url:window.location.href},context:e.getContext(),user:t.getContext()}}(i,a)}var u,f,l=Nn(c,s,(function(t,n){t.storeContextsAcrossPages&&(se(n,i,Un,2),se(n,a,Un,1));var r=e(t,n,c,s);return l=function(e,t){return S({init:function(e){ft("DD_LOGS",e)},initConfiguration:e},t)}(t,r),r})),v={},g=new wt((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.handleLog.apply(l,e)}),r.createDetachedTracker());return u={logger:g,init:p((function(e){return l.init(e)})),setTrackingConsent:p((function(e){var t;s.update(e),t={feature:"set-tracking-consent",tracking_consent:e},ot({type:et.usage,usage:t})})),getGlobalContext:p((function(){return i.getContext()})),setGlobalContext:p((function(e){return i.setContext(e)})),setGlobalContextProperty:p((function(e,t){return i.setContextProperty(e,t)})),removeGlobalContextProperty:p((function(e){return i.removeContextProperty(e)})),clearGlobalContext:p((function(){return i.clearContext()})),createLogger:p((function(e,t){return void 0===t&&(t={}),v[e]=new wt((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.handleLog.apply(l,e)}),r.createDetachedTracker(),X(e),t.handler,t.level,X(t.context)),v[e]})),getLogger:p((function(e){return v[e]})),getInitConfiguration:p((function(){return J(l.initConfiguration)})),getInternalContext:p((function(e){return l.getInternalContext(e)})),setUser:p((function(e){(function(e){var t="object"===H(e);return t||o.error("Unsupported user:",e),t})(e)&&a.setContext(ut(e))})),getUser:p((function(){return a.getContext()})),setUserProperty:p((function(e,t){var n,r=ut((n={},n[e]=t,n))[e];a.setContextProperty(e,r)})),removeUserProperty:p((function(e){return a.removeContextProperty(e)})),clearUser:p((function(){return a.clearContext()}))},f=S({version:"5.31.1",onReady:function(e){e()}},u),Object.defineProperty(f,"_setDebug",{get:function(){return d},enumerable:!1}),f}((function(e,t,n,r){var o=new br,i=[];o.subscribe(1,(function(e){return Ve("logs",e)}));var a=function(e){return function(t){e.notify(0,{rawLogsEvent:{message:t.message,date:t.startClocks.timeStamp,origin:dt.AGENT,status:pt.error}}),at("Error reported to customer",{"error.message":t.message})}}(o),s=function(e){return new Q((function(t){var n=oe(e,window,["visibilitychange","freeze"],(function(e){"visibilitychange"===e.type&&"hidden"===document.visibilityState?t.notify({reason:qn.HIDDEN}):"freeze"===e.type&&t.notify({reason:qn.FROZEN})}),{capture:!0}).stop,r=re(e,window,"beforeunload",(function(){t.notify({reason:qn.UNLOADING})})).stop;return function(){n(),r()}}))}(t),c=!t.sessionStoreStrategyType||Ct()||Hn()?function(e){var t="1"===er(e)?{}:void 0;return{findTrackedSession:function(){return t},expireObservable:new Q}}(t):Qn(t,r),u=jr(e,t,a,s,c).stop;i.push((function(){return u()})),pr(t,o),function(e,t){if(!e.forwardErrorsToLogs)return{stop:P};var n=new Q,r=yr(n).stop,o=n.subscribe((function(e){t.notify(0,{rawLogsEvent:{message:e.message,date:e.startClocks.timeStamp,error:mt(e),origin:dt.SOURCE,status:pt.error}})}))}(t,o),function(e,t){var n=ar(e.forwardConsoleLogs).subscribe((function(e){var n={rawLogsEvent:{date:Fe(),message:e.message,origin:dt.CONSOLE,error:e.error&&mt(e.error),status:cr[e.api]},domainContext:{handlingStack:e.handlingStack}};t.notify(0,n)}))}(t,o),function(e,t){var n=In(e,e.forwardReports).subscribe((function(e){var n,r=e.message,o="deprecation"===e.originalError.type?pt.warn:pt.error;o===pt.error?n=mt(e):e.stack&&(r+=" Found in ".concat(function(e){var t;return null===(t=/@ (.+)/.exec(e))||void 0===t?void 0:t[1]}(e.stack))),t.notify(0,{rawLogsEvent:{date:Fe(),message:r,origin:dt.REPORT,error:n,status:o}})}))}(t,o);var f,l=wr(o).handleLog;if(rr(c,t,o,n,a),Ct())!function(e){var t=kt();e.subscribe(1,(function(e){t.send("log",e)}))}(o);else{var d=function(e,t,n,r,o){var i=Ur(e,{endpoint:e.logsEndpointBuilder,encoder:qr()},e.replica&&{endpoint:e.replica.logsEndpointBuilder,encoder:qr()},n,r,o.expireObservable);return t.subscribe(1,(function(e){i.add(e)})),i}(t,o,a,s,c).stop;i.push((function(){return d()}))}return{handleLog:l,getInternalContext:(f=c,{get:function(e){var t=f.findTrackedSession(e);if(t)return{session_id:t.id}}}).get,stop:function(){i.forEach((function(e){return e()}))}}}));Gr=k(),Hr=Jr,(zr=Gr[Fr="DD_LOGS"])&&!zr.q&&zr.version&&o.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),Gr[Fr]=Hr,zr&&zr.q&&zr.q.forEach((function(e){return c(e,"onReady callback threw an error:")()}))}(); | ||
!function(){"use strict";var e={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},t=console,n={};Object.keys(e).forEach((function(e){n[e]=t[e]}));var r="Datadog Browser SDK:",o={debug:n.debug.bind(t,r),log:n.log.bind(t,r),info:n.info.bind(t,r),warn:n.warn.bind(t,r),error:n.error.bind(t,r)},i="https://docs.datadoghq.com",a="".concat(i,"/real_user_monitoring/browser/troubleshooting"),s="More details:";function c(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return e.apply(void 0,n)}catch(e){o.error(t,e)}}}var u,f=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},l=!1;function d(e){l=e}function v(e,t,n){var r=n.value;n.value=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(u?p(r):r).apply(this,e)}}function p(e){return function(){return g(e,this,arguments)}}function g(e,t,n){try{return e.apply(t,n)}catch(e){if(m(e),u)try{u(e)}catch(e){m(e)}}}function m(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];l&&o.error.apply(o,f(["[MONITOR]"],e,!1))}function y(e,t){return-1!==e.indexOf(t)}function h(e){if(Array.from)return Array.from(e);var t=[];if(e instanceof Set)e.forEach((function(e){return t.push(e)}));else for(var n=0;n<e.length;n++)t.push(e[n]);return t}function b(e){return Object.keys(e).map((function(t){return e[t]}))}function w(e,t){return e.slice(0,t.length)===t}function S(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})),e}function k(){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}var C=1024,x=1024*C,E=/[^\u0000-\u007F]/;function _(e){return E.test(e)?void 0!==window.TextEncoder?(new TextEncoder).encode(e).length:new Blob([e]).size:e.length}function T(e,t){var n,r=k();return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=e[r.Zone.__symbol__(t)]),n||(n=e[t]),n}function O(e,t){return T(k(),"setTimeout")(p(e),t)}function R(e){T(k(),"clearTimeout")(e)}function L(e,t){return T(k(),"setInterval")(p(e),t)}function A(e){T(k(),"clearInterval")(e)}function I(e,t,n){var r,o,i=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,s=!1;return{throttled:function(){for(var n=[],c=0;c<arguments.length;c++)n[c]=arguments[c];s?r=n:(i?e.apply(void 0,n):r=n,s=!0,o=O((function(){a&&r&&e.apply(void 0,r),s=!1,r=void 0}),t))},cancel:function(){R(o),s=!1,r=void 0}}}function P(){}function D(e,t,n){if("object"!=typeof e||null===e)return JSON.stringify(e);var r=M(Object.prototype),o=M(Array.prototype),i=M(Object.getPrototypeOf(e)),a=M(e);try{return JSON.stringify(e,t,n)}catch(e){return"<error: unable to serialize object>"}finally{r(),o(),i(),a()}}function M(e){var t=e,n=t.toJSON;return n?(delete t.toJSON,function(){t.toJSON=n}):P}function B(e,t){return Object.keys(e).some((function(n){return e[n]===t}))}function N(e){return 0===Object.keys(e).length}var U=3*C,q=16*C,j=200;function G(e){void 0===e&&(e=2);var t=new Map,n=!1;function r(r){if(void 0===r&&(r=0),!n&&0!==e){var i=2===e?U:q,c=r;t.forEach((function(e){c+=e.getBytesCount()})),c>i&&(!function(e){o.warn("Customer data exceeds the recommended ".concat(e/C,"KiB threshold. ").concat(s," ").concat(a,"/#customer-data-exceeds-the-recommended-threshold-warning"))}(i),n=!0)}}return{createDetachedTracker:function(){var e=F((function(){return r(e.getBytesCount())}));return e},getOrCreateTracker:function(e){return t.has(e)||t.set(e,F(r)),t.get(e)},setCompressionStatus:function(t){0===e&&(e=t,r())},getCompressionStatus:function(){return e},stop:function(){t.forEach((function(e){return e.stop()})),t.clear()}}}function F(e){var t=0,n=I((function(n){t=_(D(n)),e()}),j),r=n.throttled,o=n.cancel,i=function(){o(),t=0};return{updateCustomerData:function(e){N(e)?i():r(e)},resetCustomerData:i,getBytesCount:function(){return t},stop:function(){o()}}}function H(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function z(e,t,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var e=new WeakSet;return{hasAlreadyBeenSeen:function(t){var n=e.has(t);return n||e.add(t),n}}}var t=[];return{hasAlreadyBeenSeen:function(e){var n=t.indexOf(e)>=0;return n||t.push(e),n}}}()),void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){var r=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,r)}if(!n.hasAlreadyBeenSeen(t)){if(Array.isArray(t)){for(var o=Array.isArray(e)?e:[],i=0;i<t.length;++i)o[i]=z(o[i],t[i],n);return o}var a="object"===H(e)?e:{};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(a[s]=z(a[s],t[s],n));return a}}function J(e){return z(void 0,e)}function W(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r];null!=i&&(e=z(e,i))}return e}var $=220*C,V="$",K=3;function X(e,t){void 0===t&&(t=$);var n=M(Object.prototype),r=M(Array.prototype),o=[],i=new WeakMap,a=Z(e,V,void 0,o,i),s=JSON.stringify(a),c=s?s.length:0;if(!(c>t)){for(;o.length>0&&c<t;){var u=o.shift(),f=0;if(Array.isArray(u.source))for(var l=0;l<u.source.length;l++){if(c+=void 0!==(d=Z(u.source[l],u.path,l,o,i))?JSON.stringify(d).length:4,c+=f,f=1,c>t){Y(t,"truncated",e);break}u.target[l]=d}else for(var l in u.source)if(Object.prototype.hasOwnProperty.call(u.source,l)){var d;if(void 0!==(d=Z(u.source[l],u.path,l,o,i))&&(c+=JSON.stringify(d).length+f+l.length+K,f=1),c>t){Y(t,"truncated",e);break}u.target[l]=d}}return n(),r(),a}Y(t,"discarded",e)}function Z(e,t,n,r,o){var i=function(e){var t=e;if(t&&"function"==typeof t.toJSON)try{return t.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 t=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(t&&t[1])return"[".concat(t[1],"]")}catch(e){}return"[Unserializable]"}(i);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;var s=e;if(o.has(s))return"[Reference seen at ".concat(o.get(s),"]");var c=void 0!==n?"".concat(t,".").concat(n):t,u=Array.isArray(i)?[]:{};return o.set(s,c),r.push({source:i,target:u,path:c}),u}function Y(e,t,n){o.warn("The data provided has been ".concat(t," as it is over the limit of ").concat(e," characters:"),n)}var Q=function(){function e(e){this.onFirstSubscribe=e,this.observers=[]}return e.prototype.subscribe=function(e){var t=this;return this.observers.push(e),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),{unsubscribe:function(){t.observers=t.observers.filter((function(t){return e!==t})),!t.observers.length&&t.onLastUnsubscribe&&t.onLastUnsubscribe()}}},e.prototype.notify=function(e){this.observers.forEach((function(t){return t(e)}))},e}();function ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new Q((function(t){var n=e.map((function(e){return e.subscribe((function(e){return t.notify(e)}))}));return function(){return n.forEach((function(e){return e.unsubscribe()}))}}))}function te(e){var t={},n=new Q,r={getContext:function(){return J(t)},setContext:function(o){"object"===H(o)?(t=X(o),e&&e.updateCustomerData(t)):r.clearContext(),n.notify()},setContextProperty:function(r,o){t[r]=X(o),e&&e.updateCustomerData(t),n.notify()},removeContextProperty:function(r){delete t[r],e&&e.updateCustomerData(t),n.notify()},clearContext:function(){t={},e&&e.resetCustomerData(),n.notify()},changeObservable:n};return r}var ne={GRANTED:"granted",NOT_GRANTED:"not-granted"};function re(e,t,n,r,o){return oe(e,t,[n],r,o)}function oe(e,t,n,r,o){var i=void 0===o?{}:o,a=i.once,s=i.capture,c=i.passive,u=p((function(t){(t.isTrusted||t.__ddIsTrusted||e.allowUntrustedEvents)&&(a&&v(),r(t))})),f=c?{capture:s,passive:c}:s,l=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,d=T(l,"addEventListener");function v(){var e=T(l,"removeEventListener");n.forEach((function(n){return e.call(t,n,u,f)}))}return n.forEach((function(e){return d.call(t,e,u,f)})),{stop:v}}var ie="_dd_c",ae=[];function se(e,t,n,r){var o=function(e,t){return"".concat(ie,"_").concat(e,"_").concat(t)}(n,r);function i(){var e=localStorage.getItem(o);return null!==e?JSON.parse(e):{}}ae.push(re(e,window,"storage",(function(e){var n=e.key;o===n&&t.setContext(i())}))),t.changeObservable.subscribe((function(){localStorage.setItem(o,JSON.stringify(t.getContext()))})),t.setContext(W(i(),t.getContext()))}var ce="?";function ue(e){var t=[],n=he(e,"stack"),r=String(e);return n&&w(n,r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach((function(e){var n=function(e){var t=de.exec(e);if(!t)return;var n=t[2]&&0===t[2].indexOf("native"),r=t[2]&&0===t[2].indexOf("eval"),o=ve.exec(t[2]);r&&o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3]);return{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||ce,line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}(e)||function(e){var t=pe.exec(e);if(!t)return;return{args:[],column:t[3]?+t[3]:void 0,func:ce,line:t[2]?+t[2]:void 0,url:t[1]}}(e)||function(e){var t=ge.exec(e);if(!t)return;return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||ce,line:+t[3],url:t[2]}}(e)||function(e){var t=me.exec(e);if(!t)return;var n=t[3]&&t[3].indexOf(" > eval")>-1,r=ye.exec(t[3]);n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0);return{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||ce,line:t[4]?+t[4]:void 0,url:t[3]}}(e);n&&(!n.func&&n.line&&(n.func=ce),t.push(n))})),{message:he(e,"message"),name:he(e,"name"),stack:t}}var fe="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",le="(?::(\\d+))",de=new RegExp("^\\s*at (.*?) ?\\(".concat(fe).concat(le,"?").concat(le,"?\\)?\\s*$"),"i"),ve=new RegExp("\\((\\S*)".concat(le).concat(le,"\\)"));var pe=new RegExp("^\\s*at ?".concat(fe).concat(le,"?").concat(le,"??\\s*$"),"i");var ge=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var me=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,ye=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function he(e,t){if("object"==typeof e&&e&&t in e){var n=e[t];return"string"==typeof n?n:void 0}}function be(e,t,n,r){var o=[{url:t,column:r,line:n}],i=function(e){var t,n,r;"[object String]"==={}.toString.call(e)&&(n=(t=we.exec(e))[1],r=t[2]);return{name:n,message:r}}(e);return{name:i.name,message:i.message,stack:o}}var we=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function Se(){var e,t=new Error;if(!t.stack)try{throw t}catch(e){}return g((function(){var n=ue(t);n.stack=n.stack.slice(2),e=ke(n)})),e}function ke(e){var t=Ce(e);return e.stack.forEach((function(e){var n="?"===e.func?"<anonymous>":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):"";t+="\n at ".concat(n).concat(r," @ ").concat(e.url).concat(o).concat(i)})),t}function Ce(e){return"".concat(e.name||"Error",": ").concat(e.message)}var xe,Ee="No stack, consider using an instance of Error";function _e(e){var t=e.stackTrace,n=e.originalError,r=e.handlingStack,o=e.startClocks,i=e.nonErrorPrefix,a=e.source,s=e.handling,c=n instanceof Error,u=function(e,t,n,r){return(null==e?void 0:e.message)&&(null==e?void 0:e.name)?e.message:t?"Empty message":"".concat(n," ").concat(D(X(r)))}(t,c,i,n),f=function(e,t){if(void 0===t)return!1;if(e)return!0;return t.stack.length>0&&(t.stack.length>1||void 0!==t.stack[0].url)}(c,t)?ke(t):Ee,l=c?Oe(n,a):void 0;return{startClocks:o,source:a,handling:s,handlingStack:r,originalError:n,type:t?t.name:void 0,message:u,stack:f,causes:l,fingerprint:Te(n)}}function Te(e){return e instanceof Error&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function Oe(e,t){for(var n=e,r=[];(null==n?void 0:n.cause)instanceof Error&&r.length<10;){var o=ue(n.cause);r.push({message:n.cause.message,source:t,type:null==o?void 0:o.name,stack:o&&ke(o)}),n=n.cause}return r.length?r:void 0}!function(e){e.WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",e.REMOTE_CONFIGURATION="remote_configuration",e.LONG_ANIMATION_FRAME="long_animation_frame",e.ACTION_NAME_MASKING="action_name_masking"}(xe||(xe={}));var Re=new Set;function Le(e){Array.isArray(e)&&e.filter((function(e){return B(xe,e)})).forEach((function(e){Re.add(e)}))}function Ae(){return Re}var Ie,Pe="datad0g.com",De="dd0g-gov.com",Me="datadoghq.com",Be="pci.browser-intake-datadoghq.com",Ne=["ddsource","ddtags"],Ue=1e3,qe=60*Ue,je=60*qe;function Ge(){return(new Date).getTime()}function Fe(){return Ge()}function He(){return performance.now()}function ze(){return{relative:He(),timeStamp:Fe()}}function Je(e,t){return e+t}function We(e){return e-$e()}function $e(){return void 0===Ie&&(Ie=performance.timing.navigationStart),Ie}function Ve(e,t){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}function Ke(e){return 0!==e&&100*Math.random()<=e}function Xe(){var e,t=window.navigator;return{status:t.onLine?"connected":"not_connected",interfaces:t.connection&&t.connection.type?[t.connection.type]:void 0,effective_type:null===(e=t.connection)||void 0===e?void 0:e.effectiveType}}function Ze(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}var Ye=500;function Qe(){var e=[];return{add:function(t){e.push(t)>Ye&&e.splice(0,1)},remove:function(t){Ze(e,t)},drain:function(t){e.forEach((function(e){return e(t)})),e.length=0}}}var et={log:"log",configuration:"configuration",usage:"usage"},tt=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],nt=["ddog-gov.com"],rt=Qe(),ot=function(e){rt.add((function(){return ot(e)}))};function it(e,t){var n,r,o=new Q,i=new Set,a=!y(nt,t.site)&&Ke(t.telemetrySampleRate),s=((n={})[et.log]=a,n[et.configuration]=a&&Ke(t.telemetryConfigurationSampleRate),n[et.usage]=a&&Ke(t.telemetryUsageSampleRate),n),c={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return ot=function(n){var a=D(n);if(s[n.type]&&i.size<t.maxTelemetryEventsPerPage&&!i.has(a)){var u=function(e,t,n){return W({type:"telemetry",date:Fe(),service:e,version:"5.32.0",source:"browser",_dd:{format_version:2},telemetry:W(t,{runtime_env:n,connectivity:Xe(),sdk_setup:"cdn"}),experimental_features:h(Ae())},void 0!==r?r():{})}(e,n,c);o.notify(u),Ve("telemetry",u),i.add(a)}},u=st,{setContextProvider:function(e){r=e},observable:o,enabled:a}}function at(t,n){m(e.debug,t,n),ot(S({type:et.log,message:t,status:"debug"},n))}function st(e,t){ot(S({type:et.log,status:"error"},function(e){if(e instanceof Error){var t=ue(e);return{error:{kind:t.name,stack:ke(ct(t))},message:t.message}}return{error:{stack:Ee},message:"".concat("Uncaught"," ").concat(D(e))}}(e),t))}function ct(e){return e.stack=e.stack.filter((function(e){return!e.url||tt.some((function(t){return w(e.url,t)}))})),e}function ut(e){var t=S({},e);return["id","name","email"].forEach((function(e){e in t&&(t[e]=String(t[e]))})),t}function ft(e,t){t.silentMultipleInit||o.error("".concat(e," is already initialized."))}var lt,dt={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function vt(e,t,n){var r=n.getHandler(),o=Array.isArray(r)?r:[r];return gt[e]>=gt[n.getLevel()]&&y(o,t)}var pt={ok:"ok",debug:"debug",info:"info",notice:"notice",warn:"warn",error:"error",critical:"critical",alert:"alert",emerg:"emerg"},gt=((lt={})[pt.ok]=0,lt[pt.debug]=1,lt[pt.info]=2,lt[pt.notice]=4,lt[pt.warn]=5,lt[pt.error]=6,lt[pt.critical]=7,lt[pt.alert]=8,lt[pt.emerg]=9,lt);function mt(e,t){var n=(void 0===t?{}:t).includeMessage,r=void 0!==n&&n;return{stack:e.stack,kind:e.type,message:r?e.message:void 0,causes:e.causes,fingerprint:e.fingerprint,handling:e.handling}}var yt=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ht={console:"console",http:"http",silent:"silent"},bt=Object.keys(pt),wt=function(){function e(e,t,n,r,o,i){void 0===r&&(r=ht.http),void 0===o&&(o=pt.debug),void 0===i&&(i={}),this.handleLogStrategy=e,this.handlerType=r,this.level=o,this.contextManager=te(t),this.contextManager.setContext(i),n&&this.contextManager.setContextProperty("logger",{name:n})}return e.prototype.logImplementation=function(e,t,n,r,o){void 0===n&&(n=pt.info);var i,a=X(t);null!=r?i=W({error:mt(_e({stackTrace:r instanceof Error?ue(r):void 0,originalError:r,nonErrorPrefix:"Provided",source:dt.LOGGER,handling:"handled",startClocks:ze()}),{includeMessage:!0})},a):i=a;this.handleLogStrategy({message:X(e),context:i,status:n},this,o)},e.prototype.log=function(e,t,n,r){var o;void 0===n&&(n=pt.info),vt(n,ht.http,this)&&(o=Se()),this.logImplementation(e,t,n,r,o)},e.prototype.setContext=function(e){this.contextManager.setContext(e)},e.prototype.getContext=function(){return this.contextManager.getContext()},e.prototype.setContextProperty=function(e,t){this.contextManager.setContextProperty(e,t)},e.prototype.removeContextProperty=function(e){this.contextManager.removeContextProperty(e)},e.prototype.clearContext=function(){this.contextManager.clearContext()},e.prototype.setHandler=function(e){this.handlerType=e},e.prototype.getHandler=function(){return this.handlerType},e.prototype.setLevel=function(e){this.level=e},e.prototype.getLevel=function(){return this.level},yt([v],e.prototype,"logImplementation",null),e}();function St(e){return function(t,n,r){var o;vt(e,ht.http,this)&&(o=Se()),this.logImplementation(t,n,e,r,o)}}function kt(){var e=k().DatadogEventBridge;if(e)return{getCapabilities:function(){var t;return JSON.parse((null===(t=e.getCapabilities)||void 0===t?void 0:t.call(e))||"[]")},getPrivacyLevel:function(){var t;return null===(t=e.getPrivacyLevel)||void 0===t?void 0:t.call(e)},getAllowedWebViewHosts:function(){return JSON.parse(e.getAllowedWebViewHosts())},send:function(t,n,r){var o=r?{id:r}:void 0;e.send(JSON.stringify({eventType:t,event:n,view:o}))}}}function Ct(e){var t;void 0===e&&(e=null===(t=k().location)||void 0===t?void 0:t.hostname);var n=kt();return!!n&&n.getAllowedWebViewHosts().some((function(t){return e===t||(n=e,r=".".concat(t),n.slice(-r.length)===r);var n,r}))}function xt(e,t,n,r){var o=(void 0===r?{}:r).computeHandlingStack,i=e[t];if("function"!=typeof i){if(!(t in e)||!w(t,"on"))return{stop:P};i=P}var a=!1,s=function(){if(a)return i.apply(this,arguments);var e,t=h(arguments);g(n,null,[{target:this,parameters:t,onPostCall:function(t){e=t},handlingStack:o?Se():void 0}]);var r=i.apply(this,t);return e&&g(e,null,[r]),r};return e[t]=s,{stop:function(){a=!0,e[t]===s&&(e[t]=i)}}}function Et(e){return _t(e,location.href).href}function _t(e,t){var n=function(){if(void 0===Tt)try{var e=new Rt("http://test/path");Tt="http://test/path"===e.href}catch(e){Tt=!1}return Tt?Rt:void 0}();if(n)try{return void 0!==t?new n(e,t):new n(e)}catch(n){throw new Error("Failed to construct URL: ".concat(String(n)," ").concat(D({url:e,base:t})))}if(void 0===t&&!/:/.test(e))throw new Error("Invalid URL: '".concat(e,"'"));var r=document,o=r.createElement("a");if(void 0!==t){var i=(r=document.implementation.createHTMLDocument("")).createElement("base");i.href=t,r.head.appendChild(i),r.body.appendChild(o)}return o.href=e,o}wt.prototype.ok=St(pt.ok),wt.prototype.debug=St(pt.debug),wt.prototype.info=St(pt.info),wt.prototype.notice=St(pt.notice),wt.prototype.warn=St(pt.warn),wt.prototype.error=St(pt.error),wt.prototype.critical=St(pt.critical),wt.prototype.alert=St(pt.alert),wt.prototype.emerg=St(pt.emerg);var Tt,Ot,Rt=URL;function Lt(){return Ot||(Ot=new Q((function(e){if(window.fetch){var t=xt(window,"fetch",(function(t){return function(e,t){var n=e.parameters,r=e.onPostCall,o=e.handlingStack,i=n[0],a=n[1],s=a&&a.method;void 0===s&&i instanceof Request&&(s=i.method);var c=void 0!==s?String(s).toUpperCase():"GET",u=i instanceof Request?i.url:Et(String(i)),f=ze(),l={state:"start",init:a,input:i,method:c,startClocks:f,url:u,handlingStack:o};t.notify(l),n[0]=l.input,n[1]=l.init,r((function(e){return function(e,t,n){var r=n;function o(t){r.state="resolve",S(r,t),e.notify(r)}t.then(p((function(e){o({response:e,responseType:e.type,status:e.status,isAborted:!1})})),p((function(e){var t,n;o({status:0,isAborted:(null===(n=null===(t=r.init)||void 0===t?void 0:t.signal)||void 0===n?void 0:n.aborted)||e instanceof DOMException&&e.code===DOMException.ABORT_ERR,error:e})})))}(t,e,l)}))}(t,e)}),{computeHandlingStack:!0}).stop;return t}}))),Ot}function At(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,At)}var It,Pt,Dt,Mt=/([\w-]+)\s*=\s*([^;]+)/g;function Bt(e,t,n){void 0===n&&(n="");var r=e.charCodeAt(t-1),o=r>=55296&&r<=56319?t+1:t;return e.length<=o?e:"".concat(e.slice(0,o)).concat(n)}function Nt(){return null!=It?It:It=function(e){var t;void 0===e&&(e=window);var n=e.navigator.userAgent;if(e.chrome||/HeadlessChrome/.test(n))return 1;if(0===(null===(t=e.navigator.vendor)||void 0===t?void 0:t.indexOf("Apple"))||/safari/i.test(n)&&!/chrome|android/i.test(n))return 2;if(e.document.documentMode)return 0;return 3}()}function Ut(e,t,n,r){var o=new Date;o.setTime(o.getTime()+n);var i="expires=".concat(o.toUTCString()),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain=".concat(r.domain):"",c=r&&r.secure?";secure":"",u=r&&r.partitioned?";partitioned":"";document.cookie="".concat(e,"=").concat(t,";").concat(i,";path=/;samesite=").concat(a).concat(s).concat(c).concat(u)}function qt(e){return function(e,t){for(Mt.lastIndex=0;;){var n=Mt.exec(e);if(!n)break;if(n[1]===t)return n[2]}}(document.cookie,e)}function jt(e){return Pt||(Pt=function(e){var t=new Map;for(Mt.lastIndex=0;;){var n=Mt.exec(e);if(!n)break;t.set(n[1],n[2])}return t}(document.cookie)),Pt.get(e)}function Gt(e,t){Ut(e,"",0,t)}var Ft="_dd_s",Ht=4*je,zt=15*qe,Jt=/^([a-zA-Z]+)=([a-z0-9-]+)$/,Wt="&",$t="1";function Vt(){return{isExpired:$t}}function Kt(e){return N(e)}function Xt(e){return!Kt(e)}function Zt(e){return void 0!==e.isExpired||!((void 0===(t=e).created||Ge()-Number(t.created)<Ht)&&(void 0===t.expire||Ge()<Number(t.expire)));var t}function Yt(e){e.expire=String(Ge()+zt)}function Qt(e){return(t=e,Object.keys(t).map((function(e){return[e,t[e]]}))).map((function(e){var t=e[0],n=e[1];return"".concat(t,"=").concat(n)})).join(Wt);var t}function en(e){var t={};return function(e){return!!e&&(-1!==e.indexOf(Wt)||Jt.test(e))}(e)&&e.split(Wt).forEach((function(e){var n=Jt.exec(e);if(null!==n){var r=n[1],o=n[2];t[r]=o}})),t}var tn="_dd",nn="_dd_r",rn="_dd_l",on="rum",an="logs";function sn(e){var t=function(e){var t={};t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains&&(t.domain=function(){if(void 0===Dt){for(var e="dd_site_test_".concat(At()),t=window.location.hostname.split("."),n=t.pop();t.length&&!qt(e);)n="".concat(t.pop(),".").concat(n),Ut(e,"test",Ue,{domain:n});Gt(e,{domain:n}),Dt=n}return Dt}());return t}(e);return function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{var t="dd_cookie_test_".concat(At()),n="test";Ut(t,n,qe,e);var r=qt(t)===n;return Gt(t,e),r}catch(e){return o.error(e),!1}}(t)?{type:"Cookie",cookieOptions:t}:void 0}function cn(e){var t,n={isLockEnabled:1===Nt(),persistSession:(t=e,function(e){Ut(Ft,Qt(e),zt,t)}),retrieveSession:un,expireSession:function(){return function(e){Ut(Ft,Qt(Vt()),Ht,e)}(e)}};return function(e){if(!jt(Ft)){var t=jt(tn),n=jt(nn),r=jt(rn),o={};t&&(o.id=t),r&&/^[01]$/.test(r)&&(o[an]=r),n&&/^[012]$/.test(n)&&(o[on]=n),Xt(o)&&(Yt(o),e.persistSession(o))}}(n),n}function un(){return en(qt(Ft))}var fn="_dd_test_";function ln(e){localStorage.setItem(Ft,Qt(e))}function dn(){return en(localStorage.getItem(Ft))}function vn(){ln(Vt())}var pn,gn=10,mn=100,yn=[];function hn(e,t,n){var r;void 0===n&&(n=0);var o=t.isLockEnabled,i=t.persistSession,a=t.expireSession,s=function(e){return i(S({},e,{lock:u}))},c=function(){var e=t.retrieveSession(),n=e.lock;return e.lock&&delete e.lock,{session:e,lock:n}};if(pn||(pn=e),e===pn)if(o&&n>=mn)wn(t);else{var u,f=c();if(o){if(f.lock)return void bn(e,t,n);if(u=At(),s(f.session),(f=c()).lock!==u)return void bn(e,t,n)}var l=e.process(f.session);if(o&&(f=c()).lock!==u)bn(e,t,n);else{if(l&&(Zt(l)?a():(Yt(l),o?s(l):i(l))),o&&(!l||!Zt(l))){if((f=c()).lock!==u)return void bn(e,t,n);i(f.session),l=f.session}null===(r=e.after)||void 0===r||r.call(e,l||f.session),wn(t)}}else yn.push(e)}function bn(e,t,n){O((function(){hn(e,t,n+1)}),gn)}function wn(e){pn=void 0;var t=yn.shift();t&&hn(t,e)}var Sn=Ue;function kn(e){var t=sn(e);return!t&&e.allowFallbackToLocalStorage&&(t=function(){try{var e=At(),t="".concat(fn).concat(e);localStorage.setItem(t,e);var n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:"LocalStorage"}:void 0}catch(e){return}}()),t}function Cn(e,t,n){var r,o=new Q,i=new Q,a=new Q,s="Cookie"===e.type?cn(e.cookieOptions):{isLockEnabled:!1,persistSession:ln,retrieveSession:dn,expireSession:vn},c=s.expireSession,u=L((function(){hn({process:function(e){return Zt(e)?Vt():void 0},after:v},s)}),Sn);p();var f=I((function(){hn({process:function(e){if(!Kt(e)){var r=v(e);return function(e){if(Kt(e))return!1;var r=n(e[t]),o=r.trackingType,i=r.isTracked;e[t]=o,delete e.isExpired,i&&!e.id&&(e.id=At(),e.created=String(Ge()))}(r),r}},after:function(e){Xt(e)&&!g()&&function(e){r=e,o.notify()}(e),r=e}},s)}),Sn),l=f.throttled,d=f.cancel;function v(e){return Zt(e)&&(e=Vt()),g()&&(!function(e){return r.id!==e.id||r[t]!==e[t]}(e)?(a.notify({previousState:r,newState:e}),r=e):(r=Vt(),i.notify())),e}function p(){hn({process:function(e){if(Kt(e))return Vt()},after:function(e){r=e}},s)}function g(){return void 0!==r[t]}return{expandOrRenewSession:l,expandSession:function(){hn({process:function(e){return g()?v(e):void 0}},s)},getSession:function(){return r},renewObservable:o,expireObservable:i,sessionStateUpdateObservable:a,restartSession:p,expire:function(){d(),c(),v(Vt())},stop:function(){A(u)},updateSessionState:function(e){hn({process:function(t){return S({},t,e)},after:v},s)}}}function xn(e,t,n){var r=function(e,t){var n="/api/v2/".concat(t),r=e.proxy;if("string"==typeof r){var o=Et(r);return function(e){return"".concat(o,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(e)))}}if("function"==typeof r)return function(e){return r({path:n,parameters:e})};var i=function(e,t){var n=t.site,r=void 0===n?Me:n,o=t.internalAnalyticsSubdomain;if("logs"===e&&t.usePciIntake&&r===Me)return Be;if(o&&r===Me)return"".concat(o,".").concat(Me);if(r===De)return"http-intake.logs.".concat(r);var i=r.split("."),a=i.pop();return"browser-intake-".concat(i.join("-"),".").concat(a)}(t,e);return function(e){return"https://".concat(i).concat(n,"?").concat(e)}}(e,t);return{build:function(o,i){var a=function(e,t,n,r,o){var i=e.clientToken,a=e.internalAnalyticsSubdomain,s=o.retry,c=o.encoding,u=["sdk_version:".concat("5.32.0"),"api:".concat(r)].concat(n);s&&u.push("retry_count:".concat(s.count),"retry_after:".concat(s.lastFailureStatus));var f=["ddsource=browser","ddtags=".concat(encodeURIComponent(u.join(","))),"dd-api-key=".concat(i),"dd-evp-origin-version=".concat(encodeURIComponent("5.32.0")),"dd-evp-origin=browser","dd-request-id=".concat(At())];c&&f.push("dd-evp-encoding=".concat(c));"rum"===t&&f.push("batch_time=".concat(Fe()));a&&f.reverse();return f.join("&")}(e,t,n,o,i);return r(a)},urlPrefix:r(""),trackType:t}}var En=200;function _n(e,t){var n=En-e.length-1;(t.length>n||function(e){if(!function(){try{return new RegExp("[\\p{Ll}]","u"),!0}catch(e){return!1}}())return!1;return new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(e)}(t))&&o.warn("".concat(e," value doesn't meet tag requirements and will be sanitized. ").concat(s," ").concat(i,"/getting_started/tagging/#defining-tags"));var r=t.replace(/,/g,"_");return"".concat(e,":").concat(r)}function Tn(e){var t=e.site||Me,n=function(e){var t=e.env,n=e.service,r=e.version,o=e.datacenter,i=[];return t&&i.push(_n("env",t)),n&&i.push(_n("service",n)),r&&i.push(_n("version",r)),o&&i.push(_n("datacenter",o)),i}(e),r=function(e,t){return{logsEndpointBuilder:xn(e,"logs",t),rumEndpointBuilder:xn(e,"rum",t),sessionReplayEndpointBuilder:xn(e,"replay",t)}}(e,n),o=function(e,t){if(!e.replica)return;var n=S({},e,{site:Me,clientToken:e.replica.clientToken}),r={logsEndpointBuilder:xn(n,"logs",t),rumEndpointBuilder:xn(n,"rum",t)};return S({applicationId:e.replica.applicationId},r)}(e,n);return S({replica:o,site:t},r)}function On(e,t){return null==e||"string"==typeof e||(o.error("".concat(t," must be defined as a string")),!1)}function Rn(e,t){return!!(void 0===e||(n=e,function(e){return"number"==typeof e}(n)&&n>=0&&n<=100))||(o.error("".concat(t," Sample Rate should be a number between 0 and 100")),!1);var n}function Ln(e){var t,n,r,a,u;if(e&&e.clientToken){if((!(f=e.site)||"string"!=typeof f||/(datadog|ddog|datad0g|dd0g)/.test(f)||(o.error("Site should be a valid Datadog site. ".concat(s," ").concat(i,"/getting_started/site/.")),0))&&Rn(e.sessionSampleRate,"Session")&&Rn(e.telemetrySampleRate,"Telemetry")&&Rn(e.telemetryConfigurationSampleRate,"Telemetry Configuration")&&Rn(e.telemetryUsageSampleRate,"Telemetry Usage")&&On(e.version,"Version")&&On(e.env,"Env")&&On(e.service,"Service")){var f;if(void 0===e.trackingConsent||B(ne,e.trackingConsent))return S({beforeSend:e.beforeSend&&c(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:kn(e),sessionSampleRate:null!==(t=e.sessionSampleRate)&&void 0!==t?t:100,telemetrySampleRate:null!==(n=e.telemetrySampleRate)&&void 0!==n?n:20,telemetryConfigurationSampleRate:null!==(r=e.telemetryConfigurationSampleRate)&&void 0!==r?r:5,telemetryUsageSampleRate:null!==(a=e.telemetryUsageSampleRate)&&void 0!==a?a:5,service:e.service||void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:null!==(u=e.trackingConsent)&&void 0!==u?u:ne.GRANTED,storeContextsAcrossPages:!!e.storeContextsAcrossPages,batchBytesLimit:16*C,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*Ue,batchMessagesLimit:50,messageBytesLimit:256*C},Tn(e));o.error('Tracking Consent should be either "granted" or "not-granted"')}}else o.error("Client Token is not configured, we will not send any data.")}var An={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function In(e,t){var n=[];y(t,An.cspViolation)&&n.push(function(e){return new Q((function(t){return re(e,document,"securitypolicyviolation",(function(e){t.notify(function(e){var t="'".concat(e.blockedURI,"' blocked by '").concat(e.effectiveDirective,"' directive");return Pn({type:e.effectiveDirective,message:"".concat(An.cspViolation,": ").concat(t),originalError:e,csp:{disposition:e.disposition},stack:Dn(e.effectiveDirective,e.originalPolicy?"".concat(t,' of the policy "').concat(Bt(e.originalPolicy,100,"..."),'"'):"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}(e))})).stop}))}(e));var r=t.filter((function(e){return e!==An.cspViolation}));return r.length&&n.push(function(e){return new Q((function(t){if(window.ReportingObserver){var n=p((function(e,n){return e.forEach((function(e){return t.notify(function(e){var t=e.type,n=e.body;return Pn({type:n.id,message:"".concat(t,": ").concat(n.message),originalError:e,stack:Dn(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)})}(e))}))})),r=new window.ReportingObserver(n,{types:e,buffered:!0});return r.observe(),function(){r.disconnect()}}}))}(r)),ee.apply(void 0,n)}function Pn(e){return S({startClocks:ze(),source:dt.REPORT,handling:"unhandled"},e)}function Dn(e,t,n,r,o){return n?ke({name:e,message:t,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=o?o:void 0}]}):void 0}var Mn=32*C;function Bn(e,t,n){return void 0===e?[]:"all"===e||Array.isArray(e)&&e.every((function(e){return y(t,e)}))?"all"===e?t:(r=e,i=new Set,r.forEach((function(e){return i.add(e)})),h(i)):void o.error("".concat(n,' should be "all" or an array with allowed values "').concat(t.join('", "'),'"'));var r,i}function Nn(t,n,r){var i,a,s=Qe(),c=n.observable.subscribe(u);function u(){if(a&&i&&n.isGranted()){c.unsubscribe();var e=r(i,a);s.drain(e)}}return{init:function(t){if(t)if(Le(t.enableExperimentalFeatures),Ct()&&(t=function(e){return S({},e,{clientToken:"empty"})}(t)),i=t,a)ft("DD_LOGS",t);else{var r=function(t){!0===t.usePciIntake&&t.site&&"datadoghq.com"!==t.site&&o.warn("PCI compliance for Logs is only available for Datadog organizations in the US1 site. Default intake will be used.");var n=Ln(t),r=Bn(t.forwardConsoleLogs,b(e),"Forward Console Logs"),i=Bn(t.forwardReports,b(An),"Forward Reports");if(n&&r&&i)return t.forwardErrorsToLogs&&!y(r,e.error)&&r.push(e.error),S({forwardErrorsToLogs:!1!==t.forwardErrorsToLogs,forwardConsoleLogs:r,forwardReports:i,requestErrorResponseLengthLimit:Mn,sendLogsAfterSessionExpiration:!!t.sendLogsAfterSessionExpiration},n)}(t);r&&(a=r,Lt().subscribe(P),n.tryToInit(r.trackingConsent),u())}else o.error("Missing configuration")},get initConfiguration(){return i},getInternalContext:P,handleLog:function(e,n,r,o,i){void 0===o&&(o=t()),void 0===i&&(i=Fe()),s.add((function(t){return t.handleLog(e,n,r,o,i)}))}}}var Un="logs";var qn={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};var jn="datadog-synthetics-public-id",Gn="datadog-synthetics-result-id",Fn="datadog-synthetics-injects-rum";function Hn(){return Boolean(window._DATADOG_SYNTHETICS_INJECTS_RUM||jt(Fn))}function zn(){var e=window._DATADOG_SYNTHETICS_RESULT_ID||jt(Gn);return"string"==typeof e?e:void 0}var Jn=1/0,Wn=qe;function $n(e){var t=e.expireDelay,n=e.maxEntries,r=[],o=L((function(){return function(){var e=He()-t;for(;r.length>0&&r[r.length-1].endTime<e;)r.pop()}()}),Wn);return{add:function(e,t){var o={value:e,startTime:t,endTime:Jn,remove:function(){Ze(r,o)},close:function(e){o.endTime=e}};return n&&r.length>=n&&r.pop(),r.unshift(o),o},find:function(e,t){void 0===e&&(e=Jn),void 0===t&&(t={returnInactive:!1});for(var n=0,o=r;n<o.length;n++){var i=o[n];if(i.startTime<=e){if(t.returnInactive||e<=i.endTime)return i.value;break}}},closeActive:function(e){var t=r[0];t&&t.endTime===Jn&&t.close(e)},findAll:function(e,t){void 0===e&&(e=Jn),void 0===t&&(t=0);var n=Je(e,t);return r.filter((function(t){return t.startTime<=n&&e<=t.endTime})).map((function(e){return e.value}))},reset:function(){r=[]},stop:function(){A(o)}}}var Vn=qe,Kn=Ht,Xn=[];function Zn(e,t,n,r){var o=new Q,i=new Q,a=Cn(e.sessionStoreStrategyType,t,n);Xn.push((function(){return a.stop()}));var s=$n({expireDelay:Kn});function c(){return{id:a.getSession().id,trackingType:a.getSession()[t],isReplayForced:!!a.getSession().forcedReplay}}return Xn.push((function(){return s.stop()})),a.renewObservable.subscribe((function(){s.add(c(),He()),o.notify()})),a.expireObservable.subscribe((function(){i.notify(),s.closeActive(He())})),a.expandOrRenewSession(),s.add(c(),[0,$e()][0]),r.observable.subscribe((function(){r.isGranted()?a.expandOrRenewSession():a.expire()})),function(e,t){var n=oe(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0}).stop;Xn.push(n)}(e,(function(){r.isGranted()&&a.expandOrRenewSession()})),function(e,t){var n=function(){"visible"===document.visibilityState&&t()},r=re(e,document,"visibilitychange",n).stop;Xn.push(r);var o=L(n,Vn);Xn.push((function(){A(o)}))}(e,(function(){return a.expandSession()})),function(e,t){var n=re(e,window,"resume",t,{capture:!0}).stop;Xn.push(n)}(e,(function(){return a.restartSession()})),{findSession:function(e,t){return s.find(e,t)},renewObservable:o,expireObservable:i,sessionStateUpdateObservable:a.sessionStateUpdateObservable,expire:a.expire,updateSessionState:a.updateSessionState}}var Yn="logs";function Qn(e,t){var n=Zn(e,Yn,(function(t){return function(e,t){var n=function(e){return"0"===e||"1"===e}(t)?t:er(e);return{trackingType:n,isTracked:"1"===n}}(e,t)}),t);return{findTrackedSession:function(e,t){void 0===t&&(t={returnInactive:!1});var r=n.findSession(e,t);return r&&"1"===r.trackingType?{id:r.id}:void 0},expireObservable:n.expireObservable}}function er(e){return Ke(e.sessionSampleRate)?"1":"0"}var tr=!1;function nr(e){var t,n=window;if(Hn()){var r=o(n.DD_RUM_SYNTHETICS);return r||tr||(tr=!0,at("Logs sent before RUM is injected by the synthetics worker",{testId:(t=window._DATADOG_SYNTHETICS_PUBLIC_ID||jt(jn),"string"==typeof t?t:void 0),resultId:zn()})),r}return o(n.DD_RUM);function o(t){if(t&&t.getInternalContext)return t.getInternalContext(e)}}function rr(e,t,n,r,o){var i=bt.concat(["custom"]),a={};i.forEach((function(e){var n,r,i,s,c;a[e]=(n=e,r=t.eventRateLimiterThreshold,i=o,s=0,c=!1,{isLimitReached:function(){if(0===s&&O((function(){s=0}),qe),(s+=1)<=r||c)return c=!1,!1;if(s===r+1){c=!0;try{i({message:"Reached max number of ".concat(n,"s by minute: ").concat(r),source:dt.AGENT,startClocks:ze()})}finally{c=!1}}return!0}})})),n.subscribe(0,(function(o){var i,s,c=o.rawLogsEvent,u=o.messageContext,f=void 0===u?void 0:u,l=o.savedCommonContext,d=void 0===l?void 0:l,v=o.domainContext,p=We(c.date),g=e.findTrackedSession(p);if(g||t.sendLogsAfterSessionExpiration&&e.findTrackedSession(p,{returnInactive:!0})){var m=d||r(),y=W({service:t.service,session_id:g?g.id:void 0,session:g?{id:g.id}:void 0,usr:N(m.user)?void 0:m.user,view:m.view},m.context,nr(p),c,f);!1===(null===(i=t.beforeSend)||void 0===i?void 0:i.call(t,y,v))||y.origin!==dt.AGENT&&(null!==(s=a[y.status])&&void 0!==s?s:a.custom).isLimitReached()||n.notify(1,y)}}))}var or,ir={};function ar(n){var r=n.map((function(n){return ir[n]||(ir[n]=function(n){return new Q((function(r){var o=t[n];return t[n]=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];o.apply(console,t);var a=Se();g((function(){r.notify(function(t,n,r){var o,i=t.map((function(e){return function(e){if("string"==typeof e)return X(e);if(e instanceof Error)return Ce(ue(e));return D(X(e),void 0,2)}(e)})).join(" ");if(n===e.error){var a=function(e,t){for(var n=0;n<e.length;n+=1){var r=e[n];if(t(r,n))return r}}(t,(function(e){return e instanceof Error}));o={stack:a?ke(ue(a)):void 0,fingerprint:Te(a),causes:a?Oe(a,"console"):void 0,startClocks:ze(),message:i,source:dt.CONSOLE,handling:"handled",handlingStack:r}}return{api:n,message:i,error:o,handlingStack:r}}(t,n,a))}))},function(){t[n]=o}}))}(n)),ir[n]}));return ee.apply(void 0,r)}var sr,cr=((or={})[e.log]=pt.info,or[e.debug]=pt.debug,or[e.info]=pt.info,or[e.warn]=pt.warn,or[e.error]=pt.error,or);var ur=new WeakMap;function fr(e){return sr||(sr=function(e){return new Q((function(t){var n=xt(XMLHttpRequest.prototype,"open",lr).stop,r=xt(XMLHttpRequest.prototype,"send",(function(n){!function(e,t,n){var r=e.target,o=e.handlingStack,i=ur.get(r);if(!i)return;var a=i;a.state="start",a.startClocks=ze(),a.isAborted=!1,a.xhr=r,a.handlingStack=o;var s=!1,c=xt(r,"onreadystatechange",(function(){r.readyState===XMLHttpRequest.DONE&&u()})).stop,u=function(){if(f(),c(),!s){s=!0;var e,t=i;t.state="complete",t.duration=(e=a.startClocks.timeStamp,Fe()-e),t.status=r.status,n.notify(S({},t))}},f=re(t,r,"loadend",u).stop;n.notify(a)}(n,e,t)}),{computeHandlingStack:!0}).stop,o=xt(XMLHttpRequest.prototype,"abort",dr).stop;return function(){n(),r(),o()}}))}(e)),sr}function lr(e){var t=e.target,n=e.parameters,r=n[0],o=n[1];ur.set(t,{state:"open",method:String(r).toUpperCase(),url:Et(String(o))})}function dr(e){var t=e.target,n=ur.get(t);n&&(n.isAborted=!0)}function vr(e){return e>=500}function pr(e,t){if(!e.forwardErrorsToLogs)return{stop:P};var n=fr(e).subscribe((function(e){"complete"===e.state&&o("xhr",e)})),r=Lt().subscribe((function(e){"resolve"===e.state&&o("fetch",e)}));function o(n,r){var o;function i(e){var o={isAborted:r.isAborted,handlingStack:r.handlingStack};t.notify(0,{rawLogsEvent:{message:"".concat(mr(n)," error ").concat(r.method," ").concat(r.url),date:r.startClocks.timeStamp,error:{stack:e||"Failed to load",handling:void 0},http:{method:r.method,status_code:r.status,url:r.url},status:pt.error,origin:dt.NETWORK},domainContext:o})}o=r.url,Ne.every((function(e){return y(o,e)}))||!function(e){return 0===e.status&&"opaque"!==e.responseType}(r)&&!vr(r.status)||("xhr"in r?function(e,t,n){"string"==typeof e.response?n(gr(e.response,t)):n(e.response)}(r.xhr,e,i):r.response?function(e,t,n){var r=function(e){try{return e.clone()}catch(e){return}}(e);r&&r.body?window.TextDecoder?function(e,t,n){!function(e,t,n){var r=e.getReader(),o=[],i=0;function a(){var e,a;if(r.cancel().catch(P),n.collectStreamBody){var s;if(1===o.length)s=o[0];else{s=new Uint8Array(i);var c=0;o.forEach((function(e){s.set(e,c),c+=e.length}))}e=s.slice(0,n.bytesLimit),a=s.length>n.bytesLimit}t(void 0,e,a)}!function e(){r.read().then(p((function(t){t.done?a():(n.collectStreamBody&&o.push(t.value),(i+=t.value.length)>n.bytesLimit?a():e())})),p((function(e){return t(e)})))}()}(e,(function(e,t,r){if(e)n(e);else{var o=(new TextDecoder).decode(t);r&&(o+="..."),n(void 0,o)}}),{bytesLimit:t,collectStreamBody:!0})}(r.body,t.requestErrorResponseLengthLimit,(function(e,t){n(e?"Unable to retrieve response: ".concat(e):t)})):r.text().then(p((function(e){return n(gr(e,t))})),p((function(e){return n("Unable to retrieve response: ".concat(e))}))):n()}(r.response,e,i):r.error&&function(e,t,n){n(gr(ke(ue(e)),t))}(r.error,e,i))}return{stop:function(){n.unsubscribe(),r.unsubscribe()}}}function gr(e,t){return e.length>t.requestErrorResponseLengthLimit?"".concat(e.substring(0,t.requestErrorResponseLengthLimit),"..."):e}function mr(e){return"xhr"===e?"XHR":"Fetch"}function yr(e){var t,n=function(t,n){var r=_e({stackTrace:t,originalError:n,startClocks:ze(),nonErrorPrefix:"Uncaught",source:dt.SOURCE,handling:"unhandled"});e.notify(r)},r=(t=n,xt(window,"onerror",(function(e){var n,r=e.parameters,o=r[0],i=r[1],a=r[2],s=r[3],c=r[4];n=c instanceof Error?ue(c):be(o,i,a,s),t(n,null!=c?c:o)}))).stop,o=function(e){return xt(window,"onunhandledrejection",(function(t){var n=t.parameters[0].reason||"Empty reason",r=ue(n);e(r,n)}))}(n).stop;return{stop:function(){r(),o()}}}var hr,br=function(){function e(){this.callbacks={}}return e.prototype.notify=function(e,t){var n=this.callbacks[e];n&&n.forEach((function(e){return e(t)}))},e.prototype.subscribe=function(e,t){var n=this;return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:function(){n.callbacks[e]=n.callbacks[e].filter((function(e){return t!==e}))}}},e}();function wr(e){return{handleLog:function(r,o,i,a,s){var c=W(o.getContext(),r.context);if(vt(r.status,ht.console,o)&&function(e,r){var o=e.status,i=e.message;n[Sr[o]].call(t,i,r)}(r,c),vt(r.status,ht.http,o)){var u={rawLogsEvent:{date:s||Fe(),message:r.message,status:r.status,origin:dt.LOGGER},messageContext:c,savedCommonContext:a};i&&(u.domainContext={handlingStack:i}),e.notify(0,u)}}}}var Sr=((hr={})[pt.ok]=e.debug,hr[pt.debug]=e.debug,hr[pt.info]=e.info,hr[pt.notice]=e.info,hr[pt.warn]=e.warn,hr[pt.error]=e.error,hr[pt.critical]=e.error,hr[pt.alert]=e.error,hr[pt.emerg]=e.error,hr);function kr(e){var t=e.encoder,n=e.request,r=e.flushController,i=e.messageBytesLimit,c={},u=r.flushObservable.subscribe((function(e){return function(e){var r=b(c).join("\n");c={};var o=(a=e.reason,y(b(qn),a)),i=o?n.sendOnExit:n.send;var a;if(o&&t.isAsync){var s=t.finishSync();s.outputBytesCount&&i(Cr(s));var u=[s.pendingData,r].filter(Boolean).join("\n");u&&i({data:u,bytesCount:_(u)})}else r&&t.write(t.isEmpty?r:"\n".concat(r)),t.finish((function(e){i(Cr(e))}))}(e)}));function f(e,n){var u=D(e),f=t.estimateEncodedBytesCount(u);f>=i?o.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(i,"KB. ").concat(s," ").concat(a,"/#technical-limitations")):(function(e){return void 0!==e&&void 0!==c[e]}(n)&&function(e){var n=c[e];delete c[e];var o=t.estimateEncodedBytesCount(n);r.notifyAfterRemoveMessage(o)}(n),function(e,n,o){r.notifyBeforeAddMessage(n),void 0!==o?(c[o]=e,r.notifyAfterAddMessage()):t.write(t.isEmpty?e:"\n".concat(e),(function(e){r.notifyAfterAddMessage(e-n)}))}(u,f,n))}return{flushController:r,add:f,upsert:f,stop:u.unsubscribe}}function Cr(e){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding}}var xr=80*C,Er=32,_r=3*x,Tr=qe,Or=Ue;function Rr(e,t,n,r,o){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?Ar(e,t,n,{onSuccess:function(){return Ir(0,t,n,r,o)},onFailure:function(){t.queuedPayloads.enqueue(e),Lr(t,n,r,o)}}):t.queuedPayloads.enqueue(e)}function Lr(e,t,n,r){2===e.transportStatus&&O((function(){Ar(e.queuedPayloads.first(),e,t,{onSuccess:function(){e.queuedPayloads.dequeue(),e.currentBackoffTime=Or,Ir(1,e,t,n,r)},onFailure:function(){e.currentBackoffTime=Math.min(Tr,2*e.currentBackoffTime),Lr(e,t,n,r)}})}),e.currentBackoffTime)}function Ar(e,t,n,r){var o=r.onSuccess,i=r.onFailure;t.bandwidthMonitor.add(e),n(e,(function(n){t.bandwidthMonitor.remove(e),!function(e){return"opaque"!==e.type&&(0===e.status&&!navigator.onLine||408===e.status||429===e.status||vr(e.status))}(n)?(t.transportStatus=0,o()):(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:n.status},i())}))}function Ir(e,t,n,r,o){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(o({message:"Reached max ".concat(r," events size queued for upload: ").concat(_r/x,"MiB"),source:dt.AGENT,startClocks:ze()}),t.queueFullReported=!0);var i=t.queuedPayloads;for(t.queuedPayloads=Pr();i.size()>0;)Rr(i.dequeue(),t,n,r,o)}function Pr(){var e=[];return{bytesCount:0,enqueue:function(t){this.isFull()||(e.push(t),this.bytesCount+=t.bytesCount)},first:function(){return e[0]},dequeue:function(){var t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:function(){return e.length},isFull:function(){return this.bytesCount>=_r}}}function Dr(e,t,n){var r={transportStatus:0,currentBackoffTime:Or,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=xr&&this.ongoingRequestCount<Er},add:function(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove:function(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}},queuedPayloads:Pr(),queueFullReported:!1},o=function(n,r){return function(e,t,n,r){var o=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(e){return!1}}()&&n.bytesCount<t;if(o){var i=e.build("fetch",n);fetch(i,{method:"POST",body:n.data,keepalive:!0,mode:"cors"}).then(p((function(e){return null==r?void 0:r({status:e.status,type:e.type})})),p((function(){Br(e.build("xhr",n),n.data,r)})))}else{Br(e.build("xhr",n),n.data,r)}}(e,t,n,r)};return{send:function(t){Rr(t,r,o,e.trackType,n)},sendOnExit:function(n){!function(e,t,n){var r=!!navigator.sendBeacon&&n.bytesCount<t;if(r)try{var o=e.build("beacon",n);if(navigator.sendBeacon(o,n.data))return}catch(e){!function(e){Mr||(Mr=!0,st(e))}(e)}var i=e.build("xhr",n);Br(i,n.data)}(e,t,n)}}}var Mr=!1;function Br(e,t,n){var r=new XMLHttpRequest;r.open("POST",e,!0),t instanceof Blob&&r.setRequestHeader("Content-Type",t.type),re({allowUntrustedEvents:!0},r,"loadend",(function(){null==n||n({status:r.status})}),{once:!0}),r.send(t)}function Nr(e){var t,n=e.messagesLimit,r=e.bytesLimit,o=e.durationLimit,i=e.pageExitObservable,a=e.sessionExpireObservable,s=i.subscribe((function(e){return d(e.reason)})),c=a.subscribe((function(){return d("session_expire")})),u=new Q((function(){return function(){s.unsubscribe(),c.unsubscribe()}})),f=0,l=0;function d(e){if(0!==l){var t=l,n=f;l=0,f=0,v(),u.notify({reason:e,messagesCount:t,bytesCount:n})}}function v(){R(t),t=void 0}return{flushObservable:u,get messagesCount(){return l},notifyBeforeAddMessage:function(e){f+e>=r&&d("bytes_limit"),l+=1,f+=e,void 0===t&&(t=O((function(){d("duration_limit")}),o))},notifyAfterAddMessage:function(e){void 0===e&&(e=0),f+=e,l>=n?d("messages_limit"):f>=r&&d("bytes_limit")},notifyAfterRemoveMessage:function(e){f-=e,0===(l-=1)&&v()}}}function Ur(e,t,n,r,o,i,a){void 0===a&&(a=kr);var s=u(e,t),c=n&&u(e,n);function u(e,t){var n=t.endpoint,s=t.encoder;return a({encoder:s,request:Dr(n,e.batchBytesLimit,r),flushController:Nr({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageExitObservable:o,sessionExpireObservable:i}),messageBytesLimit:e.messageBytesLimit})}return{flushObservable:s.flushController.flushObservable,add:function(e,t){void 0===t&&(t=!0),s.add(e),c&&t&&c.add(n.transformMessage?n.transformMessage(e):e)},upsert:function(e,t){s.upsert(e,t),c&&c.upsert(n.transformMessage?n.transformMessage(e):e,t)},stop:function(){s.stop(),c&&c.stop()}}}function qr(){var e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write:function(n,r){var o=_(n);t+=o,e+=n,r&&r(o)},finish:function(e){e(this.finishSync())},finishSync:function(){var n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount:function(e){return e.length}}}function jr(e,t,n,r,o){var i=it("browser-logs-sdk",t);i.setContextProvider((function(){var e,t,n,r,i,a;return{application:{id:null===(e=nr())||void 0===e?void 0:e.application_id},session:{id:null===(t=o.findTrackedSession())||void 0===t?void 0:t.id},view:{id:null===(r=null===(n=nr())||void 0===n?void 0:n.view)||void 0===r?void 0:r.id},action:{id:null===(a=null===(i=nr())||void 0===i?void 0:i.user_action)||void 0===a?void 0:a.id}}}));var a=[];if(Ct()){var s=kt(),c=i.observable.subscribe((function(e){return s.send("internal_telemetry",e)}));a.push((function(){return c.unsubscribe()}))}else{var u=Ur(t,{endpoint:t.rumEndpointBuilder,encoder:qr()},t.replica&&{endpoint:t.replica.rumEndpointBuilder,encoder:qr()},n,r,o.expireObservable);a.push((function(){return u.stop()}));var f=i.observable.subscribe((function(e){return u.add(e,function(e){return e.site===Pe}(t))}));a.push((function(){return f.unsubscribe()}))}return rt.drain(),function(e){ot({type:et.configuration,configuration:e})}(function(e){var t,n={session_sample_rate:(t=e).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};return S({forward_errors_to_logs:e.forwardErrorsToLogs,forward_console_logs:e.forwardConsoleLogs,forward_reports:e.forwardReports,use_pci_intake:e.usePciIntake,send_logs_after_session_expiration:e.sendLogsAfterSessionExpiration},n)}(e)),{telemetry:i,stop:function(){a.forEach((function(e){return e()}))}}}var Gr,Fr,Hr,zr,Jr=function(e){var t,n,r=G(),i=te(r.getOrCreateTracker(2)),a=te(r.getOrCreateTracker(1)),s={tryToInit:function(e){t||(t=e)},update:function(e){t=e,n.notify()},isGranted:function(){return t===ne.GRANTED},observable:n=new Q};function c(){return function(e,t){return{view:{referrer:document.referrer,url:window.location.href},context:e.getContext(),user:t.getContext()}}(i,a)}var u,f,l=Nn(c,s,(function(t,n){t.storeContextsAcrossPages&&(se(n,i,Un,2),se(n,a,Un,1));var r=e(t,n,c,s);return l=function(e,t){return S({init:function(e){ft("DD_LOGS",e)},initConfiguration:e},t)}(t,r),r})),v={},g=new wt((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.handleLog.apply(l,e)}),r.createDetachedTracker());return u={logger:g,init:p((function(e){return l.init(e)})),setTrackingConsent:p((function(e){var t;s.update(e),t={feature:"set-tracking-consent",tracking_consent:e},ot({type:et.usage,usage:t})})),getGlobalContext:p((function(){return i.getContext()})),setGlobalContext:p((function(e){return i.setContext(e)})),setGlobalContextProperty:p((function(e,t){return i.setContextProperty(e,t)})),removeGlobalContextProperty:p((function(e){return i.removeContextProperty(e)})),clearGlobalContext:p((function(){return i.clearContext()})),createLogger:p((function(e,t){return void 0===t&&(t={}),v[e]=new wt((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.handleLog.apply(l,e)}),r.createDetachedTracker(),X(e),t.handler,t.level,X(t.context)),v[e]})),getLogger:p((function(e){return v[e]})),getInitConfiguration:p((function(){return J(l.initConfiguration)})),getInternalContext:p((function(e){return l.getInternalContext(e)})),setUser:p((function(e){(function(e){var t="object"===H(e);return t||o.error("Unsupported user:",e),t})(e)&&a.setContext(ut(e))})),getUser:p((function(){return a.getContext()})),setUserProperty:p((function(e,t){var n,r=ut((n={},n[e]=t,n))[e];a.setContextProperty(e,r)})),removeUserProperty:p((function(e){return a.removeContextProperty(e)})),clearUser:p((function(){return a.clearContext()}))},f=S({version:"5.32.0",onReady:function(e){e()}},u),Object.defineProperty(f,"_setDebug",{get:function(){return d},enumerable:!1}),f}((function(e,t,n,r){var o=new br,i=[];o.subscribe(1,(function(e){return Ve("logs",e)}));var a=function(e){return function(t){e.notify(0,{rawLogsEvent:{message:t.message,date:t.startClocks.timeStamp,origin:dt.AGENT,status:pt.error}}),at("Error reported to customer",{"error.message":t.message})}}(o),s=function(e){return new Q((function(t){var n=oe(e,window,["visibilitychange","freeze"],(function(e){"visibilitychange"===e.type&&"hidden"===document.visibilityState?t.notify({reason:qn.HIDDEN}):"freeze"===e.type&&t.notify({reason:qn.FROZEN})}),{capture:!0}).stop,r=re(e,window,"beforeunload",(function(){t.notify({reason:qn.UNLOADING})})).stop;return function(){n(),r()}}))}(t),c=!t.sessionStoreStrategyType||Ct()||Hn()?function(e){var t="1"===er(e)?{}:void 0;return{findTrackedSession:function(){return t},expireObservable:new Q}}(t):Qn(t,r),u=jr(e,t,a,s,c).stop;i.push((function(){return u()})),pr(t,o),function(e,t){if(!e.forwardErrorsToLogs)return{stop:P};var n=new Q,r=yr(n).stop,o=n.subscribe((function(e){t.notify(0,{rawLogsEvent:{message:e.message,date:e.startClocks.timeStamp,error:mt(e),origin:dt.SOURCE,status:pt.error}})}))}(t,o),function(e,t){var n=ar(e.forwardConsoleLogs).subscribe((function(e){var n={rawLogsEvent:{date:Fe(),message:e.message,origin:dt.CONSOLE,error:e.error&&mt(e.error),status:cr[e.api]},domainContext:{handlingStack:e.handlingStack}};t.notify(0,n)}))}(t,o),function(e,t){var n=In(e,e.forwardReports).subscribe((function(e){var n,r=e.message,o="deprecation"===e.originalError.type?pt.warn:pt.error;o===pt.error?n=mt(e):e.stack&&(r+=" Found in ".concat(function(e){var t;return null===(t=/@ (.+)/.exec(e))||void 0===t?void 0:t[1]}(e.stack))),t.notify(0,{rawLogsEvent:{date:Fe(),message:r,origin:dt.REPORT,error:n,status:o}})}))}(t,o);var f,l=wr(o).handleLog;if(rr(c,t,o,n,a),Ct())!function(e){var t=kt();e.subscribe(1,(function(e){t.send("log",e)}))}(o);else{var d=function(e,t,n,r,o){var i=Ur(e,{endpoint:e.logsEndpointBuilder,encoder:qr()},e.replica&&{endpoint:e.replica.logsEndpointBuilder,encoder:qr()},n,r,o.expireObservable);return t.subscribe(1,(function(e){i.add(e)})),i}(t,o,a,s,c).stop;i.push((function(){return d()}))}return{handleLog:l,getInternalContext:(f=c,{get:function(e){var t=f.findTrackedSession(e);if(t)return{session_id:t.id}}}).get,stop:function(){i.forEach((function(e){return e()}))}}}));Gr=k(),Hr=Jr,(zr=Gr[Fr="DD_LOGS"])&&!zr.q&&zr.version&&o.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),Gr[Fr]=Hr,zr&&zr.q&&zr.q.forEach((function(e){return c(e,"onReady callback threw an error:")()}))}(); |
{ | ||
"name": "@datadog/browser-logs", | ||
"version": "5.31.1", | ||
"version": "5.32.0", | ||
"license": "Apache-2.0", | ||
@@ -16,6 +16,6 @@ "main": "cjs/entries/main.js", | ||
"dependencies": { | ||
"@datadog/browser-core": "5.31.1" | ||
"@datadog/browser-core": "5.32.0" | ||
}, | ||
"peerDependencies": { | ||
"@datadog/browser-rum": "5.31.1" | ||
"@datadog/browser-rum": "5.32.0" | ||
}, | ||
@@ -38,3 +38,3 @@ "peerDependenciesMeta": { | ||
}, | ||
"gitHead": "aa852195227ff9e7a8e7e4763803b65c43d5a73f" | ||
"gitHead": "bbd2e32d488059fcb4dfea26a14c8113f63f326e" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
350801
+ Added@datadog/browser-core@5.32.0(transitive)
+ Added@datadog/browser-rum@5.32.0(transitive)
+ Added@datadog/browser-rum-core@5.32.0(transitive)
- Removed@datadog/browser-core@5.31.1(transitive)
- Removed@datadog/browser-rum@5.31.1(transitive)
- Removed@datadog/browser-rum-core@5.31.1(transitive)
Updated@datadog/browser-core@5.32.0