1/*! For license information please see 1090.47ce0dcb.js.LICENSE.txt */ 2"use strict";(self.webpackChunkcra=self.webpackChunkcra||[]).push([[1090],{5891:function(e,n,o){o.d(n,{V:function(){return getCustomMergedLabels},W:function(){return setCustomLabelsForSpan}});var i=o(7903),s=o(51630);function setCustomLabelsForSpan(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.setAttribute(i.qi.CUSTOM_LABELS,JSON.stringify(getCustomMergedLabels(n)))}function getCustomMergedLabels(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(null===(e=(0,s.ui)())||void 0===e?void 0:e.getCustomLabels())||{};return Object.assign(Object.assign({},o),n)}},87097:function(e,n,o){o.d(n,{X:function(){return i}});var i=function propagateTraceHeaderCorsUrls(e){var n,o=e.traceParentInHeader,i=null===(n=null===o||void 0===o?void 0:o.options)||void 0===n?void 0:n.propagateTraceHeaderCorsUrls;(null===o||void 0===o?void 0:o.enabled)&&i&&(e.propagateTraceHeaderCorsUrls=i)}},67933:function(e,n,o){o.d(n,{l:function(){return d}});var i=o(92901),s=o(23029),a=o(39874),c=o(85501),d=function(e){function CoralogixWebTracerProvider(){return(0,s.A)(this,CoralogixWebTracerProvider),(0,a.A)(this,CoralogixWebTracerProvider,arguments)}return(0,c.A)(CoralogixWebTracerProvider,e),(0,i.A)(CoralogixWebTracerProvider)}(o(4454).Z)},51630:function(e,n,o){o.d(n,{Iz:function(){return a},sY:function(){return i},ui:function(){return getAttrProcessor},fL:function(){return markSpanAsOtelToSend},Eh:function(){return setAttrProcessor},K:function(){return shouldAddOtelAttr}});var i,s="otelReady",a="@",c="attrProcessor";function markSpanAsOtelToSend(e){e[s]=!0}function shouldAddOtelAttr(e){return!!e[s]}function setAttrProcessor(e){window[c]=e}function getAttrProcessor(){return window[c]}!function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"}(i||(i={}))},71627:function(e,n,o){o.d(n,{z:function(){return handlePropagators}});var i=o(23029),s=o(92901),a=o(36755),c=o(60436),d=o(22192),h=o(2979),f=o(7055),g=o(49903),v=o(8739),S=o(63085),E=o(39171),b=o(27455),y=o(95362),T=o(8829);function handlePropagators(e,n){return(0,d.sH)(this,void 0,void 0,(0,a.A)().mark((function _callee(){var o,i,s,d,h,f,g,R;return(0,a.A)().wrap((function _callee$(a){for(;;)switch(a.prev=a.next){case 0:(null===(o=e.traceParentInHeader)||void 0===o?void 0:o.enabled)&&(s=[],d=(null===(i=e.traceParentInHeader)||void 0===i?void 0:i.options)||{},h=d.propagateB3TraceHeader,(f=d.propagateAwsXrayTraceHeader)||h||(s=[].concat((0,c.A)(s),[new v.t,new S.lm])),f&&s.push(new T.h),h&&(g=h.singleHeader,R=h.multiHeader,g&&s.push(new b.d),R&&s.push(new b.d({injectEncoding:y.C.MULTI_HEADER}))),n.register({propagator:new _(e,new E.n({propagators:s}))}));case 1:case"end":return a.stop()}}),_callee)})))}var _=function(){return(0,s.A)((function CxPropagator(e,n){(0,i.A)(this,CxPropagator),this.config=e,this.internalPropagator=n}),[{key:"extract",value:function extract(e,n,o){return this.internalPropagator.extract(e,n,o)}},{key:"fields",value:function fields(){return this.internalPropagator.fields()}},{key:"inject",value:function inject(e,n,o){var i,s,a=null===(s=null===(i=this.config.traceParentInHeader)||void 0===i?void 0:i.options)||void 0===s?void 0:s.allowedTracingUrls;if(a){var c=f.u.getSpan(e).attributes[h.Vo.URL];(0,g._)(c,a,"allowedTracingUrls")&&this.internalPropagator.inject(e,n,o)}else this.internalPropagator.inject(e,n,o)}}])}()},22425:function(e,n,o){o.d(n,{I:function(){return b}});var i=o(60436),s=o(23029),a=o(92901),c=o(7903),d=o(10983),h=o(65146),f=o(92751),g=o(76493),v=o(55967),S=o(8733),E=o(37498),b=function(){return(0,a.A)((function CoralogixExporter(){var e=this;(0,s.A)(this,CoralogixExporter),this.isActive=!0,this.sdkConfig=(0,f.T2)(),this.request=new v.K({suffix:c.L$,headers:{"Content-Type":"application/json"}}),this.batchTimeDelay=d.X3,this.invokeLogRequest=function(n,o){(null===n||void 0===n?void 0:n.length)&&e.request.send(JSON.stringify({logs:n,skip_enrichment_with_ip:!e.sdkConfig.collectIPData})).then((function(){o&&((0,f.wF)().cachedLogsSent=!0)}))}}),[{key:"export",value:function _export(e,n){if((0,E.K)(this.isActive))n({code:h.V.SUCCESS});else{var o=e.reduce((function(e,n){return n[c.f5]&&e.push(n[c.f5]),e}),[]);(0,S.vS)()?this.handleSessionWithError(o):this.invokeLogRequest(o),n({code:h.V.SUCCESS})}}},{key:"handleSessionWithError",value:function handleSessionWithError(e){var n=this,o=(0,f.wF)(),s=o.maxRumEventsForSessionWithError,a=o.instrumentationsToSend,c=o.sessionHasError,h=[];
2e=e.reduce((function(e,n){return a&&a[n.text.cx_rum.event_context.type]?h.push(n):e.push(n),e}),[]),this.invokeLogRequest(h);var v=window.cachedLogs=[].concat((0,i.A)(window.cachedLogs||[]),(0,i.A)(e)),S=v.length;if(S>s&&!c)this.clearCachedDataForSessionWithError();else if(c)if(S>g.Eh){for(var E=[],b=0;b<S;b+=g.Eh)E.push(v.slice(b,b+g.Eh));E.forEach((function(e){setTimeout((function(){return n.invokeLogRequest(e,!0)}),n.batchTimeDelay),n.batchTimeDelay+=d.X3})),this.clearCachedDataForSessionWithError()}else this.invokeLogRequest(v,!0),this.clearCachedDataForSessionWithError()}},{key:"clearCachedDataForSessionWithError",value:function clearCachedDataForSessionWithError(){window.cachedLogs=[],this.batchTimeDelay=d.X3}},{key:"shutdown",value:function shutdown(){return this.isActive=!1,Promise.resolve()}}])}()},89160:function(e,n,o){o.d(n,{L:function(){return h}});var i=o(23029),s=o(92901),a=o(7903),c=o(31824),d=o(92751),h=function(){return(0,s.A)((function CoralogixNavigationProcessor(){(0,i.A)(this,CoralogixNavigationProcessor)}),[{key:"forceFlush",value:function forceFlush(){return Promise.resolve()}},{key:"onEnd",value:function onEnd(e){}},{key:"onStart",value:function onStart(e){var n=(0,c.rO)(location.href);if(n){e[a.qi.PAGE_CONTEXT]=n;var o=(0,d.wF)().currentPageFragment,i=n.page_fragments;o!==i&&((0,d.wF)().updateCurrentPage(i),e[a.qi.IS_NAVIGATION_EVENT]=!0)}}},{key:"shutdown",value:function shutdown(){return Promise.resolve()}}])}()},71222:function(e,n,o){o.d(n,{L:function(){return S}});var i=o(23029),s=o(92901),a=o(22192),c=o(7903),d=o(2979),h=o(92751),f=o(86391),g=o(37498),v=o(48907),S=function(){return(0,s.A)((function CoralogixSnapshotSpanProcessor(){(0,i.A)(this,CoralogixSnapshotSpanProcessor),this.isActive=!0}),[{key:"forceFlush",value:function forceFlush(){return Promise.resolve()}},{key:"onEnd",value:function onEnd(e){if(!(0,g.K)(this.isActive)&&e[c.f5]){var n=e[c.f5];this.isSnapshotPrepared(e)?this.createSnapshot(n):n.text.cx_rum.isSnapshotEvent=!1}}},{key:"onStart",value:function onStart(e,n){}},{key:"shutdown",value:function shutdown(){return this.isActive=!1,Promise.resolve()}},{key:"createSnapshot",value:function createSnapshot(e){var n=(0,h.i3)().currentSnapshot,o=(n.timestamp,(0,a.Tt)(n,["timestamp"]));e.text.cx_rum.isSnapshotEvent=!0,e.text.cx_rum.snapshot_context=o}},{key:"isSnapshotPrepared",value:function isSnapshotPrepared(e){var n,o=e.attributes,i=o[c.qi.TIMESTAMP],s=o[c.qi.EVENT_TYPE],a=o[c.qi.SEVERITY],g=!1,S=(0,h.i3)(),E=S.fragmentsState,b=S.updateSnapshot,y=S.currentSnapshot,T=S.isSnapshotSentDueToRecording,_=y.timestamp,R=y.actionCount,k=y.errorCount,O=e[c.qi.PAGE_CONTEXT];return O&&!E.has(O.page_fragments)&&(E.add(O.page_fragments),b({timestamp:(0,v.iG)(),viewCount:E.size}),g=!0),a===f.q.Error&&(b({timestamp:(0,v.iG)(),errorCount:k+1}),g=!0),(null===(n=(0,h.Fz)())||void 0===n?void 0:n.getSessionHasRecording())&&!T&&(b({timestamp:(0,v.iG)(),hasRecording:!0}),(0,h.i3)().isSnapshotSentDueToRecording=!0,g=!0),s===d.fc.DOM&&(b({timestamp:(0,v.iG)()}),g=!0),s===d.fc.SCREENSHOT&&b({hasScreenshot:!0}),i-_>=v.i7&&(b({timestamp:(0,v.iG)()}),g=!0),s===d.fc.USER_INTERACTION&&b({actionCount:R+1}),g}}])}()},23693:function(e,n,o){o.d(n,{c:function(){return h}});var i=o(64467),s=o(23029),a=o(92901),c=o(7903),d=o(48907),h=function(){return(0,a.A)((function CoralogixSpanAttributesProcessor(e){(0,s.A)(this,CoralogixSpanAttributesProcessor),this.labels=(0,i.A)({},c.qi.CUSTOM_LABELS,"{}"),e&&(this.labels=e)}),[{key:"setCustomLabels",value:function setCustomLabels(e){this.labels[c.qi.CUSTOM_LABELS]=JSON.stringify(null!==e&&void 0!==e?e:{})}},{key:"setInternalLabels",value:function setInternalLabels(e){this.labels=Object.assign((0,i.A)({},c.qi.CUSTOM_LABELS,this.labels[c.qi.CUSTOM_LABELS]),e?this.stringifyValues(e):{})}},{key:"getLabels",value:function getLabels(){return JSON.parse(JSON.stringify(this.labels))}},{key:"getCustomLabels",value:function getCustomLabels(){return JSON.parse(this.labels[c.qi.CUSTOM_LABELS])}},{key:"getInternalLabels",value:function getInternalLabels(){var e=Object.assign({},this.labels);return delete e[c.qi.CUSTOM_LABELS],e}},{key:"getUserContext",value:function getUserContext(){var e=this.labels[c.qi.USER_CONTEXT];return e?JSON.parse("".concat(e)):void 0}},{key:"forceFlush",value:function forceFlush(){return Promise.resolve()}},{key:"onStart",value:function onStart(e){e.setAttribute(c.qi.TIMESTAMP,(0,d.iG)()),e.setAttribute(c.qi.USER_AGENT,navigator.userAgent),e.setAttributes(this.labels)}},{key:"onEnd",value:function onEnd(){}},{key:"shutdown",value:function shutdown(){return Promise.resolve()}},{key:"stringifyValues",value:function stringifyValues(e){var n={};for(var o in e)n[o]="string"===typeof e[o]?e[o]:JSON.stringify(e[o]);return n}}])}()},97769:function(e,n,o){o.d(n,{Z:function(){return k}});var i=o(24765),s=o(23029),a=o(92901),c=o(2979),d=o(7903),h=o(86391),f=o(31824),g=o(25578),v=o(92751),S=o(14293),E=o(57266),b=o(37498),y=o(48907),T=o(4028),_=o(39982),R=o(51630),k=function(){return(0,a.A)((function CoralogixSpanMapProcessor(){(0,s.A)(this,CoralogixSpanMapProcessor),this.sdkConfig=(0,v.T2)(),this.isActive=!0}),[{key:"onEnd",value:function onEnd(e){var n,o;if(!(0,b.K)(this.isActive)){var i=(0,v.wF)(),s=i.onlySessionWithErrorMode,a=i.getPrevSession,c=i.getSession,f=i.setSession,g=c()||f(),y=!!(null===(n=(0,v.Fz)())||void 0===n?void 0:n.getSessionHasRecording()),T=!!(null===(o=(0,v.Fz)())||void 0===o?void 0:o.getSessionHasScreenshot()),_=this._mapToCxSpan(e,g,a(),y,T,s);if(!(0,S.X)(_.text.cx_rum,this.sdkConfig)){var R=(0,E.j)(_,this.sdkConfig);if(R){var k=R.severity===h.q.Error,O=(0,v.wF)().sessionHasError;s&&(k||O)&&((0,v.wF)().sessionHasError=!0,R.text.cx_rum.session_context.hasError=!0),e[d.f5]=R}}}}},{key:"onStart",value:function onStart(){}},{key:"shutdown",value:function shutdown(){return this.isActive=!1,Promise.resolve()}},{key:"forceFlush",value:function forceFlush(){return Promise.resolve(void 0)}},{key:"_mapToCxSpan",value:function _mapToCxSpan(e,n,o,i,s,a){var c,g,v=n||{},S=v.sessionId,E=v.sessionCreationDate,b=o||{},T=b.sessionId,_=b.sessionCreationDate,k=b.hasRecording,O=b.hasScreenshot,I=e.attributes,M=e.startTime,L=e.parentSpanId,P=e.name,N=e.endTime,W=e.status,j=e.duration,U=e.kind,V=JSON.parse(I[d.qi.USER_CONTEXT]),H=JSON.parse(I[d.qi.APPLICATION_CONTEXT]),J=H.application,K=H.version,X=I[d.qi.EVENT_TYPE]||e[d.qi.EVENT_TYPE],Y=this._getEventTypeContext(I,X,e),Z=e.spanContext(),Q=Z.spanId,$=Z.traceId,ee=Object.assign(Object.assign({},null===(c=e.resource)||void 0===c?void 0:c.attributes),{"service.name":J}),te=JSON.parse(I[d.qi.CUSTOM_LABELS]),ne=!!(null===(g=null===Y||void 0===Y?void 0:Y.error_context)||void 0===g?void 0:g.original_stacktrace),re={app_name:J,app_version:K},oe=(null===I||void 0===I?void 0:I[d.qi.SEVERITY])||h.q.Info,ie=I[d.qi.TIMESTAMP]||(0,y.iG)();ie<E&&(ie=(0,y.iG)());var se={version_metadata:re,applicationName:J,subsystemName:"cx_rum",isErrorWithStacktrace:ne,severity:oe,timestamp:ie,text:{cx_rum:Object.assign(Object.assign({platform:"browser",timestamp:ie},Y),{browser_sdk:{version:"1.7.0"},version_metadata:re,session_context:Object.assign(Object.assign(Object.assign(Object.assign({},V),{session_id:S,session_creation_date:E,prev_session:T?{session_id:T,session_creation_date:_,hasRecording:k,hasScreenshot:O}:void 0,hasRecording:i,hasScreenshot:s,user_agent:I[d.qi.USER_AGENT]}
2),(0,f.y_)(I[d.qi.USER_AGENT])),{onlyWithErrorMode:a}),page_context:e[d.qi.PAGE_CONTEXT],isNavigationEvent:!!e[d.qi.IS_NAVIGATION_EVENT],event_context:{type:X,source:I[d.qi.SOURCE],severity:oe},labels:te,environment:I[d.qi.ENVIRONMENT]||""})}};return(0,R.K)(e)&&(se.text.cx_rum.spanId=Q,se.text.cx_rum.traceId=$,se.text.cx_rum.parentSpanId=L,se.instrumentation_data={otelSpan:{spanId:Q,traceId:$,parentSpanId:L,name:P,attributes:Object.assign(Object.assign({},(0,f.Aj)(I)),this.resolveLabels(se.text.cx_rum)),startTime:M,endTime:N,status:oe===h.q.Error?Object.assign(Object.assign({},W),{code:R.sY.ERROR}):W,kind:U,duration:j,sessionId:S},otelResource:{attributes:ee}}),this.resolveContextFromSpan(se,e,X),se.text.cx_rum.labels=this.resolveLabels(se.text.cx_rum),se}},{key:"resolveContextFromSpan",value:function resolveContextFromSpan(e,n,o){switch(o){case c.fc.CUSTOM_MEASUREMENT:e.text.cx_rum.custom_measurement_context=n[d.qi.CUSTOM_MEASUREMENT_CONTEXT];break;case c.fc.MEMORY_USAGE:e.text.cx_rum.memory_usage_context=n[d.qi.MEMORY_USAGE_CONTEXT];break;case c.fc.SCREENSHOT:e.text.cx_rum.screenshot_context=n[d.qi.SCREENSHOT_CONTEXT]}}},{key:"_getEventTypeContext",value:function _getEventTypeContext(e,n,o){var i;switch(n){case c.fc.ERROR:var s=e[d.qi.ERROR.MESSAGE],a=o[_.y4.DATA],h=o[_.y4.STACK];return{error_context:{error_type:e[d.qi.ERROR.TYPE],error_message:s,original_stacktrace:h,error_custom_data:a}};case c.fc.NETWORK_REQUEST:var v=e[c.Vo.URL],S=(0,f.hy)({url:v,blueprinters:null===(i=this.sdkConfig.urlBlueprinters)||void 0===i?void 0:i.networkUrlBlueprinters});return{network_request_context:{method:e[c.Vo.METHOD],status_code:e[c.Vo.STATUS_CODE],url:v,url_blueprint:S,fragments:(0,f.bV)(S),host:e[c.Vo.HOST],schema:e[c.Vo.SCHEME],status_text:e[c.Vo.STATUS_TEXT],duration:(0,f.JU)(null===o||void 0===o?void 0:o.duration),source:e[d.qi.SOURCE],response_content_length:e[c.Vo.RESPONSE_CONTENT_LENGTH],request_headers:o[T.y.REQUEST_HEADERS],request_payload:o[T.y.REQUEST_PAYLOAD],response_headers:o[T.y.RESPONSE_HEADERS],response_payload:o[T.y.RESPONSE_PAYLOAD]}};case c.fc.LOG:if(e[d.qi.LOG]){var E=JSON.parse(e[d.qi.LOG]);return{log_context:{message:E.message,data:null===E||void 0===E?void 0:E.data}}}return{log_context:{message:""}};case c.fc.INTERNAL:var b=JSON.parse(e[d.qi.INTERNAL])||{};return{internal_context:{event:b.event,data:b.data}};case c.fc.USER_INTERACTION:return{interaction_context:{target_element:e[d.qi.TARGET_ELEMENT],event_name:e[d.qi.INTERACTION_EVENT_NAME],target_element_inner_text:e[d.qi.ELEMENT_INNER_TEXT],element_id:e[d.qi.ELEMENT_ID],element_classes:e[d.qi.ELEMENT_CLASSES],target_element_type:e[d.qi.TARGET_ELEMENT_TYPE]}};case c.fc.WEB_VITALS:return{web_vitals_context:JSON.parse(e[g.aP])};case c.fc.LONG_TASK:return{longtask_context:JSON.parse(e[c.fc.LONG_TASK])};case c.fc.RESOURCES:var y=JSON.parse(e[g.n0]),R=(0,f.bV)(y.name);return{resource_context:Object.assign(Object.assign({},y),{fragments:R})}}return{}}},{key:"resolveLabels",value:function resolveLabels(e){var n,o,i=e.labels,s=null===(n=this.sdkConfig)||void 0===n?void 0:n.labelProviders;if(null===s||void 0===s?void 0:s.length){var a=(0,f.o)(d.Yv),c=(0,f.o)(d.VV),h=null===(o=e.network_request_context)||void 0===o?void 0:o.fragments,g=Object.assign(Object.assign({},this.getLabelsByLabelProviders(a,e,e.page_context.page_fragments)),h?this.getLabelsByLabelProviders(c,e,h):{});i=Object.assign(Object.assign({},i),g)}return i}},{key:"getLabelsByLabelProviders",value:function getLabelsByLabelProviders(e,n,o){var s,a={},c=(0,f.Go)(n),d=(0,i.A)(e);try{for(d.s();!(s=d.n()).done;){var h=s.value;a=Object.assign(Object.assign({},a),h.providerFunc(o,c))}}catch(g){d.e(g)}finally{d.f()}return a}}])}()},37498:function(e,n,o){o.d(n,{K:function(){return isProcessorShouldStop}});var i=o(92751);function isProcessorShouldStop(e){var n;return!e||!!(null===(n=(0,i.wF)())||void 0===n?void 0:n.isIdleActive)}},10983:function(e,n,o){o.d(n,{FX:function(){return g},Te:function(){return T},V3:function(){return f},Vn:function(){return v},X3:function(){return h},Zl:function(){return y},cL:function(){return R},eP:function(){return b},i8:function(){return E},j5:function(){return S},kw:function(){return _},lZ:function(){return s},o3:function(){return c},q0:function(){return a},q4:function(){return d}});var i=o(48907),s=1e4,a={"Content-Encoding":"gzip"},c="Coralogix Browser SDK - Recording is not supported on this platform",d="Coralogix Browser SDK - Error while sending record",h=1e3,f="/browser/alpha/sessionrecording",g="rum_session",v="rum_prev_session",S=5e3,
2E={sessionSampleRate:100,onlyWithErrorConfig:{enable:!1}},b=15*i.i7,y=i.Qg,T="rumSessionManager",_="rumSessionRecorder",R="rumSessionRecorderSegmentsMap"},8733:function(e,n,o){o.d(n,{ZE:function(){return getResolvedSampler},pc:function(){return isSamplingOn},vS:function(){return E},JN:function(){return resolveSessionConfig},YE:function(){return resolveSessionRecordingConfig}});var i=o(64467),s=o(10983),a=o(2979),c=o(76493),d=o(92751),h=o(84891),f=o(23029),g=o(92901),v=o(15504),S=function(){return(0,g.A)((function CxCustomSampler(){(0,f.A)(this,CxCustomSampler)}),[{key:"shouldSample",value:function shouldSample(){return{decision:v.i.RECORD}}}])}();function resolveSessionWithErrorsConfig(e){var n,o,s;return e?Object.assign(Object.assign({},e),{maxRumEvents:(s=e.maxRumEvents,s?s>c.gE?c.gE:s:c.TA),maxRecordTime:(o=e.maxRecordTime,o?o>c.mV?c.mV:o:c.Bn),instrumentationsToSend:null!==(n=e.instrumentationsToSend)&&void 0!==n?n:(0,i.A)({},a.fc.WEB_VITALS,!0)}):{enable:!1}}function resolveSessionConfig(e){var n;return e?Object.assign(Object.assign({},e),{sessionSampleRate:null!==(n=e.sessionSampleRate)&&void 0!==n?n:100,onlyWithErrorConfig:resolveSessionWithErrorsConfig(e.onlyWithErrorConfig)}):s.i8}function resolveSessionRecordingConfig(e){var n;if(e)return Object.assign(Object.assign({},e),{sessionRecordingSampleRate:null!==(n=e.sessionRecordingSampleRate)&&void 0!==n?n:100})}function isSamplingOn(e){return e>0&&100*Math.random()<=e}var E=function isSessionWithError(){var e=(0,d.wF)(),n=e.onlySessionWithErrorMode,o=e.cachedLogsSent;return n&&!o};function getResolvedSampler(e){var n=new h.f,o=e.sessionSampleRate,i=e.sessionConfig,s=e.debug,a=e.sessionRecordingConfig;isSamplingOn(o)&&isSamplingOn(i.sessionSampleRate)||((null===i||void 0===i?void 0:i.alwaysTrackSessionsWithErrors)?i.onlyWithErrorConfig=Object.assign(Object.assign({},i.onlyWithErrorConfig),{enable:!0}):(s&&console.debug("CoralogixRum: Session tracking is disabled due to sampling rate"),n=new S,a&&(a.enable=!1),e.instrumentations=Object.assign(Object.assign({},e.instrumentations),{errors:!1,custom:!1,web_vitals:!1,interactions:!1,long_tasks:!1,resources:!1})));return n}},717:function(e,n,o){o.d(n,{C:function(){return N}});var i=o(23029),s=o(92901),a=o(39874),c=o(85501),d=o(36755),h=o(22192),f=o(92146),g=o(10983),v=o(92751),S=o(79507),E=o(19907),b=o(13676),y=o(55967),T=o(65252),_=o(48907);function getWorkerString(){var e=this,n=1048576;function createBlobAndSend(e,n,o,i,s,a){var c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"sendRecordData",d=new Blob([o],{type:"application/octet-stream"});self.postMessage({sessionId:e,sessionCreationDate:n,gzipBlob:d,chunkIndex:i,totalChunks:s,screenshotId:a,event:c})}!function importScriptWithFallback(e,n){try{importScripts(e)}catch(o){try{importScripts(n)}catch(i){self.postMessage({event:"stopRecording"})}}}("https://cdn.rum-ingress-coralogix.com/coralogix/browser/latest/pako_deflate.es5.min.js","https://cdnjs.cloudflare.com/ajax/libs/pako/2.1.0/pako_deflate.es5.min.js"),self.onmessage=function(o){var i,s=o.data;if(!e.pako)return console.warn("Coralogix Browser SDK - Web worker not created due to missing pako library"),void self.postMessage({event:"stopRecording"});i=!!s.screenshotId?JSON.stringify(s.records):function omitSquareBrackets(e){return e.slice(1,-1)}(JSON.stringify(s.records));var a=s.sessionId,c=s.sessionCreationDate,d=s.screenshotId,h=e.pako.gzip(i),f=h.byteLength;if(f>=n)for(var g=Math.ceil(f/n),v=0;v<g;v++){var S=v*n,E=(v+1)*n;createBlobAndSend(a,c,h.slice(S,E),v,g-1,d,"splitRecordData")}else createBlobAndSend(a,c,h,void 0,void 0,d)},self.onerror=function(e){console.warn("Coralogix Browser SDK - Error from session recording worker:\n",e),self.postMessage({event:"stopRecording"})}}var R=function(){return(0,s.A)((function WorkerManager(){(0,i.A)(this,WorkerManager)}),[{key:"loadAndCreateWorker",value:function loadAndCreateWorker(e){return(0,h.sH)(this,void 0,void 0,(0,d.A)().mark((function _callee(){var n,o,i;return(0,d.A)().wrap((function _callee$(s){for(;;)switch(s.prev=s.next){case 0:if(s.prev=0,!e){s.next=7;break}return s.next=4,this.loadWorkerScript(e);case 4:s.t0=s.sent,s.next=8;break;case 7:s.t0="(".concat(getWorkerString.toString(),")()");case 8:return n=s.t0,o=new Blob([n],{type:"application/javascript"}),i=URL.createObjectURL(o),s.abrupt("return",new Worker(i));case 14:return s.prev=14,s.t1=s.catch(0),console.warn("CoralogixRum: Error creating worker ".concat(s.t1)),s.abrupt("return",void 0);case 18:case"end":return s.stop()}}),_callee,this,[[0,14]])}
2)))}},{key:"loadWorkerScript",value:function loadWorkerScript(e){return(0,h.sH)(this,void 0,void 0,(0,d.A)().mark((function _callee2(){var n;return(0,d.A)().wrap((function _callee2$(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,fetch(this.getFullWorkerUrl(e));case 3:if((n=o.sent).ok){o.next=7;break}return console.warn("CoralogixRum: Error fetching custom web worker"),o.abrupt("return","");case 7:return o.next=9,n.text();case 9:return o.abrupt("return",o.sent);case 12:return o.prev=12,o.t0=o.catch(0),console.warn("CoralogixRum: Error fetching custom web worker"),o.abrupt("return","");case 16:case"end":return o.stop()}}),_callee2,this,[[0,12]])})))}},{key:"getFullWorkerUrl",value:function getFullWorkerUrl(e){return e.startsWith("http://")||e.startsWith("https://")?e:"".concat(window.location.origin).concat(e)}}])}(),k=function(){return(0,s.A)((function SessionRecorder(e,n){var o,s=this;(0,i.A)(this,SessionRecorder),this.isAutoStartRecording=!1,this.onlySessionWithErrorMode=!1,this.recordEvents=[],this.recordEventsForSessionWithError=[[],[]],this.segmentIndexCounter={},this.hasRecording=!1,this.hasScreenshot=!1,this.recordingStopped=!1,this.batchTimeDelay=g.X3,this.isErrorOccurred=!1,this.debugMode=!!(null===(o=(0,v.T2)())||void 0===o?void 0:o.debug),this._recordingStopDueToTimeout=!1,this.handleRecordEvent=function(e,n){s.recordingStopped||(s.onlySessionWithErrorMode?s.handleRecordEventForSessionWithError(e,n):s.recordEvents.push(e))},this.prepareRecordEventsBeforeSend=function(){if(s.onlySessionWithErrorMode)s.prepareRecordEventsForSessionWithError();else{if(!s.recordEvents.length)return;s.compressRecordData(s.recordEvents),s.resetBatching()}},this.sendRecordEvents=function(e,n){var o=new FormData,i=s.getMetadata(e,n);o.append("chunk",e.gzipBlob),o.append("metaData",JSON.stringify(i));var a=function sendRecordRequest(){return(0,h.sH)(s,void 0,void 0,(0,d.A)().mark((function _callee(){var e,n;return(0,d.A)().wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:if(i.prev=0,this.isErrorOccurred){i.next=7;break}return i.next=4,null===(e=this.request)||void 0===e?void 0:e.send(o);case 4:i.t0=i.sent,i.next=8;break;case 7:i.t0=void 0;case 8:n=i.t0,this.handleSessionRecordingResponse(n),i.next=15;break;case 12:i.prev=12,i.t1=i.catch(0),this.handleSessionRecordingResponse(void 0);case 15:case"end":return i.stop()}}),_callee,this,[[0,12]])})))};n?(s.batchTimeout=setTimeout(a,s.batchTimeDelay),s.batchTimeDelay+=g.X3):(a(),s.batchTimeDelay=g.X3)},window[g.kw]=this,this.sessionManager=e;var a=e.onlySessionWithErrorMode,c=e.maxRecordTimeForSessionWithError,f=n.maxMutations,S=n.autoStartSessionRecording,E=n.workerUrl;this.onlySessionWithErrorMode=a,this.maxRecordTimeForSessionWithError=c,this.isAutoStartRecording=S,this.maxMutations=null!==f&&void 0!==f?f:g.j5,this.recordConfig=this.prepareRecordConfig(n),window.Worker?(this.workerManager=new R,this.initializeSessionWorker(E)):this.debugMode&&console.warn(g.o3)}),[{key:"getSessionHasScreenshot",value:function getSessionHasScreenshot(){return this.hasScreenshot}},{key:"getSessionHasRecording",value:function getSessionHasRecording(){var e;return this.hasRecording&&!!this.segmentIndexCounter[null===(e=this.sessionManager.getActiveSession())||void 0===e?void 0:e.sessionId]}},{key:"updateSegmentIndexCounter",value:function updateSegmentIndexCounter(e){this.segmentIndexCounter=e}},{key:"getIsAutoStartRecording",value:function getIsAutoStartRecording(){return this.isAutoStartRecording}},{key:"recordingStopDueToTimeout",get:function get(){return this._recordingStopDueToTimeout},set:function set(e){this._recordingStopDueToTimeout=e}},{key:"startRecording",value:function startRecording(){return(0,h.sH)(this,void 0,void 0,(0,d.A)().mark((function _callee2(){return(0,d.A)().wrap((function _callee2$(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isWorkerReady;case 2:if(this.sessionWorker&&!this.recordRef){e.next=4;break}return e.abrupt("return");case 4:this.debugMode&&console.debug("Coralogix Browser SDK - Session recording started"),this.startMutationObserver(),this.resetBatching(),this.hasRecording=!0,this.recordingStopped=!1,this.isErrorOccurred=!1,this.recordingStopDueToTimeout=!1,this.recordRef=(0,S.g1)(this.recordConfig),this.startBatchingRecords();case 13:case"end":return e.stop()}}),_callee2,this)})))}},{key:"screenshot",value:function screenshot(e){this.hasScreenshot=!0;var n=this.sessionManager.getActiveSession()||{},o=n.sessionId,i=n.sessionCreationDate,s=(0,E.P9)(document,this.recordConfig);s&&this.sessionWorker.postMessage({event:"sendRecordData",records:s,sessionId:o,screenshotId:e,sessionCreationDate:i})}},{key:"stopRecording",value:function stopRecording(){this.recordRef&&(this.debugMode&&console.debug("Coralogix Browser SDK - Session recording stopped"),this.recordRef(),this.recordRef=void 0,this.recordingStopped=!0,this.hasRecording=!1,this.prepareRecordEventsBeforeSend(),this.clearIntervals(),this.stopMutationObserver())}},{key:"stopMutationObserver",value:function stopMutationObserver(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect()}},{key:"startMutationObserver",value:function startMutationObserver(){var e=this;this.stopMutationObserver(),this.mutationObserver=new MutationObserver((function(n){if(n.length>e.maxMutations){var o="Coralogix Browser SDK - Recording stopped due to too many mutations ".concat(n.length);console.warn(o),(0,b.U)("recording-stop",o),e.stopRecording()}})),this.mutationObserver.observe(document,{attributes:!1,attributeOldValue:!1,characterData:!1,characterDataOldValue:!1,childList:!0,subtree:!0})}},{key:"clearIntervals",value:function clearIntervals(){this.batchingTimeInterval&&clearInterval(this.batchingTimeInterval)}},{key:"prepareRecordConfig",value:function prepareRecordConfig(e){var n,o=e||{},i=o.excludeDOMOptions,s=o.recordConsoleEvents;return this.recordConfig=Object.assign(Object.assign({},e),{emit:this.handleRecordEvent,checkoutEveryNms:this.onlySessionWithErrorMode?this.maxRecordTimeForSessionWithError:void 0,slimDOMOptions:Object.assign(Object.assign({},i),{script:null===(n=null===i||void 0===i?void 0:i.script)||void 0===n||n}),plugins:s?[(0,T.K)()]:[]}),this.recordConfig}},{key:"handleRecordEventForSessionWithError",value:function handleRecordEventForSessionWithError(e,n){if(!(this.sessionManager.sessionHasError&&!!n&&e.type===f.Bx.FullSnapshot)){!!n&&e.type===f.Bx.Meta&&this.recordEventsForSessionWithError.push([]);var o=this.recordEventsForSessionWithError;o[o.length-1].push(e)}}},{key:"prepareRecordEventsForSessionWithError",value:function prepareRecordEventsForSessionWithError(){var e=this.recordEventsForSessionWithError,n=e.length,o=e[n-2],i=e[n-1];if(this.sessionManager.sessionHasError){var s=o.concat(i);if(!s.length)return;this.compressRecordData(s),this.resetBatching()}else this.recordEventsForSessionWithError=[o,i]}},{key:"compressRecordData",value:function compressRecordData(e){var n=this.sessionManager.getActiveSession()||{},o=n.sessionId,i=n.sessionCreationDate;this.sessionWorker.postMessage({event:"compressRecordData",records:e,sessionId:o,sessionCreationDate:i})}},{key:"registerToWorkerMessages",value:function registerToWorkerMessages(){var e=this;this.sessionWorker.onmessage=function(n){var o=n.data;switch(o.event){case"sendRecordData":e.sendRecordEvents(o,!1);break;case"splitRecordData":e.sendRecordEvents(o,!0);break;case"stopRecording":e.stopRecording()}}}},{key:"resetBatching",value:function resetBatching(){this.onlySessionWithErrorMode?this.recordEventsForSessionWithError=[[],[]]:this.recordEvents=[]}},{key:"getMetadata",value:function getMetadata(e,n){var o=e.sessionId,i=e.sessionCreationDate,s=e.screenshotId,a=e.gzipBlob,c=e.chunkIndex,d=e.totalChunks,h=0,f=(0,v.T2)().application;return!!s||(this.segmentIndexCounter[o]||(this.segmentIndexCounter[o]=0),h=n?c===d?this.segmentIndexCounter[o]++:this.segmentIndexCounter[o]:this.segmentIndexCounter[o]++,sessionStorage.setItem(g.cL,JSON.stringify(this.segmentIndexCounter))),{segmentIndex:h,segmentSize:a.size,segmentTimestamp:(0,_.iG)(),sessionCreationDate:i,sessionId:o,snapshotId:s,application:f,subIndex:null!==c&&void 0!==c?c:-1}}},{key:"handleSessionRecordingResponse",value:function handleSessionRecordingResponse(e){(null===e||void 0===e?void 0:e.ok)||this.isErrorOccurred?this.isErrorOccurred=!1:(console.warn(g.q4),this.isErrorOccurred=!0,this.stopRecording(),this.batchTimeout&&clearTimeout(this.batchTimeout))}},{key:"startBatchingRecords",value:function startBatchingRecords(){this.batchingTimeInterval=setInterval(this.prepareRecordEventsBeforeSend,g.lZ)}},{key:"initializeSessionWorker",value:function initializeSessionWorker(e){var n=this;this.isWorkerReady=new Promise((function(o,i){n.workerManager.loadAndCreateWorker(e).then((function(e){n.sessionWorker=e,n.isAutoStartRecording&&n.startRecording(),n.request=new y.K({suffix:g.V3,headers:g.q0}),n.registerToWorkerMessages(),o(!0)})).catch((function(e){n.debugMode&&console.warn("Coralogix Browser SDK - Web worker not created due to: ",e),i(e)}))}))}}])}(),O=o(8733),I=o(31824),M=o(54393),L=function(){return(0,s.A)((function SessionIdle(e){var n=this;(0,i.A)(this,SessionIdle),this.idleConfig=e,this._isIdleActive=!1,this.stopCallbacks={},this.resetTimeout=function(){var e,o;null===(o=(e=n.stopCallbacks).clearTimeout)||void 0===o||o.call(e);var i=setTimeout((function(){n._isIdleActive=!0,n.idleConfig.onIdle()}),n.idleConfig.timeoutDelay);n.stopCallbacks.clearTimeout=function(){return clearTimeout(i)}},this.idlenessEventsHandler=function(){n._isIdleActive&&(n._isIdleActive=!1,n.idleConfig.onActive()),n.resetTimeout()}}),[{key:"isIdleActive",get:function get(){return this._isIdleActive}},{key:"startIdleListener",value:function startIdleListener(){this.resetTimeout(),this.trackActivity()}},{key:"stopIdleListener",value:function stopIdleListener(){Object.values(this.stopCallbacks).forEac
2h((function(e){return e()}))}},{key:"trackActivity",value:function trackActivity(){var e,n;null===(n=(e=this.stopCallbacks).removeActivityListeners)||void 0===n||n.call(e);var o=(0,M.l)(window,["touchstart","keydown","mousemove"],this.idlenessEventsHandler,{capture:!0,passive:!0}).stop;this.stopCallbacks.removeActivityListeners=o}}])}(),P=o(29723),N=function(e){function SessionManager(e){var n;return(0,i.A)(this,SessionManager),(n=(0,a.A)(this,SessionManager,[{timeoutDelay:g.eP,onIdle:function onIdle(){return n.clearSessionWhenIdle()},onActive:function onActive(){return n.setSession(!0)}}]))._sessionConfig=(0,v.T2)().sessionConfig,n._sessionHasError=!1,n._cachedLogsSent=!1,n._currentPageTimestamp=(0,_.iG)(),n.getPrevSession=function(){return JSON.parse(window.sessionStorage.getItem(g.Vn))},n.getSession=function(){var e,o=JSON.parse(window.sessionStorage.getItem(g.FX)),i=(0,_.iG)();return o&&(o.sessionExpirationDate>i?e=o:(n.clearSessionWhenIdle(),e=n.setSession(!0))),e},n.setSession=function(){var e,o,i,s=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(null===(e=n._sessionConfig)||void 0===e?void 0:e.keepSessionAfterReload)?n.handleRefreshedSessions():n.createNewSession(),window.sessionStorage.setItem(g.FX,JSON.stringify(n.activeSession));var a=(0,v.Fz)();return(s&&!!(null===a||void 0===a?void 0:a.recordingStopDueToTimeout)&&!!(null===(o=n.sessionRecorderConfig)||void 0===o?void 0:o.enable)||(null===a||void 0===a?void 0:a.getIsAutoStartRecording()))&&(null===(i=n.sessionRecorder)||void 0===i||i.startRecording()),n.activeSession},n.initializeSession(e),n}return(0,c.A)(SessionManager,e),(0,s.A)(SessionManager,[{key:"currentPageTimestamp",get:function get(){return this._currentPageTimestamp}},{key:"currentPageFragment",get:function get(){return this._currentPageFragment}},{key:"sessionConfig",get:function get(){return this._sessionConfig}},{key:"onlySessionWithErrorMode",get:function get(){return this._sessionConfig.onlyWithErrorConfig.enable}},{key:"maxRumEventsForSessionWithError",get:function get(){return this._sessionConfig.onlyWithErrorConfig.maxRumEvents||0}},{key:"maxRecordTimeForSessionWithError",get:function get(){return this._sessionConfig.onlyWithErrorConfig.maxRecordTime||0}},{key:"instrumentationsToSend",get:function get(){return this._sessionConfig.onlyWithErrorConfig.instrumentationsToSend}},{key:"cachedLogsSent",get:function get(){return this._cachedLogsSent},set:function set(e){this._cachedLogsSent=e}},{key:"sessionHasError",get:function get(){return this._sessionHasError},set:function set(e){this._sessionHasError=e}},{key:"updateCurrentPage",value:function updateCurrentPage(e){this.isIdleActive?this._currentPageFragment=void 0:(this._currentPageFragment=e,this._currentPageTimestamp=(0,_.iG)())}},{key:"getSessionKey",value:function getSessionKey(){return g.FX}},{key:"getActiveSession",value:function getActiveSession(){return this.activeSession}},{key:"start",value:function start(){this.startIdleListener(),this.clearPrevSession(),this.setSession()}},{key:"stop",value:function stop(){this.stopIdleListener()}},{key:"initializeSession",value:function initializeSession(e){(window[g.Te]=this,this.sessionRecorderConfig=e,null===e||void 0===e?void 0:e.enable)&&((0,O.pc)(e.sessionRecordingSampleRate)?this.sessionRecorder=new k(this,e):(0,v.T2)().debug&&console.debug("Coralogix Browser SDK - Session recording is disabled"))}},{key:"clearSessionWhenIdle",value:function clearSessionWhenIdle(){var e;(null===(e=this.sessionRecorder)||void 0===e?void 0:e.getSessionHasRecording())&&(this.sessionRecorder.recordingStopDueToTimeout=!0),this.clearSession()}},{key:"clearPrevSession",value:function clearPrevSession(){window.sessionStorage.removeItem(g.Vn)}},{key:"clearSession",value:function clearSession(){var e,n,o,i;window.sessionStorage.setItem(g.Vn,JSON.stringify(Object.assign(Object.assign({},this.activeSession),{hasRecording:null===(e=this.sessionRecorder)||void 0===e?void 0:e.getSessionHasRecording(),hasScreenshot:null===(n=this.sessionRecorder)||void 0===n?void 0:n.getSessionHasScreenshot()}))),(0,P.nv)(),this.clearSessionWithErrorMode(),null===(o=(0,v.i3)())||void 0===o||o.resetSnapshot(),this._currentPageFragment=void 0,null===(i=this.sessionRecorder)||void 0===i||i.stopRecording(),window.sessionStorage.removeItem(g.FX)}},{key:"clearSessionWithErrorMode",value:function clearSessionWithErrorMode(){this.sessionHasError=!1,this.cachedLogsSent=!1}},{key:"handleRefreshedSessions",value:function handleRefreshedSessions(){var e;this.activeSession=this.getSession();var n=JSON.parse(window.sessionStorage.getItem(g.cL)||"{}");this.activeSession?null===(e=(0,v.Fz)())||void 0===e||e.updateSegmentIndexCounter(n):this.createNewSession()}},{key:"createNewSession",value:function createNewSession(){var e=(0,_.iG)();this.activeSession={sessionId:(0,I.lk)(),sessionCreationDate:e,sessionExpirationDate:e+g.Zl}}}])}(L)},76493:function(e,n,o){o.d(n,{Bn:function(){return f},Eh:function(){return a},TA:function(){return h},gE:function(){return c},mV:function(){return d}});var i=o(64467),s=o(2979),a=500,c=2e4,d=6e4,h=5e3,f=1e4;(0,i.A)({},s.fc.WEB_VITALS,!0)},55533:function(e,n,o){o.d(n,{J:function(){return i},c:function(){return s}});var i="rumSnapshotManager",s={errorCount:0,viewCount:0,actionCount:0,hasRecording:!1,hasScreenshot:!1}},6760:function(e,n,o){o.d(n,{C:function(){return d}});var i=o(23029),s=o(92901),a=o(55533),c=o(48907),d=function(){return(0,s.A)((function SnapshotManager(){var e=this;(0,i.A)(this,SnapshotManager),this.updateSnapshot=function(n){e._currentSnapshot=Object.assign(Object.assign({},e._currentSnapshot),n)},this.resetSnapshot=function(){e._currentSnapshot=Object.assign(Object.assign({},a.c),{timestamp:(0,c.iG)()}),e._fragmentsState=new Set,e._isSnapshotSentDueToRecording=!1},window[a.J]=this,this.resetSnapshot()}),[{key:"fragmentsState",get:function get(){return this._fragmentsState}},{key:"currentSnapshot",get:function get(){return this._currentSnapshot}},{key:"isSnapshotSentDueToRecording",get:function get(){return this._isSnapshotSentDueToRecording},set:function set(e){this._isSnapshotSentDueToRecording=e}}])}()},54393:function(e,n,o){function getZoneJsOriginalDom(e,n){var o,i=function getGlobalObject(){if("object"===typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function get(){return this},configurable:!0});var e=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!==typeof e&&(e="object"===typeof self?self:"object"===typeof window?window:{}),e}();return i.Zone&&"function"===typeof i.Zone.__symbol__&&(o=e[i.Zone.__symbol__(n)]),o||(o=e[n]),o}function addEventListeners(e,n,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=i.once,a=i.capture,c=i.passive,d=s?function(e){stop(),o(e)}:o,h=c?{capture:a,passive:c}:a,f=getZoneJsOriginalDom(e,"addEventListener");function stop(){var o=getZoneJsOriginalDom(e,"removeEventListener");
2n.forEach((function(n){return o.call(e,n,d,h)}))}return n.forEach((function(n){return f.call(e,n,d,h)})),{stop:stop}}o.d(n,{l:function(){return addEventListeners}})},97005:function(e,n){var o="undefined"!=typeof window?window:{},i="function"==typeof Object.defineProperties?Object.defineProperty:function(e,n,o){e!=Array.prototype&&e!=Object.prototype&&(e[n]=o.value)};function l(){l=function l(){},o.Symbol||(o.Symbol=m)}var s=0;function m(e){return"jscomp_symbol_"+(e||"")+s++}function p(){l();var e=o.Symbol.iterator;e||(e=o.Symbol.iterator=o.Symbol("iterator")),"function"!=typeof Array.prototype[e]&&i(Array.prototype,e,{configurable:!0,writable:!0,value:function value(){return q(this)}}),p=function p(){}}function q(e){var n=0;return function r(e){return p(),e={next:e},e[o.Symbol.iterator]=function(){return this},e}((function(){return n<e.length?{done:!1,value:e[n++]}:{done:!0}}))}function t(e){p();var n=e[Symbol.iterator];return n?n.call(e):q(e)}function u(e){if(!(e instanceof Array)){e=t(e);for(var n,o=[];!(n=e.next()).done;)o.push(n.value);e=o}return e}var a=0;var c="img script iframe link audio video source".split(" ");function z(e,n){for(var o=(e=t(e)).next();!o.done;o=e.next())if(o=o.value,n.includes(o.nodeName.toLowerCase())||z(o.children,n))return!0;return!1}function B(e,n){if(2<e.length)return performance.now();for(var o=[],i=(n=t(n)).next();!i.done;i=n.next())i=i.value,o.push({timestamp:i.start,type:"requestStart"}),o.push({timestamp:i.end,type:"requestEnd"});for(i=(n=t(e)).next();!i.done;i=n.next())o.push({timestamp:i.value,type:"requestStart"});for(o.sort((function(e,n){return e.timestamp-n.timestamp})),e=e.length,n=o.length-1;0<=n;n--)switch(i=o[n],i.type){case"requestStart":e--;break;case"requestEnd":if(2<++e)return i.timestamp;break;default:throw Error("Internal Error: This should never happen")}return 0}function C(e){e=e||{},this.w=!!e.useMutationObserver,this.u=e.minValue||null,e=window.__tti&&window.__tti.e;var n=window.__tti&&window.__tti.o;this.a=e?e.map((function(e){return{start:e.startTime,end:e.startTime+e.duration}})):[],n&&n.disconnect(),this.b=[],this.f=new Map,this.j=null,this.v=-1/0,this.i=!1,this.h=this.c=this.s=null,function w(e,n){var o=XMLHttpRequest.prototype.send,i=a++;XMLHttpRequest.prototype.send=function(s){for(var a=[],c=0;c<arguments.length;++c)a[c-0]=arguments[c];var d=this;return e(i),this.addEventListener("readystatechange",(function(){4===d.readyState&&n(i)})),o.apply(this,a)}}(this.m.bind(this),this.l.bind(this)),function x(e,n){var o=fetch;fetch=function fetch(i){for(var s=[],c=0;c<arguments.length;++c)s[c-0]=arguments[c];return new Promise((function(i,c){var d=a++;e(d),o.apply(null,[].concat(u(s))).then((function(e){n(d),i(e)}),(function(e){n(e),c(e)}))}))}}(this.m.bind(this),this.l.bind(this)),function D(e){e.c=new PerformanceObserver((function(n){for(var o=(n=t(n.getEntries())).next();!o.done;o=n.next())if("resource"===(o=o.value).entryType&&(e.b.push({start:o.fetchStart,end:o.responseEnd}),G(e,B(e.g,e.b)+5e3)),"longtask"===o.entryType){var i=o.startTime+o.duration;e.a.push({start:o.startTime,end:i}),G(e,i+5e3)}})),e.c.observe({entryTypes:["longtask","resource"]})}(this),this.w&&(this.h=function A(e){var n=new MutationObserver((function(n){for(var o=(n=t(n)).next();!o.done;o=n.next())("childList"==(o=o.value).type&&z(o.addedNodes,c)||"attributes"==o.type&&c.includes(o.target.tagName.toLowerCase()))&&e(o)}));return n.observe(document,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["href","src"]}),n}(this.B.bind(this)))}function F(e){e.i=!0;var n=0<e.a.length?e.a[e.a.length-1].end:0,o=B(e.g,e.b);G(e,Math.max(o+5e3,n))}function G(e,n){!e.i||e.v>n||(clearTimeout(e.j),e.j=setTimeout((function(){var n=performance.timing.navigationStart,o=B(e.g,e.b);n=(window.a&&window.a.A?1e3*window.a.A().C-n:0)||performance.timing.domContentLoadedEventEnd-n;if(e.u)var i=e.u;else performance.timing.domContentLoadedEventEnd?i=(i=performance.timing).domContentLoadedEventEnd-i.navigationStart:i=null;var s=performance.now();null===i&&G(e,Math.max(o+5e3,s+1e3));var a=e.a;5e3>s-o?o=null:o=5e3>s-(o=a.length?a[a.length-1].end:n)?null:Math.max(o,i),o&&(e.s(o),clearTimeout(e.j
2),e.i=!1,e.c&&e.c.disconnect(),e.h&&e.h.disconnect()),G(e,performance.now()+1e3)}),n-performance.now()),e.v=n)}C.prototype.getFirstConsistentlyInteractive=function(){var e=this;return new Promise((function(n){e.s=n,"complete"==document.readyState?F(e):window.addEventListener("load",(function(){F(e)}))}))},C.prototype.m=function(e){this.f.set(e,performance.now())},C.prototype.l=function(e){this.f.delete(e)},C.prototype.B=function(){G(this,performance.now()+5e3)},o.Object.defineProperties(C.prototype,{g:{configurable:!0,enumerable:!0,get:function get(){return[].concat(u(this.f.values()))}}});var d={getFirstConsistentlyInteractive:function getFirstConsistentlyInteractive(e){return e=e||{},"PerformanceLongTaskTiming"in window?new C(e).getFirstConsistentlyInteractive():Promise.resolve(null)}};n.A=d},86391:function(e,n,o){var i;o.d(n,{q:function(){return i}}),function(e){e[e.Debug=1]="Debug",e[e.Verbose=2]="Verbose",e[e.Info=3]="Info",e[e.Warn=4]="Warn",e[e.Error=5]="Error",e[e.Critical=6]="Critical"}(i||(i={}))},2979:function(e,n,o){var i,s,a,c;o.d(n,{GD:function(){return s},Vo:function(){return a},fc:function(){return i},id:function(){return c}}),function(e){e.ERROR="error",e.NETWORK_REQUEST="network-request",e.LOG="log",e.USER_INTERACTION="user-interaction",e.WEB_VITALS="web-vitals",e.LONG_TASK="longtask",e.RESOURCES="resources",e.INTERNAL="internal",e.DOM="dom",e.CUSTOM_MEASUREMENT="custom-measurement",e.MEMORY_USAGE="memory-usage",e.SCREENSHOT="screenshot",e.CUSTOM_SPAN="custom-span"}(i||(i={})),function(e){e.Resource="resource",e.LongTask="longtask",e.Navigation="navigation",e.SoftNavigation="soft-navigation"}(s||(s={})),function(e){e.METHOD="http.method",e.URL="http.url",e.STATUS_CODE="http.status_code",e.HOST="http.host",e.SCHEME="http.scheme",e.STATUS_TEXT="http.status_text",e.RESPONSE_CONTENT_LENGTH="http.response_content_length"}(a||(a={})),function(e){e.PAGE="page",e.NETWORK_REQUEST="network_request"}(c||(c={}))},15688:function(e,n,o){function isNil(e){return null==e}o.d(n,{g:function(){return isNil}})},31824:function(e,n,o){function isString(e){return"string"===typeof e}function isMatchingPattern(e,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!isString(e)&&(function isRegExp(e){return e instanceof RegExp}(n)?n.test(e):!!isString(n)&&(o?e===n:e.includes(n)))}function stringMatchesSomePattern(e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).some((function(o){return isMatchingPattern(e,o,n)}))}function generateUUID(e){return e?(+e^16*Math.random()>>+e/4).toString(16):"".concat(1e7,"-",1e3,"-",4e3,"-",8e3,"-",1e11).replace(/[018]/g,generateUUID)}o.d(n,{hy:function(){return applyUrlBluePrinters},Df:function(){return calculateTotalBlockingTime},Go:function(){return deepClone},Aj:function(){return flattenAttributes},lk:function(){return generateUUID},WY:function(){return generateWebVitalUniqueID},OQ:function(){return y},bp:function(){return getInstrumentationConfig},o:function(){return getInternalRumData},bV:function(){return b},JU:function(){return S},TX:function(){return E},y_:function(){return parseUserAgent},jB:function(){return partition},JC:function(){return rateForTBTMetricValue},Ud:function(){return replacePatternsInUrl},rO:function(){return resolvePageContext},TU:function(){return saveInternalRumData},Xr:function(){return stringMatchesSomePattern},a$:function(){return v},Yy:function(){return valueEndWithOrInclude}});var i=o(7903);function saveInternalRumData(e,n){window[i.K5]||(window[i.K5]={}),window[i.K5][e]=n}function getInternalRumData(e){var n;return null===(n=window[i.K5])||void 0===n?void 0:n[e]}var s,a=o(24765),c=o(5544),d=o(25578),h=o(92751),f=o(70755),g=o(48907),v=(null===(s=null===window||void 0===window?void 0:window.PerformanceObserver)||void 0===s?void 0:s.supportedEntryTypes)?new Set(window.PerformanceObserver.supportedEntryTypes):new Set;function valueEndWithOrInclude(e,n){return n.some((function(n){return e.endsWith(n)||e.includes(n)}))}function getInstrumentationConfig(e,n,o){return!1===e?e:(void 0!==e||!o)&&
2(!1!==(null===e||void 0===e?void 0:e.enabled)&&Object.assign({},n,e))}var S=function hrTimeToMilliseconds(e){var n=(0,c.A)(e,2),o=n[0],i=n[1];return 1e3*o+Math.round(i/1e6)},E=function isNetworkError(e){return!!e&&e>=400},b=function getUrlFragments(e){var n,o;if(!e)return"";var s=(null===(n=e.split(i.h6))||void 0===n?void 0:n[1])||e,a=null===(o=s.split(i.o2))||void 0===o?void 0:o[1];if(null===a||void 0===a?void 0:a.startsWith(i.Tx)){var c=s.split(i.Tx)[1].split(i.T2)[0].split(i.o2);return c.length&&c.shift(),c.join(i.o2)||i.o2}try{return e.startsWith("blob:")?e:new URL(e).pathname.substring(1)||i.o2}catch(d){return console.warn("Coralogix Browser SDK - Error parsing URL",d),e}};function parseUserAgent(e){for(var n,o,i="Unknown",s="Unknown",a="Unknown",d="Unknown",h="Desktop",f=0,g=Object.entries({Chrome:/Chrome\/([\d.]+)/,Firefox:/Firefox\/([\d.]+)/,Safari:/Version\/([\d.]+).*Safari/,Edge:/Edge\/([\d.]+)/,Opera:/Opera\/([\d.]+)/,IE:/Trident.*rv:([\d.]+)/});f<g.length;f++){var v=(0,c.A)(g[f],2),S=v[0],E=v[1],b=e.match(E);if(b){i=S,s=b[1]||"Unknown";break}}for(var y=0,T=Object.entries({Windows:/Windows NT ([\d.]+)/,MacOS:/Mac OS X ([\d._]+)/,Linux:/Linux(?: ([\d.]+))?/,iOS:/CPU(?: iPhone)? OS (\d+([._]\d+)*)/,Android:/Android (\d+([._]\d+)*)/});y<T.length;y++){var _=(0,c.A)(T[y],2),R=_[0],k=_[1],O=e.match(k);if(O){a=R,d=(null===(o=null===(n=O[1])||void 0===n?void 0:n.split("_"))||void 0===o?void 0:o.join("."))||"Unknown";break}}for(var I=0,M=Object.entries({Mobile:/Mobile|Android|iPhone|iPod|BlackBerry|IEMobile|Windows Phone|webOS|Opera Mini/,Tablet:/Tablet|iPad/});I<M.length;I++){var L=(0,c.A)(M[I],2),P=L[0],N=L[1];if(e.match(N)){h=P;break}}return{browser:i,browserVersion:s,os:a,osVersion:d,device:h}}function calculateTotalBlockingTime(e){return e.reduce((function(e,n){return e+=n.duration-d.ru}),0)}function generateWebVitalUniqueID(){return"v3-".concat((0,g.iG)(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}function rateForTBTMetricValue(e){switch(!0){case e>600:return"poor";case e>200&&e<=600:return"needs-improvement";default:return"good"}}function flattenAttributes(e){for(var n=JSON.parse(e[i.qi.CUSTOM_LABELS]),o=(0,f.cJ)(e,i.qi.CUSTOM_LABELS),s=0,a=Object.entries(n);s<a.length;s++){var d=(0,c.A)(a[s],2),h=d[0],g=d[1];o[h]="string"!==typeof g?JSON.stringify(g):g}return o}var y=function getCircularReplacer(){var e=new WeakSet;return function(n,o){if("object"===typeof o&&null!==o){if(e.has(o))return;e.add(o)}return o}};function replacePatternsInUrl(e){var n,o=e.patterns,i=e.url,s=(0,a.A)(o);try{for(s.s();!(n=s.n()).done;){var c=n.value,d=c.pattern,h=c.replacement;i=i.replace(d,h)}}catch(f){s.e(f)}finally{s.f()}return i}function applyUrlBluePrinters(e){var n=e.url,o=e.blueprinters,i=n;return null===o||void 0===o||o.forEach((function(e){return i=e(i)})),i}function resolvePageContext(e){var n,o=applyUrlBluePrinters({url:e,blueprinters:null===(n=(0,h.T2)().urlBlueprinters)||void 0===n?void 0:n.pageUrlBlueprinters}),s=b(o);return{page_url:e.slice(0,i.SF),page_url_blueprint:o,page_fragments:s,referrer:document.referrer}}function deepClone(e){return JSON.parse(JSON.stringify(e))}function partition(e,n){var o,i=[],s=[],c=(0,a.A)(e);try{for(c.s();!(o=c.n()).done;){var d=o.value;n(d)?i.push(d):s.push(d)}}catch(h){c.e(h)}finally{c.f()}return[i,s]}},70755:function(e,n,o){o.d(n,{Im:function(){return isEmpty},Gv:function(){return isObject},cJ:function(){return omit}});var i=o(64467),s=o(87695),a=o(22192),c=o(15688),d=o(60436);function isObject(e){return"object"===typeof e}function omit(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,c.g)(e))return{};for(var n=function omitter(e,o){var c=(0,s.A)(o),d=c[0],h=c.slice(1);if(!e.hasOwnProperty(d))return e;if(!h.length){var f=e,g=d;f[g];return(0,a.Tt)(f,["symbol"===typeof g?g:g+""])}return Object.assign(Object.assign({},e),(0,i.A)({},d,n(e[d],h)))},o=arguments.length,h=new Array(o>1?o-1:0),f=1;f<o;f++)h[f-1]=arguments[f];return function array_coerceArray(e){return(0,c.g)(e)?[]:e instanceof Set?(0,d.A)(e):Array.isArray(e)?e:[e]}(h).reduce((function(e,o){return n(e,o.split("."))}),e)}function isEmpty(e){return!!(0,c.g)(e)||(e instanceof Set||e instanceof Map?0===e.size:Array.isArray(e)||"string"===typeof e?0===e.length:!!isObject(e)&&0===Object.keys(e).length)}},49903:function(e,n,o){function isPatternMatch(e,n,o){return n.some((function(n){return n instanceof RegExp?n.test(e):"str
2ing"===typeof n?(n=n.toLowerCase()).includes(e.toLowerCase()):(o&&console.warn("Coralogix Browser SDK - ".concat(o," must be from type string | Regex")),!1)}))}o.d(n,{_:function(){return isPatternMatch}})},48907:function(e,n,o){o.d(n,{EU:function(){return i},Qg:function(){return a},i7:function(){return s},iG:function(){return getNowTime}});var i=1e3,s=60*i,a=60*s;function getNowTime(){return(new Date).getTime()}}}]); 3//# sourceMappingURL=1090.47ce0dcb.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.