@newrelic/browser-agent 0.0.9-beta.72 → 0.0.9-beta.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.NRBA=t():e.NRBA=t()}(self,(function(){return function(){var e={380:function(e,t,n){var r,i,o,a;function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var i=w(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){if(t&&("object"===x(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return b(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}e=n.nmd(e),self,a=function(){return function(){var e={4460:function(e,t,n){"use strict";n.r(t),n.d(t,{Aggregator:function(){return o}});var r=n(6469),i=n(1558),o=function(e){p(n,e);var t=m(n);function n(e){var r;return l(this,n),(r=t.call(this,e)).aggregatedData={},r}return v(n,[{key:"store",value:function(e,t,n,r,o){var s=this.getBucket(e,t,n,o);return s.metrics=function(e,t){return t||(t={count:0}),t.count+=1,(0,i.D)(e,(function(e,n){t[e]=a(n,t[e])})),t}(r,s.metrics),s}},{key:"merge",value:function(e,t,n,r,o){var u=this.getBucket(e,t,r,o);if(u.metrics){var c=u.metrics;c.count+=n.count,(0,i.D)(n,(function(e,t){if("count"!==e){var r=c[e],i=n[e];i&&!i.c?c[e]=a(i.t,r):c[e]=function(e,t){return t?(t.c||(t=s(t.t)),t.min=Math.min(e.min,t.min),t.max=Math.max(e.max,t.max),t.t+=e.t,t.sos+=e.sos,t.c+=e.c,t):e}(i,c[e])}}))}else u.metrics=n}},{key:"storeMetric",value:function(e,t,n,r){var i=this.getBucket(e,t,n);return i.stats=a(r,i.stats),i}},{key:"getBucket",value:function(e,t,n,r){this.aggregatedData[e]||(this.aggregatedData[e]={});var i=this.aggregatedData[e][t];return i||(i=this.aggregatedData[e][t]={params:n||{}},r&&(i.custom=r)),i}},{key:"get",value:function(e,t){return t?this.aggregatedData[e]&&this.aggregatedData[e][t]:this.aggregatedData[e]}},{key:"take",value:function(e){for(var t={},n="",r=!1,o=0;o<e.length;o++)t[n=e[o]]="object"!=x(a=this.aggregatedData[n])?[]:(0,i.D)(a,u),t[n].length&&(r=!0),delete this.aggregatedData[n];var a;return r?t:null}}]),n}(r.w);function a(e,t){return null==e?function(e){return e?e.c++:e={c:1},e}(t):t?(t.c||(t=s(t.t)),t.c+=1,t.t+=e,t.sos+=e*e,e>t.max&&(t.max=e),e<t.min&&(t.min=e),t):{t:e}}function s(e){return{t:e,min:e,max:e,sos:e*e,c:1}}function u(e,t){return t}},2572:function(e,t,n){"use strict";n.d(t,{I:function(){return r}});var r=0,i=navigator.userAgent.match(/Firefox[\/\s](\d+\.\d+)/);i&&(r=+i[1])},3821:function(e,t,n){"use strict";n.d(t,{H:function(){return i}});var r=document.createElement("div");r.innerHTML="\x3c!--[if lte IE 6]><div></div><![endif]--\x3e\x3c!--[if lte IE 7]><div></div><![endif]--\x3e\x3c!--[if lte IE 8]><div></div><![endif]--\x3e\x3c!--[if lte IE 9]><div></div><![endif]--\x3e";var i,o=r.getElementsByTagName("div").length;i=4===o?6:3===o?7:2===o?8:1===o?9:0},9230:function(e,t,n){"use strict";n.r(t),n.d(t,{getConfiguration:function(){return i.P_},getConfigurationValue:function(){return i.Mt},getInfo:function(){return r.C},getLoaderConfig:function(){return o.D},getRuntime:function(){return s.O},originals:function(){return a.Y},setConfiguration:function(){return i.Dg},setInfo:function(){return r.L},setLoaderConfig:function(){return o.G},setRuntime:function(){return s.s}});var r=n(9729),i=n(6061),o=n(5501),a=n(5307),s=n(2909)},9754:function(e,t,n){"use strict";n.d(t,{I:function(){return r}});var r=v((function e(t,n){var r=this;return l(this,e),t&&"object"==x(t)?n&&"object"==x(n)?(Object.assign(this,n),void Object.entries(t).forEach((function(e){var t=f(e,2),i=t[0],o=t[1];Object.keys(n).includes(i)&&(r[i]=o)}))):console.error("setting a Configurable requires a model to set its initial properties"):console.error("setting a Configurable requires an object as input")}))},9729:function(e,t,n){"use strict";n.d(t,{C:function(){return s},L:function(){return u}});var r=n(8240),i=n(9754),o={beacon:r.defaults.beacon,errorBeacon:r.defaults.errorBeacon,licenseKey:void 0,applicationID:void 0,sa:void 0,queueTime:void 0,applicationTime:void 0,ttGuid:void 0,user:void 0,account:void 0,product:void 0,extra:void 0,jsAttributes:{},userAttributes:void 0,atts:void 0,transactionName:void 0,tNamePlain:void 0},a={};function s(e){if(!e)throw new Error("All config objects require an agent identifier!");if(!a[e])throw new Error("Info for ".concat(e," was never set"));return a[e]}function u(e,t){if(!e)throw new Error("All config objects require an agent identifier!");a[e]=new i.I(t,o),(0,r.gosNREUMInitializedAgents)(e,a[e],"info")}},6061:function(e,t,n){"use strict";n.d(t,{Dg:function(){return u},Mt:function(){return c},P_:function(){return s}});var r=n(8240),i=n(9754),o={privacy:{cookies_enabled:void 0},ajax:{deny_list:void 0},distributed_tracing:{enabled:void 0,exclude_newrelic_header:void 0,cors_use_newrelic_header:void 0,cors_use_tracecontext_headers:void 0,allowed_origins:void 0},page_view_timing:{enabled:void 0},ssl:void 0,obfuscate:void 0},a={};function s(e){if(!e)throw new Error("All config objects require an agent identifier!");if(!a[e])throw new Error("Configuration for ".concat(e," was never set"));return a[e]}function u(e,t){if(!e)throw new Error("All config objects require an agent identifier!");a[e]=new i.I(t,o),(0,r.gosNREUMInitializedAgents)(e,a[e],"config")}function c(e,t){if(!e)throw new Error("All config objects require an agent identifier!");var n=s(e);if(n){for(var r=t.split("."),i=0;i<r.length-1;i++)if("object"!=x(n=n[r[i]]))return;n=n[r[r.length-1]]}return n}},5501:function(e,t,n){"use strict";n.d(t,{D:function(){return s},G:function(){return u}});var r=n(8240),i=n(9754),o={accountID:void 0,trustKey:void 0,agentID:void 0,licenseKey:void 0,applicationID:void 0,xpid:void 0},a={};function s(e){if(!e)throw new Error("All config objects require an agent identifier!");if(!a[e])throw new Error("LoaderConfig for ".concat(e," was never set"));return a[e]}function u(e,t){if(!e)throw new Error("All config objects require an agent identifier!");a[e]=new i.I(t,o),(0,r.gosNREUMInitializedAgents)(e,a[e],"loader_config")}},5307:function(e,t,n){"use strict";n.d(t,{Y:function(){return r}});var r=(0,n(8240).gosNREUMOriginals)().o},2909:function(e,t,n){"use strict";n.d(t,{O:function(){return m},s:function(){return y}});var r={};n.r(r),n.d(r,{agent:function(){return a},match:function(){return f},version:function(){return s}});var i=n(3821),o=n(2997),a=null,s=null;if(navigator.userAgent){var u=navigator.userAgent,c=u.match(/Version\/(\S+)\s+Safari/);c&&-1===u.indexOf("Chrome")&&-1===u.indexOf("Chromium")&&(a="Safari",s=c[1])}function f(e,t){if(!a)return!1;if(e!==a)return!1;if(!t)return!0;if(!s)return!1;for(var n=s.split("."),r=t.split("."),i=0;i<r.length;i++)if(r[i]!==n[i])return!1;return!0}var d=n(9754),l=n(8240),h=window.XMLHttpRequest,v=h&&h.prototype,p={origin:""+window.location,maxBytes:6===i.H?2e3:3e4,offset:(0,o.getLastTimestamp)(),features:{},customTransaction:void 0,onerror:void 0,releaseIds:void 0,xhrWrappable:h&&v&&v.addEventListener&&!/CriOS/.test(navigator.userAgent),disabled:void 0,ptid:void 0,userAgent:r},g={};function m(e){if(!e)throw new Error("All config objects require an agent identifier!");if(!g[e])throw new Error("Runtime for ".concat(e," was never set"));return g[e]}function y(e,t){if(!e)throw new Error("All config objects require an agent identifier!");g[e]=new d.I(t,p),(0,l.gosNREUMInitializedAgents)(e,g[e],"runtime")}},6469:function(e,t,n){"use strict";n.d(t,{w:function(){return i}});var r={agentIdentifier:""},i=v((function e(t){var n=this;if(l(this,e),"object"!=x(t))return console.error("shared context requires an object as input");this.sharedContext={},Object.assign(this.sharedContext,r),Object.entries(t).forEach((function(e){var t=f(e,2),i=t[0],o=t[1];Object.keys(r).includes(i)&&(n.sharedContext[i]=o)}))}))},2755:function(e,t,n){"use strict";n.d(t,{C:function(){return r},ee:function(){return u}});var r,i=n(8240),o=n(9381),a=n(1558),s=(0,i.gosNREUM)();s.ee?r=s.ee:(r=f(void 0,"globalEE"),s.ee=r);var u=f(void 0,"baseEE");function c(){}function f(e,t){var n={},r={},i={},s={on:v,addEventListener:v,removeEventListener:function(e,t){var r=n[e];if(r)for(var i=0;i<r.length;i++)r[i]===t&&r.splice(i,1)},emit:function(t,n,i,o,a){if(!1!==a&&(a=!0),!u.aborted||o){e&&a&&e.emit(t,n,i);for(var c=h(i),f=p(t),d=f.length,l=0;l<d;l++)f[l].apply(c,n);var v=g()[r[t]];return v&&v.push([s,t,n,c]),c}},get:function(e){return i[e]=i[e]||f(s,e)},listeners:p,context:h,buffer:function(e,t){var n=g();s.aborted||(0,a.D)(e,(function(e,i){t=t||"feature",r[i]=t,t in n||(n[t]=[])}))},abort:l,aborted:!1,isBuffering:function(e){return!!g()[r[e]]},debugId:t};return e||(s.backlog={}),s;function h(e){return e&&e instanceof c?e:e?(0,o.X)(e,"nr@context",d):d()}function v(e,t){n[e]=p(e).concat(t)}function p(e){return n[e]||[]}function g(){return e?e.backlog:s.backlog}}function d(){return new c}function l(){(u.backlog.api||u.backlog.feature)&&(u.aborted=!0,u.backlog={})}},2995:function(e,t,n){"use strict";n.d(t,{EM:function(){return i},l_:function(){return o},pr:function(){return a}});var r=n(2755),i=r.ee.get("handle"),o=r.C.get("handle");function a(e,t,n,r,o){o?(o.buffer([e],r),o.emit(e,t,n)):(i.buffer([e],r),i.emit(e,t,n))}},3406:function(e,t,n){"use strict";n.d(t,{XN:function(){return a},rP:function(){return a}});var r=n(2995);a.on=s;var i=a.handlers={},o=function(e,t,n){s(r.l_,o,e,t,n)}.handlers={};function a(e,t,n,o){s(o||r.EM,i,e,t,n)}function s(e,t,n,i,o){if(o||(o="feature"),e||(e=r.EM),e.isBuffering(n)){var a=t[o]=t[o]||{};(a[n]=a[n]||[]).push([e,i])}else e.on(n,i)}},4518:function(e,t,n){"use strict";n.d(t,{m:function(){return o}});var r=!1;try{var i=Object.defineProperty({},"passive",{get:function(){r=!0}});window.addEventListener("testPassive",null,i),window.removeEventListener("testPassive",null,i)}catch(e){}function o(e){return r?{passive:!0,capture:!!e}:!!e}},2848:function(e,t,n){"use strict";n.d(t,{o:function(){return f}});var r=n(870),i=n(6469),o=n(6943),a=n(9391),s=n(3233),u=n(3706),c=n(6061),f=function(e){p(n,e);var t=m(n);function n(e,r,i){var f;return l(this,n),(f=t.call(this,i)).endpoint=e,f.opts=r||{},f.started=!1,f.timeoutHandle=null,f.harvest=new o.Mu(f.sharedContext),(0,a.l)((function(){var e,t;f.opts.onUnload&&f.opts.onUnload(),f.harvest.sendFinal(),e=f.sharedContext.agentIdentifier,t=(0,c.Mt)(e,"privacy.cookies_enabled"),u.s&&t&&(document.cookie="NREUM=s="+Number(new Date)+"&r="+(0,s.u)(document.location.href)+"&p="+(0,s.u)(document.referrer)+"; path=/")})),f}return v(n,[{key:"startTimer",value:function(e,t){this.interval=e,this.started=!0,this.scheduleHarvest(null!=t?t:this.interval)}},{key:"stopTimer",value:function(){this.started=!1,this.timeoutHandle&&clearTimeout(this.timeoutHandle)}},{key:"scheduleHarvest",value:function(e,t){if(!this.timeoutHandle){var n=this;null==e&&(e=this.interval),this.timeoutHandle=setTimeout((function(){n.timeoutHandle=null,n.runHarvest(t)}),1e3*e)}}},{key:"runHarvest",value:function(e){var t=this;if(this.opts.getPayload){var n=this.harvest.getSubmitMethod(this.endpoint,e);if(!n)return!1;var i=n.method===r.T.xhr,o=this.opts.getPayload({retry:i});if(o){o="[object Array]"===Object.prototype.toString.call(o)?o:[o];for(var a=0;a<o.length;a++)this.harvest.send(this.endpoint,o[a],e,n,s,this.sharedContext.agentIdentifier)}}else this.harvest.sendX(this.endpoint,e,s,this.sharedContext.agentIdentifier);function s(n){t.onHarvestFinished(e,n)}this.started&&this.scheduleHarvest()}},{key:"onHarvestFinished",value:function(e,t){if(this.opts.onFinished&&this.opts.onFinished(t),t.sent&&t.retry){var n=t.delay||this.opts.retryDelay;this.started&&n?(clearTimeout(this.timeoutHandle),this.timeoutHandle=null,this.scheduleHarvest(n,e)):!this.started&&n&&this.scheduleHarvest(n,e)}}}]),n}(i.w)},6943:function(e,t,n){"use strict";n.d(t,{Mu:function(){return k},y0:function(){return O}});var r=n(1558),i=n(353),o=n(1240),a=n(870),s=n(8354),u=n(6061),c=n(9729),f=n(2909),d=n(5988),h=n(2997),g=n(4518),y=n(3821),b=n(2781),w=n(6469),E=JSON.parse('{"i8":"0.0.9-beta.71"}').i8,S=!!navigator.sendBeacon,O=y.H>9||0===y.H,k=function(e){p(n,e);var t=m(n);function n(e){var r;return l(this,n),(r=t.call(this,e)).tooManyRequestsDelay=(0,u.Mt)(r.sharedContext.agentIdentifier,"harvest.tooManyRequestsDelay")||60,r.obfuscator=new b.R(r.sharedContext),r.getScheme=function(){return!1===(0,u.Mt)(r.sharedContext.agentIdentifier,"ssl")?"http":"https"},r._events={},r}return v(n,[{key:"sendFinal",value:function(){var e=this,t=(0,r.D)(this._events,(function(t){return e.sendX(t,{unload:!0})}));return(0,s.u)(t,T)}},{key:"sendX",value:function(e,t,n){var r=j(e,t);if(!r)return!1;var i={retry:r.method===a.T.xhr};return this.obfuscator.shouldObfuscate()?this.obfuscator.obfuscateAndSend(e,this.createPayload(e,i),t,r,n):this._send(e,this.createPayload(e,i),t,r,n)}},{key:"send",value:function(e,t,n,i,o){var a=I(),s=I();t.body&&(0,r.D)(t.body,a),t.qs&&(0,r.D)(t.qs,s);var u={body:a(),qs:s()};return(this.obfuscator.shouldObfuscate()?this.obfuscator.obfuscateAndSend:this._send)(e,u,n,i,o)}},{key:"obfuscateAndSend",value:function(e,t,n,r,i){var o=this;return function(e,t,n,r){return e&&"object"==x(e)?(n=n||"string",r=r||[],function e(r){for(var o in r)r.hasOwnProperty(o)&&("object"==x(r[o])?e(r[o]):x(r[o])!==n||i(o)||(r[o]=t(r[o])));return r}(e)):e;function i(e){for(var t=!1,n=0;n<r.length;n++)if(r[n]===e){t=!0;break}return t}}(t,(function(){var e;return(e=o.obfuscator).obfuscateString.apply(e,arguments)}),"string",["e"]),this._send(e,t,n,r,i)}},{key:"_send",value:function(e,t,n,r,s){var u=(0,c.C)(this.sharedContext.agentIdentifier);if(!u.errorBeacon)return!1;if(!t.body)return s&&s({sent:!1}),!1;n||(n={});var d=this.getScheme()+"://"+u.errorBeacon+"/"+e+"/1/"+u.licenseKey+this.baseQueryString();t.qs&&(d+=(0,i.j6)(t.qs,(0,f.O)(this.sharedContext.agentIdentifier).maxBytes)),r||(r=j(e,n));var l,h=r.method,v=r.useBody,p=d;v&&"events"===e?l=t.body.e:v?l=(0,o.P)(t.body):p=d+(0,i.j6)(t.body,(0,f.O)(this.sharedContext.agentIdentifier).maxBytes);var m=h(p,l);return s&&h===a.T.xhr&&m.addEventListener("load",(function(){var e={sent:!0};429===this.status?(e.retry=!0,e.delay=this.tooManyRequestsDelay):408!==this.status&&500!==this.status&&503!==this.status||(e.retry=!0),n.needResponse&&(e.responseText=this.responseText),s(e)}),(0,g.m)(!1)),m||h!==a.T.beacon||(m=(h=a.T.img)(d+(0,i.j6)(t.body,(0,f.O)(this.sharedContext.agentIdentifier).maxBytes))),m}},{key:"baseQueryString",value:function(){var e=!0,t=(0,u.P_)(this.sharedContext.agentIdentifier),n=(0,f.O)(this.sharedContext.agentIdentifier),r=(0,c.C)(this.sharedContext.agentIdentifier);"privacy"in t&&(e=t.privacy.cookies_enabled);var o=(0,d.f)(""+location),a=this.obfuscator.shouldObfuscate()?this.obfuscator.obfuscateString(o):o;return["?a="+r.applicationID,(0,i.wu)("sa",r.sa?""+r.sa:""),(0,i.wu)("v",E),_(r),(0,i.wu)("ct",n.customTransaction),"&rst="+(0,h.now)(),"&ck="+(e?"1":"0"),(0,i.wu)("ref",a),(0,i.wu)("ptid",n.ptid?""+n.ptid:"")].join("")}},{key:"createPayload",value:function(e,t){for(var n=I(),i=I(),o=this._events[e]&&this._events[e]||[],a=0;a<o.length;a++){var s=o[a](t);s&&(s.body&&(0,r.D)(s.body,n),s.qs&&(0,r.D)(s.qs,i))}return{body:n(),qs:i()}}},{key:"on",value:function(e,t){(this._events[e]||(this._events[e]=[])).push(t)}},{key:"resetListeners",value:function(){(0,r.D)(this._events,(function(e){this._events[e]=[]}))}}]),n}(w.w);function T(e,t){return e||t}function j(e,t){var n,r;if((t=t||{}).needResponse){if(!O)return!1;r=!0,n=a.T.xhr}else if(t.unload)r=S,n=S?a.T.beacon:a.T.img;else if(O)r=!0,n=a.T.xhr;else{if("events"!==e&&"jserrors"!==e)return!1;n=a.T.img}return{method:n,useBody:r}}function _(e){return e.transactionName?(0,i.wu)("to",e.transactionName):(0,i.wu)("t",e.tNamePlain||"Unnamed Transaction")}function I(){var e={},t=!1;return function(n,r){if(r&&r.length&&(e[n]=r,t=!0),t)return e}}},8053:function(e,t,n){"use strict";function r(){var e=null,t=0,n=window.crypto||window.msCrypto;function r(){return e?15&e[t++]:16*Math.random()|0}n&&n.getRandomValues&&(e=n.getRandomValues(new Uint8Array(31)));for(var i,o="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",a="",s=0;s<o.length;s++)a+="x"===(i=o[s])?r().toString(16):"y"===i?(i=3&r()|8).toString(16):i;return a}function i(){return a(16)}function o(){return a(32)}function a(e){var t=null,n=0,r=window.crypto||window.msCrypto;r&&r.getRandomValues&&Uint8Array&&(t=r.getRandomValues(new Uint8Array(31)));for(var i=[],o=0;o<e;o++)i.push((t?15&t[n++]:16*Math.random()|0).toString(16));return i.join("")}n.r(t),n.d(t,{generateRandomHexString:function(){return a},generateSpanId:function(){return i},generateTraceId:function(){return o},generateUuid:function(){return r}})},4202:function(e,t,n){"use strict";n.d(t,{VB:function(){return i}});var r=n(2995);function i(e,t){var n=["sm",e,{name:e},t];return(0,r.pr)("storeMetric",n,null,"api"),n}},151:function(e,t,n){"use strict";n.d(t,{AG:function(){return s},FX:function(){return c},n1:function(){return f},uR:function(){return u}});var r=n(1558),i=n(1240),o=n(2781),a=Object.prototype.hasOwnProperty;function s(e,t,n){return e||0===e||""===e?t(e)+(n?",":""):"!"}function u(e,t){return t?Math.floor(e).toString(36):void 0===e||0===e?"":Math.floor(e).toString(36)}function c(e){var t=Object.hasOwnProperty("create")?Object.create(null):{},n=0;return function(r){if(void 0===r||""===r)return"";var i=new o.R({agentIdentifier:e});return r=String(r),i.shouldObfuscate()&&(r=i.obfuscateString(r)),a.call(t,r)?u(t[r],!0):(t[r]=n++,function(e){return"'"+e.replace(d,"\\$1")}(r))}}function f(e,t){var n=[];return(0,r.D)(e,(function(e,r){if(!(n.length>=64)){var o,a=5;switch(e=t(e),x(r)){case"object":r?o=t((0,i.P)(r)):a=9;break;case"number":a=6,o=r%1?r:r+".";break;case"boolean":a=r?7:8;break;case"undefined":a=9;break;default:o=t(r)}n.push([a,e+(o?","+o:"")])}})),n}var d=/([,\\;])/g},2997:function(e,t,n){"use strict";n.r(t),n.d(t,{getLastTimestamp:function(){return s},getOffset:function(){return c},now:function(){return a},setOffset:function(){return u}});var r=n(9335),i=(new Date).getTime(),o=i;function a(){return r.G&&performance.now?Math.round(performance.now()):(i=Math.max((new Date).getTime(),i))-o}function s(){return i}function u(e){o=e}function c(){return o}},9335:function(e,t,n){"use strict";n.d(t,{G:function(){return r}});var r=void 0!==window.performance&&window.performance.timing&&void 0!==window.performance.timing.navigationStart},3706:function(e,t,n){"use strict";n.d(t,{s:function(){return u},v:function(){return c}});var r=n(3233),i=n(232),o=n(2572),a=n(2997),s=n(9335),u=!0;function c(){var e=function(){if(!(o.I&&o.I<9))return s.G?(u=!1,window.performance.timing.navigationStart):void 0}()||function(){for(var e=document.cookie.split(" "),t=0;t<e.length;t++)if(0===e[t].indexOf("NREUM=")){for(var n,i,o,a,s=e[t].substring("NREUM=".length).split("&"),u=0;u<s.length;u++)0===s[u].indexOf("s=")?o=s[u].substring(2):0===s[u].indexOf("p=")?";"===(i=s[u].substring(2)).charAt(i.length-1)&&(i=i.substr(0,i.length-1)):0===s[u].indexOf("r=")&&";"===(n=s[u].substring(2)).charAt(n.length-1)&&(n=n.substr(0,n.length-1));if(n){var c=(0,r.u)(document.referrer);(a=c==n)||(a=(0,r.u)(document.location.href)==n&&c==i)}if(a&&o){if((new Date).getTime()-o>6e4)return;return o}}}();e&&((0,i.B)("starttime",e),(0,a.setOffset)(e))}c()},232:function(e,t,n){"use strict";n.d(t,{B:function(){return o},L:function(){return a}});var r=n(2997),i={};function o(e,t){void 0===t&&(t=(0,r.now)()+(0,r.getOffset)()),i[e]=t}function a(e,t,n,r){var o=i[n],a=i[r];void 0!==o&&void 0!==a&&e.store("measures",t,{value:a-o})}},9391:function(e,t,n){"use strict";n.d(t,{l:function(){return u}});var r=n(2572),i=n(7957),o=n.n(i),a=n(4518);function s(e,t){return"addEventListener"in window?window.addEventListener(e,t,(0,a.m)(!1)):"attachEvent"in window?window.attachEvent("on"+e,t):void 0}function u(e){var t,n,i,a=(t=e,i=!1,function(){return i?n:(i=!0,n=t.apply(this,o()(arguments)))});!r.I||navigator.sendBeacon?s("pagehide",a):s("beforeunload",a),s("unload",a)}},5988:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=/([^?#]*)[^#]*(#[^?]*|$).*/,i=/([^?#]*)().*/;function o(e,t){return e.replace(t?r:i,"$1$2")}},353:function(e,t,n){"use strict";n.d(t,{j6:function(){return d},nI:function(){return f},wu:function(){return l}});var r=n(1558),i=n(1240),o={"%2C":",","%3A":":","%2F":"/","%40":"@","%24":"$","%3B":";"},a=(0,r.D)(o,(function(e){return e})),s=new RegExp(a.join("|"),"g");function u(e){return o[e]}function c(e){return null==e?"null":encodeURIComponent(e).replace(s,u)}function f(e,t){for(var n=0,r=0;r<e.length;r++)if((n+=e[r].length)>t)return e.slice(0,r).join("");return e.join("")}function d(e,t){var n=0,o="";return(0,r.D)(e,(function(e,r){var a,s,u=[];if("string"==typeof r)a="&"+e+"="+c(r),n+=a.length,o+=a;else if(r.length){for(n+=9,s=0;s<r.length&&(a=c((0,i.P)(r[s])),n+=a.length,!(void 0!==t&&n>=t));s++)u.push(a);o+="&"+e+"=%5B"+u.join(",")+"%5D"}})),o}function l(e,t){return t&&"string"==typeof t?"&"+e+"="+c(t):""}},4017:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r={};function i(e){if(e in r)return r[e];var t=document.createElement("a"),n=window.location,i={};t.href=e,i.port=t.port;var o=t.href.split("://");!i.port&&o[1]&&(i.port=o[1].split("/")[0].split("@").pop().split(":")[1]),i.port&&"0"!==i.port||(i.port="https"===o[0]?"443":"80"),i.hostname=t.hostname||n.hostname,i.pathname=t.pathname,i.protocol=o[0],"/"!==i.pathname.charAt(0)&&(i.pathname="/"+i.pathname);var a=!t.protocol||":"===t.protocol||t.protocol===n.protocol,s=t.hostname===document.domain&&t.port===n.port;return i.sameOrigin=a&&(!t.hostname||s),"/"===i.pathname&&(r[e]=i),i}},1839:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(2755),i=v((function e(t,n){l(this,e),this.agentIdentifier=t,this.aggregator=n,this.ee=r.ee.get(t)}))},9381:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r=Object.prototype.hasOwnProperty;function i(e,t,n){if(r.call(e,t))return e[t];var i=n();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!1}),i}catch(e){}return e[t]=i,i}},1558:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r=Object.prototype.hasOwnProperty;function i(e,t){var n=[],i="",o=0;for(i in e)r.call(e,i)&&(n[o]=t(i,e[i]),o+=1);return n}},2781:function(e,t,n){"use strict";n.d(t,{R:function(){return d}});var r=n(6061),i=n(6469),o=n(4202),a=window,s={isFileProtocol:u,supportabilityMetricSent:!1};function u(){var e=a;return!(!e.location||!e.location.protocol||"file:"!==e.location.protocol)}u()&&((0,o.VB)("Generic/FileProtocol/Detected"),s.supportabilityMetricSent=!0);var c={regex:/^file:\/\/(.*)/,replacement:"file://OBFUSCATED"},f=!1,d=function(e){p(n,e);var t=m(n);function n(e){var r;return l(this,n),r=t.call(this,e),f||(r.shouldObfuscate()&&(0,o.VB)("Generic/Obfuscate/Detected"),r.shouldObfuscate()&&!r.validateRules(r.getRules())&&(0,o.VB)("Generic/Obfuscate/Invalid"),f=!0),r}return v(n,[{key:"shouldObfuscate",value:function(){return this.getRules().length>0}},{key:"getRules",value:function(){var e=[],t=(0,r.Mt)(this.sharedContext.agentIdentifier,"obfuscate")||[];return e=e.concat(t),s.isFileProtocol()&&e.push(c),e}},{key:"validateRules",value:function(e){for(var t=!1,n=!1,r=0;r<e.length;r++){"regex"in e[r]?"string"!=typeof e[r].regex&&e[r].regex.constructor!==RegExp&&(console&&console.warn&&console.warn('An obfuscation replacement rule contains a "regex" value with an invalid type (must be a string or RegExp)'),n=!0):(console&&console.warn&&console.warn('An obfuscation replacement rule was detected missing a "regex" value.'),n=!0);var i=e[r].replacement;i&&"string"!=typeof i&&(console&&console.warn&&console.warn('An obfuscation replacement rule contains a "replacement" value with an invalid type (must be a string)'),t=!0)}return!t&&!n}},{key:"obfuscateString",value:function(e,t){if(!e||"string"!=typeof e)return e;for(var n=this.getRules(t),r=e,i=0;i<n.length;i++){var o=n[i].regex,a=n[i].replacement||"*";r=r.replace(o,a)}return r}}]),n}(i.w)},8354:function(e,t,n){"use strict";function r(e,t,n){var r=0;for(void 0===n&&(n=e[0],r=1);r<e.length;r++)n=t(n,e[r]);return n}n.d(t,{u:function(){return r}})},3233:function(e,t,n){"use strict";function r(e){var t,n=0;for(t=0;t<e.length;t++)n+=(t+1)*e.charCodeAt(t);return Math.abs(n)}n.d(t,{u:function(){return r}})},1240:function(e,t,n){"use strict";n.d(t,{P:function(){return s}});var r=n(1558),i=n(2755),o=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function s(e){try{return c("",{"":e})}catch(e){try{i.ee.emit("internal-error",[e])}catch(e){}}}function u(e){return o.lastIndex=0,o.test(e)?'"'+e.replace(o,(function(e){var t=a[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function c(e,t){var n=t[e];switch(x(n)){case"string":return u(n);case"number":return isFinite(n)?String(n):"null";case"boolean":return String(n);case"object":if(!n)return"null";var i=[];if(n instanceof window.Array||"[object Array]"===Object.prototype.toString.apply(n)){for(var o=n.length,a=0;a<o;a+=1)i[a]=c(a,n)||"null";return 0===i.length?"[]":"["+i.join(",")+"]"}return(0,r.D)(n,(function(e){var t=c(e,n);t&&i.push(u(e)+":"+t)})),0===i.length?"{}":"{"+i.join(",")+"}"}}},870:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});var r={jsonp:function(e,t){var n=document.createElement("script");n.type="text/javascript",n.src=e+"&jsonp="+t;var r=document.getElementsByTagName("script")[0];return r.parentNode.insertBefore(n,r),n},xhr:function(e,t,n){var r=new XMLHttpRequest;r.open("POST",e,!n);try{"withCredentials"in r&&(r.withCredentials=!0)}catch(e){}return r.setRequestHeader("content-type","text/plain"),r.send(t),r},xhrSync:function(e,t){return r.xhr(e,t,!0)},img:function(e){var t=new Image;return t.src=e,t},beacon:function(e,t){return navigator.sendBeacon(e,t)}}},8240:function(e,t,n){"use strict";n.r(t),n.d(t,{NREUMinitialized:function(){return v},addToNREUM:function(){return h},defaults:function(){return i},gosCDN:function(){return p},gosNREUM:function(){return o},gosNREUMInfo:function(){return a},gosNREUMInit:function(){return f},gosNREUMInitializedAgents:function(){return l},gosNREUMLoaderConfig:function(){return s},gosNREUMOriginals:function(){return d}});var r=n(2997),i={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net"};function o(){return window.NREUM||(window.NREUM={}),void 0===window.newrelic&&(window.newrelic=window.NREUM),window.NREUM}function a(){var e=o(),t=e.info||{};return e.info=u({beacon:i.beacon,errorBeacon:i.errorBeacon},t),e}function s(){var e=o(),t=e.loader_config||{};return e.loader_config=u({},t),e}function f(){var e=o(),t=e.init||{};return e.init=u({},t),e}function d(){var e=o();if(!e.o){var t=window,n=t.XMLHttpRequest;e.o={ST:setTimeout,SI:t.setImmediate,CT:clearTimeout,XHR:n,REQ:t.Request,EV:t.Event,PR:t.Promise,MO:t.MutationObserver,FETCH:t.fetch}}return e}function l(e,t,n){var i=o(),a=i.initializedAgents||{},s=a[e]||{};return Object.keys(s).length||(s.initializedAt={ms:(0,r.now)(),date:new Date}),i.initializedAgents=u(u({},a),{},c({},e,u(u({},s),{},c({},n,t)))),i}function h(e,t){o()[e]=t}function v(){o().initialized=!0}function p(){return a(),f(),d(),s(),o()}},6219:function(e,t,n){"use strict";function r(){return"PerformanceObserver"in window&&"function"==typeof window.PerformanceObserver}n.d(t,{W:function(){return r}})},3097:function(e,t,n){"use strict";n.d(t,{em:function(){return m},u5:function(){return y},QU:function(){return b},gy:function(){return w},BV:function(){return E},Kf:function(){return S}});var r=n(2755),i=n(7957),o=n.n(i),a=n(5307),s=window,u=(s.Request,s.Response,"nr@context"),c="nr@original",f=Object.prototype.hasOwnProperty,d=!1;function l(e,t){return e||(e=r.ee),n.inPlace=function(e,t,r,i,o){r||(r="");var a,s,u,c="-"===r.charAt(0);for(u=0;u<t.length;u++)v(a=e[s=t[u]])||(e[s]=n(a,c?s+r:r,i,s,o))},n.flag=c,n;function n(t,n,r,a,s){return v(t)?t:(n||(n=""),u[c]=t,function(e,t,n){if(Object.defineProperty&&Object.keys)try{return Object.keys(e).forEach((function(n){Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){return e[n]=t,t}})})),t}catch(e){h([e],n)}for(var r in e)f.call(e,r)&&(t[r]=e[r])}(t,u,e),u);function u(){var u,c,f,d;try{c=this,u=o()(arguments),f="function"==typeof r?r(u,c):r||{}}catch(t){h([t,"",[u,c,a],f],e)}i(n+"start",[u,c,a],f,s);try{return d=t.apply(c,u)}catch(e){throw i(n+"err",[u,c,e],f,s),e}finally{i(n+"end",[u,c,d],f,s)}}}function i(n,r,i,o){if(!d||t){var a=d;d=!0;try{e.emit(n,r,i,t,o)}catch(t){h([t,n,r,i],e)}d=a}}}function h(e,t){t||(t=r.ee);try{t.emit("internal-error",e)}catch(e){}}function v(e){return!(e&&e instanceof Function&&e.apply&&!e[c])}var p=n(4518),g=n(9381);function m(e){return function(e){var t=function(e){return(e||r.ee).get("events")}(e),n=l(t,!0),i=XMLHttpRequest,o="addEventListener";function a(e){for(var t=e;t&&!t.hasOwnProperty(o);)t=Object.getPrototypeOf(t);t&&s(t)}function s(e){n.inPlace(e,[o,"removeEventListener"],"-",u)}function u(e,t){return e[1]}return"getPrototypeOf"in Object?(a(document),a(window),a(i.prototype)):i.prototype.hasOwnProperty(o)&&(s(window),s(i.prototype)),t.on("addEventListener-start",(function(e,t){var r=e[1];if(null!==r&&("function"==typeof r||"object"==x(r))){var i=(0,g.X)(r,"nr@wrapped",(function(){var e={object:function(){if("function"==typeof r.handleEvent)return r.handleEvent.apply(r,arguments)},function:r}[x(r)];return e?n(e,"fn-",null,e.name||"anonymous"):r}));this.wrapped=e[1]=i}})),t.on("removeEventListener-start",(function(e){e[1]=this.wrapped||e[1]})),t}(e)}function y(e){return function(e){var t=a.Y.FETCH,n=e||r.ee,i=function(e,t,n){return function(){var r,i=o()(arguments),a={};e.emit(n+"before-start",[i],a),a[u]&&a[u].dt&&(r=a[u].dt);var s=t.apply(this,i);return e.emit(n+"start",[i,r],s),s.then((function(t){return e.emit(n+"end",[null,t],s),t}),(function(t){throw e.emit(n+"end",[t],s),t}))}}(n,t,"fetch-");return n.on("fetch-end",(function(e,t){var r=this;if(t){var i=t.headers.get("content-length");null!==i&&(r.rxSize=i),n.emit("fetch-done",[null,t],r)}else n.emit("fetch-done",[e],r)})),i}(e)}function b(e){return function(e){var t=function(e){return(e||r.ee).get("history")}(e),n=l(t),i=window.history&&window.history.constructor&&window.history.constructor.prototype,o=window.history;return i&&i.pushState&&i.replaceState&&(o=i),n.inPlace(o,["pushState","replaceState"],"-"),t}(e)}function w(e){return function(e){var t=function(e){return(e||r.ee).get("raf")}(e),n=l(t);return n.inPlace(window,["requestAnimationFrame","mozRequestAnimationFrame","webkitRequestAnimationFrame","msRequestAnimationFrame"],"raf-"),t.on("raf-start",(function(e){e[0]=n(e[0],"fn-")})),t}(e)}function E(e){return function(e){var t=function(e){return(e||r.ee).get("timer")}(e),n=l(t),i="setTimeout",o="setInterval",a="-start";return n.inPlace(window,[i,"setImmediate"],"setTimeout-"),n.inPlace(window,[o],"setInterval-"),n.inPlace(window,["clearTimeout","clearImmediate"],"clearTimeout-"),t.on(o+a,(function(e,t,r){e[0]=n(e[0],"fn-",null,r)})),t.on(i+a,(function(e,t,r){this.method=r,this.timerDuration=isNaN(e[1])?0:+e[1],e[0]=n(e[0],"fn-",this,r)})),t}(e)}function S(e){return function(e){var t=e||r.ee,n=function(e){return(e||r.ee).get("events")}(t),i=l(n),o=a.Y.XHR,s=a.Y.MO,u=a.Y.PR,c=a.Y.SI,f="readystatechange",d=["onload","onerror","onabort","onloadstart","onloadend","onprogress","ontimeout"],h=[],v=window.XMLHttpRequest=function(e){var t=new o(e);try{n.emit("new-xhr",[t],t),t.addEventListener(f,m,(0,p.m)(!1))}catch(e){try{n.emit("internal-error",[e])}catch(e){}}return t};function g(e,t){i.inPlace(t,["onreadystatechange"],"fn-",E)}function m(){var e=this,t=n.context(e);e.readyState>3&&!t.resolved&&(t.resolved=!0,n.emit("xhr-resolved",[],e)),i.inPlace(e,d,"fn-",E)}if(function(e,t){for(var n in e)t[n]=e[n]}(o,v),v.prototype=o.prototype,i.inPlace(v.prototype,["open","send"],"-xhr-",E),n.on("send-xhr-start",(function(e,t){g(0,t),function(e){h.push(e),s&&(y?y.then(x):c?c(x):(b=-b,w.data=b))}(t)})),n.on("open-xhr-start",g),s){var y=u&&u.resolve();if(!c&&!u){var b=1,w=document.createTextNode(b);new s(x).observe(w,{characterData:!0})}}else t.on("fn-end",(function(e){e[0]&&e[0].type===f||x()}));function x(){for(var e=0;e<h.length;e++)g(0,h[e]);h.length&&(h=[])}function E(e,t){return t}return n}(e)}},74:function(e,t,n){"use strict";n.r(t),n.d(t,{Aggregate:function(){return y}});var r=n(3406),i=n(1240),o=n(151),a=n(2995),s=n(6061),u=n(9729),c=n(2848),f=n(9391),d=n(4202),h=[];function g(e,t){return 0===e.indexOf("/")&&(e=e.substring(1)),0===t.indexOf("/")&&(t=t.substring(1)),""===e||e===t}var y=function(e){p(n,e);var t=m(n);function n(e,i){var o;return l(this,n),(o=t.call(this,e,i)).ajaxEvents=[],o.spaAjaxEvents={},o.sentAjaxEvents=[],o.scheduler,o.harvestTimeSeconds=(0,s.Mt)(o.agentIdentifier,"ajax.harvestTimeSeconds")||10,o.MAX_PAYLOAD_SIZE=(0,s.Mt)(o.agentIdentifier,"ajax.maxPayloadSize")||1e6,o.ee.on("interactionSaved",(function(e){this.spaAjaxEvents[e.id]&&delete this.spaAjaxEvents[e.id]})),o.ee.on("interactionDiscarded",(function(e){this.spaAjaxEvents[e.id]&&this.allAjaxIsEnabled()&&(this.spaAjaxEvents[e.id].forEach((function(e){this.ajaxEvents.push(e)})),delete this.spaAjaxEvents[e.id])})),o.allAjaxIsEnabled()&&function(e){if(h=[],e&&e.length)for(var t=0;t<e.length;t++){var n=e[t];0===n.indexOf("http://")?n=n.substring(7):0===n.indexOf("https://")&&(n=n.substring(8));var r=n.indexOf("/");r>0?h.push({hostname:n.substring(0,r),pathname:n.substring(r)}):h.push({hostname:n,pathname:""})}}((0,s.Mt)(o.agentIdentifier,"ajax.deny_list")),(0,r.XN)("xhr",(function(){var e;return(e=o).storeXhr.apply(e,arguments)}),void 0,o.ee),o.allAjaxIsEnabled()&&(o.scheduler=new c.o("events",{onFinished:function(){var e;return(e=o).onEventsHarvestFinished.apply(e,arguments)},getPayload:function(){var e;return(e=o).prepareHarvest.apply(e,arguments)}}),o.scheduler.harvest.on("jserrors",(function(){return{body:this.aggregator.take(["xhr"])}})),o.scheduler.startTimer(o.harvestTimeSeconds),(0,f.l)((function(){var e;return(e=o).finalHarvest.apply(e,arguments)}))),o}return v(n,[{key:"getStoredEvents",value:function(){return{ajaxEvents:this.ajaxEvents,spaAjaxEvents:this.spaAjaxEvents}}},{key:"storeXhr",value:function(e,t,n,r,o){var s;if("localhost"!==e.hostname&&(t.time=n,s=e.cat?(0,i.P)([e.status,e.cat]):(0,i.P)([e.status,e.host,e.pathname]),(0,a.pr)("bstXhrAgg",["xhr",s,e,t],void 0,void 0,this.ee),this.aggregator.store("xhr",s,e,t),this.allAjaxIsEnabled()))if(function(e){if(0===h.length)return!0;for(var t=0;t<h.length;t++){var n=h[t];if("*"===n.hostname)return!1;if(r=n.hostname,i=e.hostname,!(r.length>i.length)&&i.indexOf(r)===i.length-r.length&&g(n.pathname,e.pathname))return!1}var r,i;return!0}(e)){var c=this,f={method:e.method,status:e.status,domain:e.host,path:e.pathname,requestSize:t.txSize,responseSize:t.rxSize,type:o,startTime:n,endTime:r,callbackDuration:t.cbTime};if(c.dt&&(f.spanId=c.dt.spanId,f.traceId=c.dt.traceId,f.spanTimestamp=c.dt.timestamp),this.spaNode){var l=this.spaNode.interaction.id;this.spaAjaxEvents[l]=this.spaAjaxEvents[l]||[],this.spaAjaxEvents[l].push(f)}else this.ajaxEvents.push(f)}else e.hostname===(0,u.C)(this.agentIdentifier).errorBeacon?(0,d.VB)("Ajax/Events/Excluded/Agent"):(0,d.VB)("Ajax/Events/Excluded/App")}},{key:"prepareHarvest",value:function(e){if(e=e||{},0===this.ajaxEvents.length)return null;for(var t=this.getPayload(this.ajaxEvents,e.maxPayloadSize||this.MAX_PAYLOAD_SIZE),n=[],r=0;r<t.length;r++)n.push({body:{e:t[r]}});return e.retry&&(this.sentAjaxEvents=this.ajaxEvents.slice()),this.ajaxEvents=[],n}},{key:"getPayload",value:function(e,t,n){n=n||1;for(var r=[],i=e.length/n,o=this.splitChunks(e,i),a=!1,s=0;s<o.length;s++){var u=o[s];if(u.tooBig(t)){if(1!==u.events.length){a=!0;break}}else r.push(u.payload)}return a?this.getPayload(e,t,++n):r}},{key:"onEventsHarvestFinished",value:function(e){e.retry&&this.sentAjaxEvents.length>0&&this.allAjaxIsEnabled()&&(this.ajaxEvents=this.ajaxEvents.concat(this.sentAjaxEvents),this.sentAjaxEvents=[])}},{key:"splitChunks",value:function(e,t){t=t||e.length;for(var n=[],r=0,i=e.length;r<i;r+=t)n.push(new this.Chunk(e.slice(r,r+t)));return n}},{key:"Chunk",value:function(e){this.addString=(0,o.FX)(),this.events=e,this.payload="bel.7;";for(var t=0;t<this.events.length;t++){var n=this.events[t],r=[(0,o.uR)(n.startTime),(0,o.uR)(n.endTime-n.startTime),(0,o.uR)(0),(0,o.uR)(0),this.addString(n.method),(0,o.uR)(n.status),this.addString(n.domain),this.addString(n.path),(0,o.uR)(n.requestSize),(0,o.uR)(n.responseSize),"fetch"===n.type?1:"",this.addString(0),(0,o.AG)(n.spanId,this.addString,!0)+(0,o.AG)(n.traceId,this.addString,!0)+(0,o.AG)(n.spanTimestamp,o.uR,!1)],i="2,",a=(0,o.n1)((0,u.C)(this.agentIdentifier).jsAttributes||{},this.addString);r.unshift((0,o.uR)(a.length)),i+=r.join(","),a&&a.length>0&&(i+=";"+a.join(";")),t+1<this.events.length&&(i+=";"),this.payload+=i}this.tooBig=function(e){return e=e||this.MAX_PAYLOAD_SIZE,2*this.payload.length>e}}},{key:"allAjaxIsEnabled",value:function(){return!1!==(0,s.Mt)(this.agentIdentifier,"ajax.enabled")}}]),n}(n(1839).W)},9770:function(e,t,n){"use strict";n.r(t),n.d(t,{Instrument:function(){return P},getWrappedFetch:function(){return A}});var r=n(5307),i=n(2909),o=n(5501),a=n(2995),s=n(2755),u=n(9381),c=1;function f(e){var t=x(e);return!e||"object"!==t&&"function"!==t?-1:e===window?0:(0,u.X)(e,"nr@id",(function(){return c++}))}var d=n(2572);function h(e){if("string"==typeof e&&e.length)return e.length;if("object"==x(e)){if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer&&e.byteLength)return e.byteLength;if("undefined"!=typeof Blob&&e instanceof Blob&&e.size)return e.size;if(!("undefined"!=typeof FormData&&e instanceof FormData))try{return JSON.stringify(e).length}catch(e){return}}}var g=n(4518),y=n(2997),b=n(3097),w=n(4017),E=n(6061),S=n(8053),O=function(){function e(t){l(this,e),this.agentIdentifier=t}return v(e,[{key:"generateTracePayload",value:function(e){if(!this.shouldGenerateTrace(e))return null;var t=(0,o.D)(this.agentIdentifier);if(!t)return null;var n=(t.accountID||"").toString()||null,r=(t.agentID||"").toString()||null,i=(t.trustKey||"").toString()||null;if(!n||!r)return null;var a=(0,S.generateSpanId)(),s=(0,S.generateTraceId)(),u=Date.now(),c={spanId:a,traceId:s,timestamp:u};return(e.sameOrigin||this.isAllowedOrigin(e)&&this.useTraceContextHeadersForCors())&&(c.traceContextParentHeader=this.generateTraceContextParentHeader(a,s),c.traceContextStateHeader=this.generateTraceContextStateHeader(a,u,n,r,i)),(e.sameOrigin&&!this.excludeNewrelicHeader()||!e.sameOrigin&&this.isAllowedOrigin(e)&&this.useNewrelicHeaderForCors())&&(c.newrelicHeader=this.generateTraceHeader(a,s,u,n,r,i)),c}},{key:"generateTraceContextParentHeader",value:function(e,t){return"00-"+t+"-"+e+"-01"}},{key:"generateTraceContextStateHeader",value:function(e,t,n,r,i){return i+"@nr=0-1-"+n+"-"+r+"-"+e+"----"+t}},{key:"generateTraceHeader",value:function(e,t,n,r,i,o){if(!("btoa"in window)||"function"!=typeof window.btoa)return null;var a={v:[0,1],d:{ty:"Browser",ac:r,ap:i,id:e,tr:t,ti:n}};return o&&r!==o&&(a.d.tk=o),btoa(JSON.stringify(a))}},{key:"shouldGenerateTrace",value:function(e){return this.isDtEnabled()&&this.isAllowedOrigin(e)}},{key:"isAllowedOrigin",value:function(e){var t=!1,n={};if((0,E.Mt)("distributed_tracing")&&(n=(0,E.P_)().distributed_tracing),e.sameOrigin)t=!0;else if(n.allowed_origins instanceof Array)for(var r=0;r<n.allowed_origins.length;r++){var i=(0,w.e)(n.allowed_origins[r]);if(e.hostname===i.hostname&&e.protocol===i.protocol&&e.port===i.port){t=!0;break}}return t}},{key:"isDtEnabled",value:function(){var e=(0,E.Mt)(this.agentIdentifier,"distributed_tracing");return!!e&&!!e.enabled}},{key:"excludeNewrelicHeader",value:function(){var e=(0,E.Mt)(this.agentIdentifier,"distributed_tracing");return!!e&&!!e.exclude_newrelic_header}},{key:"useNewrelicHeaderForCors",value:function(){var e=(0,E.Mt)(this.agentIdentifier,"distributed_tracing");return!!e&&!1!==e.cors_use_newrelic_header}},{key:"useTraceContextHeadersForCors",value:function(){var e=(0,E.Mt)(this.agentIdentifier,"distributed_tracing");return!!e&&!e.cors_use_tracecontext_headers}}]),e}(),k=n(1839),T=["load","error","abort","timeout"],j=T.length,_=r.Y.REQ,I=window.XMLHttpRequest,P=function(e){p(n,e);var t=m(n);function n(e){var r;return l(this,n),r=t.call(this,e),(0,i.O)(r.agentIdentifier).xhrWrappable&&!(0,i.O)(r.agentIdentifier).disabled&&(r.dt=new O(r.agentIdentifier)),r}return v(n)}(k.W);function A(){var e=(0,b.u5)(s.ee);return function(e,t){function n(e){var n=this.params,r=this.metrics;if(!this.ended){this.ended=!0;for(var o=0;o<j;o++)e.removeEventListener(T[o],this.listener,!1);n.aborted||(r.duration=(0,y.now)()-this.startTime,this.loadCaptureCalled||4!==e.readyState?null==n.status&&(n.status=0):i(this,e),r.cbTime=this.cbTime,t("xhr",[n,r,this.startTime,this.endTime,"xhr"],this))}}function r(e,t){var n=(0,w.e)(t),r=e.params;r.hostname=n.hostname,r.port=n.port,r.protocol=n.protocol,r.host=n.hostname+":"+n.port,r.pathname=n.pathname,e.parsedOrigin=n,e.sameOrigin=n.sameOrigin}function i(e,t){e.params.status=t.status;var n=function(e,t){var n=e.responseType;return"json"===n&&null!==t?t:"arraybuffer"===n||"blob"===n||"json"===n?h(e.response):"text"===n||""===n||void 0===n?h(e.responseText):void 0}(t,e.lastSize);if(n&&(e.metrics.rxSize=n),e.sameOrigin){var r=t.getResponseHeader("X-NewRelic-App-Data");r&&(e.params.cat=r.split(", ").pop())}e.loadCaptureCalled=!0}e.on("new-xhr",(function(e){var t=this;t.totalCbs=0,t.called=0,t.cbTime=0,t.end=n,t.ended=!1,t.xhrGuids={},t.lastSize=null,t.loadCaptureCalled=!1,t.params=this.params||{},t.metrics=this.metrics||{},e.addEventListener("load",(function(n){i(t,e)}),(0,g.m)(!1)),d.I&&(d.I>34||d.I<10)||e.addEventListener("progress",(function(e){t.lastSize=e.loaded}),(0,g.m)(!1))})),e.on("open-xhr-start",(function(e){this.params={method:e[0]},r(this,e[1]),this.metrics={}})),e.on("open-xhr-end",(function(e,t){var n=(0,o.D)();"xpid"in n&&this.sameOrigin&&t.setRequestHeader("X-NewRelic-ID",n.xpid);var r=this.dt.generateTracePayload(this.parsedOrigin);if(r){var i=!1;r.newrelicHeader&&(t.setRequestHeader("newrelic",r.newrelicHeader),i=!0),r.traceContextParentHeader&&(t.setRequestHeader("traceparent",r.traceContextParentHeader),r.traceContextStateHeader&&t.setRequestHeader("tracestate",r.traceContextStateHeader),i=!0),i&&(this.dt=r)}})),e.on("send-xhr-start",(function(t,n){var r=this.metrics,i=t[0],o=this;if(r&&i){var a=h(i);a&&(r.txSize=a)}this.startTime=(0,y.now)(),this.listener=function(t){try{"abort"!==t.type||o.loadCaptureCalled||(o.params.aborted=!0),("load"!==t.type||o.called===o.totalCbs&&(o.onloadCalled||"function"!=typeof n.onload))&&o.end(n)}catch(t){try{e.emit("internal-error",[t])}catch(e){}}};for(var s=0;s<j;s++)n.addEventListener(T[s],this.listener,(0,g.m)(!1))})),e.on("xhr-cb-time",(function(e,t,n){this.cbTime+=e,t?this.onloadCalled=!0:this.called+=1,this.called!==this.totalCbs||!this.onloadCalled&&"function"==typeof n.onload||this.end(n)})),e.on("xhr-load-added",(function(e,t){var n=""+f(e)+!!t;this.xhrGuids&&!this.xhrGuids[n]&&(this.xhrGuids[n]=!0,this.totalCbs+=1)})),e.on("xhr-load-removed",(function(e,t){var n=""+f(e)+!!t;this.xhrGuids&&this.xhrGuids[n]&&(delete this.xhrGuids[n],this.totalCbs-=1)})),e.on("xhr-resolved",(function(){this.endTime=(0,y.now)()})),e.on("addEventListener-end",(function(t,n){n instanceof I&&"load"===t[0]&&e.emit("xhr-load-added",[t[1],t[2]],n)})),e.on("removeEventListener-end",(function(t,n){n instanceof I&&"load"===t[0]&&e.emit("xhr-load-removed",[t[1],t[2]],n)})),e.on("fn-end",(function(t,n){this.xhrCbStart&&e.emit("xhr-cb-time",[(0,y.now)()-this.xhrCbStart,this.onload,n],n)})),e.on("fetch-before-start",(function(e){var t,n=e[1]||{};"string"==typeof e[0]?t=e[0]:e[0]&&e[0].url?t=e[0].url:window.URL&&e[0]&&e[0]instanceof URL&&(t=e[0].href),t&&(this.parsedOrigin=(0,w.e)(t),this.sameOrigin=this.parsedOrigin.sameOrigin);var r=this.dt.generateTracePayload(this.parsedOrigin);if(r&&(r.newrelicHeader||r.traceContextParentHeader))if("string"==typeof e[0]||window.URL&&e[0]&&e[0]instanceof URL){var i={};for(var o in n)i[o]=n[o];i.headers=new Headers(n.headers||{}),a(i.headers,r)&&(this.dt=r),e.length>1?e[1]=i:e.push(i)}else e[0]&&e[0].headers&&a(e[0].headers,r)&&(this.dt=r);function a(e,t){var n=!1;return t.newrelicHeader&&(e.set("newrelic",t.newrelicHeader),n=!0),t.traceContextParentHeader&&(e.set("traceparent",t.traceContextParentHeader),t.traceContextStateHeader&&e.set("tracestate",t.traceContextStateHeader),n=!0),n}})),e.on("fetch-start",(function(e,t){this.params={},this.metrics={},this.startTime=(0,y.now)(),this.dt=t,e.length>=1&&(this.target=e[0]),e.length>=2&&(this.opts=e[1]);var n,i=this.opts||{},o=this.target;"string"==typeof o?n=o:"object"==x(o)&&o instanceof _?n=o.url:window.URL&&"object"==x(o)&&o instanceof URL&&(n=o.href),r(this,n);var a=(""+(o&&o instanceof _&&o.method||i.method||"GET")).toUpperCase();this.params.method=a,this.txSize=h(i.body)||0})),e.on("fn-start",(function(e,t,n){t instanceof I&&("onload"===n&&(this.onload=!0),("load"===(e[0]&&e[0].type)||this.onload)&&(this.xhrCbStart=(0,y.now)()))})),e.on("fetch-done",(function(e,n){var r;this.endTime=(0,y.now)(),this.params||(this.params={}),this.params.status=n?n.status:0,"string"==typeof this.rxSize&&this.rxSize.length>0&&(r=+this.rxSize);var i={txSize:this.txSize,rxSize:r,duration:(0,y.now)()-this.startTime};t("xhr",[this.params,i,this.startTime,this.endTime,"fetch"],this)}))}(s.ee,a.pr),e}},7326:function(e,t,n){"use strict";n.r(t),n.d(t,{Aggregate:function(){return A}});var r=/([a-z0-9]+)$/i;function i(e){if(e){var t=e.match(r);return t?t[1]:void 0}}var o=n(8354),a=/^\n+|\n+$/g,s=/function (.+?)\s*\(/,u=/^\s*at (?:((?:\[object object\])?(?:[^(]*\([^)]*\))*[^()]*(?: \[as \S+\])?) )?\(?((?:file|http|https|chrome-extension):.*?)?:(\d+)(?::(\d+))?\)?\s*$/i,c=/^\s*(?:(\S*|global code)(?:\(.*?\))?@)?((?:file|http|https|chrome|safari-extension).*?):(\d+)(?::(\d+))?\s*$/i,f=/^\s*at .+ \(eval at \S+ \((?:(?:file|http|https):[^)]+)?\)(?:, [^:]*:\d+:\d+)?\)$/i,d=/^\s*at Function code \(Function code:\d+:\d+\)\s*/i;function h(e,t){var n,r=function(e){var t=e.match(c);return t||(t=e.match(u)),t?{url:t[2],func:"Anonymous function"!==t[1]&&"global code"!==t[1]&&t[1]||null,line:+t[3],column:t[4]?+t[4]:null}:e.match(f)||e.match(d)||"anonymous"===e?{func:"evaluated code"}:void 0}(t);return r?((n=r.func)&&n.indexOf("nrWrapper")>=0?e.wrapperSeen=!0:e.stackLines.push(t),e.wrapperSeen||e.frames.push(r),e):(e.stackLines.push(t),e)}function g(e){var t=s.exec(String(e.constructor));return t&&t.length>1?t[1]:"unknown"}function y(e){var t=0;if(!e||!e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}var w=n(3406),E=n(2848),S=n(1240),O=n(2995),k=n(1558),T=n(6061),j=n(2909),_=n(9729),I=n(2997),P=n(5988),A=function(e){p(n,e);var t=m(n);function n(e,r){var i;l(this,n),(i=t.call(this,e,r)).stackReported={},i.pageviewReported={},i.errorCache={},i.currentBody,i.errorOnPage=!1,i.ee.on("interactionSaved",(function(e){this.errorCache[e.id]&&(this.errorCache[e.id].forEach((function(t){var n={},r=t[4],i=t[5];(0,k.D)(r,s),(0,k.D)(e.root.attrs.custom,s),(0,k.D)(i,s);var o=t[2];o.browserInteractionId=e.root.attrs.id,delete o._interactionId,o._interactionNodeId&&(o.parentNodeId=o._interactionNodeId.toString(),delete o._interactionNodeId);var a=t[1]+e.root.attrs.id+":"+y((0,S.P)(n));function s(e,t){n[e]=t&&"object"==x(t)?(0,S.P)(t):t}this.aggregator.store(t[0],a,o,t[3],n)})),delete this.errorCache[e.id])})),i.ee.on("interactionDiscarded",(function(e){this.errorCache&&this.errorCache[e.id]&&(this.errorCache[e.id].forEach((function(t){var n={},r=t[4],i=t[5];(0,k.D)(r,s),(0,k.D)(e.root.attrs.custom,s),(0,k.D)(i,s);var o=t[2];delete o._interactionId,delete o._interactionNodeId;var a=t[1]+":"+y((0,S.P)(n));function s(e,t){n[e]=t&&"object"==x(t)?(0,S.P)(t):t}this.aggregator.store(t[0],a,t[2],t[3],n)})),delete this.errorCache[e.id])})),(0,w.XN)("err",(function(){var e;return(e=i).storeError.apply(e,arguments)}),void 0,i.ee),(0,w.XN)("ierr",(function(){var e;return(e=i).storeError.apply(e,arguments)}),void 0,i.ee);var o=(0,T.Mt)(i.agentIdentifier,"jserrors.harvestTimeSeconds")||10,a=new E.o("jserrors",{onFinished:function(){var e;return(e=i).onHarvestFinished.apply(e,arguments)}},b(i));return a.harvest.on("jserrors",(function(){var e;return(e=i).onHarvestStarted.apply(e,arguments)})),a.startTimer(o),i}return v(n,[{key:"onHarvestStarted",value:function(e){var t=this.aggregator.take(["err","ierr"]);e.retry&&(this.currentBody=t);var n={body:t,qs:{}},r=(0,S.P)((0,j.O)(this.agentIdentifier).releaseIds);return"{}"!==r&&(n.qs.ri=r),t&&t.err&&t.err.length&&!this.errorOnPage&&(n.qs.pve="1",this.errorOnPage=!0),n}},{key:"onHarvestFinished",value:function(e){e.retry&&this.currentBody&&((0,k.D)(this.currentBody,(function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=this.getBucketName(r.params,r.custom);this.aggregator.merge(e,i,r.metrics,r.params,r.custom)}})),this.currentBody=null)}},{key:"nameHash",value:function(e){return y(e.exceptionClass)^e.stackHash}},{key:"getBucketName",value:function(e,t){return this.nameHash(e)+":"+y((0,S.P)(t))}},{key:"canonicalizeURL",value:function(e,t){if("string"!=typeof e)return"";var n=(0,P.f)(e);return n===t?"<inline>":n}},{key:"buildCanonicalStackString",value:function(e,t){for(var n="",r=0;r<e.frames.length;r++){var o=e.frames[r],a=i(o.func);n&&(n+="\n"),a&&(n+=a+"@"),"string"==typeof o.url&&(n+=o.url),o.line&&(n+=":"+o.line)}return n}},{key:"canonicalizeStackURLs",value:function(e){for(var t=(0,P.f)((0,j.O)(this.agentIdentifier).origin),n=0;n<e.frames.length;n++){var r=e.frames[n],i=r.url,o=this.canonicalizeURL(i,t);o&&o!==r.url&&(r.url=o,e.stackString=e.stackString.split(i).join(o))}return e}},{key:"storeError",value:function(e,t,n,r){if(t=t||(0,I.now)(),n||!(0,j.O)(this.agentIdentifier).onerror||!(0,j.O)(this.agentIdentifier).onerror(e)){var i,s=this.canonicalizeStackURLs(function(e){var t=null;try{if(t=function(e){if(!e.stack)return null;var t,n=(0,o.u)(e.stack.split("\n"),h,{frames:[],stackLines:[],wrapperSeen:!1});return n.frames.length?{mode:"stack",name:e.name||g(e),message:e.message,stackString:(t=n.stackLines,function(e){var t;if(e.length>100){var n=e.length-100;t=e.slice(0,50).join("\n"),t+="\n< ...truncated "+n+" lines... >\n",t+=e.slice(-50).join("\n")}else t=e.join("\n");return t}(t).replace(a,"")),frames:n.frames}:null}(e),t)return t}catch(e){}try{if(t=function(e){if(!("line"in e))return null;var t=e.name||g(e);if(!e.sourceURL)return{mode:"sourceline",name:t,message:e.message,stackString:g(e)+": "+e.message+"\n in evaluated code",frames:[{func:"evaluated code"}]};var n=t+": "+e.message+"\n at "+e.sourceURL;return e.line&&(n+=":"+e.line,e.column&&(n+=":"+e.column)),{mode:"sourceline",name:t,message:e.message,stackString:n,frames:[{url:e.sourceURL,line:e.line,column:e.column}]}}(e),t)return t}catch(e){}try{if(t=function(e){var t=e.name||g(e);return t?{mode:"nameonly",name:t,message:e.message,stackString:t+": "+e.message,frames:[]}:null}(e),t)return t}catch(e){}return{mode:"failed",stackString:"",frames:[]}}(e)),u={stackHash:y(this.buildCanonicalStackString(s)),exceptionClass:s.name,request_uri:window.location.pathname};s.message&&(u.message=""+s.message),this.stackReported[u.stackHash]?u.browser_stack_hash=y(s.stackString):(this.stackReported[u.stackHash]=!0,u.stack_trace=(i=s.stackString).length>65530?i.substr(0,65530):i),u.releaseIds=(0,S.P)((0,j.O)(this.agentIdentifier).releaseIds);var c=this.nameHash(u);this.pageviewReported[c]||(u.pageview=1,this.pageviewReported[c]=!0);var f=n?"ierr":"err",d={time:t};if((0,O.pr)("errorAgg",[f,c,u,d],void 0,void 0,this.ee),null!=u._interactionId)this.errorCache[u._interactionId]=this.errorCache[u._interactionId]||[],this.errorCache[u._interactionId].push([f,c,u,d,v,r]);else{var l={},v=(0,_.C)(this.agentIdentifier).jsAttributes;(0,k.D)(v,m),r&&(0,k.D)(r,m);var p=c+":"+y((0,S.P)(l));this.aggregator.store(f,p,u,d,l)}}function m(e,t){l[e]=t&&"object"==x(t)?(0,S.P)(t):t}}}]),n}(n(1839).W)},3825:function(e,t,n){"use strict";n.r(t),n.d(t,{Instrument:function(){return y}});var r=n(2995),i=n(2909),o=n(2997),a=n(9381),s=n(3097),u=n(7957),c=n.n(u),f=n(1839),d=window.onerror,h=!1,g="nr@seenError",y=function(e){p(n,e);var t=m(n);function n(e){var u;l(this,n),(u=t.call(this,e)).skipNext=0;var c=b(u);u.ee.on("fn-start",(function(e,t,n){h&&(this.skipNext=this.skipNext?this.skipNext+1:1)})),u.ee.on("fn-err",(function(e,t,n){h&&!n[g]&&((0,a.X)(n,g,(function(){return!0})),this.thrown=!0,x(n,void 0,c.ee))})),u.ee.on("fn-end",(function(){h&&!this.thrown&&this.skipNext>0&&(this.skipNext-=1)})),u.ee.on("internal-error",(function(e){(0,r.pr)("ierr",[e,(0,o.now)(),!0],void 0,void 0,u.ee)}));var f=window.onerror;window.onerror=function(){var e;return f&&f.apply(void 0,arguments),(e=u).onerrorHandler.apply(e,arguments),!1};try{window.addEventListener("unhandledrejection",(function(e){u.onerrorHandler(null,null,null,null,new Error(e.reason))}))}catch(e){}try{throw new Error}catch(e){"stack"in e&&((0,s.BV)(u.ee),(0,s.gy)(u.ee),"addEventListener"in window&&(0,s.em)(u.ee),(0,i.O)(u.agentIdentifier).xhrWrappable&&(0,s.Kf)(u.ee),h=!0)}return u}return v(n,[{key:"onerrorHandler",value:function(e,t,n,i,a){try{this.skipNext?this.skipNext-=1:x(a||new w(e,t,n),!0,this.ee)}catch(e){try{(0,r.pr)("ierr",[e,(0,o.now)(),!0],void 0,void 0,this.ee)}catch(e){}}return"function"==typeof d&&d.apply(this,c()(arguments))}}]),n}(f.W);function w(e,t,n){this.message=e||"Uncaught error with no additional information",this.sourceURL=t,this.line=n}function x(e,t,n){var i=t?null:(0,o.now)();(0,r.pr)("err",[e,i],void 0,void 0,n)}},9098:function(e,t,n){"use strict";n.r(t),n.d(t,{Aggregate:function(){return d}});var r=n(1558),i=n(1240),o=n(3406),a=n(2848),s=n(5988),u=n(6061),c=n(9729),f=n(2909),d=function(e){p(n,e);var t=m(n);function n(e,r){var i;return l(this,n),(i=t.call(this,e,r)).eventsPerMinute=240,i.harvestTimeSeconds=(0,u.Mt)("ins.harvestTimeSeconds")||30,i.eventsPerHarvest=i.eventsPerMinute*i.harvestTimeSeconds/60,i.referrerUrl,i.currentEvents,i.events=[],i.att={},(0,c.L)(i.agentIdentifier,{jsAttributes:i.att}),document.referrer&&(i.referrerUrl=(0,s.f)(document.referrer)),(0,o.XN)("api-setCustomAttribute",(function(){var e;return(e=i).setCustomAttribute.apply(e,arguments)}),"api",i.ee),i.ee.on("feat-ins",(function(){var e=this;(0,o.XN)("api-addPageAction",(function(){return e.addPageAction.apply(e,arguments)}),void 0,this.ee);var t=new a.o("ins",{onFinished:function(){return e.onHarvestFinished.apply(e,arguments)}},this);t.harvest.on("ins",(function(){return e.onHarvestStarted.apply(e,arguments)})),t.startTimer(this.harvestTimeSeconds,0)})),i}return v(n,[{key:"onHarvestStarted",value:function(e){var t=(0,c.C)(this.agentIdentifier),n={qs:{ua:t.userAttributes,at:t.atts},body:{ins:this.events}};return e.retry&&(this.currentEvents=this.events),this.events=[],n}},{key:"onHarvestFinished",value:function(e){e&&e.sent&&e.retry&&this.currentEvents&&(this.events=this.events.concat(this.currentEvents),this.currentEvents=null)}},{key:"addPageAction",value:function(e,t,n){if(!(this.events.length>=this.eventsPerHarvest)){var o,a,u={};"undefined"!=typeof window&&window.document&&window.document.documentElement&&(o=window.document.documentElement.clientWidth,a=window.document.documentElement.clientHeight);var c={timestamp:e+(0,f.O)(this.agentIdentifier).offset,timeSinceLoad:e/1e3,browserWidth:o,browserHeight:a,referrerUrl:this.referrerUrl,currentUrl:(0,s.f)(""+location),pageUrl:(0,s.f)((0,f.O)(this.agentIdentifier).origin),eventType:"PageAction"};(0,r.D)(c,d),(0,r.D)(this.att,d),n&&"object"==x(n)&&(0,r.D)(n,d),u.actionName=t||"",this.events.push(u)}function d(e,t){u[e]=t&&"object"==x(t)?(0,i.P)(t):t}}},{key:"setCustomAttribute",value:function(e,t,n){this.att[t]=n}}]),n}(n(1839).W)},2895:function(e,t,n){"use strict";n.r(t),n.d(t,{Instrument:function(){return i}});var r=n(2909),i=function(e){p(n,e);var t=m(n);function n(e){var i;return l(this,n),i=t.call(this,e),(0,r.O)(i.agentIdentifier).disabled||((0,r.O)(i.agentIdentifier).features.ins=!0),i}return v(n)}(n(1839).W)},3887:function(e,t,n){"use strict";n.r(t),n.d(t,{Aggregate:function(){return x}});var r=n(232),i=n(1558),o=n(353),a=[];function s(e,t){return u(e.type,0,t,"ty"),u(e.redirectCount,0,t,"rc"),t}function u(e,t,n,r){var i;"number"==typeof e&&e>0&&(i=Math.round(e-t),n[r]=i),a.push(i)}var c=n(1240),f={},d=n(870),h=n(6061),g=n(9729),y=n(2909),w=n(2848),x=function(e){p(n,e);var t=m(n);function n(e,a){var v;l(this,n),(v=t.call(this,e,a)).getScheme=function(){return!1===(0,h.Mt)(v.agentIdentifier,"ssl")?"http":"https"};var p=(0,g.C)(v.agentIdentifier);if(p.beacon){p.queueTime&&v.aggregator.store("measures","qt",{value:p.queueTime}),p.applicationTime&&v.aggregator.store("measures","ap",{value:p.applicationTime}),(0,r.L)(v.aggregator,"be","starttime","firstbyte"),(0,r.L)(v.aggregator,"fe","firstbyte","onload"),(0,r.L)(v.aggregator,"dc","firstbyte","domContent");var m,x,E,S=v.aggregator.get("measures"),O=(0,i.D)(S,(function(e,t){return"&"+e+"="+t.params.value})).join(""),k=[new w.o("page-view-event",{},b(v)).harvest.baseQueryString()];if(k.push(O),k.push((0,o.wu)("tt",p.ttGuid)),k.push((0,o.wu)("us",p.user)),k.push((0,o.wu)("ac",p.account)),k.push((0,o.wu)("pr",p.product)),k.push((0,o.wu)("af",(0,i.D)((0,y.O)(v.agentIdentifier).features,(function(e){return e})).join(","))),window.performance&&void 0!==window.performance.timing){var T={timing:(m=window.performance.timing,x={},E=m.navigationStart,x.of=E,u(E,E,x,"n"),u(m.unloadEventStart,E,x,"u"),u(m.redirectStart,E,x,"r"),u(m.unloadEventEnd,E,x,"ue"),u(m.redirectEnd,E,x,"re"),u(m.fetchStart,E,x,"f"),u(m.domainLookupStart,E,x,"dn"),u(m.domainLookupEnd,E,x,"dne"),u(m.connectStart,E,x,"c"),u(m.secureConnectionStart,E,x,"s"),u(m.connectEnd,E,x,"ce"),u(m.requestStart,E,x,"rq"),u(m.responseStart,E,x,"rp"),u(m.responseEnd,E,x,"rpe"),u(m.domLoading,E,x,"dl"),u(m.domInteractive,E,x,"di"),u(m.domContentLoadedEventStart,E,x,"ds"),u(m.domContentLoadedEventEnd,E,x,"de"),u(m.domComplete,E,x,"dc"),u(m.loadEventStart,E,x,"l"),u(m.loadEventEnd,E,x,"le"),x),navigation:s(window.performance.navigation,{})};k.push((0,o.wu)("perf",(0,c.P)(T)))}if(window.performance&&window.performance.getEntriesByType){var j=window.performance.getEntriesByType("paint");j&&j.length>0&&j.forEach((function(e){var t,n;!e.startTime||e.startTime<=0||("first-paint"===e.name?k.push((0,o.wu)("fp",String(Math.floor(e.startTime)))):"first-contentful-paint"===e.name&&k.push((0,o.wu)("fcp",String(Math.floor(e.startTime)))),t=e.name,n=Math.floor(e.startTime),f[t]=n)}))}k.push((0,o.wu)("xx",p.extra)),k.push((0,o.wu)("ua",p.userAttributes)),k.push((0,o.wu)("at",p.atts));var _=(0,c.P)(p.jsAttributes);k.push((0,o.wu)("ja","{}"===_?null:_));var I=(0,o.nI)(k,(0,y.O)(v.agentIdentifier).maxBytes);d.T.jsonp(v.getScheme()+"://"+p.beacon+"/1/"+p.licenseKey+I,"NREUM.setToken")}return v}return v(n)}(n(1839).W)},8161:function(e,t,n){"use strict";n.r(t),n.d(t,{Instrument:function(){return f}});var r=n(2995),i=n(2997),o=n(1839),a=n(4518),s=window,u=s.document;function c(e){"complete"===u.readyState&&e()}var f=function(e){p(n,e);var t=m(n);function n(e){var o,f;return l(this,n),o=t.call(this,e),(0,r.pr)("mark",["firstbyte",(0,i.getLastTimestamp)()],null,"api",o.ee),f=function(){return o.measureWindowLoaded()},u.addEventListener?s.addEventListener("load",f,(0,a.m)(!1)):s.attachEvent("onload",f),u.addEventListener?u.addEventListener("DOMContentLoaded",(function(){return o.measureDomContentLoaded()}),(0,a.m)(!1)):u.attachEvent("onreadystatechange",c),o}return v(n,[{key:"measureWindowLoaded",value:function(){var e=(0,i.now)();(0,r.pr)("mark",["onload",e+(0,i.getOffset)()],null,"api",this.ee),(0,r.pr)("timing",["load",e],void 0,void 0,this.ee)}},{key:"measureDomContentLoaded",value:function(){(0,r.pr)("mark",["domContent",(0,i.now)()+(0,i.getOffset)()],null,"api",this.ee)}}]),n}(o.W)},8617:function(e,t,n){"use strict";n.r(t),n.d(t,{Aggregate:function(){return d}});var r=n(151),i=n(2997),o=n(1558),a=n(2848),s=n(3406),u=n(5988),c=n(2995),f=n(9729),d=function(e){p(n,e);var t=m(n);function n(e,r){var i;l(this,n),(i=t.call(this,e,r)).timings=[],i.timingsSent=[],i.lcpRecorded=!1,i.lcp=null,i.clsSupported=!1,i.cls=0,i.clsSession={value:0,firstEntryTime:0,lastEntryTime:0},i.pageHideRecorded=!1,i.harvestTimeSeconds=30;try{clsSupported=PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch(e){}i.options||(i.options={});var o=i.options.maxLCPTimeSeconds||60,u=i.options.initialHarvestSeconds||10;return i.harvestTimeSeconds=i.options.harvestTimeSeconds||30,i.scheduler=new a.o("events",{onFinished:function(){var e;return(e=i).onHarvestFinished.apply(e,arguments)},getPayload:function(){var e;return(e=i).prepareHarvest.apply(e,arguments)},onUnload:function(){return i.finalHarvest()}},b(i)),(0,s.rP)("timing",(function(){var e;return(e=i).processTiming.apply(e,arguments)}),void 0,i.ee),(0,s.rP)("lcp",(function(){var e;return(e=i).updateLatestLcp.apply(e,arguments)}),void 0,i.ee),(0,s.rP)("cls",(function(){var e;return(e=i).updateClsScore.apply(e,arguments)}),void 0,i.ee),(0,s.rP)("pageHide",(function(){var e;return(e=i).updatePageHide.apply(e,arguments)}),void 0,i.ee),setTimeout((function(){i.recordLcp(),i.lcpRecorded=!0}),1e3*o),i.scheduler.startTimer(i.harvestTimeSeconds,u),i}return v(n,[{key:"recordLcp",value:function(){if(!this.lcpRecorded&&null!==this.lcp){var e=this.lcp[0],t=this.lcp[1],n=this.lcp[2],r={size:e.size,eid:e.id};n&&(n["net-type"]&&(r["net-type"]=n["net-type"]),n["net-etype"]&&(r["net-etype"]=n["net-etype"]),n["net-rtt"]&&(r["net-rtt"]=n["net-rtt"]),n["net-dlink"]&&(r["net-dlink"]=n["net-dlink"])),e.url&&(r.elUrl=(0,u.f)(e.url)),e.element&&e.element.tagName&&(r.elTag=e.element.tagName),(t>0||this.clsSupported)&&(r.cls=t),this.addTiming("lcp",Math.floor(e.startTime),r,!1),this.lcpRecorded=!0}}},{key:"updateLatestLcp",value:function(e,t){this.lcp&&this.lcp[0].size>=e.size||(this.lcp=[e,this.cls,t])}},{key:"updateClsScore",value:function(e){(e.startTime-this.clsSession.lastEntryTime>1e3||e.startTime-this.clsSession.firstEntryTime>5e3)&&(this.clsSession={value:0,firstEntryTime:e.startTime,lastEntryTime:e.startTime}),this.clsSession.value+=e.value,this.clsSession.lastEntryTime=Math.max(this.clsSession.lastEntryTime,e.startTime),this.cls<this.clsSession.value&&(this.cls=this.clsSession.value)}},{key:"updatePageHide",value:function(e){this.pageHideRecorded||(this.addTiming("pageHide",e,null,!0),this.pageHideRecorded=!0)}},{key:"recordUnload",value:function(){this.updatePageHide((0,i.now)()),this.addTiming("unload",(0,i.now)(),null,!0)}},{key:"addTiming",value:function(e,t,n,r){n=n||{},(this.cls>0||this.clsSupported)&&r&&(n.cls=this.cls),this.timings.push({name:e,value:t,attrs:n}),(0,c.pr)("pvtAdded",[e,t,n])}},{key:"processTiming",value:function(e,t,n){"fi"===e&&setTimeout(this.recordLcp,0),this.addTiming(e,t,n,!0)}},{key:"onHarvestFinished",value:function(e){if(e.retry&&this.timingsSent.length>0){for(var t=0;t<this.timingsSent.length;t++)this.timings.push(this.timingsSent[t]);this.timingsSent=[]}}},{key:"finalHarvest",value:function(){this.recordLcp(),this.recordUnload();var e=this.prepareHarvest({retry:!1});this.scheduler.harvest.send("events",e,{unload:!0})}},{key:"appendGlobalCustomAttributes",value:function(e){var t=e.attrs||{},n=(0,f.C)(this.agentIdentifier).jsAttributes||{},r=["size","eid","cls","type","fid","elTag","elUrl","net-type","net-etype","net-rtt","net-dlink"];(0,o.D)(n,(function(e,n){r.indexOf(e)<0&&(t[e]=n)}))}},{key:"prepareHarvest",value:function(e){if(0!==this.timings.length){var t=this.getPayload(this.timings);if(e.retry)for(var n=0;n<this.timings.length;n++)this.timingsSent.push(this.timings[n]);return this.timings=[],{body:{e:t}}}}},{key:"getPayload",value:function(e){for(var t=(0,r.FX)(),n="bel.6;",i=0;i<e.length;i++){var o=e[i];n+="e,",n+=t(o.name)+",",n+=(0,r.AG)(o.value,r.uR,!1)+",",this.appendGlobalCustomAttributes(o);var a=(0,r.n1)(o.attrs,t);a&&a.length>0&&(n+=(0,r.uR)(a.length)+";"+a.join(";")),i+1<e.length&&(n+=";")}return n}}]),n}(n(1839).W)},8396:function(e,t,n){"use strict";n.r(t),n.d(t,{Instrument:function(){return d}});var r,i,o,a=n(2995),s=n(4518);void 0!==document.hidden?(r="hidden",i="visibilitychange",o="visibilityState"):void 0!==document.msHidden?(r="msHidden",i="msvisibilitychange"):void 0!==document.webkitHidden&&(r="webkitHidden",i="webkitvisibilitychange",o="webkitVisibilityState");var u=n(8240),c=n(2997),f=n(6061),d=function(e){p(n,e);var t=m(n);function n(e){var a,u;if(l(this,n),(a=t.call(this,e)).pageHiddenTime,a.performanceObserver,a.lcpPerformanceObserver,a.clsPerformanceObserver,a.fiRecorded=!1,a.isEnabled()){if("PerformanceObserver"in window&&"function"==typeof window.PerformanceObserver){a.performanceObserver=new PerformanceObserver(perfObserver);try{a.performanceObserver.observe({entryTypes:["paint"]})}catch(e){}a.lcpPerformanceObserver=new PerformanceObserver(lcpObserver);try{a.lcpPerformanceObserver.observe({entryTypes:["largest-contentful-paint"]})}catch(e){}a.clsPerformanceObserver=new PerformanceObserver(clsObserver);try{a.clsPerformanceObserver.observe({type:"layout-shift",buffered:!0})}catch(e){}}"addEventListener"in document&&(a.fiRecorded=!1,["click","keydown","mousedown","pointerdown","touchstart"].forEach((function(e){document.addEventListener(e,(function(){var e;return(e=a).captureInteraction.apply(e,arguments)}),(0,s.m)(!1))}))),u=function(){var e;return(e=a).captureVisibilityChange.apply(e,arguments)},"addEventListener"in document&&i&&document.addEventListener(i,(function(){o&&document[o]?u(document[o]):document[r]?u("hidden"):u("visible")}),(0,s.m)(!1))}return y(a)}return v(n,[{key:"isEnabled",value:function(){return!1!==(0,f.Mt)(this.agentIdentifier,"page_view_timing.enabled")}},{key:"perfObserver",value:function(e,t){var n=this;e.getEntries().forEach((function(e){"first-paint"===e.name?(0,a.pr)("timing",["fp",Math.floor(e.startTime)],void 0,void 0,n.ee):"first-contentful-paint"===e.name&&(0,a.pr)("timing",["fcp",Math.floor(e.startTime)],void 0,void 0,n.ee)}))}},{key:"lcpObserver",value:function(e,t){var n=e.getEntries();if(n.length>0){var r=n[n.length-1];if(this.pageHiddenTime&&this.pageHiddenTime<r.startTime)return;var i=[r],o=this.addConnectionAttributes({});o&&i.push(o),(0,a.pr)("lcp",i,void 0,void 0,this.ee)}}},{key:"clsObserver",value:function(e){e.getEntries().forEach((function(e){e.hadRecentInput||(0,a.pr)("cls",[e],void 0,void 0,this.ee)}))}},{key:"addConnectionAttributes",value:function(e){var t=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(t)return t.type&&(e["net-type"]=t.type),t.effectiveType&&(e["net-etype"]=t.effectiveType),t.rtt&&(e["net-rtt"]=t.rtt),t.downlink&&(e["net-dlink"]=t.downlink),e}},{key:"captureInteraction",value:function(e){if(e instanceof(0,u.gosNREUM)().o.EV&&!this.fiRecorded){var t=Math.round(e.timeStamp),n={type:e.type};this.addConnectionAttributes(n),t<=(0,c.now)()?n.fid=(0,c.now)()-t:t>(0,c.getOffset)()&&t<=Date.now()?(t-=(0,c.getOffset)(),n.fid=(0,c.now)()-t):t=(0,c.now)(),this.fiRecorded=!0,(0,a.pr)("timing",["fi",t,n],void 0,void 0,this.ee)}}},{key:"captureVisibilityChange",value:function(e){"hidden"===e&&(this.pageHiddenTime=(0,c.now)(),(0,a.pr)("pageHide",[this.pageHiddenTime],void 0,void 0,this.ee))}}]),n}(n(1839).W)},842:function(e,t,n){"use strict";n.r(t),n.d(t,{Aggregate:function(){return S}});var r=n(3406),i=n(6943),o=n(2848),a=n(1558),s=n(8354),u=n(1240),c=n(4017),f=n(6219),d=n(7957),h=n.n(d),g=n(6061),b=n(2909),w=n(9729),x=n(3706),E=n(2997),S=function(e){p(n,e);var t=m(n);function n(e,s){var u;if(l(this,n),(u=t.call(this,e,s)).ptid="",u.ignoredEvents={global:{mouseup:!0,mousedown:!0},window:{load:!0,pagehide:!0}},u.toAggregate={typing:[1e3,2e3],scrolling:[100,1e3],mousing:[1e3,2e3],touching:[1e3,2e3]},u.rename={typing:{keydown:!0,keyup:!0,keypress:!0},mousing:{mousemove:!0,mouseenter:!0,mouseleave:!0,mouseover:!0,mouseout:!0},scrolling:{scroll:!0},touching:{touchstart:!0,touchmove:!0,touchend:!0,touchcancel:!0,touchenter:!0,touchleave:!0}},u.trace={},u.nodeCount=0,u.sentTrace=null,u.harvestTimeSeconds=(0,g.Mt)(u.agentIdentifier,"stn.harvestTimeSeconds")||10,u.maxNodesPerHarvest=(0,g.Mt)(u.agentIdentifier,"stn.maxNodesPerHarvest")||1e3,u.laststart=0,(0,x.v)(),i.y0&&(0,b.O)(u.agentIdentifier).features.stn){u.storeTiming(window.performance.timing);var c=new o.o("resources",{onFinished:function(){return function(e){e.sent&&e.responseText&&!this.ptid&&(this.ptid=e.responseText,(0,b.O)(this.agentIdentifier).ptid=this.ptid,c.startTimer(this.harvestTimeSeconds)),e.sent&&e.retry&&this.sentTrace&&((0,a.D)(this.sentTrace,(function(e,t){this.mergeSTNs(e,t)})),this.sentTrace=null)}.apply(void 0,arguments)},retryDelay:function(){var e;return(e=u).harvestTimeSeconds.apply(e,arguments)}});c.runHarvest({needResponse:!0}),c.harvest.on("resources",(function(){return function(e){return(0,E.now)()>9e5?(c.stopTimer(),void(this.trace={})):this.ptid&&this.nodeCount<=30?void 0:this.takeSTNs(e.retry)}.apply(void 0,arguments)})),(0,r.XN)("bst",(function(){var e;return(e=u).storeEvent.apply(e,arguments)}),void 0,u.ee),(0,r.XN)("bstTimer",(function(){var e;return(e=u).storeTimer.apply(e,arguments)}),void 0,u.ee),(0,r.XN)("bstResource",(function(){var e;return(e=u).storeResources.apply(e,arguments)}),void 0,u.ee),(0,r.XN)("bstHist",(function(){var e;return(e=u).storeHist.apply(e,arguments)}),void 0,u.ee),(0,r.XN)("bstXhrAgg",(function(){var e;return(e=u).storeXhrAgg.apply(e,arguments)}),void 0,u.ee),(0,r.XN)("bstApi",(function(){var e;return(e=u).storeSTN.apply(e,arguments)}),void 0,u.ee),(0,r.XN)("errorAgg",(function(){var e;return(e=u).storeErrorAgg.apply(e,arguments)}),void 0,u.ee),(0,r.XN)("pvtAdded",(function(){var e;return(e=u).processPVT.apply(e,arguments)}),void 0,u.ee)}return y(u)}return v(n,[{key:"processPVT",value:function(e,t,n){var r={};r[e]=t,this.storeTiming(r,!0),this.hasFID(e,n)&&this.storeEvent({type:"fid",target:"document"},"document",t,t+n.fid)}},{key:"storeTiming",value:function(e,t){var n,r,i,o=Date.now();for(n in e)"number"==typeof(r=e[n])&&r>0&&r<o&&(i=t?e[n]:e[n]-(0,b.O)(this.agentIdentifier).offset,this.storeSTN({n:n,s:i,e:i,o:"document",t:"timing"}))}},{key:"storeTimer",value:function(e,t,n,r){var i="timer";"requestAnimationFrame"===r&&(i=r);var o={n:r,s:t,e:n,o:"window",t:i};this.storeSTN(o)}},{key:"storeEvent",value:function(e,t,n,r){if(this.shouldIgnoreEvent(e,t))return!1;var i={n:this.evtName(e.type),s:n,e:r,t:"event"};try{i.o=this.evtOrigin(e.target,t)}catch(e){i.o=this.evtOrigin(null,t)}this.storeSTN(i)}},{key:"evtName",value:function(e){var t=e;return(0,a.D)(this.rename,(function(n,r){e in r&&(t=n)})),t}},{key:"evtOrigin",value:function(e,t){var n="unknown";if(e&&e instanceof XMLHttpRequest){var r=this.ee.context(e).params;n=r.status+" "+r.method+": "+r.host+r.pathname}else e&&"string"==typeof e.tagName&&(n=e.tagName.toLowerCase(),e.id&&(n+="#"+e.id),e.className&&(n+="."+h()(e.classList).join(".")));return"unknown"===n&&("string"==typeof t?n=t:t===document?n="document":t===window?n="window":t instanceof FileReader&&(n="FileReader")),n}},{key:"storeHist",value:function(e,t,n){var r={n:"history.pushState",s:n,e:n,o:e,t:t};this.storeSTN(r)}},{key:"storeResources",value:function(e){e&&0!==e.length&&(e.forEach((function(e){var t=(0,c.e)(e.name),n={n:e.initiatorType,s:0|e.fetchStart,e:0|e.responseEnd,o:t.protocol+"://"+t.hostname+":"+t.port+t.pathname,t:e.entryType};n.s<=this.laststart||this.storeSTN(n)})),this.laststart=0|e[e.length-1].fetchStart)}},{key:"storeErrorAgg",value:function(e,t,n,r){if("err"===e){var i={n:"error",s:r.time,e:r.time,o:n.message,t:n.stackHash};this.storeSTN(i)}}},{key:"storeXhrAgg",value:function(e,t,n,r){if("xhr"===e){var i={n:"Ajax",s:r.time,e:r.time+r.duration,o:n.status+" "+n.method+": "+n.host+n.pathname,t:"ajax"};this.storeSTN(i)}}},{key:"storeSTN",value:function(e){if(!(this.nodeCount>=this.maxNodesPerHarvest)){var t=this.trace[e.n];t||(t=this.trace[e.n]=[]),t.push(e),this.nodeCount++}}},{key:"mergeSTNs",value:function(e,t){if(!(this.nodeCount>=this.maxNodesPerHarvest)){var n=this.trace[e];n||(n=this.trace[e]=[]),this.trace[e]=t.concat(n),this.nodeCount+=t.length}}},{key:"takeSTNs",value:function(e){(0,f.W)()||this.storeResources(window.performance.getEntriesByType("resource"));var t=(0,s.u)((0,a.D)(this.trace,(function(e,t){return e in this.toAggregate?(0,s.u)((0,a.D)((0,s.u)(t.sort(this.byStart),this.smearEvtsByOrigin(e),{}),this.val),this.flatten,[]):t})),this.flatten,[]);if(0===t.length)return{};e&&(this.sentTrace=this.trace),this.trace={},this.nodeCount=0;var n={qs:{st:""+(0,b.O)(this.agentIdentifier).offset},body:{res:t}};if(!this.ptid){var r=(0,w.C)(this.agentIdentifier),i=r.userAttributes,o=r.atts,c=r.jsAttributes;n.qs.ua=i,n.qs.at=o;var d=(0,u.P)(c);n.qs.ja="{}"===d?null:d}return n}},{key:"byStart",value:function(e,t){return e.s-t.s}},{key:"smearEvtsByOrigin",value:function(e){var t=this.toAggregate[e][0],n=this.toAggregate[e][1],r={};return function(i,o){var a=i[o.o];a||(a=i[o.o]=[]);var s=r[o.o];return"scrolling"!==e||this.trivial(o)?s&&o.s-s.s<n&&s.e>o.s-t?s.e=o.e:(r[o.o]=o,a.push(o)):(r[o.o]=null,o.n="scroll",a.push(o)),i}}},{key:"val",value:function(e,t){return t}},{key:"flatten",value:function(e,t){return e.concat(t)}},{key:"hasFID",value:function(e,t){return"fi"===e&&!!t&&"number"==typeof t.fid}},{key:"trivial",value:function(e){return!!(e&&"number"==typeof e.e&&"number"==typeof e.s&&e.e-e.s<4)}},{key:"shouldIgnoreEvent",value:function(e,t){var n=this.evtOrigin(e.target,t);return e.type in this.ignoredEvents.global||!(!this.ignoredEvents[n]||!(e.type in this.ignoredEvents[n]))}}]),n}(n(1839).W)},5873:function(e,t,n){"use strict";n.r(t),n.d(t,{Instrument:function(){return x}});var r=n(2995),i=n(3097),o=n(6219),a=n(4518),s=n(5307),u=n(2909),c=n(2997),f=n(1839),d="resourcetimingbufferfull",h="bstResource",g="fn-start",y="fn-end",b="bstTimer",w=s.Y.EV,x=function(e){p(n,e);var t=m(n);function n(e){var s;return l(this,n),s=t.call(this,e),(0,u.O)(s.agentIdentifier).features.stn=!0,s.timerEE=(0,i.BV)(s.ee),s.rafEE=(0,i.gy)(s.ee),(0,i.QU)(s.ee),(0,i.em)(s.ee),window.performance&&window.performance.timing&&window.performance.getEntriesByType&&(s.ee.on(g,(function(e,t){e[0]instanceof w&&(this.bstStart=(0,c.now)())})),s.ee.on(y,(function(e,t){var n=e[0];n instanceof w&&(0,r.pr)("bst",[n,t,this.bstStart,(0,c.now)()])})),s.timerEE.on(g,(function(e,t,n){this.bstStart=(0,c.now)(),this.bstType=n})),s.timerEE.on(y,(function(e,t){(0,r.pr)(b,[t,this.bstStart,(0,c.now)(),this.bstType])})),s.rafEE.on(g,(function(){this.bstStart=(0,c.now)()})),s.rafEE.on(y,(function(e,t){(0,r.pr)(b,[t,this.bstStart,(0,c.now)(),"requestAnimationFrame"])})),s.ee.on("pushState-start",(function(e){this.time=(0,c.now)(),this.startPath=location.pathname+location.hash})),s.ee.on("pushState-end",(function(e){(0,r.pr)("bstHist",[location.pathname+location.hash,this.startPath,this.time])})),(0,o.W)()?((0,r.pr)(h,[window.performance.getEntriesByType("resource")]),s.observeResourceTimings()):"addEventListener"in window.performance&&(window.performance.clearResourceTimings?window.performance.addEventListener(d,s.onResourceTimingBufferFull,(0,a.m)(!1)):window.performance.addEventListener("webkitresourcetimingbufferfull",s.onResourceTimingBufferFull,(0,a.m)(!1))),document.addEventListener("scroll",s.noOp,(0,a.m)(!1)),document.addEventListener("keypress",s.noOp,(0,a.m)(!1)),document.addEventListener("click",s.noOp,(0,a.m)(!1))),s}return v(n,[{key:"observeResourceTimings",value:function(){var e=new PerformanceObserver((function(e,t){var n=e.getEntries();(0,r.pr)(h,[n])}));try{e.observe({entryTypes:["resource"]})}catch(e){}}},{key:"onResourceTimingBufferFull",value:function(e){if((0,r.pr)(h,[window.performance.getEntriesByType("resource")]),window.performance.clearResourceTimings)try{window.performance.removeEventListener(d,this.onResourceTimingBufferFull,!1)}catch(e){}else try{window.performance.removeEventListener("webkitresourcetimingbufferfull",this.onResourceTimingBufferFull,!1)}catch(e){}}},{key:"noOp",value:function(e){}}]),n}(f.W)},7957:function(e){e.exports=function(e,t,n){t||(t=0),void 0===n&&(n=e?e.length:0);for(var r=-1,i=n-t||0,o=Array(i<0?0:i);++r<i;)o[r]=e[t+r];return o}},3648:function(e,t,n){var r={"./ajax/aggregate":74,"./js-errors/aggregate":7326,"./page-action/aggregate":9098,"./page-view-event/aggregate":3887,"./page-view-timing/aggregate":8617,"./session-trace/aggregate":842};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=3648},8346:function(e,t,n){var r={"./ajax/instrument":9770,"./js-errors/instrument":3825,"./page-action/instrument":2895,"./page-view-event/instrument":8161,"./page-view-timing/instrument":8396,"./session-trace/instrument":5873};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=8346},3607:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserAgent=void 0;var o=n(9230),a=n(8149),s=n(3263),u=n(418),c=n(3831),f=n(8240),d=n(8053),l=n(4460),h=function(){function e(){var e=this;this._initialized=!1,this._id=(0,d.generateRandomHexString)(16),this._api=new a.Api(this),this._aggregator=new l.Aggregator({agentIdentifier:this._id}),this.features=new u.Features,this.start=function(t){return r(e,void 0,void 0,(function(){var e,n,r,a,u;return i(this,(function(i){switch(i.label){case 0:return this._initialized?[2,!1]:(this._initialized=!0,e=(0,s.buildConfigs)(t),n=e.info,r=e.config,a=e.loader_config,n&&(0,o.setInfo)(this._id,n),r&&(0,o.setConfiguration)(this._id,r),a&&(0,o.setLoaderConfig)(this._id,r),(0,o.setRuntime)(this._id,{maxBytes:3e4}),[4,(0,c.initializeFeatures)(this._id,this._api,this._aggregator,this.features)]);case 1:return u=i.sent(),(0,f.gosNREUMInitializedAgents)(this._id,u,"features"),[2,!0]}}))}))},this.noticeError=function(t,n){return e._api.noticeError(t,n)}}return Object.defineProperty(e.prototype,"config",{get:function(){return{info:(0,o.getInfo)(this._id),config:(0,o.getConfiguration)(this._id),loader_config:(0,o.getLoaderConfig)(this._id)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"initialized",{get:function(){return this._initialized},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e}();t.BrowserAgent=h,t.default=h},9699:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NrFeatures=t.NrFeature=void 0;var n=function(){function e(e){this.name=e,this._enabled=!0,this._auto=!0}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=Boolean(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"auto",{get:function(){return this._auto},set:function(e){this._auto=e},enumerable:!1,configurable:!0}),e}();t.NrFeature=n,(t.NrFeatures||(t.NrFeatures={})).JSERRORS="js-errors"},8149:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Api=void 0;var r=n(9699),i=n(2997),o=function(){function e(e){this.importedMethods={storeError:null},this._initialized=!1,this._initialized=!0,this._parent=e}return e.prototype.noticeError=function(e,t){if(this._initialized&&this.importedMethods.storeError){if("string"!=typeof e&&!(e instanceof Error))return o=e,void console.warn('"'.concat("noticeError",'" was called with an invalid argument: ').concat(o,". This method only accepts ").concat("Error | String"," types for that argument."));e="string"==typeof e?new Error(e):e;var n=(0,i.now)();return this.importedMethods.storeError(e,n,!1,t)}var o,a,s;return this._parent.initialized||this.importedMethods.storeError?this._parent.initialized&&!this.importedMethods.storeError?function(e,t,n){console.warn("The ".concat(t," Feature of agent ").concat(e,' Has Been Disabled. Method "').concat("noticeError",'" will not do anything!'))}(this._parent.id,r.NrFeatures.JSERRORS):void 0:(a=this._parent.id,s=r.NrFeatures.JSERRORS,void console.warn("Agent ".concat(a," is calling a ").concat(s," Feature API, but the Browser Agent has not been started... Please start the agent using .start({...opts})")))},e}();t.Api=o},3263:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildConfigs=void 0,t.buildConfigs=function(e){var t={beacon:"",errorBeacon:void 0,licenseKey:"",applicationID:"",sa:void 0,queueTime:void 0,applicationTime:void 0,ttGuid:void 0,user:void 0,account:void 0,product:void 0,extra:void 0,userAttributes:void 0,atts:void 0,transactionName:void 0,tNamePlain:void 0},n={privacy:{cookies_enabled:void 0},ajax:{deny_list:void 0},distributed_tracing:{enabled:void 0,exclude_newrelic_header:void 0,cors_use_newrelic_header:void 0,cors_use_tracecontext_headers:void 0,allowed_origins:void 0},page_view_timing:{enabled:void 0},ssl:void 0,obfuscate:void 0},r={accountID:void 0,trustKey:void 0,agentID:void 0,licenseKey:"",applicationID:"",xpid:void 0};return Object.keys(e).forEach((function(i){"beacon"===i&&(t.beacon=e[i],t.errorBeacon=e[i]),Object.keys(t).includes(i)&&(t[i]=e[i]),Object.keys(n).includes(i)&&(n[i]=e[i]),Object.keys(r).includes(i)&&(r[i]=e[i])})),function(e){return!(!e.applicationID||!e.licenseKey||!e.beacon)}(t)&&function(e){return!(!e.applicationID||!e.licenseKey)}(r)||console.warn("Missing required config data"),{info:t,config:n,loader_config:r}}},418:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Features=void 0;var r=n(9699),i=function(){function e(){this.errors=new r.NrFeature(r.NrFeatures.JSERRORS)}return e.prototype.getEnabledFeatures=function(){return Object.values(this).filter((function(e){return e.enabled}))},e}();t.Features=i},3831:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.initializeFeatures=void 0;var u=n(9699);t.initializeFeatures=function(e,t,r,i){var c=this;return Promise.all(i.getEnabledFeatures().map((function(i){return a(c,void 0,void 0,(function(){var a,c;return s(this,(function(s){switch(s.label){case 0:return i.auto?[4,Promise.resolve().then((function(){return o(n(8346)("./".concat(i.name,"/instrument")))}))]:[3,2];case 1:new(0,s.sent().Instrument)(e),s.label=2;case 2:return[4,Promise.resolve().then((function(){return o(n(3648)("./".concat(i.name,"/aggregate")))}))];case 3:return a=s.sent().Aggregate,c=new a(e,r),i.name===u.NrFeatures.JSERRORS&&(t.importedMethods.storeError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return c.storeError.apply(c,e)}),[2,i.name]}}))}))})))}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(3607)}()},"object"==x(t)&&"object"==x(e)?e.exports=a():(i=[],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o))}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r](o,o.exports,n),o.loaded=!0,o.exports}return n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n(380)}()}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.NRBA=t():e.NRBA=t()}(self,(function(){return function(){var e={380:function(e,t,n){var r,i,o,a;function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var i=w(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){if(t&&("object"===x(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return b(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}e=n.nmd(e),self,a=function(){return function(){var e={4460:function(e,t,n){"use strict";n.r(t),n.d(t,{Aggregator:function(){return o}});var r=n(6469),i=n(1558),o=function(e){p(n,e);var t=m(n);function n(e){var r;return l(this,n),(r=t.call(this,e)).aggregatedData={},r}return v(n,[{key:"store",value:function(e,t,n,r,o){var s=this.getBucket(e,t,n,o);return s.metrics=function(e,t){return t||(t={count:0}),t.count+=1,(0,i.D)(e,(function(e,n){t[e]=a(n,t[e])})),t}(r,s.metrics),s}},{key:"merge",value:function(e,t,n,r,o){var u=this.getBucket(e,t,r,o);if(u.metrics){var c=u.metrics;c.count+=n.count,(0,i.D)(n,(function(e,t){if("count"!==e){var r=c[e],i=n[e];i&&!i.c?c[e]=a(i.t,r):c[e]=function(e,t){return t?(t.c||(t=s(t.t)),t.min=Math.min(e.min,t.min),t.max=Math.max(e.max,t.max),t.t+=e.t,t.sos+=e.sos,t.c+=e.c,t):e}(i,c[e])}}))}else u.metrics=n}},{key:"storeMetric",value:function(e,t,n,r){var i=this.getBucket(e,t,n);return i.stats=a(r,i.stats),i}},{key:"getBucket",value:function(e,t,n,r){this.aggregatedData[e]||(this.aggregatedData[e]={});var i=this.aggregatedData[e][t];return i||(i=this.aggregatedData[e][t]={params:n||{}},r&&(i.custom=r)),i}},{key:"get",value:function(e,t){return t?this.aggregatedData[e]&&this.aggregatedData[e][t]:this.aggregatedData[e]}},{key:"take",value:function(e){for(var t={},n="",r=!1,o=0;o<e.length;o++)t[n=e[o]]="object"!=x(a=this.aggregatedData[n])?[]:(0,i.D)(a,u),t[n].length&&(r=!0),delete this.aggregatedData[n];var a;return r?t:null}}]),n}(r.w);function a(e,t){return null==e?function(e){return e?e.c++:e={c:1},e}(t):t?(t.c||(t=s(t.t)),t.c+=1,t.t+=e,t.sos+=e*e,e>t.max&&(t.max=e),e<t.min&&(t.min=e),t):{t:e}}function s(e){return{t:e,min:e,max:e,sos:e*e,c:1}}function u(e,t){return t}},2572:function(e,t,n){"use strict";n.d(t,{I:function(){return r}});var r=0,i=navigator.userAgent.match(/Firefox[\/\s](\d+\.\d+)/);i&&(r=+i[1])},3821:function(e,t,n){"use strict";n.d(t,{H:function(){return i}});var r=document.createElement("div");r.innerHTML="\x3c!--[if lte IE 6]><div></div><![endif]--\x3e\x3c!--[if lte IE 7]><div></div><![endif]--\x3e\x3c!--[if lte IE 8]><div></div><![endif]--\x3e\x3c!--[if lte IE 9]><div></div><![endif]--\x3e";var i,o=r.getElementsByTagName("div").length;i=4===o?6:3===o?7:2===o?8:1===o?9:0},9230:function(e,t,n){"use strict";n.r(t),n.d(t,{getConfiguration:function(){return i.P_},getConfigurationValue:function(){return i.Mt},getInfo:function(){return r.C},getLoaderConfig:function(){return o.D},getRuntime:function(){return s.O},originals:function(){return a.Y},setConfiguration:function(){return i.Dg},setInfo:function(){return r.L},setLoaderConfig:function(){return o.G},setRuntime:function(){return s.s}});var r=n(9729),i=n(6061),o=n(5501),a=n(5307),s=n(2909)},9754:function(e,t,n){"use strict";n.d(t,{I:function(){return r}});var r=v((function e(t,n){var r=this;return l(this,e),t&&"object"==x(t)?n&&"object"==x(n)?(Object.assign(this,n),void Object.entries(t).forEach((function(e){var t=f(e,2),i=t[0],o=t[1];Object.keys(n).includes(i)&&(r[i]=o)}))):console.error("setting a Configurable requires a model to set its initial properties"):console.error("setting a Configurable requires an object as input")}))},9729:function(e,t,n){"use strict";n.d(t,{C:function(){return s},L:function(){return u}});var r=n(8240),i=n(9754),o={beacon:r.defaults.beacon,errorBeacon:r.defaults.errorBeacon,licenseKey:void 0,applicationID:void 0,sa:void 0,queueTime:void 0,applicationTime:void 0,ttGuid:void 0,user:void 0,account:void 0,product:void 0,extra:void 0,jsAttributes:{},userAttributes:void 0,atts:void 0,transactionName:void 0,tNamePlain:void 0},a={};function s(e){if(!e)throw new Error("All config objects require an agent identifier!");if(!a[e])throw new Error("Info for ".concat(e," was never set"));return a[e]}function u(e,t){if(!e)throw new Error("All config objects require an agent identifier!");a[e]=new i.I(t,o),(0,r.gosNREUMInitializedAgents)(e,a[e],"info")}},6061:function(e,t,n){"use strict";n.d(t,{Dg:function(){return u},Mt:function(){return c},P_:function(){return s}});var r=n(8240),i=n(9754),o={privacy:{cookies_enabled:void 0},ajax:{deny_list:void 0},distributed_tracing:{enabled:void 0,exclude_newrelic_header:void 0,cors_use_newrelic_header:void 0,cors_use_tracecontext_headers:void 0,allowed_origins:void 0},page_view_timing:{enabled:void 0},ssl:void 0,obfuscate:void 0},a={};function s(e){if(!e)throw new Error("All config objects require an agent identifier!");if(!a[e])throw new Error("Configuration for ".concat(e," was never set"));return a[e]}function u(e,t){if(!e)throw new Error("All config objects require an agent identifier!");a[e]=new i.I(t,o),(0,r.gosNREUMInitializedAgents)(e,a[e],"config")}function c(e,t){if(!e)throw new Error("All config objects require an agent identifier!");var n=s(e);if(n){for(var r=t.split("."),i=0;i<r.length-1;i++)if("object"!=x(n=n[r[i]]))return;n=n[r[r.length-1]]}return n}},5501:function(e,t,n){"use strict";n.d(t,{D:function(){return s},G:function(){return u}});var r=n(8240),i=n(9754),o={accountID:void 0,trustKey:void 0,agentID:void 0,licenseKey:void 0,applicationID:void 0,xpid:void 0},a={};function s(e){if(!e)throw new Error("All config objects require an agent identifier!");if(!a[e])throw new Error("LoaderConfig for ".concat(e," was never set"));return a[e]}function u(e,t){if(!e)throw new Error("All config objects require an agent identifier!");a[e]=new i.I(t,o),(0,r.gosNREUMInitializedAgents)(e,a[e],"loader_config")}},5307:function(e,t,n){"use strict";n.d(t,{Y:function(){return r}});var r=(0,n(8240).gosNREUMOriginals)().o},2909:function(e,t,n){"use strict";n.d(t,{O:function(){return m},s:function(){return y}});var r={};n.r(r),n.d(r,{agent:function(){return a},match:function(){return f},version:function(){return s}});var i=n(3821),o=n(2997),a=null,s=null;if(navigator.userAgent){var u=navigator.userAgent,c=u.match(/Version\/(\S+)\s+Safari/);c&&-1===u.indexOf("Chrome")&&-1===u.indexOf("Chromium")&&(a="Safari",s=c[1])}function f(e,t){if(!a)return!1;if(e!==a)return!1;if(!t)return!0;if(!s)return!1;for(var n=s.split("."),r=t.split("."),i=0;i<r.length;i++)if(r[i]!==n[i])return!1;return!0}var d=n(9754),l=n(8240),h=window.XMLHttpRequest,v=h&&h.prototype,p={origin:""+window.location,maxBytes:6===i.H?2e3:3e4,offset:(0,o.getLastTimestamp)(),features:{},customTransaction:void 0,onerror:void 0,releaseIds:void 0,xhrWrappable:h&&v&&v.addEventListener&&!/CriOS/.test(navigator.userAgent),disabled:void 0,ptid:void 0,userAgent:r},g={};function m(e){if(!e)throw new Error("All config objects require an agent identifier!");if(!g[e])throw new Error("Runtime for ".concat(e," was never set"));return g[e]}function y(e,t){if(!e)throw new Error("All config objects require an agent identifier!");g[e]=new d.I(t,p),(0,l.gosNREUMInitializedAgents)(e,g[e],"runtime")}},6469:function(e,t,n){"use strict";n.d(t,{w:function(){return i}});var r={agentIdentifier:""},i=v((function e(t){var n=this;if(l(this,e),"object"!=x(t))return console.error("shared context requires an object as input");this.sharedContext={},Object.assign(this.sharedContext,r),Object.entries(t).forEach((function(e){var t=f(e,2),i=t[0],o=t[1];Object.keys(r).includes(i)&&(n.sharedContext[i]=o)}))}))},2755:function(e,t,n){"use strict";n.d(t,{C:function(){return r},ee:function(){return u}});var r,i=n(8240),o=n(9381),a=n(1558),s=(0,i.gosNREUM)();s.ee?r=s.ee:(r=f(void 0,"globalEE"),s.ee=r);var u=f(void 0,"baseEE");function c(){}function f(e,t){var n={},r={},i={},s={on:v,addEventListener:v,removeEventListener:function(e,t){var r=n[e];if(r)for(var i=0;i<r.length;i++)r[i]===t&&r.splice(i,1)},emit:function(t,n,i,o,a){if(!1!==a&&(a=!0),!u.aborted||o){e&&a&&e.emit(t,n,i);for(var c=h(i),f=p(t),d=f.length,l=0;l<d;l++)f[l].apply(c,n);var v=g()[r[t]];return v&&v.push([s,t,n,c]),c}},get:function(e){return i[e]=i[e]||f(s,e)},listeners:p,context:h,buffer:function(e,t){var n=g();s.aborted||(0,a.D)(e,(function(e,i){t=t||"feature",r[i]=t,t in n||(n[t]=[])}))},abort:l,aborted:!1,isBuffering:function(e){return!!g()[r[e]]},debugId:t};return e||(s.backlog={}),s;function h(e){return e&&e instanceof c?e:e?(0,o.X)(e,"nr@context",d):d()}function v(e,t){n[e]=p(e).concat(t)}function p(e){return n[e]||[]}function g(){return e?e.backlog:s.backlog}}function d(){return new c}function l(){(u.backlog.api||u.backlog.feature)&&(u.aborted=!0,u.backlog={})}},2995:function(e,t,n){"use strict";n.d(t,{EM:function(){return i},l_:function(){return o},pr:function(){return a}});var r=n(2755),i=r.ee.get("handle"),o=r.C.get("handle");function a(e,t,n,r,o){o?(o.buffer([e],r),o.emit(e,t,n)):(i.buffer([e],r),i.emit(e,t,n))}},3406:function(e,t,n){"use strict";n.d(t,{XN:function(){return a},rP:function(){return a}});var r=n(2995);a.on=s;var i=a.handlers={},o=function(e,t,n){s(r.l_,o,e,t,n)}.handlers={};function a(e,t,n,o){s(o||r.EM,i,e,t,n)}function s(e,t,n,i,o){if(o||(o="feature"),e||(e=r.EM),e.isBuffering(n)){var a=t[o]=t[o]||{};(a[n]=a[n]||[]).push([e,i])}else e.on(n,i)}},4518:function(e,t,n){"use strict";n.d(t,{m:function(){return o}});var r=!1;try{var i=Object.defineProperty({},"passive",{get:function(){r=!0}});window.addEventListener("testPassive",null,i),window.removeEventListener("testPassive",null,i)}catch(e){}function o(e){return r?{passive:!0,capture:!!e}:!!e}},2848:function(e,t,n){"use strict";n.d(t,{o:function(){return f}});var r=n(870),i=n(6469),o=n(6943),a=n(9391),s=n(3233),u=n(3706),c=n(6061),f=function(e){p(n,e);var t=m(n);function n(e,r,i){var f;return l(this,n),(f=t.call(this,i)).endpoint=e,f.opts=r||{},f.started=!1,f.timeoutHandle=null,f.harvest=new o.Mu(f.sharedContext),(0,a.l)((function(){var e,t;f.opts.onUnload&&f.opts.onUnload(),f.harvest.sendFinal(),e=f.sharedContext.agentIdentifier,t=(0,c.Mt)(e,"privacy.cookies_enabled"),u.s&&t&&(document.cookie="NREUM=s="+Number(new Date)+"&r="+(0,s.u)(document.location.href)+"&p="+(0,s.u)(document.referrer)+"; path=/")})),f}return v(n,[{key:"startTimer",value:function(e,t){this.interval=e,this.started=!0,this.scheduleHarvest(null!=t?t:this.interval)}},{key:"stopTimer",value:function(){this.started=!1,this.timeoutHandle&&clearTimeout(this.timeoutHandle)}},{key:"scheduleHarvest",value:function(e,t){if(!this.timeoutHandle){var n=this;null==e&&(e=this.interval),this.timeoutHandle=setTimeout((function(){n.timeoutHandle=null,n.runHarvest(t)}),1e3*e)}}},{key:"runHarvest",value:function(e){var t=this;if(this.opts.getPayload){var n=this.harvest.getSubmitMethod(this.endpoint,e);if(!n)return!1;var i=n.method===r.T.xhr,o=this.opts.getPayload({retry:i});if(o){o="[object Array]"===Object.prototype.toString.call(o)?o:[o];for(var a=0;a<o.length;a++)this.harvest.send(this.endpoint,o[a],e,n,s,this.sharedContext.agentIdentifier)}}else this.harvest.sendX(this.endpoint,e,s,this.sharedContext.agentIdentifier);function s(n){t.onHarvestFinished(e,n)}this.started&&this.scheduleHarvest()}},{key:"onHarvestFinished",value:function(e,t){if(this.opts.onFinished&&this.opts.onFinished(t),t.sent&&t.retry){var n=t.delay||this.opts.retryDelay;this.started&&n?(clearTimeout(this.timeoutHandle),this.timeoutHandle=null,this.scheduleHarvest(n,e)):!this.started&&n&&this.scheduleHarvest(n,e)}}}]),n}(i.w)},6943:function(e,t,n){"use strict";n.d(t,{Mu:function(){return k},y0:function(){return O}});var r=n(1558),i=n(353),o=n(1240),a=n(870),s=n(8354),u=n(6061),c=n(9729),f=n(2909),d=n(5988),h=n(2997),g=n(4518),y=n(3821),b=n(2781),w=n(6469),E=JSON.parse('{"i8":"0.0.9-beta.74"}').i8,S=!!navigator.sendBeacon,O=y.H>9||0===y.H,k=function(e){p(n,e);var t=m(n);function n(e){var r;return l(this,n),(r=t.call(this,e)).tooManyRequestsDelay=(0,u.Mt)(r.sharedContext.agentIdentifier,"harvest.tooManyRequestsDelay")||60,r.obfuscator=new b.R(r.sharedContext),r.getScheme=function(){return!1===(0,u.Mt)(r.sharedContext.agentIdentifier,"ssl")?"http":"https"},r._events={},r}return v(n,[{key:"sendFinal",value:function(){var e=this,t=(0,r.D)(this._events,(function(t){return e.sendX(t,{unload:!0})}));return(0,s.u)(t,T)}},{key:"sendX",value:function(e,t,n){var r=j(e,t);if(!r)return!1;var i={retry:r.method===a.T.xhr};return this.obfuscator.shouldObfuscate()?this.obfuscator.obfuscateAndSend(e,this.createPayload(e,i),t,r,n):this._send(e,this.createPayload(e,i),t,r,n)}},{key:"send",value:function(e,t,n,i,o){var a=I(),s=I();t.body&&(0,r.D)(t.body,a),t.qs&&(0,r.D)(t.qs,s);var u={body:a(),qs:s()};return(this.obfuscator.shouldObfuscate()?this.obfuscator.obfuscateAndSend:this._send)(e,u,n,i,o)}},{key:"obfuscateAndSend",value:function(e,t,n,r,i){var o=this;return function(e,t,n,r){return e&&"object"==x(e)?(n=n||"string",r=r||[],function e(r){for(var o in r)r.hasOwnProperty(o)&&("object"==x(r[o])?e(r[o]):x(r[o])!==n||i(o)||(r[o]=t(r[o])));return r}(e)):e;function i(e){for(var t=!1,n=0;n<r.length;n++)if(r[n]===e){t=!0;break}return t}}(t,(function(){var e;return(e=o.obfuscator).obfuscateString.apply(e,arguments)}),"string",["e"]),this._send(e,t,n,r,i)}},{key:"_send",value:function(e,t,n,r,s){var u=(0,c.C)(this.sharedContext.agentIdentifier);if(!u.errorBeacon)return!1;if(!t.body)return s&&s({sent:!1}),!1;n||(n={});var d=this.getScheme()+"://"+u.errorBeacon+"/"+e+"/1/"+u.licenseKey+this.baseQueryString();t.qs&&(d+=(0,i.j6)(t.qs,(0,f.O)(this.sharedContext.agentIdentifier).maxBytes)),r||(r=j(e,n));var l,h=r.method,v=r.useBody,p=d;v&&"events"===e?l=t.body.e:v?l=(0,o.P)(t.body):p=d+(0,i.j6)(t.body,(0,f.O)(this.sharedContext.agentIdentifier).maxBytes);var m=h(p,l);return s&&h===a.T.xhr&&m.addEventListener("load",(function(){var e={sent:!0};429===this.status?(e.retry=!0,e.delay=this.tooManyRequestsDelay):408!==this.status&&500!==this.status&&503!==this.status||(e.retry=!0),n.needResponse&&(e.responseText=this.responseText),s(e)}),(0,g.m)(!1)),m||h!==a.T.beacon||(m=(h=a.T.img)(d+(0,i.j6)(t.body,(0,f.O)(this.sharedContext.agentIdentifier).maxBytes))),m}},{key:"baseQueryString",value:function(){var e=!0,t=(0,u.P_)(this.sharedContext.agentIdentifier),n=(0,f.O)(this.sharedContext.agentIdentifier),r=(0,c.C)(this.sharedContext.agentIdentifier);"privacy"in t&&(e=t.privacy.cookies_enabled);var o=(0,d.f)(""+location),a=this.obfuscator.shouldObfuscate()?this.obfuscator.obfuscateString(o):o;return["?a="+r.applicationID,(0,i.wu)("sa",r.sa?""+r.sa:""),(0,i.wu)("v",E),_(r),(0,i.wu)("ct",n.customTransaction),"&rst="+(0,h.now)(),"&ck="+(e?"1":"0"),(0,i.wu)("ref",a),(0,i.wu)("ptid",n.ptid?""+n.ptid:"")].join("")}},{key:"createPayload",value:function(e,t){for(var n=I(),i=I(),o=this._events[e]&&this._events[e]||[],a=0;a<o.length;a++){var s=o[a](t);s&&(s.body&&(0,r.D)(s.body,n),s.qs&&(0,r.D)(s.qs,i))}return{body:n(),qs:i()}}},{key:"on",value:function(e,t){(this._events[e]||(this._events[e]=[])).push(t)}},{key:"resetListeners",value:function(){(0,r.D)(this._events,(function(e){this._events[e]=[]}))}}]),n}(w.w);function T(e,t){return e||t}function j(e,t){var n,r;if((t=t||{}).needResponse){if(!O)return!1;r=!0,n=a.T.xhr}else if(t.unload)r=S,n=S?a.T.beacon:a.T.img;else if(O)r=!0,n=a.T.xhr;else{if("events"!==e&&"jserrors"!==e)return!1;n=a.T.img}return{method:n,useBody:r}}function _(e){return e.transactionName?(0,i.wu)("to",e.transactionName):(0,i.wu)("t",e.tNamePlain||"Unnamed Transaction")}function I(){var e={},t=!1;return function(n,r){if(r&&r.length&&(e[n]=r,t=!0),t)return e}}},8053:function(e,t,n){"use strict";function r(){var e=null,t=0,n=window.crypto||window.msCrypto;function r(){return e?15&e[t++]:16*Math.random()|0}n&&n.getRandomValues&&(e=n.getRandomValues(new Uint8Array(31)));for(var i,o="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",a="",s=0;s<o.length;s++)a+="x"===(i=o[s])?r().toString(16):"y"===i?(i=3&r()|8).toString(16):i;return a}function i(){return a(16)}function o(){return a(32)}function a(e){var t=null,n=0,r=window.crypto||window.msCrypto;r&&r.getRandomValues&&Uint8Array&&(t=r.getRandomValues(new Uint8Array(31)));for(var i=[],o=0;o<e;o++)i.push((t?15&t[n++]:16*Math.random()|0).toString(16));return i.join("")}n.r(t),n.d(t,{generateRandomHexString:function(){return a},generateSpanId:function(){return i},generateTraceId:function(){return o},generateUuid:function(){return r}})},4202:function(e,t,n){"use strict";n.d(t,{VB:function(){return i}});var r=n(2995);function i(e,t){var n=["sm",e,{name:e},t];return(0,r.pr)("storeMetric",n,null,"api"),n}},151:function(e,t,n){"use strict";n.d(t,{AG:function(){return s},FX:function(){return c},n1:function(){return f},uR:function(){return u}});var r=n(1558),i=n(1240),o=n(2781),a=Object.prototype.hasOwnProperty;function s(e,t,n){return e||0===e||""===e?t(e)+(n?",":""):"!"}function u(e,t){return t?Math.floor(e).toString(36):void 0===e||0===e?"":Math.floor(e).toString(36)}function c(e){var t=Object.hasOwnProperty("create")?Object.create(null):{},n=0;return function(r){if(void 0===r||""===r)return"";var i=new o.R({agentIdentifier:e});return r=String(r),i.shouldObfuscate()&&(r=i.obfuscateString(r)),a.call(t,r)?u(t[r],!0):(t[r]=n++,function(e){return"'"+e.replace(d,"\\$1")}(r))}}function f(e,t){var n=[];return(0,r.D)(e,(function(e,r){if(!(n.length>=64)){var o,a=5;switch(e=t(e),x(r)){case"object":r?o=t((0,i.P)(r)):a=9;break;case"number":a=6,o=r%1?r:r+".";break;case"boolean":a=r?7:8;break;case"undefined":a=9;break;default:o=t(r)}n.push([a,e+(o?","+o:"")])}})),n}var d=/([,\\;])/g},2997:function(e,t,n){"use strict";n.r(t),n.d(t,{getLastTimestamp:function(){return s},getOffset:function(){return c},now:function(){return a},setOffset:function(){return u}});var r=n(9335),i=(new Date).getTime(),o=i;function a(){return r.G&&performance.now?Math.round(performance.now()):(i=Math.max((new Date).getTime(),i))-o}function s(){return i}function u(e){o=e}function c(){return o}},9335:function(e,t,n){"use strict";n.d(t,{G:function(){return r}});var r=void 0!==window.performance&&window.performance.timing&&void 0!==window.performance.timing.navigationStart},3706:function(e,t,n){"use strict";n.d(t,{s:function(){return u},v:function(){return c}});var r=n(3233),i=n(232),o=n(2572),a=n(2997),s=n(9335),u=!0;function c(){var e=function(){if(!(o.I&&o.I<9))return s.G?(u=!1,window.performance.timing.navigationStart):void 0}()||function(){for(var e=document.cookie.split(" "),t=0;t<e.length;t++)if(0===e[t].indexOf("NREUM=")){for(var n,i,o,a,s=e[t].substring("NREUM=".length).split("&"),u=0;u<s.length;u++)0===s[u].indexOf("s=")?o=s[u].substring(2):0===s[u].indexOf("p=")?";"===(i=s[u].substring(2)).charAt(i.length-1)&&(i=i.substr(0,i.length-1)):0===s[u].indexOf("r=")&&";"===(n=s[u].substring(2)).charAt(n.length-1)&&(n=n.substr(0,n.length-1));if(n){var c=(0,r.u)(document.referrer);(a=c==n)||(a=(0,r.u)(document.location.href)==n&&c==i)}if(a&&o){if((new Date).getTime()-o>6e4)return;return o}}}();e&&((0,i.B)("starttime",e),(0,a.setOffset)(e))}c()},232:function(e,t,n){"use strict";n.d(t,{B:function(){return o},L:function(){return a}});var r=n(2997),i={};function o(e,t){void 0===t&&(t=(0,r.now)()+(0,r.getOffset)()),i[e]=t}function a(e,t,n,r){var o=i[n],a=i[r];void 0!==o&&void 0!==a&&e.store("measures",t,{value:a-o})}},9391:function(e,t,n){"use strict";n.d(t,{l:function(){return u}});var r=n(2572),i=n(7957),o=n.n(i),a=n(4518);function s(e,t){return"addEventListener"in window?window.addEventListener(e,t,(0,a.m)(!1)):"attachEvent"in window?window.attachEvent("on"+e,t):void 0}function u(e){var t,n,i,a=(t=e,i=!1,function(){return i?n:(i=!0,n=t.apply(this,o()(arguments)))});!r.I||navigator.sendBeacon?s("pagehide",a):s("beforeunload",a),s("unload",a)}},5988:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=/([^?#]*)[^#]*(#[^?]*|$).*/,i=/([^?#]*)().*/;function o(e,t){return e.replace(t?r:i,"$1$2")}},353:function(e,t,n){"use strict";n.d(t,{j6:function(){return d},nI:function(){return f},wu:function(){return l}});var r=n(1558),i=n(1240),o={"%2C":",","%3A":":","%2F":"/","%40":"@","%24":"$","%3B":";"},a=(0,r.D)(o,(function(e){return e})),s=new RegExp(a.join("|"),"g");function u(e){return o[e]}function c(e){return null==e?"null":encodeURIComponent(e).replace(s,u)}function f(e,t){for(var n=0,r=0;r<e.length;r++)if((n+=e[r].length)>t)return e.slice(0,r).join("");return e.join("")}function d(e,t){var n=0,o="";return(0,r.D)(e,(function(e,r){var a,s,u=[];if("string"==typeof r)a="&"+e+"="+c(r),n+=a.length,o+=a;else if(r.length){for(n+=9,s=0;s<r.length&&(a=c((0,i.P)(r[s])),n+=a.length,!(void 0!==t&&n>=t));s++)u.push(a);o+="&"+e+"=%5B"+u.join(",")+"%5D"}})),o}function l(e,t){return t&&"string"==typeof t?"&"+e+"="+c(t):""}},4017:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r={};function i(e){if(e in r)return r[e];var t=document.createElement("a"),n=window.location,i={};t.href=e,i.port=t.port;var o=t.href.split("://");!i.port&&o[1]&&(i.port=o[1].split("/")[0].split("@").pop().split(":")[1]),i.port&&"0"!==i.port||(i.port="https"===o[0]?"443":"80"),i.hostname=t.hostname||n.hostname,i.pathname=t.pathname,i.protocol=o[0],"/"!==i.pathname.charAt(0)&&(i.pathname="/"+i.pathname);var a=!t.protocol||":"===t.protocol||t.protocol===n.protocol,s=t.hostname===document.domain&&t.port===n.port;return i.sameOrigin=a&&(!t.hostname||s),"/"===i.pathname&&(r[e]=i),i}},1839:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(2755),i=v((function e(t,n){l(this,e),this.agentIdentifier=t,this.aggregator=n,this.ee=r.ee.get(t)}))},9381:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r=Object.prototype.hasOwnProperty;function i(e,t,n){if(r.call(e,t))return e[t];var i=n();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!1}),i}catch(e){}return e[t]=i,i}},1558:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r=Object.prototype.hasOwnProperty;function i(e,t){var n=[],i="",o=0;for(i in e)r.call(e,i)&&(n[o]=t(i,e[i]),o+=1);return n}},2781:function(e,t,n){"use strict";n.d(t,{R:function(){return d}});var r=n(6061),i=n(6469),o=n(4202),a=window,s={isFileProtocol:u,supportabilityMetricSent:!1};function u(){var e=a;return!(!e.location||!e.location.protocol||"file:"!==e.location.protocol)}u()&&((0,o.VB)("Generic/FileProtocol/Detected"),s.supportabilityMetricSent=!0);var c={regex:/^file:\/\/(.*)/,replacement:"file://OBFUSCATED"},f=!1,d=function(e){p(n,e);var t=m(n);function n(e){var r;return l(this,n),r=t.call(this,e),f||(r.shouldObfuscate()&&(0,o.VB)("Generic/Obfuscate/Detected"),r.shouldObfuscate()&&!r.validateRules(r.getRules())&&(0,o.VB)("Generic/Obfuscate/Invalid"),f=!0),r}return v(n,[{key:"shouldObfuscate",value:function(){return this.getRules().length>0}},{key:"getRules",value:function(){var e=[],t=(0,r.Mt)(this.sharedContext.agentIdentifier,"obfuscate")||[];return e=e.concat(t),s.isFileProtocol()&&e.push(c),e}},{key:"validateRules",value:function(e){for(var t=!1,n=!1,r=0;r<e.length;r++){"regex"in e[r]?"string"!=typeof e[r].regex&&e[r].regex.constructor!==RegExp&&(console&&console.warn&&console.warn('An obfuscation replacement rule contains a "regex" value with an invalid type (must be a string or RegExp)'),n=!0):(console&&console.warn&&console.warn('An obfuscation replacement rule was detected missing a "regex" value.'),n=!0);var i=e[r].replacement;i&&"string"!=typeof i&&(console&&console.warn&&console.warn('An obfuscation replacement rule contains a "replacement" value with an invalid type (must be a string)'),t=!0)}return!t&&!n}},{key:"obfuscateString",value:function(e,t){if(!e||"string"!=typeof e)return e;for(var n=this.getRules(t),r=e,i=0;i<n.length;i++){var o=n[i].regex,a=n[i].replacement||"*";r=r.replace(o,a)}return r}}]),n}(i.w)},8354:function(e,t,n){"use strict";function r(e,t,n){var r=0;for(void 0===n&&(n=e[0],r=1);r<e.length;r++)n=t(n,e[r]);return n}n.d(t,{u:function(){return r}})},3233:function(e,t,n){"use strict";function r(e){var t,n=0;for(t=0;t<e.length;t++)n+=(t+1)*e.charCodeAt(t);return Math.abs(n)}n.d(t,{u:function(){return r}})},1240:function(e,t,n){"use strict";n.d(t,{P:function(){return s}});var r=n(1558),i=n(2755),o=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function s(e){try{return c("",{"":e})}catch(e){try{i.ee.emit("internal-error",[e])}catch(e){}}}function u(e){return o.lastIndex=0,o.test(e)?'"'+e.replace(o,(function(e){var t=a[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function c(e,t){var n=t[e];switch(x(n)){case"string":return u(n);case"number":return isFinite(n)?String(n):"null";case"boolean":return String(n);case"object":if(!n)return"null";var i=[];if(n instanceof window.Array||"[object Array]"===Object.prototype.toString.apply(n)){for(var o=n.length,a=0;a<o;a+=1)i[a]=c(a,n)||"null";return 0===i.length?"[]":"["+i.join(",")+"]"}return(0,r.D)(n,(function(e){var t=c(e,n);t&&i.push(u(e)+":"+t)})),0===i.length?"{}":"{"+i.join(",")+"}"}}},870:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});var r={jsonp:function(e,t){var n=document.createElement("script");n.type="text/javascript",n.src=e+"&jsonp="+t;var r=document.getElementsByTagName("script")[0];return r.parentNode.insertBefore(n,r),n},xhr:function(e,t,n){var r=new XMLHttpRequest;r.open("POST",e,!n);try{"withCredentials"in r&&(r.withCredentials=!0)}catch(e){}return r.setRequestHeader("content-type","text/plain"),r.send(t),r},xhrSync:function(e,t){return r.xhr(e,t,!0)},img:function(e){var t=new Image;return t.src=e,t},beacon:function(e,t){return navigator.sendBeacon(e,t)}}},8240:function(e,t,n){"use strict";n.r(t),n.d(t,{NREUMinitialized:function(){return v},addToNREUM:function(){return h},defaults:function(){return i},gosCDN:function(){return p},gosNREUM:function(){return o},gosNREUMInfo:function(){return a},gosNREUMInit:function(){return f},gosNREUMInitializedAgents:function(){return l},gosNREUMLoaderConfig:function(){return s},gosNREUMOriginals:function(){return d}});var r=n(2997),i={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net"};function o(){return window.NREUM||(window.NREUM={}),void 0===window.newrelic&&(window.newrelic=window.NREUM),window.NREUM}function a(){var e=o(),t=e.info||{};return e.info=u({beacon:i.beacon,errorBeacon:i.errorBeacon},t),e}function s(){var e=o(),t=e.loader_config||{};return e.loader_config=u({},t),e}function f(){var e=o(),t=e.init||{};return e.init=u({},t),e}function d(){var e=o();if(!e.o){var t=window,n=t.XMLHttpRequest;e.o={ST:setTimeout,SI:t.setImmediate,CT:clearTimeout,XHR:n,REQ:t.Request,EV:t.Event,PR:t.Promise,MO:t.MutationObserver,FETCH:t.fetch}}return e}function l(e,t,n){var i=o(),a=i.initializedAgents||{},s=a[e]||{};return Object.keys(s).length||(s.initializedAt={ms:(0,r.now)(),date:new Date}),i.initializedAgents=u(u({},a),{},c({},e,u(u({},s),{},c({},n,t)))),i}function h(e,t){o()[e]=t}function v(){o().initialized=!0}function p(){return a(),f(),d(),s(),o()}},6219:function(e,t,n){"use strict";function r(){return"PerformanceObserver"in window&&"function"==typeof window.PerformanceObserver}n.d(t,{W:function(){return r}})},3097:function(e,t,n){"use strict";n.d(t,{em:function(){return m},u5:function(){return y},QU:function(){return b},gy:function(){return w},BV:function(){return E},Kf:function(){return S}});var r=n(2755),i=n(7957),o=n.n(i),a=n(5307),s=window,u=(s.Request,s.Response,"nr@context"),c="nr@original",f=Object.prototype.hasOwnProperty,d=!1;function l(e,t){return e||(e=r.ee),n.inPlace=function(e,t,r,i,o){r||(r="");var a,s,u,c="-"===r.charAt(0);for(u=0;u<t.length;u++)v(a=e[s=t[u]])||(e[s]=n(a,c?s+r:r,i,s,o))},n.flag=c,n;function n(t,n,r,a,s){return v(t)?t:(n||(n=""),u[c]=t,function(e,t,n){if(Object.defineProperty&&Object.keys)try{return Object.keys(e).forEach((function(n){Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){return e[n]=t,t}})})),t}catch(e){h([e],n)}for(var r in e)f.call(e,r)&&(t[r]=e[r])}(t,u,e),u);function u(){var u,c,f,d;try{c=this,u=o()(arguments),f="function"==typeof r?r(u,c):r||{}}catch(t){h([t,"",[u,c,a],f],e)}i(n+"start",[u,c,a],f,s);try{return d=t.apply(c,u)}catch(e){throw i(n+"err",[u,c,e],f,s),e}finally{i(n+"end",[u,c,d],f,s)}}}function i(n,r,i,o){if(!d||t){var a=d;d=!0;try{e.emit(n,r,i,t,o)}catch(t){h([t,n,r,i],e)}d=a}}}function h(e,t){t||(t=r.ee);try{t.emit("internal-error",e)}catch(e){}}function v(e){return!(e&&e instanceof Function&&e.apply&&!e[c])}var p=n(4518),g=n(9381);function m(e){return function(e){var t=function(e){return(e||r.ee).get("events")}(e),n=l(t,!0),i=XMLHttpRequest,o="addEventListener";function a(e){for(var t=e;t&&!t.hasOwnProperty(o);)t=Object.getPrototypeOf(t);t&&s(t)}function s(e){n.inPlace(e,[o,"removeEventListener"],"-",u)}function u(e,t){return e[1]}return"getPrototypeOf"in Object?(a(document),a(window),a(i.prototype)):i.prototype.hasOwnProperty(o)&&(s(window),s(i.prototype)),t.on("addEventListener-start",(function(e,t){var r=e[1];if(null!==r&&("function"==typeof r||"object"==x(r))){var i=(0,g.X)(r,"nr@wrapped",(function(){var e={object:function(){if("function"==typeof r.handleEvent)return r.handleEvent.apply(r,arguments)},function:r}[x(r)];return e?n(e,"fn-",null,e.name||"anonymous"):r}));this.wrapped=e[1]=i}})),t.on("removeEventListener-start",(function(e){e[1]=this.wrapped||e[1]})),t}(e)}function y(e){return function(e){var t=a.Y.FETCH,n=e||r.ee,i=function(e,t,n){return function(){var r,i=o()(arguments),a={};e.emit(n+"before-start",[i],a),a[u]&&a[u].dt&&(r=a[u].dt);var s=t.apply(this,i);return e.emit(n+"start",[i,r],s),s.then((function(t){return e.emit(n+"end",[null,t],s),t}),(function(t){throw e.emit(n+"end",[t],s),t}))}}(n,t,"fetch-");return n.on("fetch-end",(function(e,t){var r=this;if(t){var i=t.headers.get("content-length");null!==i&&(r.rxSize=i),n.emit("fetch-done",[null,t],r)}else n.emit("fetch-done",[e],r)})),i}(e)}function b(e){return function(e){var t=function(e){return(e||r.ee).get("history")}(e),n=l(t),i=window.history&&window.history.constructor&&window.history.constructor.prototype,o=window.history;return i&&i.pushState&&i.replaceState&&(o=i),n.inPlace(o,["pushState","replaceState"],"-"),t}(e)}function w(e){return function(e){var t=function(e){return(e||r.ee).get("raf")}(e),n=l(t);return n.inPlace(window,["requestAnimationFrame","mozRequestAnimationFrame","webkitRequestAnimationFrame","msRequestAnimationFrame"],"raf-"),t.on("raf-start",(function(e){e[0]=n(e[0],"fn-")})),t}(e)}function E(e){return function(e){var t=function(e){return(e||r.ee).get("timer")}(e),n=l(t),i="setTimeout",o="setInterval",a="-start";return n.inPlace(window,[i,"setImmediate"],"setTimeout-"),n.inPlace(window,[o],"setInterval-"),n.inPlace(window,["clearTimeout","clearImmediate"],"clearTimeout-"),t.on(o+a,(function(e,t,r){e[0]=n(e[0],"fn-",null,r)})),t.on(i+a,(function(e,t,r){this.method=r,this.timerDuration=isNaN(e[1])?0:+e[1],e[0]=n(e[0],"fn-",this,r)})),t}(e)}function S(e){return function(e){var t=e||r.ee,n=function(e){return(e||r.ee).get("events")}(t),i=l(n),o=a.Y.XHR,s=a.Y.MO,u=a.Y.PR,c=a.Y.SI,f="readystatechange",d=["onload","onerror","onabort","onloadstart","onloadend","onprogress","ontimeout"],h=[],v=window.XMLHttpRequest=function(e){var t=new o(e);try{n.emit("new-xhr",[t],t),t.addEventListener(f,m,(0,p.m)(!1))}catch(e){try{n.emit("internal-error",[e])}catch(e){}}return t};function g(e,t){i.inPlace(t,["onreadystatechange"],"fn-",E)}function m(){var e=this,t=n.context(e);e.readyState>3&&!t.resolved&&(t.resolved=!0,n.emit("xhr-resolved",[],e)),i.inPlace(e,d,"fn-",E)}if(function(e,t){for(var n in e)t[n]=e[n]}(o,v),v.prototype=o.prototype,i.inPlace(v.prototype,["open","send"],"-xhr-",E),n.on("send-xhr-start",(function(e,t){g(0,t),function(e){h.push(e),s&&(y?y.then(x):c?c(x):(b=-b,w.data=b))}(t)})),n.on("open-xhr-start",g),s){var y=u&&u.resolve();if(!c&&!u){var b=1,w=document.createTextNode(b);new s(x).observe(w,{characterData:!0})}}else t.on("fn-end",(function(e){e[0]&&e[0].type===f||x()}));function x(){for(var e=0;e<h.length;e++)g(0,h[e]);h.length&&(h=[])}function E(e,t){return t}return n}(e)}},74:function(e,t,n){"use strict";n.r(t),n.d(t,{Aggregate:function(){return y}});var r=n(3406),i=n(1240),o=n(151),a=n(2995),s=n(6061),u=n(9729),c=n(2848),f=n(9391),d=n(4202),h=[];function g(e,t){return 0===e.indexOf("/")&&(e=e.substring(1)),0===t.indexOf("/")&&(t=t.substring(1)),""===e||e===t}var y=function(e){p(n,e);var t=m(n);function n(e,i){var o;return l(this,n),(o=t.call(this,e,i)).ajaxEvents=[],o.spaAjaxEvents={},o.sentAjaxEvents=[],o.scheduler,o.harvestTimeSeconds=(0,s.Mt)(o.agentIdentifier,"ajax.harvestTimeSeconds")||10,o.MAX_PAYLOAD_SIZE=(0,s.Mt)(o.agentIdentifier,"ajax.maxPayloadSize")||1e6,o.ee.on("interactionSaved",(function(e){this.spaAjaxEvents[e.id]&&delete this.spaAjaxEvents[e.id]})),o.ee.on("interactionDiscarded",(function(e){this.spaAjaxEvents[e.id]&&this.allAjaxIsEnabled()&&(this.spaAjaxEvents[e.id].forEach((function(e){this.ajaxEvents.push(e)})),delete this.spaAjaxEvents[e.id])})),o.allAjaxIsEnabled()&&function(e){if(h=[],e&&e.length)for(var t=0;t<e.length;t++){var n=e[t];0===n.indexOf("http://")?n=n.substring(7):0===n.indexOf("https://")&&(n=n.substring(8));var r=n.indexOf("/");r>0?h.push({hostname:n.substring(0,r),pathname:n.substring(r)}):h.push({hostname:n,pathname:""})}}((0,s.Mt)(o.agentIdentifier,"ajax.deny_list")),(0,r.XN)("xhr",(function(){var e;return(e=o).storeXhr.apply(e,arguments)}),void 0,o.ee),o.allAjaxIsEnabled()&&(o.scheduler=new c.o("events",{onFinished:function(){var e;return(e=o).onEventsHarvestFinished.apply(e,arguments)},getPayload:function(){var e;return(e=o).prepareHarvest.apply(e,arguments)}}),o.scheduler.harvest.on("jserrors",(function(){return{body:this.aggregator.take(["xhr"])}})),o.scheduler.startTimer(o.harvestTimeSeconds),(0,f.l)((function(){var e;return(e=o).finalHarvest.apply(e,arguments)}))),o}return v(n,[{key:"getStoredEvents",value:function(){return{ajaxEvents:this.ajaxEvents,spaAjaxEvents:this.spaAjaxEvents}}},{key:"storeXhr",value:function(e,t,n,r,o){var s;if("localhost"!==e.hostname&&(t.time=n,s=e.cat?(0,i.P)([e.status,e.cat]):(0,i.P)([e.status,e.host,e.pathname]),(0,a.pr)("bstXhrAgg",["xhr",s,e,t],void 0,void 0,this.ee),this.aggregator.store("xhr",s,e,t),this.allAjaxIsEnabled()))if(function(e){if(0===h.length)return!0;for(var t=0;t<h.length;t++){var n=h[t];if("*"===n.hostname)return!1;if(r=n.hostname,i=e.hostname,!(r.length>i.length)&&i.indexOf(r)===i.length-r.length&&g(n.pathname,e.pathname))return!1}var r,i;return!0}(e)){var c=this,f={method:e.method,status:e.status,domain:e.host,path:e.pathname,requestSize:t.txSize,responseSize:t.rxSize,type:o,startTime:n,endTime:r,callbackDuration:t.cbTime};if(c.dt&&(f.spanId=c.dt.spanId,f.traceId=c.dt.traceId,f.spanTimestamp=c.dt.timestamp),this.spaNode){var l=this.spaNode.interaction.id;this.spaAjaxEvents[l]=this.spaAjaxEvents[l]||[],this.spaAjaxEvents[l].push(f)}else this.ajaxEvents.push(f)}else e.hostname===(0,u.C)(this.agentIdentifier).errorBeacon?(0,d.VB)("Ajax/Events/Excluded/Agent"):(0,d.VB)("Ajax/Events/Excluded/App")}},{key:"prepareHarvest",value:function(e){if(e=e||{},0===this.ajaxEvents.length)return null;for(var t=this.getPayload(this.ajaxEvents,e.maxPayloadSize||this.MAX_PAYLOAD_SIZE),n=[],r=0;r<t.length;r++)n.push({body:{e:t[r]}});return e.retry&&(this.sentAjaxEvents=this.ajaxEvents.slice()),this.ajaxEvents=[],n}},{key:"getPayload",value:function(e,t,n){n=n||1;for(var r=[],i=e.length/n,o=this.splitChunks(e,i),a=!1,s=0;s<o.length;s++){var u=o[s];if(u.tooBig(t)){if(1!==u.events.length){a=!0;break}}else r.push(u.payload)}return a?this.getPayload(e,t,++n):r}},{key:"onEventsHarvestFinished",value:function(e){e.retry&&this.sentAjaxEvents.length>0&&this.allAjaxIsEnabled()&&(this.ajaxEvents=this.ajaxEvents.concat(this.sentAjaxEvents),this.sentAjaxEvents=[])}},{key:"splitChunks",value:function(e,t){t=t||e.length;for(var n=[],r=0,i=e.length;r<i;r+=t)n.push(new this.Chunk(e.slice(r,r+t)));return n}},{key:"Chunk",value:function(e){this.addString=(0,o.FX)(),this.events=e,this.payload="bel.7;";for(var t=0;t<this.events.length;t++){var n=this.events[t],r=[(0,o.uR)(n.startTime),(0,o.uR)(n.endTime-n.startTime),(0,o.uR)(0),(0,o.uR)(0),this.addString(n.method),(0,o.uR)(n.status),this.addString(n.domain),this.addString(n.path),(0,o.uR)(n.requestSize),(0,o.uR)(n.responseSize),"fetch"===n.type?1:"",this.addString(0),(0,o.AG)(n.spanId,this.addString,!0)+(0,o.AG)(n.traceId,this.addString,!0)+(0,o.AG)(n.spanTimestamp,o.uR,!1)],i="2,",a=(0,o.n1)((0,u.C)(this.agentIdentifier).jsAttributes||{},this.addString);r.unshift((0,o.uR)(a.length)),i+=r.join(","),a&&a.length>0&&(i+=";"+a.join(";")),t+1<this.events.length&&(i+=";"),this.payload+=i}this.tooBig=function(e){return e=e||this.MAX_PAYLOAD_SIZE,2*this.payload.length>e}}},{key:"allAjaxIsEnabled",value:function(){return!1!==(0,s.Mt)(this.agentIdentifier,"ajax.enabled")}}]),n}(n(1839).W)},9770:function(e,t,n){"use strict";n.r(t),n.d(t,{Instrument:function(){return P},getWrappedFetch:function(){return A}});var r=n(5307),i=n(2909),o=n(5501),a=n(2995),s=n(2755),u=n(9381),c=1;function f(e){var t=x(e);return!e||"object"!==t&&"function"!==t?-1:e===window?0:(0,u.X)(e,"nr@id",(function(){return c++}))}var d=n(2572);function h(e){if("string"==typeof e&&e.length)return e.length;if("object"==x(e)){if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer&&e.byteLength)return e.byteLength;if("undefined"!=typeof Blob&&e instanceof Blob&&e.size)return e.size;if(!("undefined"!=typeof FormData&&e instanceof FormData))try{return JSON.stringify(e).length}catch(e){return}}}var g=n(4518),y=n(2997),b=n(3097),w=n(4017),E=n(6061),S=n(8053),O=function(){function e(t){l(this,e),this.agentIdentifier=t}return v(e,[{key:"generateTracePayload",value:function(e){if(!this.shouldGenerateTrace(e))return null;var t=(0,o.D)(this.agentIdentifier);if(!t)return null;var n=(t.accountID||"").toString()||null,r=(t.agentID||"").toString()||null,i=(t.trustKey||"").toString()||null;if(!n||!r)return null;var a=(0,S.generateSpanId)(),s=(0,S.generateTraceId)(),u=Date.now(),c={spanId:a,traceId:s,timestamp:u};return(e.sameOrigin||this.isAllowedOrigin(e)&&this.useTraceContextHeadersForCors())&&(c.traceContextParentHeader=this.generateTraceContextParentHeader(a,s),c.traceContextStateHeader=this.generateTraceContextStateHeader(a,u,n,r,i)),(e.sameOrigin&&!this.excludeNewrelicHeader()||!e.sameOrigin&&this.isAllowedOrigin(e)&&this.useNewrelicHeaderForCors())&&(c.newrelicHeader=this.generateTraceHeader(a,s,u,n,r,i)),c}},{key:"generateTraceContextParentHeader",value:function(e,t){return"00-"+t+"-"+e+"-01"}},{key:"generateTraceContextStateHeader",value:function(e,t,n,r,i){return i+"@nr=0-1-"+n+"-"+r+"-"+e+"----"+t}},{key:"generateTraceHeader",value:function(e,t,n,r,i,o){if(!("btoa"in window)||"function"!=typeof window.btoa)return null;var a={v:[0,1],d:{ty:"Browser",ac:r,ap:i,id:e,tr:t,ti:n}};return o&&r!==o&&(a.d.tk=o),btoa(JSON.stringify(a))}},{key:"shouldGenerateTrace",value:function(e){return this.isDtEnabled()&&this.isAllowedOrigin(e)}},{key:"isAllowedOrigin",value:function(e){var t=!1,n={};if((0,E.Mt)("distributed_tracing")&&(n=(0,E.P_)().distributed_tracing),e.sameOrigin)t=!0;else if(n.allowed_origins instanceof Array)for(var r=0;r<n.allowed_origins.length;r++){var i=(0,w.e)(n.allowed_origins[r]);if(e.hostname===i.hostname&&e.protocol===i.protocol&&e.port===i.port){t=!0;break}}return t}},{key:"isDtEnabled",value:function(){var e=(0,E.Mt)(this.agentIdentifier,"distributed_tracing");return!!e&&!!e.enabled}},{key:"excludeNewrelicHeader",value:function(){var e=(0,E.Mt)(this.agentIdentifier,"distributed_tracing");return!!e&&!!e.exclude_newrelic_header}},{key:"useNewrelicHeaderForCors",value:function(){var e=(0,E.Mt)(this.agentIdentifier,"distributed_tracing");return!!e&&!1!==e.cors_use_newrelic_header}},{key:"useTraceContextHeadersForCors",value:function(){var e=(0,E.Mt)(this.agentIdentifier,"distributed_tracing");return!!e&&!e.cors_use_tracecontext_headers}}]),e}(),k=n(1839),T=["load","error","abort","timeout"],j=T.length,_=r.Y.REQ,I=window.XMLHttpRequest,P=function(e){p(n,e);var t=m(n);function n(e){var r;return l(this,n),r=t.call(this,e),(0,i.O)(r.agentIdentifier).xhrWrappable&&!(0,i.O)(r.agentIdentifier).disabled&&(r.dt=new O(r.agentIdentifier)),r}return v(n)}(k.W);function A(){var e=(0,b.u5)(s.ee);return function(e,t){function n(e){var n=this.params,r=this.metrics;if(!this.ended){this.ended=!0;for(var o=0;o<j;o++)e.removeEventListener(T[o],this.listener,!1);n.aborted||(r.duration=(0,y.now)()-this.startTime,this.loadCaptureCalled||4!==e.readyState?null==n.status&&(n.status=0):i(this,e),r.cbTime=this.cbTime,t("xhr",[n,r,this.startTime,this.endTime,"xhr"],this))}}function r(e,t){var n=(0,w.e)(t),r=e.params;r.hostname=n.hostname,r.port=n.port,r.protocol=n.protocol,r.host=n.hostname+":"+n.port,r.pathname=n.pathname,e.parsedOrigin=n,e.sameOrigin=n.sameOrigin}function i(e,t){e.params.status=t.status;var n=function(e,t){var n=e.responseType;return"json"===n&&null!==t?t:"arraybuffer"===n||"blob"===n||"json"===n?h(e.response):"text"===n||""===n||void 0===n?h(e.responseText):void 0}(t,e.lastSize);if(n&&(e.metrics.rxSize=n),e.sameOrigin){var r=t.getResponseHeader("X-NewRelic-App-Data");r&&(e.params.cat=r.split(", ").pop())}e.loadCaptureCalled=!0}e.on("new-xhr",(function(e){var t=this;t.totalCbs=0,t.called=0,t.cbTime=0,t.end=n,t.ended=!1,t.xhrGuids={},t.lastSize=null,t.loadCaptureCalled=!1,t.params=this.params||{},t.metrics=this.metrics||{},e.addEventListener("load",(function(n){i(t,e)}),(0,g.m)(!1)),d.I&&(d.I>34||d.I<10)||e.addEventListener("progress",(function(e){t.lastSize=e.loaded}),(0,g.m)(!1))})),e.on("open-xhr-start",(function(e){this.params={method:e[0]},r(this,e[1]),this.metrics={}})),e.on("open-xhr-end",(function(e,t){var n=(0,o.D)();"xpid"in n&&this.sameOrigin&&t.setRequestHeader("X-NewRelic-ID",n.xpid);var r=this.dt.generateTracePayload(this.parsedOrigin);if(r){var i=!1;r.newrelicHeader&&(t.setRequestHeader("newrelic",r.newrelicHeader),i=!0),r.traceContextParentHeader&&(t.setRequestHeader("traceparent",r.traceContextParentHeader),r.traceContextStateHeader&&t.setRequestHeader("tracestate",r.traceContextStateHeader),i=!0),i&&(this.dt=r)}})),e.on("send-xhr-start",(function(t,n){var r=this.metrics,i=t[0],o=this;if(r&&i){var a=h(i);a&&(r.txSize=a)}this.startTime=(0,y.now)(),this.listener=function(t){try{"abort"!==t.type||o.loadCaptureCalled||(o.params.aborted=!0),("load"!==t.type||o.called===o.totalCbs&&(o.onloadCalled||"function"!=typeof n.onload))&&o.end(n)}catch(t){try{e.emit("internal-error",[t])}catch(e){}}};for(var s=0;s<j;s++)n.addEventListener(T[s],this.listener,(0,g.m)(!1))})),e.on("xhr-cb-time",(function(e,t,n){this.cbTime+=e,t?this.onloadCalled=!0:this.called+=1,this.called!==this.totalCbs||!this.onloadCalled&&"function"==typeof n.onload||this.end(n)})),e.on("xhr-load-added",(function(e,t){var n=""+f(e)+!!t;this.xhrGuids&&!this.xhrGuids[n]&&(this.xhrGuids[n]=!0,this.totalCbs+=1)})),e.on("xhr-load-removed",(function(e,t){var n=""+f(e)+!!t;this.xhrGuids&&this.xhrGuids[n]&&(delete this.xhrGuids[n],this.totalCbs-=1)})),e.on("xhr-resolved",(function(){this.endTime=(0,y.now)()})),e.on("addEventListener-end",(function(t,n){n instanceof I&&"load"===t[0]&&e.emit("xhr-load-added",[t[1],t[2]],n)})),e.on("removeEventListener-end",(function(t,n){n instanceof I&&"load"===t[0]&&e.emit("xhr-load-removed",[t[1],t[2]],n)})),e.on("fn-end",(function(t,n){this.xhrCbStart&&e.emit("xhr-cb-time",[(0,y.now)()-this.xhrCbStart,this.onload,n],n)})),e.on("fetch-before-start",(function(e){var t,n=e[1]||{};"string"==typeof e[0]?t=e[0]:e[0]&&e[0].url?t=e[0].url:window.URL&&e[0]&&e[0]instanceof URL&&(t=e[0].href),t&&(this.parsedOrigin=(0,w.e)(t),this.sameOrigin=this.parsedOrigin.sameOrigin);var r=this.dt.generateTracePayload(this.parsedOrigin);if(r&&(r.newrelicHeader||r.traceContextParentHeader))if("string"==typeof e[0]||window.URL&&e[0]&&e[0]instanceof URL){var i={};for(var o in n)i[o]=n[o];i.headers=new Headers(n.headers||{}),a(i.headers,r)&&(this.dt=r),e.length>1?e[1]=i:e.push(i)}else e[0]&&e[0].headers&&a(e[0].headers,r)&&(this.dt=r);function a(e,t){var n=!1;return t.newrelicHeader&&(e.set("newrelic",t.newrelicHeader),n=!0),t.traceContextParentHeader&&(e.set("traceparent",t.traceContextParentHeader),t.traceContextStateHeader&&e.set("tracestate",t.traceContextStateHeader),n=!0),n}})),e.on("fetch-start",(function(e,t){this.params={},this.metrics={},this.startTime=(0,y.now)(),this.dt=t,e.length>=1&&(this.target=e[0]),e.length>=2&&(this.opts=e[1]);var n,i=this.opts||{},o=this.target;"string"==typeof o?n=o:"object"==x(o)&&o instanceof _?n=o.url:window.URL&&"object"==x(o)&&o instanceof URL&&(n=o.href),r(this,n);var a=(""+(o&&o instanceof _&&o.method||i.method||"GET")).toUpperCase();this.params.method=a,this.txSize=h(i.body)||0})),e.on("fn-start",(function(e,t,n){t instanceof I&&("onload"===n&&(this.onload=!0),("load"===(e[0]&&e[0].type)||this.onload)&&(this.xhrCbStart=(0,y.now)()))})),e.on("fetch-done",(function(e,n){var r;this.endTime=(0,y.now)(),this.params||(this.params={}),this.params.status=n?n.status:0,"string"==typeof this.rxSize&&this.rxSize.length>0&&(r=+this.rxSize);var i={txSize:this.txSize,rxSize:r,duration:(0,y.now)()-this.startTime};t("xhr",[this.params,i,this.startTime,this.endTime,"fetch"],this)}))}(s.ee,a.pr),e}},7326:function(e,t,n){"use strict";n.r(t),n.d(t,{Aggregate:function(){return A}});var r=/([a-z0-9]+)$/i;function i(e){if(e){var t=e.match(r);return t?t[1]:void 0}}var o=n(8354),a=/^\n+|\n+$/g,s=/function (.+?)\s*\(/,u=/^\s*at (?:((?:\[object object\])?(?:[^(]*\([^)]*\))*[^()]*(?: \[as \S+\])?) )?\(?((?:file|http|https|chrome-extension):.*?)?:(\d+)(?::(\d+))?\)?\s*$/i,c=/^\s*(?:(\S*|global code)(?:\(.*?\))?@)?((?:file|http|https|chrome|safari-extension).*?):(\d+)(?::(\d+))?\s*$/i,f=/^\s*at .+ \(eval at \S+ \((?:(?:file|http|https):[^)]+)?\)(?:, [^:]*:\d+:\d+)?\)$/i,d=/^\s*at Function code \(Function code:\d+:\d+\)\s*/i;function h(e,t){var n,r=function(e){var t=e.match(c);return t||(t=e.match(u)),t?{url:t[2],func:"Anonymous function"!==t[1]&&"global code"!==t[1]&&t[1]||null,line:+t[3],column:t[4]?+t[4]:null}:e.match(f)||e.match(d)||"anonymous"===e?{func:"evaluated code"}:void 0}(t);return r?((n=r.func)&&n.indexOf("nrWrapper")>=0?e.wrapperSeen=!0:e.stackLines.push(t),e.wrapperSeen||e.frames.push(r),e):(e.stackLines.push(t),e)}function g(e){var t=s.exec(String(e.constructor));return t&&t.length>1?t[1]:"unknown"}function y(e){var t=0;if(!e||!e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}var w=n(3406),E=n(2848),S=n(1240),O=n(2995),k=n(1558),T=n(6061),j=n(2909),_=n(9729),I=n(2997),P=n(5988),A=function(e){p(n,e);var t=m(n);function n(e,r){var i;l(this,n),(i=t.call(this,e,r)).stackReported={},i.pageviewReported={},i.errorCache={},i.currentBody,i.errorOnPage=!1,i.ee.on("interactionSaved",(function(e){this.errorCache[e.id]&&(this.errorCache[e.id].forEach((function(t){var n={},r=t[4],i=t[5];(0,k.D)(r,s),(0,k.D)(e.root.attrs.custom,s),(0,k.D)(i,s);var o=t[2];o.browserInteractionId=e.root.attrs.id,delete o._interactionId,o._interactionNodeId&&(o.parentNodeId=o._interactionNodeId.toString(),delete o._interactionNodeId);var a=t[1]+e.root.attrs.id+":"+y((0,S.P)(n));function s(e,t){n[e]=t&&"object"==x(t)?(0,S.P)(t):t}this.aggregator.store(t[0],a,o,t[3],n)})),delete this.errorCache[e.id])})),i.ee.on("interactionDiscarded",(function(e){this.errorCache&&this.errorCache[e.id]&&(this.errorCache[e.id].forEach((function(t){var n={},r=t[4],i=t[5];(0,k.D)(r,s),(0,k.D)(e.root.attrs.custom,s),(0,k.D)(i,s);var o=t[2];delete o._interactionId,delete o._interactionNodeId;var a=t[1]+":"+y((0,S.P)(n));function s(e,t){n[e]=t&&"object"==x(t)?(0,S.P)(t):t}this.aggregator.store(t[0],a,t[2],t[3],n)})),delete this.errorCache[e.id])})),(0,w.XN)("err",(function(){var e;return(e=i).storeError.apply(e,arguments)}),void 0,i.ee),(0,w.XN)("ierr",(function(){var e;return(e=i).storeError.apply(e,arguments)}),void 0,i.ee);var o=(0,T.Mt)(i.agentIdentifier,"jserrors.harvestTimeSeconds")||10,a=new E.o("jserrors",{onFinished:function(){var e;return(e=i).onHarvestFinished.apply(e,arguments)}},b(i));return a.harvest.on("jserrors",(function(){var e;return(e=i).onHarvestStarted.apply(e,arguments)})),a.startTimer(o),i}return v(n,[{key:"onHarvestStarted",value:function(e){var t=this.aggregator.take(["err","ierr"]);e.retry&&(this.currentBody=t);var n={body:t,qs:{}},r=(0,S.P)((0,j.O)(this.agentIdentifier).releaseIds);return"{}"!==r&&(n.qs.ri=r),t&&t.err&&t.err.length&&!this.errorOnPage&&(n.qs.pve="1",this.errorOnPage=!0),n}},{key:"onHarvestFinished",value:function(e){e.retry&&this.currentBody&&((0,k.D)(this.currentBody,(function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=this.getBucketName(r.params,r.custom);this.aggregator.merge(e,i,r.metrics,r.params,r.custom)}})),this.currentBody=null)}},{key:"nameHash",value:function(e){return y(e.exceptionClass)^e.stackHash}},{key:"getBucketName",value:function(e,t){return this.nameHash(e)+":"+y((0,S.P)(t))}},{key:"canonicalizeURL",value:function(e,t){if("string"!=typeof e)return"";var n=(0,P.f)(e);return n===t?"<inline>":n}},{key:"buildCanonicalStackString",value:function(e,t){for(var n="",r=0;r<e.frames.length;r++){var o=e.frames[r],a=i(o.func);n&&(n+="\n"),a&&(n+=a+"@"),"string"==typeof o.url&&(n+=o.url),o.line&&(n+=":"+o.line)}return n}},{key:"canonicalizeStackURLs",value:function(e){for(var t=(0,P.f)((0,j.O)(this.agentIdentifier).origin),n=0;n<e.frames.length;n++){var r=e.frames[n],i=r.url,o=this.canonicalizeURL(i,t);o&&o!==r.url&&(r.url=o,e.stackString=e.stackString.split(i).join(o))}return e}},{key:"storeError",value:function(e,t,n,r){if(t=t||(0,I.now)(),n||!(0,j.O)(this.agentIdentifier).onerror||!(0,j.O)(this.agentIdentifier).onerror(e)){var i,s=this.canonicalizeStackURLs(function(e){var t=null;try{if(t=function(e){if(!e.stack)return null;var t,n=(0,o.u)(e.stack.split("\n"),h,{frames:[],stackLines:[],wrapperSeen:!1});return n.frames.length?{mode:"stack",name:e.name||g(e),message:e.message,stackString:(t=n.stackLines,function(e){var t;if(e.length>100){var n=e.length-100;t=e.slice(0,50).join("\n"),t+="\n< ...truncated "+n+" lines... >\n",t+=e.slice(-50).join("\n")}else t=e.join("\n");return t}(t).replace(a,"")),frames:n.frames}:null}(e),t)return t}catch(e){}try{if(t=function(e){if(!("line"in e))return null;var t=e.name||g(e);if(!e.sourceURL)return{mode:"sourceline",name:t,message:e.message,stackString:g(e)+": "+e.message+"\n in evaluated code",frames:[{func:"evaluated code"}]};var n=t+": "+e.message+"\n at "+e.sourceURL;return e.line&&(n+=":"+e.line,e.column&&(n+=":"+e.column)),{mode:"sourceline",name:t,message:e.message,stackString:n,frames:[{url:e.sourceURL,line:e.line,column:e.column}]}}(e),t)return t}catch(e){}try{if(t=function(e){var t=e.name||g(e);return t?{mode:"nameonly",name:t,message:e.message,stackString:t+": "+e.message,frames:[]}:null}(e),t)return t}catch(e){}return{mode:"failed",stackString:"",frames:[]}}(e)),u={stackHash:y(this.buildCanonicalStackString(s)),exceptionClass:s.name,request_uri:window.location.pathname};s.message&&(u.message=""+s.message),this.stackReported[u.stackHash]?u.browser_stack_hash=y(s.stackString):(this.stackReported[u.stackHash]=!0,u.stack_trace=(i=s.stackString).length>65530?i.substr(0,65530):i),u.releaseIds=(0,S.P)((0,j.O)(this.agentIdentifier).releaseIds);var c=this.nameHash(u);this.pageviewReported[c]||(u.pageview=1,this.pageviewReported[c]=!0);var f=n?"ierr":"err",d={time:t};if((0,O.pr)("errorAgg",[f,c,u,d],void 0,void 0,this.ee),null!=u._interactionId)this.errorCache[u._interactionId]=this.errorCache[u._interactionId]||[],this.errorCache[u._interactionId].push([f,c,u,d,v,r]);else{var l={},v=(0,_.C)(this.agentIdentifier).jsAttributes;(0,k.D)(v,m),r&&(0,k.D)(r,m);var p=c+":"+y((0,S.P)(l));this.aggregator.store(f,p,u,d,l)}}function m(e,t){l[e]=t&&"object"==x(t)?(0,S.P)(t):t}}}]),n}(n(1839).W)},3825:function(e,t,n){"use strict";n.r(t),n.d(t,{Instrument:function(){return y}});var r=n(2995),i=n(2909),o=n(2997),a=n(9381),s=n(3097),u=n(7957),c=n.n(u),f=n(1839),d=window.onerror,h=!1,g="nr@seenError",y=function(e){p(n,e);var t=m(n);function n(e){var u;l(this,n),(u=t.call(this,e)).skipNext=0;var c=b(u);u.ee.on("fn-start",(function(e,t,n){h&&(this.skipNext=this.skipNext?this.skipNext+1:1)})),u.ee.on("fn-err",(function(e,t,n){h&&!n[g]&&((0,a.X)(n,g,(function(){return!0})),this.thrown=!0,x(n,void 0,c.ee))})),u.ee.on("fn-end",(function(){h&&!this.thrown&&this.skipNext>0&&(this.skipNext-=1)})),u.ee.on("internal-error",(function(e){(0,r.pr)("ierr",[e,(0,o.now)(),!0],void 0,void 0,u.ee)}));var f=window.onerror;window.onerror=function(){var e;return f&&f.apply(void 0,arguments),(e=u).onerrorHandler.apply(e,arguments),!1};try{window.addEventListener("unhandledrejection",(function(e){u.onerrorHandler(null,null,null,null,new Error(e.reason))}))}catch(e){}try{throw new Error}catch(e){"stack"in e&&((0,s.BV)(u.ee),(0,s.gy)(u.ee),"addEventListener"in window&&(0,s.em)(u.ee),(0,i.O)(u.agentIdentifier).xhrWrappable&&(0,s.Kf)(u.ee),h=!0)}return u}return v(n,[{key:"onerrorHandler",value:function(e,t,n,i,a){try{this.skipNext?this.skipNext-=1:x(a||new w(e,t,n),!0,this.ee)}catch(e){try{(0,r.pr)("ierr",[e,(0,o.now)(),!0],void 0,void 0,this.ee)}catch(e){}}return"function"==typeof d&&d.apply(this,c()(arguments))}}]),n}(f.W);function w(e,t,n){this.message=e||"Uncaught error with no additional information",this.sourceURL=t,this.line=n}function x(e,t,n){var i=t?null:(0,o.now)();(0,r.pr)("err",[e,i],void 0,void 0,n)}},9098:function(e,t,n){"use strict";n.r(t),n.d(t,{Aggregate:function(){return d}});var r=n(1558),i=n(1240),o=n(3406),a=n(2848),s=n(5988),u=n(6061),c=n(9729),f=n(2909),d=function(e){p(n,e);var t=m(n);function n(e,r){var i;return l(this,n),(i=t.call(this,e,r)).eventsPerMinute=240,i.harvestTimeSeconds=(0,u.Mt)("ins.harvestTimeSeconds")||30,i.eventsPerHarvest=i.eventsPerMinute*i.harvestTimeSeconds/60,i.referrerUrl,i.currentEvents,i.events=[],i.att={},(0,c.L)(i.agentIdentifier,{jsAttributes:i.att}),document.referrer&&(i.referrerUrl=(0,s.f)(document.referrer)),(0,o.XN)("api-setCustomAttribute",(function(){var e;return(e=i).setCustomAttribute.apply(e,arguments)}),"api",i.ee),i.ee.on("feat-ins",(function(){var e=this;(0,o.XN)("api-addPageAction",(function(){return e.addPageAction.apply(e,arguments)}),void 0,this.ee);var t=new a.o("ins",{onFinished:function(){return e.onHarvestFinished.apply(e,arguments)}},this);t.harvest.on("ins",(function(){return e.onHarvestStarted.apply(e,arguments)})),t.startTimer(this.harvestTimeSeconds,0)})),i}return v(n,[{key:"onHarvestStarted",value:function(e){var t=(0,c.C)(this.agentIdentifier),n={qs:{ua:t.userAttributes,at:t.atts},body:{ins:this.events}};return e.retry&&(this.currentEvents=this.events),this.events=[],n}},{key:"onHarvestFinished",value:function(e){e&&e.sent&&e.retry&&this.currentEvents&&(this.events=this.events.concat(this.currentEvents),this.currentEvents=null)}},{key:"addPageAction",value:function(e,t,n){if(!(this.events.length>=this.eventsPerHarvest)){var o,a,u={};"undefined"!=typeof window&&window.document&&window.document.documentElement&&(o=window.document.documentElement.clientWidth,a=window.document.documentElement.clientHeight);var c={timestamp:e+(0,f.O)(this.agentIdentifier).offset,timeSinceLoad:e/1e3,browserWidth:o,browserHeight:a,referrerUrl:this.referrerUrl,currentUrl:(0,s.f)(""+location),pageUrl:(0,s.f)((0,f.O)(this.agentIdentifier).origin),eventType:"PageAction"};(0,r.D)(c,d),(0,r.D)(this.att,d),n&&"object"==x(n)&&(0,r.D)(n,d),u.actionName=t||"",this.events.push(u)}function d(e,t){u[e]=t&&"object"==x(t)?(0,i.P)(t):t}}},{key:"setCustomAttribute",value:function(e,t,n){this.att[t]=n}}]),n}(n(1839).W)},2895:function(e,t,n){"use strict";n.r(t),n.d(t,{Instrument:function(){return i}});var r=n(2909),i=function(e){p(n,e);var t=m(n);function n(e){var i;return l(this,n),i=t.call(this,e),(0,r.O)(i.agentIdentifier).disabled||((0,r.O)(i.agentIdentifier).features.ins=!0),i}return v(n)}(n(1839).W)},3887:function(e,t,n){"use strict";n.r(t),n.d(t,{Aggregate:function(){return x}});var r=n(232),i=n(1558),o=n(353),a=[];function s(e,t){return u(e.type,0,t,"ty"),u(e.redirectCount,0,t,"rc"),t}function u(e,t,n,r){var i;"number"==typeof e&&e>0&&(i=Math.round(e-t),n[r]=i),a.push(i)}var c=n(1240),f={},d=n(870),h=n(6061),g=n(9729),y=n(2909),w=n(2848),x=function(e){p(n,e);var t=m(n);function n(e,a){var v;l(this,n),(v=t.call(this,e,a)).getScheme=function(){return!1===(0,h.Mt)(v.agentIdentifier,"ssl")?"http":"https"};var p=(0,g.C)(v.agentIdentifier);if(p.beacon){p.queueTime&&v.aggregator.store("measures","qt",{value:p.queueTime}),p.applicationTime&&v.aggregator.store("measures","ap",{value:p.applicationTime}),(0,r.L)(v.aggregator,"be","starttime","firstbyte"),(0,r.L)(v.aggregator,"fe","firstbyte","onload"),(0,r.L)(v.aggregator,"dc","firstbyte","domContent");var m,x,E,S=v.aggregator.get("measures"),O=(0,i.D)(S,(function(e,t){return"&"+e+"="+t.params.value})).join(""),k=[new w.o("page-view-event",{},b(v)).harvest.baseQueryString()];if(k.push(O),k.push((0,o.wu)("tt",p.ttGuid)),k.push((0,o.wu)("us",p.user)),k.push((0,o.wu)("ac",p.account)),k.push((0,o.wu)("pr",p.product)),k.push((0,o.wu)("af",(0,i.D)((0,y.O)(v.agentIdentifier).features,(function(e){return e})).join(","))),window.performance&&void 0!==window.performance.timing){var T={timing:(m=window.performance.timing,x={},E=m.navigationStart,x.of=E,u(E,E,x,"n"),u(m.unloadEventStart,E,x,"u"),u(m.redirectStart,E,x,"r"),u(m.unloadEventEnd,E,x,"ue"),u(m.redirectEnd,E,x,"re"),u(m.fetchStart,E,x,"f"),u(m.domainLookupStart,E,x,"dn"),u(m.domainLookupEnd,E,x,"dne"),u(m.connectStart,E,x,"c"),u(m.secureConnectionStart,E,x,"s"),u(m.connectEnd,E,x,"ce"),u(m.requestStart,E,x,"rq"),u(m.responseStart,E,x,"rp"),u(m.responseEnd,E,x,"rpe"),u(m.domLoading,E,x,"dl"),u(m.domInteractive,E,x,"di"),u(m.domContentLoadedEventStart,E,x,"ds"),u(m.domContentLoadedEventEnd,E,x,"de"),u(m.domComplete,E,x,"dc"),u(m.loadEventStart,E,x,"l"),u(m.loadEventEnd,E,x,"le"),x),navigation:s(window.performance.navigation,{})};k.push((0,o.wu)("perf",(0,c.P)(T)))}if(window.performance&&window.performance.getEntriesByType){var j=window.performance.getEntriesByType("paint");j&&j.length>0&&j.forEach((function(e){var t,n;!e.startTime||e.startTime<=0||("first-paint"===e.name?k.push((0,o.wu)("fp",String(Math.floor(e.startTime)))):"first-contentful-paint"===e.name&&k.push((0,o.wu)("fcp",String(Math.floor(e.startTime)))),t=e.name,n=Math.floor(e.startTime),f[t]=n)}))}k.push((0,o.wu)("xx",p.extra)),k.push((0,o.wu)("ua",p.userAttributes)),k.push((0,o.wu)("at",p.atts));var _=(0,c.P)(p.jsAttributes);k.push((0,o.wu)("ja","{}"===_?null:_));var I=(0,o.nI)(k,(0,y.O)(v.agentIdentifier).maxBytes);d.T.jsonp(v.getScheme()+"://"+p.beacon+"/1/"+p.licenseKey+I,"NREUM.setToken")}return v}return v(n)}(n(1839).W)},8161:function(e,t,n){"use strict";n.r(t),n.d(t,{Instrument:function(){return f}});var r=n(2995),i=n(2997),o=n(1839),a=n(4518),s=window,u=s.document;function c(e){"complete"===u.readyState&&e()}var f=function(e){p(n,e);var t=m(n);function n(e){var o,f;return l(this,n),o=t.call(this,e),(0,r.pr)("mark",["firstbyte",(0,i.getLastTimestamp)()],null,"api",o.ee),f=function(){return o.measureWindowLoaded()},u.addEventListener?s.addEventListener("load",f,(0,a.m)(!1)):s.attachEvent("onload",f),u.addEventListener?u.addEventListener("DOMContentLoaded",(function(){return o.measureDomContentLoaded()}),(0,a.m)(!1)):u.attachEvent("onreadystatechange",c),o}return v(n,[{key:"measureWindowLoaded",value:function(){var e=(0,i.now)();(0,r.pr)("mark",["onload",e+(0,i.getOffset)()],null,"api",this.ee),(0,r.pr)("timing",["load",e],void 0,void 0,this.ee)}},{key:"measureDomContentLoaded",value:function(){(0,r.pr)("mark",["domContent",(0,i.now)()+(0,i.getOffset)()],null,"api",this.ee)}}]),n}(o.W)},8617:function(e,t,n){"use strict";n.r(t),n.d(t,{Aggregate:function(){return d}});var r=n(151),i=n(2997),o=n(1558),a=n(2848),s=n(3406),u=n(5988),c=n(2995),f=n(9729),d=function(e){p(n,e);var t=m(n);function n(e,r){var i;l(this,n),(i=t.call(this,e,r)).timings=[],i.timingsSent=[],i.lcpRecorded=!1,i.lcp=null,i.clsSupported=!1,i.cls=0,i.clsSession={value:0,firstEntryTime:0,lastEntryTime:0},i.pageHideRecorded=!1,i.harvestTimeSeconds=30;try{clsSupported=PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch(e){}i.options||(i.options={});var o=i.options.maxLCPTimeSeconds||60,u=i.options.initialHarvestSeconds||10;return i.harvestTimeSeconds=i.options.harvestTimeSeconds||30,i.scheduler=new a.o("events",{onFinished:function(){var e;return(e=i).onHarvestFinished.apply(e,arguments)},getPayload:function(){var e;return(e=i).prepareHarvest.apply(e,arguments)},onUnload:function(){return i.finalHarvest()}},b(i)),(0,s.rP)("timing",(function(){var e;return(e=i).processTiming.apply(e,arguments)}),void 0,i.ee),(0,s.rP)("lcp",(function(){var e;return(e=i).updateLatestLcp.apply(e,arguments)}),void 0,i.ee),(0,s.rP)("cls",(function(){var e;return(e=i).updateClsScore.apply(e,arguments)}),void 0,i.ee),(0,s.rP)("pageHide",(function(){var e;return(e=i).updatePageHide.apply(e,arguments)}),void 0,i.ee),setTimeout((function(){i.recordLcp(),i.lcpRecorded=!0}),1e3*o),i.scheduler.startTimer(i.harvestTimeSeconds,u),i}return v(n,[{key:"recordLcp",value:function(){if(!this.lcpRecorded&&null!==this.lcp){var e=this.lcp[0],t=this.lcp[1],n=this.lcp[2],r={size:e.size,eid:e.id};n&&(n["net-type"]&&(r["net-type"]=n["net-type"]),n["net-etype"]&&(r["net-etype"]=n["net-etype"]),n["net-rtt"]&&(r["net-rtt"]=n["net-rtt"]),n["net-dlink"]&&(r["net-dlink"]=n["net-dlink"])),e.url&&(r.elUrl=(0,u.f)(e.url)),e.element&&e.element.tagName&&(r.elTag=e.element.tagName),(t>0||this.clsSupported)&&(r.cls=t),this.addTiming("lcp",Math.floor(e.startTime),r,!1),this.lcpRecorded=!0}}},{key:"updateLatestLcp",value:function(e,t){this.lcp&&this.lcp[0].size>=e.size||(this.lcp=[e,this.cls,t])}},{key:"updateClsScore",value:function(e){(e.startTime-this.clsSession.lastEntryTime>1e3||e.startTime-this.clsSession.firstEntryTime>5e3)&&(this.clsSession={value:0,firstEntryTime:e.startTime,lastEntryTime:e.startTime}),this.clsSession.value+=e.value,this.clsSession.lastEntryTime=Math.max(this.clsSession.lastEntryTime,e.startTime),this.cls<this.clsSession.value&&(this.cls=this.clsSession.value)}},{key:"updatePageHide",value:function(e){this.pageHideRecorded||(this.addTiming("pageHide",e,null,!0),this.pageHideRecorded=!0)}},{key:"recordUnload",value:function(){this.updatePageHide((0,i.now)()),this.addTiming("unload",(0,i.now)(),null,!0)}},{key:"addTiming",value:function(e,t,n,r){n=n||{},(this.cls>0||this.clsSupported)&&r&&(n.cls=this.cls),this.timings.push({name:e,value:t,attrs:n}),(0,c.pr)("pvtAdded",[e,t,n])}},{key:"processTiming",value:function(e,t,n){"fi"===e&&setTimeout(this.recordLcp,0),this.addTiming(e,t,n,!0)}},{key:"onHarvestFinished",value:function(e){if(e.retry&&this.timingsSent.length>0){for(var t=0;t<this.timingsSent.length;t++)this.timings.push(this.timingsSent[t]);this.timingsSent=[]}}},{key:"finalHarvest",value:function(){this.recordLcp(),this.recordUnload();var e=this.prepareHarvest({retry:!1});this.scheduler.harvest.send("events",e,{unload:!0})}},{key:"appendGlobalCustomAttributes",value:function(e){var t=e.attrs||{},n=(0,f.C)(this.agentIdentifier).jsAttributes||{},r=["size","eid","cls","type","fid","elTag","elUrl","net-type","net-etype","net-rtt","net-dlink"];(0,o.D)(n,(function(e,n){r.indexOf(e)<0&&(t[e]=n)}))}},{key:"prepareHarvest",value:function(e){if(0!==this.timings.length){var t=this.getPayload(this.timings);if(e.retry)for(var n=0;n<this.timings.length;n++)this.timingsSent.push(this.timings[n]);return this.timings=[],{body:{e:t}}}}},{key:"getPayload",value:function(e){for(var t=(0,r.FX)(),n="bel.6;",i=0;i<e.length;i++){var o=e[i];n+="e,",n+=t(o.name)+",",n+=(0,r.AG)(o.value,r.uR,!1)+",",this.appendGlobalCustomAttributes(o);var a=(0,r.n1)(o.attrs,t);a&&a.length>0&&(n+=(0,r.uR)(a.length)+";"+a.join(";")),i+1<e.length&&(n+=";")}return n}}]),n}(n(1839).W)},8396:function(e,t,n){"use strict";n.r(t),n.d(t,{Instrument:function(){return d}});var r,i,o,a=n(2995),s=n(4518);void 0!==document.hidden?(r="hidden",i="visibilitychange",o="visibilityState"):void 0!==document.msHidden?(r="msHidden",i="msvisibilitychange"):void 0!==document.webkitHidden&&(r="webkitHidden",i="webkitvisibilitychange",o="webkitVisibilityState");var u=n(8240),c=n(2997),f=n(6061),d=function(e){p(n,e);var t=m(n);function n(e){var a,u;if(l(this,n),(a=t.call(this,e)).pageHiddenTime,a.performanceObserver,a.lcpPerformanceObserver,a.clsPerformanceObserver,a.fiRecorded=!1,a.isEnabled()){if("PerformanceObserver"in window&&"function"==typeof window.PerformanceObserver){a.performanceObserver=new PerformanceObserver(perfObserver);try{a.performanceObserver.observe({entryTypes:["paint"]})}catch(e){}a.lcpPerformanceObserver=new PerformanceObserver(lcpObserver);try{a.lcpPerformanceObserver.observe({entryTypes:["largest-contentful-paint"]})}catch(e){}a.clsPerformanceObserver=new PerformanceObserver(clsObserver);try{a.clsPerformanceObserver.observe({type:"layout-shift",buffered:!0})}catch(e){}}"addEventListener"in document&&(a.fiRecorded=!1,["click","keydown","mousedown","pointerdown","touchstart"].forEach((function(e){document.addEventListener(e,(function(){var e;return(e=a).captureInteraction.apply(e,arguments)}),(0,s.m)(!1))}))),u=function(){var e;return(e=a).captureVisibilityChange.apply(e,arguments)},"addEventListener"in document&&i&&document.addEventListener(i,(function(){o&&document[o]?u(document[o]):document[r]?u("hidden"):u("visible")}),(0,s.m)(!1))}return y(a)}return v(n,[{key:"isEnabled",value:function(){return!1!==(0,f.Mt)(this.agentIdentifier,"page_view_timing.enabled")}},{key:"perfObserver",value:function(e,t){var n=this;e.getEntries().forEach((function(e){"first-paint"===e.name?(0,a.pr)("timing",["fp",Math.floor(e.startTime)],void 0,void 0,n.ee):"first-contentful-paint"===e.name&&(0,a.pr)("timing",["fcp",Math.floor(e.startTime)],void 0,void 0,n.ee)}))}},{key:"lcpObserver",value:function(e,t){var n=e.getEntries();if(n.length>0){var r=n[n.length-1];if(this.pageHiddenTime&&this.pageHiddenTime<r.startTime)return;var i=[r],o=this.addConnectionAttributes({});o&&i.push(o),(0,a.pr)("lcp",i,void 0,void 0,this.ee)}}},{key:"clsObserver",value:function(e){e.getEntries().forEach((function(e){e.hadRecentInput||(0,a.pr)("cls",[e],void 0,void 0,this.ee)}))}},{key:"addConnectionAttributes",value:function(e){var t=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(t)return t.type&&(e["net-type"]=t.type),t.effectiveType&&(e["net-etype"]=t.effectiveType),t.rtt&&(e["net-rtt"]=t.rtt),t.downlink&&(e["net-dlink"]=t.downlink),e}},{key:"captureInteraction",value:function(e){if(e instanceof(0,u.gosNREUM)().o.EV&&!this.fiRecorded){var t=Math.round(e.timeStamp),n={type:e.type};this.addConnectionAttributes(n),t<=(0,c.now)()?n.fid=(0,c.now)()-t:t>(0,c.getOffset)()&&t<=Date.now()?(t-=(0,c.getOffset)(),n.fid=(0,c.now)()-t):t=(0,c.now)(),this.fiRecorded=!0,(0,a.pr)("timing",["fi",t,n],void 0,void 0,this.ee)}}},{key:"captureVisibilityChange",value:function(e){"hidden"===e&&(this.pageHiddenTime=(0,c.now)(),(0,a.pr)("pageHide",[this.pageHiddenTime],void 0,void 0,this.ee))}}]),n}(n(1839).W)},842:function(e,t,n){"use strict";n.r(t),n.d(t,{Aggregate:function(){return S}});var r=n(3406),i=n(6943),o=n(2848),a=n(1558),s=n(8354),u=n(1240),c=n(4017),f=n(6219),d=n(7957),h=n.n(d),g=n(6061),b=n(2909),w=n(9729),x=n(3706),E=n(2997),S=function(e){p(n,e);var t=m(n);function n(e,s){var u;if(l(this,n),(u=t.call(this,e,s)).ptid="",u.ignoredEvents={global:{mouseup:!0,mousedown:!0},window:{load:!0,pagehide:!0}},u.toAggregate={typing:[1e3,2e3],scrolling:[100,1e3],mousing:[1e3,2e3],touching:[1e3,2e3]},u.rename={typing:{keydown:!0,keyup:!0,keypress:!0},mousing:{mousemove:!0,mouseenter:!0,mouseleave:!0,mouseover:!0,mouseout:!0},scrolling:{scroll:!0},touching:{touchstart:!0,touchmove:!0,touchend:!0,touchcancel:!0,touchenter:!0,touchleave:!0}},u.trace={},u.nodeCount=0,u.sentTrace=null,u.harvestTimeSeconds=(0,g.Mt)(u.agentIdentifier,"stn.harvestTimeSeconds")||10,u.maxNodesPerHarvest=(0,g.Mt)(u.agentIdentifier,"stn.maxNodesPerHarvest")||1e3,u.laststart=0,(0,x.v)(),i.y0&&(0,b.O)(u.agentIdentifier).features.stn){u.storeTiming(window.performance.timing);var c=new o.o("resources",{onFinished:function(){return function(e){e.sent&&e.responseText&&!this.ptid&&(this.ptid=e.responseText,(0,b.O)(this.agentIdentifier).ptid=this.ptid,c.startTimer(this.harvestTimeSeconds)),e.sent&&e.retry&&this.sentTrace&&((0,a.D)(this.sentTrace,(function(e,t){this.mergeSTNs(e,t)})),this.sentTrace=null)}.apply(void 0,arguments)},retryDelay:function(){var e;return(e=u).harvestTimeSeconds.apply(e,arguments)}});c.runHarvest({needResponse:!0}),c.harvest.on("resources",(function(){return function(e){return(0,E.now)()>9e5?(c.stopTimer(),void(this.trace={})):this.ptid&&this.nodeCount<=30?void 0:this.takeSTNs(e.retry)}.apply(void 0,arguments)})),(0,r.XN)("bst",(function(){var e;return(e=u).storeEvent.apply(e,arguments)}),void 0,u.ee),(0,r.XN)("bstTimer",(function(){var e;return(e=u).storeTimer.apply(e,arguments)}),void 0,u.ee),(0,r.XN)("bstResource",(function(){var e;return(e=u).storeResources.apply(e,arguments)}),void 0,u.ee),(0,r.XN)("bstHist",(function(){var e;return(e=u).storeHist.apply(e,arguments)}),void 0,u.ee),(0,r.XN)("bstXhrAgg",(function(){var e;return(e=u).storeXhrAgg.apply(e,arguments)}),void 0,u.ee),(0,r.XN)("bstApi",(function(){var e;return(e=u).storeSTN.apply(e,arguments)}),void 0,u.ee),(0,r.XN)("errorAgg",(function(){var e;return(e=u).storeErrorAgg.apply(e,arguments)}),void 0,u.ee),(0,r.XN)("pvtAdded",(function(){var e;return(e=u).processPVT.apply(e,arguments)}),void 0,u.ee)}return y(u)}return v(n,[{key:"processPVT",value:function(e,t,n){var r={};r[e]=t,this.storeTiming(r,!0),this.hasFID(e,n)&&this.storeEvent({type:"fid",target:"document"},"document",t,t+n.fid)}},{key:"storeTiming",value:function(e,t){var n,r,i,o=Date.now();for(n in e)"number"==typeof(r=e[n])&&r>0&&r<o&&(i=t?e[n]:e[n]-(0,b.O)(this.agentIdentifier).offset,this.storeSTN({n:n,s:i,e:i,o:"document",t:"timing"}))}},{key:"storeTimer",value:function(e,t,n,r){var i="timer";"requestAnimationFrame"===r&&(i=r);var o={n:r,s:t,e:n,o:"window",t:i};this.storeSTN(o)}},{key:"storeEvent",value:function(e,t,n,r){if(this.shouldIgnoreEvent(e,t))return!1;var i={n:this.evtName(e.type),s:n,e:r,t:"event"};try{i.o=this.evtOrigin(e.target,t)}catch(e){i.o=this.evtOrigin(null,t)}this.storeSTN(i)}},{key:"evtName",value:function(e){var t=e;return(0,a.D)(this.rename,(function(n,r){e in r&&(t=n)})),t}},{key:"evtOrigin",value:function(e,t){var n="unknown";if(e&&e instanceof XMLHttpRequest){var r=this.ee.context(e).params;n=r.status+" "+r.method+": "+r.host+r.pathname}else e&&"string"==typeof e.tagName&&(n=e.tagName.toLowerCase(),e.id&&(n+="#"+e.id),e.className&&(n+="."+h()(e.classList).join(".")));return"unknown"===n&&("string"==typeof t?n=t:t===document?n="document":t===window?n="window":t instanceof FileReader&&(n="FileReader")),n}},{key:"storeHist",value:function(e,t,n){var r={n:"history.pushState",s:n,e:n,o:e,t:t};this.storeSTN(r)}},{key:"storeResources",value:function(e){e&&0!==e.length&&(e.forEach((function(e){var t=(0,c.e)(e.name),n={n:e.initiatorType,s:0|e.fetchStart,e:0|e.responseEnd,o:t.protocol+"://"+t.hostname+":"+t.port+t.pathname,t:e.entryType};n.s<=this.laststart||this.storeSTN(n)})),this.laststart=0|e[e.length-1].fetchStart)}},{key:"storeErrorAgg",value:function(e,t,n,r){if("err"===e){var i={n:"error",s:r.time,e:r.time,o:n.message,t:n.stackHash};this.storeSTN(i)}}},{key:"storeXhrAgg",value:function(e,t,n,r){if("xhr"===e){var i={n:"Ajax",s:r.time,e:r.time+r.duration,o:n.status+" "+n.method+": "+n.host+n.pathname,t:"ajax"};this.storeSTN(i)}}},{key:"storeSTN",value:function(e){if(!(this.nodeCount>=this.maxNodesPerHarvest)){var t=this.trace[e.n];t||(t=this.trace[e.n]=[]),t.push(e),this.nodeCount++}}},{key:"mergeSTNs",value:function(e,t){if(!(this.nodeCount>=this.maxNodesPerHarvest)){var n=this.trace[e];n||(n=this.trace[e]=[]),this.trace[e]=t.concat(n),this.nodeCount+=t.length}}},{key:"takeSTNs",value:function(e){(0,f.W)()||this.storeResources(window.performance.getEntriesByType("resource"));var t=(0,s.u)((0,a.D)(this.trace,(function(e,t){return e in this.toAggregate?(0,s.u)((0,a.D)((0,s.u)(t.sort(this.byStart),this.smearEvtsByOrigin(e),{}),this.val),this.flatten,[]):t})),this.flatten,[]);if(0===t.length)return{};e&&(this.sentTrace=this.trace),this.trace={},this.nodeCount=0;var n={qs:{st:""+(0,b.O)(this.agentIdentifier).offset},body:{res:t}};if(!this.ptid){var r=(0,w.C)(this.agentIdentifier),i=r.userAttributes,o=r.atts,c=r.jsAttributes;n.qs.ua=i,n.qs.at=o;var d=(0,u.P)(c);n.qs.ja="{}"===d?null:d}return n}},{key:"byStart",value:function(e,t){return e.s-t.s}},{key:"smearEvtsByOrigin",value:function(e){var t=this.toAggregate[e][0],n=this.toAggregate[e][1],r={};return function(i,o){var a=i[o.o];a||(a=i[o.o]=[]);var s=r[o.o];return"scrolling"!==e||this.trivial(o)?s&&o.s-s.s<n&&s.e>o.s-t?s.e=o.e:(r[o.o]=o,a.push(o)):(r[o.o]=null,o.n="scroll",a.push(o)),i}}},{key:"val",value:function(e,t){return t}},{key:"flatten",value:function(e,t){return e.concat(t)}},{key:"hasFID",value:function(e,t){return"fi"===e&&!!t&&"number"==typeof t.fid}},{key:"trivial",value:function(e){return!!(e&&"number"==typeof e.e&&"number"==typeof e.s&&e.e-e.s<4)}},{key:"shouldIgnoreEvent",value:function(e,t){var n=this.evtOrigin(e.target,t);return e.type in this.ignoredEvents.global||!(!this.ignoredEvents[n]||!(e.type in this.ignoredEvents[n]))}}]),n}(n(1839).W)},5873:function(e,t,n){"use strict";n.r(t),n.d(t,{Instrument:function(){return x}});var r=n(2995),i=n(3097),o=n(6219),a=n(4518),s=n(5307),u=n(2909),c=n(2997),f=n(1839),d="resourcetimingbufferfull",h="bstResource",g="fn-start",y="fn-end",b="bstTimer",w=s.Y.EV,x=function(e){p(n,e);var t=m(n);function n(e){var s;return l(this,n),s=t.call(this,e),(0,u.O)(s.agentIdentifier).features.stn=!0,s.timerEE=(0,i.BV)(s.ee),s.rafEE=(0,i.gy)(s.ee),(0,i.QU)(s.ee),(0,i.em)(s.ee),window.performance&&window.performance.timing&&window.performance.getEntriesByType&&(s.ee.on(g,(function(e,t){e[0]instanceof w&&(this.bstStart=(0,c.now)())})),s.ee.on(y,(function(e,t){var n=e[0];n instanceof w&&(0,r.pr)("bst",[n,t,this.bstStart,(0,c.now)()])})),s.timerEE.on(g,(function(e,t,n){this.bstStart=(0,c.now)(),this.bstType=n})),s.timerEE.on(y,(function(e,t){(0,r.pr)(b,[t,this.bstStart,(0,c.now)(),this.bstType])})),s.rafEE.on(g,(function(){this.bstStart=(0,c.now)()})),s.rafEE.on(y,(function(e,t){(0,r.pr)(b,[t,this.bstStart,(0,c.now)(),"requestAnimationFrame"])})),s.ee.on("pushState-start",(function(e){this.time=(0,c.now)(),this.startPath=location.pathname+location.hash})),s.ee.on("pushState-end",(function(e){(0,r.pr)("bstHist",[location.pathname+location.hash,this.startPath,this.time])})),(0,o.W)()?((0,r.pr)(h,[window.performance.getEntriesByType("resource")]),s.observeResourceTimings()):"addEventListener"in window.performance&&(window.performance.clearResourceTimings?window.performance.addEventListener(d,s.onResourceTimingBufferFull,(0,a.m)(!1)):window.performance.addEventListener("webkitresourcetimingbufferfull",s.onResourceTimingBufferFull,(0,a.m)(!1))),document.addEventListener("scroll",s.noOp,(0,a.m)(!1)),document.addEventListener("keypress",s.noOp,(0,a.m)(!1)),document.addEventListener("click",s.noOp,(0,a.m)(!1))),s}return v(n,[{key:"observeResourceTimings",value:function(){var e=new PerformanceObserver((function(e,t){var n=e.getEntries();(0,r.pr)(h,[n])}));try{e.observe({entryTypes:["resource"]})}catch(e){}}},{key:"onResourceTimingBufferFull",value:function(e){if((0,r.pr)(h,[window.performance.getEntriesByType("resource")]),window.performance.clearResourceTimings)try{window.performance.removeEventListener(d,this.onResourceTimingBufferFull,!1)}catch(e){}else try{window.performance.removeEventListener("webkitresourcetimingbufferfull",this.onResourceTimingBufferFull,!1)}catch(e){}}},{key:"noOp",value:function(e){}}]),n}(f.W)},7957:function(e){e.exports=function(e,t,n){t||(t=0),void 0===n&&(n=e?e.length:0);for(var r=-1,i=n-t||0,o=Array(i<0?0:i);++r<i;)o[r]=e[t+r];return o}},3648:function(e,t,n){var r={"./ajax/aggregate":74,"./js-errors/aggregate":7326,"./page-action/aggregate":9098,"./page-view-event/aggregate":3887,"./page-view-timing/aggregate":8617,"./session-trace/aggregate":842};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=3648},8346:function(e,t,n){var r={"./ajax/instrument":9770,"./js-errors/instrument":3825,"./page-action/instrument":2895,"./page-view-event/instrument":8161,"./page-view-timing/instrument":8396,"./session-trace/instrument":5873};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=8346},3607:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserAgent=void 0;var o=n(9230),a=n(8149),s=n(3263),u=n(418),c=n(3831),f=n(8240),d=n(8053),l=n(4460),h=function(){function e(){var e=this;this._initialized=!1,this._id=(0,d.generateRandomHexString)(16),this._api=new a.Api(this),this._aggregator=new l.Aggregator({agentIdentifier:this._id}),this.features=new u.Features,this.start=function(t){return r(e,void 0,void 0,(function(){var e,n,r,a,u;return i(this,(function(i){switch(i.label){case 0:return this._initialized?[2,!1]:(this._initialized=!0,e=(0,s.buildConfigs)(t),n=e.info,r=e.config,a=e.loader_config,n&&(0,o.setInfo)(this._id,n),r&&(0,o.setConfiguration)(this._id,r),a&&(0,o.setLoaderConfig)(this._id,r),(0,o.setRuntime)(this._id,{maxBytes:3e4}),[4,(0,c.initializeFeatures)(this._id,this._api,this._aggregator,this.features)]);case 1:return u=i.sent(),(0,f.gosNREUMInitializedAgents)(this._id,u,"features"),[2,!0]}}))}))},this.noticeError=function(t,n){return e._api.noticeError(t,n)}}return Object.defineProperty(e.prototype,"config",{get:function(){return{info:(0,o.getInfo)(this._id),config:(0,o.getConfiguration)(this._id),loader_config:(0,o.getLoaderConfig)(this._id)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"initialized",{get:function(){return this._initialized},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e}();t.BrowserAgent=h,t.default=h},9699:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NrFeatures=t.NrFeature=void 0;var n=function(){function e(e){this.name=e,this._enabled=!0,this._auto=!0}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=Boolean(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"auto",{get:function(){return this._auto},set:function(e){this._auto=e},enumerable:!1,configurable:!0}),e}();t.NrFeature=n,(t.NrFeatures||(t.NrFeatures={})).JSERRORS="js-errors"},8149:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Api=void 0;var r=n(9699),i=n(2997),o=function(){function e(e){this.importedMethods={storeError:null},this._initialized=!1,this._initialized=!0,this._parent=e}return e.prototype.noticeError=function(e,t){if(this._initialized&&this.importedMethods.storeError){if("string"!=typeof e&&!(e instanceof Error))return o=e,void console.warn('"'.concat("noticeError",'" was called with an invalid argument: ').concat(o,". This method only accepts ").concat("Error | String"," types for that argument."));e="string"==typeof e?new Error(e):e;var n=(0,i.now)();return this.importedMethods.storeError(e,n,!1,t)}var o,a,s;return this._parent.initialized||this.importedMethods.storeError?this._parent.initialized&&!this.importedMethods.storeError?function(e,t,n){console.warn("The ".concat(t," Feature of agent ").concat(e,' Has Been Disabled. Method "').concat("noticeError",'" will not do anything!'))}(this._parent.id,r.NrFeatures.JSERRORS):void 0:(a=this._parent.id,s=r.NrFeatures.JSERRORS,void console.warn("Agent ".concat(a," is calling a ").concat(s," Feature API, but the Browser Agent has not been started... Please start the agent using .start({...opts})")))},e}();t.Api=o},3263:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildConfigs=void 0,t.buildConfigs=function(e){var t={beacon:"",errorBeacon:void 0,licenseKey:"",applicationID:"",sa:void 0,queueTime:void 0,applicationTime:void 0,ttGuid:void 0,user:void 0,account:void 0,product:void 0,extra:void 0,userAttributes:void 0,atts:void 0,transactionName:void 0,tNamePlain:void 0},n={privacy:{cookies_enabled:void 0},ajax:{deny_list:void 0},distributed_tracing:{enabled:void 0,exclude_newrelic_header:void 0,cors_use_newrelic_header:void 0,cors_use_tracecontext_headers:void 0,allowed_origins:void 0},page_view_timing:{enabled:void 0},ssl:void 0,obfuscate:void 0},r={accountID:void 0,trustKey:void 0,agentID:void 0,licenseKey:"",applicationID:"",xpid:void 0};return Object.keys(e).forEach((function(i){"beacon"===i&&(t.beacon=e[i],t.errorBeacon=e[i]),Object.keys(t).includes(i)&&(t[i]=e[i]),Object.keys(n).includes(i)&&(n[i]=e[i]),Object.keys(r).includes(i)&&(r[i]=e[i])})),function(e){return!(!e.applicationID||!e.licenseKey||!e.beacon)}(t)&&function(e){return!(!e.applicationID||!e.licenseKey)}(r)||console.warn("Missing required config data"),{info:t,config:n,loader_config:r}}},418:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Features=void 0;var r=n(9699),i=function(){function e(){this.errors=new r.NrFeature(r.NrFeatures.JSERRORS)}return e.prototype.getEnabledFeatures=function(){return Object.values(this).filter((function(e){return e.enabled}))},e}();t.Features=i},3831:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.initializeFeatures=void 0;var u=n(9699);t.initializeFeatures=function(e,t,r,i){var c=this;return Promise.all(i.getEnabledFeatures().map((function(i){return a(c,void 0,void 0,(function(){var a,c;return s(this,(function(s){switch(s.label){case 0:return i.auto?[4,Promise.resolve().then((function(){return o(n(8346)("./".concat(i.name,"/instrument")))}))]:[3,2];case 1:new(0,s.sent().Instrument)(e),s.label=2;case 2:return[4,Promise.resolve().then((function(){return o(n(3648)("./".concat(i.name,"/aggregate")))}))];case 3:return a=s.sent().Aggregate,c=new a(e,r),i.name===u.NrFeatures.JSERRORS&&(t.importedMethods.storeError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return c.storeError.apply(c,e)}),[2,i.name]}}))}))})))}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(3607)}()},"object"==x(t)&&"object"==x(e)?e.exports=a():(i=[],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o))}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r](o,o.exports,n),o.loaded=!0,o.exports}return n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n(380)}()}));
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.NRBA=t():e.NRBA=t()}(self,(()=>(()=>{var e={4460:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Aggregator:()=>s});var n=r(6469),i=r(1558);class s extends n.w{constructor(e){super(e),this.aggregatedData={}}store(e,t,r,n,s){var a=this.getBucket(e,t,r,s);return a.metrics=function(e,t){return t||(t={count:0}),t.count+=1,(0,i.D)(e,(function(e,r){t[e]=o(r,t[e])})),t}(n,a.metrics),a}merge(e,t,r,n,s){var c=this.getBucket(e,t,n,s);if(c.metrics){var u=c.metrics;u.count+=r.count,(0,i.D)(r,(function(e,t){if("count"!==e){var n=u[e],i=r[e];i&&!i.c?u[e]=o(i.t,n):u[e]=function(e,t){return t?(t.c||(t=a(t.t)),t.min=Math.min(e.min,t.min),t.max=Math.max(e.max,t.max),t.t+=e.t,t.sos+=e.sos,t.c+=e.c,t):e}(i,u[e])}}))}else c.metrics=r}storeMetric(e,t,r,n){var i=this.getBucket(e,t,r);return i.stats=o(n,i.stats),i}getBucket(e,t,r,n){this.aggregatedData[e]||(this.aggregatedData[e]={});var i=this.aggregatedData[e][t];return i||(i=this.aggregatedData[e][t]={params:r||{}},n&&(i.custom=n)),i}get(e,t){return t?this.aggregatedData[e]&&this.aggregatedData[e][t]:this.aggregatedData[e]}take(e){for(var t={},r="",n=!1,s=0;s<e.length;s++)t[r=e[s]]="object"!=typeof(o=this.aggregatedData[r])?[]:(0,i.D)(o,c),t[r].length&&(n=!0),delete this.aggregatedData[r];var o;return n?t:null}}function o(e,t){return null==e?function(e){return e?e.c++:e={c:1},e}(t):t?(t.c||(t=a(t.t)),t.c+=1,t.t+=e,t.sos+=e*e,e>t.max&&(t.max=e),e<t.min&&(t.min=e),t):{t:e}}function a(e){return{t:e,min:e,max:e,sos:e*e,c:1}}function c(e,t){return t}},2572:(e,t,r)=>{"use strict";r.d(t,{I:()=>n});var n=0,i=navigator.userAgent.match(/Firefox[\/\s](\d+\.\d+)/);i&&(n=+i[1])},3821:(e,t,r)=>{"use strict";r.d(t,{H:()=>i});var n=document.createElement("div");n.innerHTML="\x3c!--[if lte IE 6]><div></div><![endif]--\x3e\x3c!--[if lte IE 7]><div></div><![endif]--\x3e\x3c!--[if lte IE 8]><div></div><![endif]--\x3e\x3c!--[if lte IE 9]><div></div><![endif]--\x3e";var i,s=n.getElementsByTagName("div").length;i=4===s?6:3===s?7:2===s?8:1===s?9:0},9230:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getConfiguration:()=>i.P_,getConfigurationValue:()=>i.Mt,getInfo:()=>n.C,getLoaderConfig:()=>s.D,getRuntime:()=>a.O,originals:()=>o.Y,setConfiguration:()=>i.Dg,setInfo:()=>n.L,setLoaderConfig:()=>s.G,setRuntime:()=>a.s});var n=r(9729),i=r(6061),s=r(5501),o=r(5307),a=r(2909)},9754:(e,t,r)=>{"use strict";r.d(t,{I:()=>n});class n{constructor(e,t){return e&&"object"==typeof e?t&&"object"==typeof t?(Object.assign(this,t),void Object.entries(e).forEach((([e,r])=>{Object.keys(t).includes(e)&&(this[e]=r)}))):console.error("setting a Configurable requires a model to set its initial properties"):console.error("setting a Configurable requires an object as input")}}},9729:(e,t,r)=>{"use strict";r.d(t,{C:()=>a,L:()=>c});var n=r(8240),i=r(9754);const s={beacon:n.defaults.beacon,errorBeacon:n.defaults.errorBeacon,licenseKey:void 0,applicationID:void 0,sa:void 0,queueTime:void 0,applicationTime:void 0,ttGuid:void 0,user:void 0,account:void 0,product:void 0,extra:void 0,jsAttributes:{},userAttributes:void 0,atts:void 0,transactionName:void 0,tNamePlain:void 0},o={};function a(e){if(!e)throw new Error("All config objects require an agent identifier!");if(!o[e])throw new Error(`Info for ${e} was never set`);return o[e]}function c(e,t){if(!e)throw new Error("All config objects require an agent identifier!");o[e]=new i.I(t,s),(0,n.gosNREUMInitializedAgents)(e,o[e],"info")}},6061:(e,t,r)=>{"use strict";r.d(t,{Dg:()=>c,Mt:()=>u,P_:()=>a});var n=r(8240),i=r(9754);const s={privacy:{cookies_enabled:void 0},ajax:{deny_list:void 0},distributed_tracing:{enabled:void 0,exclude_newrelic_header:void 0,cors_use_newrelic_header:void 0,cors_use_tracecontext_headers:void 0,allowed_origins:void 0},page_view_timing:{enabled:void 0},ssl:void 0,obfuscate:void 0},o={};function a(e){if(!e)throw new Error("All config objects require an agent identifier!");if(!o[e])throw new Error(`Configuration for ${e} was never set`);return o[e]}function c(e,t){if(!e)throw new Error("All config objects require an agent identifier!");o[e]=new i.I(t,s),(0,n.gosNREUMInitializedAgents)(e,o[e],"config")}function u(e,t){if(!e)throw new Error("All config objects require an agent identifier!");var r=a(e);if(r){for(var n=t.split("."),i=0;i<n.length-1;i++)if("object"!=typeof(r=r[n[i]]))return;r=r[n[n.length-1]]}return r}},5501:(e,t,r)=>{"use strict";r.d(t,{D:()=>a,G:()=>c});var n=r(8240),i=r(9754);const s={accountID:void 0,trustKey:void 0,agentID:void 0,licenseKey:void 0,applicationID:void 0,xpid:void 0},o={};function a(e){if(!e)throw new Error("All config objects require an agent identifier!");if(!o[e])throw new Error(`LoaderConfig for ${e} was never set`);return o[e]}function c(e,t){if(!e)throw new Error("All config objects require an agent identifier!");o[e]=new i.I(t,s),(0,n.gosNREUMInitializedAgents)(e,o[e],"loader_config")}},5307:(e,t,r)=>{"use strict";r.d(t,{Y:()=>n});const n=(0,r(8240).gosNREUMOriginals)().o},2909:(e,t,r)=>{"use strict";r.d(t,{O:()=>m,s:()=>b});var n={};r.r(n),r.d(n,{agent:()=>o,match:()=>d,version:()=>a});var i=r(3821),s=r(2997),o=null,a=null;if(navigator.userAgent){var c=navigator.userAgent,u=c.match(/Version\/(\S+)\s+Safari/);u&&-1===c.indexOf("Chrome")&&-1===c.indexOf("Chromium")&&(o="Safari",a=u[1])}function d(e,t){if(!o)return!1;if(e!==o)return!1;if(!t)return!0;if(!a)return!1;for(var r=a.split("."),n=t.split("."),i=0;i<n.length;i++)if(n[i]!==r[i])return!1;return!0}var h=r(9754),l=r(8240),f=window.XMLHttpRequest,v=f&&f.prototype;const g={origin:""+window.location,maxBytes:6===i.H?2e3:3e4,offset:(0,s.getLastTimestamp)(),features:{},customTransaction:void 0,onerror:void 0,releaseIds:void 0,xhrWrappable:f&&v&&v.addEventListener&&!/CriOS/.test(navigator.userAgent),disabled:void 0,ptid:void 0,userAgent:n},p={};function m(e){if(!e)throw new Error("All config objects require an agent identifier!");if(!p[e])throw new Error(`Runtime for ${e} was never set`);return p[e]}function b(e,t){if(!e)throw new Error("All config objects require an agent identifier!");p[e]=new h.I(t,g),(0,l.gosNREUMInitializedAgents)(e,p[e],"runtime")}},6469:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});const n={agentIdentifier:""};class i{constructor(e){if("object"!=typeof e)return console.error("shared context requires an object as input");this.sharedContext={},Object.assign(this.sharedContext,n),Object.entries(e).forEach((([e,t])=>{Object.keys(n).includes(e)&&(this.sharedContext[e]=t)}))}}},2755:(e,t,r)=>{"use strict";r.d(t,{C:()=>a,ee:()=>c});var n=r(8240),i=r(9381),s=r(1558);let o=(0,n.gosNREUM)();var a;o.ee?a=o.ee:(a=d(void 0,"globalEE"),o.ee=a);var c=d(void 0,"baseEE");function u(){}function d(e,t){var r={},n={},o={},a={on:v,addEventListener:v,removeEventListener:function(e,t){var n=r[e];if(n)for(var i=0;i<n.length;i++)n[i]===t&&n.splice(i,1)},emit:function(t,r,i,s,o){if(!1!==o&&(o=!0),!c.aborted||s){e&&o&&e.emit(t,r,i);for(var u=f(i),d=g(t),h=d.length,l=0;l<h;l++)d[l].apply(u,r);var v=p()[n[t]];return v&&v.push([a,t,r,u]),u}},get:function(e){return o[e]=o[e]||d(a,e)},listeners:g,context:f,buffer:function(e,t){var r=p();a.aborted||(0,s.D)(e,(function(e,i){t=t||"feature",n[i]=t,t in r||(r[t]=[])}))},abort:l,aborted:!1,isBuffering:function(e){return!!p()[n[e]]},debugId:t};return e||(a.backlog={}),a;function f(e){return e&&e instanceof u?e:e?(0,i.X)(e,"nr@context",h):h()}function v(e,t){r[e]=g(e).concat(t)}function g(e){return r[e]||[]}function p(){return e?e.backlog:a.backlog}}function h(){return new u}function l(){(c.backlog.api||c.backlog.feature)&&(c.aborted=!0,c.backlog={})}},2995:(e,t,r)=>{"use strict";r.d(t,{EM:()=>i,l_:()=>s,pr:()=>o});var n=r(2755),i=n.ee.get("handle"),s=n.C.get("handle");function o(e,t,r,n,s){s?(s.buffer([e],n),s.emit(e,t,r)):(i.buffer([e],n),i.emit(e,t,r))}},3406:(e,t,r)=>{"use strict";r.d(t,{XN:()=>o,rP:()=>o});var n=r(2995);o.on=a;var i=o.handlers={},s=function(e,t,r){a(n.l_,s,e,t,r)}.handlers={};function o(e,t,r,s){a(s||n.EM,i,e,t,r)}function a(e,t,r,i,s){if(s||(s="feature"),e||(e=n.EM),e.isBuffering(r)){var o=t[s]=t[s]||{};(o[r]=o[r]||[]).push([e,i])}else e.on(r,i)}},4518:(e,t,r)=>{"use strict";r.d(t,{m:()=>s});var n=!1;try{var i=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("testPassive",null,i),window.removeEventListener("testPassive",null,i)}catch(e){}function s(e){return n?{passive:!0,capture:!!e}:!!e}},2848:(e,t,r)=>{"use strict";r.d(t,{o:()=>d});var n=r(870),i=r(6469),s=r(6943),o=r(9391),a=r(3233),c=r(3706),u=r(6061);class d extends i.w{constructor(e,t,r){super(r),this.endpoint=e,this.opts=t||{},this.started=!1,this.timeoutHandle=null,this.harvest=new s.Mu(this.sharedContext),(0,o.l)((()=>{var e,t;this.opts.onUnload&&this.opts.onUnload(),this.harvest.sendFinal(),e=this.sharedContext.agentIdentifier,t=(0,u.Mt)(e,"privacy.cookies_enabled"),c.s&&t&&(document.cookie="NREUM=s="+Number(new Date)+"&r="+(0,a.u)(document.location.href)+"&p="+(0,a.u)(document.referrer)+"; path=/")}))}startTimer(e,t){this.interval=e,this.started=!0,this.scheduleHarvest(null!=t?t:this.interval)}stopTimer(){this.started=!1,this.timeoutHandle&&clearTimeout(this.timeoutHandle)}scheduleHarvest(e,t){if(!this.timeoutHandle){var r=this;null==e&&(e=this.interval),this.timeoutHandle=setTimeout((()=>{r.timeoutHandle=null,r.runHarvest(t)}),1e3*e)}}runHarvest(e){var t=this;if(this.opts.getPayload){var r=this.harvest.getSubmitMethod(this.endpoint,e);if(!r)return!1;var i=r.method===n.T.xhr,s=this.opts.getPayload({retry:i});if(s){s="[object Array]"===Object.prototype.toString.call(s)?s:[s];for(var o=0;o<s.length;o++)this.harvest.send(this.endpoint,s[o],e,r,a,this.sharedContext.agentIdentifier)}}else this.harvest.sendX(this.endpoint,e,a,this.sharedContext.agentIdentifier);function a(r){t.onHarvestFinished(e,r)}this.started&&this.scheduleHarvest()}onHarvestFinished(e,t){if(this.opts.onFinished&&this.opts.onFinished(t),t.sent&&t.retry){var r=t.delay||this.opts.retryDelay;this.started&&r?(clearTimeout(this.timeoutHandle),this.timeoutHandle=null,this.scheduleHarvest(r,e)):!this.started&&r&&this.scheduleHarvest(r,e)}}}},6943:(e,t,r)=>{"use strict";r.d(t,{Mu:()=>x,y0:()=>y});var n=r(1558),i=r(353),s=r(1240),o=r(870),a=r(8354);function c(){return""+location}var u=r(6061),d=r(9729),h=r(2909),l=r(5988),f=r(2997),v=r(4518),g=r(3821),p=r(2781),m=r(6469);const b=JSON.parse('{"i8":"0.0.9-beta.71"}').i8;var w=!!navigator.sendBeacon,y=g.H>9||0===g.H;class x extends m.w{constructor(e){super(e),this.tooManyRequestsDelay=(0,u.Mt)(this.sharedContext.agentIdentifier,"harvest.tooManyRequestsDelay")||60,this.obfuscator=new p.R(this.sharedContext),this.getScheme=()=>!1===(0,u.Mt)(this.sharedContext.agentIdentifier,"ssl")?"http":"https",this._events={}}sendFinal(){var e=(0,n.D)(this._events,(e=>this.sendX(e,{unload:!0})));return(0,a.u)(e,E)}sendX(e,t,r){var n=S(e,t);if(!n)return!1;var i={retry:n.method===o.T.xhr};return this.obfuscator.shouldObfuscate()?this.obfuscator.obfuscateAndSend(e,this.createPayload(e,i),t,n,r):this._send(e,this.createPayload(e,i),t,n,r)}send(e,t,r,i,s){var o=O(),a=O();t.body&&(0,n.D)(t.body,o),t.qs&&(0,n.D)(t.qs,a);var c={body:o(),qs:a()};return(this.obfuscator.shouldObfuscate()?this.obfuscator.obfuscateAndSend:this._send)(e,c,r,i,s)}obfuscateAndSend(e,t,r,n,i){return function(e,t,r,n){return e&&"object"==typeof e?(r=r||"string",n=n||[],function e(n){for(var s in n)n.hasOwnProperty(s)&&("object"==typeof n[s]?e(n[s]):typeof n[s]!==r||i(s)||(n[s]=t(n[s])));return n}(e)):e;function i(e){for(var t=!1,r=0;r<n.length;r++)if(n[r]===e){t=!0;break}return t}}(t,((...e)=>this.obfuscator.obfuscateString(...e)),"string",["e"]),this._send(e,t,r,n,i)}_send(e,t,r,n,a){var c=(0,d.C)(this.sharedContext.agentIdentifier);if(!c.errorBeacon)return!1;if(!t.body)return a&&a({sent:!1}),!1;r||(r={});var u=this.getScheme()+"://"+c.errorBeacon+"/"+e+"/1/"+c.licenseKey+this.baseQueryString();t.qs&&(u+=(0,i.j6)(t.qs,(0,h.O)(this.sharedContext.agentIdentifier).maxBytes)),n||(n=S(e,r));var l,f=n.method,g=n.useBody,p=u;g&&"events"===e?l=t.body.e:g?l=(0,s.P)(t.body):p=u+(0,i.j6)(t.body,(0,h.O)(this.sharedContext.agentIdentifier).maxBytes);var m=f(p,l);return a&&f===o.T.xhr&&m.addEventListener("load",(function(){var e={sent:!0};429===this.status?(e.retry=!0,e.delay=this.tooManyRequestsDelay):408!==this.status&&500!==this.status&&503!==this.status||(e.retry=!0),r.needResponse&&(e.responseText=this.responseText),a(e)}),(0,v.m)(!1)),m||f!==o.T.beacon||(m=(f=o.T.img)(u+(0,i.j6)(t.body,(0,h.O)(this.sharedContext.agentIdentifier).maxBytes))),m}baseQueryString(){var e=!0;const t=(0,u.P_)(this.sharedContext.agentIdentifier);var r=(0,h.O)(this.sharedContext.agentIdentifier),n=(0,d.C)(this.sharedContext.agentIdentifier);"privacy"in t&&(e=t.privacy.cookies_enabled);var s=(0,l.f)(c()),o=this.obfuscator.shouldObfuscate()?this.obfuscator.obfuscateString(s):s;return["?a="+n.applicationID,(0,i.wu)("sa",n.sa?""+n.sa:""),(0,i.wu)("v",b),T(n),(0,i.wu)("ct",r.customTransaction),"&rst="+(0,f.now)(),"&ck="+(e?"1":"0"),(0,i.wu)("ref",o),(0,i.wu)("ptid",r.ptid?""+r.ptid:"")].join("")}createPayload(e,t){for(var r=O(),i=O(),s=this._events[e]&&this._events[e]||[],o=0;o<s.length;o++){var a=s[o](t);a&&(a.body&&(0,n.D)(a.body,r),a.qs&&(0,n.D)(a.qs,i))}return{body:r(),qs:i()}}on(e,t){(this._events[e]||(this._events[e]=[])).push(t)}resetListeners(){(0,n.D)(this._events,(function(e){this._events[e]=[]}))}}function E(e,t){return e||t}function S(e,t){var r,n;if((t=t||{}).needResponse){if(!y)return!1;n=!0,r=o.T.xhr}else if(t.unload)n=w,r=w?o.T.beacon:o.T.img;else if(y)n=!0,r=o.T.xhr;else{if("events"!==e&&"jserrors"!==e)return!1;r=o.T.img}return{method:r,useBody:n}}function T(e){return e.transactionName?(0,i.wu)("to",e.transactionName):(0,i.wu)("t",e.tNamePlain||"Unnamed Transaction")}function O(){var e={},t=!1;return function(r,n){if(n&&n.length&&(e[r]=n,t=!0),t)return e}}},8053:(e,t,r)=>{"use strict";function n(){var e=null,t=0,r=window.crypto||window.msCrypto;function n(){return e?15&e[t++]:16*Math.random()|0}r&&r.getRandomValues&&(e=r.getRandomValues(new Uint8Array(31)));for(var i,s="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",o="",a=0;a<s.length;a++)o+="x"===(i=s[a])?n().toString(16):"y"===i?(i=3&n()|8).toString(16):i;return o}function i(){return o(16)}function s(){return o(32)}function o(e){var t=null,r=0,n=window.crypto||window.msCrypto;n&&n.getRandomValues&&Uint8Array&&(t=n.getRandomValues(new Uint8Array(31)));for(var i=[],s=0;s<e;s++)i.push((t?15&t[r++]:16*Math.random()|0).toString(16));return i.join("")}r.r(t),r.d(t,{generateRandomHexString:()=>o,generateSpanId:()=>i,generateTraceId:()=>s,generateUuid:()=>n})},4202:(e,t,r)=>{"use strict";r.d(t,{VB:()=>i});var n=r(2995);function i(e,t){var r=["sm",e,{name:e},t];return(0,n.pr)("storeMetric",r,null,"api"),r}},151:(e,t,r)=>{"use strict";r.d(t,{AG:()=>a,FX:()=>u,n1:()=>d,uR:()=>c});var n=r(1558),i=r(1240),s=r(2781),o=Object.prototype.hasOwnProperty;function a(e,t,r){return e||0===e||""===e?t(e)+(r?",":""):"!"}function c(e,t){return t?Math.floor(e).toString(36):void 0===e||0===e?"":Math.floor(e).toString(36)}function u(e){var t=Object.hasOwnProperty("create")?Object.create(null):{},r=0;return function(n){if(void 0===n||""===n)return"";var i=new s.R({agentIdentifier:e});return n=String(n),i.shouldObfuscate()&&(n=i.obfuscateString(n)),o.call(t,n)?c(t[n],!0):(t[n]=r++,function(e){return"'"+e.replace(h,"\\$1")}(n))}}function d(e,t){var r=[];return(0,n.D)(e,(function(e,n){if(!(r.length>=64)){var s,o=5;switch(e=t(e),typeof n){case"object":n?s=t((0,i.P)(n)):o=9;break;case"number":o=6,s=n%1?n:n+".";break;case"boolean":o=n?7:8;break;case"undefined":o=9;break;default:s=t(n)}r.push([o,e+(s?","+s:"")])}})),r}var h=/([,\\;])/g},2997:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getLastTimestamp:()=>a,getOffset:()=>u,now:()=>o,setOffset:()=>c});var n=r(9335),i=(new Date).getTime(),s=i;function o(){return n.G&&performance.now?Math.round(performance.now()):(i=Math.max((new Date).getTime(),i))-s}function a(){return i}function c(e){s=e}function u(){return s}},9335:(e,t,r)=>{"use strict";r.d(t,{G:()=>n});const n=void 0!==window.performance&&window.performance.timing&&void 0!==window.performance.timing.navigationStart},3706:(e,t,r)=>{"use strict";r.d(t,{s:()=>c,v:()=>u});var n=r(3233),i=r(232),s=r(2572),o=r(2997),a=r(9335);let c=!0;function u(){var e=function(){if(!(s.I&&s.I<9))return a.G?(c=!1,window.performance.timing.navigationStart):void 0}()||function(){for(var e=document.cookie.split(" "),t=0;t<e.length;t++)if(0===e[t].indexOf("NREUM=")){for(var r,i,s,o,a=e[t].substring("NREUM=".length).split("&"),c=0;c<a.length;c++)0===a[c].indexOf("s=")?s=a[c].substring(2):0===a[c].indexOf("p=")?";"===(i=a[c].substring(2)).charAt(i.length-1)&&(i=i.substr(0,i.length-1)):0===a[c].indexOf("r=")&&";"===(r=a[c].substring(2)).charAt(r.length-1)&&(r=r.substr(0,r.length-1));if(r){var u=(0,n.u)(document.referrer);(o=u==r)||(o=(0,n.u)(document.location.href)==r&&u==i)}if(o&&s){if((new Date).getTime()-s>6e4)return;return s}}}();e&&((0,i.B)("starttime",e),(0,o.setOffset)(e))}u()},232:(e,t,r)=>{"use strict";r.d(t,{B:()=>s,L:()=>o});var n=r(2997),i={};function s(e,t){void 0===t&&(t=(0,n.now)()+(0,n.getOffset)()),i[e]=t}function o(e,t,r,n){var s=i[r],o=i[n];void 0!==s&&void 0!==o&&e.store("measures",t,{value:o-s})}},9391:(e,t,r)=>{"use strict";r.d(t,{l:()=>c});var n=r(2572),i=r(7957),s=r.n(i),o=r(4518);function a(e,t){return"addEventListener"in window?window.addEventListener(e,t,(0,o.m)(!1)):"attachEvent"in window?window.attachEvent("on"+e,t):void 0}function c(e){var t,r,i,o=(t=e,i=!1,function(){return i?r:(i=!0,r=t.apply(this,s()(arguments)))});!n.I||navigator.sendBeacon?a("pagehide",o):a("beforeunload",o),a("unload",o)}},5988:(e,t,r)=>{"use strict";r.d(t,{f:()=>s});var n=/([^?#]*)[^#]*(#[^?]*|$).*/,i=/([^?#]*)().*/;function s(e,t){return e.replace(t?n:i,"$1$2")}},353:(e,t,r)=>{"use strict";r.d(t,{j6:()=>h,nI:()=>d,wu:()=>l});var n=r(1558),i=r(1240),s={"%2C":",","%3A":":","%2F":"/","%40":"@","%24":"$","%3B":";"},o=(0,n.D)(s,(function(e){return e})),a=new RegExp(o.join("|"),"g");function c(e){return s[e]}function u(e){return null==e?"null":encodeURIComponent(e).replace(a,c)}function d(e,t){for(var r=0,n=0;n<e.length;n++)if((r+=e[n].length)>t)return e.slice(0,n).join("");return e.join("")}function h(e,t){var r=0,s="";return(0,n.D)(e,(function(e,n){var o,a,c=[];if("string"==typeof n)o="&"+e+"="+u(n),r+=o.length,s+=o;else if(n.length){for(r+=9,a=0;a<n.length&&(o=u((0,i.P)(n[a])),r+=o.length,!(void 0!==t&&r>=t));a++)c.push(o);s+="&"+e+"=%5B"+c.join(",")+"%5D"}})),s}function l(e,t){return t&&"string"==typeof t?"&"+e+"="+u(t):""}},4017:(e,t,r)=>{"use strict";r.d(t,{e:()=>i});var n={};function i(e){if(e in n)return n[e];var t=document.createElement("a"),r=window.location,i={};t.href=e,i.port=t.port;var s=t.href.split("://");!i.port&&s[1]&&(i.port=s[1].split("/")[0].split("@").pop().split(":")[1]),i.port&&"0"!==i.port||(i.port="https"===s[0]?"443":"80"),i.hostname=t.hostname||r.hostname,i.pathname=t.pathname,i.protocol=s[0],"/"!==i.pathname.charAt(0)&&(i.pathname="/"+i.pathname);var o=!t.protocol||":"===t.protocol||t.protocol===r.protocol,a=t.hostname===document.domain&&t.port===r.port;return i.sameOrigin=o&&(!t.hostname||a),"/"===i.pathname&&(n[e]=i),i}},1839:(e,t,r)=>{"use strict";r.d(t,{W:()=>i});var n=r(2755);class i{constructor(e,t){this.agentIdentifier=e,this.aggregator=t,this.ee=n.ee.get(e)}}},9381:(e,t,r)=>{"use strict";r.d(t,{X:()=>i});var n=Object.prototype.hasOwnProperty;function i(e,t,r){if(n.call(e,t))return e[t];var i=r();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!1}),i}catch(e){}return e[t]=i,i}},1558:(e,t,r)=>{"use strict";r.d(t,{D:()=>i});var n=Object.prototype.hasOwnProperty;function i(e,t){var r=[],i="",s=0;for(i in e)n.call(e,i)&&(r[s]=t(i,e[i]),s+=1);return r}},2781:(e,t,r)=>{"use strict";r.d(t,{R:()=>l});var n=r(6061),i=r(6469),s=r(4202),o=window;function a(){return o}const c={isFileProtocol:u,supportabilityMetricSent:!1};function u(){var e=a();return!(!e.location||!e.location.protocol||"file:"!==e.location.protocol)}u()&&((0,s.VB)("Generic/FileProtocol/Detected"),c.supportabilityMetricSent=!0);var d={regex:/^file:\/\/(.*)/,replacement:"file://OBFUSCATED"};let h=!1;class l extends i.w{constructor(e){super(e),h||(this.shouldObfuscate()&&(0,s.VB)("Generic/Obfuscate/Detected"),this.shouldObfuscate()&&!this.validateRules(this.getRules())&&(0,s.VB)("Generic/Obfuscate/Invalid"),h=!0)}shouldObfuscate(){return this.getRules().length>0}getRules(){var e=[],t=(0,n.Mt)(this.sharedContext.agentIdentifier,"obfuscate")||[];return e=e.concat(t),c.isFileProtocol()&&e.push(d),e}validateRules(e){for(var t=!1,r=!1,n=0;n<e.length;n++){"regex"in e[n]?"string"!=typeof e[n].regex&&e[n].regex.constructor!==RegExp&&(console&&console.warn&&console.warn('An obfuscation replacement rule contains a "regex" value with an invalid type (must be a string or RegExp)'),r=!0):(console&&console.warn&&console.warn('An obfuscation replacement rule was detected missing a "regex" value.'),r=!0);var i=e[n].replacement;i&&"string"!=typeof i&&(console&&console.warn&&console.warn('An obfuscation replacement rule contains a "replacement" value with an invalid type (must be a string)'),t=!0)}return!t&&!r}obfuscateString(e,t){if(!e||"string"!=typeof e)return e;for(var r=this.getRules(t),n=e,i=0;i<r.length;i++){var s=r[i].regex,o=r[i].replacement||"*";n=n.replace(s,o)}return n}}},8354:(e,t,r)=>{"use strict";function n(e,t,r){var n=0;for(void 0===r&&(r=e[0],n=1);n<e.length;n++)r=t(r,e[n]);return r}r.d(t,{u:()=>n})},3233:(e,t,r)=>{"use strict";function n(e){var t,r=0;for(t=0;t<e.length;t++)r+=(t+1)*e.charCodeAt(t);return Math.abs(r)}r.d(t,{u:()=>n})},1240:(e,t,r)=>{"use strict";r.d(t,{P:()=>a});var n=r(1558),i=r(2755),s=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function a(e){try{return u("",{"":e})}catch(e){try{i.ee.emit("internal-error",[e])}catch(e){}}}function c(e){return s.lastIndex=0,s.test(e)?'"'+e.replace(s,(function(e){var t=o[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function u(e,t){var r=t[e];switch(typeof r){case"string":return c(r);case"number":return isFinite(r)?String(r):"null";case"boolean":return String(r);case"object":if(!r)return"null";var i=[];if(r instanceof window.Array||"[object Array]"===Object.prototype.toString.apply(r)){for(var s=r.length,o=0;o<s;o+=1)i[o]=u(o,r)||"null";return 0===i.length?"[]":"["+i.join(",")+"]"}return(0,n.D)(r,(function(e){var t=u(e,r);t&&i.push(c(e)+":"+t)})),0===i.length?"{}":"{"+i.join(",")+"}"}}},870:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});const n={jsonp:function(e,t){var r=document.createElement("script");r.type="text/javascript",r.src=e+"&jsonp="+t;var n=document.getElementsByTagName("script")[0];return n.parentNode.insertBefore(r,n),r},xhr:function(e,t,r){var n=new XMLHttpRequest;n.open("POST",e,!r);try{"withCredentials"in n&&(n.withCredentials=!0)}catch(e){}return n.setRequestHeader("content-type","text/plain"),n.send(t),n},xhrSync:function(e,t){return n.xhr(e,t,!0)},img:function(e){var t=new Image;return t.src=e,t},beacon:function(e,t){return navigator.sendBeacon(e,t)}}},8240:(e,t,r)=>{"use strict";r.r(t),r.d(t,{NREUMinitialized:()=>l,addToNREUM:()=>h,defaults:()=>i,gosCDN:()=>f,gosNREUM:()=>s,gosNREUMInfo:()=>o,gosNREUMInit:()=>c,gosNREUMInitializedAgents:()=>d,gosNREUMLoaderConfig:()=>a,gosNREUMOriginals:()=>u});var n=r(2997);const i={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net"};function s(){return window.NREUM||(window.NREUM={}),void 0===window.newrelic&&(window.newrelic=window.NREUM),window.NREUM}function o(){let e=s();const t=e.info||{};return e.info={beacon:i.beacon,errorBeacon:i.errorBeacon,...t},e}function a(){let e=s();const t=e.loader_config||{};return e.loader_config={...t},e}function c(){let e=s();const t=e.init||{};return e.init={...t},e}function u(){let e=s();if(!e.o){var t=window,r=t.XMLHttpRequest;e.o={ST:setTimeout,SI:t.setImmediate,CT:clearTimeout,XHR:r,REQ:t.Request,EV:t.Event,PR:t.Promise,MO:t.MutationObserver,FETCH:t.fetch}}return e}function d(e,t,r){let i=s();const o=i.initializedAgents||{},a=o[e]||{};return Object.keys(a).length||(a.initializedAt={ms:(0,n.now)(),date:new Date}),i.initializedAgents={...o,[e]:{...a,[r]:t}},i}function h(e,t){s()[e]=t}function l(){s().initialized=!0}function f(){return o(),c(),u(),a(),s()}},6219:(e,t,r)=>{"use strict";function n(){return"PerformanceObserver"in window&&"function"==typeof window.PerformanceObserver}r.d(t,{W:()=>n})},3097:(e,t,r)=>{"use strict";r.d(t,{em:()=>b,u5:()=>w,QU:()=>y,gy:()=>x,BV:()=>E,Kf:()=>S});var n=r(2755),i=r(7957),s=r.n(i),o=r(5307),a=window,c=(a.Request,a.Response,"nr@context");function u(e){var t=o.Y.FETCH,r=e||n.ee,i=function(e,t,r){return function(){var n,i=s()(arguments),o={};e.emit(r+"before-start",[i],o),o[c]&&o[c].dt&&(n=o[c].dt);var a=t.apply(this,i);return e.emit(r+"start",[i,n],a),a.then((function(t){return e.emit(r+"end",[null,t],a),t}),(function(t){throw e.emit(r+"end",[t],a),t}))}}(r,t,"fetch-");return r.on("fetch-end",(function(e,t){var n=this;if(t){var i=t.headers.get("content-length");null!==i&&(n.rxSize=i),r.emit("fetch-done",[null,t],n)}else r.emit("fetch-done",[e],n)})),i}var d="nr@original",h=Object.prototype.hasOwnProperty,l=!1;function f(e,t){return e||(e=n.ee),r.inPlace=function(e,t,n,i,s){n||(n="");var o,a,c,u="-"===n.charAt(0);for(c=0;c<t.length;c++)g(o=e[a=t[c]])||(e[a]=r(o,u?a+n:n,i,a,s))},r.flag=d,r;function r(t,r,n,o,a){return g(t)?t:(r||(r=""),c[d]=t,function(e,t,r){if(Object.defineProperty&&Object.keys)try{return Object.keys(e).forEach((function(r){Object.defineProperty(t,r,{get:function(){return e[r]},set:function(t){return e[r]=t,t}})})),t}catch(e){v([e],r)}for(var n in e)h.call(e,n)&&(t[n]=e[n])}(t,c,e),c);function c(){var c,u,d,h;try{u=this,c=s()(arguments),d="function"==typeof n?n(c,u):n||{}}catch(t){v([t,"",[c,u,o],d],e)}i(r+"start",[c,u,o],d,a);try{return h=t.apply(u,c)}catch(e){throw i(r+"err",[c,u,e],d,a),e}finally{i(r+"end",[c,u,h],d,a)}}}function i(r,n,i,s){if(!l||t){var o=l;l=!0;try{e.emit(r,n,i,t,s)}catch(t){v([t,r,n,i],e)}l=o}}}function v(e,t){t||(t=n.ee);try{t.emit("internal-error",e)}catch(e){}}function g(e){return!(e&&e instanceof Function&&e.apply&&!e[d])}var p=r(4518);var m=r(9381);function b(e){return function(e){var t=function(e){return(e||n.ee).get("events")}(e),r=f(t,!0),i=XMLHttpRequest,s="addEventListener";function o(e){for(var t=e;t&&!t.hasOwnProperty(s);)t=Object.getPrototypeOf(t);t&&a(t)}function a(e){r.inPlace(e,[s,"removeEventListener"],"-",c)}function c(e,t){return e[1]}return"getPrototypeOf"in Object?(o(document),o(window),o(i.prototype)):i.prototype.hasOwnProperty(s)&&(a(window),a(i.prototype)),t.on("addEventListener-start",(function(e,t){var n=e[1];if(null!==n&&("function"==typeof n||"object"==typeof n)){var i=(0,m.X)(n,"nr@wrapped",(function(){var e={object:function(){if("function"==typeof n.handleEvent)return n.handleEvent.apply(n,arguments)},function:n}[typeof n];return e?r(e,"fn-",null,e.name||"anonymous"):n}));this.wrapped=e[1]=i}})),t.on("removeEventListener-start",(function(e){e[1]=this.wrapped||e[1]})),t}(e)}function w(e){return u(e)}function y(e){return function(e){var t=function(e){return(e||n.ee).get("history")}(e),r=f(t),i=window.history&&window.history.constructor&&window.history.constructor.prototype,s=window.history;return i&&i.pushState&&i.replaceState&&(s=i),r.inPlace(s,["pushState","replaceState"],"-"),t}(e)}function x(e){return function(e){var t=function(e){return(e||n.ee).get("raf")}(e),r=f(t);return r.inPlace(window,["requestAnimationFrame","mozRequestAnimationFrame","webkitRequestAnimationFrame","msRequestAnimationFrame"],"raf-"),t.on("raf-start",(function(e){e[0]=r(e[0],"fn-")})),t}(e)}function E(e){return function(e){var t=function(e){return(e||n.ee).get("timer")}(e),r=f(t),i="setTimeout",s="setInterval",o="-start";return r.inPlace(window,[i,"setImmediate"],"setTimeout-"),r.inPlace(window,[s],"setInterval-"),r.inPlace(window,["clearTimeout","clearImmediate"],"clearTimeout-"),t.on(s+o,(function(e,t,n){e[0]=r(e[0],"fn-",null,n)})),t.on(i+o,(function(e,t,n){this.method=n,this.timerDuration=isNaN(e[1])?0:+e[1],e[0]=r(e[0],"fn-",this,n)})),t}(e)}function S(e){return function(e){var t=e||n.ee,r=function(e){return(e||n.ee).get("events")}(t),i=f(r),s=o.Y.XHR,a=o.Y.MO,c=o.Y.PR,u=o.Y.SI,d="readystatechange",h=["onload","onerror","onabort","onloadstart","onloadend","onprogress","ontimeout"],l=[],v=window.XMLHttpRequest=function(e){var t=new s(e);try{r.emit("new-xhr",[t],t),t.addEventListener(d,m,(0,p.m)(!1))}catch(e){try{r.emit("internal-error",[e])}catch(e){}}return t};function g(e,t){i.inPlace(t,["onreadystatechange"],"fn-",E)}function m(){var e=this,t=r.context(e);e.readyState>3&&!t.resolved&&(t.resolved=!0,r.emit("xhr-resolved",[],e)),i.inPlace(e,h,"fn-",E)}if(function(e,t){for(var r in e)t[r]=e[r]}(s,v),v.prototype=s.prototype,i.inPlace(v.prototype,["open","send"],"-xhr-",E),r.on("send-xhr-start",(function(e,t){g(0,t),function(e){l.push(e),a&&(b?b.then(x):u?u(x):(w=-w,y.data=w))}(t)})),r.on("open-xhr-start",g),a){var b=c&&c.resolve();if(!u&&!c){var w=1,y=document.createTextNode(w);new a(x).observe(y,{characterData:!0})}}else t.on("fn-end",(function(e){e[0]&&e[0].type===d||x()}));function x(){for(var e=0;e<l.length;e++)g(0,l[e]);l.length&&(l=[])}function E(e,t){return t}return r}(e)}},74:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Aggregate:()=>g});var n=r(3406),i=r(1240),s=r(151),o=r(2995),a=r(6061),c=r(9729),u=r(2848),d=r(9391),h=r(4202),l=[];function f(e,t){return 0===e.indexOf("/")&&(e=e.substring(1)),0===t.indexOf("/")&&(t=t.substring(1)),""===e||e===t}var v=r(1839);class g extends v.W{constructor(e,t){super(e,t),this.ajaxEvents=[],this.spaAjaxEvents={},this.sentAjaxEvents=[],this.scheduler,this.harvestTimeSeconds=(0,a.Mt)(this.agentIdentifier,"ajax.harvestTimeSeconds")||10,this.MAX_PAYLOAD_SIZE=(0,a.Mt)(this.agentIdentifier,"ajax.maxPayloadSize")||1e6,this.ee.on("interactionSaved",(function(e){this.spaAjaxEvents[e.id]&&delete this.spaAjaxEvents[e.id]})),this.ee.on("interactionDiscarded",(function(e){this.spaAjaxEvents[e.id]&&this.allAjaxIsEnabled()&&(this.spaAjaxEvents[e.id].forEach((function(e){this.ajaxEvents.push(e)})),delete this.spaAjaxEvents[e.id])})),this.allAjaxIsEnabled()&&function(e){if(l=[],e&&e.length)for(var t=0;t<e.length;t++){var r=e[t];0===r.indexOf("http://")?r=r.substring(7):0===r.indexOf("https://")&&(r=r.substring(8));var n=r.indexOf("/");n>0?l.push({hostname:r.substring(0,n),pathname:r.substring(n)}):l.push({hostname:r,pathname:""})}}((0,a.Mt)(this.agentIdentifier,"ajax.deny_list")),(0,n.XN)("xhr",((...e)=>this.storeXhr(...e)),void 0,this.ee),this.allAjaxIsEnabled()&&(this.scheduler=new u.o("events",{onFinished:(...e)=>this.onEventsHarvestFinished(...e),getPayload:(...e)=>this.prepareHarvest(...e)}),this.scheduler.harvest.on("jserrors",(function(){return{body:this.aggregator.take(["xhr"])}})),this.scheduler.startTimer(this.harvestTimeSeconds),(0,d.l)(((...e)=>this.finalHarvest(...e))))}getStoredEvents(){return{ajaxEvents:this.ajaxEvents,spaAjaxEvents:this.spaAjaxEvents}}storeXhr(e,t,r,n,s){var a;if("localhost"!==e.hostname&&(t.time=r,a=e.cat?(0,i.P)([e.status,e.cat]):(0,i.P)([e.status,e.host,e.pathname]),(0,o.pr)("bstXhrAgg",["xhr",a,e,t],void 0,void 0,this.ee),this.aggregator.store("xhr",a,e,t),this.allAjaxIsEnabled()))if(function(e){if(0===l.length)return!0;for(var t=0;t<l.length;t++){var r=l[t];if("*"===r.hostname)return!1;if(n=r.hostname,i=e.hostname,!(n.length>i.length)&&i.indexOf(n)===i.length-n.length&&f(r.pathname,e.pathname))return!1}var n,i;return!0}(e)){var u=this,d={method:e.method,status:e.status,domain:e.host,path:e.pathname,requestSize:t.txSize,responseSize:t.rxSize,type:s,startTime:r,endTime:n,callbackDuration:t.cbTime};if(u.dt&&(d.spanId=u.dt.spanId,d.traceId=u.dt.traceId,d.spanTimestamp=u.dt.timestamp),this.spaNode){var v=this.spaNode.interaction.id;this.spaAjaxEvents[v]=this.spaAjaxEvents[v]||[],this.spaAjaxEvents[v].push(d)}else this.ajaxEvents.push(d)}else e.hostname===(0,c.C)(this.agentIdentifier).errorBeacon?(0,h.VB)("Ajax/Events/Excluded/Agent"):(0,h.VB)("Ajax/Events/Excluded/App")}prepareHarvest(e){if(e=e||{},0===this.ajaxEvents.length)return null;for(var t=this.getPayload(this.ajaxEvents,e.maxPayloadSize||this.MAX_PAYLOAD_SIZE),r=[],n=0;n<t.length;n++)r.push({body:{e:t[n]}});return e.retry&&(this.sentAjaxEvents=this.ajaxEvents.slice()),this.ajaxEvents=[],r}getPayload(e,t,r){r=r||1;for(var n=[],i=e.length/r,s=this.splitChunks(e,i),o=!1,a=0;a<s.length;a++){var c=s[a];if(c.tooBig(t)){if(1!==c.events.length){o=!0;break}}else n.push(c.payload)}return o?this.getPayload(e,t,++r):n}onEventsHarvestFinished(e){e.retry&&this.sentAjaxEvents.length>0&&this.allAjaxIsEnabled()&&(this.ajaxEvents=this.ajaxEvents.concat(this.sentAjaxEvents),this.sentAjaxEvents=[])}splitChunks(e,t){t=t||e.length;for(var r=[],n=0,i=e.length;n<i;n+=t)r.push(new this.Chunk(e.slice(n,n+t)));return r}Chunk(e){this.addString=(0,s.FX)(),this.events=e,this.payload="bel.7;";for(var t=0;t<this.events.length;t++){var r=this.events[t],n=[(0,s.uR)(r.startTime),(0,s.uR)(r.endTime-r.startTime),(0,s.uR)(0),(0,s.uR)(0),this.addString(r.method),(0,s.uR)(r.status),this.addString(r.domain),this.addString(r.path),(0,s.uR)(r.requestSize),(0,s.uR)(r.responseSize),"fetch"===r.type?1:"",this.addString(0),(0,s.AG)(r.spanId,this.addString,!0)+(0,s.AG)(r.traceId,this.addString,!0)+(0,s.AG)(r.spanTimestamp,s.uR,!1)],i="2,",o=(0,s.n1)((0,c.C)(this.agentIdentifier).jsAttributes||{},this.addString);n.unshift((0,s.uR)(o.length)),i+=n.join(","),o&&o.length>0&&(i+=";"+o.join(";")),t+1<this.events.length&&(i+=";"),this.payload+=i}this.tooBig=function(e){return e=e||this.MAX_PAYLOAD_SIZE,2*this.payload.length>e}}allAjaxIsEnabled(){return!1!==(0,a.Mt)(this.agentIdentifier,"ajax.enabled")}}},9770:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Instrument:()=>O,getWrappedFetch:()=>j});var n=r(5307),i=r(2909),s=r(5501),o=r(2995),a=r(2755),c=r(9381),u=1;function d(e){var t=typeof e;return!e||"object"!==t&&"function"!==t?-1:e===window?0:(0,c.X)(e,"nr@id",(function(){return u++}))}var h=r(2572);function l(e){if("string"==typeof e&&e.length)return e.length;if("object"==typeof e){if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer&&e.byteLength)return e.byteLength;if("undefined"!=typeof Blob&&e instanceof Blob&&e.size)return e.size;if(!("undefined"!=typeof FormData&&e instanceof FormData))try{return JSON.stringify(e).length}catch(e){return}}}var f=r(4518),v=r(2997),g=r(3097),p=r(4017),m=r(6061),b=r(8053);class w{constructor(e){this.agentIdentifier=e}generateTracePayload(e){if(!this.shouldGenerateTrace(e))return null;var t=(0,s.D)(this.agentIdentifier);if(!t)return null;var r=(t.accountID||"").toString()||null,n=(t.agentID||"").toString()||null,i=(t.trustKey||"").toString()||null;if(!r||!n)return null;var o=(0,b.generateSpanId)(),a=(0,b.generateTraceId)(),c=Date.now(),u={spanId:o,traceId:a,timestamp:c};return(e.sameOrigin||this.isAllowedOrigin(e)&&this.useTraceContextHeadersForCors())&&(u.traceContextParentHeader=this.generateTraceContextParentHeader(o,a),u.traceContextStateHeader=this.generateTraceContextStateHeader(o,c,r,n,i)),(e.sameOrigin&&!this.excludeNewrelicHeader()||!e.sameOrigin&&this.isAllowedOrigin(e)&&this.useNewrelicHeaderForCors())&&(u.newrelicHeader=this.generateTraceHeader(o,a,c,r,n,i)),u}generateTraceContextParentHeader(e,t){return"00-"+t+"-"+e+"-01"}generateTraceContextStateHeader(e,t,r,n,i){return i+"@nr=0-1-"+r+"-"+n+"-"+e+"----"+t}generateTraceHeader(e,t,r,n,i,s){if(!("btoa"in window)||"function"!=typeof window.btoa)return null;var o={v:[0,1],d:{ty:"Browser",ac:n,ap:i,id:e,tr:t,ti:r}};return s&&n!==s&&(o.d.tk=s),btoa(JSON.stringify(o))}shouldGenerateTrace(e){return this.isDtEnabled()&&this.isAllowedOrigin(e)}isAllowedOrigin(e){var t=!1,r={};if((0,m.Mt)("distributed_tracing")&&(r=(0,m.P_)().distributed_tracing),e.sameOrigin)t=!0;else if(r.allowed_origins instanceof Array)for(var n=0;n<r.allowed_origins.length;n++){var i=(0,p.e)(r.allowed_origins[n]);if(e.hostname===i.hostname&&e.protocol===i.protocol&&e.port===i.port){t=!0;break}}return t}isDtEnabled(){var e=(0,m.Mt)(this.agentIdentifier,"distributed_tracing");return!!e&&!!e.enabled}excludeNewrelicHeader(){var e=(0,m.Mt)(this.agentIdentifier,"distributed_tracing");return!!e&&!!e.exclude_newrelic_header}useNewrelicHeaderForCors(){var e=(0,m.Mt)(this.agentIdentifier,"distributed_tracing");return!!e&&!1!==e.cors_use_newrelic_header}useTraceContextHeadersForCors(){var e=(0,m.Mt)(this.agentIdentifier,"distributed_tracing");return!!e&&!e.cors_use_tracecontext_headers}}var y=r(1839),x=["load","error","abort","timeout"],E=x.length,S=n.Y.REQ,T=window.XMLHttpRequest;class O extends y.W{constructor(e){super(e),(0,i.O)(this.agentIdentifier).xhrWrappable&&!(0,i.O)(this.agentIdentifier).disabled&&(this.dt=new w(this.agentIdentifier))}}function j(){var e=(0,g.u5)(a.ee);return function(e,t){function r(e){var r=this.params,n=this.metrics;if(!this.ended){this.ended=!0;for(var s=0;s<E;s++)e.removeEventListener(x[s],this.listener,!1);r.aborted||(n.duration=(0,v.now)()-this.startTime,this.loadCaptureCalled||4!==e.readyState?null==r.status&&(r.status=0):i(this,e),n.cbTime=this.cbTime,t("xhr",[r,n,this.startTime,this.endTime,"xhr"],this))}}function n(e,t){var r=(0,p.e)(t),n=e.params;n.hostname=r.hostname,n.port=r.port,n.protocol=r.protocol,n.host=r.hostname+":"+r.port,n.pathname=r.pathname,e.parsedOrigin=r,e.sameOrigin=r.sameOrigin}function i(e,t){e.params.status=t.status;var r=function(e,t){var r=e.responseType;return"json"===r&&null!==t?t:"arraybuffer"===r||"blob"===r||"json"===r?l(e.response):"text"===r||""===r||void 0===r?l(e.responseText):void 0}(t,e.lastSize);if(r&&(e.metrics.rxSize=r),e.sameOrigin){var n=t.getResponseHeader("X-NewRelic-App-Data");n&&(e.params.cat=n.split(", ").pop())}e.loadCaptureCalled=!0}e.on("new-xhr",(function(e){var t=this;t.totalCbs=0,t.called=0,t.cbTime=0,t.end=r,t.ended=!1,t.xhrGuids={},t.lastSize=null,t.loadCaptureCalled=!1,t.params=this.params||{},t.metrics=this.metrics||{},e.addEventListener("load",(function(r){i(t,e)}),(0,f.m)(!1)),h.I&&(h.I>34||h.I<10)||e.addEventListener("progress",(function(e){t.lastSize=e.loaded}),(0,f.m)(!1))})),e.on("open-xhr-start",(function(e){this.params={method:e[0]},n(this,e[1]),this.metrics={}})),e.on("open-xhr-end",(function(e,t){var r=(0,s.D)();"xpid"in r&&this.sameOrigin&&t.setRequestHeader("X-NewRelic-ID",r.xpid);var n=this.dt.generateTracePayload(this.parsedOrigin);if(n){var i=!1;n.newrelicHeader&&(t.setRequestHeader("newrelic",n.newrelicHeader),i=!0),n.traceContextParentHeader&&(t.setRequestHeader("traceparent",n.traceContextParentHeader),n.traceContextStateHeader&&t.setRequestHeader("tracestate",n.traceContextStateHeader),i=!0),i&&(this.dt=n)}})),e.on("send-xhr-start",(function(t,r){var n=this.metrics,i=t[0],s=this;if(n&&i){var o=l(i);o&&(n.txSize=o)}this.startTime=(0,v.now)(),this.listener=function(t){try{"abort"!==t.type||s.loadCaptureCalled||(s.params.aborted=!0),("load"!==t.type||s.called===s.totalCbs&&(s.onloadCalled||"function"!=typeof r.onload))&&s.end(r)}catch(t){try{e.emit("internal-error",[t])}catch(e){}}};for(var a=0;a<E;a++)r.addEventListener(x[a],this.listener,(0,f.m)(!1))})),e.on("xhr-cb-time",(function(e,t,r){this.cbTime+=e,t?this.onloadCalled=!0:this.called+=1,this.called!==this.totalCbs||!this.onloadCalled&&"function"==typeof r.onload||this.end(r)})),e.on("xhr-load-added",(function(e,t){var r=""+d(e)+!!t;this.xhrGuids&&!this.xhrGuids[r]&&(this.xhrGuids[r]=!0,this.totalCbs+=1)})),e.on("xhr-load-removed",(function(e,t){var r=""+d(e)+!!t;this.xhrGuids&&this.xhrGuids[r]&&(delete this.xhrGuids[r],this.totalCbs-=1)})),e.on("xhr-resolved",(function(){this.endTime=(0,v.now)()})),e.on("addEventListener-end",(function(t,r){r instanceof T&&"load"===t[0]&&e.emit("xhr-load-added",[t[1],t[2]],r)})),e.on("removeEventListener-end",(function(t,r){r instanceof T&&"load"===t[0]&&e.emit("xhr-load-removed",[t[1],t[2]],r)})),e.on("fn-end",(function(t,r){this.xhrCbStart&&e.emit("xhr-cb-time",[(0,v.now)()-this.xhrCbStart,this.onload,r],r)})),e.on("fetch-before-start",(function(e){var t,r=e[1]||{};"string"==typeof e[0]?t=e[0]:e[0]&&e[0].url?t=e[0].url:window.URL&&e[0]&&e[0]instanceof URL&&(t=e[0].href),t&&(this.parsedOrigin=(0,p.e)(t),this.sameOrigin=this.parsedOrigin.sameOrigin);var n=this.dt.generateTracePayload(this.parsedOrigin);if(n&&(n.newrelicHeader||n.traceContextParentHeader))if("string"==typeof e[0]||window.URL&&e[0]&&e[0]instanceof URL){var i={};for(var s in r)i[s]=r[s];i.headers=new Headers(r.headers||{}),o(i.headers,n)&&(this.dt=n),e.length>1?e[1]=i:e.push(i)}else e[0]&&e[0].headers&&o(e[0].headers,n)&&(this.dt=n);function o(e,t){var r=!1;return t.newrelicHeader&&(e.set("newrelic",t.newrelicHeader),r=!0),t.traceContextParentHeader&&(e.set("traceparent",t.traceContextParentHeader),t.traceContextStateHeader&&e.set("tracestate",t.traceContextStateHeader),r=!0),r}})),e.on("fetch-start",(function(e,t){this.params={},this.metrics={},this.startTime=(0,v.now)(),this.dt=t,e.length>=1&&(this.target=e[0]),e.length>=2&&(this.opts=e[1]);var r,i=this.opts||{},s=this.target;"string"==typeof s?r=s:"object"==typeof s&&s instanceof S?r=s.url:window.URL&&"object"==typeof s&&s instanceof URL&&(r=s.href),n(this,r);var o=(""+(s&&s instanceof S&&s.method||i.method||"GET")).toUpperCase();this.params.method=o,this.txSize=l(i.body)||0})),e.on("fn-start",(function(e,t,r){t instanceof T&&("onload"===r&&(this.onload=!0),("load"===(e[0]&&e[0].type)||this.onload)&&(this.xhrCbStart=(0,v.now)()))})),e.on("fetch-done",(function(e,r){var n;this.endTime=(0,v.now)(),this.params||(this.params={}),this.params.status=r?r.status:0,"string"==typeof this.rxSize&&this.rxSize.length>0&&(n=+this.rxSize);var i={txSize:this.txSize,rxSize:n,duration:(0,v.now)()-this.startTime};t("xhr",[this.params,i,this.startTime,this.endTime,"fetch"],this)}))}(a.ee,o.pr),e}},7326:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Aggregate:()=>j});var n=/([a-z0-9]+)$/i;function i(e){if(e){var t=e.match(n);return t?t[1]:void 0}}var s=r(8354),o=/^\n+|\n+$/g;var a=/function (.+?)\s*\(/,c=/^\s*at (?:((?:\[object object\])?(?:[^(]*\([^)]*\))*[^()]*(?: \[as \S+\])?) )?\(?((?:file|http|https|chrome-extension):.*?)?:(\d+)(?::(\d+))?\)?\s*$/i,u=/^\s*(?:(\S*|global code)(?:\(.*?\))?@)?((?:file|http|https|chrome|safari-extension).*?):(\d+)(?::(\d+))?\s*$/i,d=/^\s*at .+ \(eval at \S+ \((?:(?:file|http|https):[^)]+)?\)(?:, [^:]*:\d+:\d+)?\)$/i,h=/^\s*at Function code \(Function code:\d+:\d+\)\s*/i;function l(e,t){var r,n=function(e){var t=e.match(u);return t||(t=e.match(c)),t?{url:t[2],func:"Anonymous function"!==t[1]&&"global code"!==t[1]&&t[1]||null,line:+t[3],column:t[4]?+t[4]:null}:e.match(d)||e.match(h)||"anonymous"===e?{func:"evaluated code"}:void 0}(t);return n?((r=n.func)&&r.indexOf("nrWrapper")>=0?e.wrapperSeen=!0:e.stackLines.push(t),e.wrapperSeen||e.frames.push(n),e):(e.stackLines.push(t),e)}function f(e){var t=a.exec(String(e.constructor));return t&&t.length>1?t[1]:"unknown"}function v(e){var t=0;if(!e||!e.length)return t;for(var r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}var g=r(3406),p=r(2848),m=r(1240),b=r(2995),w=r(1558),y=r(6061),x=r(2909),E=r(9729),S=r(2997),T=r(5988),O=r(1839);class j extends O.W{constructor(e,t){super(e,t),this.stackReported={},this.pageviewReported={},this.errorCache={},this.currentBody,this.errorOnPage=!1,this.ee.on("interactionSaved",(function(e){this.errorCache[e.id]&&(this.errorCache[e.id].forEach((function(t){var r={},n=t[4],i=t[5];(0,w.D)(n,a),(0,w.D)(e.root.attrs.custom,a),(0,w.D)(i,a);var s=t[2];s.browserInteractionId=e.root.attrs.id,delete s._interactionId,s._interactionNodeId&&(s.parentNodeId=s._interactionNodeId.toString(),delete s._interactionNodeId);var o=t[1]+e.root.attrs.id+":"+v((0,m.P)(r));function a(e,t){r[e]=t&&"object"==typeof t?(0,m.P)(t):t}this.aggregator.store(t[0],o,s,t[3],r)})),delete this.errorCache[e.id])})),this.ee.on("interactionDiscarded",(function(e){this.errorCache&&this.errorCache[e.id]&&(this.errorCache[e.id].forEach((function(t){var r={},n=t[4],i=t[5];(0,w.D)(n,a),(0,w.D)(e.root.attrs.custom,a),(0,w.D)(i,a);var s=t[2];delete s._interactionId,delete s._interactionNodeId;var o=t[1]+":"+v((0,m.P)(r));function a(e,t){r[e]=t&&"object"==typeof t?(0,m.P)(t):t}this.aggregator.store(t[0],o,t[2],t[3],r)})),delete this.errorCache[e.id])})),(0,g.XN)("err",((...e)=>this.storeError(...e)),void 0,this.ee),(0,g.XN)("ierr",((...e)=>this.storeError(...e)),void 0,this.ee);var r=(0,y.Mt)(this.agentIdentifier,"jserrors.harvestTimeSeconds")||10,n=new p.o("jserrors",{onFinished:(...e)=>this.onHarvestFinished(...e)},this);n.harvest.on("jserrors",((...e)=>this.onHarvestStarted(...e))),n.startTimer(r)}onHarvestStarted(e){var t=this.aggregator.take(["err","ierr"]);e.retry&&(this.currentBody=t);var r={body:t,qs:{}},n=(0,m.P)((0,x.O)(this.agentIdentifier).releaseIds);return"{}"!==n&&(r.qs.ri=n),t&&t.err&&t.err.length&&!this.errorOnPage&&(r.qs.pve="1",this.errorOnPage=!0),r}onHarvestFinished(e){e.retry&&this.currentBody&&((0,w.D)(this.currentBody,(function(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=this.getBucketName(n.params,n.custom);this.aggregator.merge(e,i,n.metrics,n.params,n.custom)}})),this.currentBody=null)}nameHash(e){return v(e.exceptionClass)^e.stackHash}getBucketName(e,t){return this.nameHash(e)+":"+v((0,m.P)(t))}canonicalizeURL(e,t){if("string"!=typeof e)return"";var r=(0,T.f)(e);return r===t?"<inline>":r}buildCanonicalStackString(e,t){for(var r="",n=0;n<e.frames.length;n++){var s=e.frames[n],o=i(s.func);r&&(r+="\n"),o&&(r+=o+"@"),"string"==typeof s.url&&(r+=s.url),s.line&&(r+=":"+s.line)}return r}canonicalizeStackURLs(e){for(var t=(0,T.f)((0,x.O)(this.agentIdentifier).origin),r=0;r<e.frames.length;r++){var n=e.frames[r],i=n.url,s=this.canonicalizeURL(i,t);s&&s!==n.url&&(n.url=s,e.stackString=e.stackString.split(i).join(s))}return e}storeError(e,t,r,n){if(t=t||(0,S.now)(),r||!(0,x.O)(this.agentIdentifier).onerror||!(0,x.O)(this.agentIdentifier).onerror(e)){var i,a=this.canonicalizeStackURLs(function(e){var t=null;try{if(t=function(e){if(!e.stack)return null;var t,r=(0,s.u)(e.stack.split("\n"),l,{frames:[],stackLines:[],wrapperSeen:!1});return r.frames.length?{mode:"stack",name:e.name||f(e),message:e.message,stackString:(t=r.stackLines,function(e){var t;if(e.length>100){var r=e.length-100;t=e.slice(0,50).join("\n"),t+="\n< ...truncated "+r+" lines... >\n",t+=e.slice(-50).join("\n")}else t=e.join("\n");return t}(t).replace(o,"")),frames:r.frames}:null}(e),t)return t}catch(e){}try{if(t=function(e){if(!("line"in e))return null;var t=e.name||f(e);if(!e.sourceURL)return{mode:"sourceline",name:t,message:e.message,stackString:f(e)+": "+e.message+"\n in evaluated code",frames:[{func:"evaluated code"}]};var r=t+": "+e.message+"\n at "+e.sourceURL;return e.line&&(r+=":"+e.line,e.column&&(r+=":"+e.column)),{mode:"sourceline",name:t,message:e.message,stackString:r,frames:[{url:e.sourceURL,line:e.line,column:e.column}]}}(e),t)return t}catch(e){}try{if(t=function(e){var t=e.name||f(e);return t?{mode:"nameonly",name:t,message:e.message,stackString:t+": "+e.message,frames:[]}:null}(e),t)return t}catch(e){}return{mode:"failed",stackString:"",frames:[]}}(e)),c={stackHash:v(this.buildCanonicalStackString(a)),exceptionClass:a.name,request_uri:window.location.pathname};a.message&&(c.message=""+a.message),this.stackReported[c.stackHash]?c.browser_stack_hash=v(a.stackString):(this.stackReported[c.stackHash]=!0,c.stack_trace=(i=a.stackString).length>65530?i.substr(0,65530):i),c.releaseIds=(0,m.P)((0,x.O)(this.agentIdentifier).releaseIds);var u=this.nameHash(c);this.pageviewReported[u]||(c.pageview=1,this.pageviewReported[u]=!0);var d=r?"ierr":"err",h={time:t};if((0,b.pr)("errorAgg",[d,u,c,h],void 0,void 0,this.ee),null!=c._interactionId)this.errorCache[c._interactionId]=this.errorCache[c._interactionId]||[],this.errorCache[c._interactionId].push([d,u,c,h,p,n]);else{var g={},p=(0,E.C)(this.agentIdentifier).jsAttributes;(0,w.D)(p,T),n&&(0,w.D)(n,T);var y=u+":"+v((0,m.P)(g));this.aggregator.store(d,y,c,h,g)}}function T(e,t){g[e]=t&&"object"==typeof t?(0,m.P)(t):t}}}},3825:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Instrument:()=>v});var n=r(2995),i=r(2909),s=r(2997),o=r(9381),a=r(3097),c=r(7957),u=r.n(c),d=r(1839),h=window.onerror,l=!1,f="nr@seenError";class v extends d.W{constructor(e){super(e),this.skipNext=0;const t=this;this.ee.on("fn-start",(function(e,t,r){l&&(this.skipNext=this.skipNext?this.skipNext+1:1)})),this.ee.on("fn-err",(function(e,r,n){l&&!n[f]&&((0,o.X)(n,f,(function(){return!0})),this.thrown=!0,p(n,void 0,t.ee))})),this.ee.on("fn-end",(function(){l&&!this.thrown&&this.skipNext>0&&(this.skipNext-=1)})),this.ee.on("internal-error",(e=>{(0,n.pr)("ierr",[e,(0,s.now)(),!0],void 0,void 0,this.ee)}));const r=window.onerror;window.onerror=(...e)=>(r&&r(...e),this.onerrorHandler(...e),!1);try{window.addEventListener("unhandledrejection",(e=>{this.onerrorHandler(null,null,null,null,new Error(e.reason))}))}catch(e){}try{throw new Error}catch(e){"stack"in e&&((0,a.BV)(this.ee),(0,a.gy)(this.ee),"addEventListener"in window&&(0,a.em)(this.ee),(0,i.O)(this.agentIdentifier).xhrWrappable&&(0,a.Kf)(this.ee),l=!0)}}onerrorHandler(e,t,r,i,o){try{this.skipNext?this.skipNext-=1:p(o||new g(e,t,r),!0,this.ee)}catch(e){try{(0,n.pr)("ierr",[e,(0,s.now)(),!0],void 0,void 0,this.ee)}catch(e){}}return"function"==typeof h&&h.apply(this,u()(arguments))}}function g(e,t,r){this.message=e||"Uncaught error with no additional information",this.sourceURL=t,this.line=r}function p(e,t,r){var i=t?null:(0,s.now)();(0,n.pr)("err",[e,i],void 0,void 0,r)}},9098:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Aggregate:()=>l});var n=r(1558),i=r(1240),s=r(3406),o=r(2848),a=r(5988),c=r(6061),u=r(9729),d=r(2909),h=r(1839);class l extends h.W{constructor(e,t){super(e,t),this.eventsPerMinute=240,this.harvestTimeSeconds=(0,c.Mt)("ins.harvestTimeSeconds")||30,this.eventsPerHarvest=this.eventsPerMinute*this.harvestTimeSeconds/60,this.referrerUrl,this.currentEvents,this.events=[],this.att={},(0,u.L)(this.agentIdentifier,{jsAttributes:this.att}),document.referrer&&(this.referrerUrl=(0,a.f)(document.referrer)),(0,s.XN)("api-setCustomAttribute",((...e)=>this.setCustomAttribute(...e)),"api",this.ee),this.ee.on("feat-ins",(function(){(0,s.XN)("api-addPageAction",((...e)=>this.addPageAction(...e)),void 0,this.ee);var e=new o.o("ins",{onFinished:(...e)=>this.onHarvestFinished(...e)},this);e.harvest.on("ins",((...e)=>this.onHarvestStarted(...e))),e.startTimer(this.harvestTimeSeconds,0)}))}onHarvestStarted(e){const{userAttributes:t,atts:r}=(0,u.C)(this.agentIdentifier);var n={qs:{ua:t,at:r},body:{ins:this.events}};return e.retry&&(this.currentEvents=this.events),this.events=[],n}onHarvestFinished(e){e&&e.sent&&e.retry&&this.currentEvents&&(this.events=this.events.concat(this.currentEvents),this.currentEvents=null)}addPageAction(e,t,r){if(!(this.events.length>=this.eventsPerHarvest)){var s,o,c={};"undefined"!=typeof window&&window.document&&window.document.documentElement&&(s=window.document.documentElement.clientWidth,o=window.document.documentElement.clientHeight);var u={timestamp:e+(0,d.O)(this.agentIdentifier).offset,timeSinceLoad:e/1e3,browserWidth:s,browserHeight:o,referrerUrl:this.referrerUrl,currentUrl:(0,a.f)(""+location),pageUrl:(0,a.f)((0,d.O)(this.agentIdentifier).origin),eventType:"PageAction"};(0,n.D)(u,h),(0,n.D)(this.att,h),r&&"object"==typeof r&&(0,n.D)(r,h),c.actionName=t||"",this.events.push(c)}function h(e,t){c[e]=t&&"object"==typeof t?(0,i.P)(t):t}}setCustomAttribute(e,t,r){this.att[t]=r}}},2895:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Instrument:()=>s});var n=r(2909),i=r(1839);class s extends i.W{constructor(e){super(e),(0,n.O)(this.agentIdentifier).disabled||((0,n.O)(this.agentIdentifier).features.ins=!0)}}},3887:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Aggregate:()=>m});var n=r(232),i=r(1558),s=r(353),o=[];function a(e,t){return c(e.type,0,t,"ty"),c(e.redirectCount,0,t,"rc"),t}function c(e,t,r,n){var i;"number"==typeof e&&e>0&&(i=Math.round(e-t),r[n]=i),o.push(i)}var u=r(1240),d={},h=r(870),l=r(6061),f=r(9729),v=r(2909),g=r(2848),p=r(1839);class m extends p.W{constructor(e,t){super(e,t),this.getScheme=()=>!1===(0,l.Mt)(this.agentIdentifier,"ssl")?"http":"https";const r=(0,f.C)(this.agentIdentifier);if(r.beacon){r.queueTime&&this.aggregator.store("measures","qt",{value:r.queueTime}),r.applicationTime&&this.aggregator.store("measures","ap",{value:r.applicationTime}),(0,n.L)(this.aggregator,"be","starttime","firstbyte"),(0,n.L)(this.aggregator,"fe","firstbyte","onload"),(0,n.L)(this.aggregator,"dc","firstbyte","domContent");var o,p,m,b=this.aggregator.get("measures"),w=(0,i.D)(b,(function(e,t){return"&"+e+"="+t.params.value})).join(""),y=[new g.o("page-view-event",{},this).harvest.baseQueryString()];if(y.push(w),y.push((0,s.wu)("tt",r.ttGuid)),y.push((0,s.wu)("us",r.user)),y.push((0,s.wu)("ac",r.account)),y.push((0,s.wu)("pr",r.product)),y.push((0,s.wu)("af",(0,i.D)((0,v.O)(this.agentIdentifier).features,(function(e){return e})).join(","))),window.performance&&void 0!==window.performance.timing){var x={timing:(o=window.performance.timing,p={},m=o.navigationStart,p.of=m,c(m,m,p,"n"),c(o.unloadEventStart,m,p,"u"),c(o.redirectStart,m,p,"r"),c(o.unloadEventEnd,m,p,"ue"),c(o.redirectEnd,m,p,"re"),c(o.fetchStart,m,p,"f"),c(o.domainLookupStart,m,p,"dn"),c(o.domainLookupEnd,m,p,"dne"),c(o.connectStart,m,p,"c"),c(o.secureConnectionStart,m,p,"s"),c(o.connectEnd,m,p,"ce"),c(o.requestStart,m,p,"rq"),c(o.responseStart,m,p,"rp"),c(o.responseEnd,m,p,"rpe"),c(o.domLoading,m,p,"dl"),c(o.domInteractive,m,p,"di"),c(o.domContentLoadedEventStart,m,p,"ds"),c(o.domContentLoadedEventEnd,m,p,"de"),c(o.domComplete,m,p,"dc"),c(o.loadEventStart,m,p,"l"),c(o.loadEventEnd,m,p,"le"),p),navigation:a(window.performance.navigation,{})};y.push((0,s.wu)("perf",(0,u.P)(x)))}if(window.performance&&window.performance.getEntriesByType){var E=window.performance.getEntriesByType("paint");E&&E.length>0&&E.forEach((function(e){var t,r;!e.startTime||e.startTime<=0||("first-paint"===e.name?y.push((0,s.wu)("fp",String(Math.floor(e.startTime)))):"first-contentful-paint"===e.name&&y.push((0,s.wu)("fcp",String(Math.floor(e.startTime)))),t=e.name,r=Math.floor(e.startTime),d[t]=r)}))}y.push((0,s.wu)("xx",r.extra)),y.push((0,s.wu)("ua",r.userAttributes)),y.push((0,s.wu)("at",r.atts));var S=(0,u.P)(r.jsAttributes);y.push((0,s.wu)("ja","{}"===S?null:S));var T=(0,s.nI)(y,(0,v.O)(this.agentIdentifier).maxBytes);h.T.jsonp(this.getScheme()+"://"+r.beacon+"/1/"+r.licenseKey+T,"NREUM.setToken")}}}},8161:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Instrument:()=>d});var n=r(2995),i=r(2997),s=r(1839),o=r(4518);const a=window,c=a.document;function u(e){"complete"===c.readyState&&e()}class d extends s.W{constructor(e){var t;super(e),(0,n.pr)("mark",["firstbyte",(0,i.getLastTimestamp)()],null,"api",this.ee),t=()=>this.measureWindowLoaded(),c.addEventListener?a.addEventListener("load",t,(0,o.m)(!1)):a.attachEvent("onload",t),function(e){c.addEventListener?c.addEventListener("DOMContentLoaded",e,(0,o.m)(!1)):c.attachEvent("onreadystatechange",u)}((()=>this.measureDomContentLoaded()))}measureWindowLoaded(){var e=(0,i.now)();(0,n.pr)("mark",["onload",e+(0,i.getOffset)()],null,"api",this.ee),(0,n.pr)("timing",["load",e],void 0,void 0,this.ee)}measureDomContentLoaded(){(0,n.pr)("mark",["domContent",(0,i.now)()+(0,i.getOffset)()],null,"api",this.ee)}}},8617:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Aggregate:()=>l});var n=r(151),i=r(2997),s=r(1558),o=r(2848),a=r(3406),c=r(5988),u=r(2995),d=r(9729),h=r(1839);class l extends h.W{constructor(e,t){super(e,t),this.timings=[],this.timingsSent=[],this.lcpRecorded=!1,this.lcp=null,this.clsSupported=!1,this.cls=0,this.clsSession={value:0,firstEntryTime:0,lastEntryTime:0},this.pageHideRecorded=!1,this.harvestTimeSeconds=30;try{clsSupported=PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch(e){}this.options||(this.options={});var r=this.options.maxLCPTimeSeconds||60,n=this.options.initialHarvestSeconds||10;this.harvestTimeSeconds=this.options.harvestTimeSeconds||30,this.scheduler=new o.o("events",{onFinished:(...e)=>this.onHarvestFinished(...e),getPayload:(...e)=>this.prepareHarvest(...e),onUnload:()=>this.finalHarvest()},this),(0,a.rP)("timing",((...e)=>this.processTiming(...e)),void 0,this.ee),(0,a.rP)("lcp",((...e)=>this.updateLatestLcp(...e)),void 0,this.ee),(0,a.rP)("cls",((...e)=>this.updateClsScore(...e)),void 0,this.ee),(0,a.rP)("pageHide",((...e)=>this.updatePageHide(...e)),void 0,this.ee),setTimeout((()=>{this.recordLcp(),this.lcpRecorded=!0}),1e3*r),this.scheduler.startTimer(this.harvestTimeSeconds,n)}recordLcp(){if(!this.lcpRecorded&&null!==this.lcp){var e=this.lcp[0],t=this.lcp[1],r=this.lcp[2],n={size:e.size,eid:e.id};r&&(r["net-type"]&&(n["net-type"]=r["net-type"]),r["net-etype"]&&(n["net-etype"]=r["net-etype"]),r["net-rtt"]&&(n["net-rtt"]=r["net-rtt"]),r["net-dlink"]&&(n["net-dlink"]=r["net-dlink"])),e.url&&(n.elUrl=(0,c.f)(e.url)),e.element&&e.element.tagName&&(n.elTag=e.element.tagName),(t>0||this.clsSupported)&&(n.cls=t),this.addTiming("lcp",Math.floor(e.startTime),n,!1),this.lcpRecorded=!0}}updateLatestLcp(e,t){this.lcp&&this.lcp[0].size>=e.size||(this.lcp=[e,this.cls,t])}updateClsScore(e){(e.startTime-this.clsSession.lastEntryTime>1e3||e.startTime-this.clsSession.firstEntryTime>5e3)&&(this.clsSession={value:0,firstEntryTime:e.startTime,lastEntryTime:e.startTime}),this.clsSession.value+=e.value,this.clsSession.lastEntryTime=Math.max(this.clsSession.lastEntryTime,e.startTime),this.cls<this.clsSession.value&&(this.cls=this.clsSession.value)}updatePageHide(e){this.pageHideRecorded||(this.addTiming("pageHide",e,null,!0),this.pageHideRecorded=!0)}recordUnload(){this.updatePageHide((0,i.now)()),this.addTiming("unload",(0,i.now)(),null,!0)}addTiming(e,t,r,n){r=r||{},(this.cls>0||this.clsSupported)&&n&&(r.cls=this.cls),this.timings.push({name:e,value:t,attrs:r}),(0,u.pr)("pvtAdded",[e,t,r])}processTiming(e,t,r){"fi"===e&&setTimeout(this.recordLcp,0),this.addTiming(e,t,r,!0)}onHarvestFinished(e){if(e.retry&&this.timingsSent.length>0){for(var t=0;t<this.timingsSent.length;t++)this.timings.push(this.timingsSent[t]);this.timingsSent=[]}}finalHarvest(){this.recordLcp(),this.recordUnload();var e=this.prepareHarvest({retry:!1});this.scheduler.harvest.send("events",e,{unload:!0})}appendGlobalCustomAttributes(e){var t=e.attrs||{},r=(0,d.C)(this.agentIdentifier).jsAttributes||{},n=["size","eid","cls","type","fid","elTag","elUrl","net-type","net-etype","net-rtt","net-dlink"];(0,s.D)(r,(function(e,r){n.indexOf(e)<0&&(t[e]=r)}))}prepareHarvest(e){if(0!==this.timings.length){var t=this.getPayload(this.timings);if(e.retry)for(var r=0;r<this.timings.length;r++)this.timingsSent.push(this.timings[r]);return this.timings=[],{body:{e:t}}}}getPayload(e){for(var t=(0,n.FX)(),r="bel.6;",i=0;i<e.length;i++){var s=e[i];r+="e,",r+=t(s.name)+",",r+=(0,n.AG)(s.value,n.uR,!1)+",",this.appendGlobalCustomAttributes(s);var o=(0,n.n1)(s.attrs,t);o&&o.length>0&&(r+=(0,n.uR)(o.length)+";"+o.join(";")),i+1<e.length&&(r+=";")}return r}}},8396:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Instrument:()=>l});var n,i,s,o=r(2995),a=r(4518);void 0!==document.hidden?(n="hidden",i="visibilitychange",s="visibilityState"):void 0!==document.msHidden?(n="msHidden",i="msvisibilitychange"):void 0!==document.webkitHidden&&(n="webkitHidden",i="webkitvisibilitychange",s="webkitVisibilityState");var c=r(8240),u=r(2997),d=r(6061),h=r(1839);class l extends h.W{constructor(e){if(super(e),this.pageHiddenTime,this.performanceObserver,this.lcpPerformanceObserver,this.clsPerformanceObserver,this.fiRecorded=!1,this.isEnabled()){if("PerformanceObserver"in window&&"function"==typeof window.PerformanceObserver){this.performanceObserver=new PerformanceObserver(perfObserver);try{this.performanceObserver.observe({entryTypes:["paint"]})}catch(e){}this.lcpPerformanceObserver=new PerformanceObserver(lcpObserver);try{this.lcpPerformanceObserver.observe({entryTypes:["largest-contentful-paint"]})}catch(e){}this.clsPerformanceObserver=new PerformanceObserver(clsObserver);try{this.clsPerformanceObserver.observe({type:"layout-shift",buffered:!0})}catch(e){}}"addEventListener"in document&&(this.fiRecorded=!1,["click","keydown","mousedown","pointerdown","touchstart"].forEach((e=>{document.addEventListener(e,((...e)=>this.captureInteraction(...e)),(0,a.m)(!1))}))),t=(...e)=>this.captureVisibilityChange(...e),"addEventListener"in document&&i&&document.addEventListener(i,(function(){s&&document[s]?t(document[s]):document[n]?t("hidden"):t("visible")}),(0,a.m)(!1))}var t}isEnabled(){return!1!==(0,d.Mt)(this.agentIdentifier,"page_view_timing.enabled")}perfObserver(e,t){e.getEntries().forEach((e=>{"first-paint"===e.name?(0,o.pr)("timing",["fp",Math.floor(e.startTime)],void 0,void 0,this.ee):"first-contentful-paint"===e.name&&(0,o.pr)("timing",["fcp",Math.floor(e.startTime)],void 0,void 0,this.ee)}))}lcpObserver(e,t){var r=e.getEntries();if(r.length>0){var n=r[r.length-1];if(this.pageHiddenTime&&this.pageHiddenTime<n.startTime)return;var i=[n],s=this.addConnectionAttributes({});s&&i.push(s),(0,o.pr)("lcp",i,void 0,void 0,this.ee)}}clsObserver(e){e.getEntries().forEach((function(e){e.hadRecentInput||(0,o.pr)("cls",[e],void 0,void 0,this.ee)}))}addConnectionAttributes(e){var t=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(t)return t.type&&(e["net-type"]=t.type),t.effectiveType&&(e["net-etype"]=t.effectiveType),t.rtt&&(e["net-rtt"]=t.rtt),t.downlink&&(e["net-dlink"]=t.downlink),e}captureInteraction(e){if(e instanceof(0,c.gosNREUM)().o.EV&&!this.fiRecorded){var t=Math.round(e.timeStamp),r={type:e.type};this.addConnectionAttributes(r),t<=(0,u.now)()?r.fid=(0,u.now)()-t:t>(0,u.getOffset)()&&t<=Date.now()?(t-=(0,u.getOffset)(),r.fid=(0,u.now)()-t):t=(0,u.now)(),this.fiRecorded=!0,(0,o.pr)("timing",["fi",t,r],void 0,void 0,this.ee)}}captureVisibilityChange(e){"hidden"===e&&(this.pageHiddenTime=(0,u.now)(),(0,o.pr)("pageHide",[this.pageHiddenTime],void 0,void 0,this.ee))}}},842:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Aggregate:()=>w});var n=r(3406),i=r(6943),s=r(2848),o=r(1558),a=r(8354),c=r(1240),u=r(4017),d=r(6219),h=r(7957),l=r.n(h),f=r(6061),v=r(2909),g=r(9729),p=r(3706),m=r(2997),b=r(1839);class w extends b.W{constructor(e,t){if(super(e,t),this.ptid="",this.ignoredEvents={global:{mouseup:!0,mousedown:!0},window:{load:!0,pagehide:!0}},this.toAggregate={typing:[1e3,2e3],scrolling:[100,1e3],mousing:[1e3,2e3],touching:[1e3,2e3]},this.rename={typing:{keydown:!0,keyup:!0,keypress:!0},mousing:{mousemove:!0,mouseenter:!0,mouseleave:!0,mouseover:!0,mouseout:!0},scrolling:{scroll:!0},touching:{touchstart:!0,touchmove:!0,touchend:!0,touchcancel:!0,touchenter:!0,touchleave:!0}},this.trace={},this.nodeCount=0,this.sentTrace=null,this.harvestTimeSeconds=(0,f.Mt)(this.agentIdentifier,"stn.harvestTimeSeconds")||10,this.maxNodesPerHarvest=(0,f.Mt)(this.agentIdentifier,"stn.maxNodesPerHarvest")||1e3,this.laststart=0,(0,p.v)(),i.y0&&(0,v.O)(this.agentIdentifier).features.stn){this.storeTiming(window.performance.timing);var r=new s.o("resources",{onFinished:(...e)=>function(e){e.sent&&e.responseText&&!this.ptid&&(this.ptid=e.responseText,(0,v.O)(this.agentIdentifier).ptid=this.ptid,r.startTimer(this.harvestTimeSeconds)),e.sent&&e.retry&&this.sentTrace&&((0,o.D)(this.sentTrace,(function(e,t){this.mergeSTNs(e,t)})),this.sentTrace=null)}(...e),retryDelay:(...e)=>this.harvestTimeSeconds(...e)});r.runHarvest({needResponse:!0}),r.harvest.on("resources",((...e)=>function(e){return(0,m.now)()>9e5?(r.stopTimer(),void(this.trace={})):this.ptid&&this.nodeCount<=30?void 0:this.takeSTNs(e.retry)}(...e))),(0,n.XN)("bst",((...e)=>this.storeEvent(...e)),void 0,this.ee),(0,n.XN)("bstTimer",((...e)=>this.storeTimer(...e)),void 0,this.ee),(0,n.XN)("bstResource",((...e)=>this.storeResources(...e)),void 0,this.ee),(0,n.XN)("bstHist",((...e)=>this.storeHist(...e)),void 0,this.ee),(0,n.XN)("bstXhrAgg",((...e)=>this.storeXhrAgg(...e)),void 0,this.ee),(0,n.XN)("bstApi",((...e)=>this.storeSTN(...e)),void 0,this.ee),(0,n.XN)("errorAgg",((...e)=>this.storeErrorAgg(...e)),void 0,this.ee),(0,n.XN)("pvtAdded",((...e)=>this.processPVT(...e)),void 0,this.ee)}}processPVT(e,t,r){var n={};n[e]=t,this.storeTiming(n,!0),this.hasFID(e,r)&&this.storeEvent({type:"fid",target:"document"},"document",t,t+r.fid)}storeTiming(e,t){var r,n,i,s=Date.now();for(r in e)"number"==typeof(n=e[r])&&n>0&&n<s&&(i=t?e[r]:e[r]-(0,v.O)(this.agentIdentifier).offset,this.storeSTN({n:r,s:i,e:i,o:"document",t:"timing"}))}storeTimer(e,t,r,n){var i="timer";"requestAnimationFrame"===n&&(i=n);var s={n,s:t,e:r,o:"window",t:i};this.storeSTN(s)}storeEvent(e,t,r,n){if(this.shouldIgnoreEvent(e,t))return!1;var i={n:this.evtName(e.type),s:r,e:n,t:"event"};try{i.o=this.evtOrigin(e.target,t)}catch(e){i.o=this.evtOrigin(null,t)}this.storeSTN(i)}evtName(e){var t=e;return(0,o.D)(this.rename,(function(r,n){e in n&&(t=r)})),t}evtOrigin(e,t){var r="unknown";if(e&&e instanceof XMLHttpRequest){var n=this.ee.context(e).params;r=n.status+" "+n.method+": "+n.host+n.pathname}else e&&"string"==typeof e.tagName&&(r=e.tagName.toLowerCase(),e.id&&(r+="#"+e.id),e.className&&(r+="."+l()(e.classList).join(".")));return"unknown"===r&&("string"==typeof t?r=t:t===document?r="document":t===window?r="window":t instanceof FileReader&&(r="FileReader")),r}storeHist(e,t,r){var n={n:"history.pushState",s:r,e:r,o:e,t};this.storeSTN(n)}storeResources(e){e&&0!==e.length&&(e.forEach((function(e){var t=(0,u.e)(e.name),r={n:e.initiatorType,s:0|e.fetchStart,e:0|e.responseEnd,o:t.protocol+"://"+t.hostname+":"+t.port+t.pathname,t:e.entryType};r.s<=this.laststart||this.storeSTN(r)})),this.laststart=0|e[e.length-1].fetchStart)}storeErrorAgg(e,t,r,n){if("err"===e){var i={n:"error",s:n.time,e:n.time,o:r.message,t:r.stackHash};this.storeSTN(i)}}storeXhrAgg(e,t,r,n){if("xhr"===e){var i={n:"Ajax",s:n.time,e:n.time+n.duration,o:r.status+" "+r.method+": "+r.host+r.pathname,t:"ajax"};this.storeSTN(i)}}storeSTN(e){if(!(this.nodeCount>=this.maxNodesPerHarvest)){var t=this.trace[e.n];t||(t=this.trace[e.n]=[]),t.push(e),this.nodeCount++}}mergeSTNs(e,t){if(!(this.nodeCount>=this.maxNodesPerHarvest)){var r=this.trace[e];r||(r=this.trace[e]=[]),this.trace[e]=t.concat(r),this.nodeCount+=t.length}}takeSTNs(e){(0,d.W)()||this.storeResources(window.performance.getEntriesByType("resource"));var t=(0,a.u)((0,o.D)(this.trace,(function(e,t){return e in this.toAggregate?(0,a.u)((0,o.D)((0,a.u)(t.sort(this.byStart),this.smearEvtsByOrigin(e),{}),this.val),this.flatten,[]):t})),this.flatten,[]);if(0===t.length)return{};e&&(this.sentTrace=this.trace),this.trace={},this.nodeCount=0;var r={qs:{st:""+(0,v.O)(this.agentIdentifier).offset},body:{res:t}};if(!this.ptid){const{userAttributes:e,atts:t,jsAttributes:i}=(0,g.C)(this.agentIdentifier);r.qs.ua=e,r.qs.at=t;var n=(0,c.P)(i);r.qs.ja="{}"===n?null:n}return r}byStart(e,t){return e.s-t.s}smearEvtsByOrigin(e){var t=this.toAggregate[e][0],r=this.toAggregate[e][1],n={};return function(i,s){var o=i[s.o];o||(o=i[s.o]=[]);var a=n[s.o];return"scrolling"!==e||this.trivial(s)?a&&s.s-a.s<r&&a.e>s.s-t?a.e=s.e:(n[s.o]=s,o.push(s)):(n[s.o]=null,s.n="scroll",o.push(s)),i}}val(e,t){return t}flatten(e,t){return e.concat(t)}hasFID(e,t){return"fi"===e&&!!t&&"number"==typeof t.fid}trivial(e){return!!(e&&"number"==typeof e.e&&"number"==typeof e.s&&e.e-e.s<4)}shouldIgnoreEvent(e,t){var r=this.evtOrigin(e.target,t);return e.type in this.ignoredEvents.global||!(!this.ignoredEvents[r]||!(e.type in this.ignoredEvents[r]))}}},5873:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Instrument:()=>m});var n=r(2995),i=r(3097),s=r(6219),o=r(4518),a=r(5307),c=r(2909),u=r(2997),d=r(1839),h="resourcetimingbufferfull",l="bstResource",f="fn-start",v="fn-end",g="bstTimer",p=a.Y.EV;class m extends d.W{constructor(e){super(e),(0,c.O)(this.agentIdentifier).features.stn=!0,this.timerEE=(0,i.BV)(this.ee),this.rafEE=(0,i.gy)(this.ee),(0,i.QU)(this.ee),(0,i.em)(this.ee),window.performance&&window.performance.timing&&window.performance.getEntriesByType&&(this.ee.on(f,(function(e,t){e[0]instanceof p&&(this.bstStart=(0,u.now)())})),this.ee.on(v,(function(e,t){var r=e[0];r instanceof p&&(0,n.pr)("bst",[r,t,this.bstStart,(0,u.now)()])})),this.timerEE.on(f,(function(e,t,r){this.bstStart=(0,u.now)(),this.bstType=r})),this.timerEE.on(v,(function(e,t){(0,n.pr)(g,[t,this.bstStart,(0,u.now)(),this.bstType])})),this.rafEE.on(f,(function(){this.bstStart=(0,u.now)()})),this.rafEE.on(v,(function(e,t){(0,n.pr)(g,[t,this.bstStart,(0,u.now)(),"requestAnimationFrame"])})),this.ee.on("pushState-start",(function(e){this.time=(0,u.now)(),this.startPath=location.pathname+location.hash})),this.ee.on("pushState-end",(function(e){(0,n.pr)("bstHist",[location.pathname+location.hash,this.startPath,this.time])})),(0,s.W)()?((0,n.pr)(l,[window.performance.getEntriesByType("resource")]),this.observeResourceTimings()):"addEventListener"in window.performance&&(window.performance.clearResourceTimings?window.performance.addEventListener(h,this.onResourceTimingBufferFull,(0,o.m)(!1)):window.performance.addEventListener("webkitresourcetimingbufferfull",this.onResourceTimingBufferFull,(0,o.m)(!1))),document.addEventListener("scroll",this.noOp,(0,o.m)(!1)),document.addEventListener("keypress",this.noOp,(0,o.m)(!1)),document.addEventListener("click",this.noOp,(0,o.m)(!1)))}observeResourceTimings(){var e=new PerformanceObserver((function(e,t){var r=e.getEntries();(0,n.pr)(l,[r])}));try{e.observe({entryTypes:["resource"]})}catch(e){}}onResourceTimingBufferFull(e){if((0,n.pr)(l,[window.performance.getEntriesByType("resource")]),window.performance.clearResourceTimings)try{window.performance.removeEventListener(h,this.onResourceTimingBufferFull,!1)}catch(e){}else try{window.performance.removeEventListener("webkitresourcetimingbufferfull",this.onResourceTimingBufferFull,!1)}catch(e){}}noOp(e){}}},7957:e=>{e.exports=function(e,t,r){t||(t=0),void 0===r&&(r=e?e.length:0);for(var n=-1,i=r-t||0,s=Array(i<0?0:i);++n<i;)s[n]=e[t+n];return s}},3648:(e,t,r)=>{var n={"./ajax/aggregate":74,"./js-errors/aggregate":7326,"./page-action/aggregate":9098,"./page-view-event/aggregate":3887,"./page-view-timing/aggregate":8617,"./session-trace/aggregate":842};function i(e){var t=s(e);return r(t)}function s(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=s,e.exports=i,i.id=3648},8346:(e,t,r)=>{var n={"./ajax/instrument":9770,"./js-errors/instrument":3825,"./page-action/instrument":2895,"./page-view-event/instrument":8161,"./page-view-timing/instrument":8396,"./session-trace/instrument":5873};function i(e){var t=s(e);return r(t)}function s(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=s,e.exports=i,i.id=8346},3607:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,s){function o(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserAgent=void 0;var s=r(9230),o=r(8149),a=r(3263),c=r(418),u=r(3831),d=r(8240),h=r(8053),l=r(4460),f=function(){function e(){var e=this;this._initialized=!1,this._id=(0,h.generateRandomHexString)(16),this._api=new o.Api(this),this._aggregator=new l.Aggregator({agentIdentifier:this._id}),this.features=new c.Features,this.start=function(t){return n(e,void 0,void 0,(function(){var e,r,n,o,c;return i(this,(function(i){switch(i.label){case 0:return this._initialized?[2,!1]:(this._initialized=!0,e=(0,a.buildConfigs)(t),r=e.info,n=e.config,o=e.loader_config,r&&(0,s.setInfo)(this._id,r),n&&(0,s.setConfiguration)(this._id,n),o&&(0,s.setLoaderConfig)(this._id,n),(0,s.setRuntime)(this._id,{maxBytes:3e4}),[4,(0,u.initializeFeatures)(this._id,this._api,this._aggregator,this.features)]);case 1:return c=i.sent(),(0,d.gosNREUMInitializedAgents)(this._id,c,"features"),[2,!0]}}))}))},this.noticeError=function(t,r){return e._api.noticeError(t,r)}}return Object.defineProperty(e.prototype,"config",{get:function(){return{info:(0,s.getInfo)(this._id),config:(0,s.getConfiguration)(this._id),loader_config:(0,s.getLoaderConfig)(this._id)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"initialized",{get:function(){return this._initialized},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e}();t.BrowserAgent=f,t.default=f},9699:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NrFeatures=t.NrFeature=void 0;var r=function(){function e(e){this.name=e,this._enabled=!0,this._auto=!0}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=Boolean(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"auto",{get:function(){return this._auto},set:function(e){this._auto=e},enumerable:!1,configurable:!0}),e}();t.NrFeature=r,(t.NrFeatures||(t.NrFeatures={})).JSERRORS="js-errors"},8149:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Api=void 0;var n=r(9699),i=r(2997),s=function(){function e(e){this.importedMethods={storeError:null},this._initialized=!1,this._initialized=!0,this._parent=e}return e.prototype.noticeError=function(e,t){if(this._initialized&&this.importedMethods.storeError){if("string"!=typeof e&&!(e instanceof Error))return"noticeError",s=e,"Error | String",void console.warn('"'.concat("noticeError",'" was called with an invalid argument: ').concat(s,". This method only accepts ").concat("Error | String"," types for that argument."));e="string"==typeof e?new Error(e):e;var r=(0,i.now)();return this.importedMethods.storeError(e,r,!1,t)}var s,o,a;return this._parent.initialized||this.importedMethods.storeError?this._parent.initialized&&!this.importedMethods.storeError?function(e,t,r){console.warn("The ".concat(t," Feature of agent ").concat(e,' Has Been Disabled. Method "').concat("noticeError",'" will not do anything!'))}(this._parent.id,n.NrFeatures.JSERRORS):void 0:(o=this._parent.id,a=n.NrFeatures.JSERRORS,void console.warn("Agent ".concat(o," is calling a ").concat(a," Feature API, but the Browser Agent has not been started... Please start the agent using .start({...opts})")))},e}();t.Api=s},3263:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildConfigs=void 0,t.buildConfigs=function(e){var t={beacon:"",errorBeacon:void 0,licenseKey:"",applicationID:"",sa:void 0,queueTime:void 0,applicationTime:void 0,ttGuid:void 0,user:void 0,account:void 0,product:void 0,extra:void 0,userAttributes:void 0,atts:void 0,transactionName:void 0,tNamePlain:void 0},r={privacy:{cookies_enabled:void 0},ajax:{deny_list:void 0},distributed_tracing:{enabled:void 0,exclude_newrelic_header:void 0,cors_use_newrelic_header:void 0,cors_use_tracecontext_headers:void 0,allowed_origins:void 0},page_view_timing:{enabled:void 0},ssl:void 0,obfuscate:void 0},n={accountID:void 0,trustKey:void 0,agentID:void 0,licenseKey:"",applicationID:"",xpid:void 0};return Object.keys(e).forEach((function(i){"beacon"===i&&(t.beacon=e[i],t.errorBeacon=e[i]),Object.keys(t).includes(i)&&(t[i]=e[i]),Object.keys(r).includes(i)&&(r[i]=e[i]),Object.keys(n).includes(i)&&(n[i]=e[i])})),function(e){return!(!e.applicationID||!e.licenseKey||!e.beacon)}(t)&&function(e){return!(!e.applicationID||!e.licenseKey)}(n)||console.warn("Missing required config data"),{info:t,config:r,loader_config:n}}},418:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Features=void 0;var n=r(9699),i=function(){function e(){this.errors=new n.NrFeature(n.NrFeatures.JSERRORS)}return e.prototype.getEnabledFeatures=function(){return Object.values(this).filter((function(e){return e.enabled}))},e}();t.Features=i},3831:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,s){function o(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.initializeFeatures=void 0;var c=r(9699);t.initializeFeatures=function(e,t,n,i){var u=this;return Promise.all(i.getEnabledFeatures().map((function(i){return o(u,void 0,void 0,(function(){var o,u;return a(this,(function(a){switch(a.label){case 0:return i.auto?[4,Promise.resolve().then((function(){return s(r(8346)("./".concat(i.name,"/instrument")))}))]:[3,2];case 1:new(0,a.sent().Instrument)(e),a.label=2;case 2:return[4,Promise.resolve().then((function(){return s(r(3648)("./".concat(i.name,"/aggregate")))}))];case 3:return o=a.sent().Aggregate,u=new o(e,n),i.name===c.NrFeatures.JSERRORS&&(t.importedMethods.storeError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return u.storeError.apply(u,e)}),[2,i.name]}}))}))})))}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var s=t[n]={exports:{}};return e[n].call(s.exports,s,s.exports,r),s.exports}return r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(3607)})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.NRBA=t():e.NRBA=t()}(self,(()=>(()=>{var e={4460:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Aggregator:()=>s});var n=r(6469),i=r(1558);class s extends n.w{constructor(e){super(e),this.aggregatedData={}}store(e,t,r,n,s){var a=this.getBucket(e,t,r,s);return a.metrics=function(e,t){return t||(t={count:0}),t.count+=1,(0,i.D)(e,(function(e,r){t[e]=o(r,t[e])})),t}(n,a.metrics),a}merge(e,t,r,n,s){var c=this.getBucket(e,t,n,s);if(c.metrics){var u=c.metrics;u.count+=r.count,(0,i.D)(r,(function(e,t){if("count"!==e){var n=u[e],i=r[e];i&&!i.c?u[e]=o(i.t,n):u[e]=function(e,t){return t?(t.c||(t=a(t.t)),t.min=Math.min(e.min,t.min),t.max=Math.max(e.max,t.max),t.t+=e.t,t.sos+=e.sos,t.c+=e.c,t):e}(i,u[e])}}))}else c.metrics=r}storeMetric(e,t,r,n){var i=this.getBucket(e,t,r);return i.stats=o(n,i.stats),i}getBucket(e,t,r,n){this.aggregatedData[e]||(this.aggregatedData[e]={});var i=this.aggregatedData[e][t];return i||(i=this.aggregatedData[e][t]={params:r||{}},n&&(i.custom=n)),i}get(e,t){return t?this.aggregatedData[e]&&this.aggregatedData[e][t]:this.aggregatedData[e]}take(e){for(var t={},r="",n=!1,s=0;s<e.length;s++)t[r=e[s]]="object"!=typeof(o=this.aggregatedData[r])?[]:(0,i.D)(o,c),t[r].length&&(n=!0),delete this.aggregatedData[r];var o;return n?t:null}}function o(e,t){return null==e?function(e){return e?e.c++:e={c:1},e}(t):t?(t.c||(t=a(t.t)),t.c+=1,t.t+=e,t.sos+=e*e,e>t.max&&(t.max=e),e<t.min&&(t.min=e),t):{t:e}}function a(e){return{t:e,min:e,max:e,sos:e*e,c:1}}function c(e,t){return t}},2572:(e,t,r)=>{"use strict";r.d(t,{I:()=>n});var n=0,i=navigator.userAgent.match(/Firefox[\/\s](\d+\.\d+)/);i&&(n=+i[1])},3821:(e,t,r)=>{"use strict";r.d(t,{H:()=>i});var n=document.createElement("div");n.innerHTML="\x3c!--[if lte IE 6]><div></div><![endif]--\x3e\x3c!--[if lte IE 7]><div></div><![endif]--\x3e\x3c!--[if lte IE 8]><div></div><![endif]--\x3e\x3c!--[if lte IE 9]><div></div><![endif]--\x3e";var i,s=n.getElementsByTagName("div").length;i=4===s?6:3===s?7:2===s?8:1===s?9:0},9230:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getConfiguration:()=>i.P_,getConfigurationValue:()=>i.Mt,getInfo:()=>n.C,getLoaderConfig:()=>s.D,getRuntime:()=>a.O,originals:()=>o.Y,setConfiguration:()=>i.Dg,setInfo:()=>n.L,setLoaderConfig:()=>s.G,setRuntime:()=>a.s});var n=r(9729),i=r(6061),s=r(5501),o=r(5307),a=r(2909)},9754:(e,t,r)=>{"use strict";r.d(t,{I:()=>n});class n{constructor(e,t){return e&&"object"==typeof e?t&&"object"==typeof t?(Object.assign(this,t),void Object.entries(e).forEach((([e,r])=>{Object.keys(t).includes(e)&&(this[e]=r)}))):console.error("setting a Configurable requires a model to set its initial properties"):console.error("setting a Configurable requires an object as input")}}},9729:(e,t,r)=>{"use strict";r.d(t,{C:()=>a,L:()=>c});var n=r(8240),i=r(9754);const s={beacon:n.defaults.beacon,errorBeacon:n.defaults.errorBeacon,licenseKey:void 0,applicationID:void 0,sa:void 0,queueTime:void 0,applicationTime:void 0,ttGuid:void 0,user:void 0,account:void 0,product:void 0,extra:void 0,jsAttributes:{},userAttributes:void 0,atts:void 0,transactionName:void 0,tNamePlain:void 0},o={};function a(e){if(!e)throw new Error("All config objects require an agent identifier!");if(!o[e])throw new Error(`Info for ${e} was never set`);return o[e]}function c(e,t){if(!e)throw new Error("All config objects require an agent identifier!");o[e]=new i.I(t,s),(0,n.gosNREUMInitializedAgents)(e,o[e],"info")}},6061:(e,t,r)=>{"use strict";r.d(t,{Dg:()=>c,Mt:()=>u,P_:()=>a});var n=r(8240),i=r(9754);const s={privacy:{cookies_enabled:void 0},ajax:{deny_list:void 0},distributed_tracing:{enabled:void 0,exclude_newrelic_header:void 0,cors_use_newrelic_header:void 0,cors_use_tracecontext_headers:void 0,allowed_origins:void 0},page_view_timing:{enabled:void 0},ssl:void 0,obfuscate:void 0},o={};function a(e){if(!e)throw new Error("All config objects require an agent identifier!");if(!o[e])throw new Error(`Configuration for ${e} was never set`);return o[e]}function c(e,t){if(!e)throw new Error("All config objects require an agent identifier!");o[e]=new i.I(t,s),(0,n.gosNREUMInitializedAgents)(e,o[e],"config")}function u(e,t){if(!e)throw new Error("All config objects require an agent identifier!");var r=a(e);if(r){for(var n=t.split("."),i=0;i<n.length-1;i++)if("object"!=typeof(r=r[n[i]]))return;r=r[n[n.length-1]]}return r}},5501:(e,t,r)=>{"use strict";r.d(t,{D:()=>a,G:()=>c});var n=r(8240),i=r(9754);const s={accountID:void 0,trustKey:void 0,agentID:void 0,licenseKey:void 0,applicationID:void 0,xpid:void 0},o={};function a(e){if(!e)throw new Error("All config objects require an agent identifier!");if(!o[e])throw new Error(`LoaderConfig for ${e} was never set`);return o[e]}function c(e,t){if(!e)throw new Error("All config objects require an agent identifier!");o[e]=new i.I(t,s),(0,n.gosNREUMInitializedAgents)(e,o[e],"loader_config")}},5307:(e,t,r)=>{"use strict";r.d(t,{Y:()=>n});const n=(0,r(8240).gosNREUMOriginals)().o},2909:(e,t,r)=>{"use strict";r.d(t,{O:()=>m,s:()=>b});var n={};r.r(n),r.d(n,{agent:()=>o,match:()=>d,version:()=>a});var i=r(3821),s=r(2997),o=null,a=null;if(navigator.userAgent){var c=navigator.userAgent,u=c.match(/Version\/(\S+)\s+Safari/);u&&-1===c.indexOf("Chrome")&&-1===c.indexOf("Chromium")&&(o="Safari",a=u[1])}function d(e,t){if(!o)return!1;if(e!==o)return!1;if(!t)return!0;if(!a)return!1;for(var r=a.split("."),n=t.split("."),i=0;i<n.length;i++)if(n[i]!==r[i])return!1;return!0}var h=r(9754),l=r(8240),f=window.XMLHttpRequest,v=f&&f.prototype;const g={origin:""+window.location,maxBytes:6===i.H?2e3:3e4,offset:(0,s.getLastTimestamp)(),features:{},customTransaction:void 0,onerror:void 0,releaseIds:void 0,xhrWrappable:f&&v&&v.addEventListener&&!/CriOS/.test(navigator.userAgent),disabled:void 0,ptid:void 0,userAgent:n},p={};function m(e){if(!e)throw new Error("All config objects require an agent identifier!");if(!p[e])throw new Error(`Runtime for ${e} was never set`);return p[e]}function b(e,t){if(!e)throw new Error("All config objects require an agent identifier!");p[e]=new h.I(t,g),(0,l.gosNREUMInitializedAgents)(e,p[e],"runtime")}},6469:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});const n={agentIdentifier:""};class i{constructor(e){if("object"!=typeof e)return console.error("shared context requires an object as input");this.sharedContext={},Object.assign(this.sharedContext,n),Object.entries(e).forEach((([e,t])=>{Object.keys(n).includes(e)&&(this.sharedContext[e]=t)}))}}},2755:(e,t,r)=>{"use strict";r.d(t,{C:()=>a,ee:()=>c});var n=r(8240),i=r(9381),s=r(1558);let o=(0,n.gosNREUM)();var a;o.ee?a=o.ee:(a=d(void 0,"globalEE"),o.ee=a);var c=d(void 0,"baseEE");function u(){}function d(e,t){var r={},n={},o={},a={on:v,addEventListener:v,removeEventListener:function(e,t){var n=r[e];if(n)for(var i=0;i<n.length;i++)n[i]===t&&n.splice(i,1)},emit:function(t,r,i,s,o){if(!1!==o&&(o=!0),!c.aborted||s){e&&o&&e.emit(t,r,i);for(var u=f(i),d=g(t),h=d.length,l=0;l<h;l++)d[l].apply(u,r);var v=p()[n[t]];return v&&v.push([a,t,r,u]),u}},get:function(e){return o[e]=o[e]||d(a,e)},listeners:g,context:f,buffer:function(e,t){var r=p();a.aborted||(0,s.D)(e,(function(e,i){t=t||"feature",n[i]=t,t in r||(r[t]=[])}))},abort:l,aborted:!1,isBuffering:function(e){return!!p()[n[e]]},debugId:t};return e||(a.backlog={}),a;function f(e){return e&&e instanceof u?e:e?(0,i.X)(e,"nr@context",h):h()}function v(e,t){r[e]=g(e).concat(t)}function g(e){return r[e]||[]}function p(){return e?e.backlog:a.backlog}}function h(){return new u}function l(){(c.backlog.api||c.backlog.feature)&&(c.aborted=!0,c.backlog={})}},2995:(e,t,r)=>{"use strict";r.d(t,{EM:()=>i,l_:()=>s,pr:()=>o});var n=r(2755),i=n.ee.get("handle"),s=n.C.get("handle");function o(e,t,r,n,s){s?(s.buffer([e],n),s.emit(e,t,r)):(i.buffer([e],n),i.emit(e,t,r))}},3406:(e,t,r)=>{"use strict";r.d(t,{XN:()=>o,rP:()=>o});var n=r(2995);o.on=a;var i=o.handlers={},s=function(e,t,r){a(n.l_,s,e,t,r)}.handlers={};function o(e,t,r,s){a(s||n.EM,i,e,t,r)}function a(e,t,r,i,s){if(s||(s="feature"),e||(e=n.EM),e.isBuffering(r)){var o=t[s]=t[s]||{};(o[r]=o[r]||[]).push([e,i])}else e.on(r,i)}},4518:(e,t,r)=>{"use strict";r.d(t,{m:()=>s});var n=!1;try{var i=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("testPassive",null,i),window.removeEventListener("testPassive",null,i)}catch(e){}function s(e){return n?{passive:!0,capture:!!e}:!!e}},2848:(e,t,r)=>{"use strict";r.d(t,{o:()=>d});var n=r(870),i=r(6469),s=r(6943),o=r(9391),a=r(3233),c=r(3706),u=r(6061);class d extends i.w{constructor(e,t,r){super(r),this.endpoint=e,this.opts=t||{},this.started=!1,this.timeoutHandle=null,this.harvest=new s.Mu(this.sharedContext),(0,o.l)((()=>{var e,t;this.opts.onUnload&&this.opts.onUnload(),this.harvest.sendFinal(),e=this.sharedContext.agentIdentifier,t=(0,u.Mt)(e,"privacy.cookies_enabled"),c.s&&t&&(document.cookie="NREUM=s="+Number(new Date)+"&r="+(0,a.u)(document.location.href)+"&p="+(0,a.u)(document.referrer)+"; path=/")}))}startTimer(e,t){this.interval=e,this.started=!0,this.scheduleHarvest(null!=t?t:this.interval)}stopTimer(){this.started=!1,this.timeoutHandle&&clearTimeout(this.timeoutHandle)}scheduleHarvest(e,t){if(!this.timeoutHandle){var r=this;null==e&&(e=this.interval),this.timeoutHandle=setTimeout((()=>{r.timeoutHandle=null,r.runHarvest(t)}),1e3*e)}}runHarvest(e){var t=this;if(this.opts.getPayload){var r=this.harvest.getSubmitMethod(this.endpoint,e);if(!r)return!1;var i=r.method===n.T.xhr,s=this.opts.getPayload({retry:i});if(s){s="[object Array]"===Object.prototype.toString.call(s)?s:[s];for(var o=0;o<s.length;o++)this.harvest.send(this.endpoint,s[o],e,r,a,this.sharedContext.agentIdentifier)}}else this.harvest.sendX(this.endpoint,e,a,this.sharedContext.agentIdentifier);function a(r){t.onHarvestFinished(e,r)}this.started&&this.scheduleHarvest()}onHarvestFinished(e,t){if(this.opts.onFinished&&this.opts.onFinished(t),t.sent&&t.retry){var r=t.delay||this.opts.retryDelay;this.started&&r?(clearTimeout(this.timeoutHandle),this.timeoutHandle=null,this.scheduleHarvest(r,e)):!this.started&&r&&this.scheduleHarvest(r,e)}}}},6943:(e,t,r)=>{"use strict";r.d(t,{Mu:()=>x,y0:()=>y});var n=r(1558),i=r(353),s=r(1240),o=r(870),a=r(8354);function c(){return""+location}var u=r(6061),d=r(9729),h=r(2909),l=r(5988),f=r(2997),v=r(4518),g=r(3821),p=r(2781),m=r(6469);const b=JSON.parse('{"i8":"0.0.9-beta.74"}').i8;var w=!!navigator.sendBeacon,y=g.H>9||0===g.H;class x extends m.w{constructor(e){super(e),this.tooManyRequestsDelay=(0,u.Mt)(this.sharedContext.agentIdentifier,"harvest.tooManyRequestsDelay")||60,this.obfuscator=new p.R(this.sharedContext),this.getScheme=()=>!1===(0,u.Mt)(this.sharedContext.agentIdentifier,"ssl")?"http":"https",this._events={}}sendFinal(){var e=(0,n.D)(this._events,(e=>this.sendX(e,{unload:!0})));return(0,a.u)(e,E)}sendX(e,t,r){var n=S(e,t);if(!n)return!1;var i={retry:n.method===o.T.xhr};return this.obfuscator.shouldObfuscate()?this.obfuscator.obfuscateAndSend(e,this.createPayload(e,i),t,n,r):this._send(e,this.createPayload(e,i),t,n,r)}send(e,t,r,i,s){var o=O(),a=O();t.body&&(0,n.D)(t.body,o),t.qs&&(0,n.D)(t.qs,a);var c={body:o(),qs:a()};return(this.obfuscator.shouldObfuscate()?this.obfuscator.obfuscateAndSend:this._send)(e,c,r,i,s)}obfuscateAndSend(e,t,r,n,i){return function(e,t,r,n){return e&&"object"==typeof e?(r=r||"string",n=n||[],function e(n){for(var s in n)n.hasOwnProperty(s)&&("object"==typeof n[s]?e(n[s]):typeof n[s]!==r||i(s)||(n[s]=t(n[s])));return n}(e)):e;function i(e){for(var t=!1,r=0;r<n.length;r++)if(n[r]===e){t=!0;break}return t}}(t,((...e)=>this.obfuscator.obfuscateString(...e)),"string",["e"]),this._send(e,t,r,n,i)}_send(e,t,r,n,a){var c=(0,d.C)(this.sharedContext.agentIdentifier);if(!c.errorBeacon)return!1;if(!t.body)return a&&a({sent:!1}),!1;r||(r={});var u=this.getScheme()+"://"+c.errorBeacon+"/"+e+"/1/"+c.licenseKey+this.baseQueryString();t.qs&&(u+=(0,i.j6)(t.qs,(0,h.O)(this.sharedContext.agentIdentifier).maxBytes)),n||(n=S(e,r));var l,f=n.method,g=n.useBody,p=u;g&&"events"===e?l=t.body.e:g?l=(0,s.P)(t.body):p=u+(0,i.j6)(t.body,(0,h.O)(this.sharedContext.agentIdentifier).maxBytes);var m=f(p,l);return a&&f===o.T.xhr&&m.addEventListener("load",(function(){var e={sent:!0};429===this.status?(e.retry=!0,e.delay=this.tooManyRequestsDelay):408!==this.status&&500!==this.status&&503!==this.status||(e.retry=!0),r.needResponse&&(e.responseText=this.responseText),a(e)}),(0,v.m)(!1)),m||f!==o.T.beacon||(m=(f=o.T.img)(u+(0,i.j6)(t.body,(0,h.O)(this.sharedContext.agentIdentifier).maxBytes))),m}baseQueryString(){var e=!0;const t=(0,u.P_)(this.sharedContext.agentIdentifier);var r=(0,h.O)(this.sharedContext.agentIdentifier),n=(0,d.C)(this.sharedContext.agentIdentifier);"privacy"in t&&(e=t.privacy.cookies_enabled);var s=(0,l.f)(c()),o=this.obfuscator.shouldObfuscate()?this.obfuscator.obfuscateString(s):s;return["?a="+n.applicationID,(0,i.wu)("sa",n.sa?""+n.sa:""),(0,i.wu)("v",b),T(n),(0,i.wu)("ct",r.customTransaction),"&rst="+(0,f.now)(),"&ck="+(e?"1":"0"),(0,i.wu)("ref",o),(0,i.wu)("ptid",r.ptid?""+r.ptid:"")].join("")}createPayload(e,t){for(var r=O(),i=O(),s=this._events[e]&&this._events[e]||[],o=0;o<s.length;o++){var a=s[o](t);a&&(a.body&&(0,n.D)(a.body,r),a.qs&&(0,n.D)(a.qs,i))}return{body:r(),qs:i()}}on(e,t){(this._events[e]||(this._events[e]=[])).push(t)}resetListeners(){(0,n.D)(this._events,(function(e){this._events[e]=[]}))}}function E(e,t){return e||t}function S(e,t){var r,n;if((t=t||{}).needResponse){if(!y)return!1;n=!0,r=o.T.xhr}else if(t.unload)n=w,r=w?o.T.beacon:o.T.img;else if(y)n=!0,r=o.T.xhr;else{if("events"!==e&&"jserrors"!==e)return!1;r=o.T.img}return{method:r,useBody:n}}function T(e){return e.transactionName?(0,i.wu)("to",e.transactionName):(0,i.wu)("t",e.tNamePlain||"Unnamed Transaction")}function O(){var e={},t=!1;return function(r,n){if(n&&n.length&&(e[r]=n,t=!0),t)return e}}},8053:(e,t,r)=>{"use strict";function n(){var e=null,t=0,r=window.crypto||window.msCrypto;function n(){return e?15&e[t++]:16*Math.random()|0}r&&r.getRandomValues&&(e=r.getRandomValues(new Uint8Array(31)));for(var i,s="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",o="",a=0;a<s.length;a++)o+="x"===(i=s[a])?n().toString(16):"y"===i?(i=3&n()|8).toString(16):i;return o}function i(){return o(16)}function s(){return o(32)}function o(e){var t=null,r=0,n=window.crypto||window.msCrypto;n&&n.getRandomValues&&Uint8Array&&(t=n.getRandomValues(new Uint8Array(31)));for(var i=[],s=0;s<e;s++)i.push((t?15&t[r++]:16*Math.random()|0).toString(16));return i.join("")}r.r(t),r.d(t,{generateRandomHexString:()=>o,generateSpanId:()=>i,generateTraceId:()=>s,generateUuid:()=>n})},4202:(e,t,r)=>{"use strict";r.d(t,{VB:()=>i});var n=r(2995);function i(e,t){var r=["sm",e,{name:e},t];return(0,n.pr)("storeMetric",r,null,"api"),r}},151:(e,t,r)=>{"use strict";r.d(t,{AG:()=>a,FX:()=>u,n1:()=>d,uR:()=>c});var n=r(1558),i=r(1240),s=r(2781),o=Object.prototype.hasOwnProperty;function a(e,t,r){return e||0===e||""===e?t(e)+(r?",":""):"!"}function c(e,t){return t?Math.floor(e).toString(36):void 0===e||0===e?"":Math.floor(e).toString(36)}function u(e){var t=Object.hasOwnProperty("create")?Object.create(null):{},r=0;return function(n){if(void 0===n||""===n)return"";var i=new s.R({agentIdentifier:e});return n=String(n),i.shouldObfuscate()&&(n=i.obfuscateString(n)),o.call(t,n)?c(t[n],!0):(t[n]=r++,function(e){return"'"+e.replace(h,"\\$1")}(n))}}function d(e,t){var r=[];return(0,n.D)(e,(function(e,n){if(!(r.length>=64)){var s,o=5;switch(e=t(e),typeof n){case"object":n?s=t((0,i.P)(n)):o=9;break;case"number":o=6,s=n%1?n:n+".";break;case"boolean":o=n?7:8;break;case"undefined":o=9;break;default:s=t(n)}r.push([o,e+(s?","+s:"")])}})),r}var h=/([,\\;])/g},2997:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getLastTimestamp:()=>a,getOffset:()=>u,now:()=>o,setOffset:()=>c});var n=r(9335),i=(new Date).getTime(),s=i;function o(){return n.G&&performance.now?Math.round(performance.now()):(i=Math.max((new Date).getTime(),i))-s}function a(){return i}function c(e){s=e}function u(){return s}},9335:(e,t,r)=>{"use strict";r.d(t,{G:()=>n});const n=void 0!==window.performance&&window.performance.timing&&void 0!==window.performance.timing.navigationStart},3706:(e,t,r)=>{"use strict";r.d(t,{s:()=>c,v:()=>u});var n=r(3233),i=r(232),s=r(2572),o=r(2997),a=r(9335);let c=!0;function u(){var e=function(){if(!(s.I&&s.I<9))return a.G?(c=!1,window.performance.timing.navigationStart):void 0}()||function(){for(var e=document.cookie.split(" "),t=0;t<e.length;t++)if(0===e[t].indexOf("NREUM=")){for(var r,i,s,o,a=e[t].substring("NREUM=".length).split("&"),c=0;c<a.length;c++)0===a[c].indexOf("s=")?s=a[c].substring(2):0===a[c].indexOf("p=")?";"===(i=a[c].substring(2)).charAt(i.length-1)&&(i=i.substr(0,i.length-1)):0===a[c].indexOf("r=")&&";"===(r=a[c].substring(2)).charAt(r.length-1)&&(r=r.substr(0,r.length-1));if(r){var u=(0,n.u)(document.referrer);(o=u==r)||(o=(0,n.u)(document.location.href)==r&&u==i)}if(o&&s){if((new Date).getTime()-s>6e4)return;return s}}}();e&&((0,i.B)("starttime",e),(0,o.setOffset)(e))}u()},232:(e,t,r)=>{"use strict";r.d(t,{B:()=>s,L:()=>o});var n=r(2997),i={};function s(e,t){void 0===t&&(t=(0,n.now)()+(0,n.getOffset)()),i[e]=t}function o(e,t,r,n){var s=i[r],o=i[n];void 0!==s&&void 0!==o&&e.store("measures",t,{value:o-s})}},9391:(e,t,r)=>{"use strict";r.d(t,{l:()=>c});var n=r(2572),i=r(7957),s=r.n(i),o=r(4518);function a(e,t){return"addEventListener"in window?window.addEventListener(e,t,(0,o.m)(!1)):"attachEvent"in window?window.attachEvent("on"+e,t):void 0}function c(e){var t,r,i,o=(t=e,i=!1,function(){return i?r:(i=!0,r=t.apply(this,s()(arguments)))});!n.I||navigator.sendBeacon?a("pagehide",o):a("beforeunload",o),a("unload",o)}},5988:(e,t,r)=>{"use strict";r.d(t,{f:()=>s});var n=/([^?#]*)[^#]*(#[^?]*|$).*/,i=/([^?#]*)().*/;function s(e,t){return e.replace(t?n:i,"$1$2")}},353:(e,t,r)=>{"use strict";r.d(t,{j6:()=>h,nI:()=>d,wu:()=>l});var n=r(1558),i=r(1240),s={"%2C":",","%3A":":","%2F":"/","%40":"@","%24":"$","%3B":";"},o=(0,n.D)(s,(function(e){return e})),a=new RegExp(o.join("|"),"g");function c(e){return s[e]}function u(e){return null==e?"null":encodeURIComponent(e).replace(a,c)}function d(e,t){for(var r=0,n=0;n<e.length;n++)if((r+=e[n].length)>t)return e.slice(0,n).join("");return e.join("")}function h(e,t){var r=0,s="";return(0,n.D)(e,(function(e,n){var o,a,c=[];if("string"==typeof n)o="&"+e+"="+u(n),r+=o.length,s+=o;else if(n.length){for(r+=9,a=0;a<n.length&&(o=u((0,i.P)(n[a])),r+=o.length,!(void 0!==t&&r>=t));a++)c.push(o);s+="&"+e+"=%5B"+c.join(",")+"%5D"}})),s}function l(e,t){return t&&"string"==typeof t?"&"+e+"="+u(t):""}},4017:(e,t,r)=>{"use strict";r.d(t,{e:()=>i});var n={};function i(e){if(e in n)return n[e];var t=document.createElement("a"),r=window.location,i={};t.href=e,i.port=t.port;var s=t.href.split("://");!i.port&&s[1]&&(i.port=s[1].split("/")[0].split("@").pop().split(":")[1]),i.port&&"0"!==i.port||(i.port="https"===s[0]?"443":"80"),i.hostname=t.hostname||r.hostname,i.pathname=t.pathname,i.protocol=s[0],"/"!==i.pathname.charAt(0)&&(i.pathname="/"+i.pathname);var o=!t.protocol||":"===t.protocol||t.protocol===r.protocol,a=t.hostname===document.domain&&t.port===r.port;return i.sameOrigin=o&&(!t.hostname||a),"/"===i.pathname&&(n[e]=i),i}},1839:(e,t,r)=>{"use strict";r.d(t,{W:()=>i});var n=r(2755);class i{constructor(e,t){this.agentIdentifier=e,this.aggregator=t,this.ee=n.ee.get(e)}}},9381:(e,t,r)=>{"use strict";r.d(t,{X:()=>i});var n=Object.prototype.hasOwnProperty;function i(e,t,r){if(n.call(e,t))return e[t];var i=r();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!1}),i}catch(e){}return e[t]=i,i}},1558:(e,t,r)=>{"use strict";r.d(t,{D:()=>i});var n=Object.prototype.hasOwnProperty;function i(e,t){var r=[],i="",s=0;for(i in e)n.call(e,i)&&(r[s]=t(i,e[i]),s+=1);return r}},2781:(e,t,r)=>{"use strict";r.d(t,{R:()=>l});var n=r(6061),i=r(6469),s=r(4202),o=window;function a(){return o}const c={isFileProtocol:u,supportabilityMetricSent:!1};function u(){var e=a();return!(!e.location||!e.location.protocol||"file:"!==e.location.protocol)}u()&&((0,s.VB)("Generic/FileProtocol/Detected"),c.supportabilityMetricSent=!0);var d={regex:/^file:\/\/(.*)/,replacement:"file://OBFUSCATED"};let h=!1;class l extends i.w{constructor(e){super(e),h||(this.shouldObfuscate()&&(0,s.VB)("Generic/Obfuscate/Detected"),this.shouldObfuscate()&&!this.validateRules(this.getRules())&&(0,s.VB)("Generic/Obfuscate/Invalid"),h=!0)}shouldObfuscate(){return this.getRules().length>0}getRules(){var e=[],t=(0,n.Mt)(this.sharedContext.agentIdentifier,"obfuscate")||[];return e=e.concat(t),c.isFileProtocol()&&e.push(d),e}validateRules(e){for(var t=!1,r=!1,n=0;n<e.length;n++){"regex"in e[n]?"string"!=typeof e[n].regex&&e[n].regex.constructor!==RegExp&&(console&&console.warn&&console.warn('An obfuscation replacement rule contains a "regex" value with an invalid type (must be a string or RegExp)'),r=!0):(console&&console.warn&&console.warn('An obfuscation replacement rule was detected missing a "regex" value.'),r=!0);var i=e[n].replacement;i&&"string"!=typeof i&&(console&&console.warn&&console.warn('An obfuscation replacement rule contains a "replacement" value with an invalid type (must be a string)'),t=!0)}return!t&&!r}obfuscateString(e,t){if(!e||"string"!=typeof e)return e;for(var r=this.getRules(t),n=e,i=0;i<r.length;i++){var s=r[i].regex,o=r[i].replacement||"*";n=n.replace(s,o)}return n}}},8354:(e,t,r)=>{"use strict";function n(e,t,r){var n=0;for(void 0===r&&(r=e[0],n=1);n<e.length;n++)r=t(r,e[n]);return r}r.d(t,{u:()=>n})},3233:(e,t,r)=>{"use strict";function n(e){var t,r=0;for(t=0;t<e.length;t++)r+=(t+1)*e.charCodeAt(t);return Math.abs(r)}r.d(t,{u:()=>n})},1240:(e,t,r)=>{"use strict";r.d(t,{P:()=>a});var n=r(1558),i=r(2755),s=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function a(e){try{return u("",{"":e})}catch(e){try{i.ee.emit("internal-error",[e])}catch(e){}}}function c(e){return s.lastIndex=0,s.test(e)?'"'+e.replace(s,(function(e){var t=o[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function u(e,t){var r=t[e];switch(typeof r){case"string":return c(r);case"number":return isFinite(r)?String(r):"null";case"boolean":return String(r);case"object":if(!r)return"null";var i=[];if(r instanceof window.Array||"[object Array]"===Object.prototype.toString.apply(r)){for(var s=r.length,o=0;o<s;o+=1)i[o]=u(o,r)||"null";return 0===i.length?"[]":"["+i.join(",")+"]"}return(0,n.D)(r,(function(e){var t=u(e,r);t&&i.push(c(e)+":"+t)})),0===i.length?"{}":"{"+i.join(",")+"}"}}},870:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});const n={jsonp:function(e,t){var r=document.createElement("script");r.type="text/javascript",r.src=e+"&jsonp="+t;var n=document.getElementsByTagName("script")[0];return n.parentNode.insertBefore(r,n),r},xhr:function(e,t,r){var n=new XMLHttpRequest;n.open("POST",e,!r);try{"withCredentials"in n&&(n.withCredentials=!0)}catch(e){}return n.setRequestHeader("content-type","text/plain"),n.send(t),n},xhrSync:function(e,t){return n.xhr(e,t,!0)},img:function(e){var t=new Image;return t.src=e,t},beacon:function(e,t){return navigator.sendBeacon(e,t)}}},8240:(e,t,r)=>{"use strict";r.r(t),r.d(t,{NREUMinitialized:()=>l,addToNREUM:()=>h,defaults:()=>i,gosCDN:()=>f,gosNREUM:()=>s,gosNREUMInfo:()=>o,gosNREUMInit:()=>c,gosNREUMInitializedAgents:()=>d,gosNREUMLoaderConfig:()=>a,gosNREUMOriginals:()=>u});var n=r(2997);const i={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net"};function s(){return window.NREUM||(window.NREUM={}),void 0===window.newrelic&&(window.newrelic=window.NREUM),window.NREUM}function o(){let e=s();const t=e.info||{};return e.info={beacon:i.beacon,errorBeacon:i.errorBeacon,...t},e}function a(){let e=s();const t=e.loader_config||{};return e.loader_config={...t},e}function c(){let e=s();const t=e.init||{};return e.init={...t},e}function u(){let e=s();if(!e.o){var t=window,r=t.XMLHttpRequest;e.o={ST:setTimeout,SI:t.setImmediate,CT:clearTimeout,XHR:r,REQ:t.Request,EV:t.Event,PR:t.Promise,MO:t.MutationObserver,FETCH:t.fetch}}return e}function d(e,t,r){let i=s();const o=i.initializedAgents||{},a=o[e]||{};return Object.keys(a).length||(a.initializedAt={ms:(0,n.now)(),date:new Date}),i.initializedAgents={...o,[e]:{...a,[r]:t}},i}function h(e,t){s()[e]=t}function l(){s().initialized=!0}function f(){return o(),c(),u(),a(),s()}},6219:(e,t,r)=>{"use strict";function n(){return"PerformanceObserver"in window&&"function"==typeof window.PerformanceObserver}r.d(t,{W:()=>n})},3097:(e,t,r)=>{"use strict";r.d(t,{em:()=>b,u5:()=>w,QU:()=>y,gy:()=>x,BV:()=>E,Kf:()=>S});var n=r(2755),i=r(7957),s=r.n(i),o=r(5307),a=window,c=(a.Request,a.Response,"nr@context");function u(e){var t=o.Y.FETCH,r=e||n.ee,i=function(e,t,r){return function(){var n,i=s()(arguments),o={};e.emit(r+"before-start",[i],o),o[c]&&o[c].dt&&(n=o[c].dt);var a=t.apply(this,i);return e.emit(r+"start",[i,n],a),a.then((function(t){return e.emit(r+"end",[null,t],a),t}),(function(t){throw e.emit(r+"end",[t],a),t}))}}(r,t,"fetch-");return r.on("fetch-end",(function(e,t){var n=this;if(t){var i=t.headers.get("content-length");null!==i&&(n.rxSize=i),r.emit("fetch-done",[null,t],n)}else r.emit("fetch-done",[e],n)})),i}var d="nr@original",h=Object.prototype.hasOwnProperty,l=!1;function f(e,t){return e||(e=n.ee),r.inPlace=function(e,t,n,i,s){n||(n="");var o,a,c,u="-"===n.charAt(0);for(c=0;c<t.length;c++)g(o=e[a=t[c]])||(e[a]=r(o,u?a+n:n,i,a,s))},r.flag=d,r;function r(t,r,n,o,a){return g(t)?t:(r||(r=""),c[d]=t,function(e,t,r){if(Object.defineProperty&&Object.keys)try{return Object.keys(e).forEach((function(r){Object.defineProperty(t,r,{get:function(){return e[r]},set:function(t){return e[r]=t,t}})})),t}catch(e){v([e],r)}for(var n in e)h.call(e,n)&&(t[n]=e[n])}(t,c,e),c);function c(){var c,u,d,h;try{u=this,c=s()(arguments),d="function"==typeof n?n(c,u):n||{}}catch(t){v([t,"",[c,u,o],d],e)}i(r+"start",[c,u,o],d,a);try{return h=t.apply(u,c)}catch(e){throw i(r+"err",[c,u,e],d,a),e}finally{i(r+"end",[c,u,h],d,a)}}}function i(r,n,i,s){if(!l||t){var o=l;l=!0;try{e.emit(r,n,i,t,s)}catch(t){v([t,r,n,i],e)}l=o}}}function v(e,t){t||(t=n.ee);try{t.emit("internal-error",e)}catch(e){}}function g(e){return!(e&&e instanceof Function&&e.apply&&!e[d])}var p=r(4518);var m=r(9381);function b(e){return function(e){var t=function(e){return(e||n.ee).get("events")}(e),r=f(t,!0),i=XMLHttpRequest,s="addEventListener";function o(e){for(var t=e;t&&!t.hasOwnProperty(s);)t=Object.getPrototypeOf(t);t&&a(t)}function a(e){r.inPlace(e,[s,"removeEventListener"],"-",c)}function c(e,t){return e[1]}return"getPrototypeOf"in Object?(o(document),o(window),o(i.prototype)):i.prototype.hasOwnProperty(s)&&(a(window),a(i.prototype)),t.on("addEventListener-start",(function(e,t){var n=e[1];if(null!==n&&("function"==typeof n||"object"==typeof n)){var i=(0,m.X)(n,"nr@wrapped",(function(){var e={object:function(){if("function"==typeof n.handleEvent)return n.handleEvent.apply(n,arguments)},function:n}[typeof n];return e?r(e,"fn-",null,e.name||"anonymous"):n}));this.wrapped=e[1]=i}})),t.on("removeEventListener-start",(function(e){e[1]=this.wrapped||e[1]})),t}(e)}function w(e){return u(e)}function y(e){return function(e){var t=function(e){return(e||n.ee).get("history")}(e),r=f(t),i=window.history&&window.history.constructor&&window.history.constructor.prototype,s=window.history;return i&&i.pushState&&i.replaceState&&(s=i),r.inPlace(s,["pushState","replaceState"],"-"),t}(e)}function x(e){return function(e){var t=function(e){return(e||n.ee).get("raf")}(e),r=f(t);return r.inPlace(window,["requestAnimationFrame","mozRequestAnimationFrame","webkitRequestAnimationFrame","msRequestAnimationFrame"],"raf-"),t.on("raf-start",(function(e){e[0]=r(e[0],"fn-")})),t}(e)}function E(e){return function(e){var t=function(e){return(e||n.ee).get("timer")}(e),r=f(t),i="setTimeout",s="setInterval",o="-start";return r.inPlace(window,[i,"setImmediate"],"setTimeout-"),r.inPlace(window,[s],"setInterval-"),r.inPlace(window,["clearTimeout","clearImmediate"],"clearTimeout-"),t.on(s+o,(function(e,t,n){e[0]=r(e[0],"fn-",null,n)})),t.on(i+o,(function(e,t,n){this.method=n,this.timerDuration=isNaN(e[1])?0:+e[1],e[0]=r(e[0],"fn-",this,n)})),t}(e)}function S(e){return function(e){var t=e||n.ee,r=function(e){return(e||n.ee).get("events")}(t),i=f(r),s=o.Y.XHR,a=o.Y.MO,c=o.Y.PR,u=o.Y.SI,d="readystatechange",h=["onload","onerror","onabort","onloadstart","onloadend","onprogress","ontimeout"],l=[],v=window.XMLHttpRequest=function(e){var t=new s(e);try{r.emit("new-xhr",[t],t),t.addEventListener(d,m,(0,p.m)(!1))}catch(e){try{r.emit("internal-error",[e])}catch(e){}}return t};function g(e,t){i.inPlace(t,["onreadystatechange"],"fn-",E)}function m(){var e=this,t=r.context(e);e.readyState>3&&!t.resolved&&(t.resolved=!0,r.emit("xhr-resolved",[],e)),i.inPlace(e,h,"fn-",E)}if(function(e,t){for(var r in e)t[r]=e[r]}(s,v),v.prototype=s.prototype,i.inPlace(v.prototype,["open","send"],"-xhr-",E),r.on("send-xhr-start",(function(e,t){g(0,t),function(e){l.push(e),a&&(b?b.then(x):u?u(x):(w=-w,y.data=w))}(t)})),r.on("open-xhr-start",g),a){var b=c&&c.resolve();if(!u&&!c){var w=1,y=document.createTextNode(w);new a(x).observe(y,{characterData:!0})}}else t.on("fn-end",(function(e){e[0]&&e[0].type===d||x()}));function x(){for(var e=0;e<l.length;e++)g(0,l[e]);l.length&&(l=[])}function E(e,t){return t}return r}(e)}},74:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Aggregate:()=>g});var n=r(3406),i=r(1240),s=r(151),o=r(2995),a=r(6061),c=r(9729),u=r(2848),d=r(9391),h=r(4202),l=[];function f(e,t){return 0===e.indexOf("/")&&(e=e.substring(1)),0===t.indexOf("/")&&(t=t.substring(1)),""===e||e===t}var v=r(1839);class g extends v.W{constructor(e,t){super(e,t),this.ajaxEvents=[],this.spaAjaxEvents={},this.sentAjaxEvents=[],this.scheduler,this.harvestTimeSeconds=(0,a.Mt)(this.agentIdentifier,"ajax.harvestTimeSeconds")||10,this.MAX_PAYLOAD_SIZE=(0,a.Mt)(this.agentIdentifier,"ajax.maxPayloadSize")||1e6,this.ee.on("interactionSaved",(function(e){this.spaAjaxEvents[e.id]&&delete this.spaAjaxEvents[e.id]})),this.ee.on("interactionDiscarded",(function(e){this.spaAjaxEvents[e.id]&&this.allAjaxIsEnabled()&&(this.spaAjaxEvents[e.id].forEach((function(e){this.ajaxEvents.push(e)})),delete this.spaAjaxEvents[e.id])})),this.allAjaxIsEnabled()&&function(e){if(l=[],e&&e.length)for(var t=0;t<e.length;t++){var r=e[t];0===r.indexOf("http://")?r=r.substring(7):0===r.indexOf("https://")&&(r=r.substring(8));var n=r.indexOf("/");n>0?l.push({hostname:r.substring(0,n),pathname:r.substring(n)}):l.push({hostname:r,pathname:""})}}((0,a.Mt)(this.agentIdentifier,"ajax.deny_list")),(0,n.XN)("xhr",((...e)=>this.storeXhr(...e)),void 0,this.ee),this.allAjaxIsEnabled()&&(this.scheduler=new u.o("events",{onFinished:(...e)=>this.onEventsHarvestFinished(...e),getPayload:(...e)=>this.prepareHarvest(...e)}),this.scheduler.harvest.on("jserrors",(function(){return{body:this.aggregator.take(["xhr"])}})),this.scheduler.startTimer(this.harvestTimeSeconds),(0,d.l)(((...e)=>this.finalHarvest(...e))))}getStoredEvents(){return{ajaxEvents:this.ajaxEvents,spaAjaxEvents:this.spaAjaxEvents}}storeXhr(e,t,r,n,s){var a;if("localhost"!==e.hostname&&(t.time=r,a=e.cat?(0,i.P)([e.status,e.cat]):(0,i.P)([e.status,e.host,e.pathname]),(0,o.pr)("bstXhrAgg",["xhr",a,e,t],void 0,void 0,this.ee),this.aggregator.store("xhr",a,e,t),this.allAjaxIsEnabled()))if(function(e){if(0===l.length)return!0;for(var t=0;t<l.length;t++){var r=l[t];if("*"===r.hostname)return!1;if(n=r.hostname,i=e.hostname,!(n.length>i.length)&&i.indexOf(n)===i.length-n.length&&f(r.pathname,e.pathname))return!1}var n,i;return!0}(e)){var u=this,d={method:e.method,status:e.status,domain:e.host,path:e.pathname,requestSize:t.txSize,responseSize:t.rxSize,type:s,startTime:r,endTime:n,callbackDuration:t.cbTime};if(u.dt&&(d.spanId=u.dt.spanId,d.traceId=u.dt.traceId,d.spanTimestamp=u.dt.timestamp),this.spaNode){var v=this.spaNode.interaction.id;this.spaAjaxEvents[v]=this.spaAjaxEvents[v]||[],this.spaAjaxEvents[v].push(d)}else this.ajaxEvents.push(d)}else e.hostname===(0,c.C)(this.agentIdentifier).errorBeacon?(0,h.VB)("Ajax/Events/Excluded/Agent"):(0,h.VB)("Ajax/Events/Excluded/App")}prepareHarvest(e){if(e=e||{},0===this.ajaxEvents.length)return null;for(var t=this.getPayload(this.ajaxEvents,e.maxPayloadSize||this.MAX_PAYLOAD_SIZE),r=[],n=0;n<t.length;n++)r.push({body:{e:t[n]}});return e.retry&&(this.sentAjaxEvents=this.ajaxEvents.slice()),this.ajaxEvents=[],r}getPayload(e,t,r){r=r||1;for(var n=[],i=e.length/r,s=this.splitChunks(e,i),o=!1,a=0;a<s.length;a++){var c=s[a];if(c.tooBig(t)){if(1!==c.events.length){o=!0;break}}else n.push(c.payload)}return o?this.getPayload(e,t,++r):n}onEventsHarvestFinished(e){e.retry&&this.sentAjaxEvents.length>0&&this.allAjaxIsEnabled()&&(this.ajaxEvents=this.ajaxEvents.concat(this.sentAjaxEvents),this.sentAjaxEvents=[])}splitChunks(e,t){t=t||e.length;for(var r=[],n=0,i=e.length;n<i;n+=t)r.push(new this.Chunk(e.slice(n,n+t)));return r}Chunk(e){this.addString=(0,s.FX)(),this.events=e,this.payload="bel.7;";for(var t=0;t<this.events.length;t++){var r=this.events[t],n=[(0,s.uR)(r.startTime),(0,s.uR)(r.endTime-r.startTime),(0,s.uR)(0),(0,s.uR)(0),this.addString(r.method),(0,s.uR)(r.status),this.addString(r.domain),this.addString(r.path),(0,s.uR)(r.requestSize),(0,s.uR)(r.responseSize),"fetch"===r.type?1:"",this.addString(0),(0,s.AG)(r.spanId,this.addString,!0)+(0,s.AG)(r.traceId,this.addString,!0)+(0,s.AG)(r.spanTimestamp,s.uR,!1)],i="2,",o=(0,s.n1)((0,c.C)(this.agentIdentifier).jsAttributes||{},this.addString);n.unshift((0,s.uR)(o.length)),i+=n.join(","),o&&o.length>0&&(i+=";"+o.join(";")),t+1<this.events.length&&(i+=";"),this.payload+=i}this.tooBig=function(e){return e=e||this.MAX_PAYLOAD_SIZE,2*this.payload.length>e}}allAjaxIsEnabled(){return!1!==(0,a.Mt)(this.agentIdentifier,"ajax.enabled")}}},9770:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Instrument:()=>O,getWrappedFetch:()=>j});var n=r(5307),i=r(2909),s=r(5501),o=r(2995),a=r(2755),c=r(9381),u=1;function d(e){var t=typeof e;return!e||"object"!==t&&"function"!==t?-1:e===window?0:(0,c.X)(e,"nr@id",(function(){return u++}))}var h=r(2572);function l(e){if("string"==typeof e&&e.length)return e.length;if("object"==typeof e){if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer&&e.byteLength)return e.byteLength;if("undefined"!=typeof Blob&&e instanceof Blob&&e.size)return e.size;if(!("undefined"!=typeof FormData&&e instanceof FormData))try{return JSON.stringify(e).length}catch(e){return}}}var f=r(4518),v=r(2997),g=r(3097),p=r(4017),m=r(6061),b=r(8053);class w{constructor(e){this.agentIdentifier=e}generateTracePayload(e){if(!this.shouldGenerateTrace(e))return null;var t=(0,s.D)(this.agentIdentifier);if(!t)return null;var r=(t.accountID||"").toString()||null,n=(t.agentID||"").toString()||null,i=(t.trustKey||"").toString()||null;if(!r||!n)return null;var o=(0,b.generateSpanId)(),a=(0,b.generateTraceId)(),c=Date.now(),u={spanId:o,traceId:a,timestamp:c};return(e.sameOrigin||this.isAllowedOrigin(e)&&this.useTraceContextHeadersForCors())&&(u.traceContextParentHeader=this.generateTraceContextParentHeader(o,a),u.traceContextStateHeader=this.generateTraceContextStateHeader(o,c,r,n,i)),(e.sameOrigin&&!this.excludeNewrelicHeader()||!e.sameOrigin&&this.isAllowedOrigin(e)&&this.useNewrelicHeaderForCors())&&(u.newrelicHeader=this.generateTraceHeader(o,a,c,r,n,i)),u}generateTraceContextParentHeader(e,t){return"00-"+t+"-"+e+"-01"}generateTraceContextStateHeader(e,t,r,n,i){return i+"@nr=0-1-"+r+"-"+n+"-"+e+"----"+t}generateTraceHeader(e,t,r,n,i,s){if(!("btoa"in window)||"function"!=typeof window.btoa)return null;var o={v:[0,1],d:{ty:"Browser",ac:n,ap:i,id:e,tr:t,ti:r}};return s&&n!==s&&(o.d.tk=s),btoa(JSON.stringify(o))}shouldGenerateTrace(e){return this.isDtEnabled()&&this.isAllowedOrigin(e)}isAllowedOrigin(e){var t=!1,r={};if((0,m.Mt)("distributed_tracing")&&(r=(0,m.P_)().distributed_tracing),e.sameOrigin)t=!0;else if(r.allowed_origins instanceof Array)for(var n=0;n<r.allowed_origins.length;n++){var i=(0,p.e)(r.allowed_origins[n]);if(e.hostname===i.hostname&&e.protocol===i.protocol&&e.port===i.port){t=!0;break}}return t}isDtEnabled(){var e=(0,m.Mt)(this.agentIdentifier,"distributed_tracing");return!!e&&!!e.enabled}excludeNewrelicHeader(){var e=(0,m.Mt)(this.agentIdentifier,"distributed_tracing");return!!e&&!!e.exclude_newrelic_header}useNewrelicHeaderForCors(){var e=(0,m.Mt)(this.agentIdentifier,"distributed_tracing");return!!e&&!1!==e.cors_use_newrelic_header}useTraceContextHeadersForCors(){var e=(0,m.Mt)(this.agentIdentifier,"distributed_tracing");return!!e&&!e.cors_use_tracecontext_headers}}var y=r(1839),x=["load","error","abort","timeout"],E=x.length,S=n.Y.REQ,T=window.XMLHttpRequest;class O extends y.W{constructor(e){super(e),(0,i.O)(this.agentIdentifier).xhrWrappable&&!(0,i.O)(this.agentIdentifier).disabled&&(this.dt=new w(this.agentIdentifier))}}function j(){var e=(0,g.u5)(a.ee);return function(e,t){function r(e){var r=this.params,n=this.metrics;if(!this.ended){this.ended=!0;for(var s=0;s<E;s++)e.removeEventListener(x[s],this.listener,!1);r.aborted||(n.duration=(0,v.now)()-this.startTime,this.loadCaptureCalled||4!==e.readyState?null==r.status&&(r.status=0):i(this,e),n.cbTime=this.cbTime,t("xhr",[r,n,this.startTime,this.endTime,"xhr"],this))}}function n(e,t){var r=(0,p.e)(t),n=e.params;n.hostname=r.hostname,n.port=r.port,n.protocol=r.protocol,n.host=r.hostname+":"+r.port,n.pathname=r.pathname,e.parsedOrigin=r,e.sameOrigin=r.sameOrigin}function i(e,t){e.params.status=t.status;var r=function(e,t){var r=e.responseType;return"json"===r&&null!==t?t:"arraybuffer"===r||"blob"===r||"json"===r?l(e.response):"text"===r||""===r||void 0===r?l(e.responseText):void 0}(t,e.lastSize);if(r&&(e.metrics.rxSize=r),e.sameOrigin){var n=t.getResponseHeader("X-NewRelic-App-Data");n&&(e.params.cat=n.split(", ").pop())}e.loadCaptureCalled=!0}e.on("new-xhr",(function(e){var t=this;t.totalCbs=0,t.called=0,t.cbTime=0,t.end=r,t.ended=!1,t.xhrGuids={},t.lastSize=null,t.loadCaptureCalled=!1,t.params=this.params||{},t.metrics=this.metrics||{},e.addEventListener("load",(function(r){i(t,e)}),(0,f.m)(!1)),h.I&&(h.I>34||h.I<10)||e.addEventListener("progress",(function(e){t.lastSize=e.loaded}),(0,f.m)(!1))})),e.on("open-xhr-start",(function(e){this.params={method:e[0]},n(this,e[1]),this.metrics={}})),e.on("open-xhr-end",(function(e,t){var r=(0,s.D)();"xpid"in r&&this.sameOrigin&&t.setRequestHeader("X-NewRelic-ID",r.xpid);var n=this.dt.generateTracePayload(this.parsedOrigin);if(n){var i=!1;n.newrelicHeader&&(t.setRequestHeader("newrelic",n.newrelicHeader),i=!0),n.traceContextParentHeader&&(t.setRequestHeader("traceparent",n.traceContextParentHeader),n.traceContextStateHeader&&t.setRequestHeader("tracestate",n.traceContextStateHeader),i=!0),i&&(this.dt=n)}})),e.on("send-xhr-start",(function(t,r){var n=this.metrics,i=t[0],s=this;if(n&&i){var o=l(i);o&&(n.txSize=o)}this.startTime=(0,v.now)(),this.listener=function(t){try{"abort"!==t.type||s.loadCaptureCalled||(s.params.aborted=!0),("load"!==t.type||s.called===s.totalCbs&&(s.onloadCalled||"function"!=typeof r.onload))&&s.end(r)}catch(t){try{e.emit("internal-error",[t])}catch(e){}}};for(var a=0;a<E;a++)r.addEventListener(x[a],this.listener,(0,f.m)(!1))})),e.on("xhr-cb-time",(function(e,t,r){this.cbTime+=e,t?this.onloadCalled=!0:this.called+=1,this.called!==this.totalCbs||!this.onloadCalled&&"function"==typeof r.onload||this.end(r)})),e.on("xhr-load-added",(function(e,t){var r=""+d(e)+!!t;this.xhrGuids&&!this.xhrGuids[r]&&(this.xhrGuids[r]=!0,this.totalCbs+=1)})),e.on("xhr-load-removed",(function(e,t){var r=""+d(e)+!!t;this.xhrGuids&&this.xhrGuids[r]&&(delete this.xhrGuids[r],this.totalCbs-=1)})),e.on("xhr-resolved",(function(){this.endTime=(0,v.now)()})),e.on("addEventListener-end",(function(t,r){r instanceof T&&"load"===t[0]&&e.emit("xhr-load-added",[t[1],t[2]],r)})),e.on("removeEventListener-end",(function(t,r){r instanceof T&&"load"===t[0]&&e.emit("xhr-load-removed",[t[1],t[2]],r)})),e.on("fn-end",(function(t,r){this.xhrCbStart&&e.emit("xhr-cb-time",[(0,v.now)()-this.xhrCbStart,this.onload,r],r)})),e.on("fetch-before-start",(function(e){var t,r=e[1]||{};"string"==typeof e[0]?t=e[0]:e[0]&&e[0].url?t=e[0].url:window.URL&&e[0]&&e[0]instanceof URL&&(t=e[0].href),t&&(this.parsedOrigin=(0,p.e)(t),this.sameOrigin=this.parsedOrigin.sameOrigin);var n=this.dt.generateTracePayload(this.parsedOrigin);if(n&&(n.newrelicHeader||n.traceContextParentHeader))if("string"==typeof e[0]||window.URL&&e[0]&&e[0]instanceof URL){var i={};for(var s in r)i[s]=r[s];i.headers=new Headers(r.headers||{}),o(i.headers,n)&&(this.dt=n),e.length>1?e[1]=i:e.push(i)}else e[0]&&e[0].headers&&o(e[0].headers,n)&&(this.dt=n);function o(e,t){var r=!1;return t.newrelicHeader&&(e.set("newrelic",t.newrelicHeader),r=!0),t.traceContextParentHeader&&(e.set("traceparent",t.traceContextParentHeader),t.traceContextStateHeader&&e.set("tracestate",t.traceContextStateHeader),r=!0),r}})),e.on("fetch-start",(function(e,t){this.params={},this.metrics={},this.startTime=(0,v.now)(),this.dt=t,e.length>=1&&(this.target=e[0]),e.length>=2&&(this.opts=e[1]);var r,i=this.opts||{},s=this.target;"string"==typeof s?r=s:"object"==typeof s&&s instanceof S?r=s.url:window.URL&&"object"==typeof s&&s instanceof URL&&(r=s.href),n(this,r);var o=(""+(s&&s instanceof S&&s.method||i.method||"GET")).toUpperCase();this.params.method=o,this.txSize=l(i.body)||0})),e.on("fn-start",(function(e,t,r){t instanceof T&&("onload"===r&&(this.onload=!0),("load"===(e[0]&&e[0].type)||this.onload)&&(this.xhrCbStart=(0,v.now)()))})),e.on("fetch-done",(function(e,r){var n;this.endTime=(0,v.now)(),this.params||(this.params={}),this.params.status=r?r.status:0,"string"==typeof this.rxSize&&this.rxSize.length>0&&(n=+this.rxSize);var i={txSize:this.txSize,rxSize:n,duration:(0,v.now)()-this.startTime};t("xhr",[this.params,i,this.startTime,this.endTime,"fetch"],this)}))}(a.ee,o.pr),e}},7326:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Aggregate:()=>j});var n=/([a-z0-9]+)$/i;function i(e){if(e){var t=e.match(n);return t?t[1]:void 0}}var s=r(8354),o=/^\n+|\n+$/g;var a=/function (.+?)\s*\(/,c=/^\s*at (?:((?:\[object object\])?(?:[^(]*\([^)]*\))*[^()]*(?: \[as \S+\])?) )?\(?((?:file|http|https|chrome-extension):.*?)?:(\d+)(?::(\d+))?\)?\s*$/i,u=/^\s*(?:(\S*|global code)(?:\(.*?\))?@)?((?:file|http|https|chrome|safari-extension).*?):(\d+)(?::(\d+))?\s*$/i,d=/^\s*at .+ \(eval at \S+ \((?:(?:file|http|https):[^)]+)?\)(?:, [^:]*:\d+:\d+)?\)$/i,h=/^\s*at Function code \(Function code:\d+:\d+\)\s*/i;function l(e,t){var r,n=function(e){var t=e.match(u);return t||(t=e.match(c)),t?{url:t[2],func:"Anonymous function"!==t[1]&&"global code"!==t[1]&&t[1]||null,line:+t[3],column:t[4]?+t[4]:null}:e.match(d)||e.match(h)||"anonymous"===e?{func:"evaluated code"}:void 0}(t);return n?((r=n.func)&&r.indexOf("nrWrapper")>=0?e.wrapperSeen=!0:e.stackLines.push(t),e.wrapperSeen||e.frames.push(n),e):(e.stackLines.push(t),e)}function f(e){var t=a.exec(String(e.constructor));return t&&t.length>1?t[1]:"unknown"}function v(e){var t=0;if(!e||!e.length)return t;for(var r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}var g=r(3406),p=r(2848),m=r(1240),b=r(2995),w=r(1558),y=r(6061),x=r(2909),E=r(9729),S=r(2997),T=r(5988),O=r(1839);class j extends O.W{constructor(e,t){super(e,t),this.stackReported={},this.pageviewReported={},this.errorCache={},this.currentBody,this.errorOnPage=!1,this.ee.on("interactionSaved",(function(e){this.errorCache[e.id]&&(this.errorCache[e.id].forEach((function(t){var r={},n=t[4],i=t[5];(0,w.D)(n,a),(0,w.D)(e.root.attrs.custom,a),(0,w.D)(i,a);var s=t[2];s.browserInteractionId=e.root.attrs.id,delete s._interactionId,s._interactionNodeId&&(s.parentNodeId=s._interactionNodeId.toString(),delete s._interactionNodeId);var o=t[1]+e.root.attrs.id+":"+v((0,m.P)(r));function a(e,t){r[e]=t&&"object"==typeof t?(0,m.P)(t):t}this.aggregator.store(t[0],o,s,t[3],r)})),delete this.errorCache[e.id])})),this.ee.on("interactionDiscarded",(function(e){this.errorCache&&this.errorCache[e.id]&&(this.errorCache[e.id].forEach((function(t){var r={},n=t[4],i=t[5];(0,w.D)(n,a),(0,w.D)(e.root.attrs.custom,a),(0,w.D)(i,a);var s=t[2];delete s._interactionId,delete s._interactionNodeId;var o=t[1]+":"+v((0,m.P)(r));function a(e,t){r[e]=t&&"object"==typeof t?(0,m.P)(t):t}this.aggregator.store(t[0],o,t[2],t[3],r)})),delete this.errorCache[e.id])})),(0,g.XN)("err",((...e)=>this.storeError(...e)),void 0,this.ee),(0,g.XN)("ierr",((...e)=>this.storeError(...e)),void 0,this.ee);var r=(0,y.Mt)(this.agentIdentifier,"jserrors.harvestTimeSeconds")||10,n=new p.o("jserrors",{onFinished:(...e)=>this.onHarvestFinished(...e)},this);n.harvest.on("jserrors",((...e)=>this.onHarvestStarted(...e))),n.startTimer(r)}onHarvestStarted(e){var t=this.aggregator.take(["err","ierr"]);e.retry&&(this.currentBody=t);var r={body:t,qs:{}},n=(0,m.P)((0,x.O)(this.agentIdentifier).releaseIds);return"{}"!==n&&(r.qs.ri=n),t&&t.err&&t.err.length&&!this.errorOnPage&&(r.qs.pve="1",this.errorOnPage=!0),r}onHarvestFinished(e){e.retry&&this.currentBody&&((0,w.D)(this.currentBody,(function(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=this.getBucketName(n.params,n.custom);this.aggregator.merge(e,i,n.metrics,n.params,n.custom)}})),this.currentBody=null)}nameHash(e){return v(e.exceptionClass)^e.stackHash}getBucketName(e,t){return this.nameHash(e)+":"+v((0,m.P)(t))}canonicalizeURL(e,t){if("string"!=typeof e)return"";var r=(0,T.f)(e);return r===t?"<inline>":r}buildCanonicalStackString(e,t){for(var r="",n=0;n<e.frames.length;n++){var s=e.frames[n],o=i(s.func);r&&(r+="\n"),o&&(r+=o+"@"),"string"==typeof s.url&&(r+=s.url),s.line&&(r+=":"+s.line)}return r}canonicalizeStackURLs(e){for(var t=(0,T.f)((0,x.O)(this.agentIdentifier).origin),r=0;r<e.frames.length;r++){var n=e.frames[r],i=n.url,s=this.canonicalizeURL(i,t);s&&s!==n.url&&(n.url=s,e.stackString=e.stackString.split(i).join(s))}return e}storeError(e,t,r,n){if(t=t||(0,S.now)(),r||!(0,x.O)(this.agentIdentifier).onerror||!(0,x.O)(this.agentIdentifier).onerror(e)){var i,a=this.canonicalizeStackURLs(function(e){var t=null;try{if(t=function(e){if(!e.stack)return null;var t,r=(0,s.u)(e.stack.split("\n"),l,{frames:[],stackLines:[],wrapperSeen:!1});return r.frames.length?{mode:"stack",name:e.name||f(e),message:e.message,stackString:(t=r.stackLines,function(e){var t;if(e.length>100){var r=e.length-100;t=e.slice(0,50).join("\n"),t+="\n< ...truncated "+r+" lines... >\n",t+=e.slice(-50).join("\n")}else t=e.join("\n");return t}(t).replace(o,"")),frames:r.frames}:null}(e),t)return t}catch(e){}try{if(t=function(e){if(!("line"in e))return null;var t=e.name||f(e);if(!e.sourceURL)return{mode:"sourceline",name:t,message:e.message,stackString:f(e)+": "+e.message+"\n in evaluated code",frames:[{func:"evaluated code"}]};var r=t+": "+e.message+"\n at "+e.sourceURL;return e.line&&(r+=":"+e.line,e.column&&(r+=":"+e.column)),{mode:"sourceline",name:t,message:e.message,stackString:r,frames:[{url:e.sourceURL,line:e.line,column:e.column}]}}(e),t)return t}catch(e){}try{if(t=function(e){var t=e.name||f(e);return t?{mode:"nameonly",name:t,message:e.message,stackString:t+": "+e.message,frames:[]}:null}(e),t)return t}catch(e){}return{mode:"failed",stackString:"",frames:[]}}(e)),c={stackHash:v(this.buildCanonicalStackString(a)),exceptionClass:a.name,request_uri:window.location.pathname};a.message&&(c.message=""+a.message),this.stackReported[c.stackHash]?c.browser_stack_hash=v(a.stackString):(this.stackReported[c.stackHash]=!0,c.stack_trace=(i=a.stackString).length>65530?i.substr(0,65530):i),c.releaseIds=(0,m.P)((0,x.O)(this.agentIdentifier).releaseIds);var u=this.nameHash(c);this.pageviewReported[u]||(c.pageview=1,this.pageviewReported[u]=!0);var d=r?"ierr":"err",h={time:t};if((0,b.pr)("errorAgg",[d,u,c,h],void 0,void 0,this.ee),null!=c._interactionId)this.errorCache[c._interactionId]=this.errorCache[c._interactionId]||[],this.errorCache[c._interactionId].push([d,u,c,h,p,n]);else{var g={},p=(0,E.C)(this.agentIdentifier).jsAttributes;(0,w.D)(p,T),n&&(0,w.D)(n,T);var y=u+":"+v((0,m.P)(g));this.aggregator.store(d,y,c,h,g)}}function T(e,t){g[e]=t&&"object"==typeof t?(0,m.P)(t):t}}}},3825:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Instrument:()=>v});var n=r(2995),i=r(2909),s=r(2997),o=r(9381),a=r(3097),c=r(7957),u=r.n(c),d=r(1839),h=window.onerror,l=!1,f="nr@seenError";class v extends d.W{constructor(e){super(e),this.skipNext=0;const t=this;this.ee.on("fn-start",(function(e,t,r){l&&(this.skipNext=this.skipNext?this.skipNext+1:1)})),this.ee.on("fn-err",(function(e,r,n){l&&!n[f]&&((0,o.X)(n,f,(function(){return!0})),this.thrown=!0,p(n,void 0,t.ee))})),this.ee.on("fn-end",(function(){l&&!this.thrown&&this.skipNext>0&&(this.skipNext-=1)})),this.ee.on("internal-error",(e=>{(0,n.pr)("ierr",[e,(0,s.now)(),!0],void 0,void 0,this.ee)}));const r=window.onerror;window.onerror=(...e)=>(r&&r(...e),this.onerrorHandler(...e),!1);try{window.addEventListener("unhandledrejection",(e=>{this.onerrorHandler(null,null,null,null,new Error(e.reason))}))}catch(e){}try{throw new Error}catch(e){"stack"in e&&((0,a.BV)(this.ee),(0,a.gy)(this.ee),"addEventListener"in window&&(0,a.em)(this.ee),(0,i.O)(this.agentIdentifier).xhrWrappable&&(0,a.Kf)(this.ee),l=!0)}}onerrorHandler(e,t,r,i,o){try{this.skipNext?this.skipNext-=1:p(o||new g(e,t,r),!0,this.ee)}catch(e){try{(0,n.pr)("ierr",[e,(0,s.now)(),!0],void 0,void 0,this.ee)}catch(e){}}return"function"==typeof h&&h.apply(this,u()(arguments))}}function g(e,t,r){this.message=e||"Uncaught error with no additional information",this.sourceURL=t,this.line=r}function p(e,t,r){var i=t?null:(0,s.now)();(0,n.pr)("err",[e,i],void 0,void 0,r)}},9098:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Aggregate:()=>l});var n=r(1558),i=r(1240),s=r(3406),o=r(2848),a=r(5988),c=r(6061),u=r(9729),d=r(2909),h=r(1839);class l extends h.W{constructor(e,t){super(e,t),this.eventsPerMinute=240,this.harvestTimeSeconds=(0,c.Mt)("ins.harvestTimeSeconds")||30,this.eventsPerHarvest=this.eventsPerMinute*this.harvestTimeSeconds/60,this.referrerUrl,this.currentEvents,this.events=[],this.att={},(0,u.L)(this.agentIdentifier,{jsAttributes:this.att}),document.referrer&&(this.referrerUrl=(0,a.f)(document.referrer)),(0,s.XN)("api-setCustomAttribute",((...e)=>this.setCustomAttribute(...e)),"api",this.ee),this.ee.on("feat-ins",(function(){(0,s.XN)("api-addPageAction",((...e)=>this.addPageAction(...e)),void 0,this.ee);var e=new o.o("ins",{onFinished:(...e)=>this.onHarvestFinished(...e)},this);e.harvest.on("ins",((...e)=>this.onHarvestStarted(...e))),e.startTimer(this.harvestTimeSeconds,0)}))}onHarvestStarted(e){const{userAttributes:t,atts:r}=(0,u.C)(this.agentIdentifier);var n={qs:{ua:t,at:r},body:{ins:this.events}};return e.retry&&(this.currentEvents=this.events),this.events=[],n}onHarvestFinished(e){e&&e.sent&&e.retry&&this.currentEvents&&(this.events=this.events.concat(this.currentEvents),this.currentEvents=null)}addPageAction(e,t,r){if(!(this.events.length>=this.eventsPerHarvest)){var s,o,c={};"undefined"!=typeof window&&window.document&&window.document.documentElement&&(s=window.document.documentElement.clientWidth,o=window.document.documentElement.clientHeight);var u={timestamp:e+(0,d.O)(this.agentIdentifier).offset,timeSinceLoad:e/1e3,browserWidth:s,browserHeight:o,referrerUrl:this.referrerUrl,currentUrl:(0,a.f)(""+location),pageUrl:(0,a.f)((0,d.O)(this.agentIdentifier).origin),eventType:"PageAction"};(0,n.D)(u,h),(0,n.D)(this.att,h),r&&"object"==typeof r&&(0,n.D)(r,h),c.actionName=t||"",this.events.push(c)}function h(e,t){c[e]=t&&"object"==typeof t?(0,i.P)(t):t}}setCustomAttribute(e,t,r){this.att[t]=r}}},2895:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Instrument:()=>s});var n=r(2909),i=r(1839);class s extends i.W{constructor(e){super(e),(0,n.O)(this.agentIdentifier).disabled||((0,n.O)(this.agentIdentifier).features.ins=!0)}}},3887:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Aggregate:()=>m});var n=r(232),i=r(1558),s=r(353),o=[];function a(e,t){return c(e.type,0,t,"ty"),c(e.redirectCount,0,t,"rc"),t}function c(e,t,r,n){var i;"number"==typeof e&&e>0&&(i=Math.round(e-t),r[n]=i),o.push(i)}var u=r(1240),d={},h=r(870),l=r(6061),f=r(9729),v=r(2909),g=r(2848),p=r(1839);class m extends p.W{constructor(e,t){super(e,t),this.getScheme=()=>!1===(0,l.Mt)(this.agentIdentifier,"ssl")?"http":"https";const r=(0,f.C)(this.agentIdentifier);if(r.beacon){r.queueTime&&this.aggregator.store("measures","qt",{value:r.queueTime}),r.applicationTime&&this.aggregator.store("measures","ap",{value:r.applicationTime}),(0,n.L)(this.aggregator,"be","starttime","firstbyte"),(0,n.L)(this.aggregator,"fe","firstbyte","onload"),(0,n.L)(this.aggregator,"dc","firstbyte","domContent");var o,p,m,b=this.aggregator.get("measures"),w=(0,i.D)(b,(function(e,t){return"&"+e+"="+t.params.value})).join(""),y=[new g.o("page-view-event",{},this).harvest.baseQueryString()];if(y.push(w),y.push((0,s.wu)("tt",r.ttGuid)),y.push((0,s.wu)("us",r.user)),y.push((0,s.wu)("ac",r.account)),y.push((0,s.wu)("pr",r.product)),y.push((0,s.wu)("af",(0,i.D)((0,v.O)(this.agentIdentifier).features,(function(e){return e})).join(","))),window.performance&&void 0!==window.performance.timing){var x={timing:(o=window.performance.timing,p={},m=o.navigationStart,p.of=m,c(m,m,p,"n"),c(o.unloadEventStart,m,p,"u"),c(o.redirectStart,m,p,"r"),c(o.unloadEventEnd,m,p,"ue"),c(o.redirectEnd,m,p,"re"),c(o.fetchStart,m,p,"f"),c(o.domainLookupStart,m,p,"dn"),c(o.domainLookupEnd,m,p,"dne"),c(o.connectStart,m,p,"c"),c(o.secureConnectionStart,m,p,"s"),c(o.connectEnd,m,p,"ce"),c(o.requestStart,m,p,"rq"),c(o.responseStart,m,p,"rp"),c(o.responseEnd,m,p,"rpe"),c(o.domLoading,m,p,"dl"),c(o.domInteractive,m,p,"di"),c(o.domContentLoadedEventStart,m,p,"ds"),c(o.domContentLoadedEventEnd,m,p,"de"),c(o.domComplete,m,p,"dc"),c(o.loadEventStart,m,p,"l"),c(o.loadEventEnd,m,p,"le"),p),navigation:a(window.performance.navigation,{})};y.push((0,s.wu)("perf",(0,u.P)(x)))}if(window.performance&&window.performance.getEntriesByType){var E=window.performance.getEntriesByType("paint");E&&E.length>0&&E.forEach((function(e){var t,r;!e.startTime||e.startTime<=0||("first-paint"===e.name?y.push((0,s.wu)("fp",String(Math.floor(e.startTime)))):"first-contentful-paint"===e.name&&y.push((0,s.wu)("fcp",String(Math.floor(e.startTime)))),t=e.name,r=Math.floor(e.startTime),d[t]=r)}))}y.push((0,s.wu)("xx",r.extra)),y.push((0,s.wu)("ua",r.userAttributes)),y.push((0,s.wu)("at",r.atts));var S=(0,u.P)(r.jsAttributes);y.push((0,s.wu)("ja","{}"===S?null:S));var T=(0,s.nI)(y,(0,v.O)(this.agentIdentifier).maxBytes);h.T.jsonp(this.getScheme()+"://"+r.beacon+"/1/"+r.licenseKey+T,"NREUM.setToken")}}}},8161:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Instrument:()=>d});var n=r(2995),i=r(2997),s=r(1839),o=r(4518);const a=window,c=a.document;function u(e){"complete"===c.readyState&&e()}class d extends s.W{constructor(e){var t;super(e),(0,n.pr)("mark",["firstbyte",(0,i.getLastTimestamp)()],null,"api",this.ee),t=()=>this.measureWindowLoaded(),c.addEventListener?a.addEventListener("load",t,(0,o.m)(!1)):a.attachEvent("onload",t),function(e){c.addEventListener?c.addEventListener("DOMContentLoaded",e,(0,o.m)(!1)):c.attachEvent("onreadystatechange",u)}((()=>this.measureDomContentLoaded()))}measureWindowLoaded(){var e=(0,i.now)();(0,n.pr)("mark",["onload",e+(0,i.getOffset)()],null,"api",this.ee),(0,n.pr)("timing",["load",e],void 0,void 0,this.ee)}measureDomContentLoaded(){(0,n.pr)("mark",["domContent",(0,i.now)()+(0,i.getOffset)()],null,"api",this.ee)}}},8617:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Aggregate:()=>l});var n=r(151),i=r(2997),s=r(1558),o=r(2848),a=r(3406),c=r(5988),u=r(2995),d=r(9729),h=r(1839);class l extends h.W{constructor(e,t){super(e,t),this.timings=[],this.timingsSent=[],this.lcpRecorded=!1,this.lcp=null,this.clsSupported=!1,this.cls=0,this.clsSession={value:0,firstEntryTime:0,lastEntryTime:0},this.pageHideRecorded=!1,this.harvestTimeSeconds=30;try{clsSupported=PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch(e){}this.options||(this.options={});var r=this.options.maxLCPTimeSeconds||60,n=this.options.initialHarvestSeconds||10;this.harvestTimeSeconds=this.options.harvestTimeSeconds||30,this.scheduler=new o.o("events",{onFinished:(...e)=>this.onHarvestFinished(...e),getPayload:(...e)=>this.prepareHarvest(...e),onUnload:()=>this.finalHarvest()},this),(0,a.rP)("timing",((...e)=>this.processTiming(...e)),void 0,this.ee),(0,a.rP)("lcp",((...e)=>this.updateLatestLcp(...e)),void 0,this.ee),(0,a.rP)("cls",((...e)=>this.updateClsScore(...e)),void 0,this.ee),(0,a.rP)("pageHide",((...e)=>this.updatePageHide(...e)),void 0,this.ee),setTimeout((()=>{this.recordLcp(),this.lcpRecorded=!0}),1e3*r),this.scheduler.startTimer(this.harvestTimeSeconds,n)}recordLcp(){if(!this.lcpRecorded&&null!==this.lcp){var e=this.lcp[0],t=this.lcp[1],r=this.lcp[2],n={size:e.size,eid:e.id};r&&(r["net-type"]&&(n["net-type"]=r["net-type"]),r["net-etype"]&&(n["net-etype"]=r["net-etype"]),r["net-rtt"]&&(n["net-rtt"]=r["net-rtt"]),r["net-dlink"]&&(n["net-dlink"]=r["net-dlink"])),e.url&&(n.elUrl=(0,c.f)(e.url)),e.element&&e.element.tagName&&(n.elTag=e.element.tagName),(t>0||this.clsSupported)&&(n.cls=t),this.addTiming("lcp",Math.floor(e.startTime),n,!1),this.lcpRecorded=!0}}updateLatestLcp(e,t){this.lcp&&this.lcp[0].size>=e.size||(this.lcp=[e,this.cls,t])}updateClsScore(e){(e.startTime-this.clsSession.lastEntryTime>1e3||e.startTime-this.clsSession.firstEntryTime>5e3)&&(this.clsSession={value:0,firstEntryTime:e.startTime,lastEntryTime:e.startTime}),this.clsSession.value+=e.value,this.clsSession.lastEntryTime=Math.max(this.clsSession.lastEntryTime,e.startTime),this.cls<this.clsSession.value&&(this.cls=this.clsSession.value)}updatePageHide(e){this.pageHideRecorded||(this.addTiming("pageHide",e,null,!0),this.pageHideRecorded=!0)}recordUnload(){this.updatePageHide((0,i.now)()),this.addTiming("unload",(0,i.now)(),null,!0)}addTiming(e,t,r,n){r=r||{},(this.cls>0||this.clsSupported)&&n&&(r.cls=this.cls),this.timings.push({name:e,value:t,attrs:r}),(0,u.pr)("pvtAdded",[e,t,r])}processTiming(e,t,r){"fi"===e&&setTimeout(this.recordLcp,0),this.addTiming(e,t,r,!0)}onHarvestFinished(e){if(e.retry&&this.timingsSent.length>0){for(var t=0;t<this.timingsSent.length;t++)this.timings.push(this.timingsSent[t]);this.timingsSent=[]}}finalHarvest(){this.recordLcp(),this.recordUnload();var e=this.prepareHarvest({retry:!1});this.scheduler.harvest.send("events",e,{unload:!0})}appendGlobalCustomAttributes(e){var t=e.attrs||{},r=(0,d.C)(this.agentIdentifier).jsAttributes||{},n=["size","eid","cls","type","fid","elTag","elUrl","net-type","net-etype","net-rtt","net-dlink"];(0,s.D)(r,(function(e,r){n.indexOf(e)<0&&(t[e]=r)}))}prepareHarvest(e){if(0!==this.timings.length){var t=this.getPayload(this.timings);if(e.retry)for(var r=0;r<this.timings.length;r++)this.timingsSent.push(this.timings[r]);return this.timings=[],{body:{e:t}}}}getPayload(e){for(var t=(0,n.FX)(),r="bel.6;",i=0;i<e.length;i++){var s=e[i];r+="e,",r+=t(s.name)+",",r+=(0,n.AG)(s.value,n.uR,!1)+",",this.appendGlobalCustomAttributes(s);var o=(0,n.n1)(s.attrs,t);o&&o.length>0&&(r+=(0,n.uR)(o.length)+";"+o.join(";")),i+1<e.length&&(r+=";")}return r}}},8396:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Instrument:()=>l});var n,i,s,o=r(2995),a=r(4518);void 0!==document.hidden?(n="hidden",i="visibilitychange",s="visibilityState"):void 0!==document.msHidden?(n="msHidden",i="msvisibilitychange"):void 0!==document.webkitHidden&&(n="webkitHidden",i="webkitvisibilitychange",s="webkitVisibilityState");var c=r(8240),u=r(2997),d=r(6061),h=r(1839);class l extends h.W{constructor(e){if(super(e),this.pageHiddenTime,this.performanceObserver,this.lcpPerformanceObserver,this.clsPerformanceObserver,this.fiRecorded=!1,this.isEnabled()){if("PerformanceObserver"in window&&"function"==typeof window.PerformanceObserver){this.performanceObserver=new PerformanceObserver(perfObserver);try{this.performanceObserver.observe({entryTypes:["paint"]})}catch(e){}this.lcpPerformanceObserver=new PerformanceObserver(lcpObserver);try{this.lcpPerformanceObserver.observe({entryTypes:["largest-contentful-paint"]})}catch(e){}this.clsPerformanceObserver=new PerformanceObserver(clsObserver);try{this.clsPerformanceObserver.observe({type:"layout-shift",buffered:!0})}catch(e){}}"addEventListener"in document&&(this.fiRecorded=!1,["click","keydown","mousedown","pointerdown","touchstart"].forEach((e=>{document.addEventListener(e,((...e)=>this.captureInteraction(...e)),(0,a.m)(!1))}))),t=(...e)=>this.captureVisibilityChange(...e),"addEventListener"in document&&i&&document.addEventListener(i,(function(){s&&document[s]?t(document[s]):document[n]?t("hidden"):t("visible")}),(0,a.m)(!1))}var t}isEnabled(){return!1!==(0,d.Mt)(this.agentIdentifier,"page_view_timing.enabled")}perfObserver(e,t){e.getEntries().forEach((e=>{"first-paint"===e.name?(0,o.pr)("timing",["fp",Math.floor(e.startTime)],void 0,void 0,this.ee):"first-contentful-paint"===e.name&&(0,o.pr)("timing",["fcp",Math.floor(e.startTime)],void 0,void 0,this.ee)}))}lcpObserver(e,t){var r=e.getEntries();if(r.length>0){var n=r[r.length-1];if(this.pageHiddenTime&&this.pageHiddenTime<n.startTime)return;var i=[n],s=this.addConnectionAttributes({});s&&i.push(s),(0,o.pr)("lcp",i,void 0,void 0,this.ee)}}clsObserver(e){e.getEntries().forEach((function(e){e.hadRecentInput||(0,o.pr)("cls",[e],void 0,void 0,this.ee)}))}addConnectionAttributes(e){var t=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(t)return t.type&&(e["net-type"]=t.type),t.effectiveType&&(e["net-etype"]=t.effectiveType),t.rtt&&(e["net-rtt"]=t.rtt),t.downlink&&(e["net-dlink"]=t.downlink),e}captureInteraction(e){if(e instanceof(0,c.gosNREUM)().o.EV&&!this.fiRecorded){var t=Math.round(e.timeStamp),r={type:e.type};this.addConnectionAttributes(r),t<=(0,u.now)()?r.fid=(0,u.now)()-t:t>(0,u.getOffset)()&&t<=Date.now()?(t-=(0,u.getOffset)(),r.fid=(0,u.now)()-t):t=(0,u.now)(),this.fiRecorded=!0,(0,o.pr)("timing",["fi",t,r],void 0,void 0,this.ee)}}captureVisibilityChange(e){"hidden"===e&&(this.pageHiddenTime=(0,u.now)(),(0,o.pr)("pageHide",[this.pageHiddenTime],void 0,void 0,this.ee))}}},842:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Aggregate:()=>w});var n=r(3406),i=r(6943),s=r(2848),o=r(1558),a=r(8354),c=r(1240),u=r(4017),d=r(6219),h=r(7957),l=r.n(h),f=r(6061),v=r(2909),g=r(9729),p=r(3706),m=r(2997),b=r(1839);class w extends b.W{constructor(e,t){if(super(e,t),this.ptid="",this.ignoredEvents={global:{mouseup:!0,mousedown:!0},window:{load:!0,pagehide:!0}},this.toAggregate={typing:[1e3,2e3],scrolling:[100,1e3],mousing:[1e3,2e3],touching:[1e3,2e3]},this.rename={typing:{keydown:!0,keyup:!0,keypress:!0},mousing:{mousemove:!0,mouseenter:!0,mouseleave:!0,mouseover:!0,mouseout:!0},scrolling:{scroll:!0},touching:{touchstart:!0,touchmove:!0,touchend:!0,touchcancel:!0,touchenter:!0,touchleave:!0}},this.trace={},this.nodeCount=0,this.sentTrace=null,this.harvestTimeSeconds=(0,f.Mt)(this.agentIdentifier,"stn.harvestTimeSeconds")||10,this.maxNodesPerHarvest=(0,f.Mt)(this.agentIdentifier,"stn.maxNodesPerHarvest")||1e3,this.laststart=0,(0,p.v)(),i.y0&&(0,v.O)(this.agentIdentifier).features.stn){this.storeTiming(window.performance.timing);var r=new s.o("resources",{onFinished:(...e)=>function(e){e.sent&&e.responseText&&!this.ptid&&(this.ptid=e.responseText,(0,v.O)(this.agentIdentifier).ptid=this.ptid,r.startTimer(this.harvestTimeSeconds)),e.sent&&e.retry&&this.sentTrace&&((0,o.D)(this.sentTrace,(function(e,t){this.mergeSTNs(e,t)})),this.sentTrace=null)}(...e),retryDelay:(...e)=>this.harvestTimeSeconds(...e)});r.runHarvest({needResponse:!0}),r.harvest.on("resources",((...e)=>function(e){return(0,m.now)()>9e5?(r.stopTimer(),void(this.trace={})):this.ptid&&this.nodeCount<=30?void 0:this.takeSTNs(e.retry)}(...e))),(0,n.XN)("bst",((...e)=>this.storeEvent(...e)),void 0,this.ee),(0,n.XN)("bstTimer",((...e)=>this.storeTimer(...e)),void 0,this.ee),(0,n.XN)("bstResource",((...e)=>this.storeResources(...e)),void 0,this.ee),(0,n.XN)("bstHist",((...e)=>this.storeHist(...e)),void 0,this.ee),(0,n.XN)("bstXhrAgg",((...e)=>this.storeXhrAgg(...e)),void 0,this.ee),(0,n.XN)("bstApi",((...e)=>this.storeSTN(...e)),void 0,this.ee),(0,n.XN)("errorAgg",((...e)=>this.storeErrorAgg(...e)),void 0,this.ee),(0,n.XN)("pvtAdded",((...e)=>this.processPVT(...e)),void 0,this.ee)}}processPVT(e,t,r){var n={};n[e]=t,this.storeTiming(n,!0),this.hasFID(e,r)&&this.storeEvent({type:"fid",target:"document"},"document",t,t+r.fid)}storeTiming(e,t){var r,n,i,s=Date.now();for(r in e)"number"==typeof(n=e[r])&&n>0&&n<s&&(i=t?e[r]:e[r]-(0,v.O)(this.agentIdentifier).offset,this.storeSTN({n:r,s:i,e:i,o:"document",t:"timing"}))}storeTimer(e,t,r,n){var i="timer";"requestAnimationFrame"===n&&(i=n);var s={n,s:t,e:r,o:"window",t:i};this.storeSTN(s)}storeEvent(e,t,r,n){if(this.shouldIgnoreEvent(e,t))return!1;var i={n:this.evtName(e.type),s:r,e:n,t:"event"};try{i.o=this.evtOrigin(e.target,t)}catch(e){i.o=this.evtOrigin(null,t)}this.storeSTN(i)}evtName(e){var t=e;return(0,o.D)(this.rename,(function(r,n){e in n&&(t=r)})),t}evtOrigin(e,t){var r="unknown";if(e&&e instanceof XMLHttpRequest){var n=this.ee.context(e).params;r=n.status+" "+n.method+": "+n.host+n.pathname}else e&&"string"==typeof e.tagName&&(r=e.tagName.toLowerCase(),e.id&&(r+="#"+e.id),e.className&&(r+="."+l()(e.classList).join(".")));return"unknown"===r&&("string"==typeof t?r=t:t===document?r="document":t===window?r="window":t instanceof FileReader&&(r="FileReader")),r}storeHist(e,t,r){var n={n:"history.pushState",s:r,e:r,o:e,t};this.storeSTN(n)}storeResources(e){e&&0!==e.length&&(e.forEach((function(e){var t=(0,u.e)(e.name),r={n:e.initiatorType,s:0|e.fetchStart,e:0|e.responseEnd,o:t.protocol+"://"+t.hostname+":"+t.port+t.pathname,t:e.entryType};r.s<=this.laststart||this.storeSTN(r)})),this.laststart=0|e[e.length-1].fetchStart)}storeErrorAgg(e,t,r,n){if("err"===e){var i={n:"error",s:n.time,e:n.time,o:r.message,t:r.stackHash};this.storeSTN(i)}}storeXhrAgg(e,t,r,n){if("xhr"===e){var i={n:"Ajax",s:n.time,e:n.time+n.duration,o:r.status+" "+r.method+": "+r.host+r.pathname,t:"ajax"};this.storeSTN(i)}}storeSTN(e){if(!(this.nodeCount>=this.maxNodesPerHarvest)){var t=this.trace[e.n];t||(t=this.trace[e.n]=[]),t.push(e),this.nodeCount++}}mergeSTNs(e,t){if(!(this.nodeCount>=this.maxNodesPerHarvest)){var r=this.trace[e];r||(r=this.trace[e]=[]),this.trace[e]=t.concat(r),this.nodeCount+=t.length}}takeSTNs(e){(0,d.W)()||this.storeResources(window.performance.getEntriesByType("resource"));var t=(0,a.u)((0,o.D)(this.trace,(function(e,t){return e in this.toAggregate?(0,a.u)((0,o.D)((0,a.u)(t.sort(this.byStart),this.smearEvtsByOrigin(e),{}),this.val),this.flatten,[]):t})),this.flatten,[]);if(0===t.length)return{};e&&(this.sentTrace=this.trace),this.trace={},this.nodeCount=0;var r={qs:{st:""+(0,v.O)(this.agentIdentifier).offset},body:{res:t}};if(!this.ptid){const{userAttributes:e,atts:t,jsAttributes:i}=(0,g.C)(this.agentIdentifier);r.qs.ua=e,r.qs.at=t;var n=(0,c.P)(i);r.qs.ja="{}"===n?null:n}return r}byStart(e,t){return e.s-t.s}smearEvtsByOrigin(e){var t=this.toAggregate[e][0],r=this.toAggregate[e][1],n={};return function(i,s){var o=i[s.o];o||(o=i[s.o]=[]);var a=n[s.o];return"scrolling"!==e||this.trivial(s)?a&&s.s-a.s<r&&a.e>s.s-t?a.e=s.e:(n[s.o]=s,o.push(s)):(n[s.o]=null,s.n="scroll",o.push(s)),i}}val(e,t){return t}flatten(e,t){return e.concat(t)}hasFID(e,t){return"fi"===e&&!!t&&"number"==typeof t.fid}trivial(e){return!!(e&&"number"==typeof e.e&&"number"==typeof e.s&&e.e-e.s<4)}shouldIgnoreEvent(e,t){var r=this.evtOrigin(e.target,t);return e.type in this.ignoredEvents.global||!(!this.ignoredEvents[r]||!(e.type in this.ignoredEvents[r]))}}},5873:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Instrument:()=>m});var n=r(2995),i=r(3097),s=r(6219),o=r(4518),a=r(5307),c=r(2909),u=r(2997),d=r(1839),h="resourcetimingbufferfull",l="bstResource",f="fn-start",v="fn-end",g="bstTimer",p=a.Y.EV;class m extends d.W{constructor(e){super(e),(0,c.O)(this.agentIdentifier).features.stn=!0,this.timerEE=(0,i.BV)(this.ee),this.rafEE=(0,i.gy)(this.ee),(0,i.QU)(this.ee),(0,i.em)(this.ee),window.performance&&window.performance.timing&&window.performance.getEntriesByType&&(this.ee.on(f,(function(e,t){e[0]instanceof p&&(this.bstStart=(0,u.now)())})),this.ee.on(v,(function(e,t){var r=e[0];r instanceof p&&(0,n.pr)("bst",[r,t,this.bstStart,(0,u.now)()])})),this.timerEE.on(f,(function(e,t,r){this.bstStart=(0,u.now)(),this.bstType=r})),this.timerEE.on(v,(function(e,t){(0,n.pr)(g,[t,this.bstStart,(0,u.now)(),this.bstType])})),this.rafEE.on(f,(function(){this.bstStart=(0,u.now)()})),this.rafEE.on(v,(function(e,t){(0,n.pr)(g,[t,this.bstStart,(0,u.now)(),"requestAnimationFrame"])})),this.ee.on("pushState-start",(function(e){this.time=(0,u.now)(),this.startPath=location.pathname+location.hash})),this.ee.on("pushState-end",(function(e){(0,n.pr)("bstHist",[location.pathname+location.hash,this.startPath,this.time])})),(0,s.W)()?((0,n.pr)(l,[window.performance.getEntriesByType("resource")]),this.observeResourceTimings()):"addEventListener"in window.performance&&(window.performance.clearResourceTimings?window.performance.addEventListener(h,this.onResourceTimingBufferFull,(0,o.m)(!1)):window.performance.addEventListener("webkitresourcetimingbufferfull",this.onResourceTimingBufferFull,(0,o.m)(!1))),document.addEventListener("scroll",this.noOp,(0,o.m)(!1)),document.addEventListener("keypress",this.noOp,(0,o.m)(!1)),document.addEventListener("click",this.noOp,(0,o.m)(!1)))}observeResourceTimings(){var e=new PerformanceObserver((function(e,t){var r=e.getEntries();(0,n.pr)(l,[r])}));try{e.observe({entryTypes:["resource"]})}catch(e){}}onResourceTimingBufferFull(e){if((0,n.pr)(l,[window.performance.getEntriesByType("resource")]),window.performance.clearResourceTimings)try{window.performance.removeEventListener(h,this.onResourceTimingBufferFull,!1)}catch(e){}else try{window.performance.removeEventListener("webkitresourcetimingbufferfull",this.onResourceTimingBufferFull,!1)}catch(e){}}noOp(e){}}},7957:e=>{e.exports=function(e,t,r){t||(t=0),void 0===r&&(r=e?e.length:0);for(var n=-1,i=r-t||0,s=Array(i<0?0:i);++n<i;)s[n]=e[t+n];return s}},3648:(e,t,r)=>{var n={"./ajax/aggregate":74,"./js-errors/aggregate":7326,"./page-action/aggregate":9098,"./page-view-event/aggregate":3887,"./page-view-timing/aggregate":8617,"./session-trace/aggregate":842};function i(e){var t=s(e);return r(t)}function s(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=s,e.exports=i,i.id=3648},8346:(e,t,r)=>{var n={"./ajax/instrument":9770,"./js-errors/instrument":3825,"./page-action/instrument":2895,"./page-view-event/instrument":8161,"./page-view-timing/instrument":8396,"./session-trace/instrument":5873};function i(e){var t=s(e);return r(t)}function s(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=s,e.exports=i,i.id=8346},3607:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,s){function o(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserAgent=void 0;var s=r(9230),o=r(8149),a=r(3263),c=r(418),u=r(3831),d=r(8240),h=r(8053),l=r(4460),f=function(){function e(){var e=this;this._initialized=!1,this._id=(0,h.generateRandomHexString)(16),this._api=new o.Api(this),this._aggregator=new l.Aggregator({agentIdentifier:this._id}),this.features=new c.Features,this.start=function(t){return n(e,void 0,void 0,(function(){var e,r,n,o,c;return i(this,(function(i){switch(i.label){case 0:return this._initialized?[2,!1]:(this._initialized=!0,e=(0,a.buildConfigs)(t),r=e.info,n=e.config,o=e.loader_config,r&&(0,s.setInfo)(this._id,r),n&&(0,s.setConfiguration)(this._id,n),o&&(0,s.setLoaderConfig)(this._id,n),(0,s.setRuntime)(this._id,{maxBytes:3e4}),[4,(0,u.initializeFeatures)(this._id,this._api,this._aggregator,this.features)]);case 1:return c=i.sent(),(0,d.gosNREUMInitializedAgents)(this._id,c,"features"),[2,!0]}}))}))},this.noticeError=function(t,r){return e._api.noticeError(t,r)}}return Object.defineProperty(e.prototype,"config",{get:function(){return{info:(0,s.getInfo)(this._id),config:(0,s.getConfiguration)(this._id),loader_config:(0,s.getLoaderConfig)(this._id)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"initialized",{get:function(){return this._initialized},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e}();t.BrowserAgent=f,t.default=f},9699:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NrFeatures=t.NrFeature=void 0;var r=function(){function e(e){this.name=e,this._enabled=!0,this._auto=!0}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=Boolean(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"auto",{get:function(){return this._auto},set:function(e){this._auto=e},enumerable:!1,configurable:!0}),e}();t.NrFeature=r,(t.NrFeatures||(t.NrFeatures={})).JSERRORS="js-errors"},8149:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Api=void 0;var n=r(9699),i=r(2997),s=function(){function e(e){this.importedMethods={storeError:null},this._initialized=!1,this._initialized=!0,this._parent=e}return e.prototype.noticeError=function(e,t){if(this._initialized&&this.importedMethods.storeError){if("string"!=typeof e&&!(e instanceof Error))return"noticeError",s=e,"Error | String",void console.warn('"'.concat("noticeError",'" was called with an invalid argument: ').concat(s,". This method only accepts ").concat("Error | String"," types for that argument."));e="string"==typeof e?new Error(e):e;var r=(0,i.now)();return this.importedMethods.storeError(e,r,!1,t)}var s,o,a;return this._parent.initialized||this.importedMethods.storeError?this._parent.initialized&&!this.importedMethods.storeError?function(e,t,r){console.warn("The ".concat(t," Feature of agent ").concat(e,' Has Been Disabled. Method "').concat("noticeError",'" will not do anything!'))}(this._parent.id,n.NrFeatures.JSERRORS):void 0:(o=this._parent.id,a=n.NrFeatures.JSERRORS,void console.warn("Agent ".concat(o," is calling a ").concat(a," Feature API, but the Browser Agent has not been started... Please start the agent using .start({...opts})")))},e}();t.Api=s},3263:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildConfigs=void 0,t.buildConfigs=function(e){var t={beacon:"",errorBeacon:void 0,licenseKey:"",applicationID:"",sa:void 0,queueTime:void 0,applicationTime:void 0,ttGuid:void 0,user:void 0,account:void 0,product:void 0,extra:void 0,userAttributes:void 0,atts:void 0,transactionName:void 0,tNamePlain:void 0},r={privacy:{cookies_enabled:void 0},ajax:{deny_list:void 0},distributed_tracing:{enabled:void 0,exclude_newrelic_header:void 0,cors_use_newrelic_header:void 0,cors_use_tracecontext_headers:void 0,allowed_origins:void 0},page_view_timing:{enabled:void 0},ssl:void 0,obfuscate:void 0},n={accountID:void 0,trustKey:void 0,agentID:void 0,licenseKey:"",applicationID:"",xpid:void 0};return Object.keys(e).forEach((function(i){"beacon"===i&&(t.beacon=e[i],t.errorBeacon=e[i]),Object.keys(t).includes(i)&&(t[i]=e[i]),Object.keys(r).includes(i)&&(r[i]=e[i]),Object.keys(n).includes(i)&&(n[i]=e[i])})),function(e){return!(!e.applicationID||!e.licenseKey||!e.beacon)}(t)&&function(e){return!(!e.applicationID||!e.licenseKey)}(n)||console.warn("Missing required config data"),{info:t,config:r,loader_config:n}}},418:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Features=void 0;var n=r(9699),i=function(){function e(){this.errors=new n.NrFeature(n.NrFeatures.JSERRORS)}return e.prototype.getEnabledFeatures=function(){return Object.values(this).filter((function(e){return e.enabled}))},e}();t.Features=i},3831:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,s){function o(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.initializeFeatures=void 0;var c=r(9699);t.initializeFeatures=function(e,t,n,i){var u=this;return Promise.all(i.getEnabledFeatures().map((function(i){return o(u,void 0,void 0,(function(){var o,u;return a(this,(function(a){switch(a.label){case 0:return i.auto?[4,Promise.resolve().then((function(){return s(r(8346)("./".concat(i.name,"/instrument")))}))]:[3,2];case 1:new(0,a.sent().Instrument)(e),a.label=2;case 2:return[4,Promise.resolve().then((function(){return s(r(3648)("./".concat(i.name,"/aggregate")))}))];case 3:return o=a.sent().Aggregate,u=new o(e,n),i.name===c.NrFeatures.JSERRORS&&(t.importedMethods.storeError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return u.storeError.apply(u,e)}),[2,i.name]}}))}))})))}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var s=t[n]={exports:{}};return e[n].call(s.exports,s,s.exports,r),s.exports}return r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(3607)})()));
2
2
  //# sourceMappingURL=index.js.map
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="UTF-8"/>
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
6
- <title>@newrelic/browser-agent [26 May 2022 at 23:33]</title>
6
+ <title>@newrelic/browser-agent [26 May 2022 at 23:36]</title>
7
7
  <link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABrVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+O1foceMD///+J0/qK1Pr7/v8Xdr/9///W8P4UdL7L7P0Scr2r4Pyj3vwad8D5/f/2/f+55f3E6f34+/2H0/ojfMKpzOd0rNgQcb3F3O/j9f7c8v6g3Pz0/P/w+v/q+P7n9v6T1/uQ1vuE0vqLut/y+v+Z2fvt+f+15Pzv9fuc2/vR7v2V2Pvd6/bg9P7I6/285/2y4/yp3/zp8vk8i8kqgMT7/P31+fyv4vxGkcz6/P6/6P3j7vfS5PNnpNUxhcbO7f7F6v3O4vHK3/DA2u631Ouy0eqXweKJud5wqthfoNMMbLvY8f73+v2dxeR8sNtTmdDx9/zX6PSjyeaCtd1YnNGX2PuQveCGt95Nls42h8dLlM3F4vBtAAAAM3RSTlMAAyOx0/sKBvik8opWGBMOAe3l1snDm2E9LSb06eHcu5JpHbarfHZCN9CBb08zzkdNS0kYaptYAAAFV0lEQVRYw92X51/aYBDHHS2O2qqttVbrqNq9m+TJIAYIShBkWwqIiCgoWvfeq7Z2/s29hyQNyUcR7LveGwVyXy6XH8/9rqxglLfUPLxVduUor3h0rfp2TYvpivk37929TkG037hffoX0+peVtZQc1589rigVUdXS/ABSAyEmGIO/1XfvldSK8vs3OqB6u3m0nxmIrvgB0dj7rr7Y9IbuF68hnfFaiHA/sxqm0wciIG43P60qKv9WXWc1RXGh/mFESFABTSBi0sNAKzqet17eCtOb3kZIDwxEEU0oAIJGYxNBDhBND29e0rtXXbcpuPmED9IhEAAQ/AXEaF8EPmnrrKsv0LvWR3fg5sWDNAFZOgAgaKvZDogHNU9MFwnnYROkc56RD5CjAbQX9Ow4g7upCsvYu55aSI/Nj0H1akgKQEUM94dwK65hYRmFU9MIcH/fqJYOZYcnuJSU/waKDgTOEVaVKhwrTRP5XzgSpAITYzom7UvkhFX5VutmxeNnWDjjswTKTyfgluNDGbUpWissXhF3s7mlSml+czWkg3D0l1nNjGNjz3myOQOa1KM/jOS6ebdbAVTCi4gljHSFrviza7tOgRWcS0MOUX9zdNgag5w7rRqA44Lzw0hr1WqES36dFliSJFlh2rXIae3FFcDDgKdxrUIDePr8jGcSClV1u7A9xeN0ModY/pHMxmR1EzRh8TJiwqsHmKW0l4FCEZI+jHio+JdPPE9qwQtTRxku2D8sIeRL2LnxWSllANCQGOIiqVHAz2ye2JR0DcH+HoxDkaADLjgxjKQ+AwCX/g0+DNgdG0ukYCONAe+dbc2IAc6fwt1ARoDSezNHxV2Cmzwv3O6lDMV55edBGwGK9n1+x2F8EDfAGCxug8MhpsMEcTEAWf3rx2vZhe/LAmtIn/6apE6PN0ULKgywD9mmdxbmFl3OvD5AS5fW5zLbv/YHmcsBTjf/afDz3MaZTVCfAP9z6/Bw6ycv8EUBWJIn9zYcoAWWlW9+OzO3vkTy8H+RANLmdrpOuYWdZYEXpo+TlCJrW5EARb7fF+bWdqf3hhyZI1nWJQHgznErZhbjoEsWqi8dQNoE294aldzFurwSABL2XXMf9+H1VQGke9exw5P/AnA5Pv5ngMul7LOvO922iwACu8WkCwLCafvM4CeWPxfA8lNHcWZSoi8EwMAIciKX2Z4SWCMAa3snCZ/G4EA8D6CMLNFsGQhkkz/gQNEBbPCbWsxGUpYVu3z8IyNAknwJkfPMEhLyrdi5RTyUVACkw4GSFRNWJNEW+fgPGwHD8/JxnRuLabN4CGNRkAE23na2+VmEAUmrYymSGjMAYqH84YUIyzgzs3XC7gNgH36Vcc4zKY9o9fgPBXUAiHHwVboBHGLiX6Zcjp1f2wu4tvzZKo0ecPnDtQYDQvJXaBeNzce45Fp28ZQLrEZVuFqgBwOalArKXnW1UzlnSusQKJqKYNuz4tOnI6sZG4zanpemv+7ySU2jbA9h6uhcgpfy6G2PahirDZ6zvq6zDduMVFTKvzw8wgyEdelwY9in3XkEPs3osJuwRQ4qTkfzifndg9Gfc4pdsu82+tTnHZTBa2EAMrqr2t43pguc8tNm7JQVQ2S0ukj2d22dhXYP0/veWtwKrCkNoNimAN5+Xr/oLrxswKbVJjteWrX7eR63o4j9q0GxnaBdWgGA5VStpanIjQmEhV0/nVt5VOFUvix6awJhPcAaTEShgrG+iGyvb5a0Ndb1YGHFPEwoqAinoaykaID1o1pdPNu7XsnCKQ3R+hwWIIhGvORcJUBYXe3Xa3vq/mF/N9V13ugufMkfXn+KHsRD0B8AAAAASUVORK5CYII=" type="image/x-icon" />
8
8
 
9
9
  <script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newrelic/browser-agent",
3
- "version": "0.0.9-beta.72",
3
+ "version": "0.0.9-beta.75",
4
4
  "author": "New Relic Browser agent team <browser-agent@newrelic.com>",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "description": "",
35
35
  "dependencies": {
36
- "@newrelic/browser-agent-core": "^0.0.9-beta.72"
36
+ "@newrelic/browser-agent-core": "^0.0.9-beta.75"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@babel/core": "^7.18.0",
@@ -81,5 +81,5 @@
81
81
  "micro front ends",
82
82
  "browser agent"
83
83
  ],
84
- "gitHead": "6af95c1ee840b6962746d4e21cfe825d9d2e9bad"
84
+ "gitHead": "0feb14fd8605530b865c7a4aa4cba643fe9680f1"
85
85
  }