(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[7415],{69691:(t,e,n)=>{"use strict";n.d(e,{v:()=>An});var r=n(251),i=n(8678),o=n(49271),a=n(8696),s=n(68783),u=n(25026),c=n(92904),d=n(99262),f=n(76876),l=n(64933),v=n(68566),p=n(45242),m=n(54910),g=n(49647),h=n(27662),y=n(13842),b=n(94776),w=n(73603),S=n(94162),T=n(95562),C=n(70170),k=n(33234);function x(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function _(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,T.v)([t.match],e.url,!0)}));if(c)e.traceId=new E,e.spanId=new E,e.traceSampled=!(0,w.hj)(t.traceSampleRate)||(0,w.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 E=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}();function I(t){var e,n,r,i,o,a;if(t.applicationId)if(void 0===t.sessionReplaySampleRate||(0,w.zz)(t.sessionReplaySampleRate)){var s=null!==(e=t.premiumSampleRate)&&void 0!==e?e:t.replaySampleRate;if(void 0!==s&&void 0!==t.sessionReplaySampleRate&&(y.j.warn("Ignoring Premium Sample Rate because Session Replay Sample Rate is set"),s=void 0),void 0===s||(0,w.zz)(s)){var u=null!==(n=t.traceSampleRate)&&void 0!==n?n:t.tracingSampleRate;if(void 0===u||(0,w.zz)(u))if(void 0===t.excludedActivityUrls||Array.isArray(t.excludedActivityUrls)){var c=function(t){void 0!==t.allowedTracingUrls&&void 0!==t.allowedTracingOrigins&&y.j.warn("Both allowedTracingUrls and allowedTracingOrigins (deprecated) have been defined. The parameter allowedTracingUrls will override allowedTracingOrigins.");if(void 0!==t.allowedTracingUrls){if(!Array.isArray(t.allowedTracingUrls))return void y.j.error("Allowed Tracing URLs should be an array");if(0!==t.allowedTracingUrls.length&&void 0===t.service)return void y.j.error("Service needs to be configured when tracing is enabled");var e=[];return t.allowedTracingUrls.forEach((function(t){var n;(0,T.o)(t)?e.push({match:t,propagatorTypes:["datadog"]}):(n=t,"object"===(0,k.o)(n)&&(0,T.o)(n.match)&&Array.isArray(n.propagatorTypes)?e.push(t):y.j.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",t))})),e}if(void 0!==t.allowedTracingOrigins){if(!Array.isArray(t.allowedTracingOrigins))return void y.j.error("Allowed Tracing Origins should be an array");if(0!==t.allowedTracingOrigins.length&&void 0===t.service)return void y.j.error("Service needs to be configured when tracing is enabled");var n=[];return t.allowedTracingOrigins.forEach((function(t){var e=function(t){var e;"string"===typeof t?e=t:t instanceof RegExp?e=function(e){return t.test((0,C.P$)(e))}:"function"===typeof t&&(e=function(e){return t((0,C.P$)(e))});if(void 0===e)return void y.j.warn("Allowed Tracing Origins parameters should be a string, RegExp or function. Ignoring parameter",t);return{match:e,propagatorTypes:["datadog"]}}(t);e&&n.push(e)})),n}return[]}(t);if(c){var d=(0,h.fP)(t);if(d){var f=!!(null!==(r=t.trackUserInteractions)&&void 0!==r?r:t.trackInteractions),l=!!t.trackFrustrations;return(0,b.f0)({applicationId:t.applicationId,version:t.version,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:null!==(o=null!==(i=t.sessionReplaySampleRate)&&void 0!==i?i:s)&&void 0!==o?o:100,oldPlansBehavior:void 0===t.sessionReplaySampleRate,traceSampleRate:u,allowedTracingUrls:c,excludedActivityUrls:null!==(a=t.excludedActivityUrls)&&void 0!==a?a:[],trackUserInteractions:f||l,trackFrustrations:l,trackViewsManually:!!t.trackViewsManually,trackResources:t.trackResources,trackLongTasks:t.trackLongTasks,subdomain:t.subdomain,defaultPrivacyLevel:(0,S.E5)(h.Jj,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:h.Jj.MASK_USER_INPUT,customerDataTelemetrySampleRate:1},d)}}}else y.j.error("Excluded Activity Urls should be an array");else y.j.error("Trace Sample Rate should be a number between 0 and 100")}else y.j.error("Premium Sample Rate should be a number between 0 and 100")}else y.j.error("Session Replay Sample Rate should be a number between 0 and 100");else y.j.error("Application ID is not configured, no RUM data will be collected.")}function $(t){var e=new Set;return Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0&&t.allowedTracingUrls.forEach((function(t){(0,T.o)(t)?e.add("datadog"):"object"===(0,k.o)(t)&&Array.isArray(t.propagatorTypes)&&t.propagatorTypes.forEach((function(t){return e.add(t)}))})),Array.isArray(t.allowedTracingOrigins)&&t.allowedTracingOrigins.length>0&&e.add("datadog"),(0,b.Oc)(e)}function O(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}var R=n(38971),D=n(9024),M=n(2632),L=n(73473),F=n(59693);function P(){var t=function(){var t,e=window;if(e.Zone&&(t=(0,F.I)(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=new e.MutationObserver(r.Z),i=(0,F.I)(n,"originalInstance");t=i&&i.constructor}t||(t=e.MutationObserver);return t}(),e=new L.y((function(){if(t){var n=new t((0,l.zk)((function(){return e.notify()})));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return n.disconnect()}}}));return e}var N=n(65483),U=n(83206),B=n(10193),z="initial_document",j=[["document",function(t){return z===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 q(){for(var t=[],e=0;et[n])return!1;return!0}function H(t){var e=Y(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:V(n,l,e.responseEnd),first_byte:V(n,f,l)};return d!==r&&(v.connect=V(n,u,d),q(u,c,d)&&(v.ssl=V(n,c,d))),s!==r&&(v.dns=V(n,a,s)),J(t)&&(v.redirect=V(n,i,o)),v}}function Y(t){if(q(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd)){if(!J(t))return t;var e=t.redirectStart,n=t.redirectEnd;if(e=0;e-=1){var n,r=t.body.childNodes[e];if(n=et(r))return n;if(!Q(r))break}}(t);if(!e)return;return tt((0,K.MY)(e,"trace-id"),(0,K.MY)(e,"trace-time"))}(t);if(e&&!(e.traceTime<=(0,u.m6)()-G))return e.traceId}function tt(t,e){var n=e&&Number(e);if(t&&n)return{traceId:t,traceTime:n}}function et(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 nt(){return void 0!==window.performance&&"getEntries"in performance}function rt(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function it(t,e){var n;if(n=function(n){at(t,e,[n])},(0,B.T)("interactive",(function(){var t,e={entryType:"resource",initiatorType:z,traceId:X(document)};if(rt("navigation")&&performance.getEntriesByType("navigation").length>0){var r=performance.getEntriesByType("navigation")[0];t=(0,b.f0)(r.toJSON(),e)}else{var i=ot();t=(0,b.f0)(i,{decodedBodySize:0,duration:i.responseEnd,name:window.location.href,startTime:0},e)}n(t)})),nt()){var r=performance.getEntries();(0,N.iK)((function(){return at(t,e,r)}))}if(window.PerformanceObserver){var i=(0,l.zk)((function(n){return at(t,e,n.getEntries())})),o=["resource","navigation","longtask","paint"],a=["largest-contentful-paint","first-input","layout-shift"];try{a.forEach((function(t){new PerformanceObserver(i).observe({type:t,buffered:!0})}))}catch(t){o.push.apply(o,a)}new PerformanceObserver(i).observe({entryTypes:o}),nt()&&"addEventListener"in performance&&(0,U.O)(performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()}))}rt("navigation")||function(t){function e(){t((0,b.f0)(ot(),{entryType:"navigation"}))}(0,B.T)("complete",(function(){(0,N.iK)(e)}))}((function(n){at(t,e,[n])})),rt("first-input")||function(t){var e=(0,u.m6)(),n=!1,r=(0,U.y)(window,["click","mousedown","keydown","touchstart","pointerdown"],(function(t){if(t.cancelable){var e={entryType:"first-input",processingStart:(0,u._q)(),startTime:t.timeStamp};"pointerdown"===t.type?i(e):o(e)}}),{passive:!0,capture:!0}).stop;function i(t){(0,U.y)(window,["pointerup","pointercancel"],(function(e){"pointerup"===e.type&&o(t)}),{once:!0})}function o(i){if(!n){n=!0,r();var o=i.processingStart-i.startTime;o>=0&&o<(0,u.m6)()-e&&t(i)}}}((function(n){at(t,e,[n])}))}function ot(){var t={},e=performance.timing;for(var n in e)if((0,w.hj)(e[n])){var r=n,i=e[r];t[r]=0===i?0:(0,u.ni)(i)}return t}function at(t,e,n){var r=n.filter((function(t){return"resource"===t.entryType||"navigation"===t.entryType||"paint"===t.entryType||"longtask"===t.entryType||"largest-contentful-paint"===t.entryType||"first-input"===t.entryType||"layout-shift"===t.entryType})).filter((function(t){return!function(t){return"navigation"===t.entryType&&t.loadEventEnd<=0}(t)&&!function(t,e){return"resource"===e.entryType&&!Z(t,e.name)}(e,t)}));r.length&&t.notify(0,r)}var st,ut,ct=n(15123);function dt(){var t;return st||(t=new L.y((function(){var e=(0,r.P)((function(){t.notify(ft())}),200).throttled;return(0,U.O)(window,"resize",e,{capture:!0,passive:!0}).stop})),st=t),st}function ft(){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)}}function lt(t,e,n){var r=(0,c.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(".");r2500)){var t=wt[wt.length-1],e=(0,u._q)();void 0!==t&&void 0===t.end||wt.push({start:e})}}function Ct(){if(0!==wt.length){var t=wt[wt.length-1],e=(0,u._q)();void 0===t.end&&(t.end=e)}}function kt(t){for(var e=wt.length-1;e>=0;e--){var n=wt[e];if(void 0!==n.end&&t>n.end)break;if(t>n.start&&(void 0===n.end||t=i;o--){var a=wt[o];if(void 0!==a.end&&t>a.end)break;if(!(na.start?t:a.start,c=(0,u._J)(t,s),d=void 0===a.end||n0})}}));return r}(t,e,n);return function(t,e,n){var r,i=!1,o=(0,N.iK)((0,l.zk)((function(){return d({hadActivity:!1})})),100),a=void 0!==n?(0,N.iK)((0,l.zk)((function(){return d({hadActivity:!0,end:(0,u.n$)()})})),n):void 0,s=t.subscribe((function(t){var e=t.isBusy;(0,N.gr)(o),(0,N.gr)(r);var n=(0,u.n$)();e||(r=(0,N.iK)((0,l.zk)((function(){return d({hadActivity:!0,end:n})})),100))})),c=function(){i=!0,(0,N.gr)(o),(0,N.gr)(r),(0,N.gr)(a),s.unsubscribe()};function d(t){i||(c(),e(t))}return{stop:c}}(o,r,i)}function zt(t,e){return(0,T.v)(t.excludedActivityUrls,e)}var jt=u.WT;function qt(t,e){var n,r=[],i=0;function o(t){t.stopObservable.subscribe(a),r.push(t),(0,N.gr)(n),n=(0,N.iK)(s,jt)}function a(){1===i&&r.every((function(t){return t.isStopped()}))&&(i=2,e(r))}function s(){(0,N.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))<=100)&&e.timeStamp-n.timeStamp<=jt))?(s(),!1):(o(t),!0));var e,n,a,u},stop:function(){s()}}}var Ht=n(12172),Yt="data-dd-action-name";function Jt(t,e){return Vt(t,Yt)||e&&Vt(t,e)||Gt(t,e,Kt)||Gt(t,e,Qt)||""}function Vt(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 te(Xt(n.getAttribute(e).trim()))}var Wt,Zt,Kt=[function(t,e){if(function(){void 0===Wt&&(Wt="labels"in HTMLInputElement.prototype);return Wt}()){if("labels"in t&&t.labels&&t.labels.length>0)return ee(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&&ee(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 ee(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 ee(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 ee(t.options[0],e)}],Qt=[function(t,e){return ee(t,e)}];function Gt(t,e,n){for(var r=t,i=0;i<=10&&r&&"BODY"!==r.nodeName&&"HTML"!==r.nodeName&&"HEAD"!==r.nodeName;){for(var o=0,a=n;o100?"".concat((0,K._z)(t,100)," [...]"):t}function ee(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,Ht.w)()&&r("script, style"),r("[".concat(Yt,"]")),e&&r("[".concat(e,"]")),n}return t.textContent}}var ne,re=[Yt,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],ie=[ue,function(t){if(t.id&&!se(t.id))return"#".concat((0,b.QA)(t.id))}],oe=[ue,function(t){if("BODY"===t.tagName)return;if(t.classList.length>0)for(var e=0;e").concat(e):t}function pe(){var t=window.getSelection();return!t||t.isCollapsed}function me(t){return t.target instanceof Element&&!1!==t.isPrimary}function ge(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 Se(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 Te(t,e){var n=Ce(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,r=Ce(t)?void 0:t.context,i=(0,c.$e)({action:{id:(0,K.DO)(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:"action"},n),o=e.isInForegroundAt(t.startClocks.relative);return void 0!==o&&(i.view={in_foreground:o}),{customerContext:r,rawRumEvent:i,startTime:t.startClocks.relative,domainContext:Ce(t)?{event:t.event,events:t.events}:{}}}function Ce(t){return"custom"!==t.type}var ke=n(40403),xe=n(1307),_e=n(42419),Ae=n(86296);var Ee=n(73670);function Ie(t,e,n){var r=new L.y;return function(t){var e=(0,Ae.a)([y.v.error]).subscribe((function(e){return t.notify({startClocks:(0,u.$I)(),message:e.message,stack:e.stack,fingerprint:e.fingerprint,source:_e.z.CONSOLE,handling:"handled",handlingStack:e.handlingStack})}))}(r),(0,ke.L)(r),function(t){var e=(0,Ee.v)([Ee._.cspViolation,Ee._.intervention]).subscribe((function(e){return t.notify({startClocks:(0,u.$I)(),message:e.message,stack:e.stack,type:e.subtype,source:_e.z.REPORT,handling:"unhandled"})}))}(r),r.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,K.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"},i=e.isInForegroundAt(t.startClocks.relative);i&&(r.view={in_foreground:i});var o=n.findFeatureFlagEvaluations(t.startClocks.relative);o&&!(0,S.Qr)(o)&&(r.feature_flags=o);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,xe._)(r):void 0,u=(0,p.AP)({stackTrace:s,originalError:r,handlingStack:i,startClocks:o,nonErrorPrefix:"Provided",source:_e.z.CUSTOM,handling:"handled"});t.notify(12,{customerContext:a,savedCommonContext:n,error:u})}}}(t,e,n)}var $e,Oe,Re=n(57549);function De(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(Y).filter((function(e){return n=e,r=t.startClocks.relative,i=Me({startTime:t.startClocks.relative,duration:t.duration}),o=1,n.startTime>=r-o&&Me(n)<=(0,u.WK)(i,o);var n,r,i,o}));return 1===n.length?n[0]:void 0}}}function Me(t){return(0,u.WK)(t.startTime,t.duration)}function Le(t,e,n,r){t.subscribe(6,(function(i){t.notify(10,function(t,e,n,r){var i,o="xhr"===t.type?"xhr":"fetch",a=De(t),s=a?(0,u.DY)(a.startTime):t.startClocks,d=a?Pe(a):void 0,f=function(t,e){if(!(t.traceSampled&&t.traceId&&t.spanId))return;return{_dd:{span_id:t.spanId.toDecimalString(),trace_id:t.traceId.toDecimalString(),rule_psr:Ne(e)}}}(t,e),l=Ue(n,s),v=(0,u.c0)(t.duration),p=Be(r,s,null!==(i=null===a||void 0===a?void 0:a.duration)&&void 0!==i?i:t.duration),m=(0,c.$e)({date:s.timeStamp,resource:{id:(0,K.DO)(),type:o,duration:v,method:t.method,status_code:t.status,url:t.url},type:"resource"},f,d,l,p);return{startTime:s.relative,rawRumEvent:m,domainContext:{performanceEntry:a&&a,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error}}}(i,e,n,r))})),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){e(t.loadEvent),i(t)})).stop,a=function(t,e){var n=ze();return{stop:t.subscribe(0,(function(t){var r=(0,b.sE)(t,(function(t){return"paint"===t.entryType&&"first-contentful-paint"===t.name&&t.startTime=0?i:0,firstInputTime:r.startTime})}})).unsubscribe}}(t,(function(t){i({firstInputDelay:t.firstInputDelay,firstInputTime:t.firstInputTime})})).stop;function d(){o(),a(),s(),c()}return{stop:d,timings:r,scheduleStop:function(){(0,N.iK)(d,qe)}}}function Ye(t,e,n,i,o,a){var s,c={},d=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:Bt(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,o,a,(function(t){c.loadingTime=t,i()})),f=d.stop,l=d.setLoadEvent;return rt("layout-shift")?(c.cumulativeLayoutShift=0,s=function(t,e){var n=0,r=function(){var t,e,n=0;return{update:function(r){void 0===t||r.startTime-e>=u.WT||r.startTime-t>=5*u.WT?(t=e=r.startTime,n=r.value):(n+=r.value,e=r.startTime)},value:function(){return n}}}();return{stop:t.subscribe(0,(function(t){for(var i=0,o=t;in&&(n=r.value(),e((0,w.NM)(n,4))))}})).unsubscribe}}(t,(function(t){c.cumulativeLayoutShift=t,i()})).stop):s=r.Z,{stop:function(){f(),s()},setLoadEvent:l,viewMetrics:c}}var Je=5*u.yR;var Ve=5*u.yR;function We(t,e,n,i,o,a,s){var c,d=f("initial_load",(0,u.cQ)(),s);function f(o,a,s){return function(t,e,n,i,o,a,s){void 0===a&&(a=(0,u.$I)());var c,d,f,l,v=(0,K.DO)(),p={},m=0,g=(0,S.mv)(i),h=!0;s&&(d=s.name,f=s.service,l=s.version);t.notify(2,{id:v,name:d,startClocks:a,service:f,version:l});var w=(0,r.P)(L,3e3,{leading:!1}),T=w.throttled,C=w.cancel,k=Ye(t,e,n,T,o,a),x=k.setLoadEvent,_=k.stop,A=k.viewMetrics,E="initial_load"===o?He(t,x,T):{scheduleStop:r.Z,timings:{}},I=E.scheduleStop,$=E.timings,O=function(t,e,n){var r=Pt({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n}),i=r.stop;return{scheduleStop:function(){(0,N.iK)(i,Je)},eventCounts:r.eventCounts}}(t,v,T),R=O.scheduleStop,D=O.eventCounts,M=(0,N.Zi)(L,Ve);function L(){C(),m+=1;var e=void 0===c?(0,u.n$)():c.timeStamp;t.notify(3,(0,b.f0)({customTimings:p,documentVersion:m,id:v,name:d,service:f,version:l,loadingType:o,location:g,startClocks:a,timings:$,duration:(0,u._J)(a.timeStamp,e),isActive:void 0===c,sessionIsActive:h,eventCounts:D},A))}return L(),{name:d,service:f,version:l,end:function(e){var n,r;void 0===e&&(e={}),c||(c=null!==(n=e.endClocks)&&void 0!==n?n:(0,u.$I)(),h=null===(r=e.sessionIsActive)||void 0===r||r,t.notify(4,{endClocks:c}),(0,N.cv)(M),_(),I(),R(),L())},addTiming:function(t,e){if(!c){var n=(0,u.Cn)(e)?e:(0,u._J)(a.timeStamp,e);p[function(t){var e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");e!==t&&y.j.warn("Invalid timing name: ".concat(t,", sanitized to: ").concat(e));return e}(t)]=n,T()}}}}(e,n,i,t,o,a,s)}return e.subscribe(8,(function(){d=f("route_change",void 0,{name:d.name,service:d.service,version:d.version})})),e.subscribe(7,(function(){d.end({sessionIsActive:!1})})),e.subscribe(9,(function(t){t.reason!==D.k$.UNLOADING&&t.reason!==D.k$.PAGEHIDE||d.end()})),a&&(c=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.substr(1),document.getElementById(i)||Ze(n.hash)===Ze(e.hash))||(d.end(),d=f("route_change"))}))}(o)),{addTiming:function(t,e){void 0===e&&(e=(0,u.n$)()),d.addTiming(t,e)},startView:function(t,e){d.end({endClocks:e}),d=f("route_change",e,t)},stop:function(){null===c||void 0===c||c.unsubscribe(),d.end()}}}function Ze(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function Ke(t,e,n,r,i,o,a,s,c){return t.subscribe(3,(function(e){return t.notify(10,function(t,e,n,r){var i=r.getReplayStats(t.id),o=n.findFeatureFlagEvaluations(t.startClocks.relative),a={_dd:{document_version:t.documentVersion,replay_stats:i},date:t.startClocks.timeStamp,type:"view",view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:t.cumulativeLayoutShift,first_byte:(0,u.c0)(t.timings.firstByte),dom_complete:(0,u.c0)(t.timings.domComplete),dom_content_loaded:(0,u.c0)(t.timings.domContentLoaded),dom_interactive:(0,u.c0)(t.timings.domInteractive),error:{count:t.eventCounts.errorCount},first_contentful_paint:(0,u.c0)(t.timings.firstContentfulPaint),first_input_delay:(0,u.c0)(t.timings.firstInputDelay),first_input_time:(0,u.c0)(t.timings.firstInputTime),is_active:t.isActive,name:t.name,largest_contentful_paint:(0,u.c0)(t.timings.largestContentfulPaint),load_event:(0,u.c0)(t.timings.loadEvent),loading_time:Qe((0,u.c0)(t.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:(0,u.c0)(t.duration),in_foreground_periods:e.selectInForegroundPeriodsFor(t.startClocks.relative,t.duration)},feature_flags:o&&!(0,S.Qr)(o)?o:void 0,session:{has_replay:!!i||void 0,is_active:!!t.sessionIsActive&&void 0}};(0,S.Qr)(t.customTimings)||(a.view.custom_timings=(0,S.Q8)(t.customTimings,u.c0));return{rawRumEvent:a,startTime:t.startClocks.relative,domainContext:{location:t.location}}}(e,o,a,s))})),We(n,t,r,e,i,!e.trackViewsManually,c)}function Qe(t){return(0,w.hj)(t)&&t<0?void 0:t}var Ge=n(89713);function Xe(t,e){var n=(0,Ge.HX)(t.cookieOptions,"rum",(function(e){return function(t,e){var n;n=function(t){return"0"===t||"1"===t||"2"===t}(e)?e:(0,w.y7)(t.sessionSampleRate)?(0,w.y7)(t.sessionReplaySampleRate)?"1":"2":"0";return{trackingType:n,isTracked:tn(n)}}(t,e)}));return n.expireObservable.subscribe((function(){e.notify(7)})),n.renewObservable.subscribe((function(){e.notify(8)})),{findTrackedSession:function(e){var r=n.findActiveSession(e);if(r&&tn(r.trackingType)){var i="1"===r.trackingType?2:1;return{id:r.id,plan:i,sessionReplayAllowed:2===i,longTaskAllowed:void 0!==t.trackLongTasks?t.trackLongTasks:t.oldPlansBehavior&&2===i,resourceAllowed:void 0!==t.trackResources?t.trackResources:t.oldPlansBehavior&&2===i}}},expire:n.expire,expireObservable:n.expireObservable}}function tn(t){return"2"===t||"1"===t}var en=n(5419),nn=n(53789),rn=n(3723);function on(t,e,n,r,i,o){var a=function(t,e,n,r){var i,o=d(t.rumEndpointBuilder),a=o.batch,s=o.flushController,u=t.replica;void 0!==u&&(i=d(u.rumEndpointBuilder).batch);function d(i){var o=(0,en.r)({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:n,sessionExpireObservable:r});return{batch:new nn.E((0,rn.UF)(i,t.batchBytesLimit,e),o,t.messageBytesLimit),flushController:o}}function f(t){return(0,c.$e)(t,{application:{id:u.applicationId}})}return{flushObservable:s.flushObservable,add:function(t,e){void 0===e&&(e=!0),a.add(t),i&&e&&i.add(f(t))},upsert:function(t,e){a.upsert(t,e),i&&i.upsert(f(t),e)}}}(t,r,i,o);return e.subscribe(11,(function(t){"view"===t.type?a.upsert(t,t.view.id):a.add(t)})),n.subscribe((function(e){return a.add(e,(0,M.VG)(t))})),a}var an=At.T;function sn(t){var e=(0,S.mv)(t),n=new L.y((function(){var t,e,n,i,o,a=(t=r,e=(0,Nt.Lm)(history,"pushState",{after:t}).stop,n=(0,Nt.Lm)(history,"replaceState",{after:t}).stop,i=(0,U.O)(window,"popstate",t).stop,{stop:function(){e(),n(),i()}}).stop,s=(o=r,(0,U.O)(window,"hashchange",o)).stop;return function(){a(),s()}}));function r(){if(e.href!==t.href){var r=(0,S.mv)(t);n.notify({newLocation:r,oldLocation:e}),e=r}}return n}var un=n(51962),cn=n(19012),dn=n(19378),fn=At.T;var ln,vn,pn,mn=10*u.WT;function gn(){0!==ln.batchCount&&((0,M.eJ)("Customer data measures",ln),bn())}function hn(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function yn(t,e){t.sum+=e.sum,t.min=Math.min(t.min,e.min),t.max=Math.max(t.max,e.max)}function bn(){ln={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 wn(){pn=!1,vn={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 Sn,Tn=[];function Cn(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function kn(t,e){void 0===e&&(e=500),t!==Sn&&(Sn=t,Tn.length===e&&Tn.shift(),Tn.push({state:Sn,startTime:(0,u._q)()}))}var xn=n(11095);function _n(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 xn.D_:case xn.Ds:return"app";case xn.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 An=function(t,e,n){var o=(void 0===n?{}:n).ignoreInitIfSyntheticsWillInjectRum,w=void 0===o||o,S=!1,T=(0,a.W)("global context"),C=(0,a.W)("user"),k=function(){},x=function(){},_=r.Z,A=function(){},E=new s.S,$=function(t,e){void 0===e&&(e=(0,u.n$)()),E.add((function(){return $(t,e)}))},R=function(t,e){void 0===e&&(e=(0,u.$I)()),E.add((function(){return R(t,e)}))},D=function(t,n){void 0===n&&(n=O(T,C,e)),E.add((function(){return D(t,n)}))},M=function(t,n){void 0===n&&(n=O(T,C,e)),E.add((function(){return M(t,n)}))},L=function(t,e){E.add((function(){return L(t,e)}))};function F(n,r,i){var o=t(n,r,e,T,C,i);A=function(){return e.getSessionReplayLink(r,o.session,o.viewContexts)},R=o.startView,D=o.addAction,M=o.addError,$=o.addTiming,L=o.addFeatureFlagEvaluation,k=o.getInternalContext,_=o.stopSession,E.drain(),e.onRumStart(o.lifeCycle,r,o.session,o.viewContexts)}var P=(0,l.zk)((function(t){R("object"===typeof t?t:{name:t})})),N=(0,i.r)({init:(0,l.zk)((function(t){if(x=function(){return(0,c.I8)(t)},!w||!(0,d.Y9)()){if((0,f.x)())t=function(t){return(0,b.f0)({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100})}(t);else if(!function(t){if(!(0,g.oX)((0,h.HZ)(t)))return y.j.warn("Cookies are not authorized, we will not send any data."),!1;if("file:"===window.location.protocol)return y.j.error("Execution is not allowed in the current context."),!1;return!0}(t))return;if(function(t){if(S)return t.silentMultipleInit||y.j.error("DD_RUM is already initialized."),!1;return!0}(t)){var e=I(t);if(e){if(e.trackViewsManually){var n=E;E=new s.S,R=function(n){F(t,e,n)},n.drain()}else F(t,e);S=!0}}}})),addRumGlobalContext:(0,l.zk)(T.add),setGlobalContextProperty:(0,l.zk)(T.setContextProperty),removeRumGlobalContext:(0,l.zk)(T.remove),removeGlobalContextProperty:(0,l.zk)(T.removeContextProperty),getRumGlobalContext:(0,l.zk)(T.get),getGlobalContext:(0,l.zk)(T.getContext),setRumGlobalContext:(0,l.zk)(T.set),setGlobalContext:(0,l.zk)(T.setContext),clearGlobalContext:(0,l.zk)(T.clearContext),getInternalContext:(0,l.zk)((function(t){return k(t)})),getInitConfiguration:(0,l.zk)((function(){return x()})),addAction:(0,l.zk)((function(t,e){D({name:(0,v.N)(t),context:(0,v.N)(e),startClocks:(0,u.$I)(),type:"custom"})})),addError:function(t,e){var n=(0,p.Xp)();(0,l.L6)((function(){M({error:t,handlingStack:n,context:(0,v.N)(e),startClocks:(0,u.$I)()})}))},addTiming:(0,l.zk)((function(t,e){$((0,v.N)(t),e)})),setUser:(0,l.zk)((function(t){(0,m.z)(t)&&C.setContext((0,m.I)(t))})),getUser:(0,l.zk)(C.getContext),setUserProperty:(0,l.zk)((function(t,e){var n,r=(0,m.I)((n={},n[t]=e,n))[t];C.setContextProperty(t,r)})),removeUserProperty:(0,l.zk)(C.removeContextProperty),removeUser:(0,l.zk)(C.clearContext),clearUser:(0,l.zk)(C.clearContext),startView:P,stopSession:(0,l.zk)((function(){_()})),startSessionReplayRecording:(0,l.zk)(e.start),stopSessionReplayRecording:(0,l.zk)(e.stop),addFeatureFlagEvaluation:(0,l.zk)((function(t,e){L((0,v.N)(t),(0,v.N)(e))})),getSessionReplayLink:(0,l.zk)((function(){return A()}))});return N}((function(t,e,n,i,o,a){var s=new _t;s.subscribe(11,(function(t){return(0,R.j)("rum",t)}));var c=function(t){var e=(0,M.VL)("browser-rum-sdk",t);if((0,f.x)()){var n=(0,f.A)();e.observable.subscribe((function(t){return n.send("internal_telemetry",t)}))}return e}(e);c.setContextProvider((function(){var t,n;return{application:{id:e.applicationId},session:{id:null===(t=v.findTrackedSession())||void 0===t?void 0:t.id},view:{id:null===(n=C.findView())||void 0===n?void 0:n.id},action:{id:_.findActionId()}}}));var d=function(t){s.notify(12,{error:t})},l=function(t,e){if(void 0===e&&(e=un.qt),!(0,Re.W_)(Re.uh.FEATURE_FLAGS))return{findFeatureFlagEvaluations:function(){},getFeatureFlagBytesCount:function(){return 0},addFeatureFlagEvaluation:r.Z,stop:r.Z};var n=new Et.P(fn),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,cn.l)(t)),o||(o=(0,dn.H)(i,"feature flag evaluation"))}),200),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}}(s),v=(0,f.x)()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",plan:1,sessionReplayAllowed:!1,longTaskAllowed:!0,resourceAllowed:!0};return{findTrackedSession:function(){return t},expire:r.Z,expireObservable:new L.y}}():Xe(e,s);if((0,f.x)())!function(t){var e=(0,f.A)();t.subscribe(11,(function(t){e.send("rum",t)}))}(s);else{var p=(0,D.Pd)();p.subscribe((function(t){s.notify(9,t)}));var m=on(e,s,c.observable,d,p,v.expireObservable);!function(t,e,n,r,i,o,a){e.enabled&&(0,w.y7)(t.customerDataTelemetrySampleRate)&&(bn(),wn(),n.subscribe(11,(function(t){pn=!0,hn(vn.globalContextBytes,(0,S.Qr)(r.get())?0:r.getBytesCount()),hn(vn.userContextBytes,(0,S.Qr)(i.get())?0:i.getBytesCount());var e=o.findFeatureFlagEvaluations(),n=(0,b.q9)(["view","error"],t.type)&&e&&!(0,S.Qr)(e);hn(vn.featureFlagBytes,n?o.getFeatureFlagBytesCount():0)})),a.subscribe((function(t){var e=t.bytesCount,n=t.messagesCount;pn&&(ln.batchCount+=1,hn(ln.batchBytesCount,e),hn(ln.batchMessagesCount,n),yn(ln.globalContextBytes,vn.globalContextBytes),yn(ln.userContextBytes,vn.userContextBytes),yn(ln.featureFlagBytes,vn.featureFlagBytes),wn())})),(0,N.Zi)(gn,mn))}(e,c,s,i,o,l,m.flushObservable)}var g=P(),y=sn(location),T=function(t,e,n,i,o,a,s,c){var d=function(t){var e=new Et.P(It);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 Et.P(an);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=St(),v=function(t,e,n,i){t.subscribe(1,(function(e){return t.notify(10,Te(e,i))}));var o={findActionId:r.Z};return n.trackUserInteractions&&(o=we(t,e,n).actionContexts),{addAction:function(e,n){t.notify(10,(0,b.f0)({savedCommonContext:n},Te(e,i)))},actionContexts:o}}(t,a,e,l),p=v.addAction,m=v.actionContexts;return bt(e,t,i,d,f,m,s,c),{viewContexts:d,foregroundContexts:l,urlContexts:f,addAction:p,actionContexts:m,stop:function(){d.stop(),l.stop()}}}(s,e,location,v,y,g,(function(){return O(i,o,n)}),d),C=T.viewContexts,k=T.foregroundContexts,x=T.urlContexts,_=T.actionContexts,A=T.addAction;(0,M.Uo)(function(t){var e,n,r=(0,h.JZ)(t);return(0,b.f0)({premium_sample_rate:t.premiumSampleRate,replay_sample_rate:t.replaySampleRate,session_replay_sample_rate:t.sessionReplaySampleRate,trace_sample_rate:null!==(e=t.traceSampleRate)&&void 0!==e?e:t.tracingSampleRate,action_name_attribute:t.actionNameAttribute,use_allowed_tracing_origins:Array.isArray(t.allowedTracingOrigins)&&t.allowedTracingOrigins.length>0,use_allowed_tracing_urls:Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0,selected_tracing_propagators:$(t),default_privacy_level:t.defaultPrivacyLevel,use_excluded_activity_urls:Array.isArray(t.allowedTracingOrigins)&&t.allowedTracingOrigins.length>0,track_frustrations:t.trackFrustrations,track_views_manually:t.trackViewsManually,track_user_interactions:null!==(n=t.trackUserInteractions)&&void 0!==n?n:t.trackInteractions},r)}(t)),function(t,e){t.subscribe(0,(function(n){for(var r=0,i=n;r=0;i--){var o=Tn[i].startTime;if(!(o>=r)&&(n.unshift(Tn[i]),o=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;w[s]=e,i=s}return!r&&i&&(b=i),i||!r&&b},C=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new x(n)},k=y;k.l=T,k.i=S,k.w=function(t,e){return C(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var x=function(){function g(t){this.$L=T(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(k.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 k},h.isValid=function(){return!(this.$d.toString()===v)},h.isSame=function(t,e){var n=C(t);return this.startOf(e)<=n&&n<=this.endOf(e)},h.isAfter=function(t,e){return C(t)