(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[66386],{20278:(t,e,n)=>{"use strict";n.d(e,{v:()=>Un});var r=n(251),i=n(8678),o=n(49271),a=n(6129),s=n(68783),u=n(25026),c=n(13842),d=n(92904),f=n(99262),l=n(76876),v=n(10311),p=n(83895),m=n(64933),g=n(68566),h=n(45242),y=n(54910),b=n(94776),T=n(73603),w=n(27662),_=n(94162),S=n(95562),E=n(33234);function C(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function I(t,e,n,r){if(void 0!==A()&&n.findTrackedSession()){var i,o,a,s,u,c=(0,b.sE)(t.allowedTracingUrls,(function(t){return(0,S.v)([t.match],e.url,!0)}));if(c)e.traceId=new x,e.spanId=new x,e.traceSampled=!(0,T.hj)(t.traceSampleRate)||(0,T.y7)(t.traceSampleRate),r((i=e.traceId,o=e.spanId,a=e.traceSampled,s=c.propagatorTypes,u={},s.forEach((function(t){switch(t){case"datadog":(0,b.f0)(u,{"x-datadog-origin":"rum","x-datadog-parent-id":o.toDecimalString(),"x-datadog-sampling-priority":a?"1":"0","x-datadog-trace-id":i.toDecimalString()});break;case"tracecontext":(0,b.f0)(u,{traceparent:"00-0000000000000000".concat(i.toPaddedHexadecimalString(),"-").concat(o.toPaddedHexadecimalString(),"-0").concat(a?"1":"0")});break;case"b3":(0,b.f0)(u,{b3:"".concat(i.toPaddedHexadecimalString(),"-").concat(o.toPaddedHexadecimalString(),"-").concat(a?"1":"0")});break;case"b3multi":(0,b.f0)(u,{"X-B3-TraceId":i.toPaddedHexadecimalString(),"X-B3-SpanId":o.toPaddedHexadecimalString(),"X-B3-Sampled":a?"1":"0"})}})),u))}}function A(){return window.crypto||window.msCrypto}var x=function(){function t(){this.buffer=new Uint8Array(8),A().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}return t.prototype.toString=function(t){var e=this.readInt32(0),n=this.readInt32(4),r="";do{var i=e%t*4294967296+n;e=Math.floor(e/t),n=Math.floor(i/t),r=(i%t).toString(t)+r}while(e||n);return r},t.prototype.toDecimalString=function(){return this.toString(10)},t.prototype.toPaddedHexadecimalString=function(){var t=this.toString(16);return Array(17-t.length).join("0")+t},t.prototype.readInt32=function(t){return 16777216*this.buffer[t]+(this.buffer[t+1]<<16)+(this.buffer[t+2]<<8)+this.buffer[t+3]},t}(),k=["tracecontext","datadog"];function N(t){var e,n;if(t.applicationId)if(void 0===t.sessionReplaySampleRate||(0,T.zz)(t.sessionReplaySampleRate))if(void 0===t.traceSampleRate||(0,T.zz)(t.traceSampleRate))if(void 0===t.excludedActivityUrls||Array.isArray(t.excludedActivityUrls)){var r=function(t){if(void 0!==t.allowedTracingUrls){if(!Array.isArray(t.allowedTracingUrls))return void c.jf.error("Allowed Tracing URLs should be an array");if(0!==t.allowedTracingUrls.length&&void 0===t.service)return void c.jf.error("Service needs to be configured when tracing is enabled");var e=[];return t.allowedTracingUrls.forEach((function(t){var n;(0,S.o)(t)?e.push({match:t,propagatorTypes:k}):(n=t,"object"===(0,E.o)(n)&&(0,S.o)(n.match)&&Array.isArray(n.propagatorTypes)?e.push(t):c.jf.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",t))})),e}return[]}(t);if(r){var i=(0,w.fP)(t);if(i)return(0,b.f0)({applicationId:t.applicationId,version:t.version,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:null!==(e=t.sessionReplaySampleRate)&&void 0!==e?e:0,startSessionReplayRecordingManually:!!t.startSessionReplayRecordingManually,traceSampleRate:t.traceSampleRate,allowedTracingUrls:r,excludedActivityUrls:null!==(n=t.excludedActivityUrls)&&void 0!==n?n:[],workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:!!t.trackUserInteractions,trackViewsManually:!!t.trackViewsManually,trackResources:!!t.trackResources,trackLongTasks:!!t.trackLongTasks,subdomain:t.subdomain,defaultPrivacyLevel:(0,_.E5)(w.Jj,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:w.Jj.MASK,customerDataTelemetrySampleRate:1},i)}}else c.jf.error("Excluded Activity Urls should be an array");else c.jf.error("Trace Sample Rate should be a number between 0 and 100");else c.jf.error("Session Replay Sample Rate should be a number between 0 and 100");else c.jf.error("Application ID is not configured, no RUM data will be collected.")}function O(t){var e=new Set;return Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0&&t.allowedTracingUrls.forEach((function(t){(0,S.o)(t)?k.forEach((function(t){return e.add(t)})):"object"===(0,E.o)(t)&&Array.isArray(t.propagatorTypes)&&t.propagatorTypes.forEach((function(t){return e.add(t)}))})),(0,b.Oc)(e)}function R(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}var M=n(38971),P=n(2632),$=n(9024),D=n(73473),L=n(59693);function U(){var t=function(){var t,e=window;if(e.Zone&&(t=(0,L.I)(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=new e.MutationObserver(r.Z),i=(0,L.I)(n,"originalInstance");t=i&&i.constructor}t||(t=e.MutationObserver);return t}(),e=new D.y((function(){if(t){var n=new t((0,m.zk)((function(){return e.notify()})));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return n.disconnect()}}}));return e}var V=n(65483),F=n(83206),B=n(10193),Z=n(70170),H="initial_document",q=[["document",function(t){return H===t}],["xhr",function(t){return"xmlhttprequest"===t}],["fetch",function(t){return"fetch"===t}],["beacon",function(t){return"beacon"===t}],["css",function(t,e){return/\.css$/i.test(e)}],["js",function(t,e){return/\.js$/i.test(e)}],["image",function(t,e){return(0,b.q9)(["image","img","icon"],t)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(e)}],["font",function(t,e){return null!==/\.(woff|eot|woff2|ttf)$/i.exec(e)}],["media",function(t,e){return(0,b.q9)(["audio","video"],t)||null!==/\.(mp3|mp4)$/i.exec(e)}]];function z(){for(var t=[],e=0;et[n])return!1;return!0}function j(t){var e=W(t);if(e){var n=e.startTime,r=e.fetchStart,i=e.redirectStart,o=e.redirectEnd,a=e.domainLookupStart,s=e.domainLookupEnd,u=e.connectStart,c=e.secureConnectionStart,d=e.connectEnd,f=e.requestStart,l=e.responseStart,v={download:G(n,l,e.responseEnd),first_byte:G(n,f,l)};return d!==r&&(v.connect=G(n,u,d),z(u,c,d)&&(v.ssl=G(n,c,d))),s!==r&&(v.dns=G(n,a,s)),Y(t)&&(v.redirect=G(n,i,o)),v}}function W(t){if(z(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd)){if(!Y(t))return t;var e=t.redirectStart,n=t.redirectEnd;if(e=0;e-=1){var n,r=t.body.childNodes[e];if(n=ot(r))return n;if(!X(r))break}}(t);if(!e)return;return it((0,Q.MY)(e,"trace-id"),(0,Q.MY)(e,"trace-time"))}(t);if(e&&!(e.traceTime<=(0,u.m6)()-nt))return e.traceId}function it(t,e){var n=e&&Number(e);if(t&&n)return{traceId:t,traceTime:n}}function ot(t){if(t&&function(t){return t.nodeType===Node.COMMENT_NODE}(t)){var e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}function at(){return void 0!==window.performance&&"getEntries"in performance}function st(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function ut(t,e){if(function(t,e){(0,B.T)(t,"interactive",(function(){var t,n={entryType:et.RESOURCE,initiatorType:H,traceId:rt(document),toJSON:function(){return(0,b.f0)({},t,{toJSON:void 0})}};if(st(et.NAVIGATION)&&performance.getEntriesByType(et.NAVIGATION).length>0){var r=performance.getEntriesByType(et.NAVIGATION)[0];t=(0,b.f0)(r.toJSON(),n)}else{var i=ct();t=(0,b.f0)(i,{decodedBodySize:0,duration:i.responseEnd,name:window.location.href,startTime:0},n)}e(t)}))}(e,(function(n){dt(t,e,[n])})),at()){var n=performance.getEntries();(0,V.iK)((function(){return dt(t,e,n)}))}if(window.PerformanceObserver){var r=(0,m.zk)((function(n){return dt(t,e,n.getEntries())})),i=[et.RESOURCE,et.NAVIGATION,et.LONG_TASK,et.PAINT],o=[et.LARGEST_CONTENTFUL_PAINT,et.FIRST_INPUT,et.LAYOUT_SHIFT,et.EVENT];try{o.forEach((function(t){new window.PerformanceObserver(r).observe({type:t,buffered:!0,durationThreshold:40})}))}catch(t){i.push.apply(i,o)}new PerformanceObserver(r).observe({entryTypes:i}),at()&&"addEventListener"in performance&&(0,F.Oo)(e,performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()}))}st(et.NAVIGATION)||function(t,e){function n(){e((0,b.f0)(ct(),{entryType:et.NAVIGATION}))}(0,B.T)(t,"complete",(function(){(0,V.iK)(n)}))}(e,(function(n){dt(t,e,[n])})),st(et.FIRST_INPUT)||function(t,e){var n=(0,u.m6)(),r=!1,i=(0,F.yw)(t,window,[F.EZ.CLICK,F.EZ.MOUSE_DOWN,F.EZ.KEY_DOWN,F.EZ.TOUCH_START,F.EZ.POINTER_DOWN],(function(e){if(e.cancelable){var n={entryType:et.FIRST_INPUT,processingStart:(0,u._q)(),processingEnd:(0,u._q)(),startTime:e.timeStamp,duration:0,name:""};e.type===F.EZ.POINTER_DOWN?o(t,n):a(n)}}),{passive:!0,capture:!0}).stop;function o(t,e){(0,F.yw)(t,window,[F.EZ.POINTER_UP,F.EZ.POINTER_CANCEL],(function(t){t.type===F.EZ.POINTER_UP&&a(e)}),{once:!0})}function a(t){if(!r){r=!0,i();var o=t.processingStart-t.startTime;o>=0&&o<(0,u.m6)()-n&&e(t)}}}(e,(function(n){dt(t,e,[n])}))}function ct(){var t={},e=performance.timing;for(var n in e)if((0,T.hj)(e[n])){var r=n,i=e[r];t[r]=0===i?0:(0,u.ni)(i)}return t}function dt(t,e,n){var r=n.filter((function(t){return(0,_.E5)(et,t.entryType)})).filter((function(t){return!function(t){return t.entryType===et.NAVIGATION&&t.loadEventEnd<=0}(t)&&!function(t,e){return e.entryType===et.RESOURCE&&!K(t,e.name)}(e,t)}));r.length&&t.notify(0,r)}!function(t){t.EVENT="event",t.FIRST_INPUT="first-input",t.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",t.LAYOUT_SHIFT="layout-shift",t.LONG_TASK="longtask",t.NAVIGATION="navigation",t.PAINT="paint",t.RESOURCE="resource"}(et||(et={}));var ft=n(15123);function lt(t,e,n){var r=(0,d.I8)(t),i=n(r);return(0,b.qP)(e).forEach((function(e){var n=e[0],i=e[1],o=function(t,e){for(var n=t,r=0,i=e.split(".");r0})}}));return r}(t,e,n);return function(t,e,n){var r,i=!1,o=(0,V.iK)((0,m.zk)((function(){return d({hadActivity:!1})})),Mt),a=void 0!==n?(0,V.iK)((0,m.zk)((function(){return d({hadActivity:!0,end:(0,u.n$)()})})),n):void 0,s=t.subscribe((function(t){var e=t.isBusy;(0,V.gr)(o),(0,V.gr)(r);var n=(0,u.n$)();e||(r=(0,V.iK)((0,m.zk)((function(){return d({hadActivity:!0,end:n})})),Pt))})),c=function(){i=!0,(0,V.gr)(o),(0,V.gr)(r),(0,V.gr)(a),s.unsubscribe()};function d(t){i||(c(),e(t))}return{stop:c}}(o,r,i)}function Dt(t,e){return(0,S.v)(t.excludedActivityUrls,e)}var Lt=n(12172),Ut="data-dd-action-name";function Vt(t,e){return Ft(t,Ut)||e&&Ft(t,e)||jt(t,e,Ht)||jt(t,e,qt)||""}function Ft(t,e){var n;if(function(){void 0===Zt&&(Zt="closest"in HTMLElement.prototype);return Zt}())n=t.closest("[".concat(e,"]"));else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return Yt(Wt(n.getAttribute(e).trim()))}var Bt,Zt,Ht=[function(t,e){if(function(){void 0===Bt&&(Bt="labels"in HTMLInputElement.prototype);return Bt}()){if("labels"in t&&t.labels&&t.labels.length>0)return Gt(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&(0,b.sE)(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return n&&Gt(n,e)}},function(t){if("INPUT"===t.nodeName){var e=t,n=e.getAttribute("type");if("button"===n||"submit"===n||"reset"===n)return e.value}},function(t,e){if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return Gt(t,e)},function(t){return t.getAttribute("aria-label")},function(t,e){var n=t.getAttribute("aria-labelledby");if(n)return n.split(/\s+/).map((function(e){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)})).filter((function(t){return Boolean(t)})).map((function(t){return Gt(t,e)})).join(" ")},function(t){return t.getAttribute("alt")},function(t){return t.getAttribute("name")},function(t){return t.getAttribute("title")},function(t){return t.getAttribute("placeholder")},function(t,e){if("options"in t&&t.options.length>0)return Gt(t.options[0],e)}],qt=[function(t,e){return Gt(t,e)}],zt=10;function jt(t,e,n){for(var r=t,i=0;i<=zt&&r&&"BODY"!==r.nodeName&&"HTML"!==r.nodeName&&"HEAD"!==r.nodeName;){for(var o=0,a=n;o100?"".concat((0,Q._z)(t,100)," [...]"):t}function Gt(t,e){if(!t.isContentEditable){if("innerText"in t){var n=t.innerText,r=function(e){for(var r=t.querySelectorAll(e),i=0;i0&&(n=n.replace(a,""))}}};return(0,Lt.w1)()&&r("script, style"),r("[".concat(Ut,"]")),e&&r("[".concat(e,"]")),n}return t.textContent}}var Jt,Kt=[Ut,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],Qt=[ne,function(t){if(t.id&&!ee(t.id))return"#".concat((0,b.QA)(t.id))}],Xt=[ne,function(t){if("BODY"===t.tagName)return;if(t.classList.length>0)for(var e=0;e").concat(e):t}var ue=u.WT,ce=100;function de(t,e){var n,r=[],i=0;function o(t){t.stopObservable.subscribe(a),r.push(t),(0,V.gr)(n),n=(0,V.iK)(s,ue)}function a(){1===i&&r.every((function(t){return t.isStopped()}))&&(i=2,e(r))}function s(){(0,V.gr)(n),0===i&&(i=1,a())}return o(t),{tryAppend:function(t){return 0===i&&(r.length>0&&(e=r[r.length-1].event,n=t.event,!(e.target===n.target&&(a=e,u=n,Math.sqrt(Math.pow(a.clientX-u.clientX,2)+Math.pow(a.clientY-u.clientY,2))<=ce)&&e.timeStamp-n.timeStamp<=ue))?(s(),!1):(o(t),!0));var e,n,a,u},stop:function(){s()}}}function fe(){var t=window.getSelection();return!t||t.isCollapsed}function le(t){return t.target instanceof Element&&!1!==t.isPrimary}var ve=3;function pe(t,e){if(function(t){if(t.some((function(t){return t.getUserActivity().selection})))return!1;for(var e=0;e0},get hasPageActivity(){return void 0!==o},getUserActivity:n,addFrustration:function(t){l.push(t)},startClocks:s,isStopped:function(){return 1===f||2===f},clone:function(){return Te(t,e,n,r,i)},validate:function(e){if(p(),1===f){var n=d.eventCounts,c=n.resourceCount,v=n.errorCount,m=n.longTaskCount,g=(0,b.f0)({type:"click",duration:o&&(0,u._J)(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:l,counts:{resourceCount:c,errorCount:v,longTaskCount:m},events:null!==e&&void 0!==e?e:[i],event:i},r);t.notify(1,g),f=2}},discard:function(){p(),f=2}}}function we(t,e){var n=_e(t)?{action:{id:t.id,loading_time:(0,u.c0)(t.duration),frustration:{type:t.frustrationTypes},error:{count:t.counts.errorCount},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_dd:{action:{target:t.target,position:t.position}}}:void 0;return{customerContext:_e(t)?void 0:t.context,rawRumEvent:(0,d.$e)({action:{id:(0,Q.DO)(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:"action",view:{in_foreground:e.isInActivePageStateAt(t.startClocks.relative)}},n),startTime:t.startClocks.relative,domainContext:_e(t)?{events:t.events}:{}}}function _e(t){return"custom"!==t.type}var Se=n(21315),Ee=n(70340),Ce=n(42419),Ie=n(86296);var Ae=n(73670);function xe(t,e,n,r){var i=new D.y;return function(t){var e=(0,Ie.a)([c.vA.error]).subscribe((function(e){return t.notify({startClocks:(0,u.$I)(),message:e.message,stack:e.stack,fingerprint:e.fingerprint,source:Ce.z.CONSOLE,handling:"handled",handlingStack:e.handlingStack})}))}(i),(0,Se.Lp)(i),function(t,e){var n=(0,Ae.v)(t,[Ae._.cspViolation,Ae._.intervention]).subscribe((function(t){return e.notify({startClocks:(0,u.$I)(),message:t.message,stack:t.stack,type:t.subtype,source:Ce.z.REPORT,handling:"unhandled"})}))}(e,i),i.subscribe((function(e){return t.notify(12,{error:e})})),function(t,e,n){return t.subscribe(12,(function(r){var i=r.error,o=r.customerContext,a=r.savedCommonContext;t.notify(10,(0,b.f0)({customerContext:o,savedCommonContext:a},function(t,e,n){var r={date:t.startClocks.timeStamp,error:{id:(0,Q.DO)(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser",fingerprint:t.fingerprint},type:"error",view:{in_foreground:e.isInActivePageStateAt(t.startClocks.relative)}},i=n.findFeatureFlagEvaluations(t.startClocks.relative);i&&!(0,_.Qr)(i)&&(r.feature_flags=i);return{rawRumEvent:r,startTime:t.startClocks.relative,domainContext:{error:t.originalError}}}(i,e,n)))})),{addError:function(e,n){var r=e.error,i=e.handlingStack,o=e.startClocks,a=e.context,s=r instanceof Error?(0,Ee._)(r):void 0,u=(0,h.AP)({stackTrace:s,originalError:r,handlingStack:i,startClocks:o,nonErrorPrefix:"Provided",source:Ce.z.CUSTOM,handling:"handled"});t.notify(12,{customerContext:a,savedCommonContext:n,error:u})}}}(t,n,r)}var ke=n(57549);function Ne(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n=e.map((function(t){return t.toJSON()})).filter(W).filter((function(e){return n=e,r=t.startClocks.relative,i=Oe({startTime:t.startClocks.relative,duration:t.duration}),o=1,n.startTime>=r-o&&Oe(n)<=(0,u.WK)(i,o);var n,r,i,o}));return 1===n.length?n[0]:void 0}}}function Oe(t){return(0,u.WK)(t.startTime,t.duration)}function Re(t,e,n,r){t.subscribe(6,(function(i){var o=function(t,e,n,r){var i,o=Ne(t),a=o?(0,u.DY)(o.startTime):t.startClocks,s=Pe(e,n,a),c=function(t,e){var n=t.traceSampled&&t.traceId&&t.spanId;if(!n)return;return{_dd:{span_id:t.spanId.toDecimalString(),trace_id:t.traceId.toDecimalString(),rule_psr:De(e)}}}(t,e);if(!s&&!c)return;var f="xhr"===t.type?"xhr":"fetch",l=o?$e(o):void 0,v=function(t,e,n){var r,i=null===(r=t.findAll(e.relative,n))||void 0===r?void 0:r.some((function(t){return"frozen"===t.state}));return i?void 0:(0,u.c0)(n)}(r,a,t.duration),p=Le(r,a,null!==(i=null===o||void 0===o?void 0:o.duration)&&void 0!==i?i:t.duration),m=(0,d.$e)({date:a.timeStamp,resource:{id:(0,Q.DO)(),type:f,duration:v,method:t.method,status_code:t.status,url:t.url},type:"resource",_dd:{discarded:!s}},c,l,p);return{startTime:a.relative,rawRumEvent:m,domainContext:{performanceEntry:o,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error}}}(i,e,n,r);o&&t.notify(10,o)})),t.subscribe(0,(function(i){for(var o=0,a=i;o=0&&i.responseStart<=(0,u._q)()?i.responseStart:void 0})}})).unsubscribe}}(t,(function(t){n(t.loadEvent),i.navigationTimings=t,r()})).stop,a=function(t,e){var n,r;return void 0===e&&(e=window),"hidden"===document.visibilityState?n=0:(n=1/0,r=(0,F.yw)(t,e,[F.EZ.PAGE_HIDE,F.EZ.VISIBILITY_CHANGE],(function(t){t.type!==F.EZ.PAGE_HIDE&&"hidden"!==document.visibilityState||(n=t.timeStamp,r())}),{capture:!0}).stop),{get timeStamp(){return n},stop:function(){null===r||void 0===r||r()}}}(e),s=function(t,e,n){return{stop:t.subscribe(0,(function(t){var r=(0,b.sE)(t,(function(t){return t.entryType===et.PAINT&&"first-contentful-paint"===t.name&&t.startTime=0?o:0,time:i.startTime,targetSelector:a})}})).unsubscribe}}(t,e,a,(function(t){i.firstInput=t,r()})).stop;return{stop:function(){o(),s(),c(),d(),a.stop()},initialViewMetrics:i}}function Ze(t,e,n){if(!st(et.LAYOUT_SHIFT))return{stop:r.Z};var i=0;n({value:0});var o=function(){var t,e,n,r,i=0,o=0;return{update:function(a){var s,c;void 0===t||a.startTime-e>=u.WT||a.startTime-t>=5*u.WT?(t=e=a.startTime,i=a.value,o=0,n=void 0):(i+=a.value,e=a.startTime),a.value>o&&(o=a.value,r=a.startTime,n=(null===(s=a.sources)||void 0===s?void 0:s.length)?null===(c=(0,b.sE)(a.sources,(function(t){return!!t.node&&tt(t.node)})))||void 0===c?void 0:c.node:void 0)},value:function(){return i},largestLayoutShiftTarget:function(){return n},largestLayoutShiftTime:function(){return r}}}();return{stop:e.subscribe(0,(function(e){for(var r=0,a=e;ri)){i=o.value();var u=(0,T.NM)(i,4),c=o.largestLayoutShiftTarget(),d=void 0;(0,ke.W_)(ke.uh.WEB_VITALS_ATTRIBUTION)&&c&&c.isConnected&&(d=te(c,t.actionNameAttribute)),n({value:u,targetSelector:d})}}})).unsubscribe}}var He=0,qe=1/0,ze=0;var je,We=function(){return Ve?He:window.performance.interactionCount||0},Ye=10,Ge=1*u.yR;function Je(t,e,n,i){if(!(st(et.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:r.Z,stop:r.Z};var o,a=function(t){"interactionCount"in performance||Ve||(Ve=new window.PerformanceObserver((0,m.zk)((function(t){t.getEntries().forEach((function(t){var e=t;e.interactionId&&(qe=Math.min(qe,e.interactionId),ze=Math.max(ze,e.interactionId),He=(ze-qe)/7+1)}))})))).observe({type:"event",buffered:!0,durationThreshold:0});var e="initial_load"===t?0:We(),n={stopped:!1};function r(){return We()-e}return{getViewInteractionCount:function(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount:function(){n={stopped:!0,interactionCount:r()}}}}(n),s=a.getViewInteractionCount,u=a.stopViewInteractionCount,c=1/0,d=function(t){var e=[];function n(){e.sort((function(t,e){return e.duration-t.duration})).splice(Ye)}return{process:function(t){var r=e.findIndex((function(e){return t.interactionId===e.interactionId})),i=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.lengthi.duration)&&(e.push(t),n())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}(s),f=-1;return{getInteractionToNextPaint:function(){return f>=0?{value:Math.min(f,Ge),targetSelector:o}:s()?{value:0}:void 0},setViewEnd:function(t){c=t,u()},stop:i.subscribe(0,(function(n){for(var r=0,i=n;r=e&&a.startTime<=c&&d.process(a)}var s=d.estimateP98Interaction();s&&(f=s.duration,o=(0,ke.W_)(ke.uh.WEB_VITALS_ATTRIBUTION)&&s.target&&tt(s.target)?te(s.target,t.actionNameAttribute):void 0)})).unsubscribe}}function Ke(t){return je||(je=function(t){var e=new D.y((function(){var n=(0,r.P)((function(){e.notify(Qe())}),200).throttled;return(0,F.Oo)(t,window,F.EZ.RESIZE,n,{capture:!0,passive:!0}).stop}));return e}(t)),je}function Qe(){var t=window.visualViewport;return t?{width:Number(t.width*t.scale),height:Number(t.height*t.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}var Xe=u.WT;function tn(t,e,n,i){void 0===i&&(i=function(t,e){void 0===e&&(e=Xe);var n=new D.y((function(){function i(){var t,e,r,i,o,a;n.notify((a=window.visualViewport,o=a?a.pageTop-a.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0,t=Math.round(o),e=Qe().height,r=Math.round((document.scrollingElement||document.documentElement).scrollHeight),i=Math.round(e+t),{scrollHeight:r,scrollDepth:i,scrollTop:t}))}if(window.ResizeObserver){var o=(0,r.P)(i,e,{leading:!1,trailing:!0}),a=document.scrollingElement||document.documentElement,s=new ResizeObserver((0,m.zk)(o.throttled));s.observe(a);var u=(0,F.Oo)(t,window,F.EZ.SCROLL,o.throttled,{passive:!0});return function(){o.cancel(),s.unobserve(a),u.stop()}}}));return n}(t));var o=0,a=0,s=0,c=i.subscribe((function(t){var r=t.scrollDepth,i=t.scrollTop,c=t.scrollHeight,d=!1;if(r>o&&(o=r,d=!0),c>a){a=c;var f=(0,u._q)();s=(0,u._J)(e.relative,f),d=!0}d&&n({maxDepth:Math.min(o,a),maxDepthScrollTop:i,maxScrollHeight:a,maxScrollHeightTime:s})}));return{stop:function(){return c.unsubscribe()}}}function en(t,e,n,r,i,o){var a={},s=function(t,e,n,r,i,o){var a="initial_load"===r,s=!0,c=[];function d(){!s&&!a&&c.length>0&&o(Math.max.apply(Math,c))}return{stop:$t(t,e,n,(function(t){s&&(s=!1,t.hadActivity&&c.push((0,u._J)(i.timeStamp,t.end)),d())})).stop,setLoadEvent:function(t){a&&(a=!1,c.push(t),d())}}}(t,e,n,i,o,(function(t){a.loadingTime=t,r()})),c=s.stop,d=s.setLoadEvent,f=tn(n,o,(function(t){a.scroll=t})).stop,l=Ze(n,t,(function(t){a.cumulativeLayoutShift=t,r()})).stop,v=Je(n,o.relative,i,t),p=v.stop,m=v.getInteractionToNextPaint;return{stop:function(){c(),l(),f()},stopINPTracking:p,setLoadEvent:d,setViewEnd:v.setViewEnd,getCommonViewMetrics:function(){return a.interactionToNextPaint=m(),a}}}var nn=3e3,rn=5*u.yR,on=5*u.yR;function an(t,e,n,i,o,a,s){var d,f=new Set,l=v("initial_load",(0,u.cQ)(),s);function v(o,a,s){var d=function(t,e,n,i,o,a,s){void 0===a&&(a=(0,u.$I)());var d,f,l,v,p=(0,Q.DO)(),m=new D.y,g={},h=0,y=(0,_.mv)(i),b=!0;s&&(f=s.name,l=s.service,v=s.version);t.notify(2,{id:p,name:f,startClocks:a,service:l,version:v});var T=(0,r.P)(U,nn,{leading:!1}),w=T.throttled,S=T.cancel,E=en(t,e,n,w,o,a),C=E.setLoadEvent,I=E.setViewEnd,A=E.stop,x=E.stopINPTracking,k=E.getCommonViewMetrics,N="initial_load"===o?Be(t,n,C,w):{stop:r.Z,initialViewMetrics:{}},O=N.stop,R=N.initialViewMetrics,M=function(t,e,n){var r=Ot({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{stop:r.stop,eventCounts:r.eventCounts}}(t,p,w),P=M.stop,$=M.eventCounts,L=(0,V.Zi)(U,rn);function U(){S(),h+=1;var e=void 0===d?(0,u.n$)():d.timeStamp;t.notify(3,{customTimings:g,documentVersion:h,id:p,name:f,service:l,version:v,loadingType:o,location:y,startClocks:a,commonViewMetrics:k(),initialViewMetrics:R,duration:(0,u._J)(a.timeStamp,e),isActive:void 0===d,sessionIsActive:b,eventCounts:$})}return U(),{name:f,service:l,version:v,stopObservable:m,end:function(e){var n,r,i=this;void 0===e&&(e={}),d||(d=null!==(n=e.endClocks)&&void 0!==n?n:(0,u.$I)(),b=null===(r=e.sessionIsActive)||void 0===r||r,t.notify(4,{endClocks:d}),(0,V.cv)(L),I(d.relative),A(),U(),(0,V.iK)((function(){i.stop()}),on))},stop:function(){O(),P(),x(),m.notify()},addTiming:function(t,e){if(!d){var n=(0,u.Cn)(e)?e:(0,u._J)(a.timeStamp,e);g[function(t){var e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");e!==t&&c.jf.warn("Invalid timing name: ".concat(t,", sanitized to: ").concat(e));return e}(t)]=n,w()}}}}(e,n,i,t,o,a,s);return f.add(d),d.stopObservable.subscribe((function(){f.delete(d)})),d}return e.subscribe(8,(function(){l=v("route_change",void 0,{name:l.name,service:l.service,version:l.version})})),e.subscribe(7,(function(){l.end({sessionIsActive:!1})})),e.subscribe(9,(function(t){t.reason!==$.k$.UNLOADING&&t.reason!==$.k$.PAGEHIDE||l.end()})),a&&(d=function(t){return t.subscribe((function(t){var e,n,r,i,o=t.oldLocation,a=t.newLocation;n=a,(e=o).pathname===n.pathname&&(r=n.hash,""!==(i=r.substring(1))&&document.getElementById(i)||sn(n.hash)===sn(e.hash))||(l.end(),l=v("route_change"))}))}(o)),{addTiming:function(t,e){void 0===e&&(e=(0,u.n$)()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=v("route_change",e,t)},stop:function(){null===d||void 0===d||d.unsubscribe(),l.end(),f.forEach((function(t){return t.stop()}))}}}function sn(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function un(t,e,n,r,i,o,a,s,c){return t.subscribe(3,(function(n){return t.notify(10,function(t,e,n,r,i){var o,a,s,c,d,f,l,v,p,m,g,h,y,b,T=r.getReplayStats(t.id),w=n.findFeatureFlagEvaluations(t.startClocks.relative),S=i.findAll(t.startClocks.relative,t.duration),E={_dd:{document_version:t.documentVersion,replay_stats:T,page_states:S,configuration:{start_session_replay_recording_manually:e.startSessionReplayRecordingManually}},date:t.startClocks.timeStamp,type:"view",view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:null===(o=t.commonViewMetrics.cumulativeLayoutShift)||void 0===o?void 0:o.value,cumulative_layout_shift_target_selector:null===(a=t.commonViewMetrics.cumulativeLayoutShift)||void 0===a?void 0:a.targetSelector,first_byte:(0,u.c0)(null===(s=t.initialViewMetrics.navigationTimings)||void 0===s?void 0:s.firstByte),dom_complete:(0,u.c0)(null===(c=t.initialViewMetrics.navigationTimings)||void 0===c?void 0:c.domComplete),dom_content_loaded:(0,u.c0)(null===(d=t.initialViewMetrics.navigationTimings)||void 0===d?void 0:d.domContentLoaded),dom_interactive:(0,u.c0)(null===(f=t.initialViewMetrics.navigationTimings)||void 0===f?void 0:f.domInteractive),error:{count:t.eventCounts.errorCount},first_contentful_paint:(0,u.c0)(t.initialViewMetrics.firstContentfulPaint),first_input_delay:(0,u.c0)(null===(l=t.initialViewMetrics.firstInput)||void 0===l?void 0:l.delay),first_input_time:(0,u.c0)(null===(v=t.initialViewMetrics.firstInput)||void 0===v?void 0:v.time),first_input_target_selector:null===(p=t.initialViewMetrics.firstInput)||void 0===p?void 0:p.targetSelector,interaction_to_next_paint:(0,u.c0)(null===(m=t.commonViewMetrics.interactionToNextPaint)||void 0===m?void 0:m.value),interaction_to_next_paint_target_selector:null===(g=t.commonViewMetrics.interactionToNextPaint)||void 0===g?void 0:g.targetSelector,is_active:t.isActive,name:t.name,largest_contentful_paint:(0,u.c0)(null===(h=t.initialViewMetrics.largestContentfulPaint)||void 0===h?void 0:h.value),largest_contentful_paint_target_selector:null===(y=t.initialViewMetrics.largestContentfulPaint)||void 0===y?void 0:y.targetSelector,load_event:(0,u.c0)(null===(b=t.initialViewMetrics.navigationTimings)||void 0===b?void 0:b.loadEvent),loading_time:cn((0,u.c0)(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:(0,u.c0)(t.duration)},feature_flags:w&&!(0,_.Qr)(w)?w:void 0,display:t.commonViewMetrics.scroll?{scroll:{max_depth:t.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:t.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:t.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:(0,u.c0)(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!T||void 0,is_active:!!t.sessionIsActive&&void 0},privacy:{replay_level:e.defaultPrivacyLevel}};(0,_.Qr)(t.customTimings)||(E.view.custom_timings=(0,_.Q8)(t.customTimings,u.c0));return{rawRumEvent:E,startTime:t.startClocks.relative,domainContext:{location:t.location}}}(n,e,o,s,a))})),an(n,t,r,e,i,!e.trackViewsManually,c)}function cn(t){return(0,T.hj)(t)&&t<0?void 0:t}var dn=n(5135),fn="rum";function ln(t,e){var n=(0,dn.HX)(t,fn,(function(e){return function(t,e){var n;n=function(t){return"0"===t||"1"===t||"2"===t}(e)?e:(0,T.y7)(t.sessionSampleRate)?(0,T.y7)(t.sessionReplaySampleRate)?"1":"2":"0";return{trackingType:n,isTracked:vn(n)}}(t,e)}));return n.expireObservable.subscribe((function(){e.notify(7)})),n.renewObservable.subscribe((function(){e.notify(8)})),{findTrackedSession:function(t){var e=n.findActiveSession(t);if(e&&vn(e.trackingType))return{id:e.id,sessionReplayAllowed:"1"===e.trackingType}},expire:n.expire,expireObservable:n.expireObservable}}function vn(t){return"2"===t||"1"===t}var pn=n(78817);var mn=wt.T;function gn(t,e){var n=(0,_.mv)(e),r=new D.y((function(){var e=function(t,e){var n=(0,Rt.Lm)(history,"pushState",{after:e}).stop,r=(0,Rt.Lm)(history,"replaceState",{after:e}).stop,i=(0,F.Oo)(t,window,F.EZ.POP_STATE,e).stop;return{stop:function(){n(),r(),i()}}}(t,i).stop,n=function(t,e){return(0,F.Oo)(t,window,F.EZ.HASH_CHANGE,e)}(t,i).stop;return function(){e(),n()}}));function i(){if(n.href!==e.href){var t=(0,_.mv)(e);r.notify({newLocation:t,oldLocation:n}),n=t}}return r}var hn=n(51962),yn=n(19012),bn=n(4326),Tn=wt.T,wn=200;var _n,Sn,En,Cn=10*u.WT;function In(){0!==_n.batchCount&&((0,P.eJ)("Customer data measures",_n),kn())}function An(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function xn(t,e){t.sum+=e.sum,t.min=Math.min(t.min,e.min),t.max=Math.max(t.max,e.max)}function kn(){_n={batchCount:0,batchBytesCount:{min:1/0,max:0,sum:0},batchMessagesCount:{min:1/0,max:0,sum:0},globalContextBytes:{min:1/0,max:0,sum:0},userContextBytes:{min:1/0,max:0,sum:0},featureFlagBytes:{min:1/0,max:0,sum:0}}}function Nn(){En=!1,Sn={globalContextBytes:{min:1/0,max:0,sum:0},userContextBytes:{min:1/0,max:0,sum:0},featureFlagBytes:{min:1/0,max:0,sum:0}}}var On=4e3,Rn=500,Mn=wt.T;function Pn(t,e){void 0===e&&(e=Rn);var n,r=new _t.P(Mn,On);o($n(),(0,u._q)());var i=(0,F.yw)(t,window,[F.EZ.PAGE_SHOW,F.EZ.FOCUS,F.EZ.BLUR,F.EZ.VISIBILITY_CHANGE,F.EZ.RESUME,F.EZ.FREEZE,F.EZ.PAGE_HIDE],(function(t){o(function(t){if(t.type===F.EZ.FREEZE)return"frozen";if(t.type===F.EZ.PAGE_HIDE)return t.persisted?"frozen":"terminated";return $n()}(t),t.timeStamp)}),{capture:!0}).stop;function o(t,e){void 0===e&&(e=(0,u._q)()),t!==n&&(n=t,r.closeActive(e),r.add({state:n,startTime:e},e))}return{findAll:function(t,n){var i=r.findAll(t,n);if(0!==i.length){for(var o=[],a=Math.max(0,i.length-e),s=i.length-1;s>=a;s--){var c=i[s],d=(0,u._J)(t,c.startTime);o.push({state:c.state,start:(0,u.c0)(d)})}return o}},isInActivePageStateAt:function(t){var e=r.find(t);return void 0!==e&&"active"===e.state},addPageState:o,stop:function(){i(),r.stop()}}}function $n(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}var Dn=n(11095);function Ln(t,e){var n=e.session,r=e.viewContext,i=e.errorType,o=n?n.id:"no-session-id",a=[];void 0!==i&&a.push("error-type=".concat(i)),r&&(a.push("seed=".concat(r.id)),a.push("from=".concat(r.startClocks.timeStamp)));var s,u,c,d=(u=(s=t).site,c=s.subdomain||function(t){switch(t.site){case Dn.D_:case Dn.Ds:return"app";case Dn.DZ:return"dd";default:return}}(s),"https://".concat(c?"".concat(c,"."):"").concat(u)),f="/rum/replay/sessions/".concat(o);return"".concat(d).concat(f,"?").concat(a.join("&"))}var Un=function(t,e,n){var o,T=void 0===n?{}:n,w=T.ignoreInitIfSyntheticsWillInjectRum,_=void 0===w||w,S=T.startDeflateWorker,E=T.createDeflateEncoder,C=!1,I=(0,a.W)(2),A=(0,a.W)(1),x=function(){},k=function(){},O=r.Z,M=function(){},P=new s.S,$=function(t,e){void 0===e&&(e=(0,u.n$)()),P.add((function(){return $(t,e)}))},D=function(t,e){void 0===e&&(e=(0,u.$I)()),P.add((function(){return D(t,e)}))},L=function(t,n){void 0===n&&(n=R(I,A,e)),P.add((function(){return L(t,n)}))},U=function(t,n){void 0===n&&(n=R(I,A,e)),P.add((function(){return U(t,n)}))},V=function(){P.add((function(){return V()}))},F=function(){P.add((function(){return F()}))},B=function(t,e){P.add((function(){return B(t,e)}))};function Z(n,r,i){if(n.storeContextsAcrossPages){var a=I.getContext();(I=(0,v.PI)(r,"rum",2)).setContext((0,d.$e)(I.getContext(),a));var s=A.getContext();(A=(0,v.PI)(r,"rum",1)).setContext((0,d.$e)(A.getContext(),s))}var u=t(n,r,e,I,A,i,o&&E?function(t){return E(r,o,t)}:p.G);M=function(){return e.getSessionReplayLink(r,u.session,u.viewContexts)},V=e.start,F=e.stop,D=u.startView,L=u.addAction,U=u.addError,$=u.addTiming,B=u.addFeatureFlagEvaluation,x=u.getInternalContext,O=u.stopSession,e.onRumStart(u.lifeCycle,r,u.session,u.viewContexts,o),P.drain()}var H=(0,m.zk)((function(t){D("object"===typeof t?t:{name:t})}));return(0,i.r)({init:(0,m.zk)((function(t){if(t){if(k=function(){return(0,d.I8)(t)},!_||!(0,f.Y9)()){var e=(0,l.x)();if(e&&(t=function(t){return(0,b.f0)({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100})}(t)),function(t){if(C)return t.silentMultipleInit||c.jf.error("DD_RUM is already initialized."),!1;return!0}(t)){var n=N(t);if(n)if(e||n.sessionStoreStrategyType){if(!n.compressIntakeRequests||e||!S||(o=S(n,"Datadog RUM",r.Z))){if(n.trackViewsManually){var i=P;P=new s.S,D=function(e){Z(t,n,e)},i.drain()}else Z(t,n);C=!0}}else c.jf.warn("No storage available for session. We will not send any data.")}}}else c.jf.error("Missing configuration")})),setGlobalContextProperty:(0,m.zk)((function(t,e){return I.setContextProperty(t,e)})),removeGlobalContextProperty:(0,m.zk)((function(t){return I.removeContextProperty(t)})),getGlobalContext:(0,m.zk)((function(){return I.getContext()})),setGlobalContext:(0,m.zk)((function(t){return I.setContext(t)})),clearGlobalContext:(0,m.zk)((function(){return I.clearContext()})),getInternalContext:(0,m.zk)((function(t){return x(t)})),getInitConfiguration:(0,m.zk)((function(){return k()})),addAction:(0,m.zk)((function(t,e){L({name:(0,g.N)(t),context:(0,g.N)(e),startClocks:(0,u.$I)(),type:"custom"})})),addError:function(t,e){var n=(0,h.Xp)();(0,m.L6)((function(){U({error:t,handlingStack:n,context:(0,g.N)(e),startClocks:(0,u.$I)()})}))},addTiming:(0,m.zk)((function(t,e){$((0,g.N)(t),e)})),setUser:(0,m.zk)((function(t){(0,y.z)(t)&&A.setContext((0,y.I)(t))})),getUser:(0,m.zk)((function(){return A.getContext()})),setUserProperty:(0,m.zk)((function(t,e){var n,r=(0,y.I)((n={},n[t]=e,n))[t];A.setContextProperty(t,r)})),removeUserProperty:(0,m.zk)((function(t){return A.removeContextProperty(t)})),clearUser:(0,m.zk)((function(){return A.clearContext()})),startView:H,stopSession:(0,m.zk)((function(){O()})),startSessionReplayRecording:(0,m.zk)((function(){return V()})),stopSessionReplayRecording:(0,m.zk)((function(){return F()})),addFeatureFlagEvaluation:(0,m.zk)((function(t,e){B((0,g.N)(t),(0,g.N)(e))})),getSessionReplayLink:(0,m.zk)((function(){return M()}))})}((function(t,e,n,i,o,a,s){var c=[],f=new Tt;f.subscribe(11,(function(t){return(0,M.j)("rum",t)}));var v=function(t){var e=(0,P.VL)("browser-rum-sdk",t);if((0,l.x)()){var n=(0,l.A)();e.observable.subscribe((function(t){return n.send("internal_telemetry",t)}))}return e}(e);v.setContextProvider((function(){var t,n;return{application:{id:e.applicationId},session:{id:null===(t=y.findTrackedSession())||void 0===t?void 0:t.id},view:{id:null===(n=A.findView())||void 0===n?void 0:n.id},action:{id:N.findActionId()}}}));var p=function(t){f.notify(12,{error:t}),(0,P.eJ)("Error reported to customer",{"error.message":t.message})},m=function(t,e){if(void 0===e&&(e=hn.qt),!(0,ke.W_)(ke.uh.FEATURE_FLAGS))return{findFeatureFlagEvaluations:function(){},getFeatureFlagBytesCount:function(){return 0},addFeatureFlagEvaluation:r.Z,stop:r.Z};var n=new _t.P(Tn),i=0,o=!1;t.subscribe(4,(function(t){var e=t.endClocks;n.closeActive(e.relative)})),t.subscribe(2,(function(t){var e=t.startClocks;n.add({},e.relative),i=0}));var a=(0,r.P)((function(t){i=e((0,yn.l)(t)),o||(o=(0,bn.H)(i,0))}),wn),s=a.throttled;return{findFeatureFlagEvaluations:function(t){return n.find(t)},getFeatureFlagBytesCount:function(){return n.find()?i:0},addFeatureFlagEvaluation:function(t,e){var r=n.find();r&&(r[t]=e,s(r))},stop:a.cancel}}(f),g=(0,$.Pd)(e),h=g.subscribe((function(t){f.notify(9,t)}));c.push((function(){return h.unsubscribe()}));var y=(0,l.x)()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplayAllowed:!1};return{findTrackedSession:function(){return t},expire:r.Z,expireObservable:new D.y}}():ln(e,f);if((0,l.x)())!function(t){var e=(0,l.A)();t.subscribe(11,(function(t){e.send("rum",t)}))}(f);else{var S=function(t,e,n,r,i,o,a){var s=t.replica,u=(0,pn.W)(t,{endpoint:t.rumEndpointBuilder,encoder:a(2)},s&&{endpoint:s.rumEndpointBuilder,transformMessage:function(t){return(0,d.$e)(t,{application:{id:s.applicationId}})},encoder:a(3)},r,i,o);return e.subscribe(11,(function(t){"view"===t.type?u.upsert(t,t.view.id):u.add(t)})),n.subscribe((function(e){return u.add(e,(0,P.VG)(t))})),u}(e,f,v.observable,p,g,y.expireObservable,s);c.push((function(){return S.stop()})),function(t,e,n,r,i,o,a){e.enabled&&(0,T.y7)(t.customerDataTelemetrySampleRate)&&(kn(),Nn(),n.subscribe(11,(function(t){En=!0,An(Sn.globalContextBytes,(0,_.Qr)(r.getContext())?0:r.getBytesCount()),An(Sn.userContextBytes,(0,_.Qr)(i.getContext())?0:i.getBytesCount());var e=o.findFeatureFlagEvaluations(),n=(0,b.q9)(["view","error"],t.type)&&e&&!(0,_.Qr)(e);An(Sn.featureFlagBytes,n?o.getFeatureFlagBytesCount():0)})),a.subscribe((function(t){var e=t.bytesCount,n=t.messagesCount;En&&(_n.batchCount+=1,An(_n.batchBytesCount,e),An(_n.batchMessagesCount,n),xn(_n.globalContextBytes,Sn.globalContextBytes),xn(_n.userContextBytes,Sn.userContextBytes),xn(_n.featureFlagBytes,Sn.featureFlagBytes),Nn())})),(0,V.Zi)(In,Cn))}(e,v,f,i,o,m,S.flushObservable)}var E=U(),C=gn(e,location),I=function(t,e,n,i,o,a,s,c){var d=function(t){var e=new _t.P(St);return t.subscribe(2,(function(t){e.add(function(t){return{service:t.service,version:t.version,id:t.id,name:t.name,startClocks:t.startClocks}}(t),t.startClocks.relative)})),t.subscribe(4,(function(t){var n=t.endClocks;e.closeActive(n.relative)})),t.subscribe(8,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),f=function(t,e,n){var r,i=new _t.P(mn);t.subscribe(4,(function(t){var e=t.endClocks;i.closeActive(e.relative)})),t.subscribe(2,(function(t){var e=t.startClocks,o=n.href;i.add(a({url:o,referrer:r||document.referrer}),e.relative),r=o}));var o=e.subscribe((function(t){var e=t.newLocation,n=i.find();if(n){var r=(0,u._q)();i.closeActive(r),i.add(a({url:e.href,referrer:n.referrer}),r)}}));function a(t){return{url:t.url,referrer:t.referrer}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(t,o,n),l=Pn(e),v=function(t,e,n,i){t.subscribe(1,(function(e){return t.notify(10,we(e,i))}));var o={findActionId:r.Z};return n.trackUserInteractions&&(o=be(t,e,n).actionContexts),{addAction:function(e,n){t.notify(10,(0,b.f0)({savedCommonContext:n},we(e,i)))},actionContexts:o}}(t,a,e,l),p=v.addAction,m=v.actionContexts,g=function(t){var e=Qe();return{get:function(){return{viewport:e}},stop:Ke(t).subscribe((function(t){e=t})).unsubscribe}}(e);return bt(e,t,i,d,f,m,g,s,c),{viewContexts:d,pageStateHistory:l,urlContexts:f,addAction:p,actionContexts:m,stop:function(){g.stop(),l.stop(),f.stop(),d.stop(),l.stop()}}}(f,e,location,y,C,E,(function(){return R(i,o,n)}),p),A=I.viewContexts,x=I.pageStateHistory,k=I.urlContexts,N=I.actionContexts,L=I.addAction,F=I.stop;c.push(F),(0,P.Uo)(function(t){var e=(0,w.JZ)(t);return(0,b.f0)({session_replay_sample_rate:t.sessionReplaySampleRate,start_session_replay_recording_manually:t.startSessionReplayRecordingManually,trace_sample_rate:t.traceSampleRate,action_name_attribute:t.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0,selected_tracing_propagators:O(t),default_privacy_level:t.defaultPrivacyLevel,use_excluded_activity_urls:Array.isArray(t.excludedActivityUrls)&&t.excludedActivityUrls.length>0,use_worker_url:!!t.workerUrl,compress_intake_requests:t.compressIntakeRequests,track_views_manually:t.trackViewsManually,track_user_interactions:t.trackUserInteractions,track_resources:t.trackResources,track_long_task:t.trackLongTasks},e)}(t)),function(t,e,n){t.subscribe(0,(function(r){for(var i=0,o=r;i=e?t:""+Array(e+1-r.length).join(n)+t},y={s:h,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+h(r,2,"0")+":"+h(i,2,"0")},m:function t(e,n){if(e.date()1)return t(a[0])}else{var s=e.name;T[s]=e,i=s}return!r&&i&&(b=i),i||!r&&b},S=function(t,e){if(w(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new C(n)},E=y;E.l=_,E.i=w,E.w=function(t,e){return S(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var C=function(){function g(t){this.$L=_(t.locale,null,!0),this.parse(t)}var h=g.prototype;return h.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(E.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},h.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},h.$utils=function(){return E},h.isValid=function(){return!(this.$d.toString()===v)},h.isSame=function(t,e){var n=S(t);return this.startOf(e)<=n&&n<=this.endOf(e)},h.isAfter=function(t,e){return S(t)