@dash0/sdk-web 0.23.0 → 0.24.0

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(){"use strict";function e(){}function n(e){return e}var t={debug:0,info:1,warn:2,error:3},r=t.warn;var o=u("info"),i=u("warn"),a=u("error"),l=u("debug");function u(n){if("undefined"!=typeof console&&console[n]&&"function"==typeof console[n].apply){var o=t[n];return function(){o>=r&&console[n].apply(console,arguments)}}return e}var s=Object.prototype.hasOwnProperty;function c(e,n){return s.call(e,n)}var v="undefined"!=typeof window?window:void 0,d=null==v?void 0:v.document,f=null==v?void 0:v.navigator,p="undefined"!=typeof location?location:void 0,h=(null==v?void 0:v.performance)||(null==v?void 0:v.webkitPerformance)||(null==v?void 0:v.msPerformance)||(null==v?void 0:v.mozPerformance);null==v||v.encodeURIComponent;var E=null==v?void 0:v.fetch,m=function(){try{var e;return null!==(e=null==v?void 0:v.localStorage)&&void 0!==e?e:null}catch(e){return null}}(),_=function(){try{var e;return null!==(e=null==v?void 0:v.sessionStorage)&&void 0!==e?e:null}catch(e){return null}}(),y=Array(32);function T(e){for(var n=0;n<2*e;n++)y[n]=Math.floor(16*Math.random())+48,y[n]>=58&&(y[n]+=39);return String.fromCharCode.apply(null,y.slice(0,2*e))}function g(e,n,t){e.addEventListener?e.addEventListener(n,t,!1):e.attachEvent&&e.attachEvent("on"+n,t)}function R(e,n,t){e.removeEventListener?e.removeEventListener(n,t,!1):e.detachEvent&&e.detachEvent("on"+n,t)}var b=null!=m&&"function"==typeof m.getItem&&"function"==typeof m.setItem;function I(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function C(e,n,t,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void t(e)}l.done?n(u):Promise.resolve(u).then(r,o)}function L(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){C(i,r,o,a,l,"next",e)}function l(e){C(i,r,o,a,l,"throw",e)}a(void 0)}))}}function N(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function S(e,n,t){return n&&function(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,M(r.key),r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function O(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=x(e))||n){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(l)throw i}}}}function A(e,n,t){return(n=M(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function V(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?V(Object(t),!0).forEach((function(n){A(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):V(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function w(){w=function(){return n};var e,n={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,n,t){e[n]=t.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{s({},"")}catch(e){s=function(e,n,t){return e[n]=t}}function c(e,n,t,r){var i=n&&n.prototype instanceof m?n:m,a=Object.create(i.prototype),l=new A(r||[]);return o(a,"_invoke",{value:L(e,t,l)}),a}function v(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}n.wrap=c;var d="suspendedStart",f="suspendedYield",p="executing",h="completed",E={};function m(){}function _(){}function y(){}var T={};s(T,a,(function(){return this}));var g=Object.getPrototypeOf,R=g&&g(g(V([])));R&&R!==t&&r.call(R,a)&&(T=R);var b=y.prototype=m.prototype=Object.create(T);function I(e){["next","throw","return"].forEach((function(n){s(e,n,(function(e){return this._invoke(n,e)}))}))}function C(e,n){function t(o,i,a,l){var u=v(e[o],e,i);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==typeof c&&r.call(c,"__await")?n.resolve(c.__await).then((function(e){t("next",e,a,l)}),(function(e){t("throw",e,a,l)})):n.resolve(c).then((function(e){s.value=e,a(s)}),(function(e){return t("throw",e,a,l)}))}l(u.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new n((function(n,o){t(e,r,n,o)}))}return i=i?i.then(o,o):o()}})}function L(n,t,r){var o=d;return function(i,a){if(o===p)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var u=N(l,r);if(u){if(u===E)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var s=v(n,t,r);if("normal"===s.type){if(o=r.done?h:f,s.arg===E)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=h,r.method="throw",r.arg=s.arg)}}}function N(n,t){var r=t.method,o=n.iterator[r];if(o===e)return t.delegate=null,"throw"===r&&n.iterator.return&&(t.method="return",t.arg=e,N(n,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),E;var i=v(o,n.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,E;var a=i.arg;return a?a.done?(t[n.resultName]=a.value,t.next=n.nextLoc,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,E):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,E)}function S(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function O(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function V(n){if(n||""===n){var t=n[a];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,i=function t(){for(;++o<n.length;)if(r.call(n,o))return t.value=n[o],t.done=!1,t;return t.value=e,t.done=!0,t};return i.next=i}}throw new TypeError(typeof n+" is not iterable")}return _.prototype=y,o(b,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:_,configurable:!0}),_.displayName=s(y,u,"GeneratorFunction"),n.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===_||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,u,"GeneratorFunction")),e.prototype=Object.create(b),e},n.awrap=function(e){return{__await:e}},I(C.prototype),s(C.prototype,l,(function(){return this})),n.AsyncIterator=C,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new C(c(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},I(b),s(b,u,"Generator"),s(b,a,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var n=Object(e),t=[];for(var r in n)t.push(r);return t.reverse(),function e(){for(;t.length;){var r=t.pop();if(r in n)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=V,A.prototype={constructor:A,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!n)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var t=this;function o(r,o){return l.type="throw",l.arg=n,t.next=r,o&&(t.method="next",t.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,n){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,E):this.complete(a)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),E},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),O(t),E}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var o=r.arg;O(t)}return o}}throw Error("illegal catch attempt")},delegateYield:function(n,t,r){return this.delegate={iterator:V(n),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=e),E}},n}function U(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(t=t.call(e)).next,0===n);else for(;!(u=(r=i.call(t)).done)&&(l.push(r.value),l.length!==n);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,n)||x(e,n)||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){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e){var n=function(e,n){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==typeof n?n:n+""}function G(e){return G="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},G(e)}function x(e,n){if(e){if("string"==typeof e)return I(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?I(e,n):void 0}}function B(){return(new Date).getTime()}function k(){var e=F(),n=new Date;if(e){var t=h.now()+e,r=n.getTime();if(Math.abs(t-r)<6e4)return String(1e6*t)}return H(n)}function H(e){return"object"===G(e)?H(e.getTime()):String(e)+"000000"}function F(){var e,n=null==h?void 0:h.timeOrigin;"number"!=typeof n&&(n=null==h||null===(e=h.timing)||void 0===e?void 0:e.fetchStart);return n}var j={setTimeout:null==v?void 0:v.setTimeout,clearTimeout:null==v?void 0:v.clearTimeout,setInterval:null==v?void 0:v.setInterval,clearInterval:null==v?void 0:v.clearInterval},W=null!=v&&null!=v.Zone&&null!=v.Zone.root&&"function"==typeof v.Zone.root.run;function X(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return z.apply("setTimeout",arguments)}function q(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return z.apply("clearTimeout",arguments)}function Y(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return z.apply("setInterval",arguments)}function z(){var e,n=this;if(W)try{var t=Array.prototype.slice.apply(arguments);return v.Zone.root.run(j[n],v,t)}catch(e){i("Failed to execute %s inside of zone (via Zone.js). Falling back to execution inside currently active zone.",n,e)}return null===(e=j[n])||void 0===e?void 0:e.apply(v,arguments)}W&&l("Discovered Zone.js globals. Will attempt to register all timers inside the root Zone.");h&&h.getEntriesByType;var K=h&&"function"==typeof v.PerformanceObserver&&"function"==typeof h.now,Q=Object.freeze({CONNECT_END:"connectEnd",CONNECT_START:"connectStart",DECODED_BODY_SIZE:"decodedBodySize",DOM_COMPLETE:"domComplete",DOM_CONTENT_LOADED_EVENT_END:"domContentLoadedEventEnd",DOM_CONTENT_LOADED_EVENT_START:"domContentLoadedEventStart",DOM_INTERACTIVE:"domInteractive",DOMAIN_LOOKUP_END:"domainLookupEnd",DOMAIN_LOOKUP_START:"domainLookupStart",ENCODED_BODY_SIZE:"encodedBodySize",FETCH_START:"fetchStart",LOAD_EVENT_END:"loadEventEnd",LOAD_EVENT_START:"loadEventStart",NAVIGATION_START:"navigationStart",REDIRECT_END:"redirectEnd",REDIRECT_START:"redirectStart",REQUEST_START:"requestStart",RESPONSE_END:"responseEnd",RESPONSE_START:"responseStart",SECURE_CONNECTION_START:"secureConnectionStart",START_TIME:"startTime",UNLOAD_EVENT_END:"unloadEventEnd",UNLOAD_EVENT_START:"unloadEventStart"}),Z=new WeakSet;function $(n){if(!K)return function(n){var t=0;return{start:function(){t=B()},end:function(){return n({duration:B()-t})},cancel:e}}(n.onEnd);var t,r,o,i,a,l=[];return{start:function(){t=h.now();try{var e,n=null==v?void 0:v.PerformanceObserver;if(n)null===(e=o=new n(s))||void 0===e||e.observe({type:"resource"})}catch(e){}a=X(f,6e5)},end:function(e){if(r)return;if(r=null!=e?e:h.now(),p(),!J())return u();X((function(){return u()}),Math.min(300,n.maxWaitForResourceMillis)),g(d,"visibilitychange",c),i=X(u,n.maxWaitForResourceMillis)},cancel:f};function u(){f();var e=function(){if(!l.length)return;var e,o,i=l.filter((function(e){return e.responseEnd<=r+n.maxToleranceForResourceTimingsMillis&&!Z.has(e)}));if(!i.length)return;1===i.length&&(e=i[0]);if(!e){var a,u=O(i);try{for(u.s();!(a=u.n()).done;){var s=a.value,c=Math.abs(r-t-s.duration)+Math.abs(s.responseEnd-r);(void 0===o||c<o)&&(o=c,e=s)}}catch(e){u.e(e)}finally{u.f()}}if(!e)return;return Z.add(e),e}();null!=e&&e.duration&&e.duration<864e5?n.onEnd({resource:e,duration:e.duration}):n.onEnd({resource:e,duration:r-t})}function s(e){e.getEntriesByType("resource").filter((function(e){var r=e;return r.startTime>=t&&n.resourceMatcher(r)})).forEach((function(e){l.length>=100&&l.shift(),l.push(e)}))}function c(){J()||u()}function f(){!function(){if(o){try{var e;null===(e=o)||void 0===e||e.disconnect()}catch(e){}o=void 0}}(),i&&(clearTimeout(i),i=void 0),p(),function(){if(!d)return;R(d,"visibilitychange",c)}()}function p(){a&&(clearTimeout(a),a=void 0)}}function J(){return"visible"===(null==d?void 0:d.visibilityState)||"prerender"===(null==d?void 0:d.visibilityState)}var ee="undefined";function ne(e){return Math.round(100*e)/100}function te(e){var n;return"string"!=typeof e?e:new URL(e,null!==(n=null==d?void 0:d.baseURI)&&void 0!==n?n:null==p?void 0:p.href)}function re(e){try{return te(e).origin===("undefined"!=typeof location?location.origin:void 0)}catch(e){return!1}}var oe=/['"<>{};\x00-\x1F\x7F]/;var ie=Symbol.for("INSTRUMENTED_BY_DASH0");function ae(e){e[ie]=!0}function le(e,n,t){var r=e[n];if(r)if(!0!==r[ie])try{var o=t(r);ae(r),o&&ae(o),e[n]=o}catch(e){i("failed to instrument ".concat(String(n),", the page may have locked the property"),e)}else l("".concat(String(n)," has already been instrumented, skipping"));else l("".concat(String(n)," is not defined, unable to instrument"))}for(var ue=new Uint32Array(256),se=0;se<256;se++){for(var ce=se,ve=0;ve<8;ve++)ce=1&ce?3988292384^ce>>>1:ce>>>1;ue[se]=ce>>>0}function de(e){for(var n=new Uint8Array(e.length/2),t=0;t<e.length;t+=2)n[t/2]=parseInt(e.substring(t,t+2),16);for(var r=4294967295,o=0;o<n.length;o++){var i=n[o];r=r>>>8^ue[255&(r^i)]}return(4294967295^r)>>>0}var fe={endpoints:[],resource:{attributes:[]},scope:{name:"dash0-web-sdk",version:"0.23.0",attributes:[]},signalAttributes:[],ignoreUrls:[],ignoreErrorMessages:[],wrapEventHandlers:!0,wrapTimers:!0,propagateTraceHeadersCorsURLs:[],maxWaitForResourceTimingsMillis:1e4,maxToleranceForResourceTimingsMillis:50,headersToCapture:[],urlAttributeScrubber:n,pageViewInstrumentation:{trackVirtualPageViews:!0,includeParts:[]},enableTransportCompression:!1,isSessionSampled:!0};function pe(e,n){for(var t=0,r=e.length;t<r;t++)if(e[t].test(n))return!0;return!1}var he="data:";function Ee(e){return!e||(!(e=String(e))||(null==e.substring||e.substring(0,5).toLowerCase()===he||(!!function(e){for(var n=e.toLowerCase(),t=0,r=fe.endpoints.length;t<r;t++){var o=fe.endpoints[t];if(n.startsWith(o.url))return!0}return!1}(e)||pe(fe.ignoreUrls,e))))}var me=!1;function _e(e){var n,t,r=[];return t=o,me&&t(),d&&v&&(g(d,"visibilitychange",(function(){"visible"!==d.visibilityState&&t()})),g(v,"pagehide",(function(){me=!0,t()})),g(v,"beforeunload",(function(){me=!0,t()}))),{send:function(t){"visible"===(null==d?void 0:d.visibilityState)?(r.push(t),r.length>=15?o():null==n&&(n=X(o,1e3))):e([t])}};function o(){null!=n&&(clearTimeout(n),n=null),r.length>0&&(e(r.slice()),r.length=0)}}var ye=0,Te=0;function ge(e,n){return Re.apply(this,arguments)}function Re(){return Re=L(w().mark((function n(t,r){var o,a,u,s;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(l("Transmitting telemetry to endpoints",r),o=JSON.stringify(r),a=o,u=new Blob([o]).size,s=!1,"undefined"==typeof CompressionStream||!fe.enableTransportCompression){n.next=11;break}return n.next=8,be(o);case 8:a=n.sent,u=a.byteLength,s=!0;case 11:return n.next=13,Promise.all(fe.endpoints.map(function(){var n=L(w().mark((function n(r){var o,l,c;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,(o=new URL(r.url)).pathname=o.pathname+(o.pathname.endsWith("/")?t.substring(1):t),l={"Content-Type":"application/json",Authorization:"Bearer ".concat(r.authToken)},r.dataset&&(l["Dash0-Dataset"]=r.dataset),s&&(l["Content-Encoding"]="gzip"),E){n.next=9;break}return i("Unable to send telemetry, fetch is not defined"),n.abrupt("return");case 9:return ye+=u,Te++,n.next=13,E(o,{method:"POST",headers:l,body:a,keepalive:ye<=6e4&&Te<=15});case 13:(c=n.sent).text().catch(e),c.ok||i("Failed to send telemetry to ".concat(o,": ").concat(c.status," ").concat(c.statusText)),n.next=21;break;case 18:n.prev=18,n.t0=n.catch(0),i("Error sending telemetry to ".concat(r.url).concat(t,":"),n.t0);case 21:return n.prev=21,ye-=u,Te--,n.finish(21);case 25:case"end":return n.stop()}}),n,null,[[0,18,21,25]])})));return function(e){return n.apply(this,arguments)}}()));case 13:case"end":return n.stop()}}),n)}))),Re.apply(this,arguments)}function be(e){return Ie.apply(this,arguments)}function Ie(){return(Ie=L(w().mark((function e(n){var t,r,o;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new Blob([n]),r=t.stream(),o=r.pipeThrough(new CompressionStream("gzip")),e.abrupt("return",new Response(o).arrayBuffer());case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ce,Le=_e((function(e){ge("/v1/logs",{resourceLogs:[{resource:fe.resource,scopeLogs:[{scope:fe.scope,logRecords:e}]}]}).catch((function(e){a("Failed to transmit logs",e)}))})),Ne=_e((function(e){ge("/v1/traces",{resourceSpans:[{resource:fe.resource,scopeSpans:[{scope:fe.scope,spans:e}]}]}).catch((function(e){a("Failed to transmit spans",e)}))}));function Se(){var e,n,t,r,o;return Ce||(n=(e={maxCallsPerTenMinutes:4096,maxCallsPerTenSeconds:128}).maxCallsPerTenMinutes,t=e.maxCallsPerTenSeconds,r=0,o=0,Y((function(){r=0}),6e5),Y((function(){o=0}),1e4),Ce=function(){return++r>n||++o>t}),Ce()}function Oe(e){fe.isSessionSampled&&(Se()?l("Transport rate limit. Will not send item.",e):Le.send(e))}function Ae(e){e&&fe.isSessionSampled&&(Se()?l("Transport rate limit. Will not send item.",e):Ne.send(e))}var Ve="service.name",Pe="service.namespace",we="service.version",Ue="deployment.environment.name",De="deployment.name",Me="deployment.id",Ge="event.name",xe="dash0.web.event.id",Be="page.load.id",ke="user_agent.original",He="user.id",Fe="user.name",je="user.full_name",We="user.email",Xe="user.hash",qe="user.roles",Ye="exception.message",ze="exception.type",Ke="exception.stacktrace",Qe="error.type",Ze="url.full",$e="http.request.method",Je="http.request.method_original",en="http.response.status_code",nn={PAGE_VIEW:"browser.page_view",NAVIGATION_TIMING:"browser.navigation_timing",WEB_VITAL:"browser.web_vital",ERROR:"browser.error"},tn={UNSPECIFIED:0,TRACE:1,DEBUG:5,INFO:9,WARN:13,ERROR:17,FATAL:21},rn=0,on=1,an="pushState",ln="replaceState",un=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"];function sn(e){if(null!=e){var n={};return Array.isArray(e)?n.arrayValue={values:e.map((function(e){return sn(e)}))}:"string"==typeof e?n.stringValue=e:"number"==typeof e?n.doubleValue=e:"boolean"==typeof e?n.boolValue=e:!function(e){if(null==e||"object"!==G(e))return!1;var n=Object.keys(e);return 1===n.length&&un.includes(n[0])}(e)?"object"===G(e)&&(n.kvlistValue={values:Object.entries(e).map((function(e){var n=U(e,2);return cn(n[0],n[1])}))}):n=e,n}}function cn(e,n){return{key:e,value:sn(n)}}function vn(e,n,t){n&&e.push(cn(n,t))}function dn(e,n){n&&Object.entries(n).forEach((function(n){var t=U(n,2),r=t[0],o=t[1];return vn(e,r,o)}))}function fn(e,n){var t=e.findIndex((function(e){return e.key===n}));-1!==t&&e.splice(t,1)}var pn="traceparent",hn=/^00-([a-f0-9]{32})-([a-f0-9]{16})-[0-9]{1,2}$/;function En(){var e,n,t=((null===(e=Array.from(null!==(n=null==d?void 0:d.getElementsByTagName("meta"))&&void 0!==n?n:[]).find((function(e){var n;return(null===(n=e.getAttribute("name"))||void 0===n?void 0:n.toLowerCase())===pn})))||void 0===e?void 0:e.content.trim())||"").match(hn)||function(){var e=h.getEntriesByType("navigation")[0];if(!e)return"";if(!e.serverTiming)return"";return function(e){var n,t=O(e);try{for(t.s();!(n=t.n()).done;){var r=n.value;if(r.name===pn)return r.description.trim()}}catch(e){t.e(e)}finally{t.f()}return""}(e.serverTiming)}().match(hn);if(t)return{traceId:t[1],spanId:t[2]}}function mn(e,n,t){e.call(n,"traceparent","00-".concat(t.traceId,"-").concat(t.spanId,"-01"))}function _n(e,n,t){var r,o,i,a=(r=t.traceId,o=r.substring(0,8),i=r.substring(8,32),"1-".concat(o,"-").concat(i)),l="Root=".concat(a,";Parent=").concat(t.spanId,";Sampled=1");e.call(n,"X-Amzn-Trace-Id",l)}var yn=1;function Tn(){var e,n;return"".concat((e={ephemeralSession:!b},n=0,e.ephemeralSession&&(n|=yn),n.toString(16).padStart(2,"0"))).concat(T(7))}var gn="d0_session",Rn="#",bn=864e5,In=null;function Cn(e,n){if(!b)return l("Storage API is not available and session tracking is therefore not supported."),void(In=Tn());e||(e=108e5),n||(n=216e5),e=Math.min(e,bn),n=Math.min(n,bn);try{var t=function(e){return b&&m?m.getItem(e):null}(gn),r=function(e){if(!e)return null;var n=e.split(Rn);if(n.length<3)return null;var t=n[0],r=parseInt(n[1],10),o=parseInt(n[2],10);if(!t||isNaN(r)||isNaN(o))return null;return{id:t,startTime:r,lastActivityTime:o}}(t);r&&!function(e,n,t){var r=B()-n;if(e.lastActivityTime<r)return!1;var o=B()-t;return e.startTime>=o}(r,e,n)&&(r=null),r?r.lastActivityTime=B():r={id:Tn(),startTime:B(),lastActivityTime:B()},function(e,n){b&&m&&m.setItem(e,n)}(gn,function(e){return e.id+Rn+e.startTime+Rn+e.lastActivityTime}(r)),In=r.id}catch(e){i("Failed to record session information",e)}}var Ln="d042",Nn=1;function Sn(e){var n=0;return e.withoutSession&&(n|=Nn),n.toString(16).padStart(2,"0")}function On(e){var n=function(e){return e?"".concat(Ln).concat(Sn({withoutSession:!1})).concat(e).concat(T(5)):"".concat(Ln).concat(Sn({withoutSession:!0})).concat(T(13))}(In),t=function(e){var n=de(e).toString(16).padStart(8,"0");return"".concat(n).concat(T(4))}(n),r=[];return vn(r,xe,t),{traceId:n,spanId:t,name:e,kind:3,startTimeUnixNano:k(),attributes:r,events:[],links:[],status:{code:0}}}function An(e,n,t){var r=e;if(!r.endTimeUnixNano)return n&&(r.status=n),r.endTimeUnixNano=null!=t?String(Math.round(parseInt(r.startTimeUnixNano)+t)):k(),r;l("Attempting to end already ended span. Dropping...",r)}function Vn(e,n,t,r){var o=void 0,i=void 0;"string"==typeof t?o=t:Array.isArray(t)&&(i=t),e.events.push({name:n,timeUnixNano:null!=o?o:k(),attributes:null!=i?i:[]})}function Pn(e,n,t){e.status={code:n,message:t}}function wn(e,n){var t=[];"string"==typeof n?vn(t,Ye,n):n&&(n.code?vn(t,ze,n.code.toString()):n.name&&vn(t,ze,n.name),n.message&&vn(t,Ye,n.message),n.stack&&vn(t,Ke,n.stack),Vn(e,"exception",t))}function Un(e,t,r){var o=function(e){return e?Array.isArray(e)?function(n){return[].concat(D(e),[n]).join(".")}:function(n){return"".concat(e,".").concat(n)}:function(e){return e}}(r);try{var i=te(t);i.username&&(i.username="REDACTED"),i.password&&(i.password="REDACTED");var a=fe.urlAttributeScrubber(A(A(A(A(A(A({},Ze,i.href),"url.path",i.pathname),"url.domain",i.hostname),"url.scheme",i.protocol.replace(":","")),"url.fragment",i.hash?i.hash.replace("#",""):void 0),"url.query",i.search?i.search.replace("?",""):void 0));Object.entries(a).forEach((function(n){var t=U(n,2),r=t[0],i=t[1];void 0!==i&&vn(e,o(r),i)}))}catch(r){fe.urlAttributeScrubber===n&&vn(e,o(Ze),String(t))}}var Dn=null!=_&&"function"==typeof _.getItem&&"function"==typeof _.setItem;var Mn="d0_tab",Gn=null;function xn(){if(Dn)try{var e=function(e){return Dn&&_?_.getItem(e):null}(Mn);if(e)return void(Gn=e);Gn=T(8),function(e,n){Dn&&_&&_.setItem(e,n)}(Mn,Gn)}catch(e){i("Failed to record tab ID information",e)}else l("Storage API is not available and tab tracking is therefore not supported.")}function Bn(e,n){var t,r,o,i,a;void 0===e.find((function(e){return e.key===xe}))&&vn(e,xe,T(8));for(var l=0;l<fe.signalAttributes.length;l++)e.push(fe.signalAttributes[l]);Un(e,null!==(t=null!==(r=null==n?void 0:n.url)&&void 0!==r?r:null==v?void 0:v.location.href)&&void 0!==t?t:ee,"page"),In&&vn(e,"session.id",In),Gn&&vn(e,"browser.tab.id",Gn),vn(e,"browser.window.width",null!==(o=null==v?void 0:v.innerWidth)&&void 0!==o?o:ee),vn(e,"browser.window.height",null!==(i=null==v?void 0:v.innerHeight)&&void 0!==i?i:ee);var u=null==f||null===(a=f.connection)||void 0===a?void 0:a.effectiveType;u&&vn(e,"network.connection.subtype",u)}var kn,Hn=0,Fn=0,jn={},Wn=!1;function Xn(){Wn=!0}function qn(e,n){e&&Yn("string"==typeof e?{message:e,opts:n}:{message:e.message,type:e.name,stack:e.stack,opts:n})}function Yn(e){var n=e.message,t=e.type,r=e.stack,o=e.opts;if(n&&!(Hn>100)&&!function(e){return!e||pe(fe.ignoreErrorMessages,e)}(n)){Fn>=20&&(jn={},Fn=0);var i=(n=String(n).substring(0,300))+(r=function(e){return String(e||"").split("\n").slice(0,30).join("\n")}(r))+(null==v?void 0:v.location.href),a=jn[i];if(a)a.seenCount++;else{var l=[];Bn(l),vn(l,Ge,nn.ERROR),vn(l,Ye,n),t&&vn(l,ze,t),r&&vn(l,Ke,r),null!=o&&o.componentStack&&vn(l,"exception.component_stack",null==o?void 0:o.componentStack.substring(0,2048)),dn(l,null==o?void 0:o.attributes),a={seenCount:1,transmittedCount:0,log:{timeUnixNano:k(),attributes:l,severityNumber:tn.ERROR,severityText:"ERROR",body:{stringValue:n}}},jn[i]=a,Fn++}!function(){if(kn)return;kn=setTimeout(zn,1e3)}()}}function zn(){for(var e in kn&&(clearTimeout(kn),kn=null),jn)if(c(jn,e)){var n=jn[e];n.seenCount>n.transmittedCount&&(Oe(n.log),Hn++)}jn={},Fn=0}var Kn=-1,Qn=function(e){addEventListener("pageshow",(function(n){n.persisted&&(Kn=n.timeStamp,e(n))}),!0)},Zn=function(e,n,t,r){var o,i;return function(a){n.value>=0&&(a||r)&&(((i=n.value-(null!=o?o:0))||void 0===o)&&(o=n.value,n.delta=i,n.rating=function(e,n){return e>n[1]?"poor":e>n[0]?"needs-improvement":"good"}(n.value,t),e(n)))}},$n=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},Jn=function(){var e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},et=function(){var e,n=Jn();return null!==(e=null==n?void 0:n.activationStart)&&void 0!==e?e:0},nt=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,t=Jn(),r="navigate";return Kn>=0?r="back-forward-cache":t&&(document.prerendering||et()>0?r="prerender":document.wasDiscarded?r="restore":t.type&&(r=t.type.replace(/_/g,"-"))),{name:e,value:n,rating:"good",delta:0,entries:[],id:"v5-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},tt=new WeakMap;function rt(e,n){return tt.get(e)||tt.set(e,new n),tt.get(e)}var ot,it=function(){return S((function e(){N(this,e),A(this,"t",void 0),A(this,"i",0),A(this,"o",[])}),[{key:"h",value:function(e){var n;if(!e.hadRecentInput){var t=this.o[0],r=this.o.at(-1);this.i&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),null===(n=this.t)||void 0===n||n.call(this,e)}}}])}(),at=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){n(e.getEntries())}))}));return r.observe(P({type:e,buffered:!0},t)),r}}catch(e){}},lt=function(e){var n=!1;return function(){n||(e(),n=!0)}},ut=-1,st=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},ct=function(e){"hidden"===document.visibilityState&&ut>-1&&(ut="visibilitychange"===e.type?e.timeStamp:0,dt())},vt=function(){addEventListener("visibilitychange",ct,!0),addEventListener("prerenderingchange",ct,!0)},dt=function(){removeEventListener("visibilitychange",ct,!0),removeEventListener("prerenderingchange",ct,!0)},ft=function(){if(ut<0){var e,n=et(),t=document.prerendering||null===(e=globalThis.performance.getEntriesByType("visibility-state").filter((function(e){return"hidden"===e.name&&e.startTime>n}))[0])||void 0===e?void 0:e.startTime;ut=null!=t?t:st(),vt(),Qn((function(){setTimeout((function(){ut=st(),vt()}))}))}return{get firstHiddenTime(){return ut}}},pt=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},ht=[1800,3e3],Et=[.1,.25],mt=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pt((function(){var t,r=ft(),o=nt("FCP"),i=at("paint",(function(e){var n,a=O(e);try{for(a.s();!(n=a.n()).done;){var l=n.value;"first-contentful-paint"===l.name&&(i.disconnect(),l.startTime<r.firstHiddenTime&&(o.value=Math.max(l.startTime-et(),0),o.entries.push(l),t(!0)))}}catch(e){a.e(e)}finally{a.f()}}));i&&(t=Zn(e,o,ht,n.reportAllChanges),Qn((function(r){o=nt("FCP"),t=Zn(e,o,ht,n.reportAllChanges),$n((function(){o.value=performance.now()-r.timeStamp,t(!0)}))})))}))}(lt((function(){var t,r=nt("CLS",0),o=rt(n,it),i=function(e){var n,i=O(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;o.h(a)}}catch(e){i.e(e)}finally{i.f()}o.i>r.value&&(r.value=o.i,r.entries=o.o,t())},a=at("layout-shift",i);a&&(t=Zn(e,r,Et,n.reportAllChanges),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&(i(a.takeRecords()),t(!0))})),Qn((function(){o.i=0,r=nt("CLS",0),t=Zn(e,r,Et,n.reportAllChanges),$n((function(){return t()}))})),setTimeout(t))})))},_t=0,yt=1/0,Tt=0,gt=function(e){var n,t=O(e);try{for(t.s();!(n=t.n()).done;){var r=n.value;r.interactionId&&(yt=Math.min(yt,r.interactionId),Tt=Math.max(Tt,r.interactionId),_t=Tt?(Tt-yt)/7+1:0)}}catch(e){t.e(e)}finally{t.f()}},Rt=function(){var e;return ot?_t:null!==(e=performance.interactionCount)&&void 0!==e?e:0},bt=0,It=function(){return S((function e(){N(this,e),A(this,"u",[]),A(this,"l",new Map),A(this,"m",void 0),A(this,"v",void 0)}),[{key:"p",value:function(){bt=Rt(),this.u.length=0,this.l.clear()}},{key:"P",value:function(){var e=Math.min(this.u.length-1,Math.floor((Rt()-bt)/50));return this.u[e]}},{key:"h",value:function(e){var n;if(null!==(n=this.m)&&void 0!==n&&n.call(this,e),e.interactionId||"first-input"===e.entryType){var t=this.u.at(-1),r=this.l.get(e.interactionId);if(r||this.u.length<10||e.duration>t.T){var o;if(r?e.duration>r.T?(r.entries=[e],r.T=e.duration):e.duration===r.T&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],T:e.duration},this.l.set(r.id,r),this.u.push(r)),this.u.sort((function(e,n){return n.T-e.T})),this.u.length>10){var i,a=O(this.u.splice(10));try{for(a.s();!(i=a.n()).done;){var l=i.value;this.l.delete(l.id)}}catch(e){a.e(e)}finally{a.f()}}null===(o=this.v)||void 0===o||o.call(this,r)}}}}])}(),Ct=function(e){var n=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?e():(e=lt(e),document.addEventListener("visibilitychange",e,{once:!0}),n((function(){e(),document.removeEventListener("visibilitychange",e)})))},Lt=[200,500],Nt=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&pt((function(){var t;"interactionCount"in performance||ot||(ot=at("event",gt,{type:"event",buffered:!0,durationThreshold:0}));var r,o=nt("INP"),i=rt(n,It),a=function(e){Ct((function(){var n,t=O(e);try{for(t.s();!(n=t.n()).done;){var a=n.value;i.h(a)}}catch(e){t.e(e)}finally{t.f()}var l=i.P();l&&l.T!==o.value&&(o.value=l.T,o.entries=l.entries,r())}))},l=at("event",a,{durationThreshold:null!==(t=n.durationThreshold)&&void 0!==t?t:40});r=Zn(e,o,Lt,n.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&(a(l.takeRecords()),r(!0))})),Qn((function(){i.p(),o=nt("INP"),r=Zn(e,o,Lt,n.reportAllChanges)})))}))},St=function(){return S((function e(){N(this,e),A(this,"m",void 0)}),[{key:"h",value:function(e){var n;null===(n=this.m)||void 0===n||n.call(this,e)}}])}(),Ot=[2500,4e3];function At(){!function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pt((function(){var t,r=ft(),o=nt("LCP"),i=rt(n,St),a=function(e){n.reportAllChanges||(e=e.slice(-1));var a,l=O(e);try{for(l.s();!(a=l.n()).done;){var u=a.value;i.h(u),u.startTime<r.firstHiddenTime&&(o.value=Math.max(u.startTime-et(),0),o.entries=[u],t())}}catch(e){l.e(e)}finally{l.f()}},l=at("largest-contentful-paint",a);if(l){t=Zn(e,o,Ot,n.reportAllChanges);for(var u=lt((function(){a(l.takeRecords()),l.disconnect(),t(!0)})),s=0,c=["keydown","click","visibilitychange"];s<c.length;s++)addEventListener(c[s],(function(){return Ct(u)}),{capture:!0,once:!0});Qn((function(r){o=nt("LCP"),t=Zn(e,o,Ot,n.reportAllChanges),$n((function(){o.value=performance.now()-r.timeStamp,t(!0)}))}))}}))}(Vt,{reportAllChanges:!0}),Nt(Vt,{reportAllChanges:!0}),mt(Vt,{reportAllChanges:!0})}function Vt(e){var n=[];vn(n,Ge,nn.WEB_VITAL);var t=[];vn(t,"name",e.name),vn(t,"value",ne(e.value)),vn(t,"delta",ne(e.delta));var r={timeUnixNano:k(),attributes:n,severityNumber:tn.INFO,severityText:"INFO",body:{kvlistValue:{values:t}}};Bn(r.attributes),Oe(r)}var Pt="Unhandled promise rejection: ",wt="<unavailable because Promise wasn't rejected with an Error object>";function Ut(e){null==e.reason?qn({message:Pt+"<no reason defined>",stack:wt}):"string"==typeof e.reason.message?qn({message:Pt+e.reason.message,stack:"string"==typeof e.reason.stack?e.reason.stack:wt}):"object"!==G(e.reason)&&qn({message:Pt+e.reason,stack:wt})}var Dt="__dash0OriginalFunctions";function Mt(e,n){for(var t=e[Dt],r=0;r<t.length;r++){if(Gt(t[r].valuesForEqualityCheck,n))return r}return-1}function Gt(e,n){if(e.length!==n.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==n[t])return!1;return!0}function xt(e,n,t,r,o){return function(e,n,t){if(!e)return n;var r=e[Dt]=e[Dt]||[],o=Mt(e,t);return-1!==o?r[o].wrappedFunction:(r.push({wrappedFunction:n,valuesForEqualityCheck:t}),n)}(e,n,Bt(t,r,o))}function Bt(e,n,t){return[e,n,kt(t)]}function kt(e){return null!=e&&("object"===G(e)?Boolean(e.capture):Boolean(e))}function Ht(e,n,t,r,o){return function(e,n,t){var r=null==e?void 0:e[Dt];if(null==r)return t;var o=Mt(e,n);if(-1===o)return t;var i=r[o];return r.splice(o,1),i.wrappedFunction}(e,Bt(n,t,r),o)}function Ft(){fe.wrapEventHandlers&&function(e){if(!e||"function"!=typeof e.prototype.addEventListener||"function"!=typeof e.prototype.removeEventListener)return;var n=e.prototype.addEventListener,t=e.prototype.removeEventListener;e.prototype.addEventListener=function(e,t,r){if("function"!=typeof t)return n.apply(this,arguments);for(var o=new Array(arguments.length),i=0;i<arguments.length;i++)o[i]=arguments[i];return o[1]=function(){try{return t.apply(this,arguments)}catch(e){throw qn(e),Xn(),e}},o[1]=xt(this,o[1],e,t,r),n.apply(this,o)},e.prototype.removeEventListener=function(e,n,r){if("function"!=typeof n)return t.apply(this,arguments);for(var o=new Array(arguments.length),i=0;i<arguments.length;i++)o[i]=arguments[i];return o[1]=Ht(this,e,n,r,n),t.apply(this,o)}}(null==v?void 0:v.EventTarget)}function jt(e){var n=null==v?void 0:v[e];"function"==typeof n&&(v[e]=function(e){for(var t=new Array(arguments.length),r=0;r<arguments.length;r++)t[r]=arguments[r];return t[0]=function(e){if("function"!=typeof e)return e;return function(){try{return e.apply(this,arguments)}catch(e){throw reportError(e),Xn(),e}}}(e),n.apply(this,t)})}function Wt(){!function(){if(v){var e=v.onerror;v.onerror=function(n,t,r,o,i){if(Wn)return Wn=!1,"function"==typeof e?e.apply(this,arguments):void 0;var a=i&&i.stack;return a||(a="at "+t+" "+r,null!=o&&(a+=":"+o)),Yn({message:String(n),stack:a}),"function"==typeof e?e.apply(this,arguments):void 0}}}(),"function"==typeof(null==v?void 0:v.addEventListener)&&v.addEventListener("unhandledrejection",Ut),Ft(),function(){if(fe.wrapTimers){if(W)return void i("We discovered a usage of Zone.js. In order to avoid any incompatibility issues timer wrapping is not going to be enabled.");jt("setTimeout"),jt("setInterval")}}()}function Xt(e){return"".concat("http.request.header",".").concat(e.toLowerCase())}function qt(e){return"".concat("http.response.header",".").concat(e.toLowerCase())}var Yt=["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH"],zt="_OTHER";function Kt(e){return Yt.includes(e)}function Qt(e,n){var t=0!==n.startTime;Zt(e,Q.FETCH_START,n,t),Zt(e,Q.DOMAIN_LOOKUP_START,n,t),Zt(e,Q.DOMAIN_LOOKUP_END,n,t),Zt(e,Q.CONNECT_START,n,t),Zt(e,Q.SECURE_CONNECTION_START,n,t),Zt(e,Q.CONNECT_END,n,t),Zt(e,Q.REQUEST_START,n,t),Zt(e,Q.RESPONSE_START,n,t),Zt(e,Q.RESPONSE_END,n,t)}function Zt(e,n,t){var r,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];!(n in t)||"number"!=typeof t[n]||o&&0===t[n]||Vn(e,n,(r=t[n],String(Math.round(1e6*(r+F())))))}function $t(e,n){var t=n.encodedBodySize;null!=t&&vn(e.attributes,"http.response.body.size",t)}function Jt(e,n){var t;wn(e,n);var r="object"===G(n)&&n?null!==(t=n.name)&&void 0!==t?t:null!=n.code?String(n.code):"error":"error";vn(e.attributes,Qe,r),Ae(An(e,function(e){return{code:2,message:e&&"object"===G(e)&&"message"in e?e.message:String(e)}}(n),void 0))}function er(e){vn(e.attributes,"dash0.web.request.cancelled",!0),Ae(An(e,void 0,void 0))}function nr(e){var n=[];if(re(e)){if(n.push("traceparent"),fe.propagators){var t,r=O(fe.propagators);try{for(r.s();!(t=r.n()).done;){var o=t.value;"traceparent"===o.type||n.includes(o.type)||n.push(o.type)}}catch(e){r.e(e)}finally{r.f()}}return n}if(fe.propagators){var i,a=O(fe.propagators);try{for(a.s();!(i=a.n()).done;){var l=i.value;pe(l.match,e)&&(n.includes(l.type)||n.push(l.type))}}catch(e){a.e(e)}finally{a.f()}return n}return[]}function tr(e,n,t,r){var o,i=O(r);try{for(i.s();!(o=i.n()).done;){"xray"===o.value?_n(e,n,t):mn(e,n,t)}}catch(e){i.e(e)}finally{i.f()}}function rr(e){return function(){var n=L(w().mark((function n(t,r){var o,i,a,u,s,c,v,d,f,p,h;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=t,n.prev=1,u=r?Object.assign({},r):r,s=null,null!=u&&u.body&&(s=u.body,u.body=void 0),i=new Request(t,u),s&&u&&(u.body=s),o=t instanceof Request?i:t,!Ee(i.url)){n.next=11;break}return l("Not creating span for fetch call because the url is ignored, URL: ".concat(i.url)),n.abrupt("return",e(o,r));case 11:a=or(t,r,i,u),n.next=18;break;case 14:return n.prev=14,n.t0=n.catch(1),l("failed to instrument fetch call",n.t0),n.abrupt("return",e(o,r));case 18:return v=(c=a).copyOfInit,d=c.span,f=c.performanceObserver,n.prev=19,n.next=22,e(o,v);case 22:return p=n.sent,ar(d,p),n.abrupt("return",lr(p,fe.maxToleranceForResourceTimingsMillis,(function(){return f.end()}),(function(e){var n;f.cancel(),null!==(n=i)&&void 0!==n&&null!==(n=n.signal)&&void 0!==n&&n.aborted?er(d):Jt(d,e)})));case 27:throw n.prev=27,n.t1=n.catch(19),f.cancel(),null!==(h=i)&&void 0!==h&&null!==(h=h.signal)&&void 0!==h&&h.aborted?er(d):Jt(d,n.t1),n.t1;case 32:case"end":return n.stop()}}),n,null,[[1,14],[19,27]])})));return function(e,t){return n.apply(this,arguments)}}()}function or(e,n,t,r){var o,i=t.url,a=null!==(o=t.method)&&void 0!==o?o:"GET",u=Kt(a),s=Kt(a.toUpperCase())?a.toUpperCase():zt,c=On("HTTP ".concat(s));Bn(c.attributes),Un(c.attributes,i),function(e,n){try{return void 0}catch(t){l("failed to analyze request for GraphQL insights",t,e,n)}}(e,n),vn(c.attributes,$e,s),u||vn(c.attributes,Je,a);var v,d=nr(i);d.length>0&&(null!==(v=r)&&void 0!==v&&v.headers?(r.headers=new Headers(r.headers),tr(r.headers.append,r.headers,c,d)):e instanceof Request?tr(t.headers.append,t.headers,c,d):(r||(r={}),r.headers=new Headers,tr(r.headers.append,r.headers,c,d)));ir(t.headers,c,(function(e){return Xt(e)}));var f=$({resourceMatcher:function(e){var n=e.initiatorType,t=e.name;return("fetch"===n||"xmlhttprequest"===n)&&t===te(i).href},maxWaitForResourceMillis:fe.maxWaitForResourceTimingsMillis,maxToleranceForResourceTimingsMillis:fe.maxToleranceForResourceTimingsMillis,onEnd:function(e){var n=e.duration,t=e.resource;t&&(Qt(c,t),$t(c,t)),Ae(An(c,void 0,1e6*n))}});return f.start(),{copyOfInit:r,span:c,performanceObserver:f}}function ir(e,n,t){try{if(!fe.headersToCapture.length)return;e.forEach((function(e,r){fe.headersToCapture.some((function(e){return e.test(r)}))&&vn(n.attributes,t(r),e)}))}catch(e){l("unable to capture http headers",e)}}function ar(e,n){var t=n.status;Pn(e,t>=200&&t<400?0:2),0===t&&vn(e.attributes,Qe,n.type),vn(e.attributes,en,String(t)),ir(n.headers,e,(function(e){return qt(e)}))}function lr(e,n,t,r){var o,i,a=h.now(),l=e.body;if(!(l&&(o=e,i=o.status,i>=200&&204!=i&&205!=i&&304!=i)))return t(),e;var u=!1,s=function(e){u||(t(e),u=!0)},c=function(e){u||(r(e),u=!0)},v=X((function(){return s(a)}),n),d=l.getReader(),f=new ReadableStream({pull:function(e){return L(w().mark((function t(){var r,o;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,q(v),t.next=4,d.read();case 4:r=t.sent,o=r.value,r.done?(d.releaseLock(),e.close(),s()):(a=h.now(),v=X((function(){return s(a)}),n),e.enqueue(o)),t.next=15;break;case 10:t.prev=10,t.t0=t.catch(0),c(t.t0),e.error(t.t0);try{d.releaseLock()}catch(e){}case 15:case"end":return t.stop()}}),t,null,[[0,10]])})))()},cancel:function(e){return q(v),s(),d.cancel(e)}});return new Response(f,{status:e.status,statusText:e.statusText,headers:e.headers})}var ur,sr=Symbol("dash0XhrState");function cr(e){return function(n,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];var a=[n,t].concat(o);try{a=[n,vr(this,n,t)].concat(o)}catch(e){this[sr]=void 0,l("failed to instrument XMLHttpRequest.open",e)}return e.apply(this,a)}}function vr(e,n,t){var r=e[sr];null!=r&&r.span&&!r.completed&&function(e,n){n.completed=!0;try{var t,r,o,i=O(null!==(r=n.listeners)&&void 0!==r?r:[]);try{for(i.s();!(o=i.n()).done;){var a=U(o.value,2);R(e,a[0],a[1])}}catch(e){i.e(e)}finally{i.f()}null===(t=n.performanceObserver)||void 0===t||t.cancel(),n.span&&er(n.span)}catch(e){}}(e,r);var o=String(t),i=te(o).href,a=String(null!=n?n:"GET"),l=Kt(a.toUpperCase())?a.toUpperCase():zt;return e[sr]={method:l,originalMethod:a,isWellKnownMethod:Kt(a),url:i,ignored:Ee(i),propagatorTypes:nr(i),completed:!1},o}function dr(e){return ur=e,function(n,t){e.call(this,n,t);try{!function(e,n,t){var r,o=e[sr];if(!o||o.ignored)return;var i=n.toLowerCase();"traceparent"!==i&&"x-amzn-trace-id"!==i||(o.alreadyTraced=!0);if(0===fe.headersToCapture.length)return;if(!fe.headersToCapture.some((function(e){return e.test(i)})))return;var a=null!==(r=o.capturedRequestHeaders)&&void 0!==r?r:o.capturedRequestHeaders={};a[i]=i in a?"".concat(a[i],", ").concat(t):t}(this,n,t)}catch(e){l("failed to instrument XMLHttpRequest.setRequestHeader",e)}}}function fr(e){return function(n){var t=this[sr];if(!t||t.ignored)return null!=t&&t.ignored&&l("Not creating span for XMLHttpRequest because the url is ignored, URL: ".concat(t.url)),e.call(this,n);if(t.alreadyTraced)return l("Not creating span for XMLHttpRequest because a trace correlation header is already present, URL: ".concat(t.url)),e.call(this,n);if(t.span&&!t.completed)return e.call(this,n);try{!function(e,n){var t=On("HTTP ".concat(n.method));Bn(t.attributes),Un(t.attributes,n.url),vn(t.attributes,$e,n.method),n.isWellKnownMethod||vn(t.attributes,Je,n.originalMethod);if(n.span=t,n.propagatorTypes.length>0)try{tr((function(n,t){return(null!=ur?ur:e.setRequestHeader).call(e,n,t)}),e,t,n.propagatorTypes)}catch(e){l("failed to inject trace context headers on XMLHttpRequest",e)}if(n.capturedRequestHeaders)for(var r=0,o=Object.entries(n.capturedRequestHeaders);r<o.length;r++){var i=U(o[r],2),a=i[0],u=i[1];vn(t.attributes,Xt(a),u)}var s=$({resourceMatcher:function(e){var t=e.initiatorType,r=e.name;return"xmlhttprequest"===t&&r===n.url},maxWaitForResourceMillis:fe.maxWaitForResourceTimingsMillis,maxToleranceForResourceTimingsMillis:fe.maxToleranceForResourceTimingsMillis,onEnd:function(e){var n=e.duration,r=e.resource;r&&(Qt(t,r),$t(t,r)),Ae(An(t,void 0,1e6*n))}});n.performanceObserver=s,s.start(),n.listeners=[["error",function(){n.failureKind="error"}],["timeout",function(){n.failureKind="timeout"}],["abort",function(){n.failureKind="abort"}],["loadend",function(){return function(e,n){var t;if(n.completed)return;n.completed=!0;var r,o=O(null!==(t=n.listeners)&&void 0!==t?t:[]);try{for(o.s();!(r=o.n()).done;){var i=U(r.value,2);R(e,i[0],i[1])}}catch(e){o.e(e)}finally{o.f()}var a=n.span;if(!a)return;var u=n.performanceObserver;if("abort"===n.failureKind)return null==u||u.cancel(),void er(a);var s=0;try{s=e.status}catch(e){s=0}if("error"===n.failureKind||"timeout"===n.failureKind||0===s){var c;return null==u||u.cancel(),void Jt(a,{name:null!==(c=n.failureKind)&&void 0!==c?c:"error",message:"XMLHttpRequest failed: ".concat(n.url)})}Pn(a,s>=200&&s<400?0:2),vn(a.attributes,en,String(s)),function(e,n){try{if(!fe.headersToCapture.length)return;var t=e.getAllResponseHeaders();if(!t)return;t.split(/\r?\n/).filter((function(e){return e.length>0})).forEach((function(e){var t=e.indexOf(":");if(-1!==t){var r=e.substring(0,t).trim(),o=e.substring(t+1).trim();fe.headersToCapture.some((function(e){return e.test(r)}))&&vn(n.attributes,qt(r),o)}}))}catch(e){l("unable to capture http response headers",e)}}(e,a),null==u||u.end()}(e,n)}]];var c,v=O(n.listeners);try{for(v.s();!(c=v.n()).done;){var d=U(c.value,2),f=d[0],p=d[1];g(e,f,p)}}catch(e){v.e(e)}finally{v.f()}}(this,t)}catch(e){!function(e,n){try{var t,r;null===(t=n.performanceObserver)||void 0===t||t.cancel();var o,i=O(null!==(r=n.listeners)&&void 0!==r?r:[]);try{for(i.s();!(o=i.n()).done;){var a=U(o.value,2);R(e,a[0],a[1])}}catch(e){i.e(e)}finally{i.f()}}catch(e){}n.span=void 0}(this,t),l("failed to instrument XMLHttpRequest.send",e)}try{return e.call(this,n)}catch(e){throw function(e,n,t){if(n.completed)return;n.completed=!0;try{var r,o,i,a,l=O(null!==(i=n.listeners)&&void 0!==i?i:[]);try{for(l.s();!(a=l.n()).done;){var u=U(a.value,2);R(e,u[0],u[1])}}catch(e){l.e(e)}finally{l.f()}null===(r=n.performanceObserver)||void 0===r||r.cancel();var s=n.span;if(!s)return;var c=null!==(o=n.failureKind)&&void 0!==o?o:"TimeoutError"===(null==t?void 0:t.name)?"timeout":"error";wn(s,null!=t?t:{name:c,message:"XMLHttpRequest failed: ".concat(n.url)}),vn(s.attributes,Qe,c),Ae(An(s,{code:2,message:"XMLHttpRequest failed: ".concat(n.url)},void 0))}catch(e){}}(this,t,e),e}}}function pr(e,n,t,r){var o,i,a=function(e){var n,t,r;return e&&null!==(n=null===(t=(r=fe.pageViewInstrumentation).generateMetadata)||void 0===t?void 0:t.call(r,e))&&void 0!==n?n:{}}(n),l=[];vn(l,Ge,nn.PAGE_VIEW),a.attributes&&Object.entries(a.attributes).forEach((function(e){var n=U(e,2),t=n[0],r=n[1];return vn(l,t,r)})),Bn(l,{url:n});var u=[];vn(u,"title",null!==(o=null!==(i=a.title)&&void 0!==i?i:null==d?void 0:d.title)&&void 0!==o?o:ee),null!=d&&d.referrer&&vn(u,"referrer",d.referrer),vn(u,"type",t?on:rn),vn(u,"change_state",r?ln:an);var s={timeUnixNano:e,attributes:l,severityNumber:tn.INFO,severityText:"INFO",body:{kvlistValue:{values:u}}},c=En();c&&(s.traceId=c.traceId,s.spanId=c.spanId),Oe(s)}function hr(){var e=null==v?void 0:v.performance.getEntriesByType("navigation")[0];if(e){var n=[];vn(n,Ge,nn.NAVIGATION_TIMING);var t=[];vn(t,"name",e.name),Er(t,e,"responseStatus"),Er(t,e,"fetchStart"),Er(t,e,"requestStart"),Er(t,e,"responseStart"),Er(t,e,"domInteractive"),Er(t,e,"domContentLoadedEventEnd"),Er(t,e,"domComplete"),Er(t,e,"loadEventEnd"),Er(t,e,"transferSize"),Er(t,e,"encodedBodySize"),Er(t,e,"decodedBodySize");var r={timeUnixNano:mr(),attributes:n,severityNumber:tn.INFO,severityText:"INFO",body:{kvlistValue:{values:t}}};Bn(r.attributes);var o=En();o&&(r.traceId=o.traceId,r.spanId=o.spanId),Oe(r)}else l("Navigation timings not available. Cannot emit navigation timing log")}function Er(e,n,t){var r=n[t];"number"!=typeof r||isNaN(r)||vn(e,t,Number.isInteger(r)?r:ne(r))}function mr(){return H(Math.round(F()))}var _r={},yr=!1,Tr=!1;function gr(){br(null==v?void 0:v.location.href)}function Rr(e){br(e.newURL)}function br(e,n){var t;if(e)try{var r=new URL(e,null==v?void 0:v.location.href);((t=r).pathname!==_r.path||Tr&&t.search!==_r.search||yr&&t.hash!==_r.hash)&&(Ir(r),pr(k(),r,!0,Boolean(n)))}catch(e){l("Failed to handle url change",e)}}function Ir(e){_r.path=e.pathname,_r.search=e.search,_r.hash=e.hash}function Cr(){!function(){try{pr(mr(),null!=v&&v.location.href?new URL(null==v?void 0:v.location.href):void 0)}catch(e){a("Failed to transmit initial page view event",e)}if("complete"===(null==d?void 0:d.readyState))return hr();v&&g(v,"load",(function(){setTimeout(hr,0)}))}(),function(){var e,n,t,r;if(v&&v.history){if(fe.pageViewInstrumentation.trackVirtualPageViews){Tr=null!==(e=null===(n=fe.pageViewInstrumentation.includeParts)||void 0===n?void 0:n.includes("SEARCH"))&&void 0!==e&&e,yr=null!==(t=null===(r=fe.pageViewInstrumentation.includeParts)||void 0===r?void 0:r.includes("HASH"))&&void 0!==t&&t,le(v.history,"replaceState",(function(e){return function(n,t,r){return br(r?String(r):void 0,!0),e.apply(this,[n,t,r])}})),le(v.history,"pushState",(function(e){return function(n,t,r){return br(r?String(r):void 0),e.apply(this,[n,t,r])}})),v.addEventListener("hashchange",Rr),v.addEventListener("popstate",gr);try{Ir(new URL(v.location.href))}catch(e){}}}else l("Browser does not support history API, skipping instrumentation")}()}function Lr(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];for(var r=0,o=n;r<o.length;r++){var i=o[r];if(i)return i}}var Nr={providerName:"vcs.provider.name",ownerName:"vcs.owner.name",repositoryName:"vcs.repository.name",repositoryUrlFull:"vcs.repository.url.full",refHeadName:"vcs.ref.head.name",refHeadRevision:"vcs.ref.head.revision",changeId:"vcs.change.id"};function Sr(e){for(var n=function(e){var n,t,r,o,i,a,l,u,s,c,v,d,f,p,h,E=null!==(n=e.vcs)&&void 0!==n?n:{};if(e.disableVcsDetection)return E;var m=function(){var e,n,t,r,o,i;try{var a,l,u,s,c,v,d,f,p,h,E,m,_,y,T,g,R,b,I,C,L,N,S,O,A,V,P,w,U,D,M,G,x,B,k,H,F,j,W,X,q,Y,z,K,Q,Z,$,J,ee,ne,te,re,oe,ie,ae,le,ue,se,ce,ve;e=Lr(null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.NEXT_PUBLIC_VERCEL_GIT_PROVIDER,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.NUXT_PUBLIC_VERCEL_GIT_PROVIDER,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.NUXT_ENV_VERCEL_GIT_PROVIDER,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.REACT_APP_VERCEL_GIT_PROVIDER,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.GATSBY_VERCEL_GIT_PROVIDER,null===(v=process)||void 0===v||null===(v=v.env)||void 0===v?void 0:v.VITE_VERCEL_GIT_PROVIDER,null===(d=process)||void 0===d||null===(d=d.env)||void 0===d?void 0:d.PUBLIC_VERCEL_GIT_PROVIDER,null===(f=process)||void 0===f||null===(f=f.env)||void 0===f?void 0:f.VUE_APP_VERCEL_GIT_PROVIDER,null===(p=process)||void 0===p||null===(p=p.env)||void 0===p?void 0:p.REDWOOD_ENV_VERCEL_GIT_PROVIDER,null===(h=process)||void 0===h||null===(h=h.env)||void 0===h?void 0:h.SANITY_STUDIO_VERCEL_GIT_PROVIDER),n=Lr(null===(E=process)||void 0===E||null===(E=E.env)||void 0===E?void 0:E.NEXT_PUBLIC_VERCEL_GIT_REPO_OWNER,null===(m=process)||void 0===m||null===(m=m.env)||void 0===m?void 0:m.NUXT_PUBLIC_VERCEL_GIT_REPO_OWNER,null===(_=process)||void 0===_||null===(_=_.env)||void 0===_?void 0:_.NUXT_ENV_VERCEL_GIT_REPO_OWNER,null===(y=process)||void 0===y||null===(y=y.env)||void 0===y?void 0:y.REACT_APP_VERCEL_GIT_REPO_OWNER,null===(T=process)||void 0===T||null===(T=T.env)||void 0===T?void 0:T.GATSBY_VERCEL_GIT_REPO_OWNER,null===(g=process)||void 0===g||null===(g=g.env)||void 0===g?void 0:g.VITE_VERCEL_GIT_REPO_OWNER,null===(R=process)||void 0===R||null===(R=R.env)||void 0===R?void 0:R.PUBLIC_VERCEL_GIT_REPO_OWNER,null===(b=process)||void 0===b||null===(b=b.env)||void 0===b?void 0:b.VUE_APP_VERCEL_GIT_REPO_OWNER,null===(I=process)||void 0===I||null===(I=I.env)||void 0===I?void 0:I.REDWOOD_ENV_VERCEL_GIT_REPO_OWNER,null===(C=process)||void 0===C||null===(C=C.env)||void 0===C?void 0:C.SANITY_STUDIO_VERCEL_GIT_REPO_OWNER),t=Lr(null===(L=process)||void 0===L||null===(L=L.env)||void 0===L?void 0:L.NEXT_PUBLIC_VERCEL_GIT_REPO_SLUG,null===(N=process)||void 0===N||null===(N=N.env)||void 0===N?void 0:N.NUXT_PUBLIC_VERCEL_GIT_REPO_SLUG,null===(S=process)||void 0===S||null===(S=S.env)||void 0===S?void 0:S.NUXT_ENV_VERCEL_GIT_REPO_SLUG,null===(O=process)||void 0===O||null===(O=O.env)||void 0===O?void 0:O.REACT_APP_VERCEL_GIT_REPO_SLUG,null===(A=process)||void 0===A||null===(A=A.env)||void 0===A?void 0:A.GATSBY_VERCEL_GIT_REPO_SLUG,null===(V=process)||void 0===V||null===(V=V.env)||void 0===V?void 0:V.VITE_VERCEL_GIT_REPO_SLUG,null===(P=process)||void 0===P||null===(P=P.env)||void 0===P?void 0:P.PUBLIC_VERCEL_GIT_REPO_SLUG,null===(w=process)||void 0===w||null===(w=w.env)||void 0===w?void 0:w.VUE_APP_VERCEL_GIT_REPO_SLUG,null===(U=process)||void 0===U||null===(U=U.env)||void 0===U?void 0:U.REDWOOD_ENV_VERCEL_GIT_REPO_SLUG,null===(D=process)||void 0===D||null===(D=D.env)||void 0===D?void 0:D.SANITY_STUDIO_VERCEL_GIT_REPO_SLUG),r=Lr(null===(M=process)||void 0===M||null===(M=M.env)||void 0===M?void 0:M.NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF,null===(G=process)||void 0===G||null===(G=G.env)||void 0===G?void 0:G.NUXT_PUBLIC_VERCEL_GIT_COMMIT_REF,null===(x=process)||void 0===x||null===(x=x.env)||void 0===x?void 0:x.NUXT_ENV_VERCEL_GIT_COMMIT_REF,null===(B=process)||void 0===B||null===(B=B.env)||void 0===B?void 0:B.REACT_APP_VERCEL_GIT_COMMIT_REF,null===(k=process)||void 0===k||null===(k=k.env)||void 0===k?void 0:k.GATSBY_VERCEL_GIT_COMMIT_REF,null===(H=process)||void 0===H||null===(H=H.env)||void 0===H?void 0:H.VITE_VERCEL_GIT_COMMIT_REF,null===(F=process)||void 0===F||null===(F=F.env)||void 0===F?void 0:F.PUBLIC_VERCEL_GIT_COMMIT_REF,null===(j=process)||void 0===j||null===(j=j.env)||void 0===j?void 0:j.VUE_APP_VERCEL_GIT_COMMIT_REF,null===(W=process)||void 0===W||null===(W=W.env)||void 0===W?void 0:W.REDWOOD_ENV_VERCEL_GIT_COMMIT_REF,null===(X=process)||void 0===X||null===(X=X.env)||void 0===X?void 0:X.SANITY_STUDIO_VERCEL_GIT_COMMIT_REF),o=Lr(null===(q=process)||void 0===q||null===(q=q.env)||void 0===q?void 0:q.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,null===(Y=process)||void 0===Y||null===(Y=Y.env)||void 0===Y?void 0:Y.NUXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,null===(z=process)||void 0===z||null===(z=z.env)||void 0===z?void 0:z.NUXT_ENV_VERCEL_GIT_COMMIT_SHA,null===(K=process)||void 0===K||null===(K=K.env)||void 0===K?void 0:K.REACT_APP_VERCEL_GIT_COMMIT_SHA,null===(Q=process)||void 0===Q||null===(Q=Q.env)||void 0===Q?void 0:Q.GATSBY_VERCEL_GIT_COMMIT_SHA,null===(Z=process)||void 0===Z||null===(Z=Z.env)||void 0===Z?void 0:Z.VITE_VERCEL_GIT_COMMIT_SHA,null===($=process)||void 0===$||null===($=$.env)||void 0===$?void 0:$.PUBLIC_VERCEL_GIT_COMMIT_SHA,null===(J=process)||void 0===J||null===(J=J.env)||void 0===J?void 0:J.VUE_APP_VERCEL_GIT_COMMIT_SHA,null===(ee=process)||void 0===ee||null===(ee=ee.env)||void 0===ee?void 0:ee.REDWOOD_ENV_VERCEL_GIT_COMMIT_SHA,null===(ne=process)||void 0===ne||null===(ne=ne.env)||void 0===ne?void 0:ne.SANITY_STUDIO_VERCEL_GIT_COMMIT_SHA),i=Lr(null===(te=process)||void 0===te||null===(te=te.env)||void 0===te?void 0:te.NEXT_PUBLIC_VERCEL_GIT_PULL_REQUEST_ID,null===(re=process)||void 0===re||null===(re=re.env)||void 0===re?void 0:re.NUXT_PUBLIC_VERCEL_GIT_PULL_REQUEST_ID,null===(oe=process)||void 0===oe||null===(oe=oe.env)||void 0===oe?void 0:oe.NUXT_ENV_VERCEL_GIT_PULL_REQUEST_ID,null===(ie=process)||void 0===ie||null===(ie=ie.env)||void 0===ie?void 0:ie.REACT_APP_VERCEL_GIT_PULL_REQUEST_ID,null===(ae=process)||void 0===ae||null===(ae=ae.env)||void 0===ae?void 0:ae.GATSBY_VERCEL_GIT_PULL_REQUEST_ID,null===(le=process)||void 0===le||null===(le=le.env)||void 0===le?void 0:le.VITE_VERCEL_GIT_PULL_REQUEST_ID,null===(ue=process)||void 0===ue||null===(ue=ue.env)||void 0===ue?void 0:ue.PUBLIC_VERCEL_GIT_PULL_REQUEST_ID,null===(se=process)||void 0===se||null===(se=se.env)||void 0===se?void 0:se.VUE_APP_VERCEL_GIT_PULL_REQUEST_ID,null===(ce=process)||void 0===ce||null===(ce=ce.env)||void 0===ce?void 0:ce.REDWOOD_ENV_VERCEL_GIT_PULL_REQUEST_ID,null===(ve=process)||void 0===ve||null===(ve=ve.env)||void 0===ve?void 0:ve.SANITY_STUDIO_VERCEL_GIT_PULL_REQUEST_ID)}catch(e){}return{providerName:e,ownerName:n,repositoryName:t,repositoryUrlFull:Or(e,n,t),refHeadName:r,refHeadRevision:o,changeId:i}}(),_=function(){var e,n,t,r;try{var o,i,a,l,u,s,c,v,d,f,p,h,E,m,_,y,T,g,R,b,I,C,L,N,S,O,A,V,P,w,D,M,G,x,B,k,H,F,j,W;e=Lr(null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.NEXT_PUBLIC_REPOSITORY_URL,null===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.NUXT_PUBLIC_REPOSITORY_URL,null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.NUXT_ENV_REPOSITORY_URL,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.REACT_APP_REPOSITORY_URL,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.GATSBY_REPOSITORY_URL,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.VITE_REPOSITORY_URL,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.PUBLIC_REPOSITORY_URL,null===(v=process)||void 0===v||null===(v=v.env)||void 0===v?void 0:v.VUE_APP_REPOSITORY_URL,null===(d=process)||void 0===d||null===(d=d.env)||void 0===d?void 0:d.REDWOOD_ENV_REPOSITORY_URL,null===(f=process)||void 0===f||null===(f=f.env)||void 0===f?void 0:f.SANITY_STUDIO_REPOSITORY_URL),n=Lr(null===(p=process)||void 0===p||null===(p=p.env)||void 0===p?void 0:p.NEXT_PUBLIC_BRANCH,null===(h=process)||void 0===h||null===(h=h.env)||void 0===h?void 0:h.NUXT_PUBLIC_BRANCH,null===(E=process)||void 0===E||null===(E=E.env)||void 0===E?void 0:E.NUXT_ENV_BRANCH,null===(m=process)||void 0===m||null===(m=m.env)||void 0===m?void 0:m.REACT_APP_BRANCH,null===(_=process)||void 0===_||null===(_=_.env)||void 0===_?void 0:_.GATSBY_BRANCH,null===(y=process)||void 0===y||null===(y=y.env)||void 0===y?void 0:y.VITE_BRANCH,null===(T=process)||void 0===T||null===(T=T.env)||void 0===T?void 0:T.PUBLIC_BRANCH,null===(g=process)||void 0===g||null===(g=g.env)||void 0===g?void 0:g.VUE_APP_BRANCH,null===(R=process)||void 0===R||null===(R=R.env)||void 0===R?void 0:R.REDWOOD_ENV_BRANCH,null===(b=process)||void 0===b||null===(b=b.env)||void 0===b?void 0:b.SANITY_STUDIO_BRANCH),t=Lr(null===(I=process)||void 0===I||null===(I=I.env)||void 0===I?void 0:I.NEXT_PUBLIC_COMMIT_REF,null===(C=process)||void 0===C||null===(C=C.env)||void 0===C?void 0:C.NUXT_PUBLIC_COMMIT_REF,null===(L=process)||void 0===L||null===(L=L.env)||void 0===L?void 0:L.NUXT_ENV_COMMIT_REF,null===(N=process)||void 0===N||null===(N=N.env)||void 0===N?void 0:N.REACT_APP_COMMIT_REF,null===(S=process)||void 0===S||null===(S=S.env)||void 0===S?void 0:S.GATSBY_COMMIT_REF,null===(O=process)||void 0===O||null===(O=O.env)||void 0===O?void 0:O.VITE_COMMIT_REF,null===(A=process)||void 0===A||null===(A=A.env)||void 0===A?void 0:A.PUBLIC_COMMIT_REF,null===(V=process)||void 0===V||null===(V=V.env)||void 0===V?void 0:V.VUE_APP_COMMIT_REF,null===(P=process)||void 0===P||null===(P=P.env)||void 0===P?void 0:P.REDWOOD_ENV_COMMIT_REF,null===(w=process)||void 0===w||null===(w=w.env)||void 0===w?void 0:w.SANITY_STUDIO_COMMIT_REF),r=Lr(null===(D=process)||void 0===D||null===(D=D.env)||void 0===D?void 0:D.NEXT_PUBLIC_REVIEW_ID,null===(M=process)||void 0===M||null===(M=M.env)||void 0===M?void 0:M.NUXT_PUBLIC_REVIEW_ID,null===(G=process)||void 0===G||null===(G=G.env)||void 0===G?void 0:G.NUXT_ENV_REVIEW_ID,null===(x=process)||void 0===x||null===(x=x.env)||void 0===x?void 0:x.REACT_APP_REVIEW_ID,null===(B=process)||void 0===B||null===(B=B.env)||void 0===B?void 0:B.GATSBY_REVIEW_ID,null===(k=process)||void 0===k||null===(k=k.env)||void 0===k?void 0:k.VITE_REVIEW_ID,null===(H=process)||void 0===H||null===(H=H.env)||void 0===H?void 0:H.PUBLIC_REVIEW_ID,null===(F=process)||void 0===F||null===(F=F.env)||void 0===F?void 0:F.VUE_APP_REVIEW_ID,null===(j=process)||void 0===j||null===(j=j.env)||void 0===j?void 0:j.REDWOOD_ENV_REVIEW_ID,null===(W=process)||void 0===W||null===(W=W.env)||void 0===W?void 0:W.SANITY_STUDIO_REVIEW_ID)}catch(e){}var X=function(e){if(!e)return;var n,t;try{var r=new URL(e);n=r.host,t=r.pathname}catch(e){return}var o=function(e){for(var n=0,t=Object.entries(Ar);n<t.length;n++){var r=U(t[n],2),o=r[0];if(r[1].includes(e))return o}return}(n);if(!o)return;var i=t.replace(/^\/+/,"").replace(/\.git$/,"").split("/");if(i.length<2)return;var a=i[0],l=i[i.length-1];return a&&l?{providerName:o,ownerName:a,repositoryName:l}:void 0}(e);return{providerName:null==X?void 0:X.providerName,ownerName:null==X?void 0:X.ownerName,repositoryName:null==X?void 0:X.repositoryName,repositoryUrlFull:e,refHeadName:n,refHeadRevision:t,changeId:r}}();return{providerName:null!==(t=null!==(r=E.providerName)&&void 0!==r?r:m.providerName)&&void 0!==t?t:_.providerName,ownerName:null!==(o=null!==(i=E.ownerName)&&void 0!==i?i:m.ownerName)&&void 0!==o?o:_.ownerName,repositoryName:null!==(a=null!==(l=E.repositoryName)&&void 0!==l?l:m.repositoryName)&&void 0!==a?a:_.repositoryName,repositoryUrlFull:null!==(u=null!==(s=E.repositoryUrlFull)&&void 0!==s?s:m.repositoryUrlFull)&&void 0!==u?u:_.repositoryUrlFull,refHeadName:null!==(c=null!==(v=E.refHeadName)&&void 0!==v?v:m.refHeadName)&&void 0!==c?c:_.refHeadName,refHeadRevision:null!==(d=null!==(f=E.refHeadRevision)&&void 0!==f?f:m.refHeadRevision)&&void 0!==d?d:_.refHeadRevision,changeId:null!==(p=null!==(h=E.changeId)&&void 0!==h?h:m.changeId)&&void 0!==p?p:_.changeId}}(e),t=0,r=Object.keys(Nr);t<r.length;t++){var o=r[t],i=n[o];i&&vn(fe.resource.attributes,Nr[o],i)}}function Or(e,n,t){if(e&&n&&t){var r=function(e){var n;return null===(n=Ar[e])||void 0===n?void 0:n[0]}(e);if(r)return"https://".concat(r,"/").concat(n,"/").concat(t)}}var Ar={github:["github.com","gist.github.com"],gitlab:["gitlab.com"],bitbucket:["bitbucket.org"]};var Vr=!1;function Pr(e,n){var t=n.enabledInstrumentations;return!t||t.includes(e)}var wr={init:function(e){if(Vr)l("Dash0 SDK is being reinitialized, skipping ...");else if(null!=v)if("function"==typeof E&&h&&h.getEntriesByType){var n,t,r=e.serviceName.trim();if(r){if(!1!==e.rejectSuspiciousServiceName&&(t=r,oe.test(t))){var o;l("serviceName contains disallowed characters. Falling back to location.hostname."),e.serviceName=null!==(o=null==p?void 0:p.hostname)&&void 0!==o?o:"unknown"}}else l("Missing or empty serviceName value. Falling back to location.hostname."),e.serviceName=null!==(n=null==p?void 0:p.hostname)&&void 0!==n?n:"unknown";if(fe.endpoints=e.endpoint instanceof Array?e.endpoint:[e.endpoint],0!==fe.endpoints.length){if(Object.assign(fe,function(e,n){for(var t=P({},e),r=0,o=Object.keys(n);r<o.length;r++){var i=o[r],a=n[i],l=e[i];void 0!==a&&(null===a||"object"!==G(a)||Array.isArray(a)||"object"!==G(l)||null===l||Array.isArray(l)?t[i]=a:t[i]=P(P({},l),a))}return t}(fe,function(e,n){var t,r={},o=O(n);try{for(o.s();!(t=o.n()).done;){var i=t.value;i in e&&(r[i]=e[i])}}catch(e){o.e(e)}finally{o.f()}return r}(e,["ignoreUrls","ignoreErrorMessages","wrapEventHandlers","wrapTimers","propagateTraceHeadersCorsURLs","maxWaitForResourceTimingsMillis","maxToleranceForResourceTimingsMillis","headersToCapture","urlAttributeScrubber","pageViewInstrumentation","enableTransportCompression"]))),function(e){e.propagators?(e.propagateTraceHeadersCorsURLs&&i("Both 'propagators' and deprecated 'propagateTraceHeadersCorsURLs' were provided. Using 'propagators' configuration. Please migrate to the new 'propagators' config."),fe.propagators=e.propagators):e.propagateTraceHeadersCorsURLs&&e.propagateTraceHeadersCorsURLs.length>0?(i("'propagateTraceHeadersCorsURLs' is deprecated. Please use the new 'propagators' configuration."),fe.propagators=[{type:"traceparent",match:D(e.propagateTraceHeadersCorsURLs)}]):fe.propagators=[{type:"traceparent",match:[]}]}(e),function(e){vn(fe.resource.attributes,Ve,e.serviceName),e.serviceNamespace&&vn(fe.resource.attributes,Pe,e.serviceNamespace);e.serviceVersion&&vn(fe.resource.attributes,we,e.serviceVersion);var n=function(e){if(e.environment)return e.environment;try{var n,t,r,o,i,a,l,u,s,c;return Lr(null===(n=process)||void 0===n||null===(n=n.env)||void 0===n?void 0:n.NEXT_PUBLIC_VERCEL_ENV,null===(t=process)||void 0===t||null===(t=t.env)||void 0===t?void 0:t.NUXT_PUBLIC_VERCEL_ENV,null===(r=process)||void 0===r||null===(r=r.env)||void 0===r?void 0:r.NUXT_ENV_VERCEL_ENV,null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.REACT_APP_VERCEL_ENV,null===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.GATSBY_VERCEL_ENV,null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.VITE_VERCEL_ENV,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.PUBLIC_VERCEL_ENV,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.VUE_APP_VERCEL_ENV,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.REDWOOD_ENV_VERCEL_ENV,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.SANITY_STUDIO_VERCEL_ENV)}catch(e){return}}(e);n&&vn(fe.resource.attributes,Ue,n);var t=function(e){if(e.deploymentName)return e.deploymentName;try{var n,t,r,o,i,a,l,u,s,c;return Lr(null===(n=process)||void 0===n||null===(n=n.env)||void 0===n?void 0:n.NEXT_PUBLIC_VERCEL_TARGET_ENV,null===(t=process)||void 0===t||null===(t=t.env)||void 0===t?void 0:t.NUXT_PUBLIC_VERCEL_TARGET_ENV,null===(r=process)||void 0===r||null===(r=r.env)||void 0===r?void 0:r.NUXT_ENV_VERCEL_TARGET_ENV,null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.REACT_APP_VERCEL_TARGET_ENV,null===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.GATSBY_VERCEL_TARGET_ENV,null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.VITE_VERCEL_TARGET_ENV,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.PUBLIC_VERCEL_TARGET_ENV,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.VUE_APP_VERCEL_TARGET_ENV,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.REDWOOD_ENV_VERCEL_TARGET_ENV,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.SANITY_STUDIO_VERCEL_TARGET_ENV)}catch(e){return}}(e);t&&vn(fe.resource.attributes,De,t);var r=function(e){if(e.deploymentId)return e.deploymentId;try{var n,t,r,o,i,a,l,u,s,c;return Lr(null===(n=process)||void 0===n||null===(n=n.env)||void 0===n?void 0:n.NEXT_PUBLIC_VERCEL_BRANCH_URL,null===(t=process)||void 0===t||null===(t=t.env)||void 0===t?void 0:t.NUXT_PUBLIC_VERCEL_BRANCH_URL,null===(r=process)||void 0===r||null===(r=r.env)||void 0===r?void 0:r.NUXT_ENV_VERCEL_BRANCH_URL,null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.REACT_APP_VERCEL_BRANCH_URL,null===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.GATSBY_VERCEL_BRANCH_URL,null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.VITE_VERCEL_BRANCH_URL,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.PUBLIC_VERCEL_BRANCH_URL,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.VUE_APP_VERCEL_BRANCH_URL,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.REDWOOD_ENV_VERCEL_BRANCH_URL,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.SANITY_STUDIO_VERCEL_BRANCH_URL)}catch(e){return}}(e);r&&vn(fe.resource.attributes,Me,r);Sr(e)}(e),function(e){var n;vn(fe.signalAttributes,Be,T(16)),vn(fe.signalAttributes,ke,null!==(n=null==f?void 0:f.userAgent)&&void 0!==n?n:ee),e.additionalSignalAttributes&&Object.entries(e.additionalSignalAttributes).forEach((function(e){var n=U(e,2),t=n[0],r=n[1];vn(fe.signalAttributes,t,r)}))}(e),xn(),Cn(e.sessionInactivityTimeoutMillis,e.sessionTerminationTimeoutMillis),null!=e.sessionSamplingRate){var a=Math.max(0,Math.min(100,e.sessionSamplingRate));fe.isSessionSampled=null!=In?function(e,n){return!(n<=0)&&(n>=100||de(e)%100<n)}(In,a):a>0}if(!fe.isSessionSampled)return l("Session is not sampled. No telemetry will be transmitted for this session."),void(Vr=!0);Pr("@dash0/navigation",e)&&Cr(),Pr("@dash0/web-vitals",e)&&At(),Pr("@dash0/error",e)&&Wt(),Pr("@dash0/fetch",e)&&(v&&v.fetch&&v.Request?le(v,"fetch",rr):l("Browser does not support the Fetch API, skipping instrumentation")),Pr("@dash0/xhr",e)&&function(){if(v&&v.XMLHttpRequest){var e=v.XMLHttpRequest.prototype;le(e,"open",cr),le(e,"setRequestHeader",dr),le(e,"send",fr)}else l("Browser does not support XMLHttpRequest, skipping instrumentation")}(),Vr=!0}else i("No telemetry endpoint configured. Aborting Dash0 Web SDK initialization process.")}else l("Stopping Dash0 Web SDK initialization. This browser does not support the necessary APIs.");else l("Looks like we are not running in a browser context. Stopping Dash0 Web SDK initialization.")},debug:function(){l("Dash0 Web SDK configuration state:",fe)},identify:function(e,n){fn(fe.signalAttributes,He),null!=e&&vn(fe.signalAttributes,He,e),fn(fe.signalAttributes,Fe),null!=(null==n?void 0:n.name)&&vn(fe.signalAttributes,Fe,n.name),fn(fe.signalAttributes,je),null!=(null==n?void 0:n.fullName)&&vn(fe.signalAttributes,je,n.fullName),fn(fe.signalAttributes,We),null!=(null==n?void 0:n.email)&&vn(fe.signalAttributes,We,n.email),fn(fe.signalAttributes,Xe),null!=(null==n?void 0:n.hash)&&vn(fe.signalAttributes,Xe,n.hash),fn(fe.signalAttributes,qe),null!=(null==n?void 0:n.roles)&&vn(fe.signalAttributes,qe,n.roles)},terminateSession:function(){if(b)try{!function(e){b&&m&&m.removeItem(e)}(gn)}catch(e){o("Failed to terminate session",e)}},reportError:function(e,n){qn(e,n)},addSignalAttribute:function(e,n){vn(fe.signalAttributes,e,n)},removeSignalAttribute:function(e){fn(fe.signalAttributes,e)},setActiveLogLevel:function(e){var n;r=null!==(n=t[e])&&void 0!==n?n:t.warn},sendEvent:function(e,n){if(Object.values(nn).includes(e))i("Unable to send custom event ".concat(e,". You are not allowed to use an internal event name while sending a custom event. Dropping event..."));else{var t=[];Bn(t),vn(t,Ge,e),null!=n&&n.title&&vn(t,"dash0.web.event.title",n.title),dn(t,null==n?void 0:n.attributes),Oe({timeUnixNano:null!=(null==n?void 0:n.timestamp)?H(n.timestamp):k(),attributes:t,body:sn(null==n?void 0:n.data),severityText:null==n?void 0:n.severity,severityNumber:null!=n&&n.severity?tn[n.severity]:void 0})}}};function Ur(e){var n=e[0],t=wr[n];if(t){for(var r=[],o=1;o<e.length;o++)r.push(e[o]);t.apply(null,r)}else i("Unsupported Dash0 Web SDK api: ",e[0])}!function(){l("".concat("Initializing Dash0 Web SDK"," (via Script)"));var e=v.dash0;if(!e)return void i("global 'dash0' not found. Did you use the correct Dash0 Web SDK initializer?");if(!e._q)return void i("Dash0 Web SDK command queue not defined. Did you add the script tag multiple times to your website?");(function(e){for(var n=0,t=e.length;n<t;n++)Ur(e[n])})(e._q),v.dash0=function(){return Ur(arguments)}}()}();
1
+ !function(){"use strict";function e(){}function n(e){return e}var t={debug:0,info:1,warn:2,error:3},r=t.warn;var i=u("info"),o=u("warn"),a=u("error"),l=u("debug");function u(n){if("undefined"!=typeof console&&console[n]&&"function"==typeof console[n].apply){var i=t[n];return function(){i>=r&&console[n].apply(console,arguments)}}return e}var s=Object.prototype.hasOwnProperty;function c(e,n){return s.call(e,n)}var v="undefined"!=typeof window?window:void 0,d=null==v?void 0:v.document,f=null==v?void 0:v.navigator,p="undefined"!=typeof location?location:void 0,h=(null==v?void 0:v.performance)||(null==v?void 0:v.webkitPerformance)||(null==v?void 0:v.msPerformance)||(null==v?void 0:v.mozPerformance);null==v||v.encodeURIComponent;var E=null==v?void 0:v.fetch,m=function(){try{var e;return null!==(e=null==v?void 0:v.localStorage)&&void 0!==e?e:null}catch(e){return null}}(),_=function(){try{var e;return null!==(e=null==v?void 0:v.sessionStorage)&&void 0!==e?e:null}catch(e){return null}}(),y=Array(32);function g(e){for(var n=0;n<2*e;n++)y[n]=Math.floor(16*Math.random())+48,y[n]>=58&&(y[n]+=39);return String.fromCharCode.apply(null,y.slice(0,2*e))}function T(e,n,t){e.addEventListener?e.addEventListener(n,t,!1):e.attachEvent&&e.attachEvent("on"+n,t)}function R(e,n,t){e.removeEventListener?e.removeEventListener(n,t,!1):e.detachEvent&&e.detachEvent("on"+n,t)}var b=null!=m&&"function"==typeof m.getItem&&"function"==typeof m.setItem;function I(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function C(e,n,t,r,i,o,a){try{var l=e[o](a),u=l.value}catch(e){return void t(e)}l.done?n(u):Promise.resolve(u).then(r,i)}function L(e){return function(){var n=this,t=arguments;return new Promise((function(r,i){var o=e.apply(n,t);function a(e){C(o,r,i,a,l,"next",e)}function l(e){C(o,r,i,a,l,"throw",e)}a(void 0)}))}}function N(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function S(e,n,t){return n&&function(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,M(r.key),r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function O(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=x(e))||n){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(l)throw o}}}}function A(e,n,t){return(n=M(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function V(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?V(Object(t),!0).forEach((function(n){A(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):V(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function P(){P=function(){return n};var e,n={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,n,t){e[n]=t.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{s({},"")}catch(e){s=function(e,n,t){return e[n]=t}}function c(e,n,t,r){var o=n&&n.prototype instanceof m?n:m,a=Object.create(o.prototype),l=new A(r||[]);return i(a,"_invoke",{value:L(e,t,l)}),a}function v(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}n.wrap=c;var d="suspendedStart",f="suspendedYield",p="executing",h="completed",E={};function m(){}function _(){}function y(){}var g={};s(g,a,(function(){return this}));var T=Object.getPrototypeOf,R=T&&T(T(V([])));R&&R!==t&&r.call(R,a)&&(g=R);var b=y.prototype=m.prototype=Object.create(g);function I(e){["next","throw","return"].forEach((function(n){s(e,n,(function(e){return this._invoke(n,e)}))}))}function C(e,n){function t(i,o,a,l){var u=v(e[i],e,o);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==typeof c&&r.call(c,"__await")?n.resolve(c.__await).then((function(e){t("next",e,a,l)}),(function(e){t("throw",e,a,l)})):n.resolve(c).then((function(e){s.value=e,a(s)}),(function(e){return t("throw",e,a,l)}))}l(u.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new n((function(n,i){t(e,r,n,i)}))}return o=o?o.then(i,i):i()}})}function L(n,t,r){var i=d;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===h){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var l=r.delegate;if(l){var u=N(l,r);if(u){if(u===E)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var s=v(n,t,r);if("normal"===s.type){if(i=r.done?h:f,s.arg===E)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(i=h,r.method="throw",r.arg=s.arg)}}}function N(n,t){var r=t.method,i=n.iterator[r];if(i===e)return t.delegate=null,"throw"===r&&n.iterator.return&&(t.method="return",t.arg=e,N(n,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),E;var o=v(i,n.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,E;var a=o.arg;return a?a.done?(t[n.resultName]=a.value,t.next=n.nextLoc,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,E):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,E)}function S(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function O(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function V(n){if(n||""===n){var t=n[a];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,o=function t(){for(;++i<n.length;)if(r.call(n,i))return t.value=n[i],t.done=!1,t;return t.value=e,t.done=!0,t};return o.next=o}}throw new TypeError(typeof n+" is not iterable")}return _.prototype=y,i(b,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:_,configurable:!0}),_.displayName=s(y,u,"GeneratorFunction"),n.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===_||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,u,"GeneratorFunction")),e.prototype=Object.create(b),e},n.awrap=function(e){return{__await:e}},I(C.prototype),s(C.prototype,l,(function(){return this})),n.AsyncIterator=C,n.async=function(e,t,r,i,o){void 0===o&&(o=Promise);var a=new C(c(e,t,r,i),o);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},I(b),s(b,u,"Generator"),s(b,a,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var n=Object(e),t=[];for(var r in n)t.push(r);return t.reverse(),function e(){for(;t.length;){var r=t.pop();if(r in n)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=V,A.prototype={constructor:A,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!n)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var t=this;function i(r,i){return l.type="throw",l.arg=n,t.next=r,i&&(t.method="next",t.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],l=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,n){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=n&&n<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=n,o?(this.method="next",this.next=o.finallyLoc,E):this.complete(a)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),E},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),O(t),E}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var i=r.arg;O(t)}return i}}throw Error("illegal catch attempt")},delegateYield:function(n,t,r){return this.delegate={iterator:V(n),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=e),E}},n}function U(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(t=t.call(e)).next,0===n);else for(;!(u=(r=o.call(t)).done)&&(l.push(r.value),l.length!==n);u=!0);}catch(e){s=!0,i=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,n)||x(e,n)||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){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e){var n=function(e,n){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==typeof n?n:n+""}function G(e){return G="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},G(e)}function x(e,n){if(e){if("string"==typeof e)return I(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?I(e,n):void 0}}function B(){return(new Date).getTime()}function k(){var e=F(),n=new Date;if(e){var t=h.now()+e,r=n.getTime();if(Math.abs(t-r)<6e4)return String(1e6*t)}return H(n)}function H(e){return"object"===G(e)?H(e.getTime()):String(e)+"000000"}function F(){var e,n=null==h?void 0:h.timeOrigin;"number"!=typeof n&&(n=null==h||null===(e=h.timing)||void 0===e?void 0:e.fetchStart);return n}var j={setTimeout:null==v?void 0:v.setTimeout,clearTimeout:null==v?void 0:v.clearTimeout,setInterval:null==v?void 0:v.setInterval,clearInterval:null==v?void 0:v.clearInterval},W=null!=v&&null!=v.Zone&&null!=v.Zone.root&&"function"==typeof v.Zone.root.run;function X(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return z.apply("setTimeout",arguments)}function q(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return z.apply("clearTimeout",arguments)}function Y(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return z.apply("setInterval",arguments)}function z(){var e,n=this;if(W)try{var t=Array.prototype.slice.apply(arguments);return v.Zone.root.run(j[n],v,t)}catch(e){o("Failed to execute %s inside of zone (via Zone.js). Falling back to execution inside currently active zone.",n,e)}return null===(e=j[n])||void 0===e?void 0:e.apply(v,arguments)}W&&l("Discovered Zone.js globals. Will attempt to register all timers inside the root Zone.");h&&h.getEntriesByType;var K=h&&"function"==typeof v.PerformanceObserver&&"function"==typeof h.now,Q=Object.freeze({CONNECT_END:"connectEnd",CONNECT_START:"connectStart",DECODED_BODY_SIZE:"decodedBodySize",DOM_COMPLETE:"domComplete",DOM_CONTENT_LOADED_EVENT_END:"domContentLoadedEventEnd",DOM_CONTENT_LOADED_EVENT_START:"domContentLoadedEventStart",DOM_INTERACTIVE:"domInteractive",DOMAIN_LOOKUP_END:"domainLookupEnd",DOMAIN_LOOKUP_START:"domainLookupStart",ENCODED_BODY_SIZE:"encodedBodySize",FETCH_START:"fetchStart",LOAD_EVENT_END:"loadEventEnd",LOAD_EVENT_START:"loadEventStart",NAVIGATION_START:"navigationStart",REDIRECT_END:"redirectEnd",REDIRECT_START:"redirectStart",REQUEST_START:"requestStart",RESPONSE_END:"responseEnd",RESPONSE_START:"responseStart",SECURE_CONNECTION_START:"secureConnectionStart",START_TIME:"startTime",UNLOAD_EVENT_END:"unloadEventEnd",UNLOAD_EVENT_START:"unloadEventStart"}),Z=new WeakSet;function $(n){if(!K)return function(n){var t=0;return{start:function(){t=B()},end:function(){return n({duration:B()-t})},cancel:e}}(n.onEnd);var t,r,i,o,a,l=[];return{start:function(){t=h.now();try{var e,n=null==v?void 0:v.PerformanceObserver;if(n)null===(e=i=new n(s))||void 0===e||e.observe({type:"resource"})}catch(e){}a=X(f,6e5)},end:function(e){if(r)return;if(r=null!=e?e:h.now(),p(),!J())return u();X((function(){return u()}),Math.min(300,n.maxWaitForResourceMillis)),T(d,"visibilitychange",c),o=X(u,n.maxWaitForResourceMillis)},cancel:f};function u(){f();var e=function(){if(!l.length)return;var e,i,o=l.filter((function(e){return e.responseEnd<=r+n.maxToleranceForResourceTimingsMillis&&!Z.has(e)}));if(!o.length)return;1===o.length&&(e=o[0]);if(!e){var a,u=O(o);try{for(u.s();!(a=u.n()).done;){var s=a.value,c=Math.abs(r-t-s.duration)+Math.abs(s.responseEnd-r);(void 0===i||c<i)&&(i=c,e=s)}}catch(e){u.e(e)}finally{u.f()}}if(!e)return;return Z.add(e),e}();null!=e&&e.duration&&e.duration<864e5?n.onEnd({resource:e,duration:e.duration}):n.onEnd({resource:e,duration:r-t})}function s(e){e.getEntriesByType("resource").filter((function(e){var r=e;return r.startTime>=t&&n.resourceMatcher(r)})).forEach((function(e){l.length>=100&&l.shift(),l.push(e)}))}function c(){J()||u()}function f(){!function(){if(i){try{var e;null===(e=i)||void 0===e||e.disconnect()}catch(e){}i=void 0}}(),o&&(clearTimeout(o),o=void 0),p(),function(){if(!d)return;R(d,"visibilitychange",c)}()}function p(){a&&(clearTimeout(a),a=void 0)}}function J(){return"visible"===(null==d?void 0:d.visibilityState)||"prerender"===(null==d?void 0:d.visibilityState)}var ee="undefined";function ne(e){return Math.round(100*e)/100}function te(e){var n;return"string"!=typeof e?e:new URL(e,null!==(n=null==d?void 0:d.baseURI)&&void 0!==n?n:null==p?void 0:p.href)}function re(e){try{return te(e).origin===("undefined"!=typeof location?location.origin:void 0)}catch(e){return!1}}var ie=/['"<>{};\x00-\x1F\x7F]/;var oe=Symbol.for("INSTRUMENTED_BY_DASH0");function ae(e){e[oe]=!0}function le(e,n,t){var r=e[n];if(r)if(!0!==r[oe])try{var i=t(r);ae(r),i&&ae(i),e[n]=i}catch(e){o("failed to instrument ".concat(String(n),", the page may have locked the property"),e)}else l("".concat(String(n)," has already been instrumented, skipping"));else l("".concat(String(n)," is not defined, unable to instrument"))}for(var ue=new Uint32Array(256),se=0;se<256;se++){for(var ce=se,ve=0;ve<8;ve++)ce=1&ce?3988292384^ce>>>1:ce>>>1;ue[se]=ce>>>0}function de(e){for(var n=new Uint8Array(e.length/2),t=0;t<e.length;t+=2)n[t/2]=parseInt(e.substring(t,t+2),16);for(var r=4294967295,i=0;i<n.length;i++){var o=n[i];r=r>>>8^ue[255&(r^o)]}return(4294967295^r)>>>0}var fe={endpoints:[],resource:{attributes:[]},scope:{name:"dash0-web-sdk",version:"0.24.0",attributes:[]},signalAttributes:[],ignoreUrls:[],ignoreErrorMessages:[],wrapEventHandlers:!0,wrapTimers:!0,propagateTraceHeadersCorsURLs:[],maxWaitForResourceTimingsMillis:1e4,maxToleranceForResourceTimingsMillis:50,headersToCapture:[],urlAttributeScrubber:n,pageViewInstrumentation:{trackVirtualPageViews:!0,includeParts:[]},enableTransportCompression:!1,isSessionSampled:!0};function pe(e,n){for(var t=0,r=e.length;t<r;t++)if(e[t].test(n))return!0;return!1}var he="data:";function Ee(e){return!e||(!(e=String(e))||(null==e.substring||e.substring(0,5).toLowerCase()===he||(!!function(e){for(var n=e.toLowerCase(),t=0,r=fe.endpoints.length;t<r;t++){var i=fe.endpoints[t];if(n.startsWith(i.url))return!0}return!1}(e)||pe(fe.ignoreUrls,e))))}var me=!1;function _e(e){var n,t,r=[];return t=i,me&&t(),d&&v&&(T(d,"visibilitychange",(function(){"visible"!==d.visibilityState&&t()})),T(v,"pagehide",(function(){me=!0,t()})),T(v,"beforeunload",(function(){me=!0,t()}))),{send:function(t){"visible"===(null==d?void 0:d.visibilityState)?(r.push(t),r.length>=15?i():null==n&&(n=X(i,1e3))):e([t])}};function i(){null!=n&&(clearTimeout(n),n=null),r.length>0&&(e(r.slice()),r.length=0)}}var ye=0,ge=0;function Te(e,n){return Re.apply(this,arguments)}function Re(){return Re=L(P().mark((function n(t,r){var i,a,u,s;return P().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(l("Transmitting telemetry to endpoints",r),i=JSON.stringify(r),a=i,u=new Blob([i]).size,s=!1,"undefined"==typeof CompressionStream||!fe.enableTransportCompression){n.next=11;break}return n.next=8,be(i);case 8:a=n.sent,u=a.byteLength,s=!0;case 11:return n.next=13,Promise.all(fe.endpoints.map(function(){var n=L(P().mark((function n(r){var i,l,c;return P().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,(i=new URL(r.url)).pathname=i.pathname+(i.pathname.endsWith("/")?t.substring(1):t),l={"Content-Type":"application/json",Authorization:"Bearer ".concat(r.authToken)},r.dataset&&(l["Dash0-Dataset"]=r.dataset),s&&(l["Content-Encoding"]="gzip"),E){n.next=9;break}return o("Unable to send telemetry, fetch is not defined"),n.abrupt("return");case 9:return ye+=u,ge++,n.next=13,E(i,{method:"POST",headers:l,body:a,keepalive:ye<=6e4&&ge<=15});case 13:(c=n.sent).text().catch(e),c.ok||o("Failed to send telemetry to ".concat(i,": ").concat(c.status," ").concat(c.statusText)),n.next=21;break;case 18:n.prev=18,n.t0=n.catch(0),o("Error sending telemetry to ".concat(r.url).concat(t,":"),n.t0);case 21:return n.prev=21,ye-=u,ge--,n.finish(21);case 25:case"end":return n.stop()}}),n,null,[[0,18,21,25]])})));return function(e){return n.apply(this,arguments)}}()));case 13:case"end":return n.stop()}}),n)}))),Re.apply(this,arguments)}function be(e){return Ie.apply(this,arguments)}function Ie(){return(Ie=L(P().mark((function e(n){var t,r,i;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new Blob([n]),r=t.stream(),i=r.pipeThrough(new CompressionStream("gzip")),e.abrupt("return",new Response(i).arrayBuffer());case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ce,Le=_e((function(e){Te("/v1/logs",{resourceLogs:[{resource:fe.resource,scopeLogs:[{scope:fe.scope,logRecords:e}]}]}).catch((function(e){a("Failed to transmit logs",e)}))})),Ne=_e((function(e){Te("/v1/traces",{resourceSpans:[{resource:fe.resource,scopeSpans:[{scope:fe.scope,spans:e}]}]}).catch((function(e){a("Failed to transmit spans",e)}))}));function Se(){var e,n,t,r,i;return Ce||(n=(e={maxCallsPerTenMinutes:4096,maxCallsPerTenSeconds:128}).maxCallsPerTenMinutes,t=e.maxCallsPerTenSeconds,r=0,i=0,Y((function(){r=0}),6e5),Y((function(){i=0}),1e4),Ce=function(){return++r>n||++i>t}),Ce()}function Oe(e){fe.isSessionSampled&&(Se()?l("Transport rate limit. Will not send item.",e):Le.send(e))}function Ae(e){e&&fe.isSessionSampled&&(Se()?l("Transport rate limit. Will not send item.",e):Ne.send(e))}var Ve="service.name",we="service.namespace",Pe="service.version",Ue="deployment.environment.name",De="deployment.name",Me="deployment.id",Ge="event.name",xe="dash0.web.event.id",Be="page.load.id",ke="user_agent.original",He="user.id",Fe="user.name",je="user.full_name",We="user.email",Xe="user.hash",qe="user.roles",Ye="exception.message",ze="exception.type",Ke="exception.stacktrace",Qe="error.type",Ze="url.full",$e="http.request.method",Je="http.request.method_original",en="http.response.status_code",nn={PAGE_VIEW:"browser.page_view",NAVIGATION_TIMING:"browser.navigation_timing",WEB_VITAL:"browser.web_vital",ERROR:"browser.error"},tn={UNSPECIFIED:0,TRACE:1,DEBUG:5,INFO:9,WARN:13,ERROR:17,FATAL:21},rn=0,on=1,an="pushState",ln="replaceState",un=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"];function sn(e){if(null!=e){var n={};return Array.isArray(e)?n.arrayValue={values:e.map((function(e){return sn(e)}))}:"string"==typeof e?n.stringValue=e:"number"==typeof e?n.doubleValue=e:"boolean"==typeof e?n.boolValue=e:!function(e){if(null==e||"object"!==G(e))return!1;var n=Object.keys(e);return 1===n.length&&un.includes(n[0])}(e)?"object"===G(e)&&(n.kvlistValue={values:Object.entries(e).map((function(e){var n=U(e,2);return cn(n[0],n[1])}))}):n=e,n}}function cn(e,n){return{key:e,value:sn(n)}}function vn(e,n,t){n&&e.push(cn(n,t))}function dn(e,n){n&&Object.entries(n).forEach((function(n){var t=U(n,2),r=t[0],i=t[1];return vn(e,r,i)}))}function fn(e,n){var t=e.findIndex((function(e){return e.key===n}));-1!==t&&e.splice(t,1)}var pn="traceparent",hn=/^00-([a-f0-9]{32})-([a-f0-9]{16})-[0-9]{1,2}$/;function En(){var e,n,t=((null===(e=Array.from(null!==(n=null==d?void 0:d.getElementsByTagName("meta"))&&void 0!==n?n:[]).find((function(e){var n;return(null===(n=e.getAttribute("name"))||void 0===n?void 0:n.toLowerCase())===pn})))||void 0===e?void 0:e.content.trim())||"").match(hn)||function(){var e=h.getEntriesByType("navigation")[0];if(!e)return"";if(!e.serverTiming)return"";return function(e){var n,t=O(e);try{for(t.s();!(n=t.n()).done;){var r=n.value;if(r.name===pn)return r.description.trim()}}catch(e){t.e(e)}finally{t.f()}return""}(e.serverTiming)}().match(hn);if(t)return{traceId:t[1],spanId:t[2]}}function mn(e,n,t){e.call(n,"traceparent","00-".concat(t.traceId,"-").concat(t.spanId,"-01"))}function _n(e,n,t){var r,i,o,a=(r=t.traceId,i=r.substring(0,8),o=r.substring(8,32),"1-".concat(i,"-").concat(o)),l="Root=".concat(a,";Parent=").concat(t.spanId,";Sampled=1");e.call(n,"X-Amzn-Trace-Id",l)}var yn=1;function gn(){var e,n;return"".concat((e={ephemeralSession:!b},n=0,e.ephemeralSession&&(n|=yn),n.toString(16).padStart(2,"0"))).concat(g(7))}var Tn="d0_session",Rn="#",bn=864e5,In=null;function Cn(e,n){if(!b)return l("Storage API is not available and session tracking is therefore not supported."),void(In=gn());e||(e=108e5),n||(n=216e5),e=Math.min(e,bn),n=Math.min(n,bn);try{var t=function(e){return b&&m?m.getItem(e):null}(Tn),r=function(e){if(!e)return null;var n=e.split(Rn);if(n.length<3)return null;var t=n[0],r=parseInt(n[1],10),i=parseInt(n[2],10);if(!t||isNaN(r)||isNaN(i))return null;return{id:t,startTime:r,lastActivityTime:i}}(t);r&&!function(e,n,t){var r=B()-n;if(e.lastActivityTime<r)return!1;var i=B()-t;return e.startTime>=i}(r,e,n)&&(r=null),r?r.lastActivityTime=B():r={id:gn(),startTime:B(),lastActivityTime:B()},function(e,n){b&&m&&m.setItem(e,n)}(Tn,function(e){return e.id+Rn+e.startTime+Rn+e.lastActivityTime}(r)),In=r.id}catch(e){o("Failed to record session information",e)}}var Ln="d042",Nn=1;function Sn(e){var n=0;return e.withoutSession&&(n|=Nn),n.toString(16).padStart(2,"0")}function On(e){var n=function(e){return e?"".concat(Ln).concat(Sn({withoutSession:!1})).concat(e).concat(g(5)):"".concat(Ln).concat(Sn({withoutSession:!0})).concat(g(13))}(In),t=function(e){var n=de(e).toString(16).padStart(8,"0");return"".concat(n).concat(g(4))}(n),r=[];return vn(r,xe,t),{traceId:n,spanId:t,name:e,kind:3,startTimeUnixNano:k(),attributes:r,events:[],links:[],status:{code:0}}}function An(e,n,t){var r=e;if(!r.endTimeUnixNano)return n&&(r.status=n),r.endTimeUnixNano=null!=t?String(Math.round(parseInt(r.startTimeUnixNano)+t)):k(),r;l("Attempting to end already ended span. Dropping...",r)}function Vn(e,n,t,r){var i=void 0,o=void 0;"string"==typeof t?i=t:Array.isArray(t)&&(o=t),e.events.push({name:n,timeUnixNano:null!=i?i:k(),attributes:null!=o?o:[]})}function wn(e,n,t){e.status={code:n,message:t}}function Pn(e,n){var t=[];"string"==typeof n?vn(t,Ye,n):n&&(n.code?vn(t,ze,n.code.toString()):n.name&&vn(t,ze,n.name),n.message&&vn(t,Ye,n.message),n.stack&&vn(t,Ke,n.stack),Vn(e,"exception",t))}function Un(e,t,r){var i=function(e){return e?Array.isArray(e)?function(n){return[].concat(D(e),[n]).join(".")}:function(n){return"".concat(e,".").concat(n)}:function(e){return e}}(r);try{var o=te(t);o.username&&(o.username="REDACTED"),o.password&&(o.password="REDACTED");var a=fe.urlAttributeScrubber(A(A(A(A(A(A({},Ze,o.href),"url.path",o.pathname),"url.domain",o.hostname),"url.scheme",o.protocol.replace(":","")),"url.fragment",o.hash?o.hash.replace("#",""):void 0),"url.query",o.search?o.search.replace("?",""):void 0));Object.entries(a).forEach((function(n){var t=U(n,2),r=t[0],o=t[1];void 0!==o&&vn(e,i(r),o)}))}catch(r){fe.urlAttributeScrubber===n&&vn(e,i(Ze),String(t))}}var Dn=null!=_&&"function"==typeof _.getItem&&"function"==typeof _.setItem;var Mn="d0_tab",Gn=null;function xn(){if(Dn)try{var e=function(e){return Dn&&_?_.getItem(e):null}(Mn);if(e)return void(Gn=e);Gn=g(8),function(e,n){Dn&&_&&_.setItem(e,n)}(Mn,Gn)}catch(e){o("Failed to record tab ID information",e)}else l("Storage API is not available and tab tracking is therefore not supported.")}function Bn(e,n){var t,r,i,o,a;void 0===e.find((function(e){return e.key===xe}))&&vn(e,xe,g(8));for(var l=0;l<fe.signalAttributes.length;l++)e.push(fe.signalAttributes[l]);Un(e,null!==(t=null!==(r=null==n?void 0:n.url)&&void 0!==r?r:null==v?void 0:v.location.href)&&void 0!==t?t:ee,"page"),In&&vn(e,"session.id",In),Gn&&vn(e,"browser.tab.id",Gn),vn(e,"browser.window.width",null!==(i=null==v?void 0:v.innerWidth)&&void 0!==i?i:ee),vn(e,"browser.window.height",null!==(o=null==v?void 0:v.innerHeight)&&void 0!==o?o:ee);var u=null==f||null===(a=f.connection)||void 0===a?void 0:a.effectiveType;u&&vn(e,"network.connection.subtype",u)}var kn,Hn=0,Fn=0,jn={},Wn=!1;function Xn(){Wn=!0}function qn(e,n){e&&Yn("string"==typeof e?{message:e,opts:n}:{message:e.message,type:e.name,stack:e.stack,opts:n})}function Yn(e){var n=e.message,t=e.type,r=e.stack,i=e.opts;if(n&&!(Hn>100)&&!function(e){return!e||pe(fe.ignoreErrorMessages,e)}(n)){Fn>=20&&(jn={},Fn=0);var o=(n=String(n).substring(0,300))+(r=function(e){return String(e||"").split("\n").slice(0,30).join("\n")}(r))+(null==v?void 0:v.location.href),a=jn[o];if(a)a.seenCount++;else{var l=[];Bn(l),vn(l,Ge,nn.ERROR),vn(l,Ye,n),t&&vn(l,ze,t),r&&vn(l,Ke,r),null!=i&&i.componentStack&&vn(l,"exception.component_stack",null==i?void 0:i.componentStack.substring(0,2048)),dn(l,null==i?void 0:i.attributes),a={seenCount:1,transmittedCount:0,log:{timeUnixNano:k(),attributes:l,severityNumber:tn.ERROR,severityText:"ERROR",body:{stringValue:n}}},jn[o]=a,Fn++}!function(){if(kn)return;kn=setTimeout(zn,1e3)}()}}function zn(){for(var e in kn&&(clearTimeout(kn),kn=null),jn)if(c(jn,e)){var n=jn[e];n.seenCount>n.transmittedCount&&(Oe(n.log),Hn++)}jn={},Fn=0}var Kn=-1,Qn=function(e){addEventListener("pageshow",(function(n){n.persisted&&(Kn=n.timeStamp,e(n))}),!0)},Zn=function(e,n,t,r){var i,o;return function(a){n.value>=0&&(a||r)&&(((o=n.value-(null!=i?i:0))||void 0===i)&&(i=n.value,n.delta=o,n.rating=function(e,n){return e>n[1]?"poor":e>n[0]?"needs-improvement":"good"}(n.value,t),e(n)))}},$n=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},Jn=function(){var e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},et=function(){var e,n=Jn();return null!==(e=null==n?void 0:n.activationStart)&&void 0!==e?e:0},nt=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,t=Jn(),r="navigate";return Kn>=0?r="back-forward-cache":t&&(document.prerendering||et()>0?r="prerender":document.wasDiscarded?r="restore":t.type&&(r=t.type.replace(/_/g,"-"))),{name:e,value:n,rating:"good",delta:0,entries:[],id:"v5-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},tt=new WeakMap;function rt(e,n){return tt.get(e)||tt.set(e,new n),tt.get(e)}var it,ot=function(){return S((function e(){N(this,e),A(this,"t",void 0),A(this,"i",0),A(this,"o",[])}),[{key:"h",value:function(e){var n;if(!e.hadRecentInput){var t=this.o[0],r=this.o.at(-1);this.i&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),null===(n=this.t)||void 0===n||n.call(this,e)}}}])}(),at=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){n(e.getEntries())}))}));return r.observe(w({type:e,buffered:!0},t)),r}}catch(e){}},lt=function(e){var n=!1;return function(){n||(e(),n=!0)}},ut=-1,st=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},ct=function(e){"hidden"===document.visibilityState&&ut>-1&&(ut="visibilitychange"===e.type?e.timeStamp:0,dt())},vt=function(){addEventListener("visibilitychange",ct,!0),addEventListener("prerenderingchange",ct,!0)},dt=function(){removeEventListener("visibilitychange",ct,!0),removeEventListener("prerenderingchange",ct,!0)},ft=function(){if(ut<0){var e,n=et(),t=document.prerendering||null===(e=globalThis.performance.getEntriesByType("visibility-state").filter((function(e){return"hidden"===e.name&&e.startTime>n}))[0])||void 0===e?void 0:e.startTime;ut=null!=t?t:st(),vt(),Qn((function(){setTimeout((function(){ut=st(),vt()}))}))}return{get firstHiddenTime(){return ut}}},pt=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},ht=[1800,3e3],Et=[.1,.25],mt=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pt((function(){var t,r=ft(),i=nt("FCP"),o=at("paint",(function(e){var n,a=O(e);try{for(a.s();!(n=a.n()).done;){var l=n.value;"first-contentful-paint"===l.name&&(o.disconnect(),l.startTime<r.firstHiddenTime&&(i.value=Math.max(l.startTime-et(),0),i.entries.push(l),t(!0)))}}catch(e){a.e(e)}finally{a.f()}}));o&&(t=Zn(e,i,ht,n.reportAllChanges),Qn((function(r){i=nt("FCP"),t=Zn(e,i,ht,n.reportAllChanges),$n((function(){i.value=performance.now()-r.timeStamp,t(!0)}))})))}))}(lt((function(){var t,r=nt("CLS",0),i=rt(n,ot),o=function(e){var n,o=O(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;i.h(a)}}catch(e){o.e(e)}finally{o.f()}i.i>r.value&&(r.value=i.i,r.entries=i.o,t())},a=at("layout-shift",o);a&&(t=Zn(e,r,Et,n.reportAllChanges),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&(o(a.takeRecords()),t(!0))})),Qn((function(){i.i=0,r=nt("CLS",0),t=Zn(e,r,Et,n.reportAllChanges),$n((function(){return t()}))})),setTimeout(t))})))},_t=0,yt=1/0,gt=0,Tt=function(e){var n,t=O(e);try{for(t.s();!(n=t.n()).done;){var r=n.value;r.interactionId&&(yt=Math.min(yt,r.interactionId),gt=Math.max(gt,r.interactionId),_t=gt?(gt-yt)/7+1:0)}}catch(e){t.e(e)}finally{t.f()}},Rt=function(){var e;return it?_t:null!==(e=performance.interactionCount)&&void 0!==e?e:0},bt=0,It=function(){return S((function e(){N(this,e),A(this,"u",[]),A(this,"l",new Map),A(this,"m",void 0),A(this,"v",void 0)}),[{key:"p",value:function(){bt=Rt(),this.u.length=0,this.l.clear()}},{key:"P",value:function(){var e=Math.min(this.u.length-1,Math.floor((Rt()-bt)/50));return this.u[e]}},{key:"h",value:function(e){var n;if(null!==(n=this.m)&&void 0!==n&&n.call(this,e),e.interactionId||"first-input"===e.entryType){var t=this.u.at(-1),r=this.l.get(e.interactionId);if(r||this.u.length<10||e.duration>t.T){var i;if(r?e.duration>r.T?(r.entries=[e],r.T=e.duration):e.duration===r.T&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],T:e.duration},this.l.set(r.id,r),this.u.push(r)),this.u.sort((function(e,n){return n.T-e.T})),this.u.length>10){var o,a=O(this.u.splice(10));try{for(a.s();!(o=a.n()).done;){var l=o.value;this.l.delete(l.id)}}catch(e){a.e(e)}finally{a.f()}}null===(i=this.v)||void 0===i||i.call(this,r)}}}}])}(),Ct=function(e){var n=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?e():(e=lt(e),document.addEventListener("visibilitychange",e,{once:!0}),n((function(){e(),document.removeEventListener("visibilitychange",e)})))},Lt=[200,500],Nt=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&pt((function(){var t;"interactionCount"in performance||it||(it=at("event",Tt,{type:"event",buffered:!0,durationThreshold:0}));var r,i=nt("INP"),o=rt(n,It),a=function(e){Ct((function(){var n,t=O(e);try{for(t.s();!(n=t.n()).done;){var a=n.value;o.h(a)}}catch(e){t.e(e)}finally{t.f()}var l=o.P();l&&l.T!==i.value&&(i.value=l.T,i.entries=l.entries,r())}))},l=at("event",a,{durationThreshold:null!==(t=n.durationThreshold)&&void 0!==t?t:40});r=Zn(e,i,Lt,n.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&(a(l.takeRecords()),r(!0))})),Qn((function(){o.p(),i=nt("INP"),r=Zn(e,i,Lt,n.reportAllChanges)})))}))},St=function(){return S((function e(){N(this,e),A(this,"m",void 0)}),[{key:"h",value:function(e){var n;null===(n=this.m)||void 0===n||n.call(this,e)}}])}(),Ot=[2500,4e3];function At(){!function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pt((function(){var t,r=ft(),i=nt("LCP"),o=rt(n,St),a=function(e){n.reportAllChanges||(e=e.slice(-1));var a,l=O(e);try{for(l.s();!(a=l.n()).done;){var u=a.value;o.h(u),u.startTime<r.firstHiddenTime&&(i.value=Math.max(u.startTime-et(),0),i.entries=[u],t())}}catch(e){l.e(e)}finally{l.f()}},l=at("largest-contentful-paint",a);if(l){t=Zn(e,i,Ot,n.reportAllChanges);for(var u=lt((function(){a(l.takeRecords()),l.disconnect(),t(!0)})),s=0,c=["keydown","click","visibilitychange"];s<c.length;s++)addEventListener(c[s],(function(){return Ct(u)}),{capture:!0,once:!0});Qn((function(r){i=nt("LCP"),t=Zn(e,i,Ot,n.reportAllChanges),$n((function(){i.value=performance.now()-r.timeStamp,t(!0)}))}))}}))}(Vt,{reportAllChanges:!0}),Nt(Vt,{reportAllChanges:!0}),mt(Vt,{reportAllChanges:!0})}function Vt(e){var n=[];vn(n,Ge,nn.WEB_VITAL);var t=[];vn(t,"name",e.name),vn(t,"value",ne(e.value)),vn(t,"delta",ne(e.delta));var r={timeUnixNano:k(),attributes:n,severityNumber:tn.INFO,severityText:"INFO",body:{kvlistValue:{values:t}}};Bn(r.attributes),Oe(r)}var wt="Unhandled promise rejection: ",Pt="<unavailable because Promise wasn't rejected with an Error object>";function Ut(e){null==e.reason?qn({message:wt+"<no reason defined>",stack:Pt}):"string"==typeof e.reason.message?qn({message:wt+e.reason.message,stack:"string"==typeof e.reason.stack?e.reason.stack:Pt}):"object"!==G(e.reason)&&qn({message:wt+e.reason,stack:Pt})}var Dt="__dash0OriginalFunctions";function Mt(e,n){for(var t=e[Dt],r=0;r<t.length;r++){if(Gt(t[r].valuesForEqualityCheck,n))return r}return-1}function Gt(e,n){if(e.length!==n.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==n[t])return!1;return!0}function xt(e,n,t,r,i){return function(e,n,t){if(!e)return n;var r=e[Dt]=e[Dt]||[],i=Mt(e,t);return-1!==i?r[i].wrappedFunction:(r.push({wrappedFunction:n,valuesForEqualityCheck:t}),n)}(e,n,Bt(t,r,i))}function Bt(e,n,t){return[e,n,kt(t)]}function kt(e){return null!=e&&("object"===G(e)?Boolean(e.capture):Boolean(e))}function Ht(e,n,t,r,i){return function(e,n,t){var r=null==e?void 0:e[Dt];if(null==r)return t;var i=Mt(e,n);if(-1===i)return t;var o=r[i];return r.splice(i,1),o.wrappedFunction}(e,Bt(n,t,r),i)}function Ft(){fe.wrapEventHandlers&&function(e){if(!e||"function"!=typeof e.prototype.addEventListener||"function"!=typeof e.prototype.removeEventListener)return;var n=e.prototype.addEventListener,t=e.prototype.removeEventListener;e.prototype.addEventListener=function(e,t,r){if("function"!=typeof t)return n.apply(this,arguments);for(var i=new Array(arguments.length),o=0;o<arguments.length;o++)i[o]=arguments[o];return i[1]=function(){try{return t.apply(this,arguments)}catch(e){throw qn(e),Xn(),e}},i[1]=xt(this,i[1],e,t,r),n.apply(this,i)},e.prototype.removeEventListener=function(e,n,r){if("function"!=typeof n)return t.apply(this,arguments);for(var i=new Array(arguments.length),o=0;o<arguments.length;o++)i[o]=arguments[o];return i[1]=Ht(this,e,n,r,n),t.apply(this,i)}}(null==v?void 0:v.EventTarget)}function jt(e){var n=null==v?void 0:v[e];"function"==typeof n&&(v[e]=function(e){for(var t=new Array(arguments.length),r=0;r<arguments.length;r++)t[r]=arguments[r];return t[0]=function(e){if("function"!=typeof e)return e;return function(){try{return e.apply(this,arguments)}catch(e){throw reportError(e),Xn(),e}}}(e),n.apply(this,t)})}function Wt(){!function(){if(v){var e=v.onerror;v.onerror=function(n,t,r,i,o){if(Wn)return Wn=!1,"function"==typeof e?e.apply(this,arguments):void 0;var a=o&&o.stack;return a||(a="at "+t+" "+r,null!=i&&(a+=":"+i)),Yn({message:String(n),stack:a}),"function"==typeof e?e.apply(this,arguments):void 0}}}(),"function"==typeof(null==v?void 0:v.addEventListener)&&v.addEventListener("unhandledrejection",Ut),Ft(),function(){if(fe.wrapTimers){if(W)return void o("We discovered a usage of Zone.js. In order to avoid any incompatibility issues timer wrapping is not going to be enabled.");jt("setTimeout"),jt("setInterval")}}()}function Xt(e){return"".concat("http.request.header",".").concat(e.toLowerCase())}function qt(e){return"".concat("http.response.header",".").concat(e.toLowerCase())}var Yt=["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH"],zt="_OTHER";function Kt(e){return Yt.includes(e)}function Qt(e,n){var t=0!==n.startTime;Zt(e,Q.FETCH_START,n,t),Zt(e,Q.DOMAIN_LOOKUP_START,n,t),Zt(e,Q.DOMAIN_LOOKUP_END,n,t),Zt(e,Q.CONNECT_START,n,t),Zt(e,Q.SECURE_CONNECTION_START,n,t),Zt(e,Q.CONNECT_END,n,t),Zt(e,Q.REQUEST_START,n,t),Zt(e,Q.RESPONSE_START,n,t),Zt(e,Q.RESPONSE_END,n,t)}function Zt(e,n,t){var r,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];!(n in t)||"number"!=typeof t[n]||i&&0===t[n]||Vn(e,n,(r=t[n],String(Math.round(1e6*(r+F())))))}function $t(e,n){var t=n.encodedBodySize;null!=t&&vn(e.attributes,"http.response.body.size",t)}function Jt(e,n){var t;Pn(e,n);var r="object"===G(n)&&n?null!==(t=n.name)&&void 0!==t?t:null!=n.code?String(n.code):"error":"error";vn(e.attributes,Qe,r),Ae(An(e,function(e){return{code:2,message:e&&"object"===G(e)&&"message"in e?e.message:String(e)}}(n),void 0))}function er(e){vn(e.attributes,"dash0.web.request.cancelled",!0),Ae(An(e,void 0,void 0))}function nr(e){var n=[];if(re(e)){if(n.push("traceparent"),fe.propagators){var t,r=O(fe.propagators);try{for(r.s();!(t=r.n()).done;){var i=t.value;"traceparent"===i.type||n.includes(i.type)||n.push(i.type)}}catch(e){r.e(e)}finally{r.f()}}return n}if(fe.propagators){var o,a=O(fe.propagators);try{for(a.s();!(o=a.n()).done;){var l=o.value;pe(l.match,e)&&(n.includes(l.type)||n.push(l.type))}}catch(e){a.e(e)}finally{a.f()}return n}return[]}function tr(e,n,t,r){var i,o=O(r);try{for(o.s();!(i=o.n()).done;){"xray"===i.value?_n(e,n,t):mn(e,n,t)}}catch(e){o.e(e)}finally{o.f()}}function rr(e){return function(){var n=L(P().mark((function n(t,r){var i,o,a,u,s,c,v,d,f,p,h;return P().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=t,n.prev=1,u=r?Object.assign({},r):r,s=null,null!=u&&u.body&&(s=u.body,u.body=void 0),o=new Request(t,u),s&&u&&(u.body=s),i=t instanceof Request?o:t,!Ee(o.url)){n.next=11;break}return l("Not creating span for fetch call because the url is ignored, URL: ".concat(o.url)),n.abrupt("return",e(i,r));case 11:a=ir(t,r,o,u),n.next=18;break;case 14:return n.prev=14,n.t0=n.catch(1),l("failed to instrument fetch call",n.t0),n.abrupt("return",e(i,r));case 18:return v=(c=a).copyOfInit,d=c.span,f=c.performanceObserver,n.prev=19,n.next=22,e(i,v);case 22:return p=n.sent,ar(d,p),n.abrupt("return",lr(p,fe.maxToleranceForResourceTimingsMillis,(function(){return f.end()}),(function(e){var n;f.cancel(),null!==(n=o)&&void 0!==n&&null!==(n=n.signal)&&void 0!==n&&n.aborted?er(d):Jt(d,e)})));case 27:throw n.prev=27,n.t1=n.catch(19),f.cancel(),null!==(h=o)&&void 0!==h&&null!==(h=h.signal)&&void 0!==h&&h.aborted?er(d):Jt(d,n.t1),n.t1;case 32:case"end":return n.stop()}}),n,null,[[1,14],[19,27]])})));return function(e,t){return n.apply(this,arguments)}}()}function ir(e,n,t,r){var i,o=t.url,a=null!==(i=t.method)&&void 0!==i?i:"GET",u=Kt(a),s=Kt(a.toUpperCase())?a.toUpperCase():zt,c=On("HTTP ".concat(s));Bn(c.attributes),Un(c.attributes,o),function(e,n){try{return void 0}catch(t){l("failed to analyze request for GraphQL insights",t,e,n)}}(e,n),vn(c.attributes,$e,s),u||vn(c.attributes,Je,a);var v,d=nr(o);d.length>0&&(null!==(v=r)&&void 0!==v&&v.headers?(r.headers=new Headers(r.headers),tr(r.headers.append,r.headers,c,d)):e instanceof Request?tr(t.headers.append,t.headers,c,d):(r||(r={}),r.headers=new Headers,tr(r.headers.append,r.headers,c,d)));or(t.headers,c,(function(e){return Xt(e)}));var f=$({resourceMatcher:function(e){var n=e.initiatorType,t=e.name;return("fetch"===n||"xmlhttprequest"===n)&&t===te(o).href},maxWaitForResourceMillis:fe.maxWaitForResourceTimingsMillis,maxToleranceForResourceTimingsMillis:fe.maxToleranceForResourceTimingsMillis,onEnd:function(e){var n=e.duration,t=e.resource;t&&(Qt(c,t),$t(c,t)),Ae(An(c,void 0,1e6*n))}});return f.start(),{copyOfInit:r,span:c,performanceObserver:f}}function or(e,n,t){try{if(!fe.headersToCapture.length)return;e.forEach((function(e,r){fe.headersToCapture.some((function(e){return e.test(r)}))&&vn(n.attributes,t(r),e)}))}catch(e){l("unable to capture http headers",e)}}function ar(e,n){var t=n.status;wn(e,t>=200&&t<400?0:2),0===t&&vn(e.attributes,Qe,n.type),vn(e.attributes,en,String(t)),or(n.headers,e,(function(e){return qt(e)}))}function lr(e,n,t,r){var i,o,a=h.now(),l=e.body;if(!(l&&(i=e,o=i.status,o>=200&&204!=o&&205!=o&&304!=o)))return t(),e;var u=!1,s=function(e){u||(t(e),u=!0)},c=function(e){u||(r(e),u=!0)},v=X((function(){return s(a)}),n),d=l.getReader(),f=new ReadableStream({pull:function(e){return L(P().mark((function t(){var r,i;return P().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,q(v),t.next=4,d.read();case 4:r=t.sent,i=r.value,r.done?(d.releaseLock(),e.close(),s()):(a=h.now(),v=X((function(){return s(a)}),n),e.enqueue(i)),t.next=15;break;case 10:t.prev=10,t.t0=t.catch(0),c(t.t0),e.error(t.t0);try{d.releaseLock()}catch(e){}case 15:case"end":return t.stop()}}),t,null,[[0,10]])})))()},cancel:function(e){return q(v),s(),d.cancel(e)}});return new Response(f,{status:e.status,statusText:e.statusText,headers:e.headers})}var ur,sr=Symbol("dash0XhrState");function cr(e){return function(n,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];var a=[n,t].concat(i);try{a=[n,vr(this,n,t)].concat(i)}catch(e){this[sr]=void 0,l("failed to instrument XMLHttpRequest.open",e)}return e.apply(this,a)}}function vr(e,n,t){var r=e[sr];null!=r&&r.span&&!r.completed&&function(e,n){n.completed=!0;try{var t,r,i,o=O(null!==(r=n.listeners)&&void 0!==r?r:[]);try{for(o.s();!(i=o.n()).done;){var a=U(i.value,2);R(e,a[0],a[1])}}catch(e){o.e(e)}finally{o.f()}null===(t=n.performanceObserver)||void 0===t||t.cancel(),n.span&&er(n.span)}catch(e){}}(e,r);var i=String(t),o=te(i).href,a=String(null!=n?n:"GET"),l=Kt(a.toUpperCase())?a.toUpperCase():zt;return e[sr]={method:l,originalMethod:a,isWellKnownMethod:Kt(a),url:o,ignored:Ee(o),propagatorTypes:nr(o),completed:!1},i}function dr(e){return ur=e,function(n,t){e.call(this,n,t);try{!function(e,n,t){var r,i=e[sr];if(!i||i.ignored)return;var o=n.toLowerCase();"traceparent"!==o&&"x-amzn-trace-id"!==o||(i.alreadyTraced=!0);if(0===fe.headersToCapture.length)return;if(!fe.headersToCapture.some((function(e){return e.test(o)})))return;var a=null!==(r=i.capturedRequestHeaders)&&void 0!==r?r:i.capturedRequestHeaders={};a[o]=o in a?"".concat(a[o],", ").concat(t):t}(this,n,t)}catch(e){l("failed to instrument XMLHttpRequest.setRequestHeader",e)}}}function fr(e){return function(n){var t=this[sr];if(!t||t.ignored)return null!=t&&t.ignored&&l("Not creating span for XMLHttpRequest because the url is ignored, URL: ".concat(t.url)),e.call(this,n);if(t.alreadyTraced)return l("Not creating span for XMLHttpRequest because a trace correlation header is already present, URL: ".concat(t.url)),e.call(this,n);if(t.span&&!t.completed)return e.call(this,n);try{!function(e,n){var t=On("HTTP ".concat(n.method));Bn(t.attributes),Un(t.attributes,n.url),vn(t.attributes,$e,n.method),n.isWellKnownMethod||vn(t.attributes,Je,n.originalMethod);if(n.span=t,n.propagatorTypes.length>0)try{tr((function(n,t){return(null!=ur?ur:e.setRequestHeader).call(e,n,t)}),e,t,n.propagatorTypes)}catch(e){l("failed to inject trace context headers on XMLHttpRequest",e)}if(n.capturedRequestHeaders)for(var r=0,i=Object.entries(n.capturedRequestHeaders);r<i.length;r++){var o=U(i[r],2),a=o[0],u=o[1];vn(t.attributes,Xt(a),u)}var s=$({resourceMatcher:function(e){var t=e.initiatorType,r=e.name;return"xmlhttprequest"===t&&r===n.url},maxWaitForResourceMillis:fe.maxWaitForResourceTimingsMillis,maxToleranceForResourceTimingsMillis:fe.maxToleranceForResourceTimingsMillis,onEnd:function(e){var n=e.duration,r=e.resource;r&&(Qt(t,r),$t(t,r)),Ae(An(t,void 0,1e6*n))}});n.performanceObserver=s,s.start(),n.listeners=[["error",function(){n.failureKind="error"}],["timeout",function(){n.failureKind="timeout"}],["abort",function(){n.failureKind="abort"}],["loadend",function(){return function(e,n){var t;if(n.completed)return;n.completed=!0;var r,i=O(null!==(t=n.listeners)&&void 0!==t?t:[]);try{for(i.s();!(r=i.n()).done;){var o=U(r.value,2);R(e,o[0],o[1])}}catch(e){i.e(e)}finally{i.f()}var a=n.span;if(!a)return;var u=n.performanceObserver;if("abort"===n.failureKind)return null==u||u.cancel(),void er(a);var s=0;try{s=e.status}catch(e){s=0}if("error"===n.failureKind||"timeout"===n.failureKind||0===s){var c;return null==u||u.cancel(),void Jt(a,{name:null!==(c=n.failureKind)&&void 0!==c?c:"error",message:"XMLHttpRequest failed: ".concat(n.url)})}wn(a,s>=200&&s<400?0:2),vn(a.attributes,en,String(s)),function(e,n){try{if(!fe.headersToCapture.length)return;var t=e.getAllResponseHeaders();if(!t)return;t.split(/\r?\n/).filter((function(e){return e.length>0})).forEach((function(e){var t=e.indexOf(":");if(-1!==t){var r=e.substring(0,t).trim(),i=e.substring(t+1).trim();fe.headersToCapture.some((function(e){return e.test(r)}))&&vn(n.attributes,qt(r),i)}}))}catch(e){l("unable to capture http response headers",e)}}(e,a),null==u||u.end()}(e,n)}]];var c,v=O(n.listeners);try{for(v.s();!(c=v.n()).done;){var d=U(c.value,2),f=d[0],p=d[1];T(e,f,p)}}catch(e){v.e(e)}finally{v.f()}}(this,t)}catch(e){!function(e,n){try{var t,r;null===(t=n.performanceObserver)||void 0===t||t.cancel();var i,o=O(null!==(r=n.listeners)&&void 0!==r?r:[]);try{for(o.s();!(i=o.n()).done;){var a=U(i.value,2);R(e,a[0],a[1])}}catch(e){o.e(e)}finally{o.f()}}catch(e){}n.span=void 0}(this,t),l("failed to instrument XMLHttpRequest.send",e)}try{return e.call(this,n)}catch(e){throw function(e,n,t){if(n.completed)return;n.completed=!0;try{var r,i,o,a,l=O(null!==(o=n.listeners)&&void 0!==o?o:[]);try{for(l.s();!(a=l.n()).done;){var u=U(a.value,2);R(e,u[0],u[1])}}catch(e){l.e(e)}finally{l.f()}null===(r=n.performanceObserver)||void 0===r||r.cancel();var s=n.span;if(!s)return;var c=null!==(i=n.failureKind)&&void 0!==i?i:"TimeoutError"===(null==t?void 0:t.name)?"timeout":"error";Pn(s,null!=t?t:{name:c,message:"XMLHttpRequest failed: ".concat(n.url)}),vn(s.attributes,Qe,c),Ae(An(s,{code:2,message:"XMLHttpRequest failed: ".concat(n.url)},void 0))}catch(e){}}(this,t,e),e}}}function pr(e){var n,t,r=[];vn(r,Ge,nn.PAGE_VIEW),e.metaAttributes&&Object.entries(e.metaAttributes).forEach((function(e){var n=U(e,2),t=n[0],i=n[1];return vn(r,t,i)})),Bn(r,{url:e.url}),dn(r,e.customAttributes);var i=[];vn(i,"title",null!==(n=null!==(t=e.title)&&void 0!==t?t:null==d?void 0:d.title)&&void 0!==n?n:ee),null!=d&&d.referrer&&vn(i,"referrer",d.referrer),vn(i,"type",e.pageViewType),e.changeState&&vn(i,"change_state",e.changeState);var o={timeUnixNano:e.timeUnixNano,attributes:r,severityNumber:tn.INFO,severityText:"INFO",body:{kvlistValue:{values:i}}},a=En();a&&(o.traceId=a.traceId,o.spanId=a.spanId),Oe(o)}function hr(e,n,t,r){var i=function(e){var n,t,r;return e&&null!==(n=null===(t=(r=fe.pageViewInstrumentation).generateMetadata)||void 0===t?void 0:t.call(r,e))&&void 0!==n?n:{}}(n);pr({timeUnixNano:e,url:n,title:i.title,metaAttributes:i.attributes,pageViewType:t?on:rn,changeState:r?ln:an})}function Er(){var e=null==v?void 0:v.performance.getEntriesByType("navigation")[0];if(e){var n=[];vn(n,Ge,nn.NAVIGATION_TIMING);var t=[];vn(t,"name",e.name),mr(t,e,"responseStatus"),mr(t,e,"fetchStart"),mr(t,e,"requestStart"),mr(t,e,"responseStart"),mr(t,e,"domInteractive"),mr(t,e,"domContentLoadedEventEnd"),mr(t,e,"domComplete"),mr(t,e,"loadEventEnd"),mr(t,e,"transferSize"),mr(t,e,"encodedBodySize"),mr(t,e,"decodedBodySize");var r={timeUnixNano:_r(),attributes:n,severityNumber:tn.INFO,severityText:"INFO",body:{kvlistValue:{values:t}}};Bn(r.attributes);var i=En();i&&(r.traceId=i.traceId,r.spanId=i.spanId),Oe(r)}else l("Navigation timings not available. Cannot emit navigation timing log")}function mr(e,n,t){var r=n[t];"number"!=typeof r||isNaN(r)||vn(e,t,Number.isInteger(r)?r:ne(r))}function _r(){return H(Math.round(F()))}var yr={},gr=!1,Tr=!1;function Rr(){Ir(null==v?void 0:v.location.href)}function br(e){Ir(e.newURL)}function Ir(e,n){var t;if(e)try{var r=new URL(e,null==v?void 0:v.location.href);((t=r).pathname!==yr.path||Tr&&t.search!==yr.search||gr&&t.hash!==yr.hash)&&(Cr(r),hr(k(),r,!0,Boolean(n)))}catch(e){l("Failed to handle url change",e)}}function Cr(e){yr.path=e.pathname,yr.search=e.search,yr.hash=e.hash}function Lr(){!function(){try{hr(_r(),null!=v&&v.location.href?new URL(null==v?void 0:v.location.href):void 0)}catch(e){a("Failed to transmit initial page view event",e)}if("complete"===(null==d?void 0:d.readyState))return Er();v&&T(v,"load",(function(){setTimeout(Er,0)}))}(),function(){var e,n,t,r;if(v&&v.history){if(fe.pageViewInstrumentation.trackVirtualPageViews){Tr=null!==(e=null===(n=fe.pageViewInstrumentation.includeParts)||void 0===n?void 0:n.includes("SEARCH"))&&void 0!==e&&e,gr=null!==(t=null===(r=fe.pageViewInstrumentation.includeParts)||void 0===r?void 0:r.includes("HASH"))&&void 0!==t&&t,le(v.history,"replaceState",(function(e){return function(n,t,r){return Ir(r?String(r):void 0,!0),e.apply(this,[n,t,r])}})),le(v.history,"pushState",(function(e){return function(n,t,r){return Ir(r?String(r):void 0),e.apply(this,[n,t,r])}})),v.addEventListener("hashchange",br),v.addEventListener("popstate",Rr);try{Cr(new URL(v.location.href))}catch(e){}}}else l("Browser does not support history API, skipping instrumentation")}()}function Nr(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];for(var r=0,i=n;r<i.length;r++){var o=i[r];if(o)return o}}var Sr={providerName:"vcs.provider.name",ownerName:"vcs.owner.name",repositoryName:"vcs.repository.name",repositoryUrlFull:"vcs.repository.url.full",refHeadName:"vcs.ref.head.name",refHeadRevision:"vcs.ref.head.revision",changeId:"vcs.change.id"};function Or(e){for(var n=function(e){var n,t,r,i,o,a,l,u,s,c,v,d,f,p,h,E=null!==(n=e.vcs)&&void 0!==n?n:{};if(e.disableVcsDetection)return E;var m=function(){var e,n,t,r,i,o;try{var a,l,u,s,c,v,d,f,p,h,E,m,_,y,g,T,R,b,I,C,L,N,S,O,A,V,w,P,U,D,M,G,x,B,k,H,F,j,W,X,q,Y,z,K,Q,Z,$,J,ee,ne,te,re,ie,oe,ae,le,ue,se,ce,ve;e=Nr(null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.NEXT_PUBLIC_VERCEL_GIT_PROVIDER,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.NUXT_PUBLIC_VERCEL_GIT_PROVIDER,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.NUXT_ENV_VERCEL_GIT_PROVIDER,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.REACT_APP_VERCEL_GIT_PROVIDER,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.GATSBY_VERCEL_GIT_PROVIDER,null===(v=process)||void 0===v||null===(v=v.env)||void 0===v?void 0:v.VITE_VERCEL_GIT_PROVIDER,null===(d=process)||void 0===d||null===(d=d.env)||void 0===d?void 0:d.PUBLIC_VERCEL_GIT_PROVIDER,null===(f=process)||void 0===f||null===(f=f.env)||void 0===f?void 0:f.VUE_APP_VERCEL_GIT_PROVIDER,null===(p=process)||void 0===p||null===(p=p.env)||void 0===p?void 0:p.REDWOOD_ENV_VERCEL_GIT_PROVIDER,null===(h=process)||void 0===h||null===(h=h.env)||void 0===h?void 0:h.SANITY_STUDIO_VERCEL_GIT_PROVIDER),n=Nr(null===(E=process)||void 0===E||null===(E=E.env)||void 0===E?void 0:E.NEXT_PUBLIC_VERCEL_GIT_REPO_OWNER,null===(m=process)||void 0===m||null===(m=m.env)||void 0===m?void 0:m.NUXT_PUBLIC_VERCEL_GIT_REPO_OWNER,null===(_=process)||void 0===_||null===(_=_.env)||void 0===_?void 0:_.NUXT_ENV_VERCEL_GIT_REPO_OWNER,null===(y=process)||void 0===y||null===(y=y.env)||void 0===y?void 0:y.REACT_APP_VERCEL_GIT_REPO_OWNER,null===(g=process)||void 0===g||null===(g=g.env)||void 0===g?void 0:g.GATSBY_VERCEL_GIT_REPO_OWNER,null===(T=process)||void 0===T||null===(T=T.env)||void 0===T?void 0:T.VITE_VERCEL_GIT_REPO_OWNER,null===(R=process)||void 0===R||null===(R=R.env)||void 0===R?void 0:R.PUBLIC_VERCEL_GIT_REPO_OWNER,null===(b=process)||void 0===b||null===(b=b.env)||void 0===b?void 0:b.VUE_APP_VERCEL_GIT_REPO_OWNER,null===(I=process)||void 0===I||null===(I=I.env)||void 0===I?void 0:I.REDWOOD_ENV_VERCEL_GIT_REPO_OWNER,null===(C=process)||void 0===C||null===(C=C.env)||void 0===C?void 0:C.SANITY_STUDIO_VERCEL_GIT_REPO_OWNER),t=Nr(null===(L=process)||void 0===L||null===(L=L.env)||void 0===L?void 0:L.NEXT_PUBLIC_VERCEL_GIT_REPO_SLUG,null===(N=process)||void 0===N||null===(N=N.env)||void 0===N?void 0:N.NUXT_PUBLIC_VERCEL_GIT_REPO_SLUG,null===(S=process)||void 0===S||null===(S=S.env)||void 0===S?void 0:S.NUXT_ENV_VERCEL_GIT_REPO_SLUG,null===(O=process)||void 0===O||null===(O=O.env)||void 0===O?void 0:O.REACT_APP_VERCEL_GIT_REPO_SLUG,null===(A=process)||void 0===A||null===(A=A.env)||void 0===A?void 0:A.GATSBY_VERCEL_GIT_REPO_SLUG,null===(V=process)||void 0===V||null===(V=V.env)||void 0===V?void 0:V.VITE_VERCEL_GIT_REPO_SLUG,null===(w=process)||void 0===w||null===(w=w.env)||void 0===w?void 0:w.PUBLIC_VERCEL_GIT_REPO_SLUG,null===(P=process)||void 0===P||null===(P=P.env)||void 0===P?void 0:P.VUE_APP_VERCEL_GIT_REPO_SLUG,null===(U=process)||void 0===U||null===(U=U.env)||void 0===U?void 0:U.REDWOOD_ENV_VERCEL_GIT_REPO_SLUG,null===(D=process)||void 0===D||null===(D=D.env)||void 0===D?void 0:D.SANITY_STUDIO_VERCEL_GIT_REPO_SLUG),r=Nr(null===(M=process)||void 0===M||null===(M=M.env)||void 0===M?void 0:M.NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF,null===(G=process)||void 0===G||null===(G=G.env)||void 0===G?void 0:G.NUXT_PUBLIC_VERCEL_GIT_COMMIT_REF,null===(x=process)||void 0===x||null===(x=x.env)||void 0===x?void 0:x.NUXT_ENV_VERCEL_GIT_COMMIT_REF,null===(B=process)||void 0===B||null===(B=B.env)||void 0===B?void 0:B.REACT_APP_VERCEL_GIT_COMMIT_REF,null===(k=process)||void 0===k||null===(k=k.env)||void 0===k?void 0:k.GATSBY_VERCEL_GIT_COMMIT_REF,null===(H=process)||void 0===H||null===(H=H.env)||void 0===H?void 0:H.VITE_VERCEL_GIT_COMMIT_REF,null===(F=process)||void 0===F||null===(F=F.env)||void 0===F?void 0:F.PUBLIC_VERCEL_GIT_COMMIT_REF,null===(j=process)||void 0===j||null===(j=j.env)||void 0===j?void 0:j.VUE_APP_VERCEL_GIT_COMMIT_REF,null===(W=process)||void 0===W||null===(W=W.env)||void 0===W?void 0:W.REDWOOD_ENV_VERCEL_GIT_COMMIT_REF,null===(X=process)||void 0===X||null===(X=X.env)||void 0===X?void 0:X.SANITY_STUDIO_VERCEL_GIT_COMMIT_REF),i=Nr(null===(q=process)||void 0===q||null===(q=q.env)||void 0===q?void 0:q.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,null===(Y=process)||void 0===Y||null===(Y=Y.env)||void 0===Y?void 0:Y.NUXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,null===(z=process)||void 0===z||null===(z=z.env)||void 0===z?void 0:z.NUXT_ENV_VERCEL_GIT_COMMIT_SHA,null===(K=process)||void 0===K||null===(K=K.env)||void 0===K?void 0:K.REACT_APP_VERCEL_GIT_COMMIT_SHA,null===(Q=process)||void 0===Q||null===(Q=Q.env)||void 0===Q?void 0:Q.GATSBY_VERCEL_GIT_COMMIT_SHA,null===(Z=process)||void 0===Z||null===(Z=Z.env)||void 0===Z?void 0:Z.VITE_VERCEL_GIT_COMMIT_SHA,null===($=process)||void 0===$||null===($=$.env)||void 0===$?void 0:$.PUBLIC_VERCEL_GIT_COMMIT_SHA,null===(J=process)||void 0===J||null===(J=J.env)||void 0===J?void 0:J.VUE_APP_VERCEL_GIT_COMMIT_SHA,null===(ee=process)||void 0===ee||null===(ee=ee.env)||void 0===ee?void 0:ee.REDWOOD_ENV_VERCEL_GIT_COMMIT_SHA,null===(ne=process)||void 0===ne||null===(ne=ne.env)||void 0===ne?void 0:ne.SANITY_STUDIO_VERCEL_GIT_COMMIT_SHA),o=Nr(null===(te=process)||void 0===te||null===(te=te.env)||void 0===te?void 0:te.NEXT_PUBLIC_VERCEL_GIT_PULL_REQUEST_ID,null===(re=process)||void 0===re||null===(re=re.env)||void 0===re?void 0:re.NUXT_PUBLIC_VERCEL_GIT_PULL_REQUEST_ID,null===(ie=process)||void 0===ie||null===(ie=ie.env)||void 0===ie?void 0:ie.NUXT_ENV_VERCEL_GIT_PULL_REQUEST_ID,null===(oe=process)||void 0===oe||null===(oe=oe.env)||void 0===oe?void 0:oe.REACT_APP_VERCEL_GIT_PULL_REQUEST_ID,null===(ae=process)||void 0===ae||null===(ae=ae.env)||void 0===ae?void 0:ae.GATSBY_VERCEL_GIT_PULL_REQUEST_ID,null===(le=process)||void 0===le||null===(le=le.env)||void 0===le?void 0:le.VITE_VERCEL_GIT_PULL_REQUEST_ID,null===(ue=process)||void 0===ue||null===(ue=ue.env)||void 0===ue?void 0:ue.PUBLIC_VERCEL_GIT_PULL_REQUEST_ID,null===(se=process)||void 0===se||null===(se=se.env)||void 0===se?void 0:se.VUE_APP_VERCEL_GIT_PULL_REQUEST_ID,null===(ce=process)||void 0===ce||null===(ce=ce.env)||void 0===ce?void 0:ce.REDWOOD_ENV_VERCEL_GIT_PULL_REQUEST_ID,null===(ve=process)||void 0===ve||null===(ve=ve.env)||void 0===ve?void 0:ve.SANITY_STUDIO_VERCEL_GIT_PULL_REQUEST_ID)}catch(e){}return{providerName:e,ownerName:n,repositoryName:t,repositoryUrlFull:Ar(e,n,t),refHeadName:r,refHeadRevision:i,changeId:o}}(),_=function(){var e,n,t,r;try{var i,o,a,l,u,s,c,v,d,f,p,h,E,m,_,y,g,T,R,b,I,C,L,N,S,O,A,V,w,P,D,M,G,x,B,k,H,F,j,W;e=Nr(null===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.NEXT_PUBLIC_REPOSITORY_URL,null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.NUXT_PUBLIC_REPOSITORY_URL,null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.NUXT_ENV_REPOSITORY_URL,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.REACT_APP_REPOSITORY_URL,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.GATSBY_REPOSITORY_URL,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.VITE_REPOSITORY_URL,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.PUBLIC_REPOSITORY_URL,null===(v=process)||void 0===v||null===(v=v.env)||void 0===v?void 0:v.VUE_APP_REPOSITORY_URL,null===(d=process)||void 0===d||null===(d=d.env)||void 0===d?void 0:d.REDWOOD_ENV_REPOSITORY_URL,null===(f=process)||void 0===f||null===(f=f.env)||void 0===f?void 0:f.SANITY_STUDIO_REPOSITORY_URL),n=Nr(null===(p=process)||void 0===p||null===(p=p.env)||void 0===p?void 0:p.NEXT_PUBLIC_BRANCH,null===(h=process)||void 0===h||null===(h=h.env)||void 0===h?void 0:h.NUXT_PUBLIC_BRANCH,null===(E=process)||void 0===E||null===(E=E.env)||void 0===E?void 0:E.NUXT_ENV_BRANCH,null===(m=process)||void 0===m||null===(m=m.env)||void 0===m?void 0:m.REACT_APP_BRANCH,null===(_=process)||void 0===_||null===(_=_.env)||void 0===_?void 0:_.GATSBY_BRANCH,null===(y=process)||void 0===y||null===(y=y.env)||void 0===y?void 0:y.VITE_BRANCH,null===(g=process)||void 0===g||null===(g=g.env)||void 0===g?void 0:g.PUBLIC_BRANCH,null===(T=process)||void 0===T||null===(T=T.env)||void 0===T?void 0:T.VUE_APP_BRANCH,null===(R=process)||void 0===R||null===(R=R.env)||void 0===R?void 0:R.REDWOOD_ENV_BRANCH,null===(b=process)||void 0===b||null===(b=b.env)||void 0===b?void 0:b.SANITY_STUDIO_BRANCH),t=Nr(null===(I=process)||void 0===I||null===(I=I.env)||void 0===I?void 0:I.NEXT_PUBLIC_COMMIT_REF,null===(C=process)||void 0===C||null===(C=C.env)||void 0===C?void 0:C.NUXT_PUBLIC_COMMIT_REF,null===(L=process)||void 0===L||null===(L=L.env)||void 0===L?void 0:L.NUXT_ENV_COMMIT_REF,null===(N=process)||void 0===N||null===(N=N.env)||void 0===N?void 0:N.REACT_APP_COMMIT_REF,null===(S=process)||void 0===S||null===(S=S.env)||void 0===S?void 0:S.GATSBY_COMMIT_REF,null===(O=process)||void 0===O||null===(O=O.env)||void 0===O?void 0:O.VITE_COMMIT_REF,null===(A=process)||void 0===A||null===(A=A.env)||void 0===A?void 0:A.PUBLIC_COMMIT_REF,null===(V=process)||void 0===V||null===(V=V.env)||void 0===V?void 0:V.VUE_APP_COMMIT_REF,null===(w=process)||void 0===w||null===(w=w.env)||void 0===w?void 0:w.REDWOOD_ENV_COMMIT_REF,null===(P=process)||void 0===P||null===(P=P.env)||void 0===P?void 0:P.SANITY_STUDIO_COMMIT_REF),r=Nr(null===(D=process)||void 0===D||null===(D=D.env)||void 0===D?void 0:D.NEXT_PUBLIC_REVIEW_ID,null===(M=process)||void 0===M||null===(M=M.env)||void 0===M?void 0:M.NUXT_PUBLIC_REVIEW_ID,null===(G=process)||void 0===G||null===(G=G.env)||void 0===G?void 0:G.NUXT_ENV_REVIEW_ID,null===(x=process)||void 0===x||null===(x=x.env)||void 0===x?void 0:x.REACT_APP_REVIEW_ID,null===(B=process)||void 0===B||null===(B=B.env)||void 0===B?void 0:B.GATSBY_REVIEW_ID,null===(k=process)||void 0===k||null===(k=k.env)||void 0===k?void 0:k.VITE_REVIEW_ID,null===(H=process)||void 0===H||null===(H=H.env)||void 0===H?void 0:H.PUBLIC_REVIEW_ID,null===(F=process)||void 0===F||null===(F=F.env)||void 0===F?void 0:F.VUE_APP_REVIEW_ID,null===(j=process)||void 0===j||null===(j=j.env)||void 0===j?void 0:j.REDWOOD_ENV_REVIEW_ID,null===(W=process)||void 0===W||null===(W=W.env)||void 0===W?void 0:W.SANITY_STUDIO_REVIEW_ID)}catch(e){}var X=function(e){if(!e)return;var n,t;try{var r=new URL(e);n=r.host,t=r.pathname}catch(e){return}var i=function(e){for(var n=0,t=Object.entries(Vr);n<t.length;n++){var r=U(t[n],2),i=r[0];if(r[1].includes(e))return i}return}(n);if(!i)return;var o=t.replace(/^\/+/,"").replace(/\.git$/,"").split("/");if(o.length<2)return;var a=o[0],l=o[o.length-1];return a&&l?{providerName:i,ownerName:a,repositoryName:l}:void 0}(e);return{providerName:null==X?void 0:X.providerName,ownerName:null==X?void 0:X.ownerName,repositoryName:null==X?void 0:X.repositoryName,repositoryUrlFull:e,refHeadName:n,refHeadRevision:t,changeId:r}}();return{providerName:null!==(t=null!==(r=E.providerName)&&void 0!==r?r:m.providerName)&&void 0!==t?t:_.providerName,ownerName:null!==(i=null!==(o=E.ownerName)&&void 0!==o?o:m.ownerName)&&void 0!==i?i:_.ownerName,repositoryName:null!==(a=null!==(l=E.repositoryName)&&void 0!==l?l:m.repositoryName)&&void 0!==a?a:_.repositoryName,repositoryUrlFull:null!==(u=null!==(s=E.repositoryUrlFull)&&void 0!==s?s:m.repositoryUrlFull)&&void 0!==u?u:_.repositoryUrlFull,refHeadName:null!==(c=null!==(v=E.refHeadName)&&void 0!==v?v:m.refHeadName)&&void 0!==c?c:_.refHeadName,refHeadRevision:null!==(d=null!==(f=E.refHeadRevision)&&void 0!==f?f:m.refHeadRevision)&&void 0!==d?d:_.refHeadRevision,changeId:null!==(p=null!==(h=E.changeId)&&void 0!==h?h:m.changeId)&&void 0!==p?p:_.changeId}}(e),t=0,r=Object.keys(Sr);t<r.length;t++){var i=r[t],o=n[i];o&&vn(fe.resource.attributes,Sr[i],o)}}function Ar(e,n,t){if(e&&n&&t){var r=function(e){var n;return null===(n=Vr[e])||void 0===n?void 0:n[0]}(e);if(r)return"https://".concat(r,"/").concat(n,"/").concat(t)}}var Vr={github:["github.com","gist.github.com"],gitlab:["gitlab.com"],bitbucket:["bitbucket.org"]};var wr=!1;function Pr(e,n){var t=n.enabledInstrumentations;return!t||t.includes(e)}var Ur={init:function(e){if(wr)l("Dash0 SDK is being reinitialized, skipping ...");else if(null!=v)if("function"==typeof E&&h&&h.getEntriesByType){var n,t,r=e.serviceName.trim();if(r){if(!1!==e.rejectSuspiciousServiceName&&(t=r,ie.test(t))){var i;l("serviceName contains disallowed characters. Falling back to location.hostname."),e.serviceName=null!==(i=null==p?void 0:p.hostname)&&void 0!==i?i:"unknown"}}else l("Missing or empty serviceName value. Falling back to location.hostname."),e.serviceName=null!==(n=null==p?void 0:p.hostname)&&void 0!==n?n:"unknown";if(fe.endpoints=e.endpoint instanceof Array?e.endpoint:[e.endpoint],0!==fe.endpoints.length){if(Object.assign(fe,function(e,n){for(var t=w({},e),r=0,i=Object.keys(n);r<i.length;r++){var o=i[r],a=n[o],l=e[o];void 0!==a&&(null===a||"object"!==G(a)||Array.isArray(a)||"object"!==G(l)||null===l||Array.isArray(l)?t[o]=a:t[o]=w(w({},l),a))}return t}(fe,function(e,n){var t,r={},i=O(n);try{for(i.s();!(t=i.n()).done;){var o=t.value;o in e&&(r[o]=e[o])}}catch(e){i.e(e)}finally{i.f()}return r}(e,["ignoreUrls","ignoreErrorMessages","wrapEventHandlers","wrapTimers","propagateTraceHeadersCorsURLs","maxWaitForResourceTimingsMillis","maxToleranceForResourceTimingsMillis","headersToCapture","urlAttributeScrubber","pageViewInstrumentation","enableTransportCompression"]))),function(e){e.propagators?(e.propagateTraceHeadersCorsURLs&&o("Both 'propagators' and deprecated 'propagateTraceHeadersCorsURLs' were provided. Using 'propagators' configuration. Please migrate to the new 'propagators' config."),fe.propagators=e.propagators):e.propagateTraceHeadersCorsURLs&&e.propagateTraceHeadersCorsURLs.length>0?(o("'propagateTraceHeadersCorsURLs' is deprecated. Please use the new 'propagators' configuration."),fe.propagators=[{type:"traceparent",match:D(e.propagateTraceHeadersCorsURLs)}]):fe.propagators=[{type:"traceparent",match:[]}]}(e),function(e){vn(fe.resource.attributes,Ve,e.serviceName),e.serviceNamespace&&vn(fe.resource.attributes,we,e.serviceNamespace);e.serviceVersion&&vn(fe.resource.attributes,Pe,e.serviceVersion);var n=function(e){if(e.environment)return e.environment;try{var n,t,r,i,o,a,l,u,s,c;return Nr(null===(n=process)||void 0===n||null===(n=n.env)||void 0===n?void 0:n.NEXT_PUBLIC_VERCEL_ENV,null===(t=process)||void 0===t||null===(t=t.env)||void 0===t?void 0:t.NUXT_PUBLIC_VERCEL_ENV,null===(r=process)||void 0===r||null===(r=r.env)||void 0===r?void 0:r.NUXT_ENV_VERCEL_ENV,null===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.REACT_APP_VERCEL_ENV,null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.GATSBY_VERCEL_ENV,null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.VITE_VERCEL_ENV,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.PUBLIC_VERCEL_ENV,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.VUE_APP_VERCEL_ENV,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.REDWOOD_ENV_VERCEL_ENV,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.SANITY_STUDIO_VERCEL_ENV)}catch(e){return}}(e);n&&vn(fe.resource.attributes,Ue,n);var t=function(e){if(e.deploymentName)return e.deploymentName;try{var n,t,r,i,o,a,l,u,s,c;return Nr(null===(n=process)||void 0===n||null===(n=n.env)||void 0===n?void 0:n.NEXT_PUBLIC_VERCEL_TARGET_ENV,null===(t=process)||void 0===t||null===(t=t.env)||void 0===t?void 0:t.NUXT_PUBLIC_VERCEL_TARGET_ENV,null===(r=process)||void 0===r||null===(r=r.env)||void 0===r?void 0:r.NUXT_ENV_VERCEL_TARGET_ENV,null===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.REACT_APP_VERCEL_TARGET_ENV,null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.GATSBY_VERCEL_TARGET_ENV,null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.VITE_VERCEL_TARGET_ENV,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.PUBLIC_VERCEL_TARGET_ENV,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.VUE_APP_VERCEL_TARGET_ENV,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.REDWOOD_ENV_VERCEL_TARGET_ENV,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.SANITY_STUDIO_VERCEL_TARGET_ENV)}catch(e){return}}(e);t&&vn(fe.resource.attributes,De,t);var r=function(e){if(e.deploymentId)return e.deploymentId;try{var n,t,r,i,o,a,l,u,s,c;return Nr(null===(n=process)||void 0===n||null===(n=n.env)||void 0===n?void 0:n.NEXT_PUBLIC_VERCEL_BRANCH_URL,null===(t=process)||void 0===t||null===(t=t.env)||void 0===t?void 0:t.NUXT_PUBLIC_VERCEL_BRANCH_URL,null===(r=process)||void 0===r||null===(r=r.env)||void 0===r?void 0:r.NUXT_ENV_VERCEL_BRANCH_URL,null===(i=process)||void 0===i||null===(i=i.env)||void 0===i?void 0:i.REACT_APP_VERCEL_BRANCH_URL,null===(o=process)||void 0===o||null===(o=o.env)||void 0===o?void 0:o.GATSBY_VERCEL_BRANCH_URL,null===(a=process)||void 0===a||null===(a=a.env)||void 0===a?void 0:a.VITE_VERCEL_BRANCH_URL,null===(l=process)||void 0===l||null===(l=l.env)||void 0===l?void 0:l.PUBLIC_VERCEL_BRANCH_URL,null===(u=process)||void 0===u||null===(u=u.env)||void 0===u?void 0:u.VUE_APP_VERCEL_BRANCH_URL,null===(s=process)||void 0===s||null===(s=s.env)||void 0===s?void 0:s.REDWOOD_ENV_VERCEL_BRANCH_URL,null===(c=process)||void 0===c||null===(c=c.env)||void 0===c?void 0:c.SANITY_STUDIO_VERCEL_BRANCH_URL)}catch(e){return}}(e);r&&vn(fe.resource.attributes,Me,r);Or(e)}(e),function(e){var n;vn(fe.signalAttributes,Be,g(16)),vn(fe.signalAttributes,ke,null!==(n=null==f?void 0:f.userAgent)&&void 0!==n?n:ee),e.additionalSignalAttributes&&Object.entries(e.additionalSignalAttributes).forEach((function(e){var n=U(e,2),t=n[0],r=n[1];vn(fe.signalAttributes,t,r)}))}(e),xn(),Cn(e.sessionInactivityTimeoutMillis,e.sessionTerminationTimeoutMillis),null!=e.sessionSamplingRate){var a=Math.max(0,Math.min(100,e.sessionSamplingRate));fe.isSessionSampled=null!=In?function(e,n){return!(n<=0)&&(n>=100||de(e)%100<n)}(In,a):a>0}if(!fe.isSessionSampled)return l("Session is not sampled. No telemetry will be transmitted for this session."),void(wr=!0);Pr("@dash0/navigation",e)&&Lr(),Pr("@dash0/web-vitals",e)&&At(),Pr("@dash0/error",e)&&Wt(),Pr("@dash0/fetch",e)&&(v&&v.fetch&&v.Request?le(v,"fetch",rr):l("Browser does not support the Fetch API, skipping instrumentation")),Pr("@dash0/xhr",e)&&function(){if(v&&v.XMLHttpRequest){var e=v.XMLHttpRequest.prototype;le(e,"open",cr),le(e,"setRequestHeader",dr),le(e,"send",fr)}else l("Browser does not support XMLHttpRequest, skipping instrumentation")}(),wr=!0}else o("No telemetry endpoint configured. Aborting Dash0 Web SDK initialization process.")}else l("Stopping Dash0 Web SDK initialization. This browser does not support the necessary APIs.");else l("Looks like we are not running in a browser context. Stopping Dash0 Web SDK initialization.")},debug:function(){l("Dash0 Web SDK configuration state:",fe)},identify:function(e,n){fn(fe.signalAttributes,He),null!=e&&vn(fe.signalAttributes,He,e),fn(fe.signalAttributes,Fe),null!=(null==n?void 0:n.name)&&vn(fe.signalAttributes,Fe,n.name),fn(fe.signalAttributes,je),null!=(null==n?void 0:n.fullName)&&vn(fe.signalAttributes,je,n.fullName),fn(fe.signalAttributes,We),null!=(null==n?void 0:n.email)&&vn(fe.signalAttributes,We,n.email),fn(fe.signalAttributes,Xe),null!=(null==n?void 0:n.hash)&&vn(fe.signalAttributes,Xe,n.hash),fn(fe.signalAttributes,qe),null!=(null==n?void 0:n.roles)&&vn(fe.signalAttributes,qe,n.roles)},terminateSession:function(){if(b)try{!function(e){b&&m&&m.removeItem(e)}(Tn)}catch(e){i("Failed to terminate session",e)}},reportError:function(e,n){qn(e,n)},addSignalAttribute:function(e,n){vn(fe.signalAttributes,e,n)},removeSignalAttribute:function(e){fn(fe.signalAttributes,e)},setActiveLogLevel:function(e){var n;r=null!==(n=t[e])&&void 0!==n?n:t.warn},sendEvent:function(e,n){if(Object.values(nn).includes(e))o("Unable to send custom event ".concat(e,". You are not allowed to use an internal event name while sending a custom event. Dropping event..."));else{var t=[];Bn(t),vn(t,Ge,e),null!=n&&n.title&&vn(t,"dash0.web.event.title",n.title),dn(t,null==n?void 0:n.attributes),Oe({timeUnixNano:null!=(null==n?void 0:n.timestamp)?H(n.timestamp):k(),attributes:t,body:sn(null==n?void 0:n.data),severityText:null==n?void 0:n.severity,severityNumber:null!=n&&n.severity?tn[n.severity]:void 0})}},startView:function(e,n){if(0!==fe.endpoints.length)if("string"==typeof e&&0!==e.length){var t;if(null!=(null==n?void 0:n.url))try{t=new URL(n.url,null==v?void 0:v.location.href)}catch(e){l("Failed to parse startView url option. Falling back to the current location.",e)}!function(e){pr({timeUnixNano:e.timeUnixNano,url:e.url,title:e.title,customAttributes:e.attributes,pageViewType:on})}({timeUnixNano:k(),title:e,url:t,attributes:null==n?void 0:n.attributes})}else l("startView requires a non-empty view name. Ignoring startView call.");else l("Dash0 SDK has not been initialized. Ignoring startView call.")}};function Dr(e){var n=e[0],t=Ur[n];if(t){for(var r=[],i=1;i<e.length;i++)r.push(e[i]);t.apply(null,r)}else o("Unsupported Dash0 Web SDK api: ",e[0])}!function(){l("".concat("Initializing Dash0 Web SDK"," (via Script)"));var e=v.dash0;if(!e)return void o("global 'dash0' not found. Did you use the correct Dash0 Web SDK initializer?");if(!e._q)return void o("Dash0 Web SDK command queue not defined. Did you add the script tag multiple times to your website?");(function(e){for(var n=0,t=e.length;n<t;n++)Dr(e[n])})(e._q),v.dash0=function(){return Dr(arguments)}}()}();
2
2
  //# sourceMappingURL=dash0.iife.js.map