Socket
Socket
Sign inDemoInstall

@datadog/browser-rum

Package Overview
Dependencies
5
Maintainers
1
Versions
248
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.9 to 1.2.10

2

bundle/datadog-rum-us.js

@@ -1,1 +0,1 @@

!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=5)}([function(t,e){var n=9007199254740991,r="[object Arguments]",o="[object Function]",i="[object GeneratorFunction]",a=/^(?:0|[1-9]\d*)$/;function u(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var c,s,f=Object.prototype,l=f.hasOwnProperty,d=f.toString,p=f.propertyIsEnumerable,h=(c=Object.keys,s=Object,function(t){return c(s(t))}),v=Math.max,m=!p.call({valueOf:1},"valueOf");function y(t,e){var n=w(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&O(t)}(t)&&l.call(t,"callee")&&(!p.call(t,"callee")||d.call(t)==r)}(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],o=n.length,i=!!o;for(var a in t)!e&&!l.call(t,a)||i&&("length"==a||b(a,o))||n.push(a);return n}function g(t,e,n){var r=t[e];l.call(t,e)&&_(r,n)&&(void 0!==n||e in t)||(t[e]=n)}function b(t,e){return!!(e=null==e?n:e)&&("number"==typeof t||a.test(t))&&t>-1&&t%1==0&&t<e}function E(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||f)}function _(t,e){return t===e||t!=t&&e!=e}var w=Array.isArray;function O(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}(t.length)&&!function(t){var e=R(t)?d.call(t):"";return e==o||e==i}(t)}function R(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var S,T=(S=function(t,e){if(m||E(e)||O(e))!function(t,e,n,r){n||(n={});for(var o=-1,i=e.length;++o<i;){var a=e[o],u=r?r(n[a],t[a],a,n,t):void 0;g(n,a,void 0===u?t[a]:u)}}(e,function(t){return O(t)?y(t):function(t){if(!E(t))return h(t);var e=[];for(var n in Object(t))l.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}(e),t);else for(var n in e)l.call(e,n)&&g(t,n,e[n])},function(t,e){return e=v(void 0===e?t.length-1:e,0),function(){for(var n=arguments,r=-1,o=v(n.length-e,0),i=Array(o);++r<o;)i[r]=n[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=n[r];return a[e]=i,u(t,this,a)}}((function(t,e){var n=-1,r=e.length,o=r>1?e[r-1]:void 0,i=r>2?e[2]:void 0;for(o=S.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(t,e,n){if(!R(n))return!1;var r=typeof e;return!!("number"==r?O(n)&&b(e,n.length):"string"==r&&e in n)&&_(n[e],t)}(e[0],e[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var a=e[n];a&&S(t,a,n,o)}return t})));t.exports=T},function(t,e,n){(function(t,n){var r=200,o="__lodash_hash_undefined__",i=800,a=16,u=9007199254740991,c="[object Arguments]",s="[object AsyncFunction]",f="[object Function]",l="[object GeneratorFunction]",d="[object Null]",p="[object Object]",h="[object Proxy]",v="[object Undefined]",m=/^\[object .+?Constructor\]$/,y=/^(?:0|[1-9]\d*)$/,g={};g["[object Float32Array]"]=g["[object Float64Array]"]=g["[object Int8Array]"]=g["[object Int16Array]"]=g["[object Int32Array]"]=g["[object Uint8Array]"]=g["[object Uint8ClampedArray]"]=g["[object Uint16Array]"]=g["[object Uint32Array]"]=!0,g[c]=g["[object Array]"]=g["[object ArrayBuffer]"]=g["[object Boolean]"]=g["[object DataView]"]=g["[object Date]"]=g["[object Error]"]=g[f]=g["[object Map]"]=g["[object Number]"]=g[p]=g["[object RegExp]"]=g["[object Set]"]=g["[object String]"]=g["[object WeakMap]"]=!1;var b="object"==typeof t&&t&&t.Object===Object&&t,E="object"==typeof self&&self&&self.Object===Object&&self,_=b||E||Function("return this")(),w=e&&!e.nodeType&&e,O=w&&"object"==typeof n&&n&&!n.nodeType&&n,R=O&&O.exports===w,S=R&&b.process,T=function(){try{var t=O&&O.require&&O.require("util").types;return t||S&&S.binding&&S.binding("util")}catch(t){}}(),C=T&&T.isTypedArray;function j(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var x,L,A,U=Array.prototype,k=Function.prototype,I=Object.prototype,P=_["__core-js_shared__"],M=k.toString,N=I.hasOwnProperty,D=(x=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+x:"",B=I.toString,F=M.call(Object),z=RegExp("^"+M.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),H=R?_.Buffer:void 0,W=_.Symbol,$=_.Uint8Array,K=H?H.allocUnsafe:void 0,G=(L=Object.getPrototypeOf,A=Object,function(t){return L(A(t))}),q=Object.create,X=I.propertyIsEnumerable,J=U.splice,V=W?W.toStringTag:void 0,Y=function(){try{var t=wt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Q=H?H.isBuffer:void 0,Z=Math.max,tt=Date.now,et=wt(_,"Map"),nt=wt(Object,"create"),rt=function(){function t(){}return function(e){if(!It(e))return{};if(q)return q(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function ot(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function it(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function at(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ut(t){var e=this.__data__=new it(t);this.size=e.size}function ct(t,e){var n=xt(t),r=!n&&jt(t),o=!n&&!r&&At(t),i=!n&&!r&&!o&&Mt(t),a=n||r||o||i,u=a?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],c=u.length;for(var s in t)!e&&!N.call(t,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Ot(s,c))||u.push(s);return u}function st(t,e,n){(void 0===n||Ct(t[e],n))&&(void 0!==n||e in t)||dt(t,e,n)}function ft(t,e,n){var r=t[e];N.call(t,e)&&Ct(r,n)&&(void 0!==n||e in t)||dt(t,e,n)}function lt(t,e){for(var n=t.length;n--;)if(Ct(t[n][0],e))return n;return-1}function dt(t,e,n){"__proto__"==e&&Y?Y(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}ot.prototype.clear=function(){this.__data__=nt?nt(null):{},this.size=0},ot.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ot.prototype.get=function(t){var e=this.__data__;if(nt){var n=e[t];return n===o?void 0:n}return N.call(e,t)?e[t]:void 0},ot.prototype.has=function(t){var e=this.__data__;return nt?void 0!==e[t]:N.call(e,t)},ot.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=nt&&void 0===e?o:e,this},it.prototype.clear=function(){this.__data__=[],this.size=0},it.prototype.delete=function(t){var e=this.__data__,n=lt(e,t);return!(n<0)&&(n==e.length-1?e.pop():J.call(e,n,1),--this.size,!0)},it.prototype.get=function(t){var e=this.__data__,n=lt(e,t);return n<0?void 0:e[n][1]},it.prototype.has=function(t){return lt(this.__data__,t)>-1},it.prototype.set=function(t,e){var n=this.__data__,r=lt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},at.prototype.clear=function(){this.size=0,this.__data__={hash:new ot,map:new(et||it),string:new ot}},at.prototype.delete=function(t){var e=_t(this,t).delete(t);return this.size-=e?1:0,e},at.prototype.get=function(t){return _t(this,t).get(t)},at.prototype.has=function(t){return _t(this,t).has(t)},at.prototype.set=function(t,e){var n=_t(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},ut.prototype.clear=function(){this.__data__=new it,this.size=0},ut.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},ut.prototype.get=function(t){return this.__data__.get(t)},ut.prototype.has=function(t){return this.__data__.has(t)},ut.prototype.set=function(t,e){var n=this.__data__;if(n instanceof it){var o=n.__data__;if(!et||o.length<r-1)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new at(o)}return n.set(t,e),this.size=n.size,this};var pt,ht=function(t,e,n){for(var r=-1,o=Object(t),i=n(t),a=i.length;a--;){var u=i[pt?a:++r];if(!1===e(o[u],u,o))break}return t};function vt(t){return null==t?void 0===t?v:d:V&&V in Object(t)?function(t){var e=N.call(t,V),n=t[V];try{t[V]=void 0;var r=!0}catch(t){}var o=B.call(t);r&&(e?t[V]=n:delete t[V]);return o}(t):function(t){return B.call(t)}(t)}function mt(t){return Pt(t)&&vt(t)==c}function yt(t){return!(!It(t)||function(t){return!!D&&D in t}(t))&&(Ut(t)?z:m).test(function(t){if(null!=t){try{return M.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function gt(t){if(!It(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=Rt(t),n=[];for(var r in t)("constructor"!=r||!e&&N.call(t,r))&&n.push(r);return n}function bt(t,e,n,r,o){t!==e&&ht(e,(function(i,a){if(o||(o=new ut),It(i))!function(t,e,n,r,o,i,a){var u=St(t,n),c=St(e,n),s=a.get(c);if(s)return void st(t,n,s);var f=i?i(u,c,n+"",t,e,a):void 0,l=void 0===f;if(l){var d=xt(c),h=!d&&At(c),v=!d&&!h&&Mt(c);f=c,d||h||v?xt(u)?f=u:Pt(E=u)&&Lt(E)?f=function(t,e){var n=-1,r=t.length;e||(e=Array(r));for(;++n<r;)e[n]=t[n];return e}(u):h?(l=!1,f=function(t,e){if(e)return t.slice();var n=t.length,r=K?K(n):new t.constructor(n);return t.copy(r),r}(c,!0)):v?(l=!1,m=c,y=!0?(g=m.buffer,b=new g.constructor(g.byteLength),new $(b).set(new $(g)),b):m.buffer,f=new m.constructor(y,m.byteOffset,m.length)):f=[]:function(t){if(!Pt(t)||vt(t)!=p)return!1;var e=G(t);if(null===e)return!0;var n=N.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&M.call(n)==F}(c)||jt(c)?(f=u,jt(u)?f=function(t){return function(t,e,n,r){var o=!n;n||(n={});var i=-1,a=e.length;for(;++i<a;){var u=e[i],c=r?r(n[u],t[u],u,n,t):void 0;void 0===c&&(c=t[u]),o?dt(n,u,c):ft(n,u,c)}return n}(t,Nt(t))}(u):It(u)&&!Ut(u)||(f=function(t){return"function"!=typeof t.constructor||Rt(t)?{}:rt(G(t))}(c))):l=!1}var m,y,g,b;var E;l&&(a.set(c,f),o(f,c,r,i,a),a.delete(c));st(t,n,f)}(t,e,a,n,bt,r,o);else{var u=r?r(St(t,a),i,a+"",t,e,o):void 0;void 0===u&&(u=i),st(t,a,u)}}),Nt)}function Et(t,e){return Tt(function(t,e,n){return e=Z(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=Z(r.length-e,0),a=Array(i);++o<i;)a[o]=r[e+o];o=-1;for(var u=Array(e+1);++o<e;)u[o]=r[o];return u[e]=n(a),j(t,this,u)}}(t,e,Ft),t+"")}function _t(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function wt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return yt(n)?n:void 0}function Ot(t,e){var n=typeof t;return!!(e=null==e?u:e)&&("number"==n||"symbol"!=n&&y.test(t))&&t>-1&&t%1==0&&t<e}function Rt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||I)}function St(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Tt=function(t){var e=0,n=0;return function(){var r=tt(),o=a-(r-n);if(n=r,o>0){if(++e>=i)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Y?function(t,e){return Y(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:Ft);function Ct(t,e){return t===e||t!=t&&e!=e}var jt=mt(function(){return arguments}())?mt:function(t){return Pt(t)&&N.call(t,"callee")&&!X.call(t,"callee")},xt=Array.isArray;function Lt(t){return null!=t&&kt(t.length)&&!Ut(t)}var At=Q||function(){return!1};function Ut(t){if(!It(t))return!1;var e=vt(t);return e==f||e==l||e==s||e==h}function kt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=u}function It(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Pt(t){return null!=t&&"object"==typeof t}var Mt=C?function(t){return function(e){return t(e)}}(C):function(t){return Pt(t)&&kt(t.length)&&!!g[vt(t)]};function Nt(t){return Lt(t)?ct(t,!0):gt(t)}var Dt,Bt=(Dt=function(t,e,n){bt(t,e,n)},Et((function(t,e){var n=-1,r=e.length,o=r>1?e[r-1]:void 0,i=r>2?e[2]:void 0;for(o=Dt.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(t,e,n){if(!It(n))return!1;var r=typeof e;return!!("number"==r?Lt(n)&&Ot(e,n.length):"string"==r&&e in n)&&Ct(n[e],t)}(e[0],e[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var a=e[n];a&&Dt(t,a,n,o)}return t})));function Ft(t){return t}n.exports=Bt}).call(this,n(2),n(3)(t))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){(function(t){!function(t){var e=function(){try{return!!Symbol.iterator}catch(t){return!1}}(),n=function(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return e&&(n[Symbol.iterator]=function(){return n}),n},r=function(t){return encodeURIComponent(t).replace(/%20/g,"+")},o=function(t){return decodeURIComponent(String(t).replace(/\+/g," "))};(function(){try{var e=t.URLSearchParams;return"a=1"===new e("?a=1").toString()&&"function"==typeof e.prototype.set}catch(t){return!1}})()||function(){var o=function(t){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var e=typeof t;if("undefined"===e);else if("string"===e)""!==t&&this._fromString(t);else if(t instanceof o){var n=this;t.forEach((function(t,e){n.append(e,t)}))}else{if(null===t||"object"!==e)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(t))for(var r=0;r<t.length;r++){var i=t[r];if("[object Array]"!==Object.prototype.toString.call(i)&&2===i.length)throw new TypeError("Expected [string, any] as entry at index "+r+" of URLSearchParams's input");this.append(i[0],i[1])}else for(var a in t)t.hasOwnProperty(a)&&this.append(a,t[a])}},i=o.prototype;i.append=function(t,e){t in this._entries?this._entries[t].push(String(e)):this._entries[t]=[String(e)]},i.delete=function(t){delete this._entries[t]},i.get=function(t){return t in this._entries?this._entries[t][0]:null},i.getAll=function(t){return t in this._entries?this._entries[t].slice(0):[]},i.has=function(t){return t in this._entries},i.set=function(t,e){this._entries[t]=[String(e)]},i.forEach=function(t,e){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var o=0;o<n.length;o++)t.call(e,n[o],r,this)}},i.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),n(t)},i.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),n(t)},i.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),n(t)},e&&(i[Symbol.iterator]=i.entries),i.toString=function(){var t=[];return this.forEach((function(e,n){t.push(r(n)+"="+r(e))})),t.join("&")},t.URLSearchParams=o}();var i=t.URLSearchParams.prototype;"function"!=typeof i.sort&&(i.sort=function(){var t=this,e=[];this.forEach((function(n,r){e.push([r,n]),t._entries||t.delete(r)})),e.sort((function(t,e){return t[0]<e[0]?-1:t[0]>e[0]?1:0})),t._entries&&(t._entries={});for(var n=0;n<e.length;n++)this.append(e[n][0],e[n][1])}),"function"!=typeof i._fromString&&Object.defineProperty(i,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(t){if(this._entries)this._entries={};else{var e=[];this.forEach((function(t,n){e.push(n)}));for(var n=0;n<e.length;n++)this.delete(e[n])}var r,i=(t=t.replace(/^\?/,"")).split("&");for(n=0;n<i.length;n++)r=i[n].split("="),this.append(o(r[0]),r.length>1?o(r[1]):"")}})}(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(t){if(function(){try{var e=new t.URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}()||function(){var e=t.URL,n=function(e,n){"string"!=typeof e&&(e=String(e));var r,o=document;if(n&&(void 0===t.location||n!==t.location.href)){(r=(o=document.implementation.createHTMLDocument("")).createElement("base")).href=n,o.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(t){throw new Error("URL unable to set base "+n+" due to "+t)}}var i=o.createElement("a");if(i.href=e,r&&(o.body.appendChild(i),i.href=i.href),":"===i.protocol||!/:/.test(i.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:i});var a=new t.URLSearchParams(this.search),u=!0,c=!0,s=this;["append","delete","set"].forEach((function(t){var e=a[t];a[t]=function(){e.apply(a,arguments),u&&(c=!1,s.search=a.toString(),c=!0)}})),Object.defineProperty(this,"searchParams",{value:a,enumerable:!0});var f=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==f&&(f=this.search,c&&(u=!1,this.searchParams._fromString(this.search),u=!0))}})},r=n.prototype;["hash","host","hostname","port","protocol"].forEach((function(t){!function(t){Object.defineProperty(r,t,{get:function(){return this._anchorElement[t]},set:function(e){this._anchorElement[t]=e},enumerable:!0})}(t)})),Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(t){this._anchorElement.search=t,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(r,{toString:{get:function(){var t=this;return function(){return t.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(t){this._anchorElement.href=t,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(t){this._anchorElement.pathname=t},enumerable:!0},origin:{get:function(){var t={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],e=this._anchorElement.port!=t&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(e?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(t){},enumerable:!0},username:{get:function(){return""},set:function(t){},enumerable:!0}}),n.createObjectURL=function(t){return e.createObjectURL.apply(e,arguments)},n.revokeObjectURL=function(t){return e.revokeObjectURL.apply(e,arguments)},t.URL=n}(),void 0!==t.location&&!("origin"in t.location)){var e=function(){return t.location.protocol+"//"+t.location.hostname+(t.location.port?":"+t.location.port:"")};try{Object.defineProperty(t.location,"origin",{get:e,enumerable:!0})}catch(n){setInterval((function(){t.location.origin=e()}),100)}}}(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)}).call(this,n(2))},function(t,e,n){"use strict";n.r(e);var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function o(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function u(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){t.done?o(t.value):new n((function(e){e(t.value)})).then(a,u)}c((r=r.apply(t,e||[])).next())}))}function i(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var a,u=6e4;function c(t,e,n){var r=!n||void 0===n.leading||n.leading,o=!n||void 0===n.trailing||n.trailing,i=!1,a=!1;return function(){var n=this;i?a=!0:(r?t.apply(this):a=!0,i=!0,setTimeout((function(){o&&a&&t.apply(n),i=!1,a=!1}),e))}}function s(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):(1e7+"-1000-4000-8000-100000000000").replace(/[018]/g,s)}function f(t){return 0!==t&&100*Math.random()<=t}function l(t){return+(1e6*t).toFixed(0)}function d(t){var e={};return Object.keys(t).forEach((function(n){var r;e[(r=n,r.replace(/[A-Z]/g,(function(t,e){return(0!==e?"_":"")+t.toLowerCase()})).replace(/-/g,"_"))]=function t(e){if(Array.isArray(e))return e.map((function(e){return t(e)}));if("object"==typeof e)return d(e);return e}(t[n])})),e}function p(){}function h(t,e,n){if(null==t)return JSON.stringify(t);var r=[!1,void 0];v(t)&&(r=[!0,t.toJSON],delete t.toJSON);var o,i=[!1,void 0];"object"==typeof t&&v(o=Object.getPrototypeOf(t))&&(i=[!0,o.toJSON],delete o.toJSON);try{return JSON.stringify(t,e,n)}finally{r[0]&&(t.toJSON=r[1]),i[0]&&(o.toJSON=i[1])}}function v(t){return"object"==typeof t&&null!==t&&t.hasOwnProperty("toJSON")}function m(t,e){return 0===t.indexOf(e)}function y(t,e){return-1!==t.indexOf(e)}function g(t){return"number"==typeof t&&t>=0&&t<=100}function b(t){return t-performance.timing.navigationStart}!function(t){t.XHR="xhr",t.BEACON="beacon",t.FETCH="fetch",t.CSS="css",t.JS="js",t.IMAGE="image",t.FONT="font",t.MEDIA="media",t.OTHER="other"}(a||(a={}));var E={isCollectingError:!0,maxErrorsByMinute:1e4,maxInternalMonitoringMessagesPerPage:15,resourceSampleRate:100,sampleRate:100,requestErrorResponseLengthLimit:32768,flushTimeout:3e4,maxBatchSize:50,maxMessageSize:262144,batchBytesLimit:16384};function _(t,e,n){var r="us"===e.datacenter?"com":"eu",o="production"===e.env?"datadoghq."+r:"datad0g."+r,i="version:"+e.version;return"https://"+t+"-http-intake.logs."+o+"/v1/input/"+e.clientToken+"?ddsource="+(n||"browser")+"&ddtags="+i}var w=n(0),O=n.n(w),R="?",S=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function T(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var C=function(){var t,e,n,r,o,i,a=[];function u(t,e,n){var r;for(var o in a)if(T(a,o))try{a[o](t,e,n)}catch(t){r=t}if(r)throw r}function c(t,r,o,i,a){if(e)j.augmentStackTraceWithInitialElement(e,r,o,""+t),f();else if(a)u(j(a),!0,a);else{var c,s={url:r,column:i,line:o},l=t;if("[object String]"==={}.toString.call(t)){var d=l.match(S);d&&(c=d[1],l=d[2])}u({name:c,message:l,stack:[s]},!0)}return!!n&&n.apply(this,arguments)}function s(t){var e=t.reason||"Empty reason";u(j(e),!0,e)}function f(){var n=e,r=t;e=void 0,t=void 0,u(n,!1,r)}function l(n){if(e){if(t===n)return;f()}var r=j(n);throw e=r,t=n,setTimeout((function(){t===n&&f()}),r.incomplete?2e3:0),n}return l.subscribe=function(t){!function(){if(r)return;n=window.onerror,window.onerror=P(c),r=!0}(),function(){if(i)return;o=null!==window.onunhandledrejection?window.onunhandledrejection:void 0,window.onunhandledrejection=P(s),i=!0}(),a.push(t)},l.unsubscribe=function(t){for(var e=a.length-1;e>=0;e-=1)a[e]===t&&a.splice(e,1);0===a.length&&(r&&(window.onerror=n,r=!1),i&&(window.onunhandledrejection=o,i=!1))},l.traceKitWindowOnError=c,l}(),j=function(){var t=!1;function e(t){if(t.stack){for(var e,n,r,o,i=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,u=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,c=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,s=/\((\S*)(?::(\d+))(?::(\d+))\)/,f=t.stack.split("\n"),l=[],d=0,p=f.length;d<p;d+=1){if(i.exec(f[d])){var h=(r=i.exec(f[d]))[2]&&0===r[2].indexOf("native");e=r[2]&&0===r[2].indexOf("eval"),n=s.exec(r[2]),e&&n&&(r[2]=n[1],r[3]=n[2],r[4]=n[3]),o={args:h?[r[2]]:[],column:r[4]?+r[4]:void 0,func:r[1]||R,line:r[3]?+r[3]:void 0,url:h?void 0:r[2]}}else if(u.exec(f[d]))o={args:[],column:(r=u.exec(f[d]))[4]?+r[4]:void 0,func:r[1]||R,line:+r[3],url:r[2]};else{if(!a.exec(f[d]))continue;e=(r=a.exec(f[d]))[3]&&r[3].indexOf(" > eval")>-1,n=c.exec(r[3]),e&&n?(r[3]=n[1],r[4]=n[2],r[5]=void 0):0!==d||r[5]||void 0===t.columnNumber||(l[0].column=t.columnNumber+1),o={args:r[2]?r[2].split(","):[],column:r[5]?+r[5]:void 0,func:r[1]||R,line:r[4]?+r[4]:void 0,url:r[3]}}!o.func&&o.line&&(o.func=R),l.push(o)}if(l.length)return{stack:l,message:t.message,name:t.name}}}function n(t,e,n,r){var o={url:e,line:n?+n:void 0};if(o.url&&o.line){t.incomplete=!1;var i=t.stack;if(i.length>0&&i[0].url===o.url){if(i[0].line===o.line)return!1;if(!i[0].line&&i[0].func===o.func)return i[0].line=o.line,i[0].context=o.context,!1}return i.unshift(o),t.partial=!0,!0}return t.incomplete=!0,!1}function r(t,e){for(var o,i,a=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,u=[],c={},s=!1,f=r.caller;f&&!s;f=f.caller)f!==j&&f!==C&&(i={args:[],column:void 0,func:R,line:void 0,url:void 0},o=a.exec(f.toString()),f.name?i.func=f.name:o&&(i.func=o[1]),void 0===i.func&&(i.func=o?o.input.substring(0,o.input.indexOf("{")):void 0),c[""+f]?s=!0:c[""+f]=!0,u.push(i));e&&u.splice(0,e);var l={stack:u,message:t.message,name:t.name};return n(l,t.sourceURL||t.fileName,t.line||t.lineNumber,t.message||t.description),l}function o(n,o){var i,a=void 0===o?0:+o;try{if(i=function(t){var e=t.stacktrace;if(e){for(var n,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,o=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,i=e.split("\n"),a=[],u=0;u<i.length;u+=2){var c=void 0;r.exec(i[u])?c={args:[],column:void 0,func:(n=r.exec(i[u]))[3],line:+n[1],url:n[2]}:o.exec(i[u])&&(c={args:(n=o.exec(i[u]))[5]?n[5].split(","):[],column:+n[2],func:n[3]||n[4],line:+n[1],url:n[6]}),c&&(!c.func&&c.line&&(c.func=R),c.context=[i[u+1]],a.push(c))}if(a.length)return{stack:a,message:t.message,name:t.name}}}(n))return i}catch(e){if(t)throw e}try{if(i=e(n))return i}catch(e){if(t)throw e}try{if(i=function(t){var e=t.message.split("\n");if(!(e.length<4)){var n,r=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,o=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,i=/^\s*Line (\d+) of function script\s*$/i,a=[],u=window&&window.document&&window.document.getElementsByTagName("script"),c=[];for(var s in u)T(u,s)&&!u[s].src&&c.push(u[s]);for(var f=2;f<e.length;f+=2){var l=void 0;if(r.exec(e[f]))l={args:[],column:void 0,func:(n=r.exec(e[f]))[3],line:+n[1],url:n[2]};else if(o.exec(e[f]))l={args:[],column:void 0,func:(n=o.exec(e[f]))[4],line:+n[1],url:n[3]};else if(i.exec(e[f])){n=i.exec(e[f]),l={url:window.location.href.replace(/#.*$/,""),args:[],column:void 0,func:"",line:+n[1]}}l&&(l.func||(l.func=R),l.context=[e[f+1]],a.push(l))}if(a.length)return{stack:a,message:e[0],name:t.name}}}(n))return i}catch(e){if(t)throw e}try{if(i=r(n,a+1))return i}catch(e){if(t)throw e}return{message:n.message,name:n.name,stack:[]}}return o.augmentStackTraceWithInitialElement=n,o.computeStackTraceFromStackProp=e,o.ofCaller=function(t){var e=1+(void 0===t?0:+t);try{throw new Error}catch(t){return j(t,e+1)}},o}();var x,L=n(1),A=n.n(L),U=function(){function t(t,e){this.endpointUrl=t,this.bytesLimit=e}return t.prototype.send=function(t,e){if(navigator.sendBeacon&&e<this.bytesLimit&&navigator.sendBeacon(this.endpointUrl,t))return;var n=new XMLHttpRequest;n.open("POST",this.endpointUrl,!0),n.send(t)},t}(),k=function(){function t(t,e,n,r,o,i){this.request=t,this.maxSize=e,this.bytesLimit=n,this.maxMessageSize=r,this.flushTimeout=o,this.contextProvider=i,this.beforeFlushOnUnloadHandlers=[],this.pushOnlyBuffer=[],this.upsertBuffer={},this.bufferBytesSize=0,this.bufferMessageCount=0,this.flushOnVisibilityHidden(),this.flushPeriodically()}return t.prototype.add=function(t){this.addOrUpdate(t)},t.prototype.upsert=function(t,e){this.addOrUpdate(t,e)},t.prototype.beforeFlushOnUnload=function(t){this.beforeFlushOnUnloadHandlers.push(t)},t.prototype.flush=function(){if(0!==this.bufferMessageCount){var t=this.pushOnlyBuffer.concat((e=this.upsertBuffer,n=[],Object.keys(e).forEach((function(t){n.push(e[t])})),n));this.request.send(t.join("\n"),this.bufferBytesSize),this.pushOnlyBuffer=[],this.upsertBuffer={},this.bufferBytesSize=0,this.bufferMessageCount=0}var e,n},t.prototype.addOrUpdate=function(t,e){var n=this.process(t),r=n.processedMessage,o=n.messageBytesSize;o>=this.maxMessageSize?console.warn("Discarded a message whose size was bigger than the maximum allowed size "+this.maxMessageSize+"KB."):(this.hasMessageFor(e)&&this.remove(e),this.willReachedBytesLimitWith(o)&&this.flush(),this.push(r,o,e),this.isFull()&&this.flush())},t.prototype.process=function(t){var e=h(A()({},this.contextProvider(),t));return{processedMessage:e,messageBytesSize:this.sizeInBytes(e)}},t.prototype.push=function(t,e,n){this.bufferMessageCount>0&&(this.bufferBytesSize+=1),void 0!==n?this.upsertBuffer[n]=t:this.pushOnlyBuffer.push(t),this.bufferBytesSize+=e,this.bufferMessageCount+=1},t.prototype.remove=function(t){var e=this.upsertBuffer[t];delete this.upsertBuffer[t];var n=this.sizeInBytes(e);this.bufferBytesSize-=n,this.bufferMessageCount-=1,this.bufferMessageCount>0&&(this.bufferBytesSize-=1)},t.prototype.hasMessageFor=function(t){return void 0!==t&&void 0!==this.upsertBuffer[t]},t.prototype.willReachedBytesLimitWith=function(t){return this.bufferBytesSize+t+1>=this.bytesLimit},t.prototype.isFull=function(){return this.bufferMessageCount===this.maxSize||this.bufferBytesSize>=this.bytesLimit},t.prototype.sizeInBytes=function(t){return~-encodeURI(t).split(/%..|./).length},t.prototype.flushPeriodically=function(){var t=this;setTimeout((function(){t.flush(),t.flushPeriodically()}),this.flushTimeout)},t.prototype.flushOnVisibilityHidden=function(){var t=this;navigator.sendBeacon&&(window.addEventListener("beforeunload",P((function(){t.beforeFlushOnUnloadHandlers.forEach((function(t){return t()}))}))),document.addEventListener("visibilitychange",P((function(){"hidden"===document.visibilityState&&t.flush()}))),window.addEventListener("beforeunload",P((function(){return t.flush()}))))},t}();!function(t){t.info="info",t.error="error"}(x||(x={}));var I={maxMessagesPerPage:0,sentMessageCount:0};function P(t){return function(){try{return t.apply(this,arguments)}catch(t){F(t);try{N(t)}catch(t){F(t)}}}}function M(t){D({message:t,status:x.info})}function N(t){D(r({},function(t){if(t instanceof Error){var e=j(t);return{error:{kind:e.name,stack:Q(e)},message:e.message}}return{error:{stack:"Not an instance of error"},message:"Uncaught "+h(t)}}(t),{status:x.error}))}function D(t){I.batch&&I.sentMessageCount<I.maxMessagesPerPage&&(I.sentMessageCount+=1,I.batch.add(t))}function B(t){I.debugMode=t}function F(t){I.debugMode&&console.warn("[INTERNAL ERROR]",t)}var z,H,W,$,K,G=function(){function t(){this.observers=[]}return t.prototype.subscribe=function(t){this.observers.push(t)},t.prototype.notify=function(t){this.observers.forEach((function(e){return e(t)}))},t}();n(4);function q(){return H||(function(t){var e=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=P((function(t,n){return this._datadog_xhr={method:t,url:n},e.apply(this,arguments)}));var n=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.send=function(e){var r=this,o=performance.now(),i=function(){t.notify({startTime:o,duration:performance.now()-o,method:r._datadog_xhr.method,response:r.response,status:r.status,traceId:J(),type:z.XHR,url:X(r._datadog_xhr.url)})};return this.addEventListener("loadend",P(i)),n.apply(this,arguments)}}(H=new G),function(t){if(!window.fetch)return;var e=window.fetch;window.fetch=P((function(n,r){var a=this,u=r&&r.method||"object"==typeof n&&n.method||"GET",c=performance.now(),s=function(e){return o(a,void 0,void 0,(function(){var r,o,a,s;return i(this,(function(i){switch(i.label){case 0:return r=performance.now()-c,o=X("object"==typeof n&&n.url||n),"stack"in e||e instanceof Error?(a=j(e),t.notify({duration:r,method:u,startTime:c,url:o,response:Q(a),status:0,traceId:J(),type:z.FETCH}),[3,3]):[3,1];case 1:return"status"in e?[4,e.clone().text()]:[3,3];case 2:s=i.sent(),t.notify({duration:r,method:u,startTime:c,url:o,response:s,responseType:e.type,status:e.status,traceId:J(),type:z.FETCH}),i.label=3;case 3:return[2]}}))}))},f=e.call(this,n,r);return f.then(P(s),P(s)),f}))}(H)),H}function X(t){return new URL(t,window.location.origin).href}function J(){return"ddtrace"in window&&window.ddtrace.tracer.scope().active()?window.ddtrace.tracer.scope().active().context().toTraceId():void 0}function V(t){var e=new G;t.isCollectingError&&(!function(t,e,n){n.subscribe((function(n){(function(t){return 0===t.status&&"opaque"!==t.responseType}(n)||function(t){return t.status>=500}(n))&&e.notify({context:{error:{origin:W.NETWORK,stack:Z(n.response,t)||"Failed to load"},http:{method:n.method,status_code:n.status,url:n.url}},message:tt(n.type)+" error "+n.method+" "+n.url})}))}(t,e,q()),function(t){$=console.error,console.error=P((function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];$.apply(console,[e].concat(n)),t.notify({context:{error:{origin:W.CONSOLE}},message:["console error:",e].concat(n).map(Y).join(" ")})}))}(e),function(t){K=function(e,n,r){t.notify(function(t,e){var n,r;void 0!==t.message||e instanceof Error?(n=t.message||"Empty message",r=Q(t)):(n="Uncaught "+h(e),r="No stack, consider using an instance of Error");return{message:n,context:{error:{stack:r,kind:t.name,origin:W.SOURCE}}}}(e,r))},C.subscribe(K)}(e));return function(t,e){var n=0,r=new G;return e.subscribe((function(e){n<t.maxErrorsByMinute?(n+=1,r.notify(e)):n===t.maxErrorsByMinute&&(n+=1,r.notify({context:{error:{origin:W.AGENT}},message:"Reached max number of errors by minute: "+t.maxErrorsByMinute}))})),setInterval((function(){return n=0}),u),r}(t,e)}function Y(t){return"string"==typeof t?t:t instanceof Error?Q(j(t)):h(t,void 0,2)}function Q(t){var e=(t.name||"Error")+": "+t.message;return t.stack.forEach((function(t){var n="?"===t.func?"<anonymous>":t.func,r=t.args&&t.args.length>0?"("+t.args.join(", ")+")":"",o=t.line?":"+t.line:"",i=t.line&&t.column?":"+t.column:"";e+="\n at "+n+r+" @ "+t.url+o+i})),e}function Z(t,e){return t&&t.length>e.requestErrorResponseLengthLimit?t.substring(0,e.requestErrorResponseLengthLimit)+"...":t}function tt(t){return z.XHR===t?"XHR":"Fetch"}!function(t){t.FETCH="fetch",t.XHR="xhr"}(z||(z={})),function(t){t.AGENT="agent",t.CONSOLE="console",t.NETWORK="network",t.SOURCE="source",t.LOGGER="logger"}(W||(W={}));var et=1e3;function nt(t){var e,n,r=!1,o=function(){r=!0,window.clearTimeout(e),e=window.setTimeout((function(){r=!1}),et)};return{get:function(){return r?n:(n=ot(t),o(),n)},set:function(e,r){rt(t,e,r),n=e,o()}}}function rt(t,e,n){var r=new Date;r.setTime(r.getTime()+n);var o="expires="+r.toUTCString();document.cookie=t+"="+e+";"+o+";path=/"}function ot(t){var e=document.cookie.match("(^|;)\\s*"+t+"\\s*=\\s*([^;]+)");return e?e.pop():void 0}function it(t){console.warn("'"+t+"' not yet available, please call '.init()' first.")}function at(t,e){var n=function(t,e){var n={clientToken:t.clientToken,datacenter:t.datacenter||e.datacenter,env:e.env,version:e.version},o=r({logsEndpoint:_("browser",n),rumEndpoint:_("rum",n),traceEndpoint:_("public-trace",n)},E);return t.internalMonitoringApiKey&&(o.internalMonitoringEndpoint=_("browser",n,"browser-agent-internal-monitoring")),"isCollectingError"in t&&(o.isCollectingError=!!t.isCollectingError),"sampleRate"in t&&(o.sampleRate=t.sampleRate),"resourceSampleRate"in t&&(o.resourceSampleRate=t.resourceSampleRate),"e2e-test"===n.env&&(void 0!==t.internalMonitoringEndpoint&&(o.internalMonitoringEndpoint=t.internalMonitoringEndpoint),void 0!==t.logsEndpoint&&(o.logsEndpoint=t.logsEndpoint),void 0!==t.rumEndpoint&&(o.rumEndpoint=t.rumEndpoint)),o}(t,e);return function(t){if(t.internalMonitoringEndpoint){var e=new k(new U(t.internalMonitoringEndpoint,t.batchBytesLimit),t.maxBatchSize,t.batchBytesLimit,t.maxMessageSize,t.flushTimeout,(function(){return{date:(new Date).getTime(),view:{referrer:document.referrer,url:window.location.href}}}));O()(I,{batch:e,maxMessagesPerPage:t.maxInternalMonitoringMessagesPerPage,sentMessageCount:0})}}(n),{configuration:n,errorObservable:V(n)}}function ut(){return function(){if(void 0===document.cookie||null===document.cookie)return!1;try{return rt("dd_rum_test","test",1e3),"test"===ot("dd_rum_test")}catch(t){return console.error(t),!1}}()?"file:"!==window.location.protocol||(console.error("Execution is not allowed in the current context."),!1):(console.error("Cookies are not authorized, we will not send any data."),!1)}var ct="_dd",st=15*u,ft=[];function lt(t,e){var n=nt(ct),r=nt(t),o=new G,i=n.get(),a=c((function(){var t=e(r.get()),a=t.type,u=t.isTracked;r.set(a,st),u&&(n.get()?n.set(n.get(),st):n.set(s(),st),i!==n.get()&&(i=n.get(),o.notify()))}),et);return a(),function(t){var e={capture:!0,passive:!0};["click","touchstart","keydown","scroll"].forEach((function(n){document.addEventListener(n,t,e),ft.push((function(){return document.removeEventListener(n,t,e)}))}))}(a),{getId:function(){return n.get()},getType:function(){return r.get()},renewObservable:o}}(function(){function t(t){var e=this;this.requests=[],this.pendingFetch=0,this.whenAllCompleteFn=p,t.subscribe((function(t){e.requests.push(t),e.pendingFetch-=1,0===e.pendingFetch&&setTimeout((function(){e.whenAllCompleteFn(e.requests)}))}))}t.prototype.whenAllComplete=function(t){this.whenAllCompleteFn=t},t.prototype.getStub=function(){var t=this;return function(){var e,n;t.pendingFetch+=1;var a=new Promise((function(t,r){e=t,n=r}));return a.resolveWith=function(n){return o(t,void 0,void 0,(function(){var t=this;return i(this,(function(a){return[2,e(r({},n,{clone:function(){return{text:function(){return o(t,void 0,void 0,(function(){return i(this,(function(t){return[2,n.responseText]}))}))}}}}))]}))}))},a.rejectWith=function(e){return o(t,void 0,void 0,(function(){return i(this,(function(t){return[2,n(e)]}))}))},a}}})(),function(){function t(){}t.prototype.fakeEntry=function(t,e){var n=function(){return[t]};this.instance.callback({getEntries:n,getEntriesByName:n,getEntriesByType:function(t){return t===e?n():[]}})},t.prototype.getStub=function(){var t,e=this;return(t=function(){function t(t){this.callback=t,e.instance=this}return t.prototype.observe=function(t){},t}()).supportedEntryTypes=["navigation"],t}}();var dt,pt={datacenter:"us",env:"production",version:"1.2.9"};!function(t){t[t.ERROR_COLLECTED=0]="ERROR_COLLECTED",t[t.PERFORMANCE_ENTRY_COLLECTED=1]="PERFORMANCE_ENTRY_COLLECTED",t[t.USER_ACTION_COLLECTED=2]="USER_ACTION_COLLECTED",t[t.REQUEST_COLLECTED=3]="REQUEST_COLLECTED",t[t.SESSION_RENEWED=4]="SESSION_RENEWED",t[t.RESOURCE_ADDED_TO_BATCH=5]="RESOURCE_ADDED_TO_BATCH"}(dt||(dt={}));var ht=function(){function t(){this.callbacks={}}return t.prototype.notify=function(t,e){var n=this.callbacks[t];n&&n.forEach((function(t){return t(e)}))},t.prototype.subscribe=function(t,e){var n=this.callbacks[t];n?n.push(e):this.callbacks[t]=[e]},t}();function vt(){return void 0!==window.performance&&"getEntries"in performance}function mt(t,e){(vt()&&yt(e,t,performance.getEntries()),window.PerformanceObserver)&&(new PerformanceObserver(P((function(n){return yt(e,t,n.getEntries())}))).observe({entryTypes:["resource","navigation","paint","longtask"]}),vt()&&"addEventListener"in performance&&performance.addEventListener("resourcetimingbufferfull",(function(){performance.clearResourceTimings()})));window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("navigation")||function(t){function e(){var e={domComplete:b(performance.timing.domComplete),domContentLoadedEventEnd:b(performance.timing.domContentLoadedEventEnd),domInteractive:b(performance.timing.domInteractive),entryType:"navigation",loadEventEnd:b(performance.timing.loadEventEnd)};t(e)}if("complete"===document.readyState)e();else{var n=function(){window.removeEventListener("load",n),setTimeout(P(e))};window.addEventListener("load",n)}}((function(n){yt(e,t,[n])}))}function yt(t,e,n){function r(t){e.notify(dt.PERFORMANCE_ENTRY_COLLECTED,t)}t.isTrackedWithResource()&&n.filter((function(t){return"resource"===t.entryType})).forEach(r),n.filter((function(t){return"navigation"===t.entryType})).filter((function(t){return t.loadEventEnd>0})).forEach(r),n.filter((function(t){return"paint"===t.entryType})).forEach(r),n.filter((function(t){return"longtask"===t.entryType})).forEach(r)}function gt(t){if(performance&&"getEntriesByName"in performance){var e,n=performance.getEntriesByName(t.url,"resource").filter((function(e){return n=e,r=t.startTime,o=bt(t),n.startTime>=r&&bt(n)<=o;var n,r,o}));return 1===n.length?n[0]:2===n.length&&bt((e=n)[0])<=e[1].startTime?n[1]:void 0}}function bt(t){return t.startTime+t.duration}var Et,_t=[[a.XHR,function(t){return"xmlhttprequest"===t}],[a.FETCH,function(t){return"fetch"===t}],[a.BEACON,function(t){return"beacon"===t}],[a.CSS,function(t,e){return null!==e.match(/\.css$/i)}],[a.JS,function(t,e){return null!==e.match(/\.js$/i)}],[a.IMAGE,function(t,e){return y(["image","img","icon"],t)||null!==e.match(/\.(gif|jpg|jpeg|tiff|png|svg)$/i)}],[a.FONT,function(t,e){return null!==e.match(/\.(woff|eot|woff2|ttf)$/i)}],[a.MEDIA,function(t,e){return y(["audio","video"],t)||null!==e.match(/\.(mp3|mp4)$/i)}]];function wt(t){if(t&&Rt(t))return{connect:{duration:l(t.connectEnd-t.connectStart),start:l(t.connectStart)},dns:{duration:l(t.domainLookupEnd-t.domainLookupStart),start:l(t.domainLookupStart)},download:{duration:l(t.responseEnd-t.responseStart),start:l(t.responseStart)},firstByte:{duration:l(t.responseStart-t.requestStart),start:l(t.requestStart)},redirect:t.redirectStart>0?{duration:l(t.redirectEnd-t.redirectStart),start:l(t.redirectStart)}:void 0,ssl:t.secureConnectionStart>0?{duration:l(t.connectEnd-t.secureConnectionStart),start:l(t.secureConnectionStart)}:void 0}}function Ot(t){return t&&Rt(t)?t.decodedBodySize:void 0}function Rt(t){return t.responseStart>0}function St(t,e){return t&&!function(t,e){return m(t,e.logsEndpoint)||m(t,e.rumEndpoint)||m(t,e.traceEndpoint)||e.internalMonitoringEndpoint&&m(t,e.internalMonitoringEndpoint)}(t,e)}var Tt,Ct,jt,xt,Lt,At=3e3;function Ut(t,e,n,o,i){var a=c(P((function(){return It(o)})),At,{leading:!1});kt(t,n,o),function(t,e,n){var r=history.pushState;history.pushState=P((function(){r.apply(this,arguments),Mt(t,e,n)}));var o=history.replaceState;history.replaceState=P((function(){o.apply(this,arguments),Mt(t,e,n)})),window.addEventListener("popstate",(function(){Mt(t,e,n)}))}(t,n,o),function(t,e){t.subscribe(dt.PERFORMANCE_ENTRY_COLLECTED,(function(t){if("navigation"===t.entryType){var n=t;!function(t){t.loadEventEnd>864e5&&M("Got an abnormal load event in a PerformanceNavigationTiming entry!\nSession Id: "+Et.sessionId+"\nView Id: "+Et.id+"\nView start date: "+Tt+"\nDocument Version: "+jt+"\nEntry: "+JSON.stringify(t)+"\nPrevious measures: "+JSON.stringify(xt))}(n),xt=r({},xt,{domComplete:l(n.domComplete),domContentLoaded:l(n.domContentLoadedEventEnd),domInteractive:l(n.domInteractive),loadEventEnd:l(n.loadEventEnd)}),e()}else if("paint"===t.entryType&&"first-contentful-paint"===t.name){xt=r({},xt,{firstContentfulPaint:l(t.startTime)}),e()}})),t.subscribe(dt.ERROR_COLLECTED,(function(){xt.errorCount+=1,e()})),t.subscribe(dt.USER_ACTION_COLLECTED,(function(){xt.userActionCount+=1,e()})),t.subscribe(dt.PERFORMANCE_ENTRY_COLLECTED,(function(t){"longtask"===t.entryType&&(xt.longTaskCount+=1,e())})),t.subscribe(dt.RESOURCE_ADDED_TO_BATCH,(function(){xt.resourceCount+=1,e()}))}(e,a),function(t,e,n,r){e.subscribe(dt.SESSION_RENEWED,(function(){It(r),kt(t,n,r)}))}(t,e,n,o),i((function(){return It(o)}))}function kt(t,e,n){Et={id:s(),location:r({},t),sessionId:e.getId()},Tt=(new Date).getTime(),Ct=performance.now(),jt=1,xt={errorCount:0,longTaskCount:0,resourceCount:0,userActionCount:0},Pt(n)}function It(t){jt+=1,Pt(t)}function Pt(t){t({date:Tt,duration:l(performance.now()-Ct),evt:{category:Lt.VIEW},rum:{documentVersion:jt},view:{measures:xt}},Et.id)}function Mt(t,e,n){var r,o;r=Et.location,o=t,r.pathname!==o.pathname&&(It(n),kt(t,e,n))}function Nt(t,e,n,o){var i={},u=function(t,e,n,r){var o=new k(new U(t.rumEndpoint,t.batchBytesLimit),t.maxBatchSize,t.batchBytesLimit,t.maxMessageSize,t.flushTimeout,(function(){return A()(d(n()),r())}));return{addRumEvent:function(t){e.isTracked()&&o.add(d(t))},addUserEvent:function(t){e.isTracked()&&o.add(t)},beforeFlushOnUnload:function(t){return o.beforeFlushOnUnload(t)},upsertRumEvent:function(t,n){e.isTracked()&&o.upsert(d(t),n)}}}(n,o,(function(){return{applicationId:t,date:(new Date).getTime(),sessionId:Et.sessionId,view:{id:Et.id,referrer:document.referrer,url:Et.location.href}}}),(function(){return i}));return Ut(window.location,e,o,u.upsertRumEvent,u.beforeFlushOnUnload),function(t,e){t.subscribe(dt.ERROR_COLLECTED,(function(t){var n=t.message,o=t.context;e(r({message:n,evt:{category:Lt.ERROR}},o))}))}(e,u.addRumEvent),function(t,e,n,r){e.subscribe(dt.REQUEST_COLLECTED,(function(o){if(n.isTrackedWithResource()&&St(o.url,t)){var i=gt(o),u=o.type===z.XHR?a.XHR:a.FETCH;r({duration:l(i?i.duration:o.duration),evt:{category:Lt.RESOURCE},http:{method:o.method,performance:wt(i),statusCode:o.status,url:o.url},network:{bytesWritten:Ot(i)},resource:{kind:u},traceId:o.traceId}),e.notify(dt.RESOURCE_ADDED_TO_BATCH)}}))}(n,e,o,u.addRumEvent),function(t,e,n){e.subscribe(dt.PERFORMANCE_ENTRY_COLLECTED,(function(r){switch(r.entryType){case"resource":!function(t,e,n,r){if(!St(e.name,t))return;var o=function(t){var e;try{e=new URL(t.name)}catch(e){M('Failed to construct URL for "'+t.name+'"')}if(void 0!==e)for(var n=e.pathname,r=0,o=_t;r<o.length;r++){var i=o[r],u=i[0];if((0,i[1])(t.initiatorType,n))return u}return a.OTHER}(e);if(y([a.XHR,a.FETCH],o))return;n({duration:l(e.duration),evt:{category:Lt.RESOURCE},http:{performance:wt(e),url:e.name},network:{bytesWritten:Ot(e)},resource:{kind:o}}),r.notify(dt.RESOURCE_ADDED_TO_BATCH)}(t,r,n,e);break;case"longtask":!function(t,e){e({duration:l(t.duration),evt:{category:Lt.LONG_TASK}})}(r,n)}}))}(n,e,u.addRumEvent),function(t,e){t.subscribe(dt.USER_ACTION_COLLECTED,(function(t){var n=t.name,o=t.context;e(r({},o,{evt:{name:n,category:Lt.USER_ACTION}}))}))}(e,u.addUserEvent),{addRumGlobalContext:P((function(t,e){i[t]=e})),addUserAction:P((function(t,n){e.notify(dt.USER_ACTION_COLLECTED,{name:t,context:n})})),getInternalContext:P((function(){return{application_id:t,session_id:Et.sessionId,view:{id:Et.id}}})),setRumGlobalContext:P((function(t){i=t}))}}!function(t){t.USER_ACTION="user_action",t.ERROR="error",t.LONG_TASK="long_task",t.VIEW="view",t.RESOURCE="resource"}(Lt||(Lt={}));var Dt,Bt="_dd_r";function Ft(t,e){var n=lt(Bt,(function(e){return function(t,e){var n;r=e,n=r===Dt.NOT_TRACKED||r===Dt.TRACKED_WITH_RESOURCES||r===Dt.TRACKED_WITHOUT_RESOURCES?e:f(t.sampleRate)?f(t.resourceSampleRate)?Dt.TRACKED_WITH_RESOURCES:Dt.TRACKED_WITHOUT_RESOURCES:Dt.NOT_TRACKED;var r;return{isTracked:zt(n),type:n}}(t,e)}));return n.renewObservable.subscribe((function(){e.notify(dt.SESSION_RENEWED)})),{getId:n.getId,isTracked:function(){return zt(n.getType())},isTrackedWithResource:function(){return n.getType()===Dt.TRACKED_WITH_RESOURCES}}}function zt(t){return t===Dt.TRACKED_WITH_RESOURCES||t===Dt.TRACKED_WITHOUT_RESOURCES}!function(t){t.NOT_TRACKED="0",t.TRACKED_WITH_RESOURCES="1",t.TRACKED_WITHOUT_RESOURCES="2"}(Dt||(Dt={})),n.d(e,"datadogRum",(function(){return Wt}));var Ht,Wt=(Ht=r({},{init:function(t){it("core.init")},addRumGlobalContext:function(t,e){it("addRumGlobalContext")},setRumGlobalContext:function(t){it("setRumGlobalContext")},addUserAction:function(t,e){it("addUserAction")},getInternalContext:function(){it("getInternalContext")}}),Object.defineProperty(Ht,"_setDebug",{get:function(){return B},enumerable:!1}),Ht),$t=!1;Wt.init=P((function(t){if(ut()&&function(t){if($t)return console.error("DD_RUM is already initialized."),!1;if(!t||!t.clientToken&&!t.publicApiKey)return console.error("Client Token is not configured, we will not send any data."),!1;if(!t.applicationId)return console.error("Application ID is not configured, no RUM data will be collected."),!1;if(void 0!==t.sampleRate&&!g(t.sampleRate))return console.error("Sample Rate should be a number between 0 and 100"),!1;if(void 0!==t.resourceSampleRate&&!g(t.resourceSampleRate))return console.error("Resource Sample Rate should be a number between 0 and 100"),!1;return!0}(t)){t.publicApiKey&&(t.clientToken=t.publicApiKey);var e=r({},t,{isCollectingError:!0}),n=new ht,o=at(e,pt),i=o.errorObservable,a=o.configuration,u=Ft(a,n),c=q();mt(n,u),i.subscribe((function(t){return n.notify(dt.ERROR_COLLECTED,t)})),c.subscribe((function(t){return n.notify(dt.REQUEST_COLLECTED,t)}));var s=Nt(e.applicationId,n,a,u);O()(Wt,s),$t=!0}})),window.DD_RUM=Wt}]);
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=5)}([function(t,e){var n=9007199254740991,r="[object Arguments]",o="[object Function]",i="[object GeneratorFunction]",a=/^(?:0|[1-9]\d*)$/;function u(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var c,s,f=Object.prototype,l=f.hasOwnProperty,d=f.toString,p=f.propertyIsEnumerable,h=(c=Object.keys,s=Object,function(t){return c(s(t))}),v=Math.max,m=!p.call({valueOf:1},"valueOf");function y(t,e){var n=w(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&O(t)}(t)&&l.call(t,"callee")&&(!p.call(t,"callee")||d.call(t)==r)}(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],o=n.length,i=!!o;for(var a in t)!e&&!l.call(t,a)||i&&("length"==a||b(a,o))||n.push(a);return n}function g(t,e,n){var r=t[e];l.call(t,e)&&_(r,n)&&(void 0!==n||e in t)||(t[e]=n)}function b(t,e){return!!(e=null==e?n:e)&&("number"==typeof t||a.test(t))&&t>-1&&t%1==0&&t<e}function E(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||f)}function _(t,e){return t===e||t!=t&&e!=e}var w=Array.isArray;function O(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}(t.length)&&!function(t){var e=R(t)?d.call(t):"";return e==o||e==i}(t)}function R(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var S,T=(S=function(t,e){if(m||E(e)||O(e))!function(t,e,n,r){n||(n={});for(var o=-1,i=e.length;++o<i;){var a=e[o],u=r?r(n[a],t[a],a,n,t):void 0;g(n,a,void 0===u?t[a]:u)}}(e,function(t){return O(t)?y(t):function(t){if(!E(t))return h(t);var e=[];for(var n in Object(t))l.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}(e),t);else for(var n in e)l.call(e,n)&&g(t,n,e[n])},function(t,e){return e=v(void 0===e?t.length-1:e,0),function(){for(var n=arguments,r=-1,o=v(n.length-e,0),i=Array(o);++r<o;)i[r]=n[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=n[r];return a[e]=i,u(t,this,a)}}((function(t,e){var n=-1,r=e.length,o=r>1?e[r-1]:void 0,i=r>2?e[2]:void 0;for(o=S.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(t,e,n){if(!R(n))return!1;var r=typeof e;return!!("number"==r?O(n)&&b(e,n.length):"string"==r&&e in n)&&_(n[e],t)}(e[0],e[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var a=e[n];a&&S(t,a,n,o)}return t})));t.exports=T},function(t,e,n){(function(t,n){var r=200,o="__lodash_hash_undefined__",i=800,a=16,u=9007199254740991,c="[object Arguments]",s="[object AsyncFunction]",f="[object Function]",l="[object GeneratorFunction]",d="[object Null]",p="[object Object]",h="[object Proxy]",v="[object Undefined]",m=/^\[object .+?Constructor\]$/,y=/^(?:0|[1-9]\d*)$/,g={};g["[object Float32Array]"]=g["[object Float64Array]"]=g["[object Int8Array]"]=g["[object Int16Array]"]=g["[object Int32Array]"]=g["[object Uint8Array]"]=g["[object Uint8ClampedArray]"]=g["[object Uint16Array]"]=g["[object Uint32Array]"]=!0,g[c]=g["[object Array]"]=g["[object ArrayBuffer]"]=g["[object Boolean]"]=g["[object DataView]"]=g["[object Date]"]=g["[object Error]"]=g[f]=g["[object Map]"]=g["[object Number]"]=g[p]=g["[object RegExp]"]=g["[object Set]"]=g["[object String]"]=g["[object WeakMap]"]=!1;var b="object"==typeof t&&t&&t.Object===Object&&t,E="object"==typeof self&&self&&self.Object===Object&&self,_=b||E||Function("return this")(),w=e&&!e.nodeType&&e,O=w&&"object"==typeof n&&n&&!n.nodeType&&n,R=O&&O.exports===w,S=R&&b.process,T=function(){try{var t=O&&O.require&&O.require("util").types;return t||S&&S.binding&&S.binding("util")}catch(t){}}(),C=T&&T.isTypedArray;function j(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var x,L,A,U=Array.prototype,k=Function.prototype,I=Object.prototype,P=_["__core-js_shared__"],M=k.toString,N=I.hasOwnProperty,D=(x=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+x:"",B=I.toString,F=M.call(Object),z=RegExp("^"+M.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),H=R?_.Buffer:void 0,W=_.Symbol,$=_.Uint8Array,K=H?H.allocUnsafe:void 0,G=(L=Object.getPrototypeOf,A=Object,function(t){return L(A(t))}),q=Object.create,X=I.propertyIsEnumerable,J=U.splice,V=W?W.toStringTag:void 0,Y=function(){try{var t=wt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Q=H?H.isBuffer:void 0,Z=Math.max,tt=Date.now,et=wt(_,"Map"),nt=wt(Object,"create"),rt=function(){function t(){}return function(e){if(!It(e))return{};if(q)return q(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function ot(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function it(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function at(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ut(t){var e=this.__data__=new it(t);this.size=e.size}function ct(t,e){var n=xt(t),r=!n&&jt(t),o=!n&&!r&&At(t),i=!n&&!r&&!o&&Mt(t),a=n||r||o||i,u=a?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],c=u.length;for(var s in t)!e&&!N.call(t,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Ot(s,c))||u.push(s);return u}function st(t,e,n){(void 0===n||Ct(t[e],n))&&(void 0!==n||e in t)||dt(t,e,n)}function ft(t,e,n){var r=t[e];N.call(t,e)&&Ct(r,n)&&(void 0!==n||e in t)||dt(t,e,n)}function lt(t,e){for(var n=t.length;n--;)if(Ct(t[n][0],e))return n;return-1}function dt(t,e,n){"__proto__"==e&&Y?Y(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}ot.prototype.clear=function(){this.__data__=nt?nt(null):{},this.size=0},ot.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ot.prototype.get=function(t){var e=this.__data__;if(nt){var n=e[t];return n===o?void 0:n}return N.call(e,t)?e[t]:void 0},ot.prototype.has=function(t){var e=this.__data__;return nt?void 0!==e[t]:N.call(e,t)},ot.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=nt&&void 0===e?o:e,this},it.prototype.clear=function(){this.__data__=[],this.size=0},it.prototype.delete=function(t){var e=this.__data__,n=lt(e,t);return!(n<0)&&(n==e.length-1?e.pop():J.call(e,n,1),--this.size,!0)},it.prototype.get=function(t){var e=this.__data__,n=lt(e,t);return n<0?void 0:e[n][1]},it.prototype.has=function(t){return lt(this.__data__,t)>-1},it.prototype.set=function(t,e){var n=this.__data__,r=lt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},at.prototype.clear=function(){this.size=0,this.__data__={hash:new ot,map:new(et||it),string:new ot}},at.prototype.delete=function(t){var e=_t(this,t).delete(t);return this.size-=e?1:0,e},at.prototype.get=function(t){return _t(this,t).get(t)},at.prototype.has=function(t){return _t(this,t).has(t)},at.prototype.set=function(t,e){var n=_t(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},ut.prototype.clear=function(){this.__data__=new it,this.size=0},ut.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},ut.prototype.get=function(t){return this.__data__.get(t)},ut.prototype.has=function(t){return this.__data__.has(t)},ut.prototype.set=function(t,e){var n=this.__data__;if(n instanceof it){var o=n.__data__;if(!et||o.length<r-1)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new at(o)}return n.set(t,e),this.size=n.size,this};var pt,ht=function(t,e,n){for(var r=-1,o=Object(t),i=n(t),a=i.length;a--;){var u=i[pt?a:++r];if(!1===e(o[u],u,o))break}return t};function vt(t){return null==t?void 0===t?v:d:V&&V in Object(t)?function(t){var e=N.call(t,V),n=t[V];try{t[V]=void 0;var r=!0}catch(t){}var o=B.call(t);r&&(e?t[V]=n:delete t[V]);return o}(t):function(t){return B.call(t)}(t)}function mt(t){return Pt(t)&&vt(t)==c}function yt(t){return!(!It(t)||function(t){return!!D&&D in t}(t))&&(Ut(t)?z:m).test(function(t){if(null!=t){try{return M.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function gt(t){if(!It(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=Rt(t),n=[];for(var r in t)("constructor"!=r||!e&&N.call(t,r))&&n.push(r);return n}function bt(t,e,n,r,o){t!==e&&ht(e,(function(i,a){if(o||(o=new ut),It(i))!function(t,e,n,r,o,i,a){var u=St(t,n),c=St(e,n),s=a.get(c);if(s)return void st(t,n,s);var f=i?i(u,c,n+"",t,e,a):void 0,l=void 0===f;if(l){var d=xt(c),h=!d&&At(c),v=!d&&!h&&Mt(c);f=c,d||h||v?xt(u)?f=u:Pt(E=u)&&Lt(E)?f=function(t,e){var n=-1,r=t.length;e||(e=Array(r));for(;++n<r;)e[n]=t[n];return e}(u):h?(l=!1,f=function(t,e){if(e)return t.slice();var n=t.length,r=K?K(n):new t.constructor(n);return t.copy(r),r}(c,!0)):v?(l=!1,m=c,y=!0?(g=m.buffer,b=new g.constructor(g.byteLength),new $(b).set(new $(g)),b):m.buffer,f=new m.constructor(y,m.byteOffset,m.length)):f=[]:function(t){if(!Pt(t)||vt(t)!=p)return!1;var e=G(t);if(null===e)return!0;var n=N.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&M.call(n)==F}(c)||jt(c)?(f=u,jt(u)?f=function(t){return function(t,e,n,r){var o=!n;n||(n={});var i=-1,a=e.length;for(;++i<a;){var u=e[i],c=r?r(n[u],t[u],u,n,t):void 0;void 0===c&&(c=t[u]),o?dt(n,u,c):ft(n,u,c)}return n}(t,Nt(t))}(u):It(u)&&!Ut(u)||(f=function(t){return"function"!=typeof t.constructor||Rt(t)?{}:rt(G(t))}(c))):l=!1}var m,y,g,b;var E;l&&(a.set(c,f),o(f,c,r,i,a),a.delete(c));st(t,n,f)}(t,e,a,n,bt,r,o);else{var u=r?r(St(t,a),i,a+"",t,e,o):void 0;void 0===u&&(u=i),st(t,a,u)}}),Nt)}function Et(t,e){return Tt(function(t,e,n){return e=Z(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=Z(r.length-e,0),a=Array(i);++o<i;)a[o]=r[e+o];o=-1;for(var u=Array(e+1);++o<e;)u[o]=r[o];return u[e]=n(a),j(t,this,u)}}(t,e,Ft),t+"")}function _t(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function wt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return yt(n)?n:void 0}function Ot(t,e){var n=typeof t;return!!(e=null==e?u:e)&&("number"==n||"symbol"!=n&&y.test(t))&&t>-1&&t%1==0&&t<e}function Rt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||I)}function St(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Tt=function(t){var e=0,n=0;return function(){var r=tt(),o=a-(r-n);if(n=r,o>0){if(++e>=i)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Y?function(t,e){return Y(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:Ft);function Ct(t,e){return t===e||t!=t&&e!=e}var jt=mt(function(){return arguments}())?mt:function(t){return Pt(t)&&N.call(t,"callee")&&!X.call(t,"callee")},xt=Array.isArray;function Lt(t){return null!=t&&kt(t.length)&&!Ut(t)}var At=Q||function(){return!1};function Ut(t){if(!It(t))return!1;var e=vt(t);return e==f||e==l||e==s||e==h}function kt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=u}function It(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Pt(t){return null!=t&&"object"==typeof t}var Mt=C?function(t){return function(e){return t(e)}}(C):function(t){return Pt(t)&&kt(t.length)&&!!g[vt(t)]};function Nt(t){return Lt(t)?ct(t,!0):gt(t)}var Dt,Bt=(Dt=function(t,e,n){bt(t,e,n)},Et((function(t,e){var n=-1,r=e.length,o=r>1?e[r-1]:void 0,i=r>2?e[2]:void 0;for(o=Dt.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(t,e,n){if(!It(n))return!1;var r=typeof e;return!!("number"==r?Lt(n)&&Ot(e,n.length):"string"==r&&e in n)&&Ct(n[e],t)}(e[0],e[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var a=e[n];a&&Dt(t,a,n,o)}return t})));function Ft(t){return t}n.exports=Bt}).call(this,n(2),n(3)(t))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){(function(t){!function(t){var e=function(){try{return!!Symbol.iterator}catch(t){return!1}}(),n=function(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return e&&(n[Symbol.iterator]=function(){return n}),n},r=function(t){return encodeURIComponent(t).replace(/%20/g,"+")},o=function(t){return decodeURIComponent(String(t).replace(/\+/g," "))};(function(){try{var e=t.URLSearchParams;return"a=1"===new e("?a=1").toString()&&"function"==typeof e.prototype.set}catch(t){return!1}})()||function(){var o=function(t){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var e=typeof t;if("undefined"===e);else if("string"===e)""!==t&&this._fromString(t);else if(t instanceof o){var n=this;t.forEach((function(t,e){n.append(e,t)}))}else{if(null===t||"object"!==e)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(t))for(var r=0;r<t.length;r++){var i=t[r];if("[object Array]"!==Object.prototype.toString.call(i)&&2===i.length)throw new TypeError("Expected [string, any] as entry at index "+r+" of URLSearchParams's input");this.append(i[0],i[1])}else for(var a in t)t.hasOwnProperty(a)&&this.append(a,t[a])}},i=o.prototype;i.append=function(t,e){t in this._entries?this._entries[t].push(String(e)):this._entries[t]=[String(e)]},i.delete=function(t){delete this._entries[t]},i.get=function(t){return t in this._entries?this._entries[t][0]:null},i.getAll=function(t){return t in this._entries?this._entries[t].slice(0):[]},i.has=function(t){return t in this._entries},i.set=function(t,e){this._entries[t]=[String(e)]},i.forEach=function(t,e){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var o=0;o<n.length;o++)t.call(e,n[o],r,this)}},i.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),n(t)},i.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),n(t)},i.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),n(t)},e&&(i[Symbol.iterator]=i.entries),i.toString=function(){var t=[];return this.forEach((function(e,n){t.push(r(n)+"="+r(e))})),t.join("&")},t.URLSearchParams=o}();var i=t.URLSearchParams.prototype;"function"!=typeof i.sort&&(i.sort=function(){var t=this,e=[];this.forEach((function(n,r){e.push([r,n]),t._entries||t.delete(r)})),e.sort((function(t,e){return t[0]<e[0]?-1:t[0]>e[0]?1:0})),t._entries&&(t._entries={});for(var n=0;n<e.length;n++)this.append(e[n][0],e[n][1])}),"function"!=typeof i._fromString&&Object.defineProperty(i,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(t){if(this._entries)this._entries={};else{var e=[];this.forEach((function(t,n){e.push(n)}));for(var n=0;n<e.length;n++)this.delete(e[n])}var r,i=(t=t.replace(/^\?/,"")).split("&");for(n=0;n<i.length;n++)r=i[n].split("="),this.append(o(r[0]),r.length>1?o(r[1]):"")}})}(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(t){if(function(){try{var e=new t.URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}()||function(){var e=t.URL,n=function(e,n){"string"!=typeof e&&(e=String(e));var r,o=document;if(n&&(void 0===t.location||n!==t.location.href)){(r=(o=document.implementation.createHTMLDocument("")).createElement("base")).href=n,o.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(t){throw new Error("URL unable to set base "+n+" due to "+t)}}var i=o.createElement("a");if(i.href=e,r&&(o.body.appendChild(i),i.href=i.href),":"===i.protocol||!/:/.test(i.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:i});var a=new t.URLSearchParams(this.search),u=!0,c=!0,s=this;["append","delete","set"].forEach((function(t){var e=a[t];a[t]=function(){e.apply(a,arguments),u&&(c=!1,s.search=a.toString(),c=!0)}})),Object.defineProperty(this,"searchParams",{value:a,enumerable:!0});var f=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==f&&(f=this.search,c&&(u=!1,this.searchParams._fromString(this.search),u=!0))}})},r=n.prototype;["hash","host","hostname","port","protocol"].forEach((function(t){!function(t){Object.defineProperty(r,t,{get:function(){return this._anchorElement[t]},set:function(e){this._anchorElement[t]=e},enumerable:!0})}(t)})),Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(t){this._anchorElement.search=t,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(r,{toString:{get:function(){var t=this;return function(){return t.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(t){this._anchorElement.href=t,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(t){this._anchorElement.pathname=t},enumerable:!0},origin:{get:function(){var t={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],e=this._anchorElement.port!=t&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(e?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(t){},enumerable:!0},username:{get:function(){return""},set:function(t){},enumerable:!0}}),n.createObjectURL=function(t){return e.createObjectURL.apply(e,arguments)},n.revokeObjectURL=function(t){return e.revokeObjectURL.apply(e,arguments)},t.URL=n}(),void 0!==t.location&&!("origin"in t.location)){var e=function(){return t.location.protocol+"//"+t.location.hostname+(t.location.port?":"+t.location.port:"")};try{Object.defineProperty(t.location,"origin",{get:e,enumerable:!0})}catch(n){setInterval((function(){t.location.origin=e()}),100)}}}(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)}).call(this,n(2))},function(t,e,n){"use strict";n.r(e);var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function o(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function u(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){t.done?o(t.value):new n((function(e){e(t.value)})).then(a,u)}c((r=r.apply(t,e||[])).next())}))}function i(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var a,u=6e4;function c(t,e,n){var r=!n||void 0===n.leading||n.leading,o=!n||void 0===n.trailing||n.trailing,i=!1,a=!1;return function(){var n=this;i?a=!0:(r?t.apply(this):a=!0,i=!0,setTimeout((function(){o&&a&&t.apply(n),i=!1,a=!1}),e))}}function s(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):(1e7+"-1000-4000-8000-100000000000").replace(/[018]/g,s)}function f(t){return 0!==t&&100*Math.random()<=t}function l(t){return+(1e6*t).toFixed(0)}function d(t){var e={};return Object.keys(t).forEach((function(n){var r;e[(r=n,r.replace(/[A-Z]/g,(function(t,e){return(0!==e?"_":"")+t.toLowerCase()})).replace(/-/g,"_"))]=function t(e){if(Array.isArray(e))return e.map((function(e){return t(e)}));if("object"==typeof e)return d(e);return e}(t[n])})),e}function p(){}function h(t,e,n){if(null==t)return JSON.stringify(t);var r=[!1,void 0];v(t)&&(r=[!0,t.toJSON],delete t.toJSON);var o,i,a=[!1,void 0];"object"==typeof t&&v(o=Object.getPrototypeOf(t))&&(a=[!0,o.toJSON],delete o.toJSON);try{i=JSON.stringify(t,void 0,n)}catch(t){i="<error: unable to serialize object>"}finally{r[0]&&(t.toJSON=r[1]),a[0]&&(o.toJSON=a[1])}return i}function v(t){return"object"==typeof t&&null!==t&&t.hasOwnProperty("toJSON")}function m(t,e){return 0===t.indexOf(e)}function y(t,e){return-1!==t.indexOf(e)}function g(t){return"number"==typeof t&&t>=0&&t<=100}function b(t){return t-performance.timing.navigationStart}!function(t){t.XHR="xhr",t.BEACON="beacon",t.FETCH="fetch",t.CSS="css",t.JS="js",t.IMAGE="image",t.FONT="font",t.MEDIA="media",t.OTHER="other"}(a||(a={}));var E={isCollectingError:!0,maxErrorsByMinute:1e4,maxInternalMonitoringMessagesPerPage:15,resourceSampleRate:100,sampleRate:100,requestErrorResponseLengthLimit:32768,flushTimeout:3e4,maxBatchSize:50,maxMessageSize:262144,batchBytesLimit:16384};function _(t,e,n){var r="us"===e.datacenter?"com":"eu",o="production"===e.env?"datadoghq."+r:"datad0g."+r,i="version:"+e.version;return"https://"+t+"-http-intake.logs."+o+"/v1/input/"+e.clientToken+"?ddsource="+(n||"browser")+"&ddtags="+i}var w=n(0),O=n.n(w),R="?",S=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function T(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var C=function(){var t,e,n,r,o,i,a=[];function u(t,e,n){var r;for(var o in a)if(T(a,o))try{a[o](t,e,n)}catch(t){r=t}if(r)throw r}function c(t,r,o,i,a){if(e)j.augmentStackTraceWithInitialElement(e,r,o,""+t),f();else if(a)u(j(a),!0,a);else{var c,s={url:r,column:i,line:o},l=t;if("[object String]"==={}.toString.call(t)){var d=l.match(S);d&&(c=d[1],l=d[2])}u({name:c,message:l,stack:[s]},!0)}return!!n&&n.apply(this,arguments)}function s(t){var e=t.reason||"Empty reason";u(j(e),!0,e)}function f(){var n=e,r=t;e=void 0,t=void 0,u(n,!1,r)}function l(n){if(e){if(t===n)return;f()}var r=j(n);throw e=r,t=n,setTimeout((function(){t===n&&f()}),r.incomplete?2e3:0),n}return l.subscribe=function(t){!function(){if(r)return;n=window.onerror,window.onerror=P(c),r=!0}(),function(){if(i)return;o=null!==window.onunhandledrejection?window.onunhandledrejection:void 0,window.onunhandledrejection=P(s),i=!0}(),a.push(t)},l.unsubscribe=function(t){for(var e=a.length-1;e>=0;e-=1)a[e]===t&&a.splice(e,1);0===a.length&&(r&&(window.onerror=n,r=!1),i&&(window.onunhandledrejection=o,i=!1))},l.traceKitWindowOnError=c,l}(),j=function(){var t=!1;function e(t){if(t.stack){for(var e,n,r,o,i=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,u=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,c=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,s=/\((\S*)(?::(\d+))(?::(\d+))\)/,f=t.stack.split("\n"),l=[],d=0,p=f.length;d<p;d+=1){if(i.exec(f[d])){var h=(r=i.exec(f[d]))[2]&&0===r[2].indexOf("native");e=r[2]&&0===r[2].indexOf("eval"),n=s.exec(r[2]),e&&n&&(r[2]=n[1],r[3]=n[2],r[4]=n[3]),o={args:h?[r[2]]:[],column:r[4]?+r[4]:void 0,func:r[1]||R,line:r[3]?+r[3]:void 0,url:h?void 0:r[2]}}else if(u.exec(f[d]))o={args:[],column:(r=u.exec(f[d]))[4]?+r[4]:void 0,func:r[1]||R,line:+r[3],url:r[2]};else{if(!a.exec(f[d]))continue;e=(r=a.exec(f[d]))[3]&&r[3].indexOf(" > eval")>-1,n=c.exec(r[3]),e&&n?(r[3]=n[1],r[4]=n[2],r[5]=void 0):0!==d||r[5]||void 0===t.columnNumber||(l[0].column=t.columnNumber+1),o={args:r[2]?r[2].split(","):[],column:r[5]?+r[5]:void 0,func:r[1]||R,line:r[4]?+r[4]:void 0,url:r[3]}}!o.func&&o.line&&(o.func=R),l.push(o)}if(l.length)return{stack:l,message:t.message,name:t.name}}}function n(t,e,n,r){var o={url:e,line:n?+n:void 0};if(o.url&&o.line){t.incomplete=!1;var i=t.stack;if(i.length>0&&i[0].url===o.url){if(i[0].line===o.line)return!1;if(!i[0].line&&i[0].func===o.func)return i[0].line=o.line,i[0].context=o.context,!1}return i.unshift(o),t.partial=!0,!0}return t.incomplete=!0,!1}function r(t,e){for(var o,i,a=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,u=[],c={},s=!1,f=r.caller;f&&!s;f=f.caller)f!==j&&f!==C&&(i={args:[],column:void 0,func:R,line:void 0,url:void 0},o=a.exec(f.toString()),f.name?i.func=f.name:o&&(i.func=o[1]),void 0===i.func&&(i.func=o?o.input.substring(0,o.input.indexOf("{")):void 0),c[""+f]?s=!0:c[""+f]=!0,u.push(i));e&&u.splice(0,e);var l={stack:u,message:t.message,name:t.name};return n(l,t.sourceURL||t.fileName,t.line||t.lineNumber,t.message||t.description),l}function o(n,o){var i,a=void 0===o?0:+o;try{if(i=function(t){var e=t.stacktrace;if(e){for(var n,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,o=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,i=e.split("\n"),a=[],u=0;u<i.length;u+=2){var c=void 0;r.exec(i[u])?c={args:[],column:void 0,func:(n=r.exec(i[u]))[3],line:+n[1],url:n[2]}:o.exec(i[u])&&(c={args:(n=o.exec(i[u]))[5]?n[5].split(","):[],column:+n[2],func:n[3]||n[4],line:+n[1],url:n[6]}),c&&(!c.func&&c.line&&(c.func=R),c.context=[i[u+1]],a.push(c))}if(a.length)return{stack:a,message:t.message,name:t.name}}}(n))return i}catch(e){if(t)throw e}try{if(i=e(n))return i}catch(e){if(t)throw e}try{if(i=function(t){var e=t.message.split("\n");if(!(e.length<4)){var n,r=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,o=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,i=/^\s*Line (\d+) of function script\s*$/i,a=[],u=window&&window.document&&window.document.getElementsByTagName("script"),c=[];for(var s in u)T(u,s)&&!u[s].src&&c.push(u[s]);for(var f=2;f<e.length;f+=2){var l=void 0;if(r.exec(e[f]))l={args:[],column:void 0,func:(n=r.exec(e[f]))[3],line:+n[1],url:n[2]};else if(o.exec(e[f]))l={args:[],column:void 0,func:(n=o.exec(e[f]))[4],line:+n[1],url:n[3]};else if(i.exec(e[f])){n=i.exec(e[f]),l={url:window.location.href.replace(/#.*$/,""),args:[],column:void 0,func:"",line:+n[1]}}l&&(l.func||(l.func=R),l.context=[e[f+1]],a.push(l))}if(a.length)return{stack:a,message:e[0],name:t.name}}}(n))return i}catch(e){if(t)throw e}try{if(i=r(n,a+1))return i}catch(e){if(t)throw e}return{message:n.message,name:n.name,stack:[]}}return o.augmentStackTraceWithInitialElement=n,o.computeStackTraceFromStackProp=e,o.ofCaller=function(t){var e=1+(void 0===t?0:+t);try{throw new Error}catch(t){return j(t,e+1)}},o}();var x,L=n(1),A=n.n(L),U=function(){function t(t,e){this.endpointUrl=t,this.bytesLimit=e}return t.prototype.send=function(t,e){if(navigator.sendBeacon&&e<this.bytesLimit&&navigator.sendBeacon(this.endpointUrl,t))return;var n=new XMLHttpRequest;n.open("POST",this.endpointUrl,!0),n.send(t)},t}(),k=function(){function t(t,e,n,r,o,i){this.request=t,this.maxSize=e,this.bytesLimit=n,this.maxMessageSize=r,this.flushTimeout=o,this.contextProvider=i,this.beforeFlushOnUnloadHandlers=[],this.pushOnlyBuffer=[],this.upsertBuffer={},this.bufferBytesSize=0,this.bufferMessageCount=0,this.flushOnVisibilityHidden(),this.flushPeriodically()}return t.prototype.add=function(t){this.addOrUpdate(t)},t.prototype.upsert=function(t,e){this.addOrUpdate(t,e)},t.prototype.beforeFlushOnUnload=function(t){this.beforeFlushOnUnloadHandlers.push(t)},t.prototype.flush=function(){if(0!==this.bufferMessageCount){var t=this.pushOnlyBuffer.concat((e=this.upsertBuffer,n=[],Object.keys(e).forEach((function(t){n.push(e[t])})),n));this.request.send(t.join("\n"),this.bufferBytesSize),this.pushOnlyBuffer=[],this.upsertBuffer={},this.bufferBytesSize=0,this.bufferMessageCount=0}var e,n},t.prototype.addOrUpdate=function(t,e){var n=this.process(t),r=n.processedMessage,o=n.messageBytesSize;o>=this.maxMessageSize?console.warn("Discarded a message whose size was bigger than the maximum allowed size "+this.maxMessageSize+"KB."):(this.hasMessageFor(e)&&this.remove(e),this.willReachedBytesLimitWith(o)&&this.flush(),this.push(r,o,e),this.isFull()&&this.flush())},t.prototype.process=function(t){var e=h(A()({},this.contextProvider(),t));return{processedMessage:e,messageBytesSize:this.sizeInBytes(e)}},t.prototype.push=function(t,e,n){this.bufferMessageCount>0&&(this.bufferBytesSize+=1),void 0!==n?this.upsertBuffer[n]=t:this.pushOnlyBuffer.push(t),this.bufferBytesSize+=e,this.bufferMessageCount+=1},t.prototype.remove=function(t){var e=this.upsertBuffer[t];delete this.upsertBuffer[t];var n=this.sizeInBytes(e);this.bufferBytesSize-=n,this.bufferMessageCount-=1,this.bufferMessageCount>0&&(this.bufferBytesSize-=1)},t.prototype.hasMessageFor=function(t){return void 0!==t&&void 0!==this.upsertBuffer[t]},t.prototype.willReachedBytesLimitWith=function(t){return this.bufferBytesSize+t+1>=this.bytesLimit},t.prototype.isFull=function(){return this.bufferMessageCount===this.maxSize||this.bufferBytesSize>=this.bytesLimit},t.prototype.sizeInBytes=function(t){return~-encodeURI(t).split(/%..|./).length},t.prototype.flushPeriodically=function(){var t=this;setTimeout((function(){t.flush(),t.flushPeriodically()}),this.flushTimeout)},t.prototype.flushOnVisibilityHidden=function(){var t=this;navigator.sendBeacon&&(window.addEventListener("beforeunload",P((function(){t.beforeFlushOnUnloadHandlers.forEach((function(t){return t()}))}))),document.addEventListener("visibilitychange",P((function(){"hidden"===document.visibilityState&&t.flush()}))),window.addEventListener("beforeunload",P((function(){return t.flush()}))))},t}();!function(t){t.info="info",t.error="error"}(x||(x={}));var I={maxMessagesPerPage:0,sentMessageCount:0};function P(t){return function(){try{return t.apply(this,arguments)}catch(t){F(t);try{N(t)}catch(t){F(t)}}}}function M(t){D({message:t,status:x.info})}function N(t){D(r({},function(t){if(t instanceof Error){var e=j(t);return{error:{kind:e.name,stack:Q(e)},message:e.message}}return{error:{stack:"Not an instance of error"},message:"Uncaught "+h(t)}}(t),{status:x.error}))}function D(t){I.batch&&I.sentMessageCount<I.maxMessagesPerPage&&(I.sentMessageCount+=1,I.batch.add(t))}function B(t){I.debugMode=t}function F(t){I.debugMode&&console.warn("[INTERNAL ERROR]",t)}var z,H,W,$,K,G=function(){function t(){this.observers=[]}return t.prototype.subscribe=function(t){this.observers.push(t)},t.prototype.notify=function(t){this.observers.forEach((function(e){return e(t)}))},t}();n(4);function q(){return H||(function(t){var e=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=P((function(t,n){return this._datadog_xhr={method:t,url:n},e.apply(this,arguments)}));var n=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.send=function(e){var r=this,o=performance.now(),i=function(){t.notify({startTime:o,duration:performance.now()-o,method:r._datadog_xhr.method,response:r.response,status:r.status,traceId:J(),type:z.XHR,url:X(r._datadog_xhr.url)})};return this.addEventListener("loadend",P(i)),n.apply(this,arguments)}}(H=new G),function(t){if(!window.fetch)return;var e=window.fetch;window.fetch=P((function(n,r){var a=this,u=r&&r.method||"object"==typeof n&&n.method||"GET",c=performance.now(),s=function(e){return o(a,void 0,void 0,(function(){var r,o,a,s;return i(this,(function(i){switch(i.label){case 0:return r=performance.now()-c,o=X("object"==typeof n&&n.url||n),"stack"in e||e instanceof Error?(a=j(e),t.notify({duration:r,method:u,startTime:c,url:o,response:Q(a),status:0,traceId:J(),type:z.FETCH}),[3,3]):[3,1];case 1:return"status"in e?[4,e.clone().text()]:[3,3];case 2:s=i.sent(),t.notify({duration:r,method:u,startTime:c,url:o,response:s,responseType:e.type,status:e.status,traceId:J(),type:z.FETCH}),i.label=3;case 3:return[2]}}))}))},f=e.call(this,n,r);return f.then(P(s),P(s)),f}))}(H)),H}function X(t){return new URL(t,window.location.origin).href}function J(){return"ddtrace"in window&&window.ddtrace.tracer.scope().active()?window.ddtrace.tracer.scope().active().context().toTraceId():void 0}function V(t){var e=new G;t.isCollectingError&&(!function(t,e,n){n.subscribe((function(n){(function(t){return 0===t.status&&"opaque"!==t.responseType}(n)||function(t){return t.status>=500}(n))&&e.notify({context:{error:{origin:W.NETWORK,stack:Z(n.response,t)||"Failed to load"},http:{method:n.method,status_code:n.status,url:n.url}},message:tt(n.type)+" error "+n.method+" "+n.url})}))}(t,e,q()),function(t){$=console.error,console.error=P((function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];$.apply(console,[e].concat(n)),t.notify({context:{error:{origin:W.CONSOLE}},message:["console error:",e].concat(n).map(Y).join(" ")})}))}(e),function(t){K=function(e,n,r){t.notify(function(t,e){var n,r;void 0!==t.message||e instanceof Error?(n=t.message||"Empty message",r=Q(t)):(n="Uncaught "+h(e),r="No stack, consider using an instance of Error");return{message:n,context:{error:{stack:r,kind:t.name,origin:W.SOURCE}}}}(e,r))},C.subscribe(K)}(e));return function(t,e){var n=0,r=new G;return e.subscribe((function(e){n<t.maxErrorsByMinute?(n+=1,r.notify(e)):n===t.maxErrorsByMinute&&(n+=1,r.notify({context:{error:{origin:W.AGENT}},message:"Reached max number of errors by minute: "+t.maxErrorsByMinute}))})),setInterval((function(){return n=0}),u),r}(t,e)}function Y(t){return"string"==typeof t?t:t instanceof Error?Q(j(t)):h(t,0,2)}function Q(t){var e=(t.name||"Error")+": "+t.message;return t.stack.forEach((function(t){var n="?"===t.func?"<anonymous>":t.func,r=t.args&&t.args.length>0?"("+t.args.join(", ")+")":"",o=t.line?":"+t.line:"",i=t.line&&t.column?":"+t.column:"";e+="\n at "+n+r+" @ "+t.url+o+i})),e}function Z(t,e){return t&&t.length>e.requestErrorResponseLengthLimit?t.substring(0,e.requestErrorResponseLengthLimit)+"...":t}function tt(t){return z.XHR===t?"XHR":"Fetch"}!function(t){t.FETCH="fetch",t.XHR="xhr"}(z||(z={})),function(t){t.AGENT="agent",t.CONSOLE="console",t.NETWORK="network",t.SOURCE="source",t.LOGGER="logger"}(W||(W={}));var et=1e3;function nt(t){var e,n,r=!1,o=function(){r=!0,window.clearTimeout(e),e=window.setTimeout((function(){r=!1}),et)};return{get:function(){return r?n:(n=ot(t),o(),n)},set:function(e,r){rt(t,e,r),n=e,o()}}}function rt(t,e,n){var r=new Date;r.setTime(r.getTime()+n);var o="expires="+r.toUTCString();document.cookie=t+"="+e+";"+o+";path=/"}function ot(t){var e=document.cookie.match("(^|;)\\s*"+t+"\\s*=\\s*([^;]+)");return e?e.pop():void 0}function it(t){console.warn("'"+t+"' not yet available, please call '.init()' first.")}function at(t,e){var n=function(t,e){var n={clientToken:t.clientToken,datacenter:t.datacenter||e.datacenter,env:e.env,version:e.version},o=r({logsEndpoint:_("browser",n),rumEndpoint:_("rum",n),traceEndpoint:_("public-trace",n)},E);return t.internalMonitoringApiKey&&(o.internalMonitoringEndpoint=_("browser",n,"browser-agent-internal-monitoring")),"isCollectingError"in t&&(o.isCollectingError=!!t.isCollectingError),"sampleRate"in t&&(o.sampleRate=t.sampleRate),"resourceSampleRate"in t&&(o.resourceSampleRate=t.resourceSampleRate),"e2e-test"===n.env&&(void 0!==t.internalMonitoringEndpoint&&(o.internalMonitoringEndpoint=t.internalMonitoringEndpoint),void 0!==t.logsEndpoint&&(o.logsEndpoint=t.logsEndpoint),void 0!==t.rumEndpoint&&(o.rumEndpoint=t.rumEndpoint)),o}(t,e);return function(t){if(t.internalMonitoringEndpoint){var e=new k(new U(t.internalMonitoringEndpoint,t.batchBytesLimit),t.maxBatchSize,t.batchBytesLimit,t.maxMessageSize,t.flushTimeout,(function(){return{date:(new Date).getTime(),view:{referrer:document.referrer,url:window.location.href}}}));O()(I,{batch:e,maxMessagesPerPage:t.maxInternalMonitoringMessagesPerPage,sentMessageCount:0})}}(n),{configuration:n,errorObservable:V(n)}}function ut(){return function(){if(void 0===document.cookie||null===document.cookie)return!1;try{return rt("dd_rum_test","test",1e3),"test"===ot("dd_rum_test")}catch(t){return console.error(t),!1}}()?"file:"!==window.location.protocol||(console.error("Execution is not allowed in the current context."),!1):(console.error("Cookies are not authorized, we will not send any data."),!1)}var ct="_dd",st=15*u,ft=[];function lt(t,e){var n=nt(ct),r=nt(t),o=new G,i=n.get(),a=c((function(){var t=e(r.get()),a=t.type,u=t.isTracked;r.set(a,st),u&&(n.get()?n.set(n.get(),st):n.set(s(),st),i!==n.get()&&(i=n.get(),o.notify()))}),et);return a(),function(t){var e={capture:!0,passive:!0};["click","touchstart","keydown","scroll"].forEach((function(n){document.addEventListener(n,t,e),ft.push((function(){return document.removeEventListener(n,t,e)}))}))}(a),{getId:function(){return n.get()},getType:function(){return r.get()},renewObservable:o}}(function(){function t(t){var e=this;this.requests=[],this.pendingFetch=0,this.whenAllCompleteFn=p,t.subscribe((function(t){e.requests.push(t),e.pendingFetch-=1,0===e.pendingFetch&&setTimeout((function(){e.whenAllCompleteFn(e.requests)}))}))}t.prototype.whenAllComplete=function(t){this.whenAllCompleteFn=t},t.prototype.getStub=function(){var t=this;return function(){var e,n;t.pendingFetch+=1;var a=new Promise((function(t,r){e=t,n=r}));return a.resolveWith=function(n){return o(t,void 0,void 0,(function(){var t=this;return i(this,(function(a){return[2,e(r({},n,{clone:function(){return{text:function(){return o(t,void 0,void 0,(function(){return i(this,(function(t){return[2,n.responseText]}))}))}}}}))]}))}))},a.rejectWith=function(e){return o(t,void 0,void 0,(function(){return i(this,(function(t){return[2,n(e)]}))}))},a}}})(),function(){function t(){}t.prototype.fakeEntry=function(t,e){var n=function(){return[t]};this.instance.callback({getEntries:n,getEntriesByName:n,getEntriesByType:function(t){return t===e?n():[]}})},t.prototype.getStub=function(){var t,e=this;return(t=function(){function t(t){this.callback=t,e.instance=this}return t.prototype.observe=function(t){},t}()).supportedEntryTypes=["navigation"],t}}();var dt,pt={datacenter:"us",env:"production",version:"1.2.10"};!function(t){t[t.ERROR_COLLECTED=0]="ERROR_COLLECTED",t[t.PERFORMANCE_ENTRY_COLLECTED=1]="PERFORMANCE_ENTRY_COLLECTED",t[t.USER_ACTION_COLLECTED=2]="USER_ACTION_COLLECTED",t[t.REQUEST_COLLECTED=3]="REQUEST_COLLECTED",t[t.SESSION_RENEWED=4]="SESSION_RENEWED",t[t.RESOURCE_ADDED_TO_BATCH=5]="RESOURCE_ADDED_TO_BATCH"}(dt||(dt={}));var ht=function(){function t(){this.callbacks={}}return t.prototype.notify=function(t,e){var n=this.callbacks[t];n&&n.forEach((function(t){return t(e)}))},t.prototype.subscribe=function(t,e){var n=this.callbacks[t];n?n.push(e):this.callbacks[t]=[e]},t}();function vt(){return void 0!==window.performance&&"getEntries"in performance}function mt(t,e){(vt()&&yt(e,t,performance.getEntries()),window.PerformanceObserver)&&(new PerformanceObserver(P((function(n){return yt(e,t,n.getEntries())}))).observe({entryTypes:["resource","navigation","paint","longtask"]}),vt()&&"addEventListener"in performance&&performance.addEventListener("resourcetimingbufferfull",(function(){performance.clearResourceTimings()})));window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("navigation")||function(t){function e(){var e={domComplete:b(performance.timing.domComplete),domContentLoadedEventEnd:b(performance.timing.domContentLoadedEventEnd),domInteractive:b(performance.timing.domInteractive),entryType:"navigation",loadEventEnd:b(performance.timing.loadEventEnd)};t(e)}if("complete"===document.readyState)e();else{var n=function(){window.removeEventListener("load",n),setTimeout(P(e))};window.addEventListener("load",n)}}((function(n){yt(e,t,[n])}))}function yt(t,e,n){function r(t){e.notify(dt.PERFORMANCE_ENTRY_COLLECTED,t)}t.isTrackedWithResource()&&n.filter((function(t){return"resource"===t.entryType})).forEach(r),n.filter((function(t){return"navigation"===t.entryType})).filter((function(t){return t.loadEventEnd>0})).forEach(r),n.filter((function(t){return"paint"===t.entryType})).forEach(r),n.filter((function(t){return"longtask"===t.entryType})).forEach(r)}function gt(t){if(performance&&"getEntriesByName"in performance){var e,n=performance.getEntriesByName(t.url,"resource").filter((function(e){return n=e,r=t.startTime,o=bt(t),n.startTime>=r&&bt(n)<=o;var n,r,o}));return 1===n.length?n[0]:2===n.length&&bt((e=n)[0])<=e[1].startTime?n[1]:void 0}}function bt(t){return t.startTime+t.duration}var Et,_t=[[a.XHR,function(t){return"xmlhttprequest"===t}],[a.FETCH,function(t){return"fetch"===t}],[a.BEACON,function(t){return"beacon"===t}],[a.CSS,function(t,e){return null!==e.match(/\.css$/i)}],[a.JS,function(t,e){return null!==e.match(/\.js$/i)}],[a.IMAGE,function(t,e){return y(["image","img","icon"],t)||null!==e.match(/\.(gif|jpg|jpeg|tiff|png|svg)$/i)}],[a.FONT,function(t,e){return null!==e.match(/\.(woff|eot|woff2|ttf)$/i)}],[a.MEDIA,function(t,e){return y(["audio","video"],t)||null!==e.match(/\.(mp3|mp4)$/i)}]];function wt(t){if(t&&Rt(t))return{connect:{duration:l(t.connectEnd-t.connectStart),start:l(t.connectStart)},dns:{duration:l(t.domainLookupEnd-t.domainLookupStart),start:l(t.domainLookupStart)},download:{duration:l(t.responseEnd-t.responseStart),start:l(t.responseStart)},firstByte:{duration:l(t.responseStart-t.requestStart),start:l(t.requestStart)},redirect:t.redirectStart>0?{duration:l(t.redirectEnd-t.redirectStart),start:l(t.redirectStart)}:void 0,ssl:t.secureConnectionStart>0?{duration:l(t.connectEnd-t.secureConnectionStart),start:l(t.secureConnectionStart)}:void 0}}function Ot(t){return t&&Rt(t)?t.decodedBodySize:void 0}function Rt(t){return t.responseStart>0}function St(t,e){return t&&!function(t,e){return m(t,e.logsEndpoint)||m(t,e.rumEndpoint)||m(t,e.traceEndpoint)||e.internalMonitoringEndpoint&&m(t,e.internalMonitoringEndpoint)}(t,e)}var Tt,Ct,jt,xt,Lt,At=3e3;function Ut(t,e,n,o,i){var a=c(P((function(){return It(o)})),At,{leading:!1});kt(t,n,o),function(t,e,n){var r=history.pushState;history.pushState=P((function(){r.apply(this,arguments),Mt(t,e,n)}));var o=history.replaceState;history.replaceState=P((function(){o.apply(this,arguments),Mt(t,e,n)})),window.addEventListener("popstate",(function(){Mt(t,e,n)}))}(t,n,o),function(t,e){t.subscribe(dt.PERFORMANCE_ENTRY_COLLECTED,(function(t){if("navigation"===t.entryType){var n=t;!function(t){t.loadEventEnd>864e5&&M("Got an abnormal load event in a PerformanceNavigationTiming entry!\nSession Id: "+Et.sessionId+"\nView Id: "+Et.id+"\nView start date: "+Tt+"\nDocument Version: "+jt+"\nEntry: "+JSON.stringify(t)+"\nPrevious measures: "+JSON.stringify(xt))}(n),xt=r({},xt,{domComplete:l(n.domComplete),domContentLoaded:l(n.domContentLoadedEventEnd),domInteractive:l(n.domInteractive),loadEventEnd:l(n.loadEventEnd)}),e()}else if("paint"===t.entryType&&"first-contentful-paint"===t.name){xt=r({},xt,{firstContentfulPaint:l(t.startTime)}),e()}})),t.subscribe(dt.ERROR_COLLECTED,(function(){xt.errorCount+=1,e()})),t.subscribe(dt.USER_ACTION_COLLECTED,(function(){xt.userActionCount+=1,e()})),t.subscribe(dt.PERFORMANCE_ENTRY_COLLECTED,(function(t){"longtask"===t.entryType&&(xt.longTaskCount+=1,e())})),t.subscribe(dt.RESOURCE_ADDED_TO_BATCH,(function(){xt.resourceCount+=1,e()}))}(e,a),function(t,e,n,r){e.subscribe(dt.SESSION_RENEWED,(function(){It(r),kt(t,n,r)}))}(t,e,n,o),i((function(){return It(o)}))}function kt(t,e,n){Et={id:s(),location:r({},t),sessionId:e.getId()},Tt=(new Date).getTime(),Ct=performance.now(),jt=1,xt={errorCount:0,longTaskCount:0,resourceCount:0,userActionCount:0},Pt(n)}function It(t){jt+=1,Pt(t)}function Pt(t){t({date:Tt,duration:l(performance.now()-Ct),evt:{category:Lt.VIEW},rum:{documentVersion:jt},view:{measures:xt}},Et.id)}function Mt(t,e,n){var r,o;r=Et.location,o=t,r.pathname!==o.pathname&&(It(n),kt(t,e,n))}function Nt(t,e,n,o){var i={},u=function(t,e,n,r){var o=new k(new U(t.rumEndpoint,t.batchBytesLimit),t.maxBatchSize,t.batchBytesLimit,t.maxMessageSize,t.flushTimeout,(function(){return A()(d(n()),r())}));return{addRumEvent:function(t){e.isTracked()&&o.add(d(t))},addUserEvent:function(t){e.isTracked()&&o.add(t)},beforeFlushOnUnload:function(t){return o.beforeFlushOnUnload(t)},upsertRumEvent:function(t,n){e.isTracked()&&o.upsert(d(t),n)}}}(n,o,(function(){return{applicationId:t,date:(new Date).getTime(),sessionId:Et.sessionId,view:{id:Et.id,referrer:document.referrer,url:Et.location.href}}}),(function(){return i}));return Ut(window.location,e,o,u.upsertRumEvent,u.beforeFlushOnUnload),function(t,e){t.subscribe(dt.ERROR_COLLECTED,(function(t){var n=t.message,o=t.context;e(r({message:n,evt:{category:Lt.ERROR}},o))}))}(e,u.addRumEvent),function(t,e,n,r){e.subscribe(dt.REQUEST_COLLECTED,(function(o){if(n.isTrackedWithResource()&&St(o.url,t)){var i=gt(o),u=o.type===z.XHR?a.XHR:a.FETCH;r({duration:l(i?i.duration:o.duration),evt:{category:Lt.RESOURCE},http:{method:o.method,performance:wt(i),statusCode:o.status,url:o.url},network:{bytesWritten:Ot(i)},resource:{kind:u},traceId:o.traceId}),e.notify(dt.RESOURCE_ADDED_TO_BATCH)}}))}(n,e,o,u.addRumEvent),function(t,e,n){e.subscribe(dt.PERFORMANCE_ENTRY_COLLECTED,(function(r){switch(r.entryType){case"resource":!function(t,e,n,r){if(!St(e.name,t))return;var o=function(t){var e;try{e=new URL(t.name)}catch(e){M('Failed to construct URL for "'+t.name+'"')}if(void 0!==e)for(var n=e.pathname,r=0,o=_t;r<o.length;r++){var i=o[r],u=i[0];if((0,i[1])(t.initiatorType,n))return u}return a.OTHER}(e);if(y([a.XHR,a.FETCH],o))return;n({duration:l(e.duration),evt:{category:Lt.RESOURCE},http:{performance:wt(e),url:e.name},network:{bytesWritten:Ot(e)},resource:{kind:o}}),r.notify(dt.RESOURCE_ADDED_TO_BATCH)}(t,r,n,e);break;case"longtask":!function(t,e){e({duration:l(t.duration),evt:{category:Lt.LONG_TASK}})}(r,n)}}))}(n,e,u.addRumEvent),function(t,e){t.subscribe(dt.USER_ACTION_COLLECTED,(function(t){var n=t.name,o=t.context;e(r({},o,{evt:{name:n,category:Lt.USER_ACTION}}))}))}(e,u.addUserEvent),{addRumGlobalContext:P((function(t,e){i[t]=e})),addUserAction:P((function(t,n){e.notify(dt.USER_ACTION_COLLECTED,{name:t,context:n})})),getInternalContext:P((function(){return{application_id:t,session_id:Et.sessionId,view:{id:Et.id}}})),setRumGlobalContext:P((function(t){i=t}))}}!function(t){t.USER_ACTION="user_action",t.ERROR="error",t.LONG_TASK="long_task",t.VIEW="view",t.RESOURCE="resource"}(Lt||(Lt={}));var Dt,Bt="_dd_r";function Ft(t,e){var n=lt(Bt,(function(e){return function(t,e){var n;r=e,n=r===Dt.NOT_TRACKED||r===Dt.TRACKED_WITH_RESOURCES||r===Dt.TRACKED_WITHOUT_RESOURCES?e:f(t.sampleRate)?f(t.resourceSampleRate)?Dt.TRACKED_WITH_RESOURCES:Dt.TRACKED_WITHOUT_RESOURCES:Dt.NOT_TRACKED;var r;return{isTracked:zt(n),type:n}}(t,e)}));return n.renewObservable.subscribe((function(){e.notify(dt.SESSION_RENEWED)})),{getId:n.getId,isTracked:function(){return zt(n.getType())},isTrackedWithResource:function(){return n.getType()===Dt.TRACKED_WITH_RESOURCES}}}function zt(t){return t===Dt.TRACKED_WITH_RESOURCES||t===Dt.TRACKED_WITHOUT_RESOURCES}!function(t){t.NOT_TRACKED="0",t.TRACKED_WITH_RESOURCES="1",t.TRACKED_WITHOUT_RESOURCES="2"}(Dt||(Dt={})),n.d(e,"datadogRum",(function(){return Wt}));var Ht,Wt=(Ht=r({},{init:function(t){it("core.init")},addRumGlobalContext:function(t,e){it("addRumGlobalContext")},setRumGlobalContext:function(t){it("setRumGlobalContext")},addUserAction:function(t,e){it("addUserAction")},getInternalContext:function(){it("getInternalContext")}}),Object.defineProperty(Ht,"_setDebug",{get:function(){return B},enumerable:!1}),Ht),$t=!1;Wt.init=P((function(t){if(ut()&&function(t){if($t)return console.error("DD_RUM is already initialized."),!1;if(!t||!t.clientToken&&!t.publicApiKey)return console.error("Client Token is not configured, we will not send any data."),!1;if(!t.applicationId)return console.error("Application ID is not configured, no RUM data will be collected."),!1;if(void 0!==t.sampleRate&&!g(t.sampleRate))return console.error("Sample Rate should be a number between 0 and 100"),!1;if(void 0!==t.resourceSampleRate&&!g(t.resourceSampleRate))return console.error("Resource Sample Rate should be a number between 0 and 100"),!1;return!0}(t)){t.publicApiKey&&(t.clientToken=t.publicApiKey);var e=r({},t,{isCollectingError:!0}),n=new ht,o=at(e,pt),i=o.errorObservable,a=o.configuration,u=Ft(a,n),c=q();mt(n,u),i.subscribe((function(t){return n.notify(dt.ERROR_COLLECTED,t)})),c.subscribe((function(t){return n.notify(dt.REQUEST_COLLECTED,t)}));var s=Nt(e.applicationId,n,a,u);O()(Wt,s),$t=!0}})),window.DD_RUM=Wt}]);

@@ -6,4 +6,4 @@ "use strict";

env: 'production',
version: '1.2.9',
version: '1.2.10',
};
//# sourceMappingURL=buildEnv.js.map
export var buildEnv = {
datacenter: 'us',
env: 'production',
version: '1.2.9',
version: '1.2.10',
};
//# sourceMappingURL=buildEnv.js.map
{
"name": "@datadog/browser-rum",
"version": "1.2.9",
"version": "1.2.10",
"license": "Apache-2.0",

@@ -16,3 +16,3 @@ "main": "cjs/index.js",

"dependencies": {
"@datadog/browser-core": "1.2.9",
"@datadog/browser-core": "1.2.10",
"lodash.assign": "4.2.0",

@@ -28,3 +28,3 @@ "lodash.merge": "4.6.2",

},
"gitHead": "a658583cd4b462bdcf89381927ae8a85c74e2ddf"
"gitHead": "a679846346eacb262ff8c9300a1d546fb924fa5d"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc