cdn.gbqofs.com
Open in
urlscan Pro
2606:4700::6812:190d
Public Scan
URL:
https://cdn.gbqofs.com/uhg/seamless/p/detector-dom.min.js
Submission: On April 12 via manual from IN — Scanned from DE
Submission: On April 12 via manual from IN — Scanned from DE
Form analysis
0 forms found in the DOMText Content
/* * Version: 6.6.28B38 * Copyright (c) 26-12-2021 GlassBox http://www.glassboxdigital.com */ /* BEGIN Configuration */ if(typeof _cls_config === "undefined") _cls_config = {}; /* BEGIN ajax */ _cls_config.ajaxRecordMetadata="never"; _cls_config.ajaxRecordRequestBody="never"; _cls_config.ajaxRecordRequestHeaders="tld"; _cls_config.ajaxRecordResponseBody="never"; _cls_config.ajaxRecordResponseHeaders="tld"; _cls_config.ajaxRecordStats="always"; _cls_config.interceptAjax=true; /* END ajax */ /* BEGIN behavior */ _cls_config.idleEventTimeInterval=-1; _cls_config.iframesAutoInject=true; _cls_config.recordHovers=true; _cls_config.recordMouseMoves=true; _cls_config.recordScrolls=true; _cls_config.reportToStorageAfterUnload=true; /* END behavior */ /*BEGIN MASKING*/ //Value Masking (INPUT) _cls_config.valueMaskingMode = "whitelist"; _cls_config.maskWhitelistValueById = []; _cls_config.maskBlacklistValueById = []; _cls_config.maskWhitelistValueByClass = []; _cls_config.maskBlacklistValueByClass = []; _cls_config.valueWhitelistMaskSimpleSelector = []; _cls_config.valueBlacklistMaskSimpleSelector = []; //DOM Masking _cls_config.domMaskingMode = "blacklist"; _cls_config.domWhitelistMaskContentById = []; _cls_config.domBlacklistMaskContentById = []; _cls_config.domWhitelistMaskContentByClass = []; _cls_config.domBlacklistMaskContentByClass = []; _cls_config.domWhitelistMaskSimpleSelector = []; _cls_config.domBlacklistMaskSimpleSelector = []; /*END MASKING*/ /* BEGIN required */ _cls_config.reportURI= "https://report.uhone.glassboxdigital.io/glassbox/reporting/796abf68-d52e-d282-f19a-a6c828b01174/cls_report"; /* END required */ /* BEGIN extra */ _cls_config.clientAttributesEnabled=true; _cls_config.clientAttributeMaxLength=500; _cls_config.collectStruggles=true; /* Page Performance Waterfall start*/ _cls_config.resourceTimingRecordEnabled=true; _cls_config.resourceTimingRecordEnabledByChance=1; _cls_config.webVitalsRecordEnabled=true; /* Page Performance Waterfall end*/ /* END extra */ /* END Configuration */ !function(C,S,e,K,n,Q){var L,t,r,i,Y,E,o,a,logger,f,u,c,s,$,Z,g,l,p,d,h,v,m,y,b,w,T,I,k,x,A,M,ee,R,N,D,O,F,_,P,B,j,ne,U,V,H,W,q,z,G,J,X,te,re,ie,oe,ae,ue,ce,se,fe,le,de,he,ve,me,ge,pe,ye,be,we,Ee,Ce,Se,Te,Ie,ke,xe,Ae,Me,Re,Ne,De,Oe,Le,Fe,_e,Pe,Be,je,Ue,Ve,He,We,qe,iframeHelper,ze,Ge,Je,Xe,Ke,Qe,Ye,$e,Ze,en,nn,tn,rn,on,an,un;function cn(e){e.debugMode=!1,e.traceMode=!1,e.suppressMouseMovesDebug=!0,e.netgearSendDebugInfo=!1,e.reportByPost=!1,e.reportPreferSendBeaconAPI=!1,e.reportDisableCors=!1,e.enableSessionizingByCors=!1,e.timingMode=!1,e.useIdSelectors=!0,e.noIdSelectorsForClassNames=["skull_list"],e.noIdSelectorsForIDs=[],e.noIdSelectorsForAttrs=[],e.noMetaTagInSelector=!0,e.useNameInFormSelectors=!1,e.preferNamesInFormSelectors=!1,e.reportValidationErrors=!0,e.supportNativeAutoComplete=!1,e.recordEnterForInputs=!0,e.recordTypingAll=!1,e.recordTypingForAttrs=["bs-typeahead"],e.recordTypingForClasses=["tt-input"],e.recordTypingForIDs=[],e.ignorableElementIds=["cls_logger","cls_logger_tab"],e.idleEventTimeInterval=-1,e.maxTimeForIdleEvent=42e4,e.validationValueForRenderTime=2e4,e.titleCharsLimit=150,e.recordAjaxCallsAnyway=!1,e.ajaxDebug=!1,e.recordSpaLoadTime=!0,e.ajaxHashRecurrentUrls=!0,e.reportVisualNames=!0,e.visualNameDebug=!1,e.visualName={maxLimit:160,maxParentLevel:3,CLS_NAME_ATTR:"cls_vname",filterNamingByTagName:["script","style"],maxDistance:20,eventsToCalcDistance:["mousedown"],by:{title:!0,alt:!0,ariaLabel:!0,labelTag:!0,inlineText:!0,placeholder:!0,inputConsts:!0,inputButtonsValue:!0,name:!0,id:!0,parent:!0,child:!0},elementListToCheckParent:["img","span","div"],elementListToCheckChild:["button"],filterInlineTextByClassName:[],wrapperElementList:["BUTTON","A"]},e.visualNameLimit=60,e.valueEncryptionMode=L.censorMode.BlackList,e.valueEncryptById=[],e.valueEncryptByClass=[],e.valueMaskingMode=Q,e.maskWhitelistValueById=[],e.maskBlacklistValueById=[],e.maskWhitelistValueByClass=[],e.maskBlacklistValueByClass=[],e.valueWhitelistMaskSimpleSelector=[],e.valueBlacklistMaskSimpleSelector=[],e.valueMaskIgnoreAttribute="",e.ajaxMaskRequestBody=[],e.ajaxMaskResponseBody=[],e.ajaxStatsQueryParams=[],e.ajaxCaptureRequestCookie=!1,e.ajaxTimeoutForResourceData=-1,e.maskCookies=[],e.maskQueryParameters=[],e.maskUrlPath=[],e.ccAutoMask=!0,e.ccAutoMaskByContent=!0,e.ccAutoMaskNumberInString=!1,e.ccAutoMaskMode="default",e.ccAutoMaskKeepLastDigits=-1,e.ccForceMaskContainer=!0,e.valueMaskByCategories=[],e.valueMaskingCharNumeric="#",e.valueMaskingCharNumericLike="#",e.maskTitle=!1,e.cookieAssignFQDN=!1,e.cookieTLDSegmentCount=-1,e.enableSecureCookie=!0,e.recordErrors=!0,e.recordConsoleErrors=!0,e.maxRecordedCountPerError=2,e.recordConsoleWarn=!1,e.recordConsoleInfo=!1,e.maxRecordedCountPerWarning=2,e.maxRecordedCountPerInfo=2,e.recordConsoleWarnWhitelist=[],e.recordConsoleInfoWhitelist=[],e.recordConsoleWarnBlacklist=[],e.recordConsoleInfoBlacklist=[],e.observeRightClick=!1,e.minDragPixels=10,e.botDetection=!1,e.devToolsDetectionEnabled=!0,e.devToolsDetectionMessage="",e.devToolsDetectionWorkerTimeout=500,e.struggleCaptureHorizontalScrollbar=!0,e.struggleCaptureBlankPage=!0,e.struggleCaptureDeadClick=!0,e.struggleDeadClickInterval=1e3,e.struggleCaptureErrorClick=!0,e.struggleErrorClickInterval=1e3,e.reportDebugInfo=!0,e.DOMBeaconImg=!1,e.truncateEventsWithUnload=!0,e.recordScrolls=!1,e.recordScrollReach=!1,e.scrollReachMaxTop=1e4,e.minStallingScrollTime=3e3,e.scrollDebug=!1,e.recordMouseMoves=!1,e.mmRecordTimes=!1,e.mmDiluteMinPixels=20,e.mmMaxMovesWithUnload=100,e.mmMaxMovesInEventNoTimes=180,e.mmMaxMovesInEventWithTimes=130,e.mmMinStallingMoveTime=1e4,e.mmMaxInMemoryMoves=600,e.mmDebug=!1,e.ignoreSelectorOnMouseMove=!1,e.SCIntegration=!1,e.SCIntegrationURLsContainList=[],e.SCIntegrationKeyList=["pageName","v25","v11","v39"],e.interceptThirdPartyAttributes=!1,e.interceptABTesting=!1,e.interceptAdobeABEvent=!1,e.abTestingGlobalObject="",e.enableOptimizelyIntegration=!1,e.optimizelyCheckOnSegmentLoad=!1,e.optimizelyUrl="https://logx.optimizely.com/v1/events",e.enableAdobeAnalyticsIntegration=!1,e.adobeRsid="",e.adobeEVarNumber="",e.adobeAPIMaxAttempts=5,e.enableGoogleAnalyticsIntegration=!1,e.googleDimensionIndex=-1,e.googleMeasurementId="",e.interceptGAABTesting=!0,e.googleAPIMaxAttempts=5,e.externalIdAttr="id",e.recordHovers=!1,e.mhDeepLevel=2,e.mhMaxListSize=10,e.mhMaxInMemeoryHovers=100,e.mhDebug=!1,e.reportHybrid=!1,e.domRecordEnabled=!1,e.reportAllResourcesLoad=!1,e.ignoreReportResourcesByTagNames=[],e.reportExternalResources=!1,e.reportMaxConcurrency=-1,e.reportTimingBetweenBeacons=-1,e.externalReporterObject="",e.clsDebug=!0,e.clsDebugCharsLimit=1e3,e.clsDebugMaxReports=5,e.reportEncoding="formUrl",e.reportCompress=!1,e.cordovaSdkReporting=!1,e.reportAddUriParams=["clsjsv","_cls_s","_cls_v","sn","cfg","pv","cls_e"],e.reportAddUriParamAPI=!1,e.reportStorageBackedForUA=[".*"],e.reportViaTopWindow=!1,e.duplicateIdCheck=!1,e.blackoutWhenLocationContains=[],e.reportCorsForceSafelistedHeaders=!0,e.reportCorsTakeNativeCookies=[],e.resetCorsOnNativeCookieChange=!1,e.clsByNativeCookie="",e.visitorDaysToExpiration=1825,e.reportIncludeReferrer=!0,e.reportCreateSubSessionCookie=!1,e.sessionIdByQueryParam="_cls_s",e.visitorIdByQueryParam="_cls_v",e.sendStateInfo=!0,e.supportRemoteClientConfig=!1,e.saveChancesByCookie=!1,e.debounceScrolls=500,e.debounceScrollReach=1e4,e.encryptionKeyId="key1",e.encryptionTimeout=600,e.captureGlobalObjectsEmptyStrings=!1,e.captureGlobalObjectsOnSegmentChange=!1,e.useFullPathForObjectCapturing=!1,e.segmentationTriggerBySimpleSelector=[],e.segmentationLabelBySimpleSelector=[],e.segmentationLabelByAttribute="",e.segmentationTitleByAttribute="",e.segmentationPrefix="_logical_",e.segmentationParallelMechanism=!1,e.segmentationInitialLabelSelector="",e.segmentationForceTryEnterSegment=!1,e.forceLogicalSegmentationOnHash=!1,e.waitForSegmentRender=-1,e.useExtension=!0,e.ajaxRecordSessionLimit=-1,e.pageNameResolvingEnabled=!0,e.pageNameResolvingByElements=[],e.gbconsoledomain="",e.decodeUri=!1,e.collectVoc=!0,e.collectUsabillaVoc=!1,e.waitForUsabillaObj=!0,e.interceptUsabillaUrl="https://w.usabilla.com",e.enableSessionCamApi=!1,e.passTabIdViaWinName=!1,e.infiniteScrollDetectionWaitTime=1e4,e.infiniteScrollDetectionGrowElementsCount=10,e.infiniteScrollDetectionGrowPixels=1e3,e.recordCanvas=!1,e.canvasQuality=5,e.initDetectorOnInteractive=!1,e.useAlternateBindFunction=!0}function sn(e){e.maxReportSize=1900,e.reportInterval=3e3,e.reportByPost=!0,e.maxPostReportSize=15e4,e.reportPostInterval=1e4,e.reportPostRetry=!0,e.reportMaxRetries=2,e.reportAbortAfter=-1,e.reportAddUriParams=["clsjsv","_cls_s","_cls_v","pid","sn","cfg","pv","cls_e"],e.reportUseWorker=!1,e.reportInitializeWorkerAsBlob=!1,e.interceptAjax=!0,e.ajaxHashRecurrentUrls=!1,e.ajaxRecordMetadata="always",e.domNewPageTriggers=[],e.domNewPageAjaxTriggers=[],e.domStartAfter=1e4,e.snapshotImmediatePages=[],e.minVisibleElementOpacity=.5,e.domExpireSnapshotAfter=114e4,e.domUpdateEveryWsMsgIn=-1,e.domForceUpdateOnClick=!1,e.domCompress=!0,e.domRecordCssRules=!0,e.domRecordCssProps=!1,e.domCompressRepetitiveElements=[],e.recordAnimation=!1,e.domRecordEnabled=!0,e.recordShadowDom=!1,e.recordNonNativeShadowAsElementContainer=!1,e.domOmitInvisibleElements=!1,e.resourcesRecordEnabled=!1,e.resourceRecordCssOnly=!0,e.resourcesRecordCount=1,e.resourcesRecordChance=.5,e.electResourcesOnClear=!0,e.resourcesRecordAllowCors=!1,e.resourceIgnoreWhenUrlContains=[],e.resourceTimingRecordEnabled=!1,e.resourceTimingRecordEnabledByChance=.01,e.versionResources=!1,e.versionResourcesEnabledByChance=1e-4,e.resourceTimingRecordAjax=!0,e.resourceBufferCheckTime=5e3,e.maxResourcesBeforeFlush=140,e.resourceBufferIncreaseBy=100,e.isCheckResourceBuffer=!0,e.webVitalsReportTimeout=1e4,e.clientAttributesEnabled=!1,e.clientAttributeFuseWaitTime=-1,e.clientAttributeMaxMutations=-1,e.clientAttributeMaxLength=30,e.semiDomEnabled=!0,e.domIgnoredFormElements=["__VIEWSTATE"],e.domIncludeSelectorOnUpdate=!0,e.domIncludeCSSSelector=!1,e.domWhitelistMaskContentById=[],e.domBlacklistMaskContentById=[],e.domOmitByClass=[],e.domOmitById=["gb-main-overlay","gbOverlay"],e.domOmitObjectElementsByType=[],e.tagsToCheckLength=[],e.tagMaxLength=-1,e.domIgnoreChangesById=[],e.domIgnoreChangesByClass=[],e.domWhitelistMaskContentByClass=[],e.domBlacklistMaskContentByClass=[],e.domMaskedAttributes=[],e.domMaskDataAttributes=!1,e.domMaskAttributesByTag=[],e.domMaskIgnoreAttribute="",e.domWhitelistMaskSimpleSelector=[],e.domBlacklistMaskSimpleSelector=[],e.domMaskingMode=L.censorMode.BlackList,e.domEncryptById=[],e.domEncryptByClass=[],e.domPartialWhenLocationContains=[],e.domFilterAttributes=[],e.domIgnoreAttributes=[],e.cordovaSdkReporting=!1,e.domKeepComments=!1,e.domOmitAfterUnload=!1,e.domIE11ForceMutationObserver=!1,e.domForceIEMutationEventsHandler=!1,e.iframesRecordEnabled=!0,e.framesetRecordEnabled=!1,e.htmlObjectRecordEnabled=!1,e.iframesDebugEnabled=!1,e.iframesAutoInject=!1,e.injectIframesAboutBlank=!1,e.iframesAutoInjectMode=L.iframesAutoInjectMode.BlackList,e.blackoutIdleReporting=!1,e.domTamperingDetectionEnabled=!1,e.domTamperingIgnorePages=[],e.domTamperingIgnorableTags=["TITLE","STYLE","SCRIPT"],e.domTamperingGraceTime=2e3,e.iframesHandshakeTimeout=2e3,e.iframesSkipHidden=!0,e.domFormValidationTracking=!0,e.domFormValidationIgnorableText=["characters left","characters remaining"],e.domFormValidationIgnorableTags=[],e.domFormValidationIgnorePagesPredicates=[],e.domFormValidationCheckUrls=[],e.domFormValidationTitlesToCheck=[],e.domFormAnalysisReporting=!1,e.html5FormValidation=!0,e.domThrottleChanges=!1,e.domThrottleChangesIE11Only=!0,e.domPreciseStyleSheetCloning=!1,e.domRecordStyleAttributes=!1,e.collectStruggles=!0,e.collectFormStruggles=!0,e.struggleMaxLongFocusTime=3e4,e.struggleRageClickInterval=3e3,e.struggleRageClickMinCount=5,e.struggleRageClickIgnoreBySelector=[],e.struggleDeadClickIgnoreBySelector=[],e.struggleDeadClickIgnoreByTagNames=[],e.struggleCaptureAjaxErrors=!0,e.forceRenderingFixForUA=Q,e.domFuseDuration=-1,e.domFuseElementCount=-1,e.domFuseDurationIE=800,e.domFuseElementCountIE=-1,e.domFormValidationAdditionalTagNames=[],e.removeBase64ImageDataTagNames=[],e.delayDomMutationEvent=-1,e.startMutationObserverOnLoad=!0,e.handleAttributeMutationsAsChunks=-1,e.ignoreMutationsOnNotAttachedElements=!0,e.enableAdoptedCss=!1,e.adoptedStylesRemoveFontsFace=!1,e.checkForHtmlOnly=!0,e.allowWaitForElementsUrls=[],e.snapshotWaitForElement=[],e.snapshotWaitForElementMustShown=!0,e.snapshotAsync=!1,e.visitorAsyncMaxChunkTime=50,e.delaySnapshotAfterElementFound=-1,e.waitForElementTime=1e3,e.minAreaTocountElementAsShown=200,e.checkVisibility=!0,e.reTakeSnapshotAfterTime=5e3,e.enableEncodeSnapshotReferrer=!0,e.setSelectorToAttributes=!1,e.isDetectorDom=!0,e.reportLastPageEventsViaBeaconAPI=!1,e.recordClipboardEvents=!0,e.recordClipboardContent=!0,e.clipboardMaxValue=30,e.clipboardMaxDuration=1e4,e.struggleUncompletedFormMinFields=3,e.reinstateNativeMutationObserver=!1}function fn(e){return function(){return"includes"===e&&"string"==typeof arguments[0]?-1<arguments[0].indexOf(arguments[1]):Array.prototype[e].apply(arguments[0],Array.prototype.slice.call(arguments,1))}}function ln(u){var r;function t(e){return null!==e&&E.isNumber(e.width)&&E.isNumber(e.height)?e.width+"x"+e.height:"x"}function i(e){return e?"1":"0"}function o(e){return Z.Base64.encode(e)}function c(e){if(E.isNumber(e))return Z.encodeAsBase(e,L.encoding.numberBase)}function a(e){if(E.isString(e))return c(Z.hashcode(e))}function n(e){if(!E.isNumber(e.x)||!E.isNumber(e.y))return e.x,void e.y;var n=Math.round(e.x),e=Math.round(e.y);return c(n)+"_"+c(e)}function s(e,n,t,r){E.isString(t)&&(r?e.push(Z.Base64.encode(n)+"_"+Z.Base64.encode(t)):e.push(n+"_"+t))}function f(e,n,t){E.isNumber(t)&&e.push(n+"_"+c(t))}function l(e,n){var t,r=[];for(t in n)void 0!==L.dictionary.performanceTimingEvents[t]&&f(r,L.dictionary.encodePerformanceTimingMeasurement(t),n[t]);return r.join(e)}return{setBeaconEncoder:function(e){r=e},encodePageDetails:function(e){var n=[];return e.frame&&s(n,"t",e.frame?"f":"p"),s(n,"u",a(e.urlWithoutHash)),e.hash&&s(n,"h",Z.Base64.encode(e.hash)),e.windowSize&&s(n,"s",t(e.windowSize)),e.screenSize&&s(n,"sc",t(e.screenSize)),e.referrerWithoutHash&&s(n,"r",a(e.referrerWithoutHash)),L.reportBase64URLs&&s(n,"ub",Z.Base64.encode(e.url)),n.join("*")},encodePageSnapshotData:function(e){var n="h",t=r.encodeSnapshotHtml(e.html);return t.compressed?n="hh":t.plain&&(n="p"),["sn_"+e.seq,"r_"+Z.Base64.encode(e.referrer),"c_"+Z.Base64.encode(e.cookie),"ch_"+e.charset,n+"_"+t.encoded].join("*")},encodeResize:function(e){var n=[];return s(n,"ws",t(e.window)),s(n,"sc",t(e.screen)),n.join("*")},encodeScrollReach:function(e){if(!E.isNumber(e.top)||!E.isNumber(e.height)||"boolean"!=typeof e.isInfinite||!E.isNumber(e.innerHeight))return e.top,e.height,void e.innerHeight;var n=Math.round(e.top),t=Math.round(e.height),r=Math.round(e.innerHeight);return c(n)+"_"+c(t)+"_"+i(e.isInfinite)+"_"+c(r)},encodeTimings:function(e){return E.reduce(e,function(e,n,t){t="u_"+t+"*t_"+n.total;return E.isNumber(n.rendering)&&(t+="*r_"+n.rendering),E.isNumber(n.dns)&&(t+="*d_"+n.dns),E.isNumber(n.timeToFirstBuffer)&&(t+="*f_"+n.timeToFirstBuffer),E.isNumber(n.downloadTime)&&(t+="*w_"+n.downloadTime),E.isNumber(n.originalRenderTime)&&(t+="*o_"+n.originalRenderTime),E.isString(e)&&0<e.length?e+"**"+t:t},"")},encodeThirdPartyAttributes:function(e){for(var n,t="",r=[],i=0;i<e.length;i++){for(n in t+=Z.Base64.encode(e[i].urlMatcher),e[i].valueMap)e[i].valueMap.hasOwnProperty(n)&&(t+="_"+Z.Base64.encode(n)+"_"+Z.Base64.encode(e[i].valueMap[n]));r.push(t),t=""}return r.join("*")},encodeABTesting:function(e){for(var n=[],t=0;t<e.length;t++){var r="";e[t].variantId&&(r+="vi_"+Z.Base64.encode(e[t].variantId)+"_"),e[t].variantName&&(r+="vn_"+Z.Base64.encode(e[t].variantName)+"_"),e[t].experimentId&&(r+="ei_"+Z.Base64.encode(e[t].experimentId)+"_"),e[t].experimentName&&(r+="en_"+Z.Base64.encode(e[t].experimentName)),n.push(r)}return n.join("*")},encodeJson:function(e){e=JSON.stringify(e),e=Z.pako.gzip(e);return Z.Base64.bytesToBase64(e)},encodeStruggles:function(e){e=JSON.stringify(e);return Z.Base64.encode(e)},encodePerformanceTimings:function(e){var n=e.perf.timing,t=e.perf.navigation,e=e.browserTime,n=[l("*",n)];return t&&E.isNumber(t.type)&&f(n,"nt",t.type),t&&E.isNumber(t.redirectCount)&&f(n,"rc",t.redirectCount),e&&f(n,"bt",e),n.join("*")},encodeAjaxRequest:function(e){var n,t,r=[];return s(r,"sn",c(e.sn||0)),e.method&&s(r,"m",e.method),u.ajaxHashRecurrentUrls&&"function"==typeof e.ajaxUrls.get?(n=a(e.url),t=e.ajaxUrls.get(n),E.isUndefined(t)&&(e.ajaxUrls.set(n,e.url),s(r,"u",Z.Base64.encode(e.url))),s(r,"uh",n)):s(r,"u",Z.Base64.encode(e.url)),e.downTime?s(r,"d",c(e.downTime)):e.startedAt&&e.endedAt&&s(r,"d",c(e.endedAt-e.startedAt)),s(r,"s",c(e.status)),e.statusText&&s(r,"st",Z.Base64.encode(e.statusText)),e.requestHeaders&&s(r,"rqh",Z.Base64.encode(e.requestHeaders)),e.requestContent&&s(r,"rqc",Z.Base64.encode(e.requestContent)),e.responseHeaders&&s(r,"rh",Z.Base64.encode(e.responseHeaders)),e.responseContent&&s(r,"rc",(e.responseCompressed?Z.Base64.bytesToBase64:Z.Base64.encode)(e.responseContent)),e.resContentType&&s(r,"rct",Z.Base64.encode(e.resContentType)),e.reqContentType&&s(r,"rqct",Z.Base64.encode(e.reqContentType)),e.contentLength&&s(r,"rcl",c(parseInt(e.contentLength))),e.requestLength&&s(r,"rqcl",c(parseInt(e.requestLength))),e.ttfb&&s(r,"ttfb",c(e.ttfb)),e.downTime&&s(r,"dt",c(e.downTime)),s(r,"a",i(e.aborted)),s(r,"api",e.api),r.join("*")},encodeResourceContent:function(e){var n=[];if(!E.isUndefined(e.url))return s(n,"u",Z.Base64.encode(e.url)),e.type&&0<e.type.length&&s(n,"t",Z.Base64.encode(e.type)),e.content&&0<e.content.length&&s(n,"dd",Z.Base64.bytesToBase64(e.content)),e.error&&0<e.error.length&&s(n,"er",Z.Base64.encode(e.error)),e.headers&&s(n,"h",Z.Base64.encode(JSON.stringify(e.headers))),n.join("*")},encodeKeyValue:function(e){var n=[];return s(n,"n",Z.Base64.encode(e.name)),s(n,"v",Z.Base64.encode(""+e.val)),n.join("*")},encodeSegmentChanged:function(e){var n=[];return e.type&&n.push("t_"+e.type),e.current&&n.push("c_"+Z.Base64.encode(e.current)),e.hint&&n.push("h_"+e.hint),e.last&&n.push("l_"+Z.Base64.encode(e.last)),e.lastDwell&&n.push("ld_"+c(e.lastDwell)),!e.lastLoadTime&&0!==e.lastLoadTime||n.push("ll_"+c(e.lastLoadTime)),n.join("*")},encodeKeyEvent:function(e){var n="";return e&&(e.unicode&&(n+=e.unicode),E.isUndefined(e.content)||(n+="_"+Z.Base64.encode(e.content))),n},encodeClickDetails:function(e){return n(e.start)+"*"+n(e.end)+"*"+c(e.duration)},encodeMouseMove:function(e){u.mmDebug&&(e.length,JSON.stringify(e));for(var n,t,r,i,o=[],a=0;a<e.length;a++)i=e[a],n=o,t=i.x,r=i.y,i=(i=i.t)||0,i=u.mmRecordTimes?"_"+c(i):"",t=Math.round(t),r=Math.round(r),n.push(c(t)+"_"+c(r)+i);return o.join("*")},encodeHoverEvent:function(e){var n=e.join(" ");return u.mhDebug&&e.length,n},encodeKVMap:function(e){var n,t=[];for(n in e)e.hasOwnProperty(n)&&s(t,n,e[n],!0);return t.join("*")},encodeNameKVMap:function(e){var n=e.val;if(!n||0===Object.keys(n).length)return"";var t,r,e=[Z.Base64.encode(e.name)],i=[];for(t in n)n.hasOwnProperty(t)&&(r=n[t],i.push(Z.Base64.encode(t)+"_"+o(r.toString())));return e.push(i.join("*")),e.join("**")},encodeNumber:c,encodeBoolean:i,encodeString:o,encodeCoordinate:function(e){if(!E.isNumber(e.x)||!E.isNumber(e.y))return e.x,void e.y;var n=Math.round(e.x),e=Math.round(e.y);return c(n)+"_"+c(e)},encodeCoordinate64:function(e){return Z.Base64.encode(n(e))},encodeHashCode:a,encodeNavigationTiming:l}}function dn(){}function hn(e,n){if(!e)return e;if("object"!=typeof e)return e;var t,r,i={};for(t in e)e.hasOwnProperty(t)&&"function"!=(r=typeof e[t])&&("object"!=r?i[t]=e[t]:null!==e[t]&&(e[t].addEventListener||e[t].attachEvent||e[t].hasOwnProperty&&(Array.isArray(e[t])?i[t]=e[t].map(hn):i[t]=hn(e[t],n))));return i}function vn(e,n,t,r){dn.call(this),this.pageId=r,this.timestamp=n,this.type=e,this.element=t,this.report=!0,this.shouldEncodeValue=!0,this.subPage=Z.decodeUri(Y.decodeUri,window.location.hash),this.referrer=Z.stripHash(Z.decodeUri(Y.decodeUri,window.location.href)),this.id=vn.prototype.nextId++,this.extraInfo={eventId:this.id}}function mn(e,n){dn.call(this),this.id=e,this.metadata=n,this.events=[]}function gn(t,n){function r(e,n){return(e?"1":"0")+(n?"1":"0")}var i=gn.INITIAL_COMPRESSION_FACTOR,o=(n=n||{compress:!0,forceBase64:!0}).compress||n.forceBase64?1.33:1,a=1;this.newPayload=function(){return new pn},this.encode=n.compress?function(e){if(0===e._updates.length)return"";var n=Z.arrayToJsonSafe(e._updates),e=Z.Base64.bytesToBase64(t.compress(n));return n=e.length/n.length,i=Math.max(n,gn.MINIMAL_COMPRESSION_FACTOR),"11"+e}:function(e){if(0===e._updates.length)return"";e=Z.arrayToJsonSafe(e._updates);return r(!1,n.forceBase64)+(n.forceBase64?Z.Base64.toBase64(e):e)},this.refForEvent=function(e){return""+a+++Z.hashcode(e.type+e.timestamp)},this.estimatedDomUpdateSize=function(e){return(e?JSON.stringify(e).length:0)*o*(n.compress?i:1)}}function pn(){this._updates=[]}function yn(r){return{compress:function(e){return Z.pako.gzip(e)},encodeTimestamp:function(e){e=e.timestamp;return E.isNumber(e)||(e=Z.currentTimestamp()),r.encodeNumber(e)},encodeEventType:function(e){return L.encodeEventTypes?L.dictionary.encodeEventType(e):e},encodeExtraInfo:function(e){var n=e.extraInfo;if(E.isUndefined(n))return"";for(var t,r,i,o,a=[],u=vn.prototype.extraInfoAttrs,c=0;c<u.length;c++){var s=u[c],f=n[s.name];E.isUndefined(f)||(t=a,r=s.encodeName,i=s.encodeFunc(f),o=s.encodeCode,E.isString(i)&&t.push(r+"."+o+"_"+i))}return a.join("*")},encodeDebugInfo:function(e){var n=e.debugInfo;if(E.isUndefined(n))return"-";function t(e,n,t){E.isUndefined(t)||e.push(n+"_"+t)}e=[];return t(e,"s",n.severity),t(e,"c",n.code),t(e,"i",n.count),n.msg&&n.count<=3&&t(e,"m",r.encodeString(n.msg)),e.join("*")}}}function bn(s,f,l,d,h,v){var u=(v=v||{}).base64UriEncoder||encodeURIComponent,m=new gn(d,{forceBase64:!0,compress:v.domCompress});this.name="FORM-URL",this.supportsCompression=!1,this.isCompressing=function(){return!1},this.visitXhr=function(e){e.setRequestHeader("Content-Type","application/x-www-form-urlencoded")},this.getContentType=function(){return"application/x-www-form-urlencoded"},this.encodeSnapshotHtml=function(e){return v.domCompress?{encoded:l.Base64.bytesToBase64(d.compress(e)),plain:!1,compressed:!0}:{encoded:l.Base64.encode(e),plain:!1,compressed:!1}},this.estimateBeaconSize=function(e){return e},this.encodeEvent=function(e,n,t){var r,i=f.encoding.delimiters.eventParts,o=d.encodeTimestamp(e),a=d.encodeEventType(e.type),u=g[p[e.type]],u=u?u(e.value):e.value;void 0===n&&(n=s.isUndefined(e.selectorExpression)||null==e.selectorExpression?f.encoding.rootSelector:e.selectorExpression),void 0===t&&(t=f.encoding.rootCssSelector);n=o+i+a+i+n;s.isString(u)?(h.stringIsEncrypted(u)?e.shouldEncodeValue=!1:r=e.shouldEncodeValue?f.encoding.valueEncodedPrefix:f.encoding.valueNotEncodedPrefix,c=e.shouldEncodeValue?l.Base64.encode(u):u,n+=r?i+r+c:i+c):n+=i+"-",s.isUndefined(e.extraInfo)?n+=i+"-":n+=i+d.encodeExtraInfo(e),v.reportDebugInfo&&!s.isUndefined(e.debugInfo)?n+=i+d.encodeDebugInfo(e):n+=i+"-";var c="";e.domSnapshot?(c=m.refForEvent(e),n+=i+f.encoding.domSnapshotRefPrefix+c):n+=i+"-",n+=encodeURIComponent(i+t),e.type,s.contains(["webSocketFrame","resourceContent","pageSnapshot"],e.type),0<e.subPage.length&&e.subPage;c={event:encodeURIComponent(n),domUpdate:e.domSnapshot,domUpdateRef:c};return c.length=c.event.length+m.estimatedDomUpdateSize(e.domSnapshot),c},this.encodeBeacon=function(e,n,t,r){for(var i=[],o=m.newPayload(),a=0;a<t.length;a++)i.push(t[a].event),t[a].domUpdate&&o.add(t[a].domUpdate,t[a].domUpdateRef);r="v="+e+(void 0!==n.referrer?"&r="+encodeURIComponent(n.referrer):"")+"&sn="+r+"&p="+n.pageId+(void 0!==n.segment?"&seg="+encodeURIComponent(n.segment):"")+(void 0!==n.subPage?"&sp="+encodeURIComponent(n.subPage):"")+(void 0!==n.pssn?"&pssn="+n.pssn:"")+"&e="+i.join(f.encoding.delimiters.events)+"&dom="+u(m.encode(o)),n=h.getKeyInfo();return n&&(r+="&key="+encodeURIComponent(n)),r}}function wn(o,a,u,c,s,f){var l=.25,d=new gn(c,{forceBase64:!1,compress:!(f=f||{}).compress&&f.domCompress});this.name="JSON",this.supportsCompression=!0,this.isCompressing=function(){return!0},this.visitXhr=function(e){f.corsSafelisted?e.setRequestHeader("Content-Type","text/plain"+(f.compress?"; charset="+wn.COMPRESSED_INDICATION_CHARSET:"")):(e.setRequestHeader("Content-Type","application/json"),f.compress&&e.setRequestHeader("Content-Encoding","gzip"))},this.getContentType=function(){return"application/json"},this.encodeSnapshotHtml=function(e){return!f.compress&&f.domCompress?{encoded:u.Base64.bytesToBase64(c.compress(e)),plain:!1,compressed:!0}:{encoded:e,plain:!0,compressed:!1}},this.estimateBeaconSize=function(e){return f.compress?e*l:e},this.encodeEvent=function(e,n,t){var r,i={timestamp:c.encodeTimestamp(e),type:""+c.encodeEventType(e.type)};void 0===n&&(n=o.isUndefined(e.selectorExpression)||null==e.selectorExpression?a.encoding.rootSelector:e.selectorExpression),i.selector=n,void 0===t&&(t=a.encoding.rootCssSelector),i.cssSelector=encodeURIComponent(t);t=g[p[e.type]],t=t?t(e.value):e.value;o.isString(t)?(s.stringIsEncrypted(t)?e.shouldEncodeValue=!1:r=e.shouldEncodeValue?a.encoding.valueEncodedPrefix:a.encoding.valueNotEncodedPrefix,t=e.shouldEncodeValue?u.Base64.encode(t):t,i.value=r?r+t:t):i.value="-",o.isUndefined(e.extraInfo)?i.extraInfo="-":i.extraInfo=c.encodeExtraInfo(e),f.reportDebugInfo&&!o.isUndefined(e.debugInfo)?i.debugInfo=c.encodeDebugInfo(e):i.debugInfo="-";t="";return e.domSnapshot?(t=d.refForEvent(e),i.domSnapshot=a.encoding.domSnapshotRefPrefix+t):i.domSnapshot="-",e.type,i.timestamp,i.type,0<e.subPage.length&&e.subPage,function(e){var n,t=0;for(n in e.event)"string"==typeof e.event[n]&&(t+=n.length+e.event[n].length+6);return e.length=t+2+d.estimatedDomUpdateSize(e.domUpdate),e}({event:i,domUpdate:e.domSnapshot,domUpdateRef:t})},this.encodeBeacon=function(e,n,t,r){for(var i=[],o=d.newPayload(),a=0;a<t.length;a++)i.push(t[a].event),t[a].domUpdate&&o.add(t[a].domUpdate,t[a].domUpdateRef);e={ver:e,sn:r,pageId:n.pageId,segment:n.segment,events:i,dom:d.encode(o)},r=s.getKeyInfo();r&&(e.key=r),n.referrer&&(e.referrer=n.referrer),void 0!==n.subPage&&0<n.subPage.length&&(e.subPage=n.subPage),void 0!==n.pssn&&(e.pssn=n.pssn);n=JSON.stringify(e);if(f.compress){e=c.compress(n);return l=Math.max(e.length/n.length,wn.MINIMAL_COMPRESSION_FACTOR),n.length,e.length,e}return n}}function En(e,n,t,r,i){var o,a=yn(e);function u(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}return o="json"===i.reportEncoding?new wn(E,L,Z,a,t,{reportDebugInfo:i.reportDebugInfo,compress:i.reportCompress,domCompress:i.domCompress,corsSafelisted:r&&i.reportCorsForceSafelistedHeaders}):(o=/SamsungBrowser\/7/gi.test(n.userAgent),new bn(E,L,Z,a,t,{reportDebugInfo:i.reportDebugInfo,domCompress:i.domCompress,base64UriEncoder:o?function(e){return e.replace(/\+|=|\//gi,u)}:encodeURIComponent})),e.setBeaconEncoder(o),o}function Cn(s,f){var l={incomingEventMessages:0};s[f]={state:"INIT",stats:l};var i,t,d={onBeaconDispatched:function(e,n){i.postMessage({type:"beaconSent",sn:e,encodedLength:n.length})},onBeaconResponse:function(e,n,t,r){i.postMessage({type:"onBeaconResponse",pageId:e,beaconData:n,success:t,requestStatus:r})},onWorkerReady:function(){i.postMessage({type:"ready"})},onNewConfig:function(e){i.postMessage({type:"newConfig",config:e})}},h=(t={},(i=s).addEventListener("message",function(e){var n=e.data,e=t[n.type];e&&e.apply(null,n.args)},!1),{on:function(e,n){t[e]=n}});h.on("init",function(e,n,t){g=ln(e);var r={getKeyInfo:function(){return t},stringIsEncrypted:function(e){return Z.startsWith(e,L.encryptionPrefix)}},i={on:function(){},once:function(){},off:function(){},emit:function(){}},o=new $n({on:function(){},once:function(){}},L.detectorVersion,e.reportAddUriParams,e.reportByPost),a=zn(self,!1,!1,!1),r=En(g,s.navigator,r,n,e),n=new ft({},d.onBeaconResponse),a=new Yt(r,o,a,logger,Z.gbBind(n.onReporterMessage,n),d.onNewConfig,e,i),u=new dt(a,n,r,s[f].stats,e),c=new Ct(i,r,a,u,!0,{track:function(){},untrack:function(){},packageEventSets:function(){}},d.onBeaconDispatched,e.reportMaxConcurrency,e.reportTimingBetweenBeacons);h.on("encodeAndDispatch",function(e,n,t){l.incomingEventMessages++;e=e.map(function(e){return mn.fromJSON(e)});c.encodeAndDispatch(e,n,t)}),h.on("restoreState",function(e,n){l.incomingEventMessages++,u.restoreState(e,n)}),h.on("updateQueryString",function(e){o.updateNativeCookies(e)}),h.on("confHashChange",function(e){o.setConfigurationHash(e)}),h.on("clseChange",function(e){o.setClse(e)}),s[f].state="READY",d.onWorkerReady()})}function Sn(){var a=[];this.add=function(e,n,t,r,i,o){this[i.toLowerCase()]={type:e,nullable:n,parser:t,name:i,required:o,validator:r},o&&a.push(i)},this.requiredFieldsMask=function(){for(var e={},n=0;n<a.length;n++)e[a[n]]=!0;return e}}function Tn(){this.errors=[],this.warnings=[]}function In(e,n,t,r,i){var a={performanceRecord:{value:null,prev:null},dom:{value:null,prev:null},recording:{value:null,prev:null}};if(void 0!==e){var o,u=n.get(r+".bychance.enabled"),c=n.get(r+".bychance.prev_th");return i&&(function(e){if(e){var n,t={d:"dom",p:"performanceRecord",r:"recording"};try{var r=e.split("_");if(r.length)for(n=0;n<r.length;++n){var i=r[n].split(":"),o=i[1].split("*");a[t[i[0]]].value="1"===o[0]?1:0,a[t[i[0]]].prev=o[1]}}catch(e){logger.error("## applyEnableByChances => can't parse by chances cookie:"+e.message)}}}(t.get("Bc")),u=a[r].value,c=a[r].prev),null===(u=c!==""+e?null:u)?(o=Math.random()<e,i?(a[r].value=o?"1":"0",a[r].prev=e,c="d:"+a.dom.value+"*"+a.dom.prev+"_p:"+a.performanceRecord.value+"*"+a.performanceRecord.prev+"_r:"+a.recording.value+"*"+a.recording.prev,t.set("Bc",c)):(n.set(r+".bychance.enabled",o),n.set(r+".bychance.prev_th",e))):o=i?!!u:"true"===u,o}}function kn(e,n,t){var r,i;for(r in t=t||function(e,n,t){return{key:e,value:n}},n)n.hasOwnProperty(r)&&(e[(i=t(r,n[r],e)).key]=i.value)}function xn(){for(var e=0;e<arguments.length;e++)if(arguments[e]&&arguments[e].length)return 1}function An(){return{validateSelector:function(n){try{return K.querySelector(n),!0}catch(e){return this.printErrorMsg("selector not valid"),void 0!==Le&&setTimeout(function(){Le.saveClsDebugErrorEvent("maskingConfiguration",Q,n)},0),!1}},printErrorMsg:function(e){console.error("[EyeView-403]: Error while processing configuration. Error cause: "+e)}}}function Mn(e){var n=e.msCrypto,o=e.msCrypto.subtle;this.executeEncryptionFlow=function(e,n,t,r){var i,e=o.importKey("spki",e,{name:"RSA-OAEP",hash:{name:"SHA-1"}},!1,["encrypt"]);e.onerror=function(e){r(e.message)},e.oncomplete=function(e){(i=o.encrypt({name:"RSA-OAEP",hash:{name:"SHA-1"}},e.target.result,n)).onerror=function(e){r(e.message)},i.oncomplete=function(e){e=e.target.result;t(e)}}},this.getRandomValues=function(e){return n.getRandomValues(e)}}function Rn(){function i(e){return new RegExp(e,"g")}function o(e,n){return ee.censorValueOf(n,0,e)}function n(e,n){for(var t=[],r=0;r<e.length;++r)e[r].type.toLowerCase()===n&&(e[r].replace?t.push({search:i(e[r].search),replace:e[r].replace}):t.push({search:i(e[r].search),replaceChar:e[r].replaceChar||"*"}));return t}this.jsonField=function(e){var o=n(e,"jsonfield");return function(e,n,t){for(var r=0;r<o.length;++r)if(o[r].search.test(e)){var i=n+"";return t&&(t.masked=!0),o[r].replace||ee.censorValueOf(i,0,o[r].replaceChar)}return n}},this.pattern=function(e){var r=n(e,"pattern");return function(e,n){for(var t=0;t<r.length;++t)e=r[t].replace?e.replace(r[t].search,r[t].replace):e.replace(r[t].search,Z.gbBind(o,null,r[t].replaceChar||"*")),n&&(n.masked=!0);return e}}}function Nn(r,t){var f="MASKING ERROR";t=Z.optionsWithDefaults(t,{requestRules:[],responseRules:[]});var l=!0,i=[],o={request:[],response:[]};function d(e){for(var n=0;n<i.length;++n)if(i[n](e))return 1}function h(e,n){for(var t=[],r=0;r<o[n].length;++r)o[n][r].predicate(e)&&t.push(o[n][r].transformations);return t}function a(e,n,t){try{e.push({predicate:n,transformations:{jsonField:r.jsonField(t),pattern:r.pattern(t)}})}catch(e){logger.error("Error while processing AJAX masking rule. Please check rules transformation configuration.",e),i.push(n)}}function v(e,n,t){e.masking&&(e.masking[n]=t)}this.init=function(e){try{for(var n=0;n<t.responseRules.length;++n)a(o.response,e.create(t.responseRules[n].predicate),t.responseRules[n].transformations);for(n=0;n<t.requestRules.length;++n)a(o.request,e.create(t.requestRules[n].predicate),t.requestRules[n].transformations)}catch(e){l=!1,logger.error("Error while initializing AJAX masking settings. Please check rules predicates configuration.",e)}},this.maskText=function(n,t,e){if(!e)return"";try{if(!l||d(n))return v(n,t,"bad-config"),f;var r=h(n,t);if(r.length){for(var i={},o=0;o<r.length;++o)e=r[o].pattern(e,i);i.masked&&v(n,t,"masked")}return e}catch(e){return v(n,t,"error"),logger.error("Error during textual ajax content masking.",e),f}},this.getJsonContent=function(n,t,e){if(!e)return"";try{if(!l||d(n))return n.masking&&v(n,t,"bad-config"),f;var r="string"==typeof e,i={},o=h(n,t);if(!o.length)return r?e:JSON.stringify(e);var a=r?JSON.parse(e):e,u=JSON.stringify(a,(c=i,s=o,function(e,n){for(var t=n,r=0;r<s.length;++r)t=s[r].jsonField(e,t,c);return t}));return i.masked&&v(n,t,"masked"),u}catch(e){return v(n,t,"error"),logger.error("Error during json ajax content masking.",e),f}var c,s}}function Dn(e){var n=e.crypto,i=n.subtle||n.webkitSubtle;this.executeEncryptionFlow=function(e,n,t,r){i.importKey("spki",e,{name:"RSA-OAEP",hash:"SHA-1"},!1,["encrypt"]).then(function(e){i.encrypt({name:"RSA-OAEP",hash:"SHA-1"},e,n).then(function(e){t(e)}).catch(function(e){r(e.message)})}).catch(function(e){r(e.message)})},this.getRandomValues=function(e){return n.getRandomValues(e)}}function On(r,i){r=r||{};var e,o=i.keysPrefix+"sid",a=function(){return e=e||i.sessionIdFunc()};function u(e){return i.keysPrefix+e}this.get=function(e){var n=a();if(!n)return Q;try{if(n===r[o])return r[u(e)]}catch(e){}return Q},this.set=function(e,n){var t=a();if(!t)return Q;try{return t!==r[o]&&function(){for(var e in r)0===e.indexOf(i.keysPrefix)&&delete r[e]}(),r[o]=t,r[u(e)]=n}catch(e){$.emit("clsDebug","error writing to storage, in BoundStorageAccessor. Exception message: "+e.message)}return Q},this.remove=function(e){var n=a();if(!n)return!0;try{if(n===r[o])return delete r[u(e)]}catch(e){}return!0}}function Ln(u,c,s){s=Z.optionsWithDefaults(s,{domainBy:"tld",tldSegmentCount:-1,enableSecureCookie:!0});var f,l={};function d(e,n,t,r){n=encodeURIComponent(e)+"="+(n+"").replace(/[^!#-+\--:<-\[\]-~]/g,encodeURIComponent);return n+=";path=/",n+=t,s.enableSecureCookie&&Z.isHTTPS(s.reportURI)&&(n+=";Secure",n+=";SameSite=None"),n+=r?";expires="+r.toUTCString():""}this.get=function(e){var n,t=l[e];return void 0===t&&(n=e,t=(n=new RegExp("[,; ]"+n+"=([^\\s,;]*)","gi").exec(";"+u.cookie))&&n[1]||null,l[e]=t),null===t?Q:t},this.set=function(e,n,t){if(l[e]=n,void 0!==f)u.cookie=d(e,n,f,t),-1===u.cookie.indexOf(e)&&-1===u.cookie.indexOf(n)&&(Z.isIE()?console.log("Failed to set cookie while using FQDN."):console.log("%c Failed to set cookie while using FQDN.","color: white; background: red"),c.emit("clsDebug","Failed to set cookie while using FQDN."));else{for(var r,i=!1,o=function(){if("fqdn"===s.domainBy)return[""];var e,n=[],t=u.location.host.split(":")[0]||"",r=t.split(".");if(r.length<2)return[""];if(2===r.length)return[t];if(2<=s.tldSegmentCount&&s.tldSegmentCount<=r.length)return["."+r.slice(-s.tldSegmentCount).join(".")];for(e=2;e<r.length;e++)n.push("."+r.slice(-e).join("."));return n}(),a=0;a<o.length;a++)if(r=o[a]?";domain="+o[a]:"",u.cookie=d(e,n,r,t),-1!==u.cookie.indexOf(e)&&-1!==u.cookie.indexOf(n)){f=r,o[a],i=!0;break}i||(Z.isIE()?console.log("Failed to set cookie, failed determining TLD for cookies, using FQDN. potential TLDs: "+o.toString()):console.log("%c Failed to set cookie, failed determining TLD for cookies, using FQDN. potential TLDs: "+o.toString(),"color: white; background: red"),c.emit("clsDebug","Failed to set cookie for potential domains: "+o.toString()+" trying FQDN"),f="")}}}function Fn(r){function e(e,n){var n=(e?"\\"+e.split("").join("\\"):"")+(n?"\\s":""),t=new RegExp("^["+n+"]*\\d[\\d*"+n+"]*$","mi");return function(e){return t.test(e)}}r=Z.optionsWithDefaults(r,{valueMaskByCategories:[],valueMaskingCharNumeric:"#",valueMaskingCharNumericLike:"#"});var i={numeric:{type:"numeric",test:e(!1,!1),maskingChar:r.valueMaskingCharNumeric||"#",byAttTest:{autocomplete:Z.immutableSet("tel-extension","tel-local","tel-area-code","tel-national","tel-country-code","bday-year","bday-month","bday-day","transaction-amount","postal-code","country","cc-exp-month","cc-exp-year"),type:Z.immutableSet("number","range")}},numericlike:{type:"numericLike",test:e("=-\\()/%$_#.",!0),maskingChar:r.valueMaskingCharNumericLike||"#",byAttTest:{autocomplete:Z.immutableSet("tel","bday","cc-exp"),type:Z.immutableSet("time","tel","month")}},badConfiguration:{type:"bad_Configuration",test:function(){return!0},maskingChar:"#",byAttTest:{autocomplete:null,type:null}}};return function(){for(var e=[],n=0;n<r.valueMaskByCategories.length;++n){var t=r.valueMaskByCategories[n].toLowerCase();i[t]?e.push(i[t]):e.push(i.badConfiguration)}return e}()}function _n(r){var i={doMask:!1};return function(e){for(var n=0;n<r.length;++n){var t=r[n];if(function(e,n){if(n.byAttTest)for(var t in n.byAttTest)if(n.byAttTest.hasOwnProperty(t)&&n.byAttTest[t][e.getAttribute(t)])return 1}(e,t)||t.test(e.value))return{doMask:!0,cause:t.type,maskingChar:t.maskingChar||"*"}}return i}}function Pn(e){var t=!1,r={INPUT:!0,SELECT:!0,TEXTAREA:!0};function i(e){for(;e.parentNode;)if("FORM"===(e=e.parentNode).tagName)return e;return e}return e.on("domMutation",function(e){var n=!1;"childList"===e.type&&t&&E.forEach(e.addedNodes,function(e){r[e.tagName]&&(n||i(e)._gbForceMasking)&&(n=!0,e._gbForceMasking=!0)})}),{markOwnerAndInputs:function(e,n){e._gbValuesToMask=n,t=!0;e=i(e);e._gbForceMasking=!0,function(e){for(var n=e.querySelectorAll("input, select, textarea"),t=0;t<n.length;++t)n[t]._gbForceMasking=!0}(e)}}}function Bn(e,n,t){this.maskingUtils=e,this.bundles=n,this.cb=t}function jn(e){for(var n,t=0;t<this.bundles.length;t++)if((n=this.bundles[t](e)).doMask)return n;return{}}function Un(e,n,t,r,i,a){function o(e,n,t){for(var r,i=[],o=0;o<e.length;o++)if(1===(i=e[o].split("*")).length)n.push(e[o]);else if(2===i.length||3===i.length)try{r=new RegExp("(^|\\s)"+i.join(".*")+"($|\\s)"),t.push(r)}catch(e){a.printErrorMsg("exception when creating a regular expression")}else a.printErrorMsg("more than two wildcards in string")}this.bus=e,this.maskedElementsAlreadyLogged={},this._censorValueOf=n.censorValueOf,this._isAvailable=n.isAvailable,this._envCensorMode=t,this._censorAttribute=r,this._valueCensorIdsWithoutwildcards=[],this._valueCensorClassesWithoutwildcards=[],this._regexpValueCensorIds=[],this._regexpValueCensorClasses=[],this._valueCensorSelectorsWithoutwildcards=[],this._options=i||{},this._options.valueCensorIds&&o(this._options.valueCensorIds,this._valueCensorIdsWithoutwildcards,this._regexpValueCensorIds),this._options.valueCensorClasses&&o(this._options.valueCensorClasses,this._valueCensorClassesWithoutwildcards,this._regexpValueCensorClasses),this._options.valueCensorSimpleSelectors&&function(e,n){var t;for(t=0;t<e.length;++t)a.validateSelector(e[t])&&n.push(e[t])}(this._options.valueCensorSimpleSelectors,this._valueCensorSelectorsWithoutwildcards),this._options.autoCensorPredicate=this._options.autoCensorPredicate||function(){return!1}}function Vn(e){var n=e[W];return n||(n=q(),e[W]=n),n}function Hn(e,n,t){for(var r,i=[],o=0;o<e.length;o++)if(1===(i=e[o].split("*")).length)n.push(e[o]);else if(2===i.length||3===i.length)try{r=new RegExp("(^|\\s)"+i.join(".*")+"($|\\s)"),t.push(r)}catch(e){An.printErrorMsg("exception when creating a regular expression")}else An.printErrorMsg("more than two wildcards in string")}function Wn(){this.readyState=XMLHttpRequest.UNSENT,this.status=Q,this._url=Q,this._contentType=Q,this.cls_own=!0,this.report_api="send_beacon"}function qn(){this.readyState=XMLHttpRequest.UNSENT,this.status=Q,this.xdr=new XDomainRequest,this.xdr.onprogress=function(){},this.xdr.ontimeout=function(){};var e=this;this.xdr.onload=function(){e.status=200,e.readyState=XMLHttpRequest.DONE,e.onreadystatechange&&e.onreadystatechange()},this.xdr.onerror=function(){e.status=400,e.readyState=XMLHttpRequest.DONE,e.onreadystatechange&&e.onreadystatechange()}}function zn(e,o,a,n){var t,r,u=!0,c=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}];void 0!==e.XDomainRequest&&/(msie 8\.0|msie 9\.0)/i.test(e.navigator.userAgent)&&c.unshift(function(){return new qn}),"undefined"!=typeof CordovaRequestAdapter&&n&&(t=new CordovaCookieAdapter(N),r=new CordovaContext(K,t),c.unshift(function(){return new CordovaRequestAdapter(r,t)}));function s(e){return(e=e()).cls_own=!0,e}var f=null;return{createXMLHTTPObject:function(e,n,t){if(t&&Wn.isSupported()&&Wn.canSend(n))return new Wn;if(!e&&o&&n&&Wn.isSupported()&&Wn.canSend(n))return u&&a?(u=!1,new XMLHttpRequest):new Wn;if(f)return s(f);for(var r,i=0;i<c.length;i++)try{return r=s(c[i]),f=c[i],r}catch(e){}return r}}}function Gn(e){this.size=0,this.limit=e,this._keymap={}}function Jn(n,u,t){var c=[],s=[];var e,f=(e=n.location||n.document.location,function(){return e.href});function r(){var e=f()||"",n=c.length;if(0!==n){if(c[n-1]!==e){var t=c[c.length-1],r=l(t),i=l(e),o=Jn.UrlType.FUlL_URL;2===r.length&&2===i.length&&r[0]===i[0]&&(o=Jn.UrlType.HASH_ONLY);var a=null;2<=n&&c[n-2]===e?(c.pop(),s.push(t),a=Jn.DirectionType.BACK):0<s.length&&s[s.length-1]===e?(s.pop(),c.push(e),a=Jn.DirectionType.FORWARD):(c.push(e),s=[]);i=o===Jn.UrlType.FUlL_URL?e:i[1],r=o===Jn.UrlType.FUlL_URL?t:r[1];return a=a,o=o,u.emit("navigation",{direction:a,urlType:o,fromUrl:r,toUrl:i}),1}}else c.push(e)}function l(e){e=(e||"").split("#");return[e[0],e[1]||""]}function i(n){var e;"function"==typeof t[n]&&(e=t[n],t[n]=function(){try{3<=arguments.length&&setTimeout(function(){r()},0)}catch(e){logger.error("error while intercepting history."+n+" method. error:"+e)}return e.apply(t,[].slice.call(arguments))})}try{i("pushState"),i("replaceState")}catch(e){logger.error("failed hooking native history manipulation methods.",e)}u.once("init:loaded",function(){var e=void 0!==n.onpopstate?"popstate":"hashchange";Z.addEventHandler(n,e,function(){r()}),"hashchange"!=e&&Z.isIE(n.navigator.userAgent)&&Z.addEventHandler(n,"hashchange",function(){r()}),r()}),this.printHistory=function(){for(var e=0;e<c.length;e++)console.log(" - "+e+" : "+c[e])}}function Xn(e,t,r){var i=r?function(e){for(var n=0;n<r.length;n++)if(-1!==e.indexOf(r[n]))return!0;return!1}:Xn.ALWAYS_FALSE,o=!1;function a(e,n){t.emit(e?Xn.EVENTS.BlackoutEnter:Xn.EVENTS.BlackoutLeave,n)}function n(e){var n;i(e)!==o&&(a(n=!o,e),o=n)}function u(){a(!0,e.top.location.href),o=!0}function c(){a(o=!1,e.top.location.href)}this.isUnderBlackout=function(){return o},t.once("init:loaded",function(){n(e.location.href)}),t.on("navigation",function(){n(e.location.href)}),t.on("local:forceBlackoutEnter",u),t.on("local:forceBlackoutLeave",c),this.forceBlackoutEnter=function(){u()},this.forceBlackoutLeave=function(){c()}}function Kn(e,n,t,r){this.severity=e,this.code=n,this.count=t,r&&(this.msg=r)}function Qn(s){var n={tilda:"_clstil",asterisks:"_clsast",space:"_clsspc"};function u(e){return!!s.noMetaTagInSelector&&(e.parentNode&&-1<e.parentNode.nodeName.indexOf("META"))}function f(e,n){if(h(e)&&!u(e))return n?L.encoding.rootSelector:e.nodeName;var t=c(e.nodeName,n),r=function(e){if(!e.parentNode)return null;var n=e.parentNode.childNodes;if(n.length<2)return null;for(var t=e.nodeName,r=[],i=0;i<n.length;i+=1)n[i].nodeName===t&&r.push(n[i]);if(r.length<2)return null;for(var o=0;o<r.length;o+=1)if(r[o]===e)return o;return null}(e);if(null!==r)return function(e,n,t){t||(e+=":eq");return e+"("+n+")"}(t,r,n);if(L.useClassesInSelectors){var i=Z.getClassList(e);if(0<i.length){for(var o=t,a=0;a<i.length;a++)o+="."+i[a];return o}}return t}function l(e,n,t){var r=Z.getElementId(e);return(r&&-1!==r.indexOf("~")||-1!==r.indexOf("*")||-1!==r.indexOf(" "))&&(r=i(r)),n?c(e.nodeName,t)+"#"+r:"#"+r}function d(e,n){var t=typeof n;"string"!=t&&"number"!=t||e.unshift(n)}function c(e,n){return n?L.dictionary.encodeNodeName(e):e}function h(e){var n=e.nodeName;return"HTML"===n||"BODY"===n||u(e)}function i(e){return e.replace(/~/g,n.tilda).replace(/\*/g,n.asterisks).replace(/ /g,n.space)}function v(e){for(var n=e.parentNode;null!==n;){if(void 0===n&&console.log("hasFormAncestor undefined node: ",e),"FORM"===n.nodeName)return 1;n=n.parentNode}}function m(e,n,t){n="["+n+"='"+e.getAttribute(n)+"']";return-1===n.indexOf("~")&&-1===n.indexOf("*")&&-1===n.indexOf(" ")||(n=i(n)),c(e.nodeName,t)+n}function g(e,n){if(0===s.noIdSelectorsForClassNames.length&&0===s.noIdSelectorsForIDs.length&&0===s.noIdSelectorsForAttrs.length)return 1;for(var t=Z.getClassList(e),r=0;r<s.noIdSelectorsForClassNames.length;r++)if(0<=E.indexOf(t,s.noIdSelectorsForClassNames[r]))return;for(r=0;r<s.noIdSelectorsForAttrs.length;r++)if(e.hasAttribute(s.noIdSelectorsForAttrs[r]))return;for(r=0;r<s.noIdSelectorsForIDs.length;r++){var i=s.noIdSelectorsForIDs[r];if(i&&0<=n.indexOf(i))return}return 1}this.getSelectorInfo=function(e,n,t){n=void 0!==n?n:L.encodeSelectors,t=t||{useId:!0};var r=s.useIdSelectors&&t.useId;if(null===e||E.isUndefined(e)||!Z.isElement(e))return{selector:L.encoding.rootSelector};if(e.name&&s.preferNamesInFormSelectors&&v(e))return{selector:m(e,"name",n)};if(r){var i=Z.getElementId(e);if(i&&!Z.isDuplicateElementId(i)&&g(e,i))return{selector:l(e,!0,n)}}if(e.name&&s.useNameInFormSelectors&&v(e))return{selector:m(e,"name",n)};if(t.identifyingAttribute&&e.hasAttribute(t.identifyingAttribute))return{selector:m(e,t.identifyingAttribute,n)};for(var o=[f(e,n)],a=e,u=n?"*":">";a.parentNode&&!h(a);)if(1===(a=a.parentNode).nodeType){var c=Z.getElementId(a);if(c&&r&&!Z.isDuplicateElementId(c)&&g(a,c))return d(o,l(a,!1)),{selector:o.join(u)};if(d(o,f(a,n)),a===parent)return{selector:o.join(u)}}return{selector:o.join(u)}}}function Yn(e){var o,r=e.createElement("div"),c=Element.prototype.matches||Element.prototype.msMatchesSelector||function(){return!1},a=(o=/([^>]*):eq\((\d+)\)/gi,function(e){for(var n,t=[],r=0,i=o.exec(e);null!==i;)i.index&&(n=u(e.substring(r,i.index)))&&t.push({selector:n,eqIndex:-1}),t.push({selector:u(i[1]),eqIndex:parseInt(i[2])}),r=i.index+i[0].length,i=o.exec(e);return r<e.length&&(n=u(e.substring(r)))&&t.push({selector:n,eqIndex:-1}),t});function u(e){return e.replace(/^[\s>]*|[\s>]*$/gi,"")}function f(e,n,t,r,i){if("function"!=typeof e.querySelector)return[];if(-1!==n.eqIndex){if(1===r){r=e.querySelectorAll(n.selector);return r[n.eqIndex]?[r[n.eqIndex]]:[]}for(var o=0,a=e&&e.nodeType===Node.DOCUMENT_NODE?[e.documentElement]:e.children,u=0;u<a.length;u++)if(c.call(a[u],n.selector)&&o++===n.eqIndex)return[a[u]];return[]}if(i&&t){t=e.querySelector(n.selector);return t?[t]:[]}return Array.prototype.slice.call(e.querySelectorAll(n.selector))}function s(e,n,t){for(var r,i,o,a,u=(n=n.slice()).length,c=[],s=[e];0<n.length;){for(r=n.shift(),o=[],i=0;i<s.length;i++){if(a=f(s[i],r,t,u,0===n.length),t&&0===r.length&&0<a.length)return[a[0]];o.push.apply(o,a)}c=s=o}return c}function l(e,n){return s(e,n,!1)}return{querySelector:function(e,n){var t,r,i=a(n);return t=n,r=i,(n=e)&&n.nodeType!==Node.ELEMENT_NODE||(1===r.length&&-1===r[0].eqIndex?!c.call(n,t):-1===l(Z.getRootNode(n),r).indexOf(n))?s(e,i,!0)[0]||null:e},matches:function(e,n){var t=a(n);return 1===t.length&&-1===t[0].eqIndex?c.call(e,n):-1!==l(e.ownerDocument,t).indexOf(e)},isValidSelector:function(e){if(!e)return!1;try{for(var n=a(e),t=0;t<n.length;t++)f(r,n[0],!0,n.length,!0);return 0<n.length}catch(e){return!1}}}}function $n(e,u,n,c){var s,f,l=Z.immutableSet.apply(null,n);function d(e,n,t,r){t?l[n]&&e.push(n+"="+t):r&&l[n]&&e.push(n)}u=encodeURIComponent(u),e.on("updateSafariQueryString",function(e){s=e}),e.once("plugin:updateSafariQueryString",function(e){s=e}),e.on("newRemoteConfig",function(e){f=e.hash}),this.apply=function(e,n,t,r){var i,o=[];if(d(o,"clsjsv",u),n&&(d(o,"_cls_s",n.sessionId),d(o,"_cls_v",n.visitorId),l.ref&&o.push("ref="+encodeURIComponent(n.referrer)),d(o,"_cls_subs",n.subSessionId),d(o,"pid",n.pageId),c&&d(o,"cls_e",n.integrationId)),d(o,"sn",t),c&&d(o,"cfg",f,!0),d(o,"pv","2"),r)for(i in r)r.hasOwnProperty(i)&&o.push(i+"="+r[i]);if(s&&s.length)for(var a=0;a<s.length;a++)o.push(s[a].key+"="+s[a].value);return o.length?e+(-1!==e.indexOf("?")?"&":"?")+o.join("&"):e},this.updateNativeCookies=function(e){s=e},this.setConfigurationHash=function(e){f=e},this.setClse=function(e){clse=e}}function Zn(t,n){function r(e){return n.keysPrefix+e}t=t||{},this.get=function(e){try{return t[r(e)]}catch(e){return Q}},this.set=function(e,n){try{return t[r(e)]=n}catch(e){return $.emit("clsDebug","error writing to local storage, in StorageAccessor. Exception message: "+e.message),Q}},this.remove=function(e){try{return delete t[r(e)]}catch(e){return Q}}}function et(o,e,a,n,t,u,r){n=n||{},u=E.isNumber(u)&&0<u?u:1825;var c="cls_v_expr";function i(e){var n=e,t=!1,r=!1,i=!1;if(n)n!==a.get(L.cookies.visitor)&&(i=r=!0);else if(n=a.get(L.cookies.visitor)){if(!(e=(e=o.get(c))&&parseInt(e))||e!==u){r=i=!0;try{o.set(c,u)}catch(e){logger.error("Error while setting _cls_v expiration date. Exception: "+e.message,e)}}}else r=t=!0,n=Z.uuid();return r&&a.set(L.cookies.visitor,n,Z.dateFromNow(24*u*60*60*1e3)),{isNew:t,visitorId:n,valueChanged:i}}var s={};t||(g=i(n.visitorId),s.visitorId=g.visitorId,s.changed=g.valueChanged);var f,l,d,h,v,m,g=(f=t&&!r,l=n.sessionId,d=g&&g.isNew,m=v=!1,f?(h=Z.uuid()+":"+(d?"0":"1"),m=v=!0):(h=l)?h!==a.get(L.cookies.session)&&(m=v=!0):(h=a.get(L.cookies.session))||(h=Z.uuid()+":"+(d?"0":"1"),v=!0),v&&(a.set(L.cookies.session,h),e.emit("newSessionSet")),{sessionId:h,valueChanged:m,isExist:!v});return s.sessionId=g.sessionId,s.isSessionIdExist=g.isExist,s.changed=s.changed||g.valueChanged,s}function nt(e,n,t){var r=E.isNumber(e)&&E.isNumber(n);return r||Oe.setErrorOnEvent(state.currentlyEncodedPageEvent,Oe.types.WINDOW_SIZE_NOT_VALID_ERR,"Non valid values for window size for "+t+": x="+e+" y="+n),r?{width:e,height:n}:null}function tt(e){var n=Z.getClassList(e);if(n)for(var t=0;t<n.length;t++)if(Z.startsWith(n[t],Pe.byClassPrefix))return"."+n[t];return Q}function rt(e,n,t){this.url=n,this.timestamp=t,this.type=e}function it(e,n){this.x=e,this.y=n}function ot(e,i){e=e||{};var o=Z.immutableSet("password","text","number","file","url","search","email","date","time","tel","range","month","week","datetime","datetime-local","color","radio");return e.extractElementValue=function(e,n){var t=n.nodeName;if("INPUT"===t){var r=n.type;if(o[r])return i.censor(n);if("checkbox"===r)return n.checked?"true":"false"}else{if("TEXTAREA"===t)return i.censor(n);if("SELECT"===t){t=n.options;if(!E.isUndefined(t)&&"number"==typeof t.length&&0<t.length){if(!E.isUndefined(n.multiple)&&n.multiple)return"["+function(e){for(var n=[],t=0;t<e.length;t++){var r=e[t];r.selected&&n.push(i.censor(r,!0))}return n}(t).join(",")+"]";if(!E.isUndefined(n.selectedIndex)&&!E.isUndefined(t[n.selectedIndex]))return i.censor(t[n.selectedIndex],!0)}}}},e.extractElementSource=function(e,n){n=n.src||n.href;return E.isUndefined(n)||null==n?void 0:n},e.extractLocationHash=function(e,n){return Z.getLocationUrlSplitByHash().hash},e.extractScrollValue=function(e,n){if("#document"!==n.nodeName)return new it(n.scrollLeft,n.scrollTop);n=Z.getScrollTopLeft();return new it(n.left,n.top)},e.extractScrollReach=function(e,n){if("#document"===n.nodeName)return{top:K.documentElement.scrollTop,height:K.documentElement.scrollHeight,domElementsCount:K.getElementsByTagName("*").length,innerHeight:window.innerHeight}},e.extractMouseMoveValue=function(e,n){return[Z.getCoordinate(e)]},e}function at(e){if("object"==typeof console)for(var n in e)!function(n,t){var r;"function"==typeof console[n]&&(r=console[n],console[n]=function(){var e=Array.prototype.slice.call(arguments);r.apply(console,e),t(e,n)})}(n,e[n])}function ut(r){var i=null;this.setNext=function(e){i=e},this.handle=function(e,n,t){r&&t&&(e.events=Be.truncateEventsForUnload(e.events)),i.handle(e,n,t)}}function ct(i){var r=null;this.setNext=function(e){r=e},this.handle=function(e,n,t){!function(e,n){if(n&&i)for(var t=e.events,r=0;r<t.length;r++)t[r].domSnapshot&&delete t[r].domSnapshot}(e,t),r.handle(e,n,t)}}function st(c){c=c||5e4;var r=null,s={},f={};this.setNext=function(e){r=e},this.handle=function(e,n,t){!function(e,n){var t,r,i,o,a=e.encodedEvents,u=e.metadata.pageId;for(s[u]=s[u]||1,t=0;t<a.length;t++)o=(r=a[t]).length+L.encoding.delimiters.events.length,(!i||i.estimatedEncodedLength+o>c)&&(i&&(i.endIndex=t),i={startIndex:t,metadata:e.metadata,encodedEvents:[],eventSetId:e.id,estimatedEncodedLength:0,sn:s[u]},f[u]&&(i.storage=!0),s[u]++,n.push(i)),i.encodedEvents.push(r),i.estimatedEncodedLength+=o;i&&(i.endIndex=t)}(e,n),r.handle(e,n,t)},this.onRestoreState=function(e,n){Z.assign(s,e),Z.assign(f,n)}}function ft(i,o){var r=null;this.setNext=function(e){r=e},this.handle=function(e,n,t){!function(e,n){for(var t=e.metadata.pageId,r=0;r<n.length;r++)i[t]=i[t]||{},i[t][n[r].sn]={startIndex:n[r].startIndex,endIndex:n[r].endIndex,eventSetId:n[r].eventSetId,sn:n[r].sn}}(e,n),r.handle(e,n,t)},this.onReporterMessage=function(e,n,t,r){t?i[n]&&i[n][e]&&(o(n,i[n][e],t),delete i[n][e]):o(n,i[n][e],t,r)}}function lt(c,s){var f,l=null;this.setNext=function(e){l=e},this.handle=function(e,n,t){for(var r,i,o,a=[],u=0;u<e.events.length;u++)r=(o=e.events[u]).selectorExpression||L.encoding.rootSelector,i=o.cssSelector||L.encoding.rootSelector,(f=function(n,e,t){try{return c.encodeEvent(n,e,t)}catch(e){logger.error("ERROR: while encoding event: "+n.type+" . Exception: ",e.stack||e.message),s&&(s.encodingErrors=s.encodingErrors||[],s.encodingErrors.length<100&&s.encodingErrors.push(e.message))}}(o,r,i))&&a.push(f);e.encodedEvents=a,l.handle(e,n,t)}}function dt(e,n,t,r,i){for(var o=new st(e.config.maxReportSize),a=[new ut(i.truncateEventsWithUnload),new ct(i.domOmitAfterUnload),new lt(t,r),o,n,new mt],u=0;u<a.length;u++)a[u].setNext(a[u+1]);this.handle=function(e,n){for(var t=[],r=0;r<e.length;r++)a[0].handle(e[r],t,n);return t},this.restoreState=function(e,n){o.onRestoreState(e,n)}}function ht(t,e,n,r,i){var o={};function a(e){e.data&&o[e.data.name]&&o[e.data.name](e.data.data)}function u(e,n){o[e]=n}function c(e,n){t.postMessage({name:e,data:n||{}})}function s(e){c("GBX_EventLog",e.toJSON())}t.addEventListener("message",a,!1),u("GBX_Inspection",function(){e.extensionInspectMode=!0}),u("GBX_StopInspection",function(){e.extensionInspectMode=!1}),this.initialize=function(){K.querySelector("meta[name='gb-extension']")&&(n.on("extensionEvent",s,null,-1),c("GBD_initData",{detectorConfig:i,version:e.version}))},this.removeListener=function(){t.removeEventListener("message",a,!1)}}function vt(t,r){var i=null;this.setNext=function(e){i=e},this.handle=function(e,n){r&&r.extensionInspectMode||(t.emit("extensionEvent",e.event),i.handle(e,n))},this.onPipelineTick=function(){}}function mt(){this.setNext=function(){},this.handle=function(){},this.onPipelineTick=function(){}}function gt(e){var i=null,o=Q,a=Q,n=0,u=[];function t(){a=o=Q,u=[]}function c(e){return new mn(++n,e)}e.on("recordingStopped",function(){t()}),e.on("session:setSessionId",function(n){u.length&&u.map(function(e){e.metadata&&e.metadata.sessionId&&(e.metadata.sessionId=n)})}),this.setNext=function(e){i=e},this.handle=function(e,n){var t,r;E.contains(L.nobelEventTypes,e.event.type)?((r=c(e.metadata)).events.push(e.event),u.push(r),o=Q):(o&&o.metadata===e.metadata||(o=c(e.metadata),u.push(o)),"scrollReach"===e.event.type&&a!==Q?(t=e.event,r=o.events[a],t.value.top>r.value.top&&(r.value=t.value)):("scrollReach"===e.event.type&&(a=o.events.length),o.events.push(e.event))),i.handle(e,n)},this.pull=function(){var e=u;return t(),e},this.onPipelineTick=function(){}}function pt(e,t){var r,n,i,o=null;function a(){Z.currentTimestamp()-n<Y.maxTimeForIdleEvent&&e.emit("reporter:idle",{idleBaseTime:n,latestEventTime:r})}n=r=Z.currentTimestamp(),-1!==t&&(i=setInterval(a,t)),this.setNext=function(e){o=e},this.handle=function(e,n){-1!==t&&(clearInterval(i),i=setInterval(a,t),r=Z.currentTimestamp()),o.handle(e,n)},this.onPipelineTick=function(){}}function yt(e,n){var r,i={},o=!1;function a(){return{sessionId:i.sessionId,subSessionId:i.subSessionId,visitorId:i.visitorId,pageId:i.pageId,pssn:i.pssn,referrer:i.referrer,subPage:i.subPage,segment:i.segment,reportURI:n,integrationId:i.integrationId}}e.once("init:preloaded",function(e){(i={}).sessionId=e.sessionId,i.visitorId=e.visitorId,i.pageId=e.pageId}),e.on("session:new",function(e){(i={}).sessionId=e.sessionId,i.visitorId=e.visitorId,i.pageId=e.pageId}),e.on("session:newSubSessionId",function(e){(i=a()).pssn=e.pageSnapshotSN,i.subSessionId=e.subSessionId}),e.on("pageSnapshot:report",function(e){(i=a()).pssn=e.seq}),e.on("session:setSessionId",function(e){(i=a()).sessionId=e}),$.on("remoteClseConf",function(e){(i=a()).integrationId=e}),$.on("newSessionSet",function(){(i=a()).integrationId=Q}),$.on("parentWindowInfo",function(e){e&&((i=a()).sessionId=e.sessionId,i.visitorId=e.visitorId)}),this.setNext=function(e){r=e},this.handle=function(e,n){var t=E.contains(L.nobelEventTypes,e.event.type);(o||t||i.referrer!==e.event.referrer||i.subPage!==e.event.subPage||i.segment!==e.event.segment)&&(o=t?!0:o&&!1,(i=a()).referrer="about:blank"===e.event.referrer?"https://www.aboutblankiframe.com":e.event.referrer,i.subPage=e.event.subPage,i.segment=e.event.segment),e.metadata=i,r&&r.handle(e,n)},this.onPipelineTick=function(){}}function bt(r){var i,o,a=null,u=!1,c=Z.immutableSet("mousemove","resize","scroll");this.setNext=function(e){a=e},this.handle=function(e,n){var t=r(o,i,e.event);o=i,i=e.event,!t||e.event.domSnapshot&&e.event.domSnapshot.domChanges?(o&&c[o.type]&&u&&(u=!1,a.handle({event:o},n)),a.handle(e,n)):u=!0},this.onPipelineTick=function(e){u&&100<Z.currentTimestamp()-i.timestamp&&(u=!1,a.handle({event:i},e),i=o=Q)}}function wt(e,n,t){var r,i,o,a,u,c,s,f,l,d,h,v,m,g,p,y,b,w,E=null,C=Z.compositeFunctionBuilder().add(t.domRecordEnabled?(m=Le,g=t,p=!1,y=-1,b=Z.immutableSet.apply(null,L.snapshotApplicableEventType),w=Z.immutableSet("pageUpdate","mousedown","touchstart","drag","keydown","unload"),function(e){return-1!==g.domExpireSnapshotAfter&&"pageSnapshot"!==e.type&&-1!==y&&e.timestamp-y>g.domExpireSnapshotAfter&&(I().reset(),m.useCurrentTimeForPagesnapshot=!0),(p=p||w[e.type])&&(b[e.type]||"keydown"===e.type&&e.value&&(13===e.value.unicode||9===e.value.unicode))&&(e.domSnapshot=I().getDomSnapshot()),"pageSnapshot"!==e.type&&(y=e.timestamp),!("pageUpdate"===e.type&&!e.domSnapshot)&&!I().getDomMasker().isDomMasked(e.element,We.SELF_OR_ANY_PARENT,qe.OMIT)}):Q).add((h=vn.prototype.SELECTOR_ACTION_COUNT,v={},function(e){var n;return e.selectorExpression&&(void 0===v[e.selectorExpression]&&(v[e.selectorExpression]=0),n=++v[e.selectorExpression],e.setExtraInfo(h,n)),!0})).add((o={},a={},u={},c={},d=l=f=!(s={}),(n=n).on("beacon:sending",function(e){o[e]=!0}),n.on("beacon:sent",function(e){delete o[e]}),n.on("beacon:storageAdded",function(e){a[e]=!0}),n.on("beacon:storageRemoved",function(e){delete a[e]}),n.on("beacon:failed",function(e){s[e.sn]=e.status}),n.on("beacon:storageFlushFail",function(e){u[e]=!0}),n.on("beacon:sizeExceed",function(e){c[e]=!0}),n.on("beacon:sendingFromStorage",function(){f=!0}),n.on("beacon:failedSendingFromStorage",function(){l=!0}),n.on("devToolsVisibilityChanged",function(e){i=e.size}),n.on("worker:init",function(e){d=!!e}),function(e){return"unload"===e.type&&(S(e,o,vn.prototype.DEBUG_UNCONFIRMED_BEACONS),S(e,a,vn.prototype.DEBUG_STORAGE_PENDING),S(e,u,vn.prototype.FAILED_STORAGE_FLUSH_BEACONS),S(e,c,vn.prototype.STORAGE_SIZE_EXCEED),T(e,s,vn.prototype.RETRIED),f&&e.setExtraInfo(vn.prototype.FAILED_SEND_FROM_STORAGE,!0),l&&e.setExtraInfo(vn.prototype.SENDING_FROM_STORAGE,!0),i&&e.setExtraInfo(vn.prototype.DEVTOOLS_VALUES,i),e.setExtraInfo(vn.prototype.USING_WORKER,d)),!0})).add((r=Le.logicalSegmentTracker,function(){return r.onBeforeEmittingPageEvent(),!0})).buildBooleanAnd();function S(e,n,t){n=Object.keys(n);n.length&&e.setExtraInfo(t,n.join(","))}function T(e,n,t){var r=Object.keys(n);r.length&&(function(e,n){for(var t=0;t<e.length;t++)e[t]="sn_"+e[t]+"_status_"+n[e[t]]}(r,n),e.setExtraInfo(t,r.join(",")))}function I(){return m.plugins.domRecordingPlugin}this.setNext=function(e){E=e},this.handle=function(e,n){C(e.event)&&E.handle(e,n)},this.onPipelineTick=function(){}}function Et(e,n,t,r,i){for(var o={stats:r},a=[new bt(Z.gbBind(Be.diluteEvents,Be)),new wt(0,n,i),new yt(n,i.reportURI),new vt(n,Le),new pt(n,i.idleEventTimeInterval),t,new mt],u=0;u<a.length;u++)a[u].setNext(a[u+1]);setInterval(function(){for(var e=0;e<a.length;e++)a[e].onPipelineTick(o)},5e3),n.on("saveEvent",function(e){e={event:e};try{a[0].handle(e,o),"mousedown"===e.event.type&&i.domForceUpdateOnClick&&setTimeout(function(){n.emit("pageUpdate")},100)}catch(e){logger.error("Failed handling page event'. Error: "+e.message,e)}})}function Ct(o,a,u,c,s,e,f,l,d){var h,v=[];function m(e,n){var t,r,i=(new Date).getTime();-1!==d&&h&&i-h<d?(r=e,t=d-((t=i)-h),setTimeout(Z.gbBind(p,null,v.shift(),r),t),h+=d):(h=i,p(v.shift(),e,n))}function g(){v.length?m():l++}function p(e,n,t){var r,i;e&&(r=e.beacon,i=e.queryParams,r.storage&&(i.storage=!0),e=a.encodeBeacon(L.beaconVersion,r.metadata,r.encodedEvents,r.sn),n&&l--,o.emit("beacon:sending",r.sn),u.dispatch(e,r.metadata,r.sn,i,g,t),f(r.sn,e.length),r.sn,r.metadata.pageId,r.encodedEvents.length)}-1===l&&(l=1e3),o.on("removeFromStorage",e.untrack),this.restoreState=function(e,n){c.restoreState(e,n)},this.encodeAndDispatch=function(e,n,t,r){try{var i,o,a=s?{aid:n}:{},u=function(e,n){for(var t=[],r=0;r<e.length;r++)e[r].encodedEvents.length&&t.push({beacon:e[r],queryParams:n});return t}(c.handle(e,t),a);for(u.length&&(v=v.concat(u)),o=Math.min(v.length,l),i=0;i<o;i++)m(!0,r),o=Math.min(v.length,l)}catch(e){logger.error("Error while flushing beacons. message:",e.message)}}}function St(t,r){this.set=function(e,n){try{t[e]=r.encode(n)}catch(e){logger.error("error: failed writing to storage. message:",e.message),$.emit("clsDebug","error writing to storage, in StorageWriter. Exception message: "+e.message)}},this.getAndClear=function(e){try{var n=t[e];if(t.removeItem(e),n)return r.decode(n)}catch(e){logger.error("error: failed reading from storage: "+e.message,e)}return Q}}function Tt(t,n,r,o,a,i,u,c,s){var f,l,e=!1,d=!1,h="",v=-1,m=!(s.reportPreferSendBeaconAPI&&Wn.isSupported()),g={},p=!1,y=!1,b="";function w(){return e&&d&&l}function E(e,n){v=Math.max(v,e),c.count++,c.flushedBytes+=n}function C(e){for(var n,t=0;t<e.length;++t){var r=e[t].events;if(r&&r.length)for(var i=0;i<r.length;++i)if(r[i]&&"document"===r[i].type)return b&&(r[i].setExtraInfo("browserTabId",b),b=""),p=!0,void((n=r[i]).value.windowSize.height||n.value.windowSize.width||(n.value.windowSize={height:window.innerHeight,width:window.innerWidth}))}}function S(e){if(w())try{var n;(y||window.innerHeight&&window.innerWidth)&&(y=!0,n=a.pull(),p||C(n),n.length&&(T(n,e),Be.notifyEventsFlush()))}catch(e){logger.error("ERROR: while flushing pending events. Exception: ",e.stack||e.message)}}function T(e,n){o.track(e),l.encodeAndDispatch(e,h,Q,n)}function I(){try{var e=u.getAndClear(St.KEY_NAME_SN),n=u.getAndClear(St.KEY_NAME_EST);e&&n&&n.length&&(l.restoreState(e,function(e){for(var n={},t=0;t<e.length;t++)n[e[t].metadata.pageId]=!0;return n}(n)),t.emit("beacon:sendingFromStorage"),T(n))}catch(e){t.emit("beacon:failedSendingFromStorage"),logger.error("error: could not send pending storage reports. message:",e.message)}}function k(){var e;I(),(e=s.reportByPost?s.reportPostInterval:s.reportInterval)&&!f&&(f=setInterval(S,e))}function x(){d=!0,w()&&k()}function A(){d=!1}function M(e){try{g[e.data.pageId].postMessage({messageId:e.data.messageId,type:"eventSet"}),w()?T(e.data.eventSets):(logger.error("Cannot flush event sets of a child iframe as the Flusher is not ready."),t.emit("clsDebug","cannot flush child iframe's events: dispatcher not set (waiting for worker?)."))}catch(e){logger.error("ERROR: while flushing event sets of a child iframe. Exception: ",e.stack||e.message)}}t.on("worker:init",function(e){l=e?new kt(e,o,E,t):new Ct(t,n,r,i,m,o,E,s.reportMaxConcurrency,s.reportTimingBetweenBeacons),w()&&k()}),t.on("corsReady",x),t.once("plugin:corsReady",x),t.on("corsReset",A),t.once("plugin:corsReset",A),t.once("encryptionReady",function(){e=!0,w()&&k()}),t.on("session:setSessionId",function(){b=Z.generateTabId(!0)}),t.on("sendStoragePendingReports",I),t.on("event:unload",function(){try{s.reportLastPageEventsViaBeaconAPI&&S(!0);var e,n,t,r,i=a.pull();i.length&&s.storageBackedReporting?(e=o.packageEventSets(),n=[],Array.prototype.push.apply(n,e.eventSets),Array.prototype.push.apply(n,i),e.sn[i[0].metadata.pageId]=e.sn[i[0].metadata.pageId]||1,e.eventSets=mn.reduceByMetadata(n),t=u.getAndClear(St.KEY_NAME_EST),(r=u.getAndClear(St.KEY_NAME_SN))&&Z.assign(e.sn,r),t&&Array.prototype.push.apply(e.eventSets,t),u.set(St.KEY_NAME_EST,e.eventSets),u.set(St.KEY_NAME_SN,e.sn)):i.length&&w()&&T(i)}catch(e){logger.error("Flusher error: handling 'unload' event raised an error.",e.message)}},Q,1e3),t.on("forceFlush",S),t.on("analyzerId",function(e){h=e}),t.on("iframePortReceived",function(e){w()&&I(),g[e.pageId]=e.port,e.port.onmessage=M}),this.flush=function(){S()}}function It(n,r,i,t,o,a){var u,c=1,s={};function f(e){try{var n=t.pull();n.length&&(l(n,e),Be.notifyEventsFlush())}catch(e){logger.error("ERROR: while flushing pending events. Exception: ",e.stack||e.message)}}function l(e,n){try{var t;s[c]=e,n&&a.storageBackedReporting?(t=(o.getAndClear(St.KEY_NAME_EST)||[]).concat(function(e){var n,t=[];for(n in e)e.hasOwnProperty(n)&&(t=t.concat(e[n]));return t}(s)),o.set(St.KEY_NAME_EST,t),s={}):(i.send({eventSets:e,messageId:c,pageId:r().page.id}),c++)}catch(e){logger.error("Exception while flushing events. message:",e.message)}}function d(e){var n;"ack"===e.data.type?(f(),(n=a.reportByPost?a.reportPostInterval:a.reportInterval)&&!u&&(u=setInterval(f,n))):delete s[e.data.messageId]}n.once("init:loaded",function(){var e=i.initPorts(d);n.emit("frame:port",{args:{pageId:r().page.id},transferable:e})}),n.on("event:unload",Z.gbBind(f,null,!0)),n.on("forceFlush",f),n.on("sendStoragePendingReports",function(){try{var e=o.getAndClear(St.KEY_NAME_EST);e&&e.length&&(n.emit("beacon:sendingFromStorage"),l(e,!1))}catch(e){n.emit("beacon:failedSendingFromStorage"),logger.error("error: could not send pending storage reports. message:",e.message)}}),this.flush=function(){u&&f()}}function kt(r,n,t,i){r.addEventListener("message",function(e){e=e.data;"beaconSent"===e.type?t(e.sn,e.encodedLength):"onBeaconResponse"===e.type?e.success?(n.untrack({pageId:e.pageId,beaconData:e.beaconData}),i.emit("beacon:sent",e.sn)):i.emit("beacon:failed",{sn:e.sn,status:e.requestStatus}):"newConfig"===e.type&&i.emit("handleGatewayResponse",e.config)}),i.on("updateSafariQueryString",function(e){r.postMessage({type:"updateQueryString",args:[e]})}),i.once("plugin:updateSafariQueryString",function(e){r.postMessage({type:"updateQueryString",args:[e]})}),i.on("confHashChange",function(e){r.postMessage({type:"confHashChange",args:[e]})}),this.restoreState=function(e,n){r.postMessage({type:"restoreState",args:[e,n]})},this.encodeAndDispatch=function(e,n,t){e=e.map(function(e){return e.toJSON?e.toJSON():e});r.postMessage({type:"encodeAndDispatch",args:[e,n,t]})}}function xt(o,r){var a=[],u={},i=!0,c={};function s(n,e){var t,r,i=[];if(!u[n])for(t=0;t<a.length;t++)try{Ue.uriContainsAnyOf(n,[a[t].rule.urlMatcher])&&(r=Ue.tryParseValueMap(e,a[t].keySet))&&(u[n]=!0,i.push({urlMatcher:a[t].rule.urlMatcher,valueMap:r}))}catch(e){logger.error("Error while parsing request for "+n+" for third party integration: "+e.message,e)}i.length&&o.emit("3rdPartyAttribute",i)}o.on("newRemoteConfig",function(e){if(a=[],e.thirdPartyAttributeRules&&!c[e.hash]){var n;for(c[e.hash]=!0,n=0;n<e.thirdPartyAttributeRules.length;n++)(t=e.thirdPartyAttributeRules[n]).urlMatcher&&t.attributes&&t.attributes.length&&a.push({rule:e.thirdPartyAttributeRules[n],keySet:Z.immutableSet.apply(null,e.thirdPartyAttributeRules[n].attributes||[])});i&&r(s),i=!1}var t}),o.on("ajax:send",function(e){"POST"===e.method&&"string"==typeof e.requestContent&&s(e.url,e.requestContent)}),this.intercept=function(e){var n=(e.src||"").split("?")[1];n&&s(e.src,n)},this.interceptURL=function(e){var n=(e||"").split("?")[1];n&&s(e,n)}}function At(r,e,i){i=i||{};var o=Z.immutableSet.apply(null,i.keys||[]),a={};function t(n,e){try{var t;!Ue.uriContainsAnyOf(n,i.urlTokens)||a[n]||(t=Ue.tryParseValueMap(e,o))&&(a[n]=!0,r.emit("3rdpartymap:scReport",{value:t}))}catch(e){logger.error("Error while checking image "+n+" for third party integration: "+e.message,e)}}e(t),this.intercept=function(e){var n=(e.src||"").split("?")[1];n&&t(e.src,n)},this.interceptURL=function(e){var n=(e||"").split("?")[1];n&&t(e,n)}}function Mt(i,e,o,a,logger,c,n,u){function s(e,n,t){for(var r=e,i=0;i<n.length;i++)if(!(r=r[n[i]]))return null;return function(e,n){var t,r,i,o,a=[];for(e instanceof Array||(e=[e]),t=0;t<e.length;t++)if(i=e[t][n])for(r=0;r<i.length;r++){var u=i[r].responseTokens;(o=u)&&o["experience.id"]&&o["experience.name"]&&o["activity.id"]&&o["activity.name"]?a.push({variantId:u["experience.id"],variantName:u["experience.name"],experimentId:u["activity.id"],experimentName:u["activity.name"]}):c.abTesting.missingFields++}return a}(r,t)}function t(e){var n,t=[],r=e.detail.responseTokens;(e=r)===Q||null==e||e.length<=0||((n=r.reduce(function(e,n){return e[function(e){var n,t=Object.keys(e)||[],r="";for(n=0;n<t.length;++n)r+=t[n]+e[t[n]];return r}(n)]=n,e},{}),Object.keys(n).map(function(e){return n[e]})).forEach(function(e){t.push({experimentId:e["experience.id"],experimentName:e["experience.name"],variantId:e["activity.id"],variantName:e["activity.name"]})}),o.isListenToEvent("abTesting")?t.length&&o.emit("abTesting",{provider:"adobe",offers:t}):o.once("init:preloaded",function(){t.length&&o.emit("abTesting",{provider:"adobe",offers:t})}))}(c=c||{}).abTesting={missingFields:0,success:0},function(){try{var e=i[u];if(e&&e.length){for(var n=[],t=0;t<e.length;t++){var r=e[t];r&&r.RecipeId&&r.RecipeName&&r.CampaignId&&r.CampaignName&&n.push({variantId:r.RecipeId,variantName:r.RecipeName,experimentId:r.CampaignId,experimentName:r.CampaignName})}o.once("init:preloaded",function(){n.length&&o.emit("abTesting",{provider:"adobe",offers:n})})}}catch(e){logger.error("error during abTesting data extraction from global object. message:",e.message),o.emit("clsDebug","error during abTesting data extraction from global object. message:"+e.message)}}(),n?(n=i.adobe&&i.adobe.target&&i.adobe.target.event&&i.adobe.target.event.REQUEST_SUCCEEDED?i.adobe.target.event.REQUEST_SUCCEEDED:"at-request-succeeded",Z.addEventHandler(e,n,t)):o.on("ajax:end",function(e){try{if(200<=e.status&&e.status<=202&&e.resContentType&&-1<e.resContentType.indexOf("application/json")){var n,t,r;if(e.responseType&&"text"!==e.responseType){if("json"!==e.responseType)return;t=e.response}else t=JSON.parse(e.responseText);for(n=0;n<a.length;n++)if(new RegExp(a[n].urlMatcher,"i").test(e.url)&&(r=s(t,a[n].path,a[n].tokenContainer))&&r.length){o.emit("abTesting",{provider:"adobe",offers:r}),c.abTesting.success++;break}}}catch(e){}})}function Rt(f,l,logger,n){var d;function t(){if(f.optimizely&&f.optimizely.get&&!d){var e=f.optimizely.get("state"),n=e.getActiveExperimentIds();if(n&&n.length){var t,r=[],i=e.getVariationMap(),o=e.getExperimentStates();for(d=!0,t=0;t<n.length;t++){var a,u,c,s=n[t];i[s]&&(a=i[s].id,u=i[s].name),o[s]&&(c=o[s].experimentName),a&&s&&(r.push({variantId:a,variantName:u||a,experimentId:s,experimentName:c||s}),JSON.stringify({variantId:a,variantName:u||a,experimentId:s,experimentName:c||s}))}r.length&&(l.isListenToEvent("abTesting")?l.emit("abTesting",{provider:"optimizely",offers:r}):setTimeout(function(){l.emit("abTesting",{provider:"optimizely",offers:r})},100))}}}Z.waitForObjDefined(f,"optimizely",t),n.optimizelyCheckOnSegmentLoad&&l.on("segmentChanged",function(){d=!1}),l.on("ajax:end",function(e){n.optimizelyUrl&&-1<e.url.indexOf(n.optimizelyUrl)&&e.status<400&&0<e.status&&setTimeout(t,10)})}function Nt(n,e,logger,t){var r,i=t.adobeRsid,o=t.adobeEVarNumber,a=!1;function u(){var e;n.s_gi&&i?(e=n.s_gi(i))&&o&&r?(e["eVar"+o]=r,e.t?e.t():logger.error("## AdobeAnalyticsInterceptor -> callAppMeasurementAPI() -> t function not exist")):logger.error("## AdobeAnalyticsInterceptor -> callAppMeasurementAPI() -> trackerObj not exist"):logger.error("## AdobeAnalyticsInterceptor -> callAppMeasurementAPI() -> s_gi function not exist")}e.on("invalidateSession",function(){a=!1}),e.on("remoteClseConf",function(e){e&&!a&&(a=!0,r=e,n.AppMeasurement?u():Z.waitingInterval(n,"AppMeasurement",u,1e3,t.adobeAPIMaxAttempts))})}function Dt(n,e,logger,t){var r,i=t.googleDimensionIndex,o=t.gaMeasurementId,a=!1,u="dimension",c="gbSessionId",s="Glassbox_Integration";function f(){var e;0<=i&&r&&o?n.gtag?((e={custom_map:{},send_page_view:!1}).custom_map[u+i]=c,n.gtag("config",o,e),(e={non_interaction:!0})[c]=r,n.gtag("event",s,e)):n.ga&&(n.ga("create",o,"auto"),n.ga("set","cd"+i,r),(e={non_interaction:!0})["cd"+i]=c,n.ga("send",s,e)):logger.error("## googleAnalyticsInterceptor -> callGoogleAnalyticsAPI() -> dimensionIndex or clse not exist")}e.on("invalidateSession",function(){a=!1}),e.on("remoteClseConf",function(e){e&&!a&&(a=!0,r=e,n.gtag||n.ga?f():(Z.waitingInterval(n,"gtag",f,1e3,t.googleAPIMaxAttempts),Z.waitingInterval(n,"ga",f,1e3,t.googleAPIMaxAttempts)))})}function Ot(e,o){var a={ea:"experimentName",el:"variantName"};o.on("ajax:end",function(e){try{200<=e.status&&e.status<=202&&(n=e.url,Z.isStringMatch("*google-analytics*collect*ec=Monetate*",n))&&function(e){if(e=Z.extractSearch(e)){for(var n=e.split("&"),t={},r=0;r<n.length;++r){var i=n[r].split("=");a[i[0]]&&(t[a[i[0]]]=decodeURIComponent(i[1]))}t.experimentName&&t.variantName&&(t.experimentId=t.experimentName,t.variantId=t.variantName,o.emit("abTesting",{provider:"GA",offers:[t]}))}}(e.url)}catch(e){}var n})}function Lt(i,e,n,o,a,t){var r={};function u(){!function(){if(o.length){for(var e=a.hookProto(HTMLImageElement.prototype),t=0;t<o.length;t++)try{e.hookSetPropertyAfter("src",o[t].interceptURL)}catch(e){logger.error("failed intercepting Image report via constructor. "+e.message,e)}var r=i.document.createElement;i.document.createElement=function(){var e=r.apply(i.document,[].slice.call(arguments));if("string"==typeof arguments[0]){var n=arguments[0].toLowerCase();if("img"===n||"script"===n)for(t=0;t<o.length;t++)try{Z.addEventHandler(e,"load",Z.gbBind(o[t].intercept,o[t],e))}catch(e){logger.error("failed intercepting native createElement method. "+e.message,e)}return e}}}}()}this.initialize=function(){t.interceptABTesting&&(t.interceptAjax||t.interceptAdobeABEvent)&&Mt(i,e,$,[{urlMatcher:"global-mbox",path:[],tokenContainer:"offers"},{urlMatcher:"tt.omtrdc",path:["execute","pageLoad"],tokenContainer:"options"},{urlMatcher:"tt.omtrdc",path:["execute","mboxes"],tokenContainer:"options"}],logger,r,t.interceptAdobeABEvent,t.abTestingGlobalObject),t.enableOptimizelyIntegration&&t.interceptAjax&&Rt(i,$,0,t),t.interceptGAABTesting&&t.interceptAjax&&Ot(0,$),t.enableAdobeAnalyticsIntegration&&Nt(i,$,logger,t),t.enableGoogleAnalyticsIntegration&&Dt(i,$,logger,t),n.once("init:preloaded",u,Q,10)},this.stats=function(){return r}}function Ft(f){f=f||{emptyStrings:!1,useFullPath:!1};var l=Z.immutableSet("number","string","boolean"),d={},i={};function h(e){return Array.isArray(e)&&l[typeof e[0]]}function v(e,n,t,r){if(t[n]||i[n]){if(d[r])return t[r]=""+e,t[n]&&(t[i[n]]=t[n],delete t[n]),1}else i[n]=r}function o(){d={},i={}}return{capture:function(e,n){var t,r,i={};for(o(),t=0;t<n.length;t++)(r=function(e,n){for(var t=e,r=n.split("."),i=0;i<r.length;i++){if((t=t[r[i]])===Q||null===t||!f.emptyStrings&&"string"==typeof t&&!t)return null;if(Array.isArray(t)&&isNaN(parseInt(r[i+1]))&&i<r.length-1)return{array:t,arrayName:r[i],segments:r.slice(i+1,r.length)}}return d[r.join("_")]=!0,{object:t,name:r[r.length-1],fullSegments:r.join("_")}}(e,n[t]))&&(r.array?function(e,n,t,r){for(var i=0;i<e.length;++i){for(var o=n+"_"+i+"_"+t.join("_"),a=e[i],u=0;u<t.length&&a;++u)a=a[t[u]];a&&(l[typeof a]?r[o]=""+a:h(a)&&(r[o]=a.join(",")))}}(r.array,r.arrayName,r.segments,i):function e(n,t,r,i,o){var a,u,c=typeof n;if(l[c])(n||"string"!=c||f.emptyStrings)&&(f.useFullPath?r[o]=""+n:v(n,t,r,o)||(r[t]=""+n));else if(h(n)){var s=n.join(",");f.useFullPath?r[o]=s:v(s,t,r,o)||(r[t]=s)}else if(i&&"object"==c)for(a in n)n.hasOwnProperty(a)&&(d[u=(o||"")+"_"+a]=!0,e(n[a],a,r,!1,u))}(r.object,r.name,i,!0,r.fullSegments));return Object.keys(i).length?i:null},toFlatMap:function(e){if(!e||"object"!=typeof e)return null;o();var n={};return function e(n,t,r){var i,o=typeof n;if(l[o])(n||"string"!=o||f.emptyStrings)&&(f.useFullPath?r[fullPath]=a:v(n,t,r,t)||(r[t]=""+n));else if(h(n)){var a=n.join(",");f.useFullPath?r[fullPath]=a:v(a,t,r,t)||(r[t]=a)}else if("object"==o)for(i in t=t.length?t+".":t,n)n.hasOwnProperty(i)&&e(n[i],t+i,r)}(e,"",n),Object.keys(n).length?n:null}}}function _t(n,t,e,r,i){r=r||[];var o=e({emptyStrings:(i=i||{paths:[],captureEmptyStrings:!1}).captureEmptyStrings,useFullPath:i.useFullPath}),a={captured:[]};function u(e){e&&(t.emit("3rdpartymap:scReport",{value:e}),a.captured.push(e))}i.paths.length&&r.forEach(function(e){t.on(e,function(){u(o.capture(n,i.paths))})}),t.on("api:captureObject",function(e){u(o.toFlatMap(e))}),this.initialize=function(){return!0},this.stats=function(){return a}}function Pt(n,a,t){var r,u,e=!1,i="setEventCallback";function o(){e||(e=!0,r=n.usabilla_live,n.usabilla_live(i,c),n.usabilla_live=function(e,n){if(e!==i)return r.apply(null,arguments);u=n})}function c(e,n,t,r,i){try{var o;"Campaign:Page Switch"!==n&&"Feedback:Success"!==n||(o={source:"usabilla"},"Feedback:Success"===n?o.userData=i||{}:"Campaign:Page Switch"===n&&(o.userData=i.data||{},o.userData.id=t),i.type&&(o.userData.type=i.type),o.userData.action=n,a.emit("vocGetData",o)),u&&u.apply(null,arguments)}catch(e){logger.error("something went wrong while tried to parse usabilla event")}}n.usabilla_live?o():(t.waitForUsabillaObj&&Z.waitForObjDefined(n,"usabilla_live",o),t.interceptUsabillaUrl&&a.on("ajax:end",function(e){-1<e.url.indexOf(t.interceptUsabillaUrl)&&e.status<400&&0<e.status&&setTimeout(function(){n.usabilla_live&&o()},100)}))}function Bt(e,c,n){var s=n.vocObjectMap,t=[];function r(e){if(!s&&e.vocConfig&&(s=e.vocConfig,t.length))for(var n=0;n<t.length;++n)i(t[n])}function i(e){if(e&&e.source&&s[e.source]){var n,t,r,i,o={source:e.source,userData:{}},a=!1,u=s[e.source];for(n in e.userData)u[n]&&(t=o.userData,r=e.userData[n],"int"===(i=u[n]).type?t[i.name]=parseInt(r):"bool"===i.type?t[i.name]="boolean"==typeof r?r:"true"===r:t[i.name]=""+r,a=!0);a&&c.emit("reportVoC",o)}}function o(e){s?i(e):t.push(e)}this.initialize=function(){c.on("newRemoteConfig",r),c.on("vocGetData",o),n.collectUsabillaVoc&&Pt(e,c,n)}}function jt(e,c,n){e=e||{};var s=(n=n||{}).visualName,i=n.visualNameDebug||!1,o=0<n.visualNameLimit?Math.min(n.visualNameLimit,n.visualName.maxLimit):n.visualName.maxLimit,f=Z.immutableSet.apply(null,s.wrapperElementList||[]);function l(e,n,t){if(0<s.maxDistance){var r=e.getClientRects();if(r.length)for(var i=0;i<r.length;i++)if(r[i].left-n<s.maxDistance&&n-r[i].right<s.maxDistance&&t-r[i].bottom<s.maxDistance&&r[i].top-t<s.maxDistance)return}return 1}var a,u,d,h=(a=n.noIdSelectorsForClassNames||[],u=n.noIdSelectorsForIDs||[],d=n.noIdSelectorsForAttrs||[],function(e){if(0===a.length&&0===u.length&&0===d.length)return!0;var n=e.getAttribute("id");if(n)for(i=0;i<u.length;i++){var t=u[i];if(t&&0<=n.indexOf(t))return!1}for(var r=Z.getClassList(e),i=0;i<a.length;i++)if(0<=E.indexOf(r,a[i]))return!1;for(i=0;i<d;i++)if(e.hasAttribute(d[i]))return!1;return!0});function v(e,n,t){var r=e.tagName;if("TD"===r)return null;if("TEXTAREA"!==r){var i=Z.getAttributeForElement(e,"class");if(i&&E.contains(s.filterInlineTextByClassName,i))return null;var o,i=null;if(s.by.labelTag&&"LABEL"===e.tagName&&(i=e),"SPAN"!==r&&"DIV"!==r||1===e.childElementCount&&(o=e.firstElementChild)&&"A"===o.tagName&&0===o.childElementCount&&(i=o),(i=!(i=i||function(e){for(var n=s.maxParentLevel+1;e&&n--;){if(f[e.tagName])return e;e=e.parentNode}return null}(e))&&0===e.childElementCount?e:i)||1===e.childElementCount&&(0!==(o=e.firstElementChild).childElementCount||n&&t&&l(o,n,t)||(i=e)),i)try{var a=c(),u=(a?a.cloneNode(i):i).innerText;return Z.trim(u)}catch(e){}return null}}return e.extractVisualName=function(e,n,t){var r=null;if(!e||!Z.isElement(e))return r;if(E.contains(s.filterNamingByTagName,e.tagName.toLocaleLowerCase()))return r;return(r=Z.getAttributeForElement(e,s.CLS_NAME_ATTR))&&0,!r&&s.by.title&&(r=Z.getAttributeForElement(e,"title"))&&0,!r&&s.by.alt&&(r=Z.getAttributeForElement(e,"alt"))&&0,!r&&s.by.ariaLabel&&(r=Z.getAttributeForElement(e,"aria-label"))&&0,r||!s.by.inputConsts&&!s.by.inputButtonsValue||(r=function(e){var n;if("INPUT"===e.tagName){var t=e.type.toLocaleLowerCase();if(!(n=("button"===t||"submit"===t||"reset"===t)&&s.by.inputButtonsValue?e.value:n)&&s.by.inputConsts)switch(t){case"password":n="Password";break;case"button":case"submit":case"image":n="Submit";break;case"file":n="Choose File";break;case"reset":n="Reset"}}return(n=n&&Z.trim(n))||null}(e))&&0,!r&&s.by.name&&(r=Z.getAttributeForElement(e,"name"))&&0,!r&&s.by.inlineText&&(r=v(e,n,t))&&0,!r&&s.by.id&&h(e)&&(r=Z.getAttributeForElement(e,"id"))&&0,!r&&s.by.placeholder&&(r=Z.getAttributeForElement(e,"placeholder"))&&0,!r&&s.by.parent&&(r=function(e){if(!E.contains(s.elementListToCheckParent,e.tagName.toLocaleLowerCase()))return null;var n=null,e=e.parentElement;return(n=e&&("a"===e.tagName.toLocaleLowerCase()||"button"===e.tagName.toLocaleLowerCase())?Z.getAttributeForElement(e,"title")||Z.getAttributeForElement(e,"alt")||Z.getAttributeForElement(e,"aria-label")||Z.getAttributeForElement(e,"name")||Z.getAttributeForElement(e,"id"):n)||null}(e))&&0,!r&&s.by.child&&(r=function(e,n,t){if(!E.contains(s.elementListToCheckChild,e.tagName.toLocaleLowerCase()))return null;if(1===e.childElementCount){var r=e.firstElementChild;if(n&&t&&l(r,n,t))return null;r=Z.getAttributeForElement(r,"title")||Z.getAttributeForElement(r,"alt")||Z.getAttributeForElement(r,"aria-label")||Z.getAttributeForElement(r,"name")||Z.getAttributeForElement(r,"id")}return r||null}(e,n,t))&&0,r&&r.length>o&&(r=r.substr(0,o).concat("...")),i&&(e.tagName,e.type),r},e}function Ut(n,t,r){var i,o,a=!1,u=!1,c=!1,s={state:"init"};function f(e){"ready"===e.data.type?(u=!0,clearTimeout(o),c&&l("ready")):t.emit(e.data)}function l(e){a||(a=!0,s.state=e,t.emit("worker:init",i))}function d(e){i.addEventListener("message",f),i.postMessage({type:"init",args:[r,e,_.getKeyInfo()]}),s.state="started"}function h(){try{var e,n=(r.enableSessionizingByCors||R.isCorsReporting())&&!r.reportDisableCors;r.reportInitializeWorkerAsBlob?(e=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",function(e){"string"==typeof e.data&&(-1<e.data.indexOf("https://")||-1<e.data.indexOf("http://"))&&importScripts(e.data)})}.toString(),")()"],{type:"application/javascript"})),(i=new Worker(e)).postMessage(L.detectorScript.src+"?worker"),setTimeout(Z.gbBind(d,null,n),500)):(i=new Worker(L.detectorScript.src+"?worker"),d(n))}catch(e){s.error=e.message,logger.error("Failed starting web worker. "+e.message)}}function v(){c=!0,u?l("ready"):setTimeout(Z.gbBind(l,null,"timeout"),1e3)}this.initialize=function(){var e=!1;r.reportUseWorker&&!r.reportPreferSendBeaconAPI||(s.waivingReason="disabled",e=!0),!e&&n!==n.top&&r.reportViaTopWindow&&(s.waivingReason="non-top-window",e=!0),e||n.Worker||(s.waivingReason="not-supported",e=!0),e||L.detectorScript||(s.waivingReason="no-script",e=!0),e?t.emit("worker:init",Q):(t.once("init:preloaded",h),t.once("init:loaded",v))},this.stats=function(){return s}}function Vt(n){var t=Z.getUpperLevelDomain(n);function o(e){throw new SyntaxError("Illegal ajax predicate syntax: "+e)}var a={always:function(){return function(){return!0}},never:function(){return function(){return!1}},fqdn:function(){return function(e){e=Z.extractHostname(e.url);return!e||e===n}},tld:function(){return function(e){e=Z.extractHostname(e.url);return!e||Z.getUpperLevelDomain(e)===t}},statusgte:function(e){e||o("Missing required argument 'status'.");var n=parseInt(e);return function(e){return e.status>=n}},urimatches:function(e){e||o("Missing required argument 'pattern'.");var n=new RegExp(e);return function(e){return!1!==n.test(e.url)}},hostmatches:function(e){e||o("Missing required argument 'pattern'.");var t=new RegExp(e),r=window.location.hostname;return function(e){var n=Z.extractHostname(e.url),e=K.querySelector("base"),e=e?Z.extractHostname(e.href):null;return!1!==t.test(n=n||e||r)}},not:function(e){e||o("Missing required arguments.");var n=r(e);return 1!==n.length&&o("Expecting single argument."),function(e){return!n[0](e)}},and:function(e){e||o("Missing required arguments.");var t=r(e);return function(e){for(var n=0;n<t.length;n++)if(!t[n](e))return!1;return!0}},or:function(e){e||o("Missing required arguments.");var t=r(e);return function(e){for(var n=0;n<t.length;n++)if(t[n](e))return!0;return!1}}};function u(e){var n=e.indexOf("(");if(-1<n){for(var t=-1,r=1,i=n+1;i<e.length;i++)if("("===e.charAt(i)&&r++,")"===e.charAt(i)&&0==--r){t=i;break}return-1===t&&o("Missing closing ')'."),[Z.trim(e.substring(0,n).toLowerCase()),Z.trim(e.substring(n+1,t))]}return[e.toLowerCase()]}function r(e){for(var n,t=[],r=(e||"").split(","),i=0;i<r.length;i++)n=u(Z.trim(r[i])),a[n[0]]||o("Unsupported predicate type '"+n[0]+"'."),t.push(a[n[0]](n[1]));return t}a.true=a.always,a.false=a.never,this.create=function(e){if(!e)return a.never();e=u(e);return a[e[0]]||o("Unsupported predicate type '"+e[0]+"'."),a[e[0]](e[1])}}function Ht(u,e,n,c){var s={},f=Z.getUpperLevelDomain(n),l=function(){return!1},d=u.location.pathname;function h(e){return s[Ht.getEntryKey(e)]}return e.on("segmentChanged",function(e){d=e.current}),e.on("event:unload",function(){Z.isEmpty(s)||e.emit("ajax:reportStats",function(e){var n,t=[];for(n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}(s))}),{initConfig:function(e){try{if(c.ajaxRecordStats)return l=e.create(c.ajaxRecordStats),!0}catch(e){logger.error("Error while parsing Ajax predicates from configuration. interception disabled. error:"+e)}return!1},onSend:function(e){var n,t,r,i,o,a;l(e)&&(n={},a=c.ajaxStatsQueryParams&&Z.parseQuery(e.url.split("?")[1]),e.queryHash=function(n,t){if(!n)return 0;var r=0;return c.ajaxStatsQueryParams.forEach(function(e){n[e]&&(t[e]=n[e],r=31*(r=31*r+Z.hashcode(e))+Z.hashcode(n[e]))}),r}(a,n),e.segment=d,(o=h(e))||(t=u.location.href,r=Z.extractHostname(e.url)||u.location.hostname,i=Z.extractPath(e.url.split("?")[0]),o={fields:{segment:d,sameTLD:0===(a=r).indexOf("/")||f===Z.getUpperLevelDomain(a),method:e.method,hostname:r,path:i,refHost:Z.extractHostname(t),refPath:Z.extractPath(t.split("?")[0]),api:e.api},counters:{},queryParams:n},o=o,s[Ht.getEntryKey(e)]=o))},onLoadEnd:function(e){var n,t,r,i,o,a,u,c,s=h(e);s&&(n=e.resContentType,t=e.reqContentType,0===(c=e.status)&&(c=e.aborted?1:c),r=e,i=s.counters,o=c,a=r.duration,u=parseInt(r.contentLength),e=r.requestLength||0,++(c=(c=i[o])||{count:0,sumDuration:0,sumResponseBytes:0,sumRequestBytes:0,sumTtfb:0,sumDownloadTime:0}).count,c.sumDuration=c.sumDuration+a,c.sumResponseBytes=c.sumResponseBytes+(u||0),c.sumRequestBytes=c.sumRequestBytes+(e||0),c.sumTtfb=c.sumTtfb+(r.ttfb||0),c.sumDownloadTime=c.sumDownloadTime+(r.downloadTime||0),i[o]=c,s=s,t=t,(n=n)&&(s.fields.responseContentType=n),t&&(s.fields.requestContentType=t))}}}function Wt(u,c,s,f,t,e,r){var l={},d=!0;"true"===e.get("api_breach")&&(d=!1,s.emit("clsDebug","apiCallBreach activate from local storage"));var h=r.ajaxCaptureRequestCookie||!1;s.on("event:unload",function(){for(var e in l)l.hasOwnProperty(e)&&(l[e].status=0,n(l[e]))},null,-1),s.on("apiCallBreach",function(){d=!1}),s.on("apiCallBreachCanceled",function(){d=!0});var e=function(){return!1},v=e,m=e,g=e,p=e,y=e;function b(e,n,t,r,i,o){var a={};return a.startedAt=e.startTime,a.endedAt=e.endTime,a.url=Xt.safeEncodeURI(e.url),a.method=e.method,a.requestContent=null,t&&(a.requestContent="string"==typeof e.requestContent?e.requestContent:null),a.requestHeaders=null,n&&(a.requestHeaders=function(e){var n=e.requestHeaders||[];if(h&&(f.extractHostname(e.url)===u.location.host||f.isHostRelativeUrl(e.url)))try{var t=c.cookie;t&&n.push("cookie: "+t)}catch(e){}e.masking&&e.masking.request&&n.push("X-Glassbox-JSMasking: "+e.masking.request);return n.join("\r\n")}(e)||(e.requestContent?"Content-Type: text/plain;charset=utf-8":null)),a.responseHeaders=r,a.responseContent=i,a.responseCompressed=o,a.api=e.api,a.sn=e.sn,a}function n(e){if(delete l[e.uuid],!e.recordingLimitExceeded){var n=d&&g(e),t=d&&(n||m(e)),r=d&&y(e),i=d&&(r||p(e));if(!(i||t||v(e)))return!1;var o=n&&e.hasGzipContentEncoding(),a=n?e.captureContent():null;o&&(a=(n=a)?f.pako.gzip(n):null);var u=b(e,i,r,t?e.fixHeaders():null,a,o);u.lastFocusedSelectorInfo=e.lastFocusedSelectorInfo,u.lastFocusedCSSSelectorInfo=e.lastFocusedCSSSelectorInfo,u.status=e.status,u.statusText=e.statusText,u.aborted=e.aborted,u.resContentType=e.resContentType,u.reqContentType=e.reqContentType||"text/plain;charset=utf-8",u.requestLength=e.requestLength,u.contentLength=e.contentLength,u.ttfb=e.ttfb,u.downTime=e.downloadTime,i||r||t||a||(u.containOnlyMetaData=!0),setTimeout(function(){s.emit("ajax:loadend",u)},0)}}return{initConfig:function(e){var n=!1;return r.ajaxRecordMetadata&&(v=e.create(r.ajaxRecordMetadata),n=!0),r.ajaxRecordResponseHeaders&&(m=e.create(r.ajaxRecordResponseHeaders),n=!0),r.ajaxRecordResponseBody&&(g=e.create(r.ajaxRecordResponseBody),n=!0),r.ajaxRecordRequestHeaders&&(p=e.create(r.ajaxRecordRequestHeaders),n=!0),r.ajaxRecordRequestBody&&(y=e.create(r.ajaxRecordRequestBody),n=!0),n},onLoad:function(e){e.recordingLimitExceeded||s.emit("ajax:load",b(e))},onError:function(e){e.recordingLimitExceeded||s.emit("ajax:error",b(e))},onSend:function(e){var n;t.allow()?(n=b(l[e.uuid]=e,e.requestHeaders,e.requestContent),e.requestContent&&(n.data=e.requestContent)):e.recordingLimitExceeded=!0},onLoadEnd:n}}function qt(e,n,t,r,i,o){if(this.api="fetch",this.url=e,this.startTime=r,this.lastFocusedSelectorInfo=i,this.lastFocusedCSSSelectorInfo=o,this.uuid=t,this.init=n||{},this.method=n.method,this.requestHeaders=[],this.masking={},this.sn=Xt.nextSn(),n.headers&&"[object Headers]"===n.headers.toString())for(var a=n.headers.entries(),u=a.next();!u.done;)this.requestHeaders.push(u.value[0]+": "+u.value[1]),"content-type"===u.value[0].toLowerCase()&&(this.reqContentType=u.value[1]),u=a.next();else for(var c in n.headers)n.headers.hasOwnProperty(c)&&(this.requestHeaders.push(c+": "+n.headers[c]),"content-type"===c.toLowerCase()&&(this.reqContentType=n.headers[c]))}function zt(e,n,t,r,i,o){this.xhr=e,this.uuid=i,this.requestHeaders=[],this.method=t,this.url=n,this.async=r,this.api="xhr",this.ajaxMasker=o,this.masking={},this.sn=Xt.nextSn()}function Gt(u,n,c,s,f,l,d,h,v,t){if(!u.fetch)return!1;var r=!1;function m(e){return!e||e.includes("json")||e.includes("text")}function i(e){"notSupported"!==h.getPerformanceResourceEntry(e.url,e)||r||(r=!0,n.emit("clsDebug","Performance API not supported during extraction of TTFB and DT")),c("onLoadEnd",e)}function a(e){-1!==t?setTimeout(h.gbBind(i,null,e),t):i(e)}-1!==t&&(t=Math.min(t,100));var g=u.fetch;u.fetch=function(){var e=!1;1<arguments.length&&arguments[1]&&arguments[1].cls_own&&(e=arguments[1].cls_own,delete arguments[1],arguments.length=1);var o=function(e,n){try{var t="object"==typeof e[0]?e[0].url||""+e[0]:e[0],r="object"==typeof e[1]?e[1]:"object"==typeof e[0]?e[0]:{};if(d(t,n)){var i=u.document.activeElement?s.getSelectorInfo(u.document.activeElement):null,o=u.document.activeElement?f.getSelectorInfo(u.document.activeElement):L.encoding.rootCssSelector,a=new qt(l.mask(t),r,h.uuid(),h.currentTimestamp(),i,o);return r.body&&m(a.reqContentType)&&(a.reqContentType&&a.reqContentType.includes("json")?a.requestContent=v.getJsonContent(a,"request",r.body):a.requestContent=v.maskText(a,"request",r.body),a.requestLength=a.requestContent.length),c("onSend",a),c("onLoadStart",a),a}}catch(e){logger.error("Error while processing fetch request. Error: "+e.message,e)}}(arguments,e);return o?Promise.resolve(g.apply(u,arguments).then(function(e){try{var n,t;e.bodyUsed||(n=e.clone(),i=n,(r=o).resHeaders=i.headers,r.endTime=h.currentTimestamp(),r.duration=r.endTime-r.startTime,r.status=i.status,r.statusText=i.statusText,r.resContentType=i.headers.get("Content-Type"),r.contentLength=i.headers.get("Content-Length"),r.responseText=null,m(t=n.headers.get("Content-Type"))&&n.ok?(t&&t.includes("json")?n.json().then(function(e){o.responseText=v.getJsonContent(o,"response",e),a(o)}):n.text().then(function(e){o.responseText=v.maskText(o,"response",e),a(o)})).catch(function(){a(o)}):a(o))}catch(e){logger.error("Error while processing fetch request.",e)}var r,i;return e}).catch(function(e){var n,t;return t=e,(n=o).status=0,n.statusText=t.stack,n.duration=h.currentTimestamp()-n.startTime,n.endTime=h.currentTimestamp(),a(n),Promise.reject(e)})):g.apply(u,arguments)}}function Jt(e,n,t,r,i,o,a,u,c,s,f){-1!==f&&(f=Math.min(f,100));var l=!1,c=c.hookProto(XMLHttpRequest.prototype);function d(e){"notSupported"!==u.getPerformanceResourceEntry(e.adapter.url,e.adapter)||l||(l=!0,n.emit("clsDebug","Performance API not supported during extraction of TTFB and DT")),t("onLoadEnd",e.adapter)}function h(e){e.adapter.consumed||(e.adapter.onCompleted(),-1!==f?setTimeout(u.gbBind(d,null,e),f):d(e))}function v(){t("onLoad",this.adapter)}function m(){t("onError",this.adapter)}function g(){this.adapter.startTime=u.currentTimestamp(),this.adapter.lastFocusedSelectorInfo=e.document.activeElement?r.getSelectorInfo(e.document.activeElement):null,this.adapter.lastFocusedCSSSelectorInfo=e.document.activeElement?i.getSelectorInfo(e.document.activeElement):L.encoding.rootCssSelector,t("onLoadStart",this.adapter)}function p(){this.adapter&&h(this)}return"onloadend"in new XMLHttpRequest&&(!!(c.setHookBefore("open",function(){var e="object"==typeof arguments[1]?arguments[1].toString():arguments[1];a(e,this.cls_own)&&(e=o.mask(e),this.adapter=new zt(this,e,arguments[0],arguments[2],u.uuid(),s),this.addEventListener("load",v,!1),this.addEventListener("error",m,!1),this.addEventListener("loadstart",g,!1),this.addEventListener("loadend",p,!1))})&&c.setHookBefore("send",function(){var e;this.adapter&&(arguments[0]&&("string"==typeof arguments[0]||0<arguments.length&&(!(e=this.adapter.reqContentType)||0<=e.indexOf("json")||0<=e.indexOf("text")))&&(e=arguments[0],e=this.adapter.reqContentType&&0<=this.adapter.reqContentType.indexOf("json")?s.getJsonContent(this.adapter,"request",e):s.maskText(this.adapter,"request",e),this.adapter.requestContent=e,this.adapter.requestLength=e.length),t("onSend",this.adapter))})&&c.setHookBefore("abort",function(){this.adapter&&(this.adapter.aborted=!0,this.status?h(this):(this.adapter.aborted=!0,t("onAbort",this.adapter)))})&&c.setHookBefore("setRequestHeader",function(){this.adapter&&arguments[1]&&(this.adapter.requestHeaders.push(arguments[0]+": "+arguments[1]),"Content-Type"===arguments[0]&&(this.adapter.reqContentType=arguments[1]))}))||(c.revert(),!1))}function Xt(i,o,a,u,c,e,s,f,l,d,h){var n,t,v=[Wt(i,i.document,a,Z,e,new Zn(i.localStorage,{keysPrefix:L.Storage.UnboundKeyPrefix}),d),Ht(i,a,f,d),(n=a,t=d,{initConfig:function(){return t.interceptThirdPartyAttributes||t.struggleCaptureAjaxErrors||t.recordSpaLoadTime||t.interceptABTesting||t.struggleCaptureDeadClick||t.enableOptimizelyIntegration},onSend:function(e){n.emit("ajax:send",e)},onLoadEnd:function(e){n.emit("ajax:end",e)},onError:function(e){n.emit("ajax:loadError",e)}})],m=[];function g(e,n){for(var t=0;t<m.length;++t)m[t][e]&&m[t][e](n)}function p(e,n){if(!e)return!1;if(n)return!1;if(Z.startsWith(e,"data:"))return!1;if(0<=e.indexOf(d.reportURI))return!1;for(var t=e.toLowerCase(),r=0;r<h.length;r++)if(0<=t.indexOf(h[r]))return!1;return!0}this.initialize=function(){try{var e,n=new Vt(f);for(s.init(n),e=0;e<v.length;++e)v[e].initConfig(n)&&m.push(v[e])}catch(e){return logger.error("Error while parsing Ajax predicates from configuration. interception disabled. error:"+e),!1}return t=Gt(i,a,g,u,c,l,p,Z,s,d.ajaxTimeoutForResourceData),r=Jt(i,a,g,u,c,l,p,Z,o,s,d.ajaxTimeoutForResourceData),!(!t&&!r);var t,r}}function Kt(e,i,a){var o=" [MESSAGE LIMIT REACHED]",n=(a=a||{}).maxRecordedCountPerError||-1,t=10<a.maxRecordedCountPerWarning?10:a.maxRecordedCountPerWarning||-1,r=10<a.maxRecordedCountPerInfo?10:a.maxRecordedCountPerInfo||-1,u={error:{interceptedConsole:0,limitExceeded:0,emitted:0},warn:{interceptedConsole:0,limitExceeded:0,emitted:0},info:{interceptedConsole:0,limitExceeded:0,emitted:0}},c={error:{recordedLimit:n,toCount:{}},warn:{recordedLimit:t,toCount:{}},info:{recordedLimit:r,toCount:{}}},s={warn:{whiteList:"recordConsoleWarnWhitelist",blackList:"recordConsoleWarnBlacklist",eventName:"consoleWarn"},info:{whiteList:"recordConsoleInfoWhitelist",blackList:"recordConsoleInfoBlacklist",eventName:"consoleInfo"}},f=function(e,n){return-1===c[e].recordedLimit?l():l(n,e)};function l(e,n){if(!e)return!0;e=e.substring(0,30);return c[n].toCount[e]=(c[n].toCount[e]||0)+1,"error"===n?c[n].toCount[e]<=c[n].recordedLimit:c[n].toCount[e]<c[n].recordedLimit}function d(e,n){var t,r={};eventLimitExceeded=!f(n,e),r.eventLimitExceeded=eventLimitExceeded,"error"===n?(eventToEmit="pageError",r[n]=e,i.emit(eventToEmit,r)):(r[t=s[n].eventName]=eventLimitExceeded?e+=o:e,r.eventName=t,(-1===c[n].recordedLimit||u[n].limitExceeded+u[n].emitted<c[n].recordedLimit)&&i.emit(t,r)),eventLimitExceeded?u[n].emitted++:u[n].limitExceeded++}function h(e){var n="";"string"==typeof e.message&&(n+=e.message),"string"==typeof e.url?n+="; URL: "+e.url:"string"==typeof e.filename&&(n+="; FILE: "+e.filename),"number"==typeof e.lineno&&(n+="; L: "+e.lineno),"number"==typeof e.colno&&(n+="; C: "+e.colno);try{e.error&&"object"==typeof e.error&&"[object Object]"==e.error.toString()&&(n+="; obj: "+JSON.stringify(e.error))}catch(e){i.emit("clsDebug","error trying to stringify error object "+e.message)}n&&(u.error.interceptedConsole++,d(n,"error"))}function v(e){u.error.interceptedConsole++,d((e||[]).join(" "),"error")}function m(e,n){var t,r,i=!1,o=!1;void 0!==a[s[n].whiteList]&&0<a[s[n].whiteList].length&&(t=g(e[0],a[s[n].whiteList]),i=!0),void 0!==a[s[n].blackList]&&0<a[s[n].blackList].length&&(r=g(e[0],a[s[n].blackList]),o=!0),(!i&&!o||i&&o&&t&&!r||o&&!i&&!r||i&&!o&&t)&&(u[n].interceptedConsole++,d((e||[]).join(" "),n))}function g(n,e){return e.some(function(e){return!!new RegExp("^"+e.replace(/\*/g,"(.*)"),"g").test(n)})}this.initialize=function(){a.recordErrors&&Z.addEventHandler(e,"error",h),!0===a.recordConsoleErrors&&at({error:v}),!0===a.recordConsoleWarn&&at({warn:m}),!0===a.recordConsoleInfo&&at({info:m})},this.stats=function(){return u}}function Qt(r,i,o){var a=0,u={};this.untrack=function(e){try{var n,t;u[e.pageId]=Math.max(u[e.pageId]||1,e.beaconData.sn),i[e.pageId]&&(n=e.beaconData.eventSetId,(t=i[e.pageId][n].events).length&&(a-=e.beaconData.endIndex-e.beaconData.startIndex,t.splice(e.beaconData.startIndex,e.beaconData.endIndex-e.beaconData.startIndex),r.emit("beacon:storageRemoved",e.beaconData.sn),t.length||delete i[e.pageId][n]))}catch(e){logger.error("Failed removing form memory. Exception message:"+e.message,e)}},this.track=function(e){for(var n,t,r=0;r<e.length;r++)0<(n=o-a)&&(t=e[r],i[t.metadata.pageId]=i[t.metadata.pageId]||{},(i[t.metadata.pageId][t.id]=t).events.length<=n?a+=t.events.length:(a=o,t.events.splice(n)))},this.packageEventSets=function(){var e=function(){var e,n,t={sn:{},eventSets:[]};for(e in i)if(i.hasOwnProperty(e))for(n in t.sn[e]=u[e]!==Q?u[e]+1:1,i[e])i[e].hasOwnProperty(n)&&t.eventSets.push(i[e][n]);return t}();return i={},e}}function Yt(l,d,h,logger,v,m,g,p){function y(e,n,t,r,i,o,a){var u,c=!1;e=e||"";var s=h.createXMLHTTPObject(!1,e,a);if(!s)return logger.error("Failed creating an XMLHttpRequest object"),c=!0,void o();function f(){g.reportPostRetry&&r?(r--,v(n,i,!1,s.status),s.status,s.statusText,y(e,n,t,r,i,o)):(s.abort(),p.emit("clsDebug",function(){var e="Failed POST data for Beacon, sn:"+n+", status:"+s.status;s.statusText&&(e+=", statusText:"+s.statusText);s.requestData&&(e+=", ContentLength:"+s.requestData.length);return e}()),c=!0,o())}g.reportAddUriParamAPI&&(t.extraInfo=t.extraInfo||{},t.extraInfo.api=s.report_api||"xhr"),u=d.apply(t.metadata.reportURI,t.metadata,t.sn,t.extraInfo),r===Q&&(r=g.reportMaxRetries),s.onreadystatechange=function(){4===s.readyState?(200===s.status?function(){v(n,i,!0);var e=s.getResponseHeader("Content-Type");e&&-1!==e.indexOf("application/json")&&m(s.response),c=!0,o()}:f)():0===s.readyState&&(g.reportPostRetry&&r?y(e,n,t,--r,i,o):(s.abort(),c=!0,o()))};try{s.open("POST",u,!0),s.onprogress=function(){},s.ontimeout=function(){},s.onerror=function(){},s.withCredentials=!0,l.visitXhr(s),a||!Z.isIE()?s.send(e):setTimeout(function(){-1!==g.reportAbortAfter&&setTimeout(function(){4!==s.readyState&&(s.abort(),c||o())},g.reportAbortAfter);try{s.send(e)}catch(e){logger.error("Failed sending (in) POST request ("+n+") to url "+u+": "+e.message,e)}},0)}catch(e){logger.error("Failed sending POST request ("+n+") to url "+u+": "+e.message,e),c=!0,o()}}this.name="POST",this.config={maxReportSize:g.maxPostReportSize},this.dispatch=function(e,n,t,r,i,o){y(e,t,{metadata:n,sn:t,extraInfo:r},Q,n.pageId,i,o)}}function $t(c,o,s,logger,f,l,d,h){var v=0;function m(e,n,t,r,i,o){try{var a=!1;if(3===v)return d.stop(),void logger.error("Stopped recording after exceeding errors limit");e=e||"";var u=s.createRequest(t);if(!u)return logger.error("Failed creating request object"),v++,a=!0,void o();r===Q&&(r=h.reportMaxRetries),u.onreadystatechange=function(){2===u.readyState?u.success?function(){f(n,i,!0);var e=u.responseContentType;e&&-1!==e.indexOf("application/json")&&l(u.response),a=!0,o()}():h.reportPostRetry&&r?(r--,f(n,i,!1,u.status),m(e,n,t,r,i,o)):(a=!0,o()):3===u.readyState&&(h.reportPostRetry&&r?m(e,n,t,--r,i,o):(a=!0,o()))},-1!==h.reportAbortAfter&&setTimeout(function(){2!==u.readyState&&(u.abort(),a||o())},h.reportAbortAfter),u.send(e,c.getContentType(),h.reportCompress)}catch(e){v++,logger.error("Failed creating or handling request with beacon ("+n+") to url "+t+": "+e.message,e),a=!0,o()}}this.name="ExternalReporter",this.config={maxReportSize:h.maxPostReportSize},this.dispatch=function(e,n,t,r,i){m(e,t,o.apply(n.reportURI,n,t,r),Q,n.pageId,i)}}function Zt(n,t,r){var i="session_breach",o="api_breach";this.handleResponse=function(e){!function(e){if(e)try{e.sessionQuotaBreach?(t.set(i,"true"),r.stop(),n.emit("quotaBreach"),n.emit("clsDebug","quotaBreach activate from gateway handler")):(t.remove(i),r.isStopped()&&r.start()),e.apiCallQuotaBreach?(t.set(o,"true"),n.emit("apiCallBreach"),n.emit("clsDebug","apiCallBreach activate from gateway handler")):(t.remove(o),n.emit("apiCallBreachCanceled"))}catch(e){logger.error("Exception during quota breach handling. Error: "+e.message,e)}}(e)}}function er(t,r){this.handleResponse=function(e,n){!function(e,n){if(e)try{e.clss&&n!==e.clss&&(r(e.clss),t.emit("clsDebug","CLS_S was set by cligate gateway handler"))}catch(e){logger.error("Exception during Setting CLS_S by cligate gateway handler. Error: "+e.message,e)}}(e,n)}}function nr(t,r){this.handleResponse=function(e){!function(e){if(e)try{var n;e.conf&&e.conf.configuration&&e.conf.configuration.remoteConfiguration&&Object.keys(e.conf.configuration.remoteConfiguration).length?(n=e.conf.configuration.remoteConfiguration,r.set("client_conf",Z.Base64.encode(JSON.stringify(n))),t.emit("clientRemoteConfiguration",n)):t.emit("clientRemoteConfiguration")}catch(e){logger.error("Exception during client configuration handling. Error: "+e.message,e)}}(e)}}function tr(t,o,i,e,a,u,c,s,f,l){l=l||{};var d={INIT:0,HELPING:1,READY:2},h=5e3,v="cors_ready",m=[L.cookies.session,L.cookies.visitor],g=l.reportCorsTakeNativeCookies||[],p="prev_native_cookies",n=(l.enableSessionizingByCors||l.supportRemoteClientConfig||e.isCorsReporting())&&!l.reportDisableCors,y=d.INIT,b=-1,w=-1;function E(e,n){for(var t,r=0;r<e.length;r++)(t=u.get(e[r]))&&(e[r]==L.cookies.session&&0,n.push(e[r]+"="+encodeURIComponent(t)))}function r(n){var e=[];if(E(m,e),E(g,e),0!==e.length){var t=o.currentTimestamp();y=d.HELPING;var e=l.reportURI+"?"+e.join("&")+"&pv=2"+(n||!l.enableSessionizingByCors?"&f_cls_s=true":""),r=i();return r.onreadystatechange=function(){if(4===r.readyState){var e;if(b=o.currentTimestamp()-t,w=r.status,200===r.status){if(a.set(v,!0),r.response)try{e=JSON.parse(r.response),c.handleResponse(e.usage),l.supportRemoteClientConfig&&f.handleResponse(e),l.enableSessionizingByCors&&!n&&s.handleResponse(e)}catch(e){logger.error("Failed parsing JSON of response: "+e.message,e),o.isIE()?console.log("Error parsing GET response. If using remote client configuration, plugins will not be initialized."):console.log("%c Error parsing GET response. If using remote client configuration, plugins will not be initialized.","color: white; background: red")}}else r.status;T()}else 0===r.readyState&&T()},r.open("GET",e,!0),r.withCredentials=!0,r.setTimeout=h,r.send(),1}}function C(){try{for(var e=0,n=[],e=0;e<g.length;e++)n.push({key:g[e],value:u.get(g[e])});t.emit("updateSafariQueryString",n)}catch(e){logger.error("Failed handling Safari native cookies. Exception message:"+e.message,e)}}function S(){if(!n)return T();if(l.enableSessionizingByCors)return g.length&&o.isSafari(window.navigator.userAgent)&&C(),I();if(g.length)if(o.isSafari(window.navigator.userAgent))C();else if(l.resetCorsOnNativeCookieChange&&function(){var e,n,t,r=!1,i=[];try{for(t=(t=a.get(p))?JSON.parse(t):[],e=0;e<g.length;e++)n=u.get(g[e]),i.push(n),n!==t[e]&&(r=!0);r&&a.set(p,o.arrayToJsonSafe(i))}catch(e){return void logger.error("Failed detecting native cookies change. Exception message:"+e.message,e)}return r}())return I();return!a.get(v)&&r()?void 0:T()}function T(){y=d.READY,t.emit("corsReady")}function I(e){n&&(t.emit("corsReset"),a.set(v,""),y=d.INIT,w=b=-1,r(e))}this.initialize=function(){t.once("init:loaded",S)},this.onCookieChanged=function(e){y===d.READY&&I(e)},this.stats=function(){return{enabled:n,state:y,requestDuration:b,requestStatus:w}}}function rr(t){var r;this.send=function(e){try{var n=e.eventSets.map(function(e){return e.toJSON?e.toJSON():e});e.eventSets=n,r.postMessage(e)}catch(e){logger.error("error: could not send via port. message:",e.message)}},this.initPorts=function(e){var n=new t.MessageChannel;return(r=n.port1).onmessage=e,n.port2}}function ir(e,n,t){t=Z.optionsWithDefaults(t,{pageNameEnabled:!1});var r,i,o,a,u,c={};function s(){var e=i.resolve();e&&(r=e,c.pageNameCurrent=r,n.emit("pageNameResolved",r))}t.pageNameEnabled?(c.pageName="enabled",o=e,t={selectors:t.pageNameByElements},a=(t=t||{}).selectors||[],u=Z.immutableSet.apply(null,a),i={resolve:function(){for(var e,n=0;n<a.length;n++)if(u[a[n]])try{if(e=o.querySelector(a[n]))return e.textContent}catch(e){u[a[n]]=!1}}},n.once("init:loaded",s),n.on("frame:load",s),n.on("parentWindowInfo",function(e){e.parentPageName&&(r=e.parentPageName,c.pageNameCurrent=r,n.emit("pageNameResolved",r))})):c.pageName="disabled",this.initialize=function(){return!0},this.stats=function(){return c}}function or(){function s(){function e(e){o?I.emit("reportStruggle",e):setTimeout(function(){I.emit("reportStruggle",e)},0)}function n(){u.handlePageLoad()}function p(){u.handleCookieSet()}function y(e){R.handleSubmit(e)}function b(e){R.handleKeyup(e)}function w(e){R.handleFocus(e)}function E(){o=!0,R.handleUnload()}function C(e){a.handleClick(e)}function S(e){c.checkXhr(e)}var T,I,k,t,x,A,r,i,M,o,R,a,u,c;void 0!==Le&&void 0!==Y&&Y.collectStruggles&&Le.registerPlugin("strugglesPlugin",(T=window,I=$,k=j,t=U,x=O,A=F,r=window!==window.top,i=Le.isSessionCookieExist,R={},a=function(e,n,t,r,i){var o=[],a=Yn(i.document);r.domRecordEnabled&&r.interceptAjax&&r.struggleCaptureDeadClick&&(i=function(a,e,r,i,o){var u,n,c=o.deadClickTimeout,s={INPUT:!0,SELECT:!0,TEXTAREA:!0,HTML:!0};if(o.additionalTagNamesToIgnore&&o.additionalTagNamesToIgnore.length)for(n=0;n<o.additionalTagNamesToIgnore.length;++n)s[o.additionalTagNamesToIgnore[n]]=!0;function t(){clearTimeout(u)}e.on("domMutation",t),e.on("segmentChanged",t),e.on("event:change",t),e.on("ajax:send",t),e.on("pageError",t),e.on("event:unload",t),"undefined"!=typeof Element&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var n=this;do{if(n.matches(e))return n}while(null!==(n=n.parentElement||n.parentNode)&&1===n.nodeType);return null}));return{handleClick:function(e){var n,t;clearTimeout(u),s[e.element.tagName]||function(e){var n=a.getComputedStyle(e.element).overflow;if("scroll"===(n=n&&n.toLowerCase())||"auto"===n)try{var t=e.element.getBoundingClientRect(),r=t.right-t.width,i=a.getComputedStyle(e.element).direction;if("ltr"===i){if(e.value.coordinate.x>r+e.element.clientWidth)return 1}else if("rtl"===i&&e.value.coordinate.x<r+t.width-e.element.clientWidth)return 1;var o=t.bottom-t.height;if(e.value.coordinate.y>o+e.element.clientHeight)return 1}catch(e){logger.error("Error while intercepting dead click. Error: "+e.message,e)}}(e)||function(e){try{if(!e.element.closest("a"))return}catch(e){return}return"_blank"==e.element.closest("a").target}(e)||Y.observeRightClick||!e.domEvent||e.domEvent.button||2===e.domEvent.button||(n=e.id,t=e,u=setTimeout(function(){!function(e){var n,t=o.elementsToIgnoreBySelector;if(t&&t.length)for(n=0;n<t.length;++n)if(i.matches(e,t[n]))return 1}(e.element)&&r({element:e.element,dataToEncode:{type:"deadClick",eventRelatedId:n},relatedEvent:t})},c))}}}(i,n,t,a,{deadClickTimeout:r.struggleDeadClickInterval||1e3,elementsToIgnoreBySelector:r.struggleDeadClickIgnoreBySelector||[],additionalTagNamesToIgnore:r.struggleDeadClickIgnoreByTagNames||[]}),o.push(Z.gbBind(i.handleClick,i)));a=function(r,i,o,e){var a,u=e.timeBetweenClicks||3e3,c=e.minimumClicksToRage||5,s=e.elementsToIgnoreBySelector||[],f={},l=1;return{handleClick:function(n){if(0<s.length)for(var e=0;e<s.length;e++)if(o.matches(n.element,s[e]))return;var t=r.idOf(n.element);f[t]?(f[t].times.push({time:n.timestamp,eventId:n.id}),f[t].times.length>=c&&(f[t].times=f[t].times.filter(function(e){return n.timestamp-e.time<u})),f[t].times.length>=c?(n.indexInRage=c+f[t].count,n.rageSequence=l,f[t].isRage||i({element:n.element,dataToEncode:{type:"rageClick",startEventRelatedId:f[t].times[0].eventId,endEventRelatedId:n.id,rageSequence:l},relatedEvent:n}),f[t].isRage=!0,f[t].count=f[t].count+1):f[t].isRage&&((f={})[t]={},f[t].times=[],f[t].times.push({time:n.timestamp,eventId:n.id}),f[t].count=0,++l)):(f[t]={},f[t].times=[],f[t].times.push({time:n.timestamp,eventId:n.id}),f[t].count=0),a&&f[a]&&f[a].isRage&&!f[t].isRage&&(f[a].isRage=!1,f[a].count=0,++l),a=t}}}(e,t,a,{timeBetweenClicks:r.struggleRageClickInterval,minimumClicksToRage:r.struggleRageClickMinCount,elementsToIgnoreBySelector:r.struggleRageClickIgnoreBySelector});o.push(Z.gbBind(a.handleClick,a)),r.struggleCaptureErrorClick&&(r=function(e,r,n){var i,o,a=[],u=n.errorClickTimeout;return e.on("pageError",function(e){i&&(e.eventLimitExceeded=!1,a.push(e.error),o=!0)},Q,-1),{handleClick:function(e){clearTimeout(i);var n=e.id,t=e;i=setTimeout(function(){o&&(o=!1,r({element:e.element,dataToEncode:{eventRelatedId:n,type:"errorClick"},errors:a,relatedEvent:t}),a=[])},u)}}}(n,t,{errorClickTimeout:r.struggleErrorClickInterval||1e3}),o.push(Z.gbBind(r.handleClick,r)));return{handleClick:function(n){o.forEach(function(e){e(n)})}}}(k,I,e,M=Y,T),u=function(t,e,n){var r=!1,i=!1,o=!1;function a(){n()&&r&&!i&&e({element:K,dataToEncode:{type:"backForward"}})}function u(){n()&&o&&e({element:K,dataToEncode:{type:"reload"}})}return{handlePageLoad:function(){!function(){var e=t.performance.getEntriesByType?t.performance.getEntriesByType("navigation"):[];if(0<e.length)for(var n=0;n<e.length;n++){if("reload"===e[n].type)return o=!0,u();if("back_forward"===e[n].type)return r=!0,a()}t.performance.navigation&&t.PerformanceNavigation&&(t.performance.navigation.type===t.PerformanceNavigation.TYPE_RELOAD&&(o=!0,u()),t.performance.navigation.type===t.PerformanceNavigation.TYPE_BACK_FORWARD&&(r=!0,a()))}()},handleCookieSet:function(){a(),u()}}}(T,e,i),c=function(n){return{checkXhr:function(e){(0===e.status||400<=e.status)&&n({elementSelector:e.lastFocusedSelectorInfo,cssSelector:e.lastFocusedCSSSelectorInfo,dataToEncode:{type:0===e.status?e.aborted?"ajaxAborted":"ajaxCanceled":"ajaxError",xhrStatus:e.status,url:e.url,sn:e.sn}})}}}(e),r=function(t,r,e,i){i=Z.optionsWithDefaults(i,{horizontalScrollbar:!0,blankPage:!0});var o=0,a=!0;function u(e,n){n.struggleHorizScrollCount=n.struggleHorizScrollCount||0,n.struggleHorizScrollCount<3&&o<5&&e&&e.nodeType===Node.ELEMENT_NODE&&e.firstElementChild&&function(e){if(e.scrollWidth>e.clientWidth){e=t.getComputedStyle(e);return"scroll"===e.overflow||"scroll"===e.overflowX||"auto"===e.overflow||"auto"===e.overflowX}}(e)&&Z.isVisible(e)&&Z.isInPageView(e)&&(n.struggleHorizScrollCount++,o++,r({element:e,dataToEncode:{type:"horizontalScrollbar"}}))}return e.on("pageSnapshot:report",function(){a&&i.blankPage&&r({dataToEncode:{type:"blankPage"}})}),{handleNode:function(e,n){i.horizontalScrollbar&&u(e,n),i.blankPage&&(n=e,a&&n&&n.nodeType===Node.TEXT_NODE&&((e=n.textContent)&&e.trim()&&Z.isVisible(n.parentNode)&&(a=!1)))}}}(T,e,I,{horizontalScrollbar:M.struggleCaptureHorizontalScrollbar,blankPage:!r&&M.struggleCaptureBlankPage}),t.setListener(r.handleNode),{initialize:function(){function u(e){for(;e;){if("FORM"===e.tagName)return Z.isVisible(e)?e:null;e=e.parentNode||e.host}return null}var c,i,s,o,a,f,l,r,d,h,v,m,t,g;I.once("init:loaded",n),I.on("event:click",C),I.on("rightclick",C),I.on("ajax:end",S),I.once("sessionCookieSet",p),I.once("plugin:sessionCookieSet",p),M.collectFormStruggles&&(c=T,i=k,s=e,o=x,a=A,f={maxFocusTime:M.struggleMaxLongFocusTime,struggleUncompletedFormMinFields:M.struggleUncompletedFormMinFields},r={},d={},m=v=h=null,t={},g=f.maxFocusTime||3e4,R={handleSubmit:function(e){var n,t;(n=u((t=e).element))&&(t=i.idOf(n),n&&d[t]&&delete d[t]),(t=u((n=e).element))&&(e=i.idOf(t),r[e]?(r[e].count=++r[e].count,r[e].endEventId=n.id,r[e].relatedEvent=n):r[e]={count:1,startEventId:n.id,relatedEvent:n},1<r[e].count&&s({element:t,dataToEncode:{type:"formResubmitted",count:r[e].count,startEventRelatedId:r[e].startEventId,endEventRelatedId:r[e].endEventId},relatedEvent:r[e].relatedEvent}))},handleKeyup:function(e){var n;"INPUT"!==(n=e).element.tagName&&"TEXTAREA"!==n.element.tagName||((e=n.element)._gbMaxChars&&!t[i.idOf(e)]&&(t[i.idOf(e)]=!0,s({element:e,dataToEncode:{type:"inputCharsExceeded",eventRelatedId:n.id},relatedEvent:n})),n=parseInt(e.getAttribute("maxLength")),e._gbMaxChars=n<=e.value.length)},handleFocus:function(e){var n,t,r;(t=u((r=e).element))&&(n=i.idOf(t),t.querySelectorAll("input:not([type]), input[type=text], textarea").length<f.struggleUncompletedFormMinFields||d[n]||(d[n]={selector:o.getSelectorInfo(t),cssSelector:a.getSelectorInfo(t),eventId:r.id,relatedEvent:r})),function(e){var n,t,r,i,o=u(e.element),a=e.element;if("radio"===a.type){if(a.name===m)return;m=a.name}else m=null;h&&o===v&&(h&&a.getAttribute("tabindex")&&h.getAttribute("tabindex")&&a.getAttribute("tabindex")<h.getAttribute("tabindex")?s({element:a,dataToEncode:{type:"formZigzag",reason:"tabindex",eventRelatedId:e.id},relatedEvent:e}):(n=a.getBoundingClientRect(),t=h&&h.getBoundingClientRect(),r=n.top-t.top==0,n.top-t.top<0?s({element:a,dataToEncode:{type:"formZigzag",reason:"vertical",eventRelatedId:e.id},relatedEvent:e}):(i="rtl"===c.getComputedStyle(a).getPropertyValue("direction")||"rtl"===c.getComputedStyle(K.body).getPropertyValue("direction"),r&&!i&&n.left-t.left<0?s({element:a,dataToEncode:{type:"formZigzag",reason:"horizontal",eventRelatedId:e.id},relatedEvent:e}):r&&i&&0<n.right-t.right&&s({element:a,dataToEncode:{type:"formZigzag",reason:"horizontal-rtl",eventRelatedId:e.id},relatedEvent:e})))),v=o,h=a}(e),e=(r=e).extraInfo&&Math.floor(r.extraInfo.focusTime||0),g<e&&s({element:h,dataToEncode:{type:"longFocusTime",duration:e,eventRelatedId:r.id},relatedEvent:l}),l=r},handleUnload:function(){!function(){for(var e in d)d.hasOwnProperty(e)&&s({elementSelector:d[e].selector,cssSelector:d[e].cssSelector,dataToEncode:{type:"uncompletedForm",eventRelatedId:d[e].eventId},relatedEvent:d[e].relatedEvent})}()}},I.on("event:submit",y),I.on("event:keyup",b),I.on("event:elementChange",w),I.on("event:unload",E))}}))}function f(){var e,n,t,r,i,o;function a(){return parseInt(r.get("xhr.cnt")||"0")}void 0!==Le&&void 0!==Y&&Y.interceptAjax&&(e={allow:function(){return!0}},-1!==Y.ajaxRecordSessionLimit&&(window,t=$,r=D,i=Y.ajaxRecordSessionLimit,o=i<=a(),e={allow:function(){var e=a(),n=++e<=i;return n||o||(t.emit("ajax:limitReached"),o=!0),r.set("xhr.cnt",e),n}}),n=new Nn(new Rn,{requestRules:Y.ajaxMaskRequestBody,responseRules:Y.ajaxMaskResponseBody}),Le.registerPlugin("ajaxInterceptor",new Xt(window,je,$,O,F,e,n,K.location.host,ne,Y,["adrum","dynatrace","appdynamics.com","tealeaf","/retail/discountinternet/portal/coex.asmx/keepalive","oauth/cc"])))}function l(){var e,n,t,r,i,o,a,u,c;function s(){return!("value"!==this.accessor||!t.isDomMasked(this.elem,We.SELF,qe.VALUE_ATTRIBUTE))||(!!t.isDomMasked(this.elem,We.SELF_OR_ANY_PARENT,qe.OMIT)||!(!a[this.accessor]||!u[this.elem.tagName.toLowerCase()]||this.elem.hasAttribute&&this.elem.hasAttribute(c)))}function f(){if(t.isDomMasked(this.elem,We.SELF_OR_ANY_PARENT,qe.OMIT))return!0;if(i&&"value"===this.accessor){if(o.valueMaskIgnoreAttribute&&this.elem&&this.elem.nodeType===Node.ELEMENT_NODE&&this.elem.hasAttribute(o.valueMaskIgnoreAttribute))return!1;if(i.isCensored(this.elem))return!0}return("innerText"!==this.accessor&&"textContent"!==this.accessor&&"innerHTML"!==this.accessor&&"outerHTML"!==this.accessor||!c||!function(e){for(;e;){if(e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute(c))return 1;e=e.parentNode}}(this.elem))&&(!("innerText"!==this.accessor&&"textContent"!==this.accessor||!(t.isDomMasked(this.elem,We.SELF_OR_ANY_CHILD,qe.TEXT)||t.isDomMasked(this.elem,We.SELF_OR_ANY_PARENT,qe.TEXT)||r.isDomEncrypted(this.elem,We.SELF_OR_ANY_CHILD)||r.isDomEncrypted(this.elem,We.SELF_OR_ANY_PARENT)))||(!("innerHTML"!==this.accessor||!(t.isDomMasked(this.elem,We.SELF_OR_ANY_CHILD,qe.TEXT,qe.ATTRIBUTE)||t.isDomMasked(this.elem,We.SELF_OR_ANY_PARENT,qe.TEXT,qe.ATTRIBUTE)||r.isDomEncrypted(this.elem,We.SELF_OR_ANY_CHILD)||r.isDomEncrypted(this.elem,We.SELF_OR_ANY_PARENT)))||!("outerHTML"!==this.accessor||!(t.isDomMasked(this.elem,We.SELF_OR_ANY_CHILD,qe.TEXT,qe.ATTRIBUTE)||t.isDomMasked(this.elem,We.SELF_OR_ANY_PARENT,qe.TEXT,qe.ATTRIBUTE)||r.isDomEncrypted(this.elem,We.SELF_OR_ANY_CHILD)||r.isDomEncrypted(this.elem,We.SELF_OR_ANY_PARENT)))))}function l(){return!!t.isDomMasked(this.elem,We.SELF_OR_ANY_PARENT,qe.OMIT)}Y.clientAttributesEnabled&&void 0!==Le&&(e=Le.plugins.domRecordingPlugin&&Le.plugins.domRecordingPlugin.getDomMasker()||{isDomMasked:function(){return!1}},n=Le.plugins.domRecordingPlugin&&Le.plugins.domRecordingPlugin.getDomEncryptor()||{isDomEncrypted:function(){return!1}},Le.registerPlugin("attributePlugin",new Li($,new _i(window,$,Fi,Yn(window.document),(t=e,r=n,i=B,o={domMaskedAttributes:Y.domMaskedAttributes,domMaskAttributesByTag:Y.domMaskAttributesByTag,domMaskIgnoreAttribute:Y.domMaskIgnoreAttribute,valueMaskIgnoreAttribute:Y.valueMaskIgnoreAttribute},a=Z.immutableSet.apply(null,o.domMaskedAttributes),u=Z.immutableSet.apply(null,o.domMaskAttributesByTag),c=o.domMaskIgnoreAttribute,{attribute:function(e,n){return{accessor:n,elem:e,val:e.getAttribute&&e.getAttribute(n),isMasked:s}},property:function(e,n){return{accessor:n,elem:e,val:""+(e[n]||""),isMasked:f}},constant:function(e,n){return{elem:e,val:n,isMasked:l}}}),{clientAttributeMaxLength:Y.clientAttributeMaxLength,clientAttributeFuseWaitTime:Y.clientAttributeFuseWaitTime,clientAttributeMaxMutations:Y.clientAttributeMaxMutations}))))}function d(){var e;void 0!==Le&&window===window.top&&Y.devToolsDetectionEnabled&&!Z.isMobile()&&(e=navigator.userAgent,e=/firefox/i.test(e)?new vi(window,$):Z.isChromeDesktop()&&function(e){if((e=(e=e.toLowerCase()).split("chrome/"))[1]){e=e[1].split(".")[0],e=parseInt(e);return"number"==typeof e&&89<=e}}(e)?new gi(window,$,Y.devToolsDetectionWorkerTimeout):new mi(window,$,{consoleMessage:Y.devToolsDetectionMessage}),Le.registerPlugin("devToolsTrackingPlugin",new pi(e)))}function h(){var a,u;void 0!==Le&&Y.iframesRecordEnabled&&(a=function(e){return""+j.idOf(e)},u=function(e,n,t,r){if((r=r||{}).directChannel)return ti(e,n,t);var i;if(r.directChannelWhenUriContainer)for(i=0;i<r.directChannelWhenUriContainer.length;i++)if(0<=e.location.href.indexOf(r.directChannelWhenUriContainer[i]))return ti(e,n,t);return function(t){var r=[];return{name:"postMessage",sendMessageWithTransferable:function(e,n,t){var r=n.value.transferable;return delete n.value.transferable,e.postMessage(n,t,[r])},sendMessage:function(e,n,t){return e.postMessage(n,t)},onMessage:function(n){function e(e){n(e)&&e.stopImmediatePropagation()}return r.push(e),Z.addEventHandler(t,"message",e)},close:function(){for(var e=0;e<r.length;e++)t.removeEventListener("message",r[e]);r=[]}}}(e)}(window,Le,C,{directChannel:Y.iframesDirectChannel,directChannelWhenUriContainer:Y.iframesDirectChannelWhenUriContains}),Le.registerPlugin("iframes",function(){li($,Le.blackoutManager,{suspendReportingWhenLocationContains:Y.iframesBlackoutWhenLocationContains});var e=new di($),n=new ai(window,u,Y.iframesParentOrigin),t=new oi(window,u),r=new ci($,function(){return Le.plugins.domRecordingPlugin},Z.gbBind(Le.savePageUpdate,Le),Le.blackoutManager,e,function(e){$.emit("parentWindowInfo",e)},function(e){$.emit("iframePortReceived",e)},Le.asStoppable()),i="iframe",o="object[type='text/html'],object[data$='.htm'],object[data$='.html']";return Y.framesetRecordEnabled&&Y.htmlObjectRecordEnabled?i+=",frame,"+o:Y.framesetRecordEnabled?i+=",frame":Y.htmlObjectRecordEnabled&&(i+=","+o),new hi(window,$,e,new si(K,$,Y.framesetRecordEnabled,Y.htmlObjectRecordEnabled,i),new ri(window,K,$,j),L.detectorScript?new ii(K,Y,L.detectorScript,C,{skipHidden:Y.iframesSkipHidden,forceDirectChannel:"direct"===u.name,skipWhenLocationContains:Y.iframesSkipWhenLocationContains,injectionMode:Y.iframesAutoInjectMode,injectIframesAboutBlank:Y.injectIframesAboutBlank}):Q,new ui(window,n,t,r,{disabled:Y.iframesDisableNotifications},i),Le.blackoutManager,new fi(K,Le.page,Le.blackoutManager,n,t,a,Le,{mscTimeout:Y.iframesHandshakeTimeout},i),0,a,function(e,n,t){t=t||{containerIdKey:"containerId",parentPageIdKey:"pageId"};var r,i,o,a=!1;function u(){a||(o[t.containerIdKey]&&r.setExtraInfo(t.containerIdKey,o[t.containerIdKey]),o[t.parentPageIdKey]&&r.setExtraInfo(t.parentPageIdKey,o[t.parentPageIdKey]),i(),a=!0)}return e.on("event:unload",function(){r&&(o={},u())},Q,-100),n.documentEventHook=function(e,n){r=e,i=n,o&&u()},function(e,n){o={parentPageId:e,containerId:n},r&&i&&u()}}($,Le,{parentPageIdKey:vn.prototype.PARENT_PAGE_ID,containerIdKey:vn.prototype.CONTAINER_ID}),{skipHidden:Y.iframesSkipHidden,autoInject:Y.iframesAutoInject})}()))}this.init=function(){var e,n,t,r,i,o,a,u,c;void 0!==Le&&Y.useExtension&&Z.isChromeDesktop()&&Le.registerPlugin("extensionManager",new ht(window,Le,$,0,Y)),void 0!==Le&&(r=[],e=function(e){if(window.performance&&window.performance.getEntriesByType)for(var n,t=window.performance.getEntriesByType("resource"),r=0;r<t.length;++r)!t[r]||(n=(t[r].name||"").split("?")[1])&&e(t[r].name,n)},Y.interceptThirdPartyAttributes&&r.push(new xt($,e)),Y.SCIntegration&&(Y.SCIntegrationURLsContainList||[]).length&&(Y.SCIntegrationKeyList||[]).length&&r.push(new At($,e,{urlTokens:Y.SCIntegrationURLsContainList,keys:Y.SCIntegrationKeyList})),(Y.interceptThirdPartyAttributes||Y.SCIntegration&&(Y.SCIntegrationURLsContainList||[]).length&&(Y.SCIntegrationKeyList||[]).length||Y.interceptAjax&&(Y.interceptABTesting||Y.enableOptimizelyIntegration)||Y.enableAdobeAnalyticsIntegration||Y.enableGoogleAnalyticsIntegration)&&Le.registerPlugin("SCIntegration",new Lt(window,K,$,r,je,{interceptABTesting:Y.interceptABTesting,interceptAdobeABEvent:Y.interceptAdobeABEvent,enableOptimizelyIntegration:Y.enableOptimizelyIntegration,optimizelyCheckOnSegmentLoad:Y.optimizelyCheckOnSegmentLoad,optimizelyUrl:Y.optimizelyUrl,abTestingGlobalObject:Y.abTestingGlobalObject,enableAdobeAnalyticsIntegration:Y.enableAdobeAnalyticsIntegration,adobeRsid:Y.adobeRsid,interceptAjax:Y.interceptAjax,adobeEVarNumber:Y.adobeEVarNumber,adobeAPIMaxAttempts:Y.adobeAPIMaxAttempts,enableGoogleAnalyticsIntegration:Y.enableGoogleAnalyticsIntegration,googleDimensionIndex:Y.googleDimensionIndex,googleAPIMaxAttempts:Y.googleAPIMaxAttempts,gaMeasurementId:Y.googleMeasurementId,interceptGAABTesting:Y.interceptGAABTesting}))),void 0!==Le&&(i=[],Y.domRecordEnabled?i.push("domTrackingStarted"):i.push("init:loaded"),Y.captureGlobalObjectsOnSegmentChange&&i.push("segmentChanged"),Le.registerPlugin("ObjectCapture",new _t(window,$,Ft,i,{paths:Y.captureGlobalObjects||[],captureEmptyStrings:Y.captureGlobalObjectsEmptyStrings,useFullPath:Y.useFullPathForObjectCapturing}))),void 0!==Le&&Y.collectVoc&&Le.registerPlugin("VoCIntegration",new Bt(window,$,{vocObjectMap:Y.vocObjectMap,collectUsabillaVoc:Y.collectUsabillaVoc,waitForUsabillaObj:Y.waitForUsabillaObj,interceptUsabillaUrl:Y.interceptUsabillaUrl})),void 0!==Le&&Le.registerPlugin("workerLoader",new Ut(self,$,Y)),f(),void 0!==Le&&Le.registerPlugin("errors",new Kt(window,$,Y)),void 0!==Le&&Le.registerPlugin("naming",new ir(K,$,{pageNameEnabled:Y.pageNameResolvingEnabled,pageNameByElements:Y.pageNameResolvingByElements||[]}));try{void 0!==Le&&(u=new ft({},function(e,n,t,r){t?($.emit("removeFromStorage",{pageId:e,beaconData:n}),$.emit("beacon:sent",n.sn)):$.emit("beacon:failed",{sn:n.sn,status:r})}),c=function(e){$.emit("handleGatewayResponse",e)},o=En(g,navigator,_,R.isCorsReporting(),Y),c=Y.externalReporting?new $t(o,new $n($,L.detectorVersion,Y.reportAddUriParams,!0),window[Y.externalReporterObject],logger,Z.gbBind(u.onReporterMessage,u),c,Le.asStoppable(),Y):Y.reportByPost||Y.domRecordEnabled||"undefined"==typeof createHttpGetReporter?new Yt(o,new $n($,L.detectorVersion,Y.reportAddUriParams,!0),De,logger,Z.gbBind(u.onReporterMessage,u),c,Y,$):createHttpGetReporter(),Le.registerPlugin("reporter",new ei($,o,u,c,Y)))}catch(e){}Y.isDetectorDom&&(void 0!==Le&&Le.registerPlugin("eventsDetectionPlugin",new Hi(window,K,$,B,ee,0,Y)),void 0!==Le&&Y.domRecordEnabled&&(Y.valueMaskingMode,L.censorMode.WhiteList,Y.domMaskingMode,L.censorMode.WhiteList,t={},r=lr(),i=new hr($,P,ee,An(),{domEncryptIds:Y.domEncryptById,domEncryptClasses:Y.domEncryptByClass}),o=new Hr(window,$,j,B,U,r,i,t,Y),!Y.startMutationObserverOnLoad&&Y.domTamperingDetectionEnabled&&(a=Yr(window,$,K,o.isNodeAccepted,{semiDomEnabled:Y.semiDomEnabled,domIE11ForceMutationObserver:Y.domIE11ForceMutationObserver,domForceIEMutationEventsHandler:Y.domForceIEMutationEventsHandler,domTamperingDetectionEnabled:Y.domTamperingDetectionEnabled,domThrottle:Y.domThrottleChanges,domThrottleIEOnly:Y.domThrottleChangesIE11Only,delayDomMutationEvent:Y.delayDomMutationEvent,domFilterAttributes:Y.domFilterAttributes,domIgnoreAttributes:Y.domIgnoreAttributes,domIgnoreChangesById:Y.domIgnoreChangesById,domIgnoreChangesByClass:Y.domIgnoreChangesByClass,domOmitInvisibleElements:Y.domOmitInvisibleElements,handleAttributeMutationsAsChunks:Y.handleAttributeMutationsAsChunks,ignoreMutationsOnNotAttachedElements:Y.ignoreMutationsOnNotAttachedElements,characterDataOnly:!0,reinstateNativeMutationObserver:Y.reinstateNativeMutationObserver})),u=Yr(window,$,K,o.isNodeAccepted,{semiDomEnabled:Y.semiDomEnabled,domIE11ForceMutationObserver:Y.domIE11ForceMutationObserver,domForceIEMutationEventsHandler:Y.domForceIEMutationEventsHandler,domTamperingDetectionEnabled:Y.domTamperingDetectionEnabled,domThrottle:Y.domThrottleChanges,domThrottleIEOnly:Y.domThrottleChangesIE11Only,delayDomMutationEvent:Y.delayDomMutationEvent,domFilterAttributes:Y.domFilterAttributes,domIgnoreAttributes:Y.domIgnoreAttributes,domIgnoreChangesById:Y.domIgnoreChangesById,domIgnoreChangesByClass:Y.domIgnoreChangesByClass,domOmitInvisibleElements:Y.domOmitInvisibleElements,handleAttributeMutationsAsChunks:Y.handleAttributeMutationsAsChunks,ignoreMutationsOnNotAttachedElements:Y.ignoreMutationsOnNotAttachedElements,reinstateNativeMutationObserver:Y.reinstateNativeMutationObserver}),c=function(e,n){for(var t=0;t<n.length;t++)if(-1!==e.indexOf(n[t]))return!0;return!1}(K.location.href,Y.domPartialWhenLocationContains||[]),Le.registerPlugin("domRecordingPlugin",new Zr(window,$,u,a,o,j,r,i,0,B,0,function(e,n){Le.saveClsDebugErrorEvent("domPlugin",{name:n,message:e})},t,{triggers:Y.domNewPageTriggers,ajaxTriggers:Y.domNewPageAjaxTriggers,onLoadTimeoutReport:Y.domStartAfter,updateOnWsCount:Y.domUpdateEveryWsMsgIn,compressionEnabled:Y.domCompress,ignoredFormElements:Y.domIgnoredFormElements,recordCssRules:Y.domRecordCssRules,recordCssProps:Y.domRecordCssProps,maskCookies:Y.maskCookies,recordShadowDom:Y.recordShadowDom,preciseStyleSheetCloning:Y.domPreciseStyleSheetCloning,includeSelectorOnUpdate:Y.domIncludeSelectorOnUpdate,removeBase64ImageDataTagNames:Y.removeBase64ImageDataTagNames,recordAnimation:Y.recordAnimation,recordCanvas:Y.recordCanvas,enableAdoptedCss:Y.enableAdoptedCss,snapshotImmediatePages:Y.snapshotImmediatePages,snapshotWaitForElement:Y.snapshotWaitForElement,delaySnapshotAfterElementFound:Y.delaySnapshotAfterElementFound,checkVisibility:Y.checkVisibility,reTakeSnapshotAfterTime:Y.reTakeSnapshotAfterTime,elMustBeShown:Y.snapshotWaitForElementMustShown,allowWaitForElementsUrls:Y.allowWaitForElementsUrls,encodeReferrer:Y.enableEncodeSnapshotReferrer,setSelectorToAttributes:Y.setSelectorToAttributes,startMutationObserverOnLoad:Y.startMutationObserverOnLoad,snapshotAsync:Y.snapshotAsync,visitorAsyncMaxChunkTime:Y.visitorAsyncMaxChunkTime,domRecordStyleAttributes:Y.domRecordStyleAttributes}))),void 0===Le||void 0===Y||Z.isMobile()||!Y.domTamperingDetectionEnabled||"undefined"==typeof MutationObserver&&"undefined"==typeof WebKitMutationObserver||Le.registerPlugin("domTamperingPlugin",new ni(window,$,j,{graceTime:Y.domTamperingGraceTime,domTamperingIgnorePages:Y.domTamperingIgnorePages,ignorableTags:Y.domTamperingIgnorableTags})),h(),s(),d(),Y.recordShadowDom&&Y.domRecordEnabled&&window.ShadowRoot&&(n=new Qn(Y),Le.registerPlugin("shadowDomPlugin",new wi(window,0,$,B,Le.plugins.domRecordingPlugin,n,{semiDomEnabled:Y.semiDomEnabled,domIgnoredFormElements:Y.domIgnoredFormElements,domIE11ForceMutationObserver:Y.domIE11ForceMutationObserver,domForceIEMutationEventsHandler:Y.domForceIEMutationEventsHandler,domTamperingDetectionEnabled:Y.domTamperingDetectionEnabled,domFilterAttributes:Y.domFilterAttributes,domIgnoreAttributes:Y.domIgnoreAttributes,domIgnoreChangesById:Y.domIgnoreChangesById,domIgnoreChangesByClass:Y.domIgnoreChangesByClass,handleAttributeMutationsAsChunks:Y.handleAttributeMutationsAsChunks,ignoreMutationsOnNotAttachedElements:Y.ignoreMutationsOnNotAttachedElements,reinstateNativeMutationObserver:Y.reinstateNativeMutationObserver}))),void 0!==Le&&window.performance&&void 0!==window.performance.getEntriesByType&&void 0!==window.MutationObserver&&Le.registerPlugin("resourceRecorderPlugin",new Ti(window,$,new cr(Z.Base64),Y)),void 0!==Le&&Le.registerPlugin("webVitalsPlugin",new ki($,Y.webVitalsReportTimeout)),Y.reportValidationErrors&&Le.plugins.domRecordingPlugin&&Le.registerPlugin("formValidationPlugin",new Ai(window,$,j,Le.plugins.domRecordingPlugin.getNodeVisitor(),{domFormValidationTracking:Y.domFormValidationTracking,redComponentMin:Y.domFormValidationRedComponentMin,redComponentDelta:Y.domFormValidationRedComponentDelta,submitIds:Y.domFormValidationSubmissionIds,submitSelectors:Y.domFormValidationSubmissionSelectors,allowFormLevel:Y.domFormViolationsAllowFormLevel,considerBG:Y.domFormValidationConsiderBG,additionalTagNames:Y.domFormValidationAdditionalTagNames,ignorableText:Y.domFormValidationIgnorableText,ignorableTags:Y.domFormValidationIgnorableTags,ignorablePages:Y.domFormValidationIgnorePagesPredicates,urlsRegexToCheck:Y.domFormValidationCheckUrls,titleRegexStringToCheck:Y.domFormValidationTitlesToCheck,html5FormValidation:Y.html5FormValidation})),Y.domFormAnalysisReporting&&Le.registerPlugin("formAnalysisPlugin",new Oi(window,$,j)),l(),void 0!==Le&&(t=new Zn(window.localStorage,{keysPrefix:L.Storage.UnboundKeyPrefix}),n=new cr(Z.Base64),Le.registerPlugin("gatewayPlugin",new Vi($,{configuration:new Pi($,n,t),aid:Y.reportPreferSendBeaconAPI&&Wn.isSupported()?{handle:function(){}}:new Bi($,window.sessionStorage),commands:new ji,clse:new Ui($,n,t)}))))}}function ar(e){!function(e){"use strict";var t,n,r=function(){return"".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)},c=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return{name:e,value:n,delta:0,entries:[],id:r(),isFinal:!1}},s=function(e,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var t=new PerformanceObserver(function(e){return e.getEntries().map(n)});return t.observe({type:e,buffered:!0}),t}}catch(e){}},i=!1,o=!1,a=function(e){i=!e.persisted},u=function(){addEventListener("pagehide",a),addEventListener("beforeunload",function(){})},f=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];o||(u(),o=!0),addEventListener("visibilitychange",function(e){var n=e.timeStamp;"hidden"===K.visibilityState&&t({timeStamp:n,isUnloading:i})},{capture:!0,once:e})},l=function(e,n,t,r){var i;return function(){t&&n.isFinal&&t.disconnect(),n.value>=0&&(r||n.isFinal||"hidden"===K.visibilityState)&&(n.delta=n.value-(i||0),(n.delta||n.isFinal||void 0===i)&&(e(n),i=n.value))}},d=function(){return void 0===t&&(t="hidden"===K.visibilityState?0:1/0,f(function(e){var n=e.timeStamp;return t=n},!0)),{get timeStamp(){return t}}},h=function(){return n||(n=new Promise(function(n){return["scroll","keydown","pointerdown"].map(function(e){addEventListener(e,n,{once:!0,passive:!0,capture:!0})})})),n};e.getCLS=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=c("CLS",0),i=function(e){e.hadRecentInput||(r.value+=e.value,r.entries.push(e),t())},o=s("layout-shift",i);o&&(t=l(e,r,o,n),f(function(e){var n=e.isUnloading;o.takeRecords().map(i),n&&(r.isFinal=!0),t()}))},e.getFCP=function(e){var n,t=c("FCP"),r=d(),i=s("paint",function(e){"first-contentful-paint"===e.name&&e.startTime<r.timeStamp&&(t.value=e.startTime,t.isFinal=!0,t.entries.push(e),n())});i&&(n=l(e,t,i))},e.getFID=function(e){var t=c("FID"),r=d(),n=function(e){e.startTime<r.timeStamp&&(t.value=e.processingStart-e.startTime,t.entries.push(e),t.isFinal=!0,o())},i=s("first-input",n),o=l(e,t,i);i?f(function(){i.takeRecords().map(n),i.disconnect()},!0):window.perfMetrics&&window.perfMetrics.onFirstInputDelay&&window.perfMetrics.onFirstInputDelay(function(e,n){n.timeStamp<r.timeStamp&&(t.value=e,t.isFinal=!0,t.entries=[{entryType:"first-input",name:n.type,target:n.target,cancelable:n.cancelable,startTime:n.timeStamp,processingStart:n.timeStamp+e}],o())})},e.getLCP=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=c("LCP"),i=d(),o=function(e){var n=e.startTime;n<i.timeStamp?(r.value=n,r.entries.push(e)):r.isFinal=!0,t()},a=s("largest-contentful-paint",o);if(a){t=l(e,r,a,n);var u=function(){r.isFinal||(a.takeRecords().map(o),r.isFinal=!0,t())};h().then(u),f(u,!0)}},e.getTTFB=function(n){var e,t=c("TTFB");e=function(){try{var e=performance.getEntriesByType("navigation")[0]||function(){var e=performance.timing,n={entryType:"navigation",startTime:0};for(var t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n}();t.value=t.delta=e.responseStart,t.entries=[e],t.isFinal=!0,n(t)}catch(e){}},"complete"===K.readyState?setTimeout(e,0):addEventListener("pageshow",e)},Object.defineProperty(e,"__esModule",{value:!0})}(e.webVitals={})}function ur(e,t,n,r,i,o){var a;function u(e){if(e)for(var n in e)"hash"!==n&&(o[n]=e[n])}e.detectorScript&&e.detectorScript.src&&o.configPath&&(function(){var e,n=t.get("js.conf");if(n)try{e=r.decode(n),a=e.hash,u(e)}catch(e){logger.error("failed parsing JSON of external configuration: "+e.message,e)}}(),e=Z.extractOrigin(e.detectorScript.src),n(Z.joinPath(e,o.configPath),function(e){var n;try{n=JSON.parse(e)}catch(e){return void logger.error("Failed parsing external configuration JSON: "+e.message,e)}void 0!==a&&void 0!==n.hash&&a===n.hash||(t.set("js.conf",r.encode(n)),u(n),a=n.hash)},function(e){i.emit("clsDebug",e)}))}function cr(n){this.encode=function(e){return e.constructor===Array?n.encode(Z.arrayToJsonSafe(e)):n.encode(JSON.stringify(e))},this.decode=function(e){return JSON.parse(n.decode(e))}}function sr(e,f){var n=(e=e||{}).domMaskingMode===L.censorMode.WhiteList,t=e.valueMaskingMode===L.censorMode.WhiteList;function r(e,n,t,r,i,o){var a,u,c=[],s=[];if(t)for(a=0;a<t.length;a++)s.push(t[a]);if(e)for(a=0;a<e.length;a++)1===(c=(u=CSS.escape(e[a])).split("\\*")).length?s.push("#"+u):2===c.length||3===c.length?s.push(sr.prepareWildCardSelector(c,"id")):f.printErrorMsg("more than two wildcards in id list");if(n)for(a=0;a<n.length;a++)1===(c=(u=CSS.escape(n[a])).split("\\*")).length?s.push("."+u):2===c.length||3===c.length?s.push(sr.prepareWildCardSelector(c,"class")):f.printErrorMsg("more than two wildcards in class list");if(0===s.length)return o&&i?(s.push("["+i+"]"),s):null;if(r)return s.map(function(e){var n=e.split("][");return 2===n.length?":not("+n[0]+"]):not(["+n[1]+")":":not("+e+")"}).join("");o=i?fr(s,i,o):s.join(",");return f.validateSelector(o)?o:null}this._domMaskingMode=e.domMaskingMode,this._maskedAttributes=Z.immutableSet.apply(null,e.domMaskedAttributes),this._maskedAttributesTags=Z.immutableSet.apply(null,(e.domMaskAttributesTags||[]).map(function(e){return e.toUpperCase()})),this._maskDataAttributes=!!e.domMaskDataAttributes,this._ignoreMaskByAttribute=e.domMaskIgnoreAttribute,this._selectorsByMaskingType={},this._selectorsByMaskingType[qe.TEXT]={selector:r(e.domMaskIds,e.domMaskClasses,e.domMaskSimpleSelector,!1,e.domMaskIgnoreAttribute,n),doInvert:this._domMaskingMode===L.censorMode.WhiteList},this._selectorsByMaskingType[qe.OMIT]={selector:r(e.domOmitIds,e.domOmitClasses),doInvert:!1},this._selectorsByMaskingType[qe.VALUE_ATTRIBUTE]={selector:"input"+r(e.valueMaskIds,["cls_mask"].concat(e.valueMaskClasses||[]),!1,t,e.valueMaskIgnoreAttribute,n),doInvert:!1},this._selectorsByMaskingType[qe.ATTRIBUTE]={selector:function(e,n,t){if(0===e.length||0===n.length)return null;var r,i,o=[];for(r=0;r<n.length;r++)for(i=0;i<e.length;i++)o.push(n[r]+"["+e[i]+"]");return t?fr(o,t,!1):o.join(",")}(e.domMaskedAttributes||[],e.domMaskAttributesTags||[],e.domMaskIgnoreAttribute),doInvert:!1},this._unmaskableTags=Z.immutableSet("TITLE","SCRIPT")}function fr(e,n,t){n=1===e.length?t?(e.push("["+n+"]"),e.join(",")):(e[0]=e[0]+":not(["+n+"])",e):t?e.push("["+n+"]").join(","):e.join(":not(["+n+"]),");return n}function lr(){var e=Y.valueMaskingMode===L.censorMode.WhiteList,n=Y.domMaskingMode===L.censorMode.WhiteList;return new sr({valueMaskingMode:Y.valueMaskingMode,valueMaskIds:e?Y.maskWhitelistValueById:Y.maskBlacklistValueById,valueMaskClasses:e?Y.maskWhitelistValueByClass:Y.maskBlacklistValueByClass,valueMaskIgnoreAttribute:Y.valueMaskIgnoreAttribute,domMaskingMode:Y.domMaskingMode,domMaskIds:n?Y.domWhitelistMaskContentById:Y.domBlacklistMaskContentById,domMaskClasses:n?Y.domWhitelistMaskContentByClass:Y.domBlacklistMaskContentByClass,domOmitIds:Y.domMaskOmitById||Y.domOmitById,domOmitClasses:Y.domMaskOmitByClass||Y.domOmitByClass,domMaskedAttributes:Y.domMaskedAttributes,domMaskDataAttributes:Y.domMaskDataAttributes,domMaskAttributesTags:Y.domMaskAttributesByTag,domMaskIgnoreAttribute:Y.domMaskIgnoreAttribute,domMaskSimpleSelector:n?Y.domWhitelistMaskSimpleSelector:Y.domBlacklistMaskSimpleSelector},An())}function dr(e){this._cookieMaskSet=e&&e.cookieMask?Z.immutableSet.apply(null,e.cookieMask):null}function hr(e,n,t,o,r){this._encryptionSelector=function(e,n){var t,r=[];if(e)for(t=0;t<e.length;t++)r.push("#"+e[t]);if(n)for(t=0;t<n.length;t++)r.push("."+n[t]);if(0===r.length)return null;var i=r.join(",");return o.validateSelector(i)?i:null}((r=r||{}).domEncryptIds,r.domEncryptClasses),this._unEncryptableTags=Z.immutableSet("TITLE","SCRIPT"),this._encryptionUtils=n,this._maskingUtils=t,this._events=e,this._shouldFallback=!1}function vr(i){var o,a=i.length;this.onStart=function(e,n){for(o=0;o<a;o++)i[o].onStart(e,n)},this.onEnterElement=function(e,n){var t,r;for(o=0;o<a;o++)r=i[o].onEnterElement(e,n),t=t||r;return t},this.onLeaveElement=function(e,n){for(o=0;o<a;o++)i[o].onLeaveElement(e,n)},this.onEnd=function(){for(o=0;o<a;o++)i[o].onEnd()}}function mr(e,n){this._node=e,this._predicate=n,this._childIndex=-1}function gr(v,o,m,a,g,e,p,y,b,w,i,E,C,S){var T=this;this.nodeVisitor=e,this.callCount=0,this.callbacks={};var I=!!v.ShadowRoot;function k(e){return e?m.clonerDoc.createElement("DIV"):m.clonerDoc.createElement("gb-shadow")}this.clone=function(e,u,c,s,n,t){var r=T.callCount++;t&&(T.callbacks[r]=t);var i=n||T.nodeVisitor,f={},l=0,d=m.clonerDoc.createElement("gb-root"),h=a.createFuse();T.isPageVisible=!E||s||s===Q;n=e.ownerDocument.querySelector("HTML>BODY");return!n&&C&&(n=e.ownerDocument.querySelector("HTML>FRAMESET")),T.isPageVisible||n&&Z.isElementShown(n)?(i.visit(e,function(e,n){if(h.blown)return!0;!T.isPageVisible&&(e&&e.nodeType===Node.TEXT_NODE||E&&!s&&Z.isVisible(e))&&(T.isPageVisible=!0);var t,r=!0,i=g.idOf(e);if(I&&e instanceof v.ShadowRoot?t=S&&!/\{\s+\[native code\]/.test(Function.prototype.toString.call(e.constructor))?k(!0):k():(t=u&&u(e,n)||p&&p(e,n))?r=!1:t=m.cloneNode(e),t){if(c&&c(t,e),y&&y(t,e),e.nodeType===e.ELEMENT_NODE&&(e.gbRecorded=!0),b&&e&&e.getRootNode&&e.nodeType!==Node.DOCUMENT_NODE){var o=function(r,i,o,a){var u=[];{var e,c;r.getRootNode().adoptedStyleSheets&&(r===r.getRootNode()||r.adoptedStyleSheets||"HEAD"===r.nodeName)&&(e=r.adoptedStyleSheets||r.getRootNode().adoptedStyleSheets,c=r===r.getRootNode()?i:o.idOf(r),e&&e.length&&e.forEach(function(e){var n=Z.createAssociatedCss(e,i,c),t=o.idOf(n);e._gbRemoveId&&n.setAttribute("gbRemoveId",e._gbRemoveId),e.gbRealId=c,e._gbRemoveId=t,n.setAttribute("gbid",e._gbRemoveId),e.gbAssociateIds&&!e.gbAssociateIds[i]?e.gbAssociateIds[i]=!0:e.gbAssociateIds||(e.gbAssociateIds={},e.gbAssociateIds[i]=!0),a[i]=r.getRootNode(),u.push(n)}))}return u}(e,i,g,w);if(o.length)for(var a=0;a<o.length;++a)t.appendChild(o[a])}(e.shadowRoot||e.childNodes&&e.childNodes.length)&&(f[i]=t);i=e.parentNode||e.host;(i&&f[g.idOf(i)]||d).appendChild(t)}return e&&e.nodeType===Node.ELEMENT_NODE&&l++%100==0&&h.onElementsCloned(l),r&&!h.blown},Q,Q,T.internalCallback,d,r),t?void 0:T.internalCallback(d,r)):(o.emit("clsDebug","BODY element is not visible during snapshot"),T.internalCallback(null,r))},this.internalCallback=function(e,n){var t=null;if(e&&e.childNodes&&1<e.childNodes.length){if(o.emit("clsDebug","Error: NodeCloner, cloneRoot.childNodes have more then one child"),i)for(var r=0;r<e.childNodes.length;++r)"HTML"===e.childNodes[r].nodeName&&(t=e.childNodes[r])}else T.isPageVisible?e&&(t=e.lastChild):t={error:"page is empty or not visible"};if(!T.callbacks[n])return t;T.callbacks[n](t),delete T.callbacks[n]}}function pr(s,f,l){l=Z.optionsWithDefaults(l,{crossShadow:!1}),this.visit=function(e,n,t,r){var i,o,a=t?"children":"childNodes",u=[e],c={};for(f.onStart(e,c);u.length;)if((o=u.pop()).isParentMarker)f.onLeaveElement(o.parent,c);else if(s(o,r)&&!1!==n(o,c)){if(o[a]&&o[a].length)for(f.onEnterElement(o,c)&&u.push({parent:o,isParentMarker:!0}),i=o[a].length-1;0<=i;i--)u.push(o[a][i]);l.crossShadow&&o.shadowRoot&&u.push(o.shadowRoot)}f.onEnd()}}function yr(e,n,t){var u=this;this.used=!1,this.acceptancePredicate=e,this.contextUpdater=n,this.options=Z.optionsWithDefaults(t,{crossShadow:!1,visitorAsyncMaxChunkTime:50}),this.maxChunkTime=this.options.visitorAsyncMaxChunkTime,this.visit=function(e,n,t,r,i,o,a){if(u.used)throw"NodeVisitorAsync cannot be re-used";u.used=!0,u.callback=i,u.cloneRoot=o,u.callbackId=a,u.childrenAccessorField=t?"children":"childNodes",u.stack=[e],u.context={},u.onNode=n,u.ignoreChildNodesForVisibility=r,u.contextUpdater.onStart(e,u.context),u.process()},this.process=function(){for(var e=!1,n=0;!e&&u.stack.length;){var t=Z.currentTimestamp(),r=u.stack.pop();if(r.isParentMarker)u.contextUpdater.onLeaveElement(r.parent,u.context);else if(u.acceptancePredicate(r,u.ignoreChildNodesForVisibility)&&!1!==u.onNode(r,u.context)){if(r[u.childrenAccessorField]&&r[u.childrenAccessorField].length){u.contextUpdater.onEnterElement(r,u.context)&&u.stack.push({parent:r,isParentMarker:!0});for(var i=r[u.childrenAccessorField].length-1;0<=i;i--)u.stack.push(r[u.childrenAccessorField][i])}u.options.crossShadow&&r.shadowRoot&&u.stack.push(r.shadowRoot)}(n+=Z.currentTimestamp()-t)>u.maxChunkTime&&(e=!0)}u.stack.length?window.setTimeout(u.process,0):(u.contextUpdater.onEnd(),u.callback(u.cloneRoot,u.callbackId))}}function br(r,e,i){i=Z.optionsWithDefaults(i,{expireAfter:100,byCtor:[]});var o={};e.on("domTrackingStarted",function(){setTimeout(function(){o={}},i.expireAfter)}),this.clonerHook=function(e,n){for(var t=0;t<i.byCtor.length;t++)if(n instanceof r[i.byCtor[t]]){o[i.byCtor[t]]||(o[i.byCtor[t]]=[]),o[i.byCtor[t]].push(n);break}},this.consumeByCtor=function(e){var n=o[e];return delete o[e],n||[]}}function wr(e,n){e.rules&&0<e.rules.length&&(Z.ensureProperty(n,"cssRuleChanges").rules=e.rules)}function Er(e,n){e.rules&&0<e.rules.length&&(Z.ensureProperty(n,"cssPropertyChanges").props=e.rules)}function Cr(e,n){e.rules&&0<e.rules.length&&(Z.ensureProperty(n,"animationApply").rules=e.rules)}function Sr(e,n){e.rules&&0<e.rules.length&&(Z.ensureProperty(n,"canvas").rules=e.rules)}function Tr(e,n,t,r,i){var o=r.attributes?Object.keys(r.attributes):[];if(o&&0<o.length){var a,u,c,s,f={};for(t&&t.removeBase64ImageDataTagNames&&0<t.removeBase64ImageDataTagNames.length&&(c=Xr(s=Z.immutableSet.apply(null,t.removeBase64ImageDataTagNames))),a=0;a<o.length;a++)u=r.element.getAttribute(o[a]),"INPUT"===r.element.tagName&&"value"===o[a]?u="password"===r.element.getAttribute("type")?ee.censorValueOf(u):e.censor(r.element):n.isAttributeMasked(r.element,o[a])?u=ee.censorValueOf(u):("style"===o[a]||"src"===o[a])&&c&&s[r.element.tagName]&&""===(u=c(r.element,null,!0))&&"src"===o[a]&&(f["gb-dataremoved"]={value:"",ordinal:o.length+1}),f[o[a]]={value:u,ordinal:r.attributes[o[a]]};i=Z.ensureProperty(i,"domChanges",r.id);return i.attributes=f,i}}function Ir(e,n,t,r,i){if(void 0!==r.characterDataChild){var o=function(e,n){for(var t,r=-1,i={nodeIndex:-1,hasElements:!1,mergedTextContent:""};t=e.next();)r++,t.nodeType!==Node.TEXT_NODE?i.hasElements=!0:i.mergedTextContent+=t.textContent,t===n&&(i.nodeIndex=r);return i}(e(r.element),r.characterDataChild);if(0<=o.nodeIndex){e=o.hasElements?r.characterDataChild.textContent:o.mergedTextContent;n&&n.isDomMasked(r.element,We.SELF_OR_ANY_PARENT,qe.TEXT)?e=ee.censorValueOf(e):t&&t.isDomEncrypted(r.element,We.SELF_OR_ANY_PARENT)&&(e=t.encrypt(e));r=Z.ensureProperty(i,"domChanges",r.id);return r.characterData={value:e,child:o.hasElements?o.nodeIndex:0},r}}}function kr(e,n,t,r,i,o,a){if(void 0!==o.childListOrdinal&&!i.isDomMasked(o.element,We.SELF_OR_ANY_PARENT,qe.OMIT)){var u,c,s=[],f=r(o.element);if(1<o.element.childNodes.length&&"STYLE"===o.element.nodeName){for(var l=o.element.sheet.rules,d="",h=0;h<l.length;h++)d+=l[h].cssText+"\n";d=d.replace(/<svg.*svg>/gi,""),s.push("text:"+d)}else for(;u=f.next();)c=n.idOf(u),o.addedNodes&&o.addedNodes[c]?(c=e.cloneNode(u),s.push(t.tokenForClonedNode(c))):s.push(t.tokenForNode(u));r=o.element.shadowRoot;r&&o.addedNodes[n.idOf(r)]&&s.push(t.tokenForClonedNode(e.cloneNode(r))),!r&&o.adoptedStyles&&o.adoptedStyles.length&&o.adoptedStyles.forEach(function(e){s.push(t.tokenForClonedNode(e))});a=Z.ensureProperty(a,"domChanges",o.id);return a.children={ordinal:o.childListOrdinal,childList:s},a}}function xr(u,e){e=e||{};var c=Z.immutableSet("checkbox","radio"),s=Z.immutableSet.apply(null,e.ignoredFormElement||[]);var f={INPUT:"inputs",SELECT:"selects",TEXTAREA:"textareas"};return function(e,n){var t;if((i=e.element,!s[Z.getElementId(i)])&&(e.properties&&0<e.properties.length)){var r,i=f[e.element.tagName];if(i){for(var o=Z.ensureProperty(n,i,e.id),a=0;a<e.properties.length;a++)r=e.element,t=e.properties[a],o[r="SELECT"===r.tagName?"selectedIndex":"INPUT"===r.tagName&&c[r.getAttribute("type")||""]?"checked":t]=(t=e.element,r=r,u&&"value"===r?u.censor(t):t[r]);return o}}}}function Ar(e,t){var r,n;e.WebSocket&&(r=e.WebSocket,((n=function(e,n){e=n?new r(e,n):new r(e);try{e.addEventListener("message",t)}catch(e){logger.error("failed intercepting WebSocket constructor: "+e.message,e)}return e}).prototype=r.prototype).constructor=r,n.CONNECTING=0,n.OPEN=1,n.CLOSING=2,n.CLOSED=3,e.WebSocket=n)}function Mr(o,r,i,t,a,u){var e,n=!1,c=!1,s=null,f=Z.immutableSet.apply(null,u.domIgnoreAttributes||[]);function l(e){var n=e.toString().toLowerCase();if(u.reinstateNativeMutationObserver&&n.indexOf("[native code]")<0){var t=K.createElement("IFRAME");K.body.appendChild(t);n=t.contentWindow.MutationObserver;return K.body.removeChild(t),delete t,n}return e}function d(e){for(var n=0;n<e.length;n++)if(a(e[n]))return;return 1}void 0!==o.MutationObserver?s=l(o.MutationObserver):void 0!==o.WebKitMutationObserver&&(s=l(o.WebKitMutationObserver));var h,v=1,m={},g=[],p=!1;function y(){if(p){var e,n=g;for(m={},g=[],e=0;e<n.length;e++)n[e].ignore||b(n[e]);p=!1}}function b(e){var n=e.target;if(a(n)&&(!u.ignoreMutationsOnNotAttachedElements||Z.isAttachedToDOM(n))){if("characterData"===e.type&&n instanceof CharacterData&&(n=n.parentNode||n),u.domOmitInvisibleElements&&n.nodeType===Node.ELEMENT_NODE&&!n.gbRecorded&&Z.isVisible(n)&&(e={type:"childList",target:e.target.parentNode,actualTarget:e.target.parentNode,addedNodes:[n],removedNodes:[]},n.gbRecorded=!0,n=n.parentNode),"childList"===e.type){if(d(e.addedNodes)&&d(e.removedNodes))return;var t=function(e){for(var n=[],t=0;t<e.length;t++)Z.isAttachedToDOM(e[t])&&n.push(e[t]);return n.length===e.length?Q:n}(e.addedNodes);if(t){if(!t.length&&!e.removedNodes.length)return;e={type:e.type,target:e.target,actualTarget:e.actualTarget,addedNodes:t,removedNodes:e.removedNodes}}}e.actualTarget=n,i.throttle(e)||"attributes"===e.type&&"class"===e.attributeName&&e.target.classList&&e.target.classList.value===e.oldValue||(0<=u.delayDomMutationEvent?setTimeout(function(){r.emit("domMutation",e)},u.delayDomMutationEvent):r.emit("domMutation",e))}}function w(e){if(o.Node){p&&o.clearTimeout(h);for(var n,t,r,i=0;i<e.length;i++)"attributes"===(r=e[i]).type?f[r.attributeName]||(r.target._observerId=r.target._observerId||v++,n=r.target._observerId+"_"+r.attributeName,(t=m[n])&&(t.ignore=!0),m[n]=r,g.push(r),p=!0):(y(),b(r));p&&(h=setTimeout(y,u.handleAttributeMutationsAsChunks))}}function E(e){o.Node&&("attributes"===e.type&&f[e.attributeName]||b(e))}var C={attributes:!u.characterDataOnly,childList:!u.characterDataOnly,characterData:!0,subtree:!u.characterDataOnly,attributeOldValue:!1,characterDataOldValue:u.domTamperingDetectionEnabled||!1};function S(){e&&e.disconnect()}!u.characterDataOnly&&u.domFilterAttributes&&u.domFilterAttributes.length&&(C.attributeFilter=u.domFilterAttributes),r.on("quotaBreach",function(){c=!0,S()}),this.getName=function(){return"MutationObserver based"},this.supported=function(){return null!==s},this.start=function(){if(!c&&!n){if(!e){if(!s)throw new Error("cannot start DomObserver: native interface not supported by the browser.");e=0<=u.handleAttributeMutationsAsChunks?new s(w):new s(function(e){e.forEach(E)})}e.observe(t,C),n=!0}},this.stop=function(){S()},this.e=function(){if(s&&o.navigator.userAgent.match(/Trident\/(\d+)/)){var e=new s(function(e){});e.observe(t,{childList:!0,subtree:!0});var n=(new DOMParser).parseFromString("<?xml version='1.0' encoding='UTF-8'?><test><![CDATA[-5153879911146088898:4982669000430465522]]></test>","text/xml");return e.disconnect(),1<n.firstChild.childNodes.length}return!1}}function Rr(u,c,n,s,t){var r=!1,i=!1,o=function(e){var n,t,r,i=[],o=[],a=e.type;if("DOMNodeInserted"===e.type){if(n="childList",(t=e.target.parentNode)&&(i.push(e.target),!s(e.target)))return}else if("DOMNodeRemoved"===e.type){if(n="childList",(t=e.target.parentNode)&&(o.push(e.target),!s(e.target)))return}else if("DOMCharacterDataModified"===e.type)n="characterData",t=e.target.parentNode;else{if("DOMAttrModified"!==e.type)return;n="attributes",t=e.target,r=e.attrName}s(t)&&t&&(o={origType:a,type:n,target:e.target,actualTarget:t,attributeName:r,addedNodes:i,removedNodes:o},c.throttle(o)||u.emit("domMutation",o))};function e(){r&&(n.removeEventListener("DOMCharacterDataModified",o,!1),t.characterDataOnly||(n.removeEventListener("DOMNodeInserted",o,!1),n.removeEventListener("DOMNodeRemoved",o,!1),n.removeEventListener("DOMAttrModified",o,!1)))}u.on("quotaBreach",function(){i=!0,e()}),this.getName=function(){return"DOM events based"},this.supported=function(){return"undefined"!=typeof MutationEvent},this.start=function(){var e;i||r||(e=n,Z.addEventHandler(e,"DOMCharacterDataModified",o,!1),t.characterDataOnly||(Z.addEventHandler(e,"DOMNodeInserted",o,!1),Z.addEventHandler(e,"DOMNodeRemoved",o,!1),Z.addEventHandler(e,"DOMAttrModified",o,!1)),r=!0)},this.stop=function(){e()},this.isActive=function(){return r}}function Nr(n,t,r){var i;t.once("init:loaded",function(){i=r.maskTitle?Z.transformTextSegments(n.title,ee.censorValueOf):n.title}),t.on("domMutation",function(){var e;e=!i||i===n.title||r.maskTitle&&Z.transformTextSegments(n.title,ee.censorValueOf)===i,i=r.maskTitle?Z.transformTextSegments(n.title,ee.censorValueOf):n.title,e||setTimeout(function(){t.emit("titleChanged")},0)})}function Dr(e,i,o,r,a,u,c,s){var f=this,l="page is empty or not visible";s=s||{},this.take=function(e,n,t){f.sequenceNumber=e,f.externalCallback=t,null===i.body&&t(Q);try{var r;s.snapshotAsync?o.cloneNode(i.documentElement,c,u,n,o.getAsyncNodeVisitor(),f.internalSuccessCallback):(r=o.cloneNode(i.documentElement,c,u,n),f.internalSuccessCallback(r))}catch(e){f.internalFailureCallback(e)}},this.internalSuccessCallback=function(e){try{var n,t;e&&e.error===l?(f.lastError=l,f.externalCallback({error:{visibility:l}})):(n="<!DOCTYPE html>\n"+e.outerHTML,t=r?r.maskCookie(i.cookie):i.cookie,f.externalCallback(new Or(n,a.mask(i.referrer),f.sequenceNumber,t,i.characterSet,s.encodeReferrer)))}catch(e){f.internalFailureCallback(e)}},this.internalFailureCallback=function(e){logger.error("could not obtain page snapshot. error: "+e),f.lastError=e,f.externalCallback(Q)}}function Or(e,n,t,r,i,o){this.html=e,this.referrer=o?n.replace(/\s/g,"%20"):n,this.seq=t,this.charset=i,this.cookie=r}function Lr(c,s,f){f=f||{},c=c||[];var l=0;this.getSnapshot=function(){for(var e,n,t,r,i,o={timestamp:l++,propertiesMode:"modifiedOnly",version:f.tokenizationVersion},a=0,u=0;u<c.length;u++){for(e in i=0,n=(r=c[u]).tracker.track())t=n[e],function(e,n,t){if(!n.removed){for(var r,i=!1,o=0;o<e.length;o++)!(r=e[o](n,t))||i||!f.setSelectorToAttributes&&n.attributes||(r.selector=s.getSelectorInfo(n.element,!1).selector,i=!0);return 1}}(r.providers,t,o)&&i++;a+=i}return o=0===a?Q:o},this.start=function(){for(var e=0;e<c.length;e++)c[e].tracker.start()},this.addBundle=function(e){c.push(e)},this.removeBundle=function(e){for(var n=c.length-1;0<=n;n--)if(c[n].tracker.getTarget()===e){c.splice(n,1);break}}}function Fr(e,n,t){this.element=e,this.id=n,this.addedNodes={},this.adoptedStyles=[],this._nodeCache=t}function _r(e,o){var i={},a={},u=0;function c(e){var n=o.idOf(e),t=i[n];return t||(t=new Fr(e,n,o),i[n]=t),t}function n(e){var n=u++,t=c(e.actualTarget);if("characterData"===e.type)t.characterDataChild=e.target;else if("childList"===e.type){if(t.childListOrdinal=n,e.addedNodes.length)for(var r,i=0;i<e.addedNodes.length;i++)r=o.idOf(e.addedNodes[i]),a[r]=!0,t.onNodeAdded(r),e.adoptedStyle&&t.adoptedStyles.push(e.addedNodes[i])}else"attributes"===e.type&&(t.attributes||(t.attributes={}),t.attributes[e.attributeName]=n)}e.on("shadow:rootAttached",function(e){var n=o.idOf(e),e=c(e.host);e.childListOrdinal=u++,a[n]=!0,e.onNodeAdded(n)}),this.start=function(){e.on("domMutation",n)},this.track=function(){var e=i;return function(){var e,n,t,r=0;for(e in i)if(i.hasOwnProperty(e)&&!(t=i[e]).removed){for(n=t.element;n.parentNode;){if(a[o.idOf(n)]){r++,t.removed=!0;break}n=n.parentNode}t.removed||n.nodeType===Node.DOCUMENT_FRAGMENT_NODE||n.nodeType===Node.DOCUMENT_NODE||(t.removed=!0,r++)}}(),u=0,i={},a={},e},this.getTarget=function(){return!1}}function Pr(d,h,v){var m=!0,g={};v=Z.immutableSet.apply(null,v||[]);this.start=function(){},this.track=function(){for(var e,n,t,r,i,o,a,u,c={},s={},f=d.querySelectorAll("input,select,textarea"),l=0;l<f.length;l++)(a=f[l]).id&&v[a.id]||"hidden"===a.getAttribute("type")||(e=h.idOf(f[l]),n=f[l],t=e,r=c,a=o=i=void 0,(a=Pr.propertyForElement(n))&&(i=(g[t]||{})[a],o=n[a],(m?o!==Pr.defaultValue(n,a):i!==o)&&(r[t]||(r[t]=new Fr(n,t,h),r[t].properties=[]),r[t].properties.push(a)),(r={})[a]=o,g[t]=r),s[e]=!0);for(u in g)s[u]||delete g[u];return m=!1,c},this.getTarget=function(){return d}}function Br(e,r){var n,i,t,o,a=[];n=e.CSSStyleSheet.prototype,i=n.insertRule,n.insertRule=function(){var e=i.apply(this,arguments);try{var n=arguments[0];this.gb_css_rules?this.gb_css_rules+=n:this.gb_css_rules=n;var t=r.idOf(this.ownerNode);a.push({selector:""+t,type:"added",rule:n,index:e})}catch(e){logger.error("Exception occurred during CSS insertRule interception. Error: "+e.message,e)}return e},t=e.CSSStyleSheet.prototype,o=t.deleteRule,t.deleteRule=function(){try{var e,n=arguments[0];this.cssRules[n]!==Q&&(e=r.idOf(this.ownerNode),a.push({selector:""+e,type:"deleted",index:n}))}catch(e){logger.error("Exception occurred during CSS deleteRule interception. Error: "+e.message,e)}return o.apply(this,arguments)},this.start=function(){},this.track=function(){var e={};return a.length&&(e.cssRules={rules:a}),a=[],e},this.getTarget=function(){return!1}}function jr(e,r){var n,i,t,o,a=[];n=e.CSSStyleDeclaration.prototype,i=n.setProperty,n.setProperty=function(){var e,n,t=i.apply(this,arguments);try{this.parentRule&&this.parentRule.parentStyleSheet&&((e=this.parentRule.parentStyleSheet.ownerNode)&&(n=r.idOf(e),a.push({selector:""+n,type:"setProperty",selectorText:this.parentRule.selectorText,propertyName:arguments[0],value:arguments[1],priority:arguments[2]})))}catch(e){logger.error("Exception occurred during CSS set property interception. Error: "+e.message,e)}return t},t=e.CSSStyleDeclaration.prototype,o=t.removeProperty,t.removeProperty=function(){var e,n,t=o.apply(this,arguments);try{this.parentRule&&this.parentRule.parentStyleSheet&&((e=this.parentRule.parentStyleSheet.ownerNode)&&(n=r.idOf(e),a.push({selector:""+n,type:"removeProperty",selectorText:this.parentRule.selectorText,propertyName:arguments[0]})))}catch(e){logger.error("Exception occurred during CSS remove property interception. Error: "+e.message,e)}return t},this.start=function(){},this.track=function(){var e={};return a.length&&(e.cssRules={rules:a}),a=[],e},this.getTarget=function(){return!1}}function Ur(e,t){var n,r,i,o,a=[],u={};e.Animation&&(i=e.Animation.prototype,(o=i.play)&&(i.play=function(){var e,n=o.apply(this,arguments);try{this.effect&&(e=t.idOf(this.effect.target),u[e]&&a.push({selector:""+e,type:"animate",rule:[u[e],this.effect.getTiming()]}))}catch(e){logger.error("Exception occurred during animation interception. Error: "+e.message,e)}return n}),n=HTMLElement.prototype,r=n.animate,n.animate=function(){var e=r.apply(this,arguments);try{var n=t.idOf(this);u[n]=arguments[0]}catch(e){logger.error("Exception occurred during animation interception. Error: "+e.message,e)}return e}),this.start=function(){},this.track=function(){var e={};return a.length&&(e.cssRules={rules:a}),a=[],e},this.getTarget=function(){return!1}}function Vr(i,n){var e,o={};function t(){var e=n.idOf(this.canvas,!0);e&&(o[e]=!0)}function r(){var e=je.hookProto(arguments[arguments.length-1]);e.setHookAfter("clearRect",t),e.setHookAfter("strokeRect",t),e.setHookAfter("beginPath",t),e.setHookAfter("rect",t),e.setHookAfter("fill",t),e.setHookAfter("drawImage",t),e.setHookAfter("fillRect",t),e.setHookAfter("putImageData",t),e.setHookAfter("scale",t),e.setHookAfter("translate",t)}i.HTMLCanvasElement&&(e=i.HTMLCanvasElement.prototype,je.hookProto(e).setHookAfter("getContext",r,!0)),this.start=function(){},this.track=function(){var e,n,t=[],r={};for(e in o)!o.hasOwnProperty(e)||(n=function(e){for(var n,t=i.document.querySelectorAll("canvas"),r=0;r<t.length;r++)t[r]._gbid==e&&(n=t[r]);if(n)return Z.getCanvasDataURL(n,Y.canvasQuality)}(e))&&t.push({selector:e,type:"snapshot",rule:n});return o={},t.length&&(r.canvasRules={rules:t}),r},this.getTarget=function(){return!1}}function Hr(e,n,t,r,i,o,a,u,c){var s=this,f=function(t){t=Z.optionsWithDefaults(t,{denyTagNames:[],acceptIfTextContentMatches:{},denyIdsByTagName:{},denyComments:!0,denyHeadTagNames:[],denyIds:[],denyClasses:[],denyObjectElementsByType:[],tagsToCheckLength:[],maxTextLength:-1,domOmitInvisibleElements:!1});var r,i,o,a,u,c,s,e=function(){var e,n={};for(e in t.denyIdsByTagName)n[e]=Z.immutableSet.apply(null,t.denyIdsByTagName[e]);return n}(),n=function(){var e,n={};for(e in t.acceptIfTextContentMatches)n[e]=new RegExp(t.acceptIfTextContentMatches[e]);return n}(),f=/<link[^>]+?rel\s*?=\s*?['"]stylesheet/gi,l=Z.immutableSet.apply(null,t.denyTagNames),d=Z.immutableSet.apply(null,t.denyHeadTagNames),h=Z.immutableSet.apply(null,t.denyIds),v=Z.immutableSet.apply(null,t.denyObjectElementsByType),m=Z.immutableSet.apply(null,t.tagsToCheckLength);return r=l,i=d,o=e,a=n,u=h,c=t.denyClasses,s=v,function(e,n){if(t.domOmitInvisibleElements&&!e.gbRecorded&&e.nodeType===Node.ELEMENT_NODE&&"HTML"!==e.tagName&&"LINK"!==e.tagName&&"STYLE"!=e.tagName&&e.parentNode&&"HTML"!==e.parentNode.tagName&&"HEAD"!==e.parentNode.tagName&&!Z.isVisible(e)&&(n||e.outerHTML.indexOf("<style")<0&&!f.test(e.outerHTML)))return!1;if(t.maxTextLength&&-1<t.maxTextLength&&m[e.tagName]&&e.innerHTML.length>t.maxTextLength)return!1;if(e.parentNode&&"HEAD"===e.parentNode.tagName&&i[e.tagName])return!1;if(u[e.id]||"OBJECT"===e.tagName&&s[e.getAttribute("type")]||Z.hasOneOfClassNames(e,c))return!1;if(r[e.tagName]){n=a[e.tagName];if(!n||!n.exec(e.textContent))return!1}return(!e||e.nodeType!==Node.COMMENT_NODE||!t.denyComments)&&(!o[e.tagName]||"undefined"===e.id||!o[e.tagName][e.id])}}({denyComments:!(this.config=c).domKeepComments,denyTagNames:["SCRIPT","NOSCRIPT","DOM-IF"],denyIdsByTagName:c.domIgnoredFormElements?{INPUT:c.domIgnoredFormElements}:{},acceptIfTextContentMatches:c.domKeepScriptMatching?{SCRIPT:c.domKeepScriptMatching}:{},denyHeadTagNames:["IFRAME","FRAME","FRAMESET"],denyIds:c.domMaskOmitById||c.domOmitById,denyClasses:c.domMaskOmitByClass||c.domOmitByClass,denyObjectElementsByType:c.domOmitObjectElementsByType,tagsToCheckLength:c.tagsToCheckLength,maxTextLength:c.tagMaxLength,domOmitInvisibleElements:c.domOmitInvisibleElements}),l=[];l.push(o.createContextUpdater(t)),l.push(a.createContextUpdater(t));var d,h,v,m=new pr(f,new vr(l),{crossShadow:c.recordShadowDom}),o=Z.compositeFunctionBuilder(!0);c.domCompressRepetitiveElements.length&&o.add(function(u,e){var c=1,s={};e=e.map(function(e){return e.toUpperCase()});var f=Z.immutableSet.apply(null,e);return function(e){var n;if(e.tagName&&(n=e.tagName.toUpperCase()),f[n])try{var t,r,i=e.outerHTML,o=s[i];if(o)(r=e.ownerDocument.createElement(n)).setAttribute("gb-clone",o);else{for(s[i]=c,(r=e.ownerDocument.createElement(n)).innerHTML=e.innerHTML,t=0;t<e.attributes.length;t++){var a=e.attributes[t];r.setAttribute(a.name,a.value)}r.setAttribute("gb-proto",c.toString()),c++}return r}catch(e){logger.error("Error while handling repetitive element: "+e.message,e),u.emit("clsDebug","error while handling repetitive element. Exception message: "+e.message)}}}(n,c.domCompressRepetitiveElements)),o.add(qr),o.add(Gr(c.domRecordStyleAttributes)),(c.struggleCaptureHorizontalScrollbar||c.struggleCaptureBlankPage)&&o.add(i.clonerHook),o.add((d=ee,h=a,function(e,n){if(e){if(e.nodeType===Node.TEXT_NODE&&n&&n.maskText)return e.ownerDocument.createTextNode(Z.transformTextSegments(e.textContent,d.censorValueOf));if(e.nodeType===Node.TEXT_NODE&&n&&n.encryptText){n=h.encrypt(e.textContent);return e.ownerDocument.createTextNode(n)}}})),c.maskTitle&&o.add((v=ee,function(e){if("TITLE"===e.nodeName){var n=e.ownerDocument.createElement("title");return n.textContent=Z.transformTextSegments(e.textContent,v.censorValueOf),n}}));var g,p,y,b,w,E,C,S,T,I,k,a=Z.compositeFunctionBuilder(!0).add(Z.gbBind(Jr,null,"gbid",j.GB_ID_FIELD_NAME));(c.valueMaskingMode===L.censorMode.WhiteList||c.maskBlacklistValueByClass.length||c.maskBlacklistValueById.length||c.valueMaskByCategories.length||c.valueBlacklistMaskSimpleSelector.length||(c.valueEncryptionMode===L.censorMode.WhiteList||c.valueEncryptById.length||c.valueEncryptByClass.length))&&(a.add((p=r,function(e){"INPUT"===e.tagName&&e.getAttribute("value")&&e.setAttribute("value",p.censor(e))})),o.add((g=r,function(e){if("TEXTAREA"===e.tagName&&e.firstChild){var n,t=e.firstChild.textContent;if(t&&(n=g.censor(e))!==e.firstChild.textContent){e=e.cloneNode(!0);return e.firstChild.textContent=n,e.maskContent=!0,e}}}))),c.domMaskAttributesByTag.length&&(c.domMaskedAttributes.length||c.domMaskDataAttributes)&&a.add((y=ee,N={domMaskedAttributes:c.domMaskedAttributes,domMaskAttributesTags:c.domMaskAttributesByTag,domMaskIgnoreAttribute:c.domMaskIgnoreAttribute,domMaskDataAttributes:c.domMaskDataAttributes},b={IMG:"data:image/gif;base64,"},w=Z.immutableSet.apply(null,N.domMaskedAttributes),E=Z.immutableSet.apply(null,(N.domMaskAttributesTags||[]).map(function(e){return e.toUpperCase()})),C=!!N.domMaskDataAttributes,S=N.domMaskIgnoreAttribute,function(e){if(E[e.tagName]&&"function"==typeof e.getAttribute&&!e.hasAttribute(S)){var n,t,r;for(n in w)!w.hasOwnProperty(n)||(t=e.getAttribute(n))&&(b[e.tagName]&&"src"===n?e.setAttribute(n,b[e.tagName]):e.setAttribute(n,y.censorValueOf(t)));if(C)if(e.dataset)for(r in e.dataset)e.dataset[r]=y.censorValueOf(e.dataset[r])}})),c.recordCanvas&&a.add(Kr),c.htmlObjectRecordEnabled&&a.add(function(e){!function(e){if(e.getAttribute&&"OBJECT"===e.tagName){var n=(e.getAttribute("data")||"").toLowerCase();return"text/html"===(e.getAttribute("type")||"").toLowerCase()||n.indexOf(".html")===n.length-5||n.indexOf(".htm")===n.length-4}}(e)||e.setAttribute("_gbObject","")}),c.removeBase64ImageDataTagNames&&0<c.removeBase64ImageDataTagNames.length&&a.add(Xr(Z.immutableSet.apply(null,c.removeBase64ImageDataTagNames))),c.domFormAnalysisReporting&&a.add((T=n,I=j,k=F,function(e,n){e&&("INPUT"===e.tagName||"SELECT"===e.tagName)&&Z.isVisible(n)&&T.emit("newInputElement",{clone:e,cssSelector:k.getSelectorInfo(n),gbid:I.idOf(n)})}));var x,A,M,R,N=Z.isIE(e.navigator.userAgent),N=(x=n,A={maxElements:N?c.domFuseElementCountIE:c.domFuseElementCount,maxDuration:N?c.domFuseDurationIE:c.domFuseDuration},M=0<((A=A||{}).maxElements||0),R=0<(A.maxDuration||0),{createFuse:function(){return{blown:!1,createdAt:new Date,elementCount:-1,duration:-1,onElementsCloned:O}}});function D(e,n){var t;e.blown||(t=-1!==e.duration?e.duration:new Date-e.createdAt,e.elementCount,e.blown=!0,x.emit("dom:fuseBlown",{reason:n,duration:t,elements:e.elementCount,maxDuration:A.maxDuration||-1,maxElements:A.maxElements||-1}),x.emit("clsDebug","DOM cloning fuse blown. reason:"+n+" elements:"+e.elementCount+" duration:"+t))}function O(e){this.blown||(this.elementCount=e,R&&(this.duration=new Date-this.createdAt,this.duration>=A.maxDuration)?D(this,"duration"):M&&this.elementCount>=A.maxElements&&D(this,"elementCount"))}u=new gr(e,n,function(e,t,n,r){var i,o,a=Q;try{a=r?new RegExp(r,"i"):Q}catch(e){}return e=a&&a.test(e.navigator.userAgent)||n.isSafari(e.navigator.userAgent)||n.isChromeOnIos(e.navigator.userAgent)?(i=e.document.implementation.createHTMLDocument("cloner-doc"),o=K.documentElement?K.documentElement.namespaceURI:null,function(e){var n;return e&&e.nodeType===Node.ELEMENT_NODE?(n=e.namespaceURI!==o?i.createElementNS(e.namespaceURI,e.tagName.toLowerCase()):i.createElement(e.tagName),Array.prototype.slice.call(e.attributes).forEach(function(e){try{n.setAttribute(e.name,e.value)}catch(e){}})):n=i.importNode(e,!1),n}):n.isIE(e.navigator.userAgent)?(i=e.document,function(n){try{return n.cloneNode(!1)}catch(e){t.emit("clsDebug","failed to clone node "+n.nodeName)}}):(i=e.document.implementation.createHTMLDocument("cloner-doc"),function(e){return i.importNode(e,!1)}),{clonerDoc:i,cloneNode:e}}(e,n,Z,c.forceRenderingFixForUA),N,t,m,o.build(),a.build(),c.enableAdoptedCss,u,c.checkForHtmlOnly,c.checkVisibility,c.framesetRecordEnabled,c.recordNonNativeShadowAsElementContainer);this.isNodeAccepted=f,this.createChildNodesIterator=function(e){return new mr(e,f)},this.visit=Z.gbBind(m.visit,m),this.cloneNode=Z.gbBind(u.clone,u),this.getAsyncNodeVisitor=function(){return new yr(f,new vr(l),{crossShadow:s.config.recordShadowDom,visitorAsyncMaxChunkTime:s.config.visitorAsyncMaxChunkTime})}}function Wr(e,o,c){var s={},f={},l={throttledMutations:0,throttledAddedNodes:0};function d(e){var n=c.idOf(e);if(s[n]){delete s[n];for(var t=[],r=e.childNodes||[],i=0;i<r.length;i++)r[i]._gbPending&&(delete r[i]._gbPending,t.push(r[i]));o.emit("domMutation",{origType:"childList",type:"childList",target:e,actualTarget:e,addedNodes:t,removedNodes:[]})}}this.throttle=function(e){var n,t,r,i=c.idOf(e.actualTarget),o=Z.isVisible(e.actualTarget);if("childList"!==e.type||(n=e.actualTarget,t=e.addedNodes,r=e.removedNodes,n.ownerDocument.head.contains(n)||a(t||[])||a(r||[]))||o)return f[i]&&o&&function(e,n){for(var t,r,i=[e];i.length;)if(n(e=i.shift()),r=c.idOf(e),e.children&&f[r])for(delete f[r],t=0;t<e.children.length;t++)i.push(e.children[t])}(e.actualTarget,d),!1;function a(e){for(var n=0;n<e.length;n++)if("STYLE"===e[n].tagName)return 1}for(var u=0;u<e.addedNodes.length;u++)e.addedNodes[u]._gbPending=!0;return s[i]=!0,l.throttledAddedNodes+=e.addedNodes.length,l.throttledMutations++,function(e){for(;e;)f[c.idOf(e)]=!0,e=e.parentNode}(e.actualTarget),!0}}function qr(e){if("LINK"===e.tagName&&"import"===e.getAttribute("rel")){for(var n,t,r,i,o=e.import,a=[],u="",c={};o;){if((r=o.querySelectorAll("style")).length)for(n=0;n<r.length;n++)u+=r[n].textContent;for(i=o.querySelectorAll("link[rel='import']"),t=0;t<i.length;t++)i[t].import&&!c[i[t].href]&&(a.push(i[t].import),c[i[t].href]=!0);o=a.pop()}if(u){var s=e.ownerDocument.createElement("style");return s.textContent=u,s.setAttribute("gb-imported-from",e.href),s}}}function zr(o){return function(e){if("STYLE"===e.tagName&&e.ownerDocument){var n=e.ownerDocument.createElement("style");if(o&&Z.copyAttributes(e,n),e.media&&n.setAttribute("media",e.media),e.sheet){var t,r=e.sheet.cssRules,i="";if(r&&r.length)for(t=0;t<r.length;t++)"string"==typeof r[t].cssText&&(i+=r[t].cssText);n.textContent=i}return n}}}function Gr(i){return function(e){if("STYLE"===e.tagName){var n=e.ownerDocument.createElement("style");if(i&&Z.copyAttributes(e,n),e.media&&n.setAttribute("media",e.media),n.textContent=(e.textContent||"")+(e.gb_css_rules||""),!n.textContent&&e.sheet){var t,r=e.sheet.cssRules;if(r&&r.length)for(t=0;t<r.length;t++)"string"==typeof r[t].cssText&&(n.textContent+=r[t].cssText)}return n}}}function Jr(e,n,t,r){t&&t.nodeType===Node.ELEMENT_NODE&&t.setAttribute(e,r[n])}function Xr(i){i=i||{};var o=/(url\()?"?data:image\/\.?(png|jpe?g);[a-zA-Z0-9\D]*;?base64/,a=/(background-image:)( *)(url\()?(")?"?data:image\/\.?(png|jpe?g);[a-zA-Z0-9\D]*;?(base64,).*(\s)*?(?=\))\)*;*/;return function(e,n,t){if(i[e.tagName]){if("IMG"===e.tagName&&e.src)return o.test(e.src)?t?"":(e.src="",void e.setAttribute("gb-dataremoved","")):e.src;if("STYLE"===e.tagName&&o.test(e.innerText))return t?e.innerText.replace(a,"").replace(/(\r\n|\n|\r)/gm,""):(e.innerText=e.innerText.replace(a,"").replace(/(\r\n|\n|\r)/gm,""),void e.setAttribute("gb-dataremoved",""));var r=e.getAttribute("style");return r?a.test(r)?t?r.replace(a,""):(e.style.backgroundImage="",void e.setAttribute("gb-dataremoved","")):r:void 0}}}function Kr(e,n){"CANVAS"!==e.tagName||(n=Z.getCanvasDataURL(n,Y.canvasQuality))&&(e.innerHTML=n)}function Qr(n){return{tokenForClonedNode:function(e){return(e&&e.nodeType===Node.TEXT_NODE?"text:":"el:")+Z.DOMElement2Str(e)},tokenForNode:function(e){return e&&e.nodeType===Node.TEXT_NODE?"text-ref:"+Z.hashcode(e.textContent):"id:"+n.idOf(e)}}}function Yr(e,n,t,r,i){var o=(i=i||{}).domThrottle||i.domThrottleIEOnly&&e.MSInputMethodContext&&e.document.documentMode?new Wr(0,n,j):{throttle:function(){return!1}};function a(e){return r(e)&&(!i.domIgnoreChangesByClass.length||!Z.hasOneOfClassNames(e,i.domIgnoreChangesByClass))&&(!i.domIgnoreChangesById.length||i.domIgnoreChangesById.indexOf(Z.getElementId(e))<0)}var u=new Mr(e,n,o,t,a,{domTamperingDetectionEnabled:i.domTamperingDetectionEnabled,delayDomMutationEvent:i.delayDomMutationEvent,domFilterAttributes:i.domFilterAttributes,domIgnoreAttributes:i.domIgnoreAttributes,domOmitInvisibleElements:i.domOmitInvisibleElements,handleAttributeMutationsAsChunks:i.handleAttributeMutationsAsChunks,ignoreMutationsOnNotAttachedElements:i.ignoreMutationsOnNotAttachedElements,characterDataOnly:!!i.characterDataOnly,reinstateNativeMutationObserver:i.reinstateNativeMutationObserver});return u.supported()?(Z.isIE(e.navigator.userAgent)&&i.domForceIEMutationEventsHandler||!i.domIE11ForceMutationObserver&&u.e())&&(u=new Rr(n,o,t,a,{characterDataOnly:!!i.characterDataOnly})):u=i.semiDomEnabled?Q:new Rr(n,o,t,a,{characterDataOnly:!!i.characterDataOnly}),u}function $r(a,u,c){var r,e;function i(e,n){var t,r,i,o;e&&n&&n[0]&&n[0].length&&(t=n[0],r=[],n=e.nodeType===Node.DOCUMENT_NODE?e.getElementsByTagName("HEAD")[0]:e,i=u.idOf(n),o=e===n?i:u.idOf(e),t.forEach(function(e){var n=Z.createAssociatedCss(e,i,o),t=u.idOf(n);e._gbRemoveId&&n.setAttribute("gbRemoveId",e._gbRemoveId),e.gbRealId=o,e._gbRemoveId=t,n.setAttribute("gbid",e._gbRemoveId),e.gbAssociateIds&&!e.gbAssociateIds[i]?e.gbAssociateIds[i]=!0:e.gbAssociateIds||(e.gbAssociateIds={},e.gbAssociateIds[i]=!0),r.push(n)}),c[i]=n,a.emit("domMutation",{type:"childList",target:n,actualTarget:n,addedNodes:r,removedNodes:[],adoptedStyle:!0}))}window.CSSStyleSheet&&(function(e,n){var t=Object.getOwnPropertyDescriptor(e,"adoptedStyleSheets")&&Object.getOwnPropertyDescriptor(e,"adoptedStyleSheets").set,r=Object.getOwnPropertyDescriptor(n,"adoptedStyleSheets")&&Object.getOwnPropertyDescriptor(n,"adoptedStyleSheets").set;t&&Object.defineProperty(e,"adoptedStyleSheets",{set:function(){var e=t.apply(this,arguments);try{i(this,arguments)}catch(e){logger.error("error during method 'adoptedStyleSheets' hook invocation. error: "+e.message,e)}return e}});r&&Object.defineProperty(n,"adoptedStyleSheets",{set:function(){var e=r.apply(this,arguments);try{i(this,arguments)}catch(e){logger.error("error during method 'adoptedStyleSheets' hook invocation. error: "+e.message,e)}return e}})}(window.Document.prototype,window.ShadowRoot.prototype),(r=window.CSSStyleSheet.prototype.replaceSync)&&(window.CSSStyleSheet.prototype.replaceSync=function(){var e=r.apply(this,arguments);try{if(arguments){var n,t=this.gbAssociateIds;if(t)for(id in t)c[id]&&((n=Z.createAssociatedCss(this,id,this.gbRealId)).setAttribute("gbremoveid",this._gbRemoveId),this._gbRemoveId=u.idOf(n),n.setAttribute("gbid",this._gbRemoveId),a.emit("domMutation",{type:"childList",actualTarget:c[id],addedNodes:[n],removedNodes:[],adoptedStyle:!0}))}}catch(e){logger.error("error during method 'CSSStyleSheet.replaceSync' hook invocation. error: "+e.message,e)}return e}),(e=window.CSSStyleSheet.prototype.replace)&&(window.CSSStyleSheet.prototype.replace=function(){return Promise.resolve(e.apply(this,arguments).then(function(e){var n,t=e.gbAssociateIds;if(t)for(id in t)c[id]&&((n=Z.createAssociatedCss(e,id,e.gbRealId)).setAttribute("gbremoveid",e._gbRemoveId),e._gbRemoveId=u.idOf(n),n.setAttribute("gbid",e._gbRemoveId),a.emit("domMutation",{type:"childList",actualTarget:c[id],addedNodes:[n],removedNodes:[],adoptedStyle:!0}))}).catch(function(e){return logger.error("error during method 'CSSStyleSheet.replace' hook invocation. error: "+e),Promise.reject(e)}))}))}function Zr(r,i,n,t,e,o,a,u,c,s,f,l,d,h){var v,m,g,p,y,b=new Lr((w=Qr(o),w=[{name:"DOM-mutations",tracker:new _r($,o),providers:[Z.gbBind(Ir,null,e.createChildNodesIterator,a,u),Z.gbBind(Tr,null,s,a,{removeBase64ImageDataTagNames:h.removeBase64ImageDataTagNames}),Z.gbBind(kr,null,e,o,w,e.createChildNodesIterator,a)]},{name:"property",tracker:new Pr(K,o,h.ignoredFormElements),providers:[xr(s,{ignoredFormElement:h.ignoredFormElements})]}],h.recordCssRules&&w.push({name:"css",tracker:new Br(r,o),providers:[wr]}),h.recordCssProps&&w.push({name:"cssProp",tracker:new jr(r,o),providers:[Er]}),h.recordAnimation&&w.push({name:"animate",tracker:new Ur(r,o),providers:[Cr]}),h.recordCanvas&&w.push({name:"canvas",tracker:new Vr(r,o),providers:[Sr]}),w),h.includeSelectorOnUpdate?new Qn(Y):{getSelectorInfo:function(){return{}}},{tokenizationVersion:"2",setSelectorToAttributes:h.setSelectorToAttributes}),s=Z.compositeFunctionBuilder().add((p=i,function(e,n){"INPUT"===e.tagName&&(n.value&&e.setAttribute("value",n.value),n.checked&&e.setAttribute("checked",""),n.addEventListener("invalid",function(e){p.emit("html5FormValidation:invalid",e)}))})).add((m=ee,g=i,function(e,n){"TEXTAREA"===e.tagName&&(n.firstChild&&n.value!==n.firstChild.textContent&&(e.maskContent?n._gbValuesToMask?e.firstChild.textContent=m.censorValueOf(n.value,Q,Q,n._gbValuesToMask):e.firstChild.textContent=m.censorValueOf(n.value):e.firstChild.textContent=n.value),n.addEventListener("invalid",function(e){g.emit("html5FormValidation:invalid",e)}))})).add((v=i,function(e,n){var t,r;"SELECT"===e.tagName&&(t=n.selectedIndex,(r=e.getElementsByTagName("option")).length?r[t]&&r[t].setAttribute("selected",""):(r=n.getElementsByTagName("option"))[t]&&(r[t]._gbselected=!0),n.addEventListener("invalid",function(e){v.emit("html5FormValidation:invalid",e)})),"OPTION"===e.tagName&&n._gbselected&&e.setAttribute("selected","")}));Y.recordCanvas&&s.add(Kr),r.ShadowRoot&&h.recordShadowDom&&(y=new br(r,i,{byCtor:["ShadowRoot"]}),s.add(Z.gbBind(y.clonerHook,y)));var w=h.preciseStyleSheetCloning?zr:Gr,E=new Dr(0,K,e,new dr({cookieMask:h.maskCookies}),ne,s.build(),w(h.domRecordStyleAttributes),{encodeReferrer:!!h.encodeReferrer,snapshotAsync:!!h.snapshotAsync}),C={snapshotDuration:-1,domUpdateDuration:-1,domUpdateCount:0,domObserver:n?n.getName():"NONE"},S=!!n||!!t;h=h||{},l=l||function(){};function T(e){if(!D)return Q;for(var n=0;n<h.ajaxTriggers.length;n++)if(-1!==e.url.indexOf(h.ajaxTriggers[n]))return e.url,void z()}function I(e){if(!D)return Q;-1!==h.triggers.indexOf(e.selectorExpression)&&(e.selectorExpression,z())}function k(){S&&(h.startMutationObserverOnLoad?n.start():t&&t.start(),!D||O||F||void 0===h.onLoadTimeoutReport||-1===h.onLoadTimeoutReport||setTimeout(X,h.onLoadTimeoutReport))}function x(){n&&(n.stop(),n=Q)}function A(){if(!D)return Q;if(h.snapshotImmediatePages&&h.snapshotImmediatePages.length)for(var e,n=r.location.href,t=0;t<h.snapshotImmediatePages.length;++t)if(Z.isStringMatch(h.snapshotImmediatePages[t],n)){P=!0,(e=K.querySelector("BODY"))&&!Z.isElementShown(e)&&i.emit("clsDebug","BODY element not visible during immediate snapshot"),Le.snapshotType="immediate",X(!0);break}}function M(){++U%h.updateOnWsCount==0&&i.emit("pageUpdate")}var R,N=3,D=!1,O=!1,L=!1,F=!1,_=!1,P=!1,B=0,j=0,U=0,V=function(){B=0,P=F=L=O=!1},H=0,W=function(e){H=new Date,L=!0,E.take(j,!!e,q)},q=function(e){L=!1,e&&!e.error?(C.snapshotDuration=new Date-H,C.snapshotDuration,j++,i.emit("pageSnapshot:report",e),i.emit("pageSnapshot:save",e),"hidden"===K.visibilityState&&i.emit("clsDebug","Error: snapshot was taken while document was hidden"),b.start(),O=!0,i.emit("domTrackingStarted")):(l("pageSnapshotError("+ ++B+")",E.lastError),N<=B?e&&e.error&&e.error.visibility?X(!0):F=!0:h.reTakeSnapshotAfterTime&&0<h.reTakeSnapshotAfterTime&&setTimeout(X,h.reTakeSnapshotAfterTime))},z=function(){V(),X(P=!0)},G=(R=null,function(){if(h.allowWaitForElementsUrls&&h.allowWaitForElementsUrls.length&&null===R)for(var e=0;e<h.allowWaitForElementsUrls.length;++e)if(Z.isStringMatch(h.allowWaitForElementsUrls[e],r.location.href)){R=!0;break}return R=!!R}),J=function(e){var n=!1;P=!(_=!1),h.delaySnapshotAfterElementFound&&-1<h.delaySnapshotAfterElementFound&&setTimeout(function(){n||(n=!0,X())},h.delaySnapshotAfterElementFound),h.delaySnapshotAfterElementFound&&-1!==h.delaySnapshotAfterElementFound||X(!0)},X=function(e){if(!(F||O||L||_))try{if(h.snapshotWaitForElement&&h.snapshotWaitForElement.length&&!P&&G())return Z.waitForElementsOnPage(Le,h.snapshotWaitForElement,J,h.elMustBeShown),!(_=!0);S&&(n.start(),t&&(t.stop(),t=Q)),W(e)}catch(e){l("startingError",e),logger.error("error during DOM recording plugin starting. error: "+e)}return O};this.initialize=function(e){return e.on("event:mousedown",I),e.on("ajax:send",T),e.once("init:loaded",k),e.on("session:new",z),e.once("init:domready",A),e.on("event:unload",x),-1!==h.updateOnWsCount&&Ar(r,M),h.compressionEnabled,h.enableAdoptedCss&&r.ShadowRoot&&$r(e,o,d),D=!0},this.stats=function(){return C},this.getDomSnapshot=function(){if(!D)return Q;if(F)return Q;if(!X())return Q;if(!S)return Q;var e=new Date,n=b.getSnapshot();return C.domUpdateDuration+=new Date-e,C.domUpdateCount++,n},this.ensureStarted=X,this.isSemiDomActivated=function(){return!S},this.isStarted=function(){return O},this.reset=V,this.getNodeCloner=function(){return e},this.getDomMasker=function(){return a},this.getDomEncryptor=function(){return u},this.getNodeVisitor=function(){return e},this.consumeCapturedNodes=function(e){return y?y.consumeByCtor(e):[]},this.nodeAcceptancePredicate=Z.gbBind(e.isNodeAccepted,e),this.getSnapshotAccumulator=function(){return b}}function ei(t,r,e,n,i){var o,a={count:0,flushedBytes:0,encodingErrors:[]},u=new gt(t);function c(e){var n;o.flush(),i.reportCreateSubSessionCookie&&(n=Z.uuid(),N.set(L.cookies.sub_session,n),e.cookie=K.cookie,t.emit("session:newSubSessionId",{pageSnapshotSN:e.seq,subSessionId:n}))}Et(window,t,u,a,i),o=window!==window.top&&window.MessageChannel&&i.reportViaTopWindow?new It(t,function(){return Le},new rr(window),u,new St(window.sessionStorage,new cr(Z.Base64)),i):new Tt(t,r,n,new Qt($,{},1e3),u,new dt(n,e,r,a,i),new St(window.sessionStorage,new cr(Z.Base64)),a,i),this.initialize=function(e,n){if(!E.isUndefined(i.reportURI)&&0!==i.reportURI.length)return i.reportByPost,r.name,i.reportCompress,r.supportsCompression,t.on("pageSnapshot:report",c),!0;console.log("ERROR[EyeView-1401]: Detector script is missing configuration for 'reportURI'. Please add it.")},this.stats=function(){return a}}function ni(u,c,s,r){var t,r=Z.optionsWithDefaults(r,{graceTime:2e3,ignorableTags:["TITLE","STYLE","SCRIPT"]}),i=Z.immutableSet.apply(null,r.ignorableTags),f={},l=5,d=0,o=!1,a=!1,h=!1,v=!1;function m(){t=Z.currentTimestamp()}var g=!1;function p(e){var n;!e.target||"characterData"!==e.type||(n=e.target).nodeType===Node.TEXT_NODE&&n.parentNode&&i[n.parentNode.nodeName]||(n=e.target.data,function(){var e=K.querySelector("title");K.documentElement.className.match("translated-rtl")||K.documentElement.className.match("translated-ltr")?(o||y(),o=!0):o&&(o=!1,y());e&&e.getAttribute&&e.getAttribute("_msthash")&&e.getAttribute("_msttexthash")&&e.getAttribute("_msthidden")?(a||y(),a=!0):a&&(a=!1,y())}(),h=h||(t=t||Z.currentTimestamp(),Z.currentTimestamp()-t>=r.graceTime),(v||g)&&h&&d<l&&f[s.idOf(e.target)]!==n&&e.oldValue.replace(/\s/g,"")!==n.replace(/\s/g,"")&&(++d,c.emit("domTampered",{element:e.target.parentNode,newText:n,prevText:e.oldValue})),v=!0)}function y(){h=!1,t=Z.currentTimestamp()}function b(n){var t,e=K.implementation.createHTMLDocument("test");(t=new MutationObserver(function(e){t&&t.disconnect(),"characterData"!==e[0].type&&n()})).observe(e,{attributes:!1,childList:!0,characterData:!0,subtree:!0,attributeOldValue:!1,characterDataOldValue:!1}),e.body.innerText="text1"}c.on("devToolsVisibilityChanged",function(e){g=e.value}),this.initialize=function(){if(r.domTamperingIgnorePages&&r.domTamperingIgnorePages.length)for(var e=0;e<r.domTamperingIgnorePages.length;++e)if(Z.isStringMatch(r.domTamperingIgnorePages[e],u.location.href))return;var n=!(!Z.isChromeDesktop()&&!Z.isChromeOnIos()||u.opr);function t(){function e(){d<l&&(f[s.idOf(this)]=this.data)}function n(){this&&this.nodeType===Node.TEXT_NODE&&d<l&&(f[s.idOf(this)]=this.data)}function t(){1===this.childNodes.length&&this.childNodes[0].nodeType===Node.TEXT_NODE&&(f[s.idOf(this.childNodes[0])]=this.childNodes[0].data)}var r,i,o,a;r=je.hookProto(u.CharacterData.prototype),i=je.hookProto(u.Text.prototype),o=je.hookProto(u.Node.prototype),a=je.hookProto(u.HTMLElement.prototype),r.setHookAfter("replaceData",e),r.setHookAfter("appendData",e),r.setHookAfter("insertData",e),r.setHookAfter("deleteData",e),r.hookSetPropertyAfter("data",e),i.setHookAfter("splitText",e),o.hookSetPropertyAfter("textContent",n),o.hookSetPropertyAfter("nodeValue",n),i.setHookAfter("replaceWholeText",e),Z.isIE()&&(a.hookSetPropertyAfter("innerText",t),a.hookSetPropertyAfter("innerHTML",t)),c.on("domMutation",p)}c.once("init:domready",m),n?(n=Z.getChromeVersion())&&n<70||b(t):t()}}function ti(r,e,i){var t=[],o=r.location.origin||Z.extractOrigin(r.location.href);return e.triggerMessage=function(e){for(var n=0;n<t.length;n++)t[n](e)},{name:"direct",sendMessage:function(e,n){var t;!function(e){try{return void e.location.href}catch(e){return 1}}(e)?(t=e[i])&&t.triggerMessage?setTimeout(function(){t.triggerMessage({source:r,data:n,origin:o})},0):iframeHelper.logError("failed sending message over direct channel: remote facade is invalid."):iframeHelper.logError("failed sending message over direct channel: cross origin.")},onMessage:function(e){t.push(e)},close:function(){t=[]}}}function ri(r,n,i,o){var a={};function u(e){return!iframeHelper.isCrossOriginFrame(e,n.location.origin)&&function(e){try{return e.contentWindow.location.href,!0}catch(e){return!1}}(e)}function t(e){e.contentWindow.addEventListener("unload",function(){i.emit("frame:unload",{sameOrigin:u(e),frame:e})})}function c(e){var n=u(e.target);n&&t(e.target),i.emit("frame:load",{sameOrigin:n,frame:e.target})}function s(e,n){a[o.idOf(e)]={visible:"none"!==r.getComputedStyle(e).display,sameOrigin:n}}i.on("frame:domChange",function(e){var n,t;"style"===e.attributeName&&(n="none"!==r.getComputedStyle(e.target).display,t=o.idOf(e.target),a[t]||s(e.target,u(e.target)),a[t].visible!==n&&i.emit("frame:visibilityChange",{visible:n,frame:e.target,sameOrigin:a[t].sameOrigin}),a[t].visible=n)}),this.wireFrame=function(e){var n=u(e);return e._gbWired||(e.addEventListener("load",c),s(e,n),n&&t(e),e._gbWired=!0,i.emit("frame:wired",{sameOrigin:n,frame:e})),n}}function ii(n,e,t,r,i){i=Z.optionsWithDefaults(i,{skipHidden:!0,forceDirectChannel:!1,skipWhenLocationContains:[],injectionMode:L.iframesAutoInjectMode.BlackList,injectIframesAboutBlank:!1});var o,a,u,c,s=(o=t.getAttribute("id"),a=Z.toAbsoluteUrl(t.getAttribute("src")),function(e){e=e.createElement("script");return e.setAttribute("type","text/javascript"),o&&e.setAttribute("id",o),e.setAttribute("src",a),e.setAttribute("data-clsautoinjected","true"),e}),f=(u=e,function(){var e=Z.shallowExtend({},u);return e.storageBackedReporting=!0,e.iframesParentOrigin=n.location.origin||Z.extractOrigin(n.location.href),i.forceDirectChannel&&(e.iframesDirectChannel=!0),e.idleEventTimeInterval=-1,e});function l(e){return(!i.skipHidden||!Xe.hidden(e))&&(!(!e.contentDocument||!e.contentDocument.body.hasChildNodes()&&"about:blank"!==e.contentWindow.location.href)&&(!("about:blank"===e.contentWindow.location.href&&!i.injectIframesAboutBlank)&&(function(e,n){for(var t=n===L.iframesAutoInjectMode.BlackList,r=0;r<i.skipWhenLocationContains.length;r++)if(0<=e.indexOf(i.skipWhenLocationContains[r]))return t;return!t}(e.contentWindow.location.href,i.injectionMode)?(e.contentWindow.location.href,!1):"complete"===e.contentDocument.readyState)))}function d(n){try{return l(n)&&(!(t=(e=n).contentWindow)[r]&&!e._gbInjected&&(t._cls_config_forced=f(),t.document.head.appendChild(s(t.document)),e._gbInjected=!0,c&&setTimeout(Z.gbBind(c,null,e,!0),0),!0))}catch(e){return iframeHelper.logError("failed injecting frame window. error:"+e),c&&c(n,!1),!1}var e,t}this.inject=d,this.setInjectionCallback=function(e){c=e}}function oi(t,e){var r,i={};e.onMessage(function(n){if(t.Node){var e=n.data.message,e=i[e];if(e){try{r=n.ports&&n.ports[0],e(n.source,n.data.value,n.origin,r)}catch(e){iframeHelper.logError("message (origin:"+n.origin+") handler raised an error.",e)}return!0}return!1}}),this.onMessage=function(e,n){i[e]=n}}function ai(e,o,a){a=a||"*";var u=Z.immutableSet("javascript:","data:");this.send=function(e,n,t,r){var i;r=(i=r)&&!u[i]?r:a,t.transferable?o.sendMessageWithTransferable(e,{message:n,value:t},r):o.sendMessage(e,{message:n,value:t},r)}}function ui(i,r,e,o,a,u){a=Z.optionsWithDefaults(a,{mscThrottle:300,disabled:!1});var c=!1,s={};function f(e,n,t){e&&i!==e&&r.send(e,"frame:notification",n,t)}function l(e,n){if(n.propagate)for(var t=i.document.querySelectorAll(u),r=0;r<t.length;r++)e!==t[r].contentWindow&&t[r]._gbHandshakeCompleted&&f(t[r].contentWindow,{type:n.type,args:n.args,propagate:!0});n.bubble&&c&&f(i.parent,{type:n.type,args:n.args,bubble:!0,propagate:!0})}e.onMessage("frame:notification",function(e,n,t,r){n.type,!function(e){if("onFramePort"!==e){var n=Z.currentTimestamp(),t=s[e];if(t&&n-t<a.mscThrottle)return 1;s[e]=n}}(n.type)?(r&&(r.postMessage({type:"ack"}),n.args&&(n.args.port=r)),o[n.type]&&o[n.type](n.args),l(e,n)):(n.type,i.location.href)}),this.onParentHandshake=function(){c=!0},this.notify=function(e,n,t){a.disabled||f(e,{type:n.type,args:n.args,transferable:n.transferable},t)},this.notifyAll=function(e){a.disabled||l(Q,{type:e.type,args:e.args,propagate:!0,bubble:!0})}}function ci(e,n,t,r,i,o,a,u){this.domTrackingStarted=function(){n().ensureStarted()},this.pageUpdate=function(){t()},this.forceFlush=function(){e.emit("forceFlush")},this.onPossibleBlackoutEnter=i.onPossibleBlackoutEnter,this.onPossibleBlackoutLeave=i.onPossibleBlackoutLeave,this.forceBlackoutEnter=r.forceBlackoutEnter,this.forceBlackoutLeave=r.forceBlackoutLeave,this.queryParamUpdate=o,this.onFramePort=a,this.notifyStopRecording=function(){try{u.stop()}catch(e){console.warn("Unable to stop recording in iframe ("+Le.page.url+" "+Le.page.id+")")}},this.notifyStartRecording=function(){try{u.start()}catch(e){console.warn("Unable to start recording in iframe ("+Le.page.url+" "+Le.page.id+")")}}}function si(t,o,e,n,a){var r={IFRAME:!0,FRAME:!!e,OBJECT:!!n};function u(e){if(e.getAttribute){var n=(e.getAttribute("data")||"").toLowerCase();return r[e.tagName]&&("OBJECT"!==e.tagName||"text/html"===(e.getAttribute("type")||"").toLowerCase()||n.indexOf(".html")===n.length-5||n.indexOf(".htm")===n.length-4)}}function c(e){o.emit("frame:detected",e)}function i(e){if("childList"===e.type){for(var n=[],t=0;t<e.addedNodes.length;t++)u(e.addedNodes[t])?n.push(e.addedNodes[t]):"function"==typeof e.addedNodes[t].getElementsByTagName&&Array.prototype.push.apply(n,e.addedNodes[t].querySelectorAll(a));for(t=0;t<n.length;t++)c(n[t]);n.length&&n.length}else"attributes"===e.type&&u(e.actualTarget)&&(u(e.actualTarget)||"function"==typeof e.actualTarget.getElementsByTagName&&0<e.actualTarget.querySelectorAll(a).length)&&(r=e.actualTarget,i=e.attributeName,o.emit("frame:domChange",{target:r,attributeName:i}));var r,i}this.start=function(){for(var e=t.querySelectorAll(a),n=0;n<e.length;n++)c(e[n]);e.length,o.on("domMutation",i)}}function fi(u,c,s,f,e,l,d,r,h){var i,v,o;r=r||{containerIdAttribute:"gb_cid",mscTimeout:r.mscTimeout||2e3},this.perform=function(e,n,t){i=n,f.send(e,"child:hello",{pageId:c.id}),-1!==r.mscTimeout&&(o=setTimeout(t,r.mscTimeout))},this.setParentCallback=function(e){v=e},e.onMessage("child:hello",function(e,n,t){for(var r,i=u.querySelectorAll(h),o=0;o<i.length;o++)if(e===i[o].contentWindow){r=i[o];break}if(!r)return n.pageId,void(v&&v());var a=l(r);v&&v(a,n.pageId),r._gbHandshakeCompleted=!0,f.send(r.contentWindow,"parent:hello",{sessionId:d.sessionId,visitorId:d.visitorId,containerId:a,parentPageId:c.id,parentPageName:c.name,parentUnderBlackout:s.isUnderBlackout()},t)}),e.onMessage("parent:hello",function(e,n,t){o&&clearTimeout(o),n.containerId,n.parentPageId,(!!n.parentUnderBlackout).toString(),i&&i(n,t),i=Q})}function li(n,t,r){r=Z.optionsWithDefaults(r,{suspendReportingWhenLocationContains:[]});var e,i=(e=0,{increase:function(){return++e},decrease:function(){return--e}});function o(e){for(var n=0;n<r.suspendReportingWhenLocationContains.length;n++)if(0<=e.indexOf(r.suspendReportingWhenLocationContains[n]))return 1}function a(e){!0===e.visible&&t.isUnderBlackout()||e.sameOrigin&&o(e.frame.contentWindow.location.href)&&1===i.increase()&&n.emit("frame:blackoutEnter",e.frame)}function u(e){(!1!==e.visible||t.isUnderBlackout())&&e.sameOrigin&&o(e.frame.contentWindow.location.href)&&0===i.decrease()&&n.emit("frame:blackoutLeave",e.frame)}n.on("frame:wired",a),n.on("frame:load",a),n.on("frame:unload",u),n.on("frame:visibilityChange",function(e){(e.visible?a:u)(e)})}function di(e){var n,t=(n=0,{increase:function(){return++n},decrease:function(){return--n}});this.onPossibleBlackoutEnter=function(){1===t.increase()&&e.emit("notifyAll:blackoutEnter")},this.onPossibleBlackoutLeave=function(){0===t.decrease()&&e.emit("notifyAll:blackoutLeave")}}function hi(n,t,e,r,i,o,a,u,c,s,f,l,d){d=d||{};var h,v,m={detected:0,injected:0,injectionFailed:0,handshakesWithChildren:{success:0,error:0},handshakeWithParent:{startedAt:-1,completedAt:-1,timeout:!1}},g=n.top!==n;function p(){v&&a.notifyAll({type:"pageUpdate"})}function y(e,n){(h=e).origin=n,t.emit("parentWindowInfo",h),e.parentUnderBlackout&&u.forceBlackoutEnter(),m.handshakeWithParent.completedAt=Z.currentTimestamp(),m.handshakeWithParent.info=h,a.onParentHandshake(),l(e.parentPageId,e.containerId),h.containerId,h.parentPageId,h.sessionId}function b(){t.emit("clsDebug","handshake timeout"),m.handshakeWithParent.timeout=!0,l()}o&&o.setInjectionCallback(function(e,n){n?m.injected++:m.injectionFailed++}),c.setParentCallback(function(e,n){m.handshakesWithChildren.success+=e?1:0,m.handshakesWithChildren.error+=e?0:1,v&&t.emit("pageUpdate")}),this.initialize=function(){g||l()},this.stats=function(){return m},o&&d.skipHidden&&t.on("frame:visibilityChange",function(e){d.autoInject&&!e.frame._gbInjected&&e.visible&&o.inject(e.frame)}),t.on("saveEvent",function(e){v&&"pageUpdate"!==e.type&&-1!==L.snapshotApplicableEventType.indexOf(e.type)&&p()}),t.on("frame:detected",function(e){f(e);var n=i.wireFrame(e);d.autoInject&&o&&n&&o.inject(e)&&e.name,m.detected++}),t.on("frame:domChange",function(){t.emit("pageUpdate"),p()}),t.once("init:loaded",function(){r.start(),g&&(m.handshakeWithParent.startedAt=Z.currentTimestamp(),c.perform(n.parent,y,b))}),t.on("domTrackingStarted",function(){v=!0,h&&a.notify(n.parent,{type:"domTrackingStarted"},h.origin)}),t.on("frame:unload",function(e){e.frame._gbInjected=!1,setTimeout(function(){t.emit("sendStoragePendingReports")},1e3)}),t.on("frame:load",function(e){var n=e.frame;o&&d.autoInject&&e.sameOrigin&&!o.inject(n)||n.src}),t.on("frame:blackoutEnter",function(){n===n.top?e.onPossibleBlackoutEnter():a.notify(n.top,{type:"onPossibleBlackoutEnter"})}),t.on("frame:blackoutLeave",function(){n===n.top?e.onPossibleBlackoutLeave():a.notify(n.top,{type:"onPossibleBlackoutLeave"})}),t.on("frame:port",function(e){a.notify(n.top,{type:"onFramePort",args:e.args,transferable:e.transferable})}),t.on("notifyAll:blackoutEnter",function(){t.emit("local:forceBlackoutEnter"),a.notifyAll({type:"forceBlackoutEnter"})}),t.on("notifyAll:blackoutLeave",function(){t.emit("local:forceBlackoutLeave"),a.notifyAll({type:"forceBlackoutLeave"})}),t.on("iFramesForceFlush",function(){a.notifyAll({type:"forceFlush"})}),t.on("session:new",function(e){a.notifyAll({type:"queryParamUpdate",args:e})}),t.on("recordingStopped",function(){a.notifyAll({type:"notifyStopRecording"})}),t.on("recordingStarted",function(){a.notifyAll({type:"notifyStartRecording"})})}function vi(e,n){var t=!1,r=e.outerHeight,i=e.innerHeight,o=e.outerWidth,a=e.innerWidth;function u(){t||(e.outerHeight===r&&150<e.Math.abs(e.innerHeight-i)?(n.emit("devToolsVisibilityChanged",{value:!0,size:"oh_"+e.outerHeight+"_ih_"+e.innerHeight}),t=!0):e.outerWidth===o&&150<e.Math.abs(e.innerWidth-a)?(n.emit("devToolsVisibilityChanged",{value:!0,size:"ow_"+e.outerWidth+"_iw_"+e.innerWidth}),t=!0):e.outerHeight!==r?(r=e.outerHeight,i=e.innerHeight):(o=e.outerWidth,a=e.innerWidth))}this.startDetecting=function(){n.on("window:resize",u)}}function mi(n,e,t){t=t||{consoleMessage:""};var r=!1,i=n.document.createElement("div"),o=n.outerHeight,a=n.outerWidth;function u(e){r||e&&(n.outerHeight!==o?(o=n.outerHeight,1):n.outerWidth!==a&&(a=n.outerWidth,1))||n.console.log(i)}i.textContent=t.consoleMessage,Object.defineProperty(i,"id",{get:function(){r||(r=!0,e.emit("devToolsVisibilityChanged",{value:!0,size:"oh_"+n.outerHeight+"_ih_"+n.innerHeight+"_ow_"+n.outerWidth+"_iw_"+n.innerWidth}))}}),this.startDetecting=function(){e.on("event:unload",Z.gbBind(u,null,!1)),e.once("init:preloaded",Z.gbBind(u,null,!1)),e.on("window:resize",Z.gbBind(u,null,!0))}}function gi(e,n,t){var r,i,o=!1,a=!0;try{var u=URL.createObjectURL(new Blob(["(",function(){debugger;self.onmessage=function(e){self.postMessage("hi")}}.toString(),")()"],{type:"application/javascript"}))}catch(e){a=!1,logger.error("Failed creating blob for worker: "+e.message,e),n.emit("clsDebug","Failed creating blob for worker during Devtools detection. Detection will not work.")}function c(){r=!0;try{(i=new e.Worker(u)).onmessage=function(e){r=!1},i.postMessage("hello"),setTimeout(function(){i.terminate(),r&&!o&&(o=!0,URL.revokeObjectURL(u),n.emit("devToolsVisibilityChanged",{value:!0,size:"oh_"+e.outerHeight+"_ih_"+e.innerHeight+"_ow_"+e.outerWidth+"_iw_"+e.innerWidth}))},100)}catch(e){logger.error("Failed checking Devtools visibility: "+e.message,e),n.emit("clsDebug","Failed checking Devtools visibility")}}function s(){a&&(o||setTimeout(c,t))}this.startDetecting=function(){n.on("event:unload",Z.gbBind(s,null)),n.once("init:preloaded",Z.gbBind(s,null)),n.on("window:resize",Z.gbBind(s,null))}}function pi(e){e.startDetecting(),this.initialize=function(){}}function yi(o){this.getSelectorInfo=function(e,n,t){if(!e||"function"!=typeof e.getRootNode)return{selector:o.getSelectorInfo(e,n,t).selector};for(var r=[];e;)r.unshift(o.getSelectorInfo(e,n,t).selector),e=(e.getRootNode()||{}).host;var i={selector:r.splice(r.length-1)[0]};return r.length&&(i.hostSelectorPath=r.join(",")),i}}function bi(t,r,i){var o="_gbHasShadow",a="_gbHasObserver",u={initialShadowRootCount:0,hookInvocationsCount:0,totalShadowRootCount:0,totalShadowRootRemoved:0};function c(e){for(;e&&!e[o];)e[o]=!0,e=e.parentNode||e.host}function n(e){var n=t.Element.prototype[e];n&&(t.Element.prototype[e]=function(){var e=n.apply(this,arguments);try{Z.isAttachedToDOM(this)&&r.emit("shadow:rootAttached",e),r.emit("shadow:rootDetected",e),this[a]=!0,c(this),u.hookInvocationsCount++,u.totalShadowRootCount++}catch(e){e.message}return e})}r.on("domMutation",function(e){if("childList"===e.type){for(var n=0;n<e.addedNodes.length;n++)e.addedNodes[n][o]&&i.visit(e.addedNodes[n],function(e){e.shadowRoot&&!e[a]&&r.emit("shadow:rootDetected",e.shadowRoot)},pr.SHOW_ELEMENTS);for(n=0;n<e.removedNodes.length;n++)e.removedNodes[n][o]&&i.visit(e.removedNodes[n],function(e){e.shadowRoot&&(r.emit("shadow:rootRemoved",e.shadowRoot),u.totalShadowRootCount--,u.totalShadowRootRemoved++)},pr.SHOW_ELEMENTS)}}),this.startObservingShadowRoots=function(e){!function(e){for(var n=0;n<e.length;n++)c(e[n]),r.emit("shadow:rootDetected",e[n]),u.initialShadowRootCount++,u.totalShadowRootCount++}(e||[]),["attachShadow","createShadowRoot"].forEach(n),u.initialShadowRootCount},this.stats=function(){return u}}function wi(t,e,r,i,o,a,u){var c={},s=j,n=new bi(t,r,o.getNodeVisitor());r.on("shadow:rootDetected",function(e){var n=Yr(t,r,e,o.nodeAcceptancePredicate,{semiDomEnabled:u.semiDomEnabled,domIE11ForceMutationObserver:u.domIE11ForceMutationObserver,domForceIEMutationEventsHandler:u.domForceIEMutationEventsHandler,domTamperingDetectionEnabled:u.domTamperingDetectionEnabled,domFilterAttributes:u.domFilterAttributes,domIgnoreAttributes:u.domIgnoreAttributes,domIgnoreChangesById:u.domIgnoreChangesById,domIgnoreChangesByClass:u.domIgnoreChangesByClass,handleAttributeMutationsAsChunks:u.handleAttributeMutationsAsChunks,ignoreMutationsOnNotAttachedElements:u.ignoreMutationsOnNotAttachedElements,reinstateNativeMutationObserver:u.reinstateNativeMutationObserver});c[s.idOf(e)]=n,o.getSnapshotAccumulator().addBundle({name:"property",tracker:new Pr(e,s,a,u.domIgnoredFormElements),providers:[xr(i,{ignoredFormElement:u.domIgnoredFormElements})]}),n.start()}),r.on("shadow:rootRemoved",function(e){var n=s.idOf(e);c[n]&&(c[n].stop(),delete c[n]),o.getSnapshotAccumulator().removeBundle(e)}),r.on("domTrackingStarted",function(){n.startObservingShadowRoots(o.consumeCapturedNodes("ShadowRoot"))}),r.on("event:unload",function(){for(var e in c)c.hasOwnProperty(e)&&c[e]&&(c[e].stop(),c[e]=Q);c=Q}),this.initialize=function(){},this.stats=function(){return n.stats()}}function Ei(o,a,u){var c={url:o};if(window.fetch)try{return fetch(o,{cls_own:!0}).then(function(e){if(e.ok){c.type=e.headers.get("Content-Type"),c.headers={};for(var n=e.headers.entries(),t=n.next();!t.done;)c.headers[t.value[0]]=t.value[1],t=n.next();e.arrayBuffer().then(function(e){c.content=Z.pako.gzip(e),a(c)}).catch(function(e){logger.error("Failed getting resource data by fetch for url : "+o+" error:"+e.message),c.error="status:"+e.message,a(c)})}else logger.error("Failed getting resource data by fetch for url : "+o+" status:"+e.status+" "+e.statusText),0===e.status?u(c.url):(c.error="status:"+e.status+" "+e.statusText,a(c))}).catch(function(e){logger.error("Failed getting resource data by fetch for url : "+o+" error:"+e.message),c.error="status: "+e.message,a(c)}),!0}catch(e){logger.error("Failed using fetch API, performing fallback to XHR. Exception: "+e.message,e)}try{var s=new XMLHttpRequest;return s?(s.onreadystatechange=function(){if(4===s.readyState)if(200===s.status){var e=s.getResponseHeader("Content-Type");c.type=e,c.headers={};for(var n=s.getAllResponseHeaders().split("\n"),t=0;t<n.length;t++){var r=n[t].split(":"),i=r[0];(i=i&&i.trim())&&(r.splice(0,1),r=r.join(":"),c.headers[i]=r.trim())}c.content=Z.pako.gzip(s.response),a(c)}else 0===s.status?u(c.url):(logger.error("Failed getting resource data by Ajax for url : "+o+" status:"+s.status+" "+s.statusText),c.error="status: "+s.statusText+" ("+s.status+")",a(c))},s.cls_own=!0,s.open("GET",o,!0),s.responseType="arraybuffer",s.send(),!0):!1}catch(e){return logger.error(f+e.message,e),console.log("Failed getting resource data by Ajax for url: "+o+": "+e.message,e),!1}}function Ci(t,r){return function(e){if(!Z.startsWith(e,"http")||!t&&Z.extractOrigin(e)!==window.location.origin)return!0;for(var n=0;n<r.length;n++)if(-1!==e.indexOf(r[n]))return!0;return!1}}function Si(l,d,r,i,h,o,a,v,n){var e;(e=n||{}).countRecorded=0,e.countCorsDenied=0,e.recordingAll=!!d.get("res.all"),n=e;var t,u=Z.immutableSet("link","css","font","img","input"),c=v.resourceRecordCssOnly?Z.immutableSet("link","css"):Z.immutableSet("link","css","font","img","input"),m="res.pending",g="resurl.pending";function p(e){var n,t=d.get(e?g:m);if(d.remove(e?g:m),t)try{n=h.decode(t)}catch(e){logger.error("Failed parsing JSON for pending resources: "+e.message,e)}return n}function y(e,n){for(var t=[],r=0;r<e.length;r++){var i=e[r];!n&&o(i.name)||n&&a(i.name)||("xmlhttprequest"===e[r].initiatorType&&-1<e[r].name.indexOf(".svg")?!n&&v.resourceRecordCssOnly||t.push(i):(n&&u[e[r].initiatorType]||!n&&c[e[r].initiatorType])&&t.push(i))}return t}function s(e){(e.error||e.content&&e.content.length)&&(n.countRecorded++,i.emit("saveResourceEvent",e))}function f(e){n.countCorsDenied++,i.emit("saveCorsDeniedEvent",e)}function b(){var e,n,t=v.electAmount,r=v.maxPendingResources;if(d.get("res.all")&&(n=e=!0,t=Number.MAX_VALUE,r=Number.MAX_VALUE),e|=v.nonVersionedResources&&Math.random()<v.electProbability,n|=v.versionedResources&&Math.random()<v.electProbabilityVersioned,e||n){var i=l.performance.getEntriesByType("resource"),o=[],a=[];e&&(o=y(i,!1)),n&&(a=y(i,!0));var u,c=p(!1)||[],s=p(!0)||[];if(e){for(var f=0;f<t&&0<o.length&&!(c.length>=r);f++)u=Math.floor(Math.random()*o.length),c.push(o[u].name),o.splice(u,1);d.set(m,h.encode(c))}if(n)for(f=0;f<a.length;f++)s.indexOf(a[f].name)<0&&s.push(a[f].name),d.set(g,h.encode(s))}}v.electResourcesOnClear&&(l.Performance.prototype.clearResourceTimings?(t=l.Performance.prototype.clearResourceTimings,l.Performance.prototype.clearResourceTimings=function(){try{b()}catch(e){logger.error("faild to run hook on Performance.clearResourceTimings: "+e)}t.apply(this,arguments)}):l.Performance.prototype.webkitClearResourceTimings&&(t=l.Performance.prototype.webkitClearResourceTimings,l.Performance.prototype.webkitClearResourceTimings=function(){try{b()}catch(e){logger.error("faild to run hook on Performance.webkitClearResourceTimings: "+e)}t.apply(this,arguments)})),this.fetchResources=function(){var e,n;if(v.nonVersionedResources&&(e=p()))for(var t=0;t<e.length;t++)if(!r(e[t],s,f)){logger.error("Failed executing an XHR request for fetching a resource. Breaking the fetch loop.");break}v.versionedResources&&(e=p(!0))&&(n=function(e){for(var n=[],t=0;t<e.length;t++)n.indexOf(e[t])<0&&n.push(e[t]);return n}(e),i.emit("saveResourceUrls",n))},this.electResources=b,this.recordAllResources=function(){d.set("res.all","true")},this.stopRecordAllResources=function(){d.remove("res.all")}}function Ti(e,n,t,r){var i,o,a,u,c={},s=r.versionResources&&!r.resourceTimingRecordEnabled;(s||r.resourcesRecordEnabled&&void 0!==e.XMLHttpRequest)&&(o=new Si(e,new Zn(e.localStorage,{keysPrefix:L.Storage.UnboundKeyPrefix}),Ei,n,t,Ci(r.resourcesRecordAllowCors,r.resourceIgnoreWhenUrlContains),Ci(!0,r.resourceIgnoreWhenUrlContains),{electProbability:r.resourcesRecordChance,electProbabilityVersioned:r.versionResourcesEnabledByChance,electAmount:r.resourcesRecordCount,maxPendingResources:5,resourceRecordCssOnly:r.resourceRecordCssOnly,nonVersionedResources:r.resourcesRecordEnabled,versionedResources:s},c),n.once("init:loaded",function(){setTimeout(Z.gbBind(o.fetchResources,o),5e3)}),n.on("event:unload",Z.gbBind(o.electResources,o))),r.resourceTimingRecordEnabled&&In(r.resourceTimingRecordEnabledByChance,D,N,"performanceRecord",r.saveChancesByCookie)&&(i=new Ii(e,$,[{type:"resource",properties:["name","startTime","requestStart","responseStart","responseEnd","duration","decodedBodySize","loadMode","nextHopProtocol","initiatorType","transferSize","redirectStart","fetchStart","domainLookupStart","domainLookupEnd","redirectEnd","connectStart","resourceType","entryType","connectEnd","secureConnectionStart","isSuccessful"],filterBy:"initiatorType",validFilterValues:r.resourceTimingRecordAjax?Z.immutableSet("link","css","font","img","input","body","script","xmlhttprequest","fetch","beacon"):Z.immutableSet("link","css","font","img","input","body","script")}],r.reportURI),n.once("init:loaded",Z.gbBind(i.reportMeasurements,i,!1,"pageload")),n.on("segmentChanged",Z.gbBind(i.reportMeasurements,i,!1,"segment")),n.on("event:unload",Z.gbBind(i.reportMeasurements,i,!1,"unload"))),(i||o)&&(r.electResourcesOnClear&&(e.Performance.prototype.clearResourceTimings?(a=e.Performance.prototype.clearResourceTimings,e.Performance.prototype.clearResourceTimings=function(){try{i&&i.reportMeasurements(!0,"clearResources"),o&&o.electResources()}catch(e){logger.error("faild to run hook on Performance.clearResourceTimings: "+e)}a.apply(this,arguments)}):e.Performance.prototype.webkitClearResourceTimings&&(u=e.Performance.prototype.webkitClearResourceTimings,e.Performance.prototype.webkitClearResourceTimings=function(){try{i&&i.reportMeasurements(!0,"clearResources"),o&&o.electResources()}catch(e){logger.error("failed to run hook on Performance.webkitClearResourceTimings: "+e)}u.apply(this,arguments)})),r.isCheckResourceBuffer&&function(n,t){t=Z.optionsWithDefaults(t,{resourceBufferCheckTime:5e3,maxPerformanceBuffer:140,resourceBufferIncreaseBy:100});var r=150,i=t.maxResourcesBeforeFlush;n.performance&&(Object.getOwnPropertyDescriptor(n.Performance.prototype,"onresourcetimingbufferfull")?n.performance.onresourcetimingbufferfull=o:n.PerformanceObserver?new n.PerformanceObserver(e).observe({entryTypes:["resource"]}):setInterval(e,t.resourceBufferCheckTime));function e(){var e=n.performance.getEntriesByType("resource");e&&e.length>=i&&o()}function o(){var e;t.resourceBufferIncreaseBy&&0<t.resourceBufferIncreaseBy&&n.performance.setResourceTimingBufferSize?(e=n.performance.getEntriesByType("resource").length,r<e&&(r=e),r+=t.resourceBufferIncreaseBy,i+=t.resourceBufferIncreaseBy,n.performance.setResourceTimingBufferSize(r)):n.performance.clearResourceTimings()}}(e,{resourceBufferCheckTime:r.resourceBufferCheckTime,maxResourcesBeforeFlush:r.maxResourcesBeforeFlush,resourceBufferIncreaseBy:r.resourceBufferIncreaseBy})),this.initialize=function(){},this.startRecordingAll=function(){o?(console.log("Entering full resources recording mode."),o.recordAllResources()):console.log("Please allow resource recording first.")},this.stopRecordingAll=function(){o?(console.log("Exiting full resources recording mode."),o.stopRecordAllResources()):console.log("Please allow resource recording first.")},this.stats=function(){return c}}function Ii(d,i,o,t){var a,u,h={},v={},r="media",c="img",s="font",m="css",f="js",l="ajax",g="other",p=Z.immutableSet("png","gif","jpg","jpeg","svg","tif","tiff","bmp","webp"),y=Z.immutableSet("woff","woff2","ttf","otf","eot"),b=Z.immutableSet("xmlhttprequest","fetch","beacon"),w=Z.immutableSet("css");function E(e,n){e=e.split("."),e=e[e.length-1].toLowerCase();return-1<e.indexOf("?")&&(e=e.split("?")[0]),"script"===n?f:"video"===n||"audio"===n?r:"img"===n||"svg"===n?c:b[n]?l:"link"===n||"css"===n||"other"!==n?p[e=e]?c:y[e]?s:w[e]?m:g:g}function C(e){var n;e.hostname=Z.extractHostname(e.name),e.path=Z.extractPath(e.name),n=e.path.split("/"),e.fileName=n[n.length-1]}function S(e,n,t){for(var r,i={},o=0;o<n.length;o++)e[n[o]]!==Q&&(i[n[o]]=e[n[o]]);return"resource"===t&&"document"!==i.name&&((r=i).name&&(r.resourceType||(t=E(r.name,r.initiatorType))&&(r.resourceType=t.toLowerCase()),C(r),r.isSameTLD=Z.getUpperLevelDomain(d.location.host)===Z.getUpperLevelDomain(r.hostname)),r.nextHopProtocol&&(r.protocol=r.nextHopProtocol),delete r.nextHopProtocol,r.isFromCache=0===r.transferSize&&d.location.host===r.hostname),delete(r=e).loadMode,delete r.isSuccessful,delete r.resourceType,i}function T(e){if(e){var n=e.name;return-1===n.indexOf(t)&&(!h[n]||h[n].startTime!==e.startTime)}}function I(e,n,t,r,i){var o,a,u=[],c=d.performance.getEntriesByType(n),u=r&&i?c.filter(function(e){return i[e[r]]!==Q}):c;if("resource"===n){var s=function(){for(var e={},n=d.document.querySelectorAll('script[src][async],script[src][defer],link[rel="preload"],img[loading]'),t=0;t<n.length;t++)switch(n[t].tagName){case"SCRIPT":e[n[t].src]=n[t].async?"async":n[t].defer?"defer":"sync";break;case"LINK":e[n[t].href]="preload";break;case"IMG":e[n[t].src]="lazy"}return e}();for(!function(){for(var e,n=d.document.querySelectorAll('link[rel="stylesheet"]'),t=0;t<n.length;t++)e=n[t].href||n[t].name,v[e]=!0}(),"function"==typeof d.performance.getEntriesByType&&d.performance.getEntriesByType("navigation")[0]?u.push(d.performance.getEntriesByType("navigation")[0]):Z.isSafari(d.navigator.userAgent)&&u.push({startTime:0,connectEnd:(c=d.performance.timing).connectEnd,connectStart:c.connectStart,domainLookupEnd:c.domainLookupEnd,domainLookupStart:c.domainLookupStart,entryType:"navigation",fetchStart:c.fetchStart,initiatorType:"navigation",name:d.location.href,redirectEnd:c.redirectEnd,redirectStart:c.redirectStart,requestStart:c.requestStart,responseEnd:c.responseEnd,responseStart:c.responseStart,secureConnectionStart:c.secureConnectionStart}),o=0;o<u.length;o++)T(u[o])&&("script"===(a=u[o]).initiatorType?a.loadMode=s[a.name]||"sync":"link"!==a.initiatorType&&"img"!==a.initiatorType||(s[a.name]&&(a.loadMode=s[a.name]),"link"===a.initiatorType&&v[a.name]&&(a.resourceType=m)),a.isSuccessful=!(0<a.transferSize&&0===a.duration));v={}}for(e[n]=[],o=0;o<u.length;o++){var f,l=u[o];T(l)&&(f=S(l,t,n),h[l.name]={startTime:l.startTime},"navigation"!==f.initiatorType&&"navigation"!==f.entryType||((l=f).initiatorType=l.initiatorType||l.entryType,l.isSuccessful=!0,l.isSameTLD=!0,l.resourceType="other",l.duration=l.duration||l.responseEnd-l.redirectStart,"document"===l.name&&(l.name=d.location.href||l.name,C(l))),e[n].push(f))}}d.navigator.connection&&(a=d.navigator.connection.effectiveType,u=d.navigator.connection.rtt),this.reportMeasurements=function(e,n){try{var t={};0;for(var r=0;r<o.length;r++)I(t,o[r].type,o[r].properties,o[r].filterBy,o[r].validFilterValues);e&&(h={}),a&&(t.ect=a),u&&(t.rtt=u),t.pagePerformance=d.performance.timing,t.version=1,t.causedBy=n,i.emit("resourcesWaterfall",t)}catch(e){logger.error("Exception while trying to report resources waterfall. Error: "+e.message,e),i.emit("clsDebug","error trying to report resources waterfall. Exception message: "+e.message)}}}function ki(e,n){var t,r=new xi(window,e);function i(){t&&clearTimeout(t),e.off("event:unload",i),e.off("event:visibilitychange",i),r.report()}ar(r),e.once("init:loaded",function(){r.track(),e.on("event:unload",i),e.on("event:visibilitychange",i),t=setTimeout(i,n)}),this.initialize=function(){}}function xi(e,n){var t,r,i={},o=0,a=0;e.navigator.connection&&(t=e.navigator.connection.effectiveType,r=e.navigator.connection.rtt),this.track=function(){try{this.webVitals.getCLS(function(e){o++,e.value!==Q&&(i[e.name]=e.value)},!0)}catch(e){logger.error("failed getting CLS. Is browser supported by lib? "+e.message,e)}try{this.webVitals.getFCP(function(e){e.value!==Q&&(i[e.name]=e.value)})}catch(e){logger.error("failed getting FCP. Is browser supported by lib? "+e.message,e)}try{this.webVitals.getFID(function(e){e.value!==Q&&(i[e.name]=e.value)})}catch(e){logger.error("failed getting FID. Is browser supported by lib? "+e.message,e)}try{this.webVitals.getLCP(function(e){a++,0<e.value&&e.value!==Q&&(i[e.name]=e.value)},!0)}catch(e){logger.error("failed getting LCP. Is browser supported by lib? "+e.message,e)}try{this.webVitals.getTTFB(function(e){e.value!==Q&&(i[e.name]=e.value)})}catch(e){logger.error("failed getting TTFB. Is browser supported by lib? "+e.message,e)}},this.report=function(){var e={};i.NCLS=o,i.NLCP=a,t&&(e.ect=t),r&&(e.rtt=r),e.webVitals=JSON.stringify(i),n.emit("webVitals",e)}}function Ai(r,e,n,t,i){var o,a=["always","never","fqdn","tld","statusGte"];e.once("init:loaded",function(){o&&o.onLoadCheck(),"undefined"!=typeof jQuery&&void 0!==jQuery.validator&&new Ri(e).intercept()}),e.once("init:preloaded",function(){i.html5FormValidation&&new Ni(e).init(),i.domFormValidationTracking&&function(){var e=i.ignorablePages.filter(function(e){for(var n=0;n<a.length;++n)if(-1!==e.indexOf(a[n]))return!1;return!0});if(e&&e.length)for(var n=new Vt(r.location.hostname),t=0;t<e.length;++t)if(n.create(e[t])({url:r.location.href}))return;return 1}()&&(o=new Mi(r,e,Z,n,t,Yn(r.document),{redComponentMin:i.redComponentMin,redComponentDelta:i.redComponentDelta,submitIds:i.submitIds,submitSelectors:i.submitSelectors,allowFormLevel:i.allowFormLevel,considerBG:i.considerBG,additionalTagNames:i.additionalTagNames,ignorableText:i.ignorableText,ignorableTags:i.ignorableTags,urlsRegexToCheck:i.urlsRegexToCheck,titleRegexStringToCheck:i.titleRegexStringToCheck}),e.on("event:mousedown",function(e){o.intercept(e.element)}),e.on("element:focus",function(e){o.intercept(e)}))}),this.initialize=function(){}}function Mi(t,f,n,l,d,r,h){var i=function(e){for(var n=[],t=0;t<e.length;t++)n.push(e[t].toLowerCase());return n}((h=n.optionsWithDefaults(h,{redComponentMin:120,redComponentDelta:80,minTextLen:10,submitIds:[],submitSelectors:[],ignoreNodesVisibility:!1,allowFormLevel:!0,considerBG:!0,additionalTagNames:[],ignorableText:["characters left","characters remaining"],urlsRegexToCheck:[],titleRegexStringToCheck:[]})).ignorableText),o=n.immutableSet.apply(null,h.submitIds),a=n.immutableSet.apply(null,h.additionalTagNames),u=n.immutableSet.apply(null,h.ignorableTags),v=n.immutableSet("INPUT","SELECT","TEXTAREA"),m='input:not([type="hidden"]),select,textarea',g=2,p=!1,y={},b={};function w(e){for(;e;){if("FORM"===e.tagName||a[e.tagName])return n.isVisible(e)?e:null;e=e.parentNode||e.host}return null}function E(e,n){setTimeout(function(){!0===Y.netgearSendDebugInfo&&f.emit("clsDebug","GLAS30-18364: >>> Emitting formValidationError <<< el: "+e.tagName+" (gbid: "+l.idOf(e)+") / msg: "+n),f.emit("formValidationError",{element:e,message:n})},0)}function C(e){return n.isVisible(e)&&"hidden"!==t.getComputedStyle(e).visibility}function c(e){return!function(e){var n;for(e=e.replace(/\s+/g," ").toLowerCase(),n=0;n<i.length;n++)if(-1!==e.indexOf(i[n]))return 1}(e.textContent)&&e.textContent.trim().length>h.minTextLen}function S(e){return!y[l.idOf(e)]&&c(e)&&(!u[(e=e).parentNode.tagName]&&(n((e=t.getComputedStyle(e.parentNode)).color)||h.considerBG&&n(e.backgroundColor)));function n(e){e=e.match(/\d+/g);return e&&parseInt(e[0])>h.redComponentMin&&e[0]>Math.max(parseInt(e[1]),parseInt(e[2]))+h.redComponentDelta}}f.on("domMutation",function(c){var s;p&&((s=w(c.actualTarget))?setTimeout(function(){for(var e,n,t,r="childList"===(e=c).type?e.addedNodes:"attributes"===e.type?[e.actualTarget]:[],i=[],o=0;o<r.length;o++)!function(e,n){(e.nodeType!==Node.ELEMENT_NODE||h.ignoreNodesVisibility||C(e))&&(e.nodeType===Node.TEXT_NODE?e.parentNode&&S(e)&&(h.ignoreNodesVisibility||!h.ignoreNodesVisibility&&C(e.parentNode))&&n.push(e):d.visit(e,function(e){if(e)if(e.nodeType===Node.TEXT_NODE&&S(e))n.push(e);else if(e.nodeType===Node.ELEMENT_NODE&&!h.ignoreNodesVisibility&&!C(e))return!1},pr.SHOW_ALL,!0))}(r[o],i);for(o=0;o<i.length;o++){var a,u=function(e,n){!0===Y.netgearSendDebugInfo&&f.emit("clsDebug","GLAS30-18364: errorRelatedElement: "+l.idOf(e)+" / nodeValue: "+e.nodeValue);for(var t=(e=e.parentNode).previousElementSibling;t;){if(v[t.tagName])return!0===Y.netgearSendDebugInfo&&f.emit("clsDebug","GLAS30-18364: BINGO! Found related element: "+l.idOf(t)+" / "+t.tagName),t;t=t.previousElementSibling}for(var r,i=g,o=e.parentElement;o&&i--;){if(!0===Y.netgearSendDebugInfo&&f.emit("clsDebug","GLAS30-18364: parent: #"+o.id+" (gbid: "+l.idOf(o)+") / "+o.tagName),1===(r=o.querySelectorAll(m)).length)return!0===Y.netgearSendDebugInfo&&f.emit("clsDebug","GLAS30-18364: Bingo! Found candidate: #"+r[0].id+" / "+r[0].tagName),r[0];if(1<r.length){!0===Y.netgearSendDebugInfo&&f.emit("clsDebug","GLAS30-18364: Too many candidates "+r.length);break}if(o===n){!0===Y.netgearSendDebugInfo&&f.emit("clsDebug","GLAS30-18364: parent === fallback");break}o=o.parentNode}return!0===Y.netgearSendDebugInfo&&f.emit("clsDebug","GLAS30-18364: Returning fallback: "+n.tagName+" (gbid: "+l.idOf(n)+")"),n}(i[o],s);h.allowFormLevel||u!==s?(!0===Y.netgearSendDebugInfo&&f.emit("clsDebug","GLAS30-18364: errRelatedEl: #"+u.id+" (gbid: "+l.idOf(u)+") / errRelatedEl.tagName: "+u.tagName),a=(n=u,a=t=void 0,t=l.idOf(n),a=void 0===b[t]||b[t]!==n.value,!0===Y.netgearSendDebugInfo&&f.emit("clsDebug","GLAS30-18364: elId: "+t+' / typeof valueLog[elId] === "undefined": '+(void 0===b[t])+" / valueLog[elId]: "+b[t]+" !== relatedEl.value: "+n.value+" / result: "+(b[t]!==n.value)),b[t]=n.value,!0===Y.netgearSendDebugInfo&&f.emit("clsDebug","GLAS30-18364: ThrottleByValue !valueChanged? "+!a),!!a),v[u.tagName]&&!a||(!0===Y.netgearSendDebugInfo&&f.emit("clsDebug","GLAS30-18364: !inputElements[errRelatedEl.tagName]: "+!v[u.tagName]+" / !throttleByValue(errRelatedEl): "+a),(y[l.idOf(i[o])]=!0)===Y.netgearSendDebugInfo&&f.emit("clsDebug","GLAS30-18364: >>> EMIT VALIDATION ERROR <<< reportedCheckList: "+JSON.stringify(y)+" / textNodes[i].textContent: "+i[o].textContent+" / textNodes[i]: "+JSON.stringify(i[o])),E(u,i[o].textContent.trim()))):!0===Y.netgearSendDebugInfo&&f.emit("clsDebug","GLAS30-18364: not allowing form level violations")}},1):!0===Y.netgearSendDebugInfo&&f.emit("clsDebug","GLAS30-18364: !contextForm"))}),this.intercept=function(e){var n=!1;if(0<h.submitSelectors.length)for(var t=0;t<h.submitSelectors.length;t++)if(r.matches(e,h.submitSelectors[t])){n=!0;break}(p=o[e.id]||!!w(e)||n)&&(y={})},this.onLoadCheck=function(){var e;if(h.urlsRegexToCheck.length)for(e=0;e<h.urlsRegexToCheck.length;++e)if(n.isStringMatch(h.urlsRegexToCheck[e],t.location.href))return void E(K.body,"url contain form validation signs: "+h.urlsRegexToCheck[e]);if(h.titleRegexStringToCheck.length)for(e=0;e<h.titleRegexStringToCheck.length;++e)if(n.isStringMatch(h.titleRegexStringToCheck[e],t.document.title))return void E(K.body,"title contain form validation signs: "+h.titleRegexStringToCheck[e])}}function Ri(c){var s=1,f=this;this.showErrorsLRU=new Gn(20),this.intercept=function(){var u=jQuery.validator.prototype.showErrors;jQuery.validator.prototype.showErrors=function(e){try{if(this.errorList&&0<this.errorList.length)for(var n=0;n<this.errorList.length;n++){var t=this.errorList[n].element,r=this.errorList[n].message,i="SAME - NOT REPORTING";t.gbLocalId||(t.gbLocalId=s,s++);var o,a=f.showErrorsLRU.set(t.gbLocalId,r);null===a||E.isUndefined(a)?i="NEW":a!==r?i="UPDATE":a!==r||(o=this.errorsFor(t))&&0<o.length&&!E.isUndefined(o[0].innerHTML)&&(o[0].innerHTML===r&&jQuery(o[0]).is(":visible")||(i="SHOW")),"NEW"!==i&&"UPDATE"!==i&&"SHOW"!==i||c.emit("formValidationError",{element:t,message:0<r.length?r:"NONE"})}}catch(e){logger.error("Failed intercepting showErrors for validation error report. "+e.message,e)}u.call(this,e)}}}function Ni(n){var t=this,r=0,i="_gb_hasValidationListener";t.emitValidationEvent=function(e){Z.currentTimestamp()-r<1e3||(r=Z.currentTimestamp(),n.emit("formValidationError",{element:e.target,message:e.target.validationMessage||"NONE"}))},t.addEventsListeners=function(e){for(var n=0;n<e.addedNodes.length;n++)Node.ELEMENT_NODE==e.addedNodes[n].nodeType&&!e.addedNodes[n][i]&&e.addedNodes[n].matches("input, textarea, select")&&(e.addedNodes[n].addEventListener("invalid",t.emitValidationEvent),e.addedNodes[n][i]=!0)},t.init=function(){n.on("html5FormValidation:invalid",t.emitValidationEvent),n.on("domMutation",function(e){setTimeout(function(){t.addEventsListeners(e)},0)})}}function Di(e,t,i){var o,a,u={};function n(){o=[{body:{gbid:i.idOf("BODY"),selector:"-",cssSelector:"body",name:"BODY",submitted:!1},inputsAsMap:{}}]}function c(e,n){logger.error(e+". Message: "+n.message,n),t.emit("clsDebug",e+". Message: "+n.message)}function r(){try{a&&(o[0].body.lastInput=a.toString()),function(){for(var e=0;e<o.length;e++)if(!Z.isEmpty(o[e].inputsAsMap))return 1}()&&t.emit("formAnalysis",function(e){e[0].body.gbid=e[0].body.gbid.toString();for(var n=0;n<e.length;n++){var t=e[n].inputsAsMap;if(Object.keys(t).length)for(var r in e[n].inputs=[],t)t.hasOwnProperty(r)&&e[n].inputs.push(t[r]),t[r].gbid=t[r].gbid.toString();delete e[n].inputsAsMap}return e}(o)),n()}catch(e){c("Exception while sending Form Analysis",e)}}function s(e,n,t){if(!o[0].inputsAsMap[n]&&"submit"!==e.type.toLowerCase()){var r,r={type:("INPUT"===(r=e).tagName&&r.type||r.tagName).toLowerCase(),gbid:n,metrics:{entries:0,duration:0,validationErrors:0}};try{!function(e,n,t){e=O.getSelectorInfo(e);n.selector=e.selector||L.encoding.rootSelector,t&&"-"!==t&&(n.cssSelector=t);e.hostSelectorPath&&(n.shadowHostPath=e.hostSelectorPath)}(e,r,t),r.name=Le.extractVisualName(e),o[0].inputsAsMap[n]=r}catch(e){c("Exception while adding a new input",e)}}}n(),t.on("event:elementChange",function(e){try{var n,t,r=e.element.type.toLowerCase();"SELECT"===e.element.tagName||"radio"===r||"checkbox"===r?(n=i.idOf(e.element),o[0].inputsAsMap[n]||s(e.element,n,e.cssSelector),o[0].inputsAsMap[n].metrics.entries++):(n=i.idOf(e.element),t=o[0].inputsAsMap[n],"number"==typeof u[n]&&(t.metrics.duration+=Z.currentTimestamp()-u[n])),a=n}catch(e){c("Exception while handling focus lost",e)}}),t.on("event:focus",function(e){try{var n=i.idOf(e.element);u[n]=Z.currentTimestamp();var t=o[0].inputsAsMap;t[n]||s(e.element,n,e.cssSelector),t[n].metrics.entries++}catch(e){c("Exception while handling focus in",e)}}),t.on("event:unload",r),t.on("segmentChanged",r),t.on("newInputElement",function(e){s(e.clone,e.gbid,e.cssSelector)}),t.on("formValidationError",function(e){e=i.idOf(e.element);try{o[0].inputsAsMap[e].metrics.validationErrors++}catch(e){c("Exception while updating validation error",e)}})}function Oi(e,n,t){n.once("init:preloaded",function(){Di(0,n,t)}),this.initialize=function(){}}function Li(e,n){e.on("newRemoteConfig",function(e){e.attributeRules&&n.processRules(e.attributeRules)}),this.initialize=function(){},this.stats=function(){return n.getStats()},this.evaluateAttributes=function(){n.evaluateAttributes()}}function Fi(e,n,t,r){this._elementResolver=n,this._accessors=t,this._rule=e,this._urlRegexp=r,this._isHierarchical=-1!==e.selector.indexOf(">")}function _i(c,s,i,o,a,f){var e,u,l={},d=[],h=["name","pageUrl","selector","accessorMethod","accessor"],n=!1,v={masked:0,reported:0,configured:0,configurationLastUpdatedAt:0,badRules:0,reportsByRule:{},rulesList:[]},t=!1,r=f.clientAttributeFuseWaitTime,m=!0,g=f.clientAttributeMaxMutations,p=0;function y(e){for(var n,t=0;t<e.length;t++)(n=function(e){for(var n=0;n<h.length;n++)if(!e[h[n]])return;if(a[e.accessorMethod]&&o.isValidSelector(e.selector)){var t,r=e.pageUrl;e.pageHash&&(r+=("#"===e.pageHash.charAt(0)?"":"#")+e.pageHash);try{t=new RegExp("^"+r.split("*").join(".*")+"$")}catch(e){return void logger.error("Exception occurred during parsing regular expression. Error: "+e.message,e)}if(t.test(c.location.href))return e.selector=e.selector.replace(/\s*>\s*/g,">"),new i(e,o,a,t)}}(e[t]))&&d.push(n);v.configured=e.length,v.badRules=e.length-d.length}function b(e,n){try{for(var t=c.location.href,r={},i=0;i<d.length;i++){var o,a=d[i].evaluate(e,t,n,r,function(e){var n;return function(){return n=n||O.getSelectorInfo(e,!1).selector}}(e)),u=d[i].getRuleName();a&&a.val&&l[u]!==a.val&&(a.isMasked()?v.masked++:(o=d[i].getRuleMaxLength()||f.clientAttributeMaxLength,s.emit("clientAttribute",{name:u,val:a.val.substring(0,o)}),v.reportsByRule[u]=(v.reportsByRule[u]||0)+1,v.reported++,d[i]._rule.sessionTerminator&&S[C].invalidateSession()),l[u]=a.val)}}catch(e){logger.error("Exception occurred during rule evaluation. Error: "+e.message,e)}}function w(e){var n,t,r;!m||g!==Q&&-1<g&&(++p,u&&clearTimeout(u),u=setTimeout(function(){p=0},500),g<p)?E():(t=!(n="characterData"===e.type)&&"attributes"===e.type,r=n?e.target.parentNode:e.target,n||"childList"!==e.type||(n=1===e.addedNodes.length&&e.addedNodes[0].nodeType===Node.TEXT_NODE),r&&b(r,n||t))}function E(){r!==Q&&-1<r&&(e&&clearTimeout(e),m=!1,e=setTimeout(function(){m=!0,b(c.document,!1)},r))}s.once("init:loaded",function(){b(c.document,!1),n=!0}),s.on("segmentChanged",E),this.processRules=function(e){l={},v.configurationLastUpdatedAt=Z.currentTimestamp(),Z.assign(v.rulesList,e),y(e),!t&&d.length&&(s.on("domMutation",w),t=!0),n&&b(c.document,!1)},this.getStats=function(){return v},this.evaluateAttributes=function(){b(c.document,!1)}}function Pi(t,r,i){var o;t.once("init:preloaded",function(){(o=function(){var e,n=i.get("app.conf");if(n)try{e=r.decode(n)}catch(e){logger.error("Failed parsing JSON for configuration: "+e.message,e)}return e}()||{}).configuration&&t.emit("newRemoteConfig",o.configuration)}),t.on("worker:init",function(){o&&o.configuration&&t.emit("confHashChange",o.configuration.hash)}),this.handle=function(e,n){o&&(o.configuration&&o.configuration.hash!==e.hash||o.appId!==n)&&(delete e.remoteConfiguration,i.set("app.conf",r.encode({configuration:e,appId:n})),o.configuration=e,o.appId=n,e&&t.emit("newRemoteConfig",e),t.emit("confHashChange",e.hash))}}function Bi(t,e){var r;t.once("init:loaded",function(){(r=e[Bi.KEY_NAME])&&t.emit("analyzerId",r)},Q,-1),t.on("event:unload",function(){try{r&&(e[Bi.KEY_NAME]=r)}catch(e){logger.error("error: could not set aid to storage. "+e.message)}}),this.handle=function(e,n){e&&(r=e,t.emit("analyzerId",r))}}function ji(){this.handle=function(e,n){}}function Ui(n,t,r){var i;function e(){r.get("app.clse")&&r.remove("app.clse")}n.once("init:preloaded",function(){(i=function(){var e,n=r.get("app.clse");if(n)try{e=t.decode(n)}catch(e){logger.error("Failed parsing JSON for configuration: "+e.message,e)}return e}()||{}).clse&&n.emit("remoteClseConf",i.clse)}),n.on("worker:init",function(){i&&i.clse&&n.emit("clseChange",i.clse)}),this.handle=function(e){!e||!e.clse||i.clse&&i.clse===e.clse||(r.set("app.clse",t.encode({clse:e.clse})),n.emit("remoteClseConf",e.clse))},n.on("newSessionSet",e),n.once("plugin:newSessionSet",e)}function Vi(e,o){e.on("handleGatewayResponse",function(e){var n;try{n=JSON.parse(e)}catch(e){return void logger.error("Failed parsing JSON of response: "+e.message,e)}var t,r=n.conf||n,i=r.appId;for(t in r)r.hasOwnProperty(t)&&o[t]&&o[t].handle(r[t],i);n.clse&&o.clse.handle(n.clse)}),this.initialize=function(){}}function Hi(v,m,g,p,y,e,b){this.initialize=function(){var i,r,o,a,u,c,s,f,e,l,d,n=lr();function h(e,n){var t;s.recordClipboardContent&&(t=e.target,(e="paste"===e.type?(e.clipboardData||i.clipboardData).getData("text"):(Z.isIE()||Z.isFF())&&e.target.value?e.target.value:r.getSelection().toString())&&e.length&&(n.contentLength=e.length,e=e.substr(0,s.clipboardMaxValue)),l[t.nodeName]&&a.isCensored(t)||u.isDomMasked(t,We.SELF_OR_ANY_PARENT,qe.TEXT)?e=c.censorValueOf(e):/\d/.test(e)&&(t=e.match(/\d+/gm),e=c.censorValueOf(e,0,"*",t)),e&&(n.content=e))}function t(){e&&clearTimeout(e),setTimeout(function(){f=null},s.clipboardMaxDuration)}b.recordClipboardEvents&&(i=v,r=m,o=g,a=p,u=n,c=y,s=b,l={TEXTAREA:!0,INPUT:!0,SELECT:!0},d={file:"binary",string:"text",mix:"mix"},n={onCopy:function(e){t();var n={type:e.type,timestamp:Z.currentTimestamp(),element:e.target};f={type:n.type,timestamp:n.timestamp,element:n.element},h(e,n),n.content&&(f.content=n.content),o.emit("clipboardEvent",{data:n,element:e.target})},onCut:function(e){t();var n={type:e.type,timestamp:Z.currentTimestamp(),element:e.target};f={type:n.type,timestamp:n.timestamp,element:n.element},h(e,n),n.content&&(f.content=n.content),o.emit("clipboardEvent",{data:n,element:e.target})},onPaste:function(e){var n,t={type:e.type,timestamp:Z.currentTimestamp()},r=(e.clipboardData||i.clipboardData).items;if(r&&r.length)for(t.contentType=r[0].kind,n=0;n<r.length;++n)t.contentType!==r[n].kind&&(t.contentType="mix");t.contentType=d[t.contentType],h(e,t),t.content&&f&&t.content===f.content&&(delete f.content,t.sourceData={type:f.type,timestamp:f.timestamp,element:f.element},f.content&&(t.sourceData.content=f.content)),o.emit("clipboardEvent",{data:t,element:e.target})}},Z.addEventHandler(v,"copy",n.onCopy),Z.addEventHandler(v,"cut",n.onCut),Z.addEventHandler(v,"paste",n.onPaste))}}function Wi(e){for(var n=0;n<en.length;n++)Ke.hasOwnProperty(en[n])&&(e[en[n]]=Ke[en[n]]);return e}!e&&function(e,n){if(void 0===e[n])return void 0===e.NodeFilter;void 0!==e.console&&"function"==typeof e.console.log&&console.log("WARNING[EyeView-1301]: detector script has been loaded more than once. Please fix to have a single detector loading. (Extra script loading will be ignored)");return!0}(S,C)||(t=self,r=K,(i={beaconVersion:"2"}).detectorVersion=n,i.mouseEvents=t&&t.PointerEvent?{down:"pointerdown",up:"pointerup"}:{down:"mousedown",up:"mouseup"},i.eventTypes=[i.mouseEvents.down,i.mouseEvents.up,"touchstart","touchend","scroll","change","blur","focusout","keydown","keyup","submit","reset","load","unload","ajaxComplete","hashchange","navigation","popstate","focus","focusin","mouseenter","mousemove","error","beforeunload","resize","pagehide","dragstart","dragend","visibilitychange","copy","paste","cut"],i.snapshotApplicableEventType=["pageUpdate","change","mousedown","scroll","touchstart","touchend","blur","submit","drag","dragstart","dragend","formValidationError","navigation","unload","beforeunload","segmentChanged","domTampered","visibilitychange"],i.reportBase64URLs=!1,i.nobelEventTypes=["pageSnapshot"],i.socialNobelEventTypes=["resourceContent"],i.encryptionPrefix="__ENC_",i.encodeSelectors=!0,i.encodeEventTypes=!0,i.useClassesInSelectors=!1,i.encoding={numberBase:36,rootSelector:"-",rootCssSelector:"-",delimiters:{versionPayload:";",pages:"~~~",events:"~~",eventParts:"~",pageIdEvents:"_"},domSnapshotPrefix:"D",domSnapshotRefPrefix:"r",domSnapshotCompressedPrefix:"d",domSnapshotPlainPrefix:"P",valueEncodedPrefix:"E",valueNotEncodedPrefix:"N"},i.cookies={session:"_cls_s",visitor:"_cls_v",sub_session:"_cls_subs",supportMode:"_cls_sm"},i.censorMode={BlackList:"blacklist",WhiteList:"whitelist"},i.iframesAutoInjectMode={BlackList:"blacklist",WhiteList:"whitelist"},i.Storage={BoundKeyPrefix:"gb.",UnboundKeyPrefix:"gb_unbound."},i.detectorScript=r?function(e,n){if(e)return!e.hasAttribute(n)&&r.querySelector("["+n+"]")||e;n=r.querySelector("["+n+"]");return n=(n=t&&!n&&t._cls_config&&t._cls_config.detectorTagId?r.getElementById(t._cls_config.detectorTagId):n)||r.getElementById("_cls_detector")}(r.currentScript,"data-clsconfig"):Q,L=i,void 0!==(Y={})&&cn(Y),L.setup="dom",void 0!==Y&&sn(Y),L.dictionary={eventTypes:{change:0,document:2,mousedown:3,touchstart:4,touchend:5,focusout:6,blur:7,unload:9,submit:10,reset:11,mouseup:12,drag:13,scroll:14,popstate:15,keydown:16,keyup:17,keypress:18,scrollReach:19,timing:20,idle:21,ajaxRequest:22,formValidationError:23,hashchange:25,botDetection:26,mouseenter:27,navigation:28,mousemove:29,error:30,thirdparty:31,custom:32,hover:33,thirdpartymap:34,performance:35,resource:36,clsdebug:37,resize:38,thirdPartyAttribute:39,ajaxStats:40,ajaxLimitReached:41,pageSnapshot:91,pageUpdate:92,resourceContent:93,corsDeniedResource:94,formAnalysis:95,blackout:101,segmentChanged:102,titleChanged:103,devToolsVisibilityChanged:104,domTampered:105,webStruggle:106,voc:107,clientAttribute:110,waterfall:111,lastSegment:112,webVitals:113,resourcesWaterfall:114,abTesting:120,customMap:121,resourceUrls:124,consoleWarn:125,consoleInfo:126,rightclick:127,clipboard:140},elements:{DIV:0,SPAN:1,INPUT:2,FORM:3,SELECT:4,TEXTAREA:5,TABLE:6,TR:7,TD:8,IFRAME:9,TBODY:10,THEAD:11,LABEL:12},encodingTypes:{cd_number:0,cd_boolean:1,cd_string:2,cd_coordinate:3,cd_navtiming:4,cd_objarray:5},performanceTimingEvents:{navigationStart:1,redirectStart:2,fetchStart:4,domainLookupStart:5,connectStart:7,secureConnectionStart:8,requestStart:10,responseStart:13,domLoading:15,domContentLoadedEventStart:17,domComplete:19,loadEventStart:20,loadEventEnd:21},encode:function(e,n){n=n[e];return n!==Q?n:e},encodeEventType:function(e){return L.dictionary.encode(e,L.dictionary.eventTypes)},encodeNodeName:function(e){return L.dictionary.encode(e,L.dictionary.elements)},encodeEncodingType:function(e){return L.dictionary.encode(e,L.dictionary.encodingTypes)},encodePerformanceTimingMeasurement:function(e){return L.dictionary.encode(e,L.dictionary.performanceTimingEvents)}},function(e){if(e.CSS&&e.CSS.escape)return e.CSS.escape;var n=function(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");var n=String(e);var t=n.length;var r=-1;var i;var o="";var a=n.charCodeAt(0);while(++r<t){i=n.charCodeAt(r);if(i==0){o+="�";continue}if(i>=1&&i<=31||i==127||r==0&&i>=48&&i<=57||r==1&&i>=48&&i<=57&&a==45){o+="\\"+i.toString(16)+" ";continue}if(r==0&&t==1&&i==45){o+="\\"+n.charAt(r);continue}if(i>=128||i==45||i==95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){o+=n.charAt(r);continue}o+="\\"+n.charAt(r)}return o};if(!e.CSS)e.CSS={};e.CSS.escape=n}(self),o=Object.prototype.toString,E={isFunction:function(e){return"function"==typeof e},isNumber:function(e){return"number"==typeof e||"[object Number]"===o.call(e)},isBoolean:function(e){return"boolean"==typeof e||"[object Boolean]"==o.call(e)},isString:function(e){return"string"==typeof e||"[object String]"===o.call(e)},isUndefined:function(e){return void 0===e},last:function(e){return e&&e[e.length-1]},forOwn:function(e,n){for(var t in e)e.hasOwnProperty(t)&&n(e[t],t)},indexOf:a=fn("indexOf"),pluck:function(e,n){return e?e.map(function(e){return e[n]}):[]},reduce:fn("reduce"),contains:"function"==typeof Array.prototype.includes?fn("includes"):function(e,n,t){return-1<a(e,n,t)},forEach:fn("forEach")},u=E,c=self,s=(s=void 0!==Y?Y:{})||{},logger={isConsoleSupported:function(){return!u.isUndefined(c.console)&&u.isFunction(c.console.log)},error:function(){this.log.apply(this,arguments)},log:function(){var e;!u.isUndefined(s.debugMode)&&s.debugMode&&((e=Array.prototype.slice.call(arguments,0)).unshift(Z.currentTimestamp()),Le&&Le.page&&Le.page.frame&&e.push(" (in frame "+Le.page.id+")"),this.isConsoleSupported()?console.log.apply(console,e):u.isUndefined(c.console.log)||(e=e.join(" "),console.log(e)))},trace:function(){s.traceMode&&this.log.apply(this,arguments)}},f="error was detected ",$=new function(e){var o={},a=[];function i(e,n){return e[2]<n[2]?-1:e[2]>n[2]?1:0}(e=e||this).on=function(e,n,t,r){r===Q&&(r=0),(o[e]=o[e]||[]).push([n,t,r,!1]),o[e].sort(i)},e.once=function(e,n,t,r){r===Q&&(r=0),(o[e]=o[e]||[]).push([n,t,r,!0]),o[e].sort(i)},e.off=function(e,n){for(var t=(o=!e?{}:o)[e]||a,r=t.length=n?t.length:0;r--;)n==t[r][0]&&t.splice(r,1)},e.emit=function(e){for(var n,t=o[e]||a,r=0<t.length?t.slice(0,t.length):t,i=0;n=r[i];)n[0].apply(n[1],a.slice.call(arguments,1)),n[3]?(o[e].splice(i,1),r.splice(i,1)):i++},e.isListenToEvent=function(e){return 0<(o[e]||[]).length}},Z=function(r,c,s,f){f=f||{};var n,i,o,a,u={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",unload:"img",abort:"img",readystatechange:"XMLHttpRequest"},l="function"==typeof Object.assign?Object.assign:function(){var e=arguments[0];if(null===e||e===Q)throw new TypeError("Cannot convert undefined or null to object");for(var n,t,r=Object(e),i=1;i<arguments.length;i++)if(null!==(n=arguments[i])&&n!==Q)for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(r[t]=n[t]);return r},t={INPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,BUTTON:!0,A:!0},d=s&&s.createElement("a"),h=c&&c.console&&c.console.time&&c.console.timeEnd&&c.console.timeStamp,v=r.isFunction(c.String.prototype.startsWith),m=c&&s&&function(){if(c.Event&&c.Event.prototype&&c.Event.prototype.composedPath)return function(e){return e.composedPath()[0]};var n,t,r=!1;try{var e=c.navigator.userAgent;!1===/Trident|MSIE/i.test(e)&&!function e(){s.body?(n=s.createElement("iframe"),s.body.appendChild(n),r=!0,t=n.contentWindow.Event.prototype.composedPath,s.body.removeChild(n)):s.addEventListener("DOMContentLoaded",function(){e()})}()}catch(e){r&&(s.body.removeChild(n),r=!1)}return function(e){return t?t.call(e)[0]:e.target}}(),g=c.Node&&c.Node.prototype.hasOwnProperty("isConnected"),p=/@font-face\s{\sfont-family:\s.*;\ssrc:\surl\(.*\);\s}/;return{currentTimestamp:r.isFunction(Date.now)&&r.isNumber(Date.now())?Date.now:function(){return(new Date).getTime()},isElement:function(e){return"hasAttribute"in e},isDOMElement:function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName},isEditableInput:function(e){if(!e)return!1;if("INPUT"!==e.tagName)return!0;e=(e.getAttribute("type")||"").toLowerCase();return"button"!==e&&"submit"!==e&&"reset"!==e},isOldIE:function(){return!s.addEventListener},hasTouch:function(){return!!navigator.maxTouchPoints||!!navigator.msMaxTouchPoints||(c.matchMedia?c.matchMedia("(any-pointer: coarse)").matches:"ontouchstart"in c)},isMobile:function(){var e=navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|Windows Phone|IEMobile|Opera Mini|Mobile|mobile|Tablet [^PC]|CriOS/i.test(e)},isFF:function(e){e=e||navigator.userAgent;return/Firefox/i.test(e)},isChromeDesktop:function(e){e=e||navigator.userAgent,e=/Chrome/i.test(e);return!this.isMobile()&&e},isSafari:function(e){var n=e||navigator.userAgent,e=/Safari/i.test(n),n=/Chrome/i.test(n);return e&&!n},isSafariOnIos:function(){var e=navigator.userAgent,n=!!e.match(/iPad/i)||!!e.match(/iPhone/i),t=!!e.match(/WebKit/i);return n&&t&&!e.match(/CriOS/i)},isIE:function(e){e=e||navigator.userAgent;return/Trident|MSIE/i.test(e)},isChromeOnIos:function(e){e=e||navigator.userAgent;return/CriOS/i.test(e)},getChromeVersion:function(e){try{var n=(e||navigator.userAgent).match(/Chrom(e|ium)\/([0-9]+)\./);return!!n&&parseInt(n[2],10)}catch(e){return!1}},getAttributeForElement:function(e,n){return e&&this.isElement(e)?(e.hasAttribute(n.toLocaleLowerCase())?t=e.getAttribute(n.toLocaleLowerCase()):e.hasAttribute(n.toLocaleUpperCase())&&(t=e.getAttribute(n.toLocaleUpperCase())),(t=t&&this.trim(t))||null):null;var t},getElementId:function(e){return e&&e.id?r.isString(e.id)||"function"!=typeof e.getAttribute?e.id:e.getAttribute("id"):null},isDuplicateElementId:function(e){if(!f.duplicateIdCheck)return!1;try{return"querySelectorAll"in s?1<s.querySelectorAll("[id='"+e+"']").length:!1}catch(e){return!1}},getMouseEnterTarget:function(){return"onmouseenter"in s?s:"onmouseenter"in c?c:s.body},hasTimingAPI:function(){return!r.isUndefined(c.performance)&&!r.isUndefined(c.performance.timing)},startsWith:function(e,n){return!(!r.isString(e)||!r.isString(n))&&(v?e.startsWith(n):e.slice(0,n.length)===n)},truncateStr:function(e,n,t){var r=e;return e&&e.length>n&&(r=e.substr(0,n),t&&(r=r.concat("..."))),r},getCoordinate:function(e){var n=e.changedTouches||e.touches,t=n&&0<n.length?n[0]:e,n=this.extractElementFromEvent(e);return this.isHybrid()||"HTML"===n.nodeName.toUpperCase()?new it(t.clientX,t.clientY):r.isUndefined(t.pageX)||r.isUndefined(t.pageY)?new it(e.clientX+s.body.scrollLeft+s.documentElement.scrollLeft,e.clientY+s.body.scrollTop+s.documentElement.scrollTop):new it(t.pageX,t.pageY)},getScrollTopLeft:function(){try{var e=null!==c.top&&c.top!==c.self?c.top:c;return{top:void 0!==e.pageYOffset?e.pageYOffset:(e.document.documentElement||e.document.body.parentNode||e.document.body).scrollTop,left:void 0!==e.pageXOffset?e.pageXOffset:(e.document.documentElement||e.document.body.parentNode||e.document.body).scrollLeft}}catch(e){return logger.error("Failed getting scroll values: "+e.message,e),{top:0,left:0}}},getElementXYCoordinates:function(e){if(!e)return null;if(!("getBoundingClientRect"in e))return null;var n=e.getBoundingClientRect(),e=this.getScrollTopLeft();return new it(Math.round(n.left+e.left),Math.round(n.top+e.top))},isSameCoordinates:function(e,n){return e.x===n.x&&e.y===n.y},isCoordinatesDistLargerThan:function(e,n,t){return Math.abs(e.x-n.x)>t||Math.abs(e.y-n.y)>t},getCurrentScrollReach:function(){try{var e=null!==c.top&&c.top!==c.self?c.top:c;return(void 0!==e.pageYOffset?e.pageYOffset:(e.document.documentElement||e.document.body.parentNode||e.document.body).scrollTop)+(e.innerHeight||e.document.documentElement.clientHeight||e.document.body.clientHeight)}catch(e){return 0}},getWindowSize:function(){return r.isNumber(c.innerWidth)&&r.isNumber(c.innerHeight)?this.validateSize(c.innerWidth,c.innerHeight):!r.isUndefined(s.body)&&r.isNumber(s.body.offsetWidth)&&r.isNumber(s.body.offsetHeight)?this.validateSize(s.body.offsetWidth,s.body.offsetHeight):null},getScreenSize:function(){return this.validateSize(screen.width,screen.height)},validateSize:function(e,n){return r.isNumber(e)&&r.isNumber(n)?{width:e,height:n}:null},indexOfNode:function(e,n,t){for(var r=t||0;r<e.length;r++)if(e[r]===n)return r;return-1},getLocationUrlSplitByHash:function(e){var n=Z.decodeUri(e,c.location.href),e=n.indexOf("#");return-1===e?{url:n,withoutHash:n,hash:null}:{url:n,withoutHash:n.slice(0,e),hash:n.slice(e+1,n.length)}},getHashFromUrl:function(e){var n=e.indexOf("#");return-1===n?"":e.slice(n+1,e.length)},stripHash:function(e){var n=e.indexOf("#");return-1===n?e:e.slice(0,n)},getReferrerUrlWithoutHash:function(){var e=c.document.referrer;if(!e||0===e.length)return null;var n=e.indexOf("#");return-1!==n?e.slice(0,n):e},decodeUri:function(e,n){if(e)try{return decodeURIComponent(n).replace(/\s/g,"%20")}catch(e){return n}return n},encodeAsBase:function(e,n){return e.toString(n)},uuid:function(){var t=(new Date).getTime(),r=c.performance&&c.performance.now&&1e3*c.performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=16*Math.random();return 0<t?(n=(t+n)%16|0,t=Math.floor(t/16)):(n=(r+n)%16|0,r=Math.floor(r/16)),("x"===e?n:3&n|8).toString(16)})},supportsPassiveListeners:function(){var e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){e=!0}});c.addEventListener("testPassive",null,n),c.removeEventListener("testPassive",null,n)}catch(e){}return e}(),addEventHandler:function(e,n,t,r){e.addEventListener?e.addEventListener(n,t,this.supportsPassiveListeners?{passive:!0,capture:r}:r):e.attachEvent&&e.attachEvent("on"+n,t)},removeEventHandler:function(e,n,t){r.isUndefined(e.removeEventListener)?r.isUndefined(e.detachEvent)||e.detachEvent("on"+n,t):e.removeEventListener(n,t,!0)},extractElementFromEvent:function(e){e=((e=void 0===e?c.event:e).target.shadowRoot?m(e):e.target)||e.srcElement;return null==e?null:3===e.nodeType?e.parentNode:e},isEventSupported:function(e){var n="on"+e;if(n in c||n in c.document)return!0;var t=s.createElement(u[n]||"div"),e=n in t;return e||(t.setAttribute(n,"return;"),e=r.isFunction(t[n])),t=null,e},isConsoleSupported:function(){return!r.isUndefined(c.console)&&r.isFunction(c.console.log)},getReason:function(e){return r.isString(e)?"("+e+")":"(not specified)"},hashcode:function(e){var n=0;if(0===e.length)return n;for(var t=0;t<e.length;t++){n=(n<<5)-n+e.charCodeAt(t);n&=n}return n},trim:function(e){return"function"!=typeof String.prototype.trim?e.replace(/^\s+|\s+$/g,""):e.trim()},time:function(e){f.timingMode&&h&&c.console.time(e)},timeEnd:function(e){f.timingMode&&h&&c.console.timeEnd(e)},timeStamp:function(e){f.timingMode&&h&&c.console.timeStamp(e)},hasOneOfClassNames:function(e,n){var t;return e.classList?(t=e.classList,n.some(function(e){return t.contains(e)})):(t=this.getClassList(e),n.some(function(e){return-1<t.indexOf(e)}))},getMatchingClassName:function(e,n){for(var t=" "+Z.getClass(e)+" ",r=0;r<n.length;r++)if(-1<t.indexOf(" "+n[r]+" "))return n[r]},getClass:function(e){return e.getAttribute&&e.getAttribute("class")||""},getClassList:function(e){if(e.classList)return e.classList;e=this.getClass(e);return e?e.split(" "):[]},hasClassName:function(e,n){var t=this.getClassList(e);return t.indexOf?-1<this.getClassList(e).indexOf(n):t.contains(n)},getHybridType:function(){return"undefined"==typeof eyeViewHybridBridge?null:eyeViewHybridBridge.getHybridType()},isHybrid:function(){return"undefined"!=typeof eyeViewHybridBridge},isHybridAndroid:function(){return this.isHybrid()&&this.getHybridType()===eyeViewHybridBridge.HYBRID_ANDROID},isHybridIOS:function(){return this.isHybrid()&&this.getHybridType()===eyeViewHybridBridge.HYBRID_IOS},isBridge:function(){return!!(S&&S.glassboxMobileBridge||c.glassboxMobileBridge)},isAndroidWebView:function(){return!(!Z.isBridge()&&!Z.isStringMatch("Android*wv"))},immutableSet:function(){for(var e={},n=0;n<arguments.length;n++)e[arguments[n]]=!0;return e},DOMElement2Str:function(e){return e instanceof CharacterData?e.textContent:e.outerHTML},dateFromNow:function(e){return new Date(this.currentTimestamp()+e)},getRootNode:function(e){if(!e)return e;if(e.getRootNode)return e.getRootNode();var n=e;for(e=e.parentNode;e;)e=(n=e).parentNode;return n||e},isAttachedToDOM:function(e){if(!e)return!1;if(g)return e.isConnected;var n=e.ownerDocument;if(e.getRootNode)return n===e.getRootNode({composed:!0});for(;e;){if(e===n)return!0;e=e.parentNode||e.host}return!1},isVisible:function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects&&e.getClientRects().length)},isInPageView:function(e){e=e.getBoundingClientRect();return-10<=e.top&&-10<=e.left},ensureProperty:function(e){for(var n=Array.prototype.slice.call(arguments,1),t=e,r=0;r<n.length;r++)t.hasOwnProperty(n[r])||(t[n[r]]={}),t=t[n[r]];return t},shallowExtend:function(e,n){if(!e)return e;for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e},isEmpty:function(e){for(var n in e)if(e.hasOwnProperty(n))return!1;return!0},assign:function(e,n,t,r){return l.call(null,e,n,t,r)},getPerformanceResourceEntry:function(e,n){if(!c.performance||!c.performance.getEntriesByName)return"notSupported";e=performance.getEntriesByName(Z.toAbsoluteUrl(e));e&&e.length&&(e.sort(function(e,n){return e.startTime-n.startTime}),(e=e[e.length-1])&&(n.downloadTime=e.duration?Math.floor(e.duration):Q,n.ttfb=e.responseStart&&e.fetchStart?Math.floor(e.responseStart-e.fetchStart):Q))},extractHostname:function(e){if(!e)return"";var n=e.indexOf("//"),t=e.indexOf("/");if(-1!==n&&n<7&&n===t){t=e.indexOf("/",n+2);return e.substring(n+2,-1!==t?t:Q)}return""},isHTTPS:function(e){if(!e)return!1;var n=e.indexOf("://");return-1!==n&&"https"===e.substring(0,n).toLowerCase()},isHostRelativeUrl:function(e){return!e||!("//"===e.substring(0,2)||-1<e.indexOf("://"))},extractPath:function(e){if(!e)return"";d.href=e;e=d.pathname;return e="/"!==e.charAt(0)?"/"+e:e},extractSearch:function(e){if(!e)return"";d.href=e;e=d.search.split("?");return e=e&&1<e.length?e[1]:e},joinPath:function(e,n){var t="/"===e.charAt(e.length-1),r="/"===n.charAt(0);return t&&r?e+n.substring(1):t||r?e+n:e+"/"+n},extractOrigin:function(e){if(!e)return"";if(d.href=e,d.origin)return d.origin;var n=e.indexOf("://"),n=-1!==n&&-1!==e.indexOf(":",n+3);return d.hostname?d.protocol+"//"+d.hostname+(n&&d.port?":"+d.port:""):""},toAbsoluteUrl:function(e){return d.href=e,d.href},arrayToJsonSafe:function(e){return(n=n||("function"==typeof Array.prototype.toJSON?function(e){var n=Array.prototype.toJSON;delete Array.prototype.toJSON;e=JSON.stringify(e);return Array.prototype.toJSON=n,e}:JSON.stringify))(e)},parseQuery:function(e){var n={};if(e)for(var t,r=e.replace("?","").split("&"),i=0;i<r.length;i++)if((t=r[i].split("="))[0])try{n[t[0]]=t[1]?decodeURIComponent(t[1]):""}catch(e){}return n},optionsWithDefaults:function(e,n){for(var t in e=e||{},n=n||{})n.hasOwnProperty(t)&&(e[t]=(void 0!==e[t]?e:n)[t]);return e},strToBytes:function(e){for(var n=new ArrayBuffer(e.length),t=new Uint8Array(n),r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return n},strToUTF8Bytes:function(e){for(var n=[],t=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?n[t++]=i:(i<2048?n[t++]=i>>6|192:(55296==(64512&i)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),n[t++]=i>>18|240,n[t++]=i>>12&63|128):n[t++]=i>>12|224,n[t++]=i>>6&63|128),n[t++]=63&i|128)}return n},compositeFunctionBuilder:function(t){var r=[];return{add:function(e){return"function"==typeof e&&r.push(e),this},build:function(){return r.length?function(){for(var e,n=0;n<r.length;n++)if(e=r[n].apply(null,arguments),t&&e)return e}:Q},buildBooleanAnd:function(){return r.length?function(){for(var e=!0,n=0;n<r.length;n++)e=e&&r[n].apply(null,arguments);return e}:function(){return!0}}}},transformTextSegments:function(e,n){for(var t,r=0,i="",o=/\s+/gi;t=o.exec(e);)i+=n(e.substring(r,t.index)),i+=t[0],r=t.index+t[0].length;return i+=n(e.substring(r))},waitForObjDefined:function(e,n,t,r){var i=!1;e[n]?t():Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writeable:!0,get:function(){return this["_"+n]},set:function(e){this["_"+n]=e,i||(r&&(i=!0),t())}})},waitingInterval:function(e,n,t,r,i){r=r||1e3,i=void 0!==i?i:5;i&&(e&&e[n]?t():(i=Z.gbBind(Z.waitingInterval,null,e,n,t,r,--i),setTimeout(i,r)))},elementMatches:function(){if(!c.Element)return function(){return!1};var e=c.Element.prototype;return e.matches||(e.matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){for(var n=(this.document||this.ownerDocument).querySelectorAll(e),t=n.length;0<=--t&&n.item(t)!==this;);return-1<t}),function(e,n){return e.matches(n)}}(),createAssociatedCss:function(e,n,t){var r=s.createElement("gb_adoptedStyle");r.setAttribute("gbrealid",t),r.setAttribute("gbAssociateId",n),r.setAttribute("gb-ignore","");for(var i=e.cssRules,o="",a=0;a<i.length;a++)"string"==typeof i[a].cssText&&(f.adoptedStylesRemoveFontsFace&&-1<i[a].cssText.indexOf("@font-face")?o+=i[a].cssText.replace(p,""):o+=i[a].cssText);return r.textContent=o,r},arrayToLowerCase:function(e){return(e||[]).map(function(e){return e.toLowerCase()})},isElementShown:function(e){var n=getComputedStyle(e),t=e.getBoundingClientRect();return!("none"===n.display||"visible"!==n.visibility||n.opacity<f.minVisibleElementOpacity||e.offsetWidth*e.offsetHeight+t.height*t.width<f.minAreaTocountElementAsShown)},waitForElementsOnPage:function(o,e,a,u){e.some(function(e){var n=s.querySelectorAll(e),t=!1,r=!1;if(n.length){if(u){for(var i=0;i<n.length;++i)if(Z.isElementShown(n[i])){t=!0;break}t&&((r=(e=s.querySelector("BODY"))&&Z.isElementShown(e))||o.saveClsDebugErrorEvent("utils.js",{name:"visibility error",message:"element is visible but body is not"},""))}(!u||t&&r)&&(o.snapshotType="waitForElement",setTimeout(function(){a(n[0])},1))}return!(!n.length||u&&!t)})||setTimeout(Z.gbBind(Z.waitForElementsOnPage,null,o,e,a,u),f.waitForElementTime||1e3)},isStringMatch:function(e,n){var t;try{e=e.replace(/[-\/\\^$+?()|[\]{}]/g,"\\$&"),t=new RegExp("^"+e.split("*").join(".*")+"$")}catch(e){return logger.error("Exception occurred during parsing regular expression. Error: "+e.message,e),!1}if(t)return t.test(n)},isClickable:function(e){return!(!e||!e.tagName)&&(!!function(e){for(var n=11;n&&e;){if("BODY"===e.tagName||"HTML"===e.tagName)return;if(t[e.tagName])return 1;e=e.parentNode||e.host,n--}}(e)||("function"==typeof e.getAttribute&&!!e.getAttribute("onclick")||"function"==typeof e.onclick||!!e.getAttribute("href")))},copyAttributes:function(e,n){for(var t=e.attributes||[],r=0;r<t.length;r++)n.setAttribute(t[r].nodeName,t[r].nodeValue)},generateTabId:function(e){try{var n,t,r,i,o,a=c.sessionStorage["gb.btabid"],u=c.sessionStorage["gb.unloaded"];return a&&c.top!==c?a:(void 0!==a&&void 0!==u||(n=!1,f.passTabIdViaWinName&&c.name&&-1<c.name.indexOf("gb.btabid")&&(3===(t=c.name.split(";")).length&&(r=t[0].split("=")[1],i=t[1].split("=")[1],o=t[2].split("=")[1],(e||s.referrer&&Z.getUpperLevelDomain(URL?new URL(s.referrer).host:Z.extractHostname(s.referrer))===Z.getUpperLevelDomain(c.location.host)||o&&Z.getUpperLevelDomain(o)===Z.getUpperLevelDomain(c.location.host))&&(r&&"undefined"!==r&&Le.sessionId===i&&(c.sessionStorage["gb.btabid"]=a=r,n=!0),c.name=""))),n||(a=Z.uuid(),c.sessionStorage["gb.btabid"]=a)),delete c.sessionStorage["gb.unloaded"],a)}catch(e){return-1<c.name.indexOf("gb.btabid")&&(c.name=""),c.sessionStorage["gb.btabid"]=Z.uuid(),c.sessionStorage["gb.btabid"]}},getUpperLevelDomain:function(e){if(!e)return"";var n=e.split(".");return n.length<=2?e:(n.shift(),n.join("."))},isInfiniteScrollDetected:(a=!1,function(e,n){if(!e.scrollReach.height||!e.scrollReach.domElementsCount)return!1;var t=n.value.domElementsCount-e.scrollReach.domElementsCount,r=n.value.height-e.scrollReach.height;return!!(a=a||n.timestamp>e.documentEvent.timestamp+e.config.infiniteScrollDetectionWaitTime)&&(!(t<e.config.infiniteScrollDetectionGrowElementsCount)&&!(r<e.config.infiniteScrollDetectionGrowPixels))}),getCanvasDataURL:function(n,e){try{return 10===e?n.toDataURL("image/png"):n.toDataURL("image/jpeg",e/10)}catch(e){Le.saveClsDebugErrorEvent("getCanvasDataURL",e,"canvas element"+(n._gbid?" with _gbid "+n._gbid:""))}},gbBind:(i=Array.prototype.slice,o=Function.prototype.bind,f.useAlternateBindFunction&&!/\\[native code\\]/.test(o.toString())&&(o=function(){var n=this,t=arguments[0],r=i.call(arguments,1);return function(){var e=i.call(arguments),e=r.concat(e);return n.apply(t,e)}}),function(e,n,t){var r=Array.prototype.slice.call(arguments,2);return o.apply(e,[n].concat(r))})}}(E,self,K,void 0!==Y?Y:{}),function(){(("undefined"!==typeof Z?Z:{})||window||this).pako=function r(i,o,a){function u(t,e){if(!o[t]){if(!i[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(c)return c(t,!0);n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}n=o[t]={exports:{}};i[t][0].call(n.exports,function(e){var n=i[t][1][e];return u(n||e)},n,n.exports,r,i,o,a)}return o[t].exports}for(var c="function"==typeof require&&require,e=0;e<a.length;e++)u(a[e]);return u}({1:[function(e,n,t){"use strict";var a=e("./zlib/deflate"),u=e("./utils/common"),c=e("./utils/strings"),r=e("./zlib/messages"),i=e("./zlib/zstream"),s=Object.prototype.toString;function o(e){if(!(this instanceof o))return new o(e);this.options=u.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var n=this.options;if(n.raw&&0<n.windowBits?n.windowBits=-n.windowBits:n.gzip&&0<n.windowBits&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,(this.strm.avail_out=0)!==(e=a.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy)))throw new Error(r[e]);if(n.header&&a.deflateSetHeader(this.strm,n.header),n.dictionary){n="string"==typeof n.dictionary?c.string2buf(n.dictionary):"[object ArrayBuffer]"===s.call(n.dictionary)?new Uint8Array(n.dictionary):n.dictionary;if(0!==(e=a.deflateSetDictionary(this.strm,n)))throw new Error(r[e]);this._dict_set=!0}}function f(e,n){n=new o(n);if(n.push(e,!0),n.err)throw n.msg||r[n.err];return n.result}o.prototype.push=function(e,n){var t,r,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;r=n===~~n?n:!0===n?4:0,"string"==typeof e?i.input=c.string2buf(e):"[object ArrayBuffer]"===s.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new u.Buf8(o),i.next_out=0,i.avail_out=o),1!==(t=a.deflate(i,r))&&0!==t)return this.onEnd(t),!(this.ended=!0)}while(0!==i.avail_out&&(0!==i.avail_in||4!==r&&2!==r)||("string"===this.options.to?this.onData(c.buf2binstring(u.shrinkBuf(i.output,i.next_out))):this.onData(u.shrinkBuf(i.output,i.next_out))),(0<i.avail_in||0===i.avail_out)&&1!==t);return 4===r?(t=a.deflateEnd(this.strm),this.onEnd(t),this.ended=!0,0===t):2!==r||(this.onEnd(0),!(i.avail_out=0))},o.prototype.onData=function(e){this.chunks.push(e)},o.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=u.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=o,t.deflate=f,t.deflateRaw=function(e,n){return(n=n||{}).raw=!0,f(e,n)},t.gzip=function(e,n){return(n=n||{}).gzip=!0,f(e,n)}},{"./utils/common":2,"./utils/strings":3,"./zlib/deflate":6,"./zlib/messages":7,"./zlib/zstream":9}],2:[function(e,n,t){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;t.assign=function(e){for(var n=Array.prototype.slice.call(arguments,1);n.length;){var t=n.shift();if(t){if("object"!=typeof t)throw new TypeError(t+"must be non-object");for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}}return e},t.shrinkBuf=function(e,n){return e.length===n?e:e.subarray?e.subarray(0,n):(e.length=n,e)};var i={arraySet:function(e,n,t,r,i){if(n.subarray&&e.subarray)e.set(n.subarray(t,t+r),i);else for(var o=0;o<r;o++)e[i+o]=n[t+o]},flattenChunks:function(e){for(var n,t,r,i=0,o=0,a=e.length;o<a;o++)i+=e[o].length;for(r=new Uint8Array(i),o=n=0,a=e.length;o<a;o++)t=e[o],r.set(t,n),n+=t.length;return r}},o={arraySet:function(e,n,t,r,i){for(var o=0;o<r;o++)e[i+o]=n[t+o]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,o))},t.setTyped(r)},{}],3:[function(e,n,t){"use strict";var c=e("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var s=new c.Buf8(256),r=0;r<256;r++)s[r]=252<=r?6:248<=r?5:240<=r?4:224<=r?3:192<=r?2:1;function f(e,n){if(n<65537&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,c.shrinkBuf(e,n));for(var t="",r=0;r<n;r++)t+=String.fromCharCode(e[r]);return t}s[254]=s[254]=1,t.string2buf=function(e){for(var n,t,r,i,o=e.length,a=0,u=0;u<o;u++)55296==(64512&(t=e.charCodeAt(u)))&&u+1<o&&56320==(64512&(r=e.charCodeAt(u+1)))&&(t=65536+(t-55296<<10)+(r-56320),u++),a+=t<128?1:t<2048?2:t<65536?3:4;for(n=new c.Buf8(a),u=i=0;i<a;u++)55296==(64512&(t=e.charCodeAt(u)))&&u+1<o&&56320==(64512&(r=e.charCodeAt(u+1)))&&(t=65536+(t-55296<<10)+(r-56320),u++),t<128?n[i++]=t:(t<2048?n[i++]=192|t>>>6:(t<65536?n[i++]=224|t>>>12:(n[i++]=240|t>>>18,n[i++]=128|t>>>12&63),n[i++]=128|t>>>6&63),n[i++]=128|63&t);return n},t.buf2binstring=function(e){return f(e,e.length)},t.binstring2buf=function(e){for(var n=new c.Buf8(e.length),t=0,r=n.length;t<r;t++)n[t]=e.charCodeAt(t);return n},t.buf2string=function(e,n){for(var t,r,i=n||e.length,o=new Array(2*i),a=0,u=0;u<i;)if((t=e[u++])<128)o[a++]=t;else if(4<(r=s[t]))o[a++]=65533,u+=r-1;else{for(t&=2===r?31:3===r?15:7;1<r&&u<i;)t=t<<6|63&e[u++],r--;1<r?o[a++]=65533:t<65536?o[a++]=t:(t-=65536,o[a++]=55296|t>>10&1023,o[a++]=56320|1023&t)}return f(o,a)},t.utf8border=function(e,n){for(var t=(n=(n=n||e.length)>e.length?e.length:n)-1;0<=t&&128==(192&e[t]);)t--;return!(t<0)&&0!==t&&t+s[e[t]]>n?t:n}},{"./common":2}],4:[function(e,n,t){"use strict";n.exports=function(e,n,t,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==t;){for(t-=a=2e3<t?2e3:t;o=o+(i=i+n[r++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16|0}},{}],5:[function(e,n,t){"use strict";var u=function(){for(var e=[],n=0;n<256;n++){for(var t=n,r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();n.exports=function(e,n,t,r){var i=u,o=r+t;e^=-1;for(var a=r;a<o;a++)e=e>>>8^i[255&(e^n[a])];return-1^e}},{}],6:[function(e,n,t){"use strict";var u,l=e("../utils/common"),c=e("./trees"),d=e("./adler32"),h=e("./crc32"),r=e("./messages"),s=0,f=4,v=0,m=-2,g=-1,p=4,i=2,y=8,b=9,o=286,a=30,w=19,E=2*o+1,C=15,S=3,T=258,I=T+S+1,k=42,x=113,A=1,M=2,R=3,N=4;function D(e,n){return e.msg=r[n],n}function O(e){return(e<<1)-(4<e?9:0)}function L(e){for(var n=e.length;0<=--n;)e[n]=0}function F(e){var n=e.state,t=n.pending;0!==(t=t>e.avail_out?e.avail_out:t)&&(l.arraySet(e.output,n.pending_buf,n.pending_out,t,e.next_out),e.next_out+=t,n.pending_out+=t,e.total_out+=t,e.avail_out-=t,n.pending-=t,0===n.pending&&(n.pending_out=0))}function _(e,n){c._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,n),e.block_start=e.strstart,F(e.strm)}function P(e,n){e.pending_buf[e.pending++]=n}function B(e,n){e.pending_buf[e.pending++]=n>>>8&255,e.pending_buf[e.pending++]=255&n}function j(e,n){var t,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,u=e.nice_match,c=e.strstart>e.w_size-I?e.strstart-(e.w_size-I):0,s=e.window,f=e.w_mask,l=e.prev,d=e.strstart+T,h=s[o+a-1],v=s[o+a];e.prev_length>=e.good_match&&(i>>=2),u>e.lookahead&&(u=e.lookahead);do{if(s[(t=n)+a]===v&&s[t+a-1]===h&&s[t]===s[o]&&s[++t]===s[o+1]){for(o+=2,t++;s[++o]===s[++t]&&s[++o]===s[++t]&&s[++o]===s[++t]&&s[++o]===s[++t]&&s[++o]===s[++t]&&s[++o]===s[++t]&&s[++o]===s[++t]&&s[++o]===s[++t]&&o<d;);if(r=T-(d-o),o=d-T,a<r){if(e.match_start=n,u<=(a=r))break;h=s[o+a-1],v=s[o+a]}}}while((n=l[n&f])>c&&0!=--i);return a<=e.lookahead?a:e.lookahead}function U(e){var n,t,r,i,o,a,u,c,s,f=e.w_size;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=f+(f-I)){for(l.arraySet(e.window,e.window,f,f,0),e.match_start-=f,e.strstart-=f,e.block_start-=f,n=t=e.hash_size;r=e.head[--n],e.head[n]=f<=r?r-f:0,--t;);for(n=t=f;r=e.prev[--n],e.prev[n]=f<=r?r-f:0,--t;);s+=f}if(0===e.strm.avail_in)break;if(o=e.strm,a=e.window,u=e.strstart+e.lookahead,c=s,s=void 0,s=o.avail_in,t=0===(s=c<s?c:s)?0:(o.avail_in-=s,l.arraySet(a,o.input,o.next_in,s,u),1===o.state.wrap?o.adler=d(o.adler,a,s,u):2===o.state.wrap&&(o.adler=h(o.adler,a,s,u)),o.next_in+=s,o.total_in+=s,s),e.lookahead+=t,e.lookahead+e.insert>=S)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=(e.ins_h<<e.hash_shift^e.window[i+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[i+S-1])&e.hash_mask,e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<S)););}while(e.lookahead<I&&0!==e.strm.avail_in)}function V(e,n){for(var t,r;;){if(e.lookahead<I){if(U(e),e.lookahead<I&&n===s)return A;if(0===e.lookahead)break}if(t=0,e.lookahead>=S&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==t&&e.strstart-t<=e.w_size-I&&(e.match_length=j(e,t)),e.match_length>=S)if(r=c._tr_tally(e,e.strstart-e.match_start,e.match_length-S),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=S){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=c._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(_(e,!1),0===e.strm.avail_out))return A}return e.insert=e.strstart<S-1?e.strstart:S-1,n===f?(_(e,!0),0===e.strm.avail_out?R:N):e.last_lit&&(_(e,!1),0===e.strm.avail_out)?A:M}function H(e,n){for(var t,r,i;;){if(e.lookahead<I){if(U(e),e.lookahead<I&&n===s)return A;if(0===e.lookahead)break}if(t=0,e.lookahead>=S&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=S-1,0!==t&&e.prev_length<e.max_lazy_match&&e.strstart-t<=e.w_size-I&&(e.match_length=j(e,t),e.match_length<=5&&(1===e.strategy||e.match_length===S&&4096<e.strstart-e.match_start)&&(e.match_length=S-1)),e.prev_length>=S&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-S,r=c._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-S),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=S-1,e.strstart++,r&&(_(e,!1),0===e.strm.avail_out))return A}else if(e.match_available){if((r=c._tr_tally(e,0,e.window[e.strstart-1]))&&_(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return A}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=c._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<S-1?e.strstart:S-1,n===f?(_(e,!0),0===e.strm.avail_out?R:N):e.last_lit&&(_(e,!1),0===e.strm.avail_out)?A:M}function W(e,n,t,r,i){this.good_length=e,this.max_lazy=n,this.nice_length=t,this.max_chain=r,this.func=i}function q(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new l.Buf16(2*E),this.dyn_dtree=new l.Buf16(2*(2*a+1)),this.bl_tree=new l.Buf16(2*(2*w+1)),L(this.dyn_ltree),L(this.dyn_dtree),L(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new l.Buf16(C+1),this.heap=new l.Buf16(2*o+1),L(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new l.Buf16(2*o+1),L(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function z(e){var n;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=i,(n=e.state).pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap?k:x,e.adler=2===n.wrap?0:1,n.last_flush=s,c._tr_init(n),v):D(e,m)}function G(e){var n=z(e);return n===v&&((e=e.state).window_size=2*e.w_size,L(e.head),e.max_lazy_match=u[e.level].max_lazy,e.good_match=u[e.level].good_length,e.nice_match=u[e.level].nice_length,e.max_chain_length=u[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=S-1,e.match_available=0,e.ins_h=0),n}function J(e,n,t,r,i,o){if(!e)return m;var a=1;if(n===g&&(n=6),r<0?(a=0,r=-r):15<r&&(a=2,r-=16),i<1||b<i||t!==y||r<8||15<r||n<0||9<n||o<0||p<o)return D(e,m);8===r&&(r=9);var u=new q;return(e.state=u).strm=e,u.wrap=a,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=i+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+S-1)/S),u.window=new l.Buf8(2*u.w_size),u.head=new l.Buf16(u.hash_size),u.prev=new l.Buf16(u.w_size),u.lit_bufsize=1<<i+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new l.Buf8(u.pending_buf_size),u.d_buf=+u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=n,u.strategy=o,u.method=t,G(e)}u=[new W(0,0,0,0,function(e,n){var t=65535;for(t>e.pending_buf_size-5&&(t=e.pending_buf_size-5);;){if(e.lookahead<=1){if(U(e),0===e.lookahead&&n===s)return A;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+t;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,_(e,!1),0===e.strm.avail_out))return A;if(e.strstart-e.block_start>=e.w_size-I&&(_(e,!1),0===e.strm.avail_out))return A}return e.insert=0,n===f?(_(e,!0),0===e.strm.avail_out?R:N):(e.strstart>e.block_start&&(_(e,!1),e.strm.avail_out),A)}),new W(4,4,8,4,V),new W(4,5,16,8,V),new W(4,6,32,32,V),new W(4,4,16,16,H),new W(8,16,32,32,H),new W(8,16,128,128,H),new W(8,32,128,256,H),new W(32,128,258,1024,H),new W(32,258,258,4096,H)],t.deflateInit=function(e,n){return J(e,n,y,15,8,0)},t.deflateInit2=J,t.deflateReset=G,t.deflateResetKeep=z,t.deflateSetHeader=function(e,n){return!e||!e.state||2!==e.state.wrap?m:(e.state.gzhead=n,v)},t.deflate=function(e,n){var t,r,i,o;if(!e||!e.state||5<n||n<0)return e?D(e,m):m;if(t=e.state,!e.output||!e.input&&0!==e.avail_in||666===t.status&&n!==f)return D(e,0===e.avail_out?-5:m);if(t.strm=e,a=t.last_flush,t.last_flush=n,t.status===k&&(2===t.wrap?(e.adler=0,P(t,31),P(t,139),P(t,8),t.gzhead?(P(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),P(t,255&t.gzhead.time),P(t,t.gzhead.time>>8&255),P(t,t.gzhead.time>>16&255),P(t,t.gzhead.time>>24&255),P(t,9===t.level?2:2<=t.strategy||t.level<2?4:0),P(t,255&t.gzhead.os),t.gzhead.extra&&t.gzhead.extra.length&&(P(t,255&t.gzhead.extra.length),P(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(e.adler=h(e.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=69):(P(t,0),P(t,0),P(t,0),P(t,0),P(t,0),P(t,9===t.level?2:2<=t.strategy||t.level<2?4:0),P(t,3),t.status=x)):(o=y+(t.w_bits-8<<4)<<8,o|=(2<=t.strategy||t.level<2?0:t.level<6?1:6===t.level?2:3)<<6,0!==t.strstart&&(o|=32),o+=31-o%31,t.status=x,B(t,o),0!==t.strstart&&(B(t,e.adler>>>16),B(t,65535&e.adler)),e.adler=1)),69===t.status)if(t.gzhead.extra){for(r=t.pending;t.gzindex<(65535&t.gzhead.extra.length)&&(t.pending!==t.pending_buf_size||(t.gzhead.hcrc&&t.pending>r&&(e.adler=h(e.adler,t.pending_buf,t.pending-r,r)),F(e),r=t.pending,t.pending!==t.pending_buf_size));)P(t,255&t.gzhead.extra[t.gzindex]),t.gzindex++;t.gzhead.hcrc&&t.pending>r&&(e.adler=h(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex===t.gzhead.extra.length&&(t.gzindex=0,t.status=73)}else t.status=73;if(73===t.status)if(t.gzhead.name){r=t.pending;do{if(t.pending===t.pending_buf_size&&(t.gzhead.hcrc&&t.pending>r&&(e.adler=h(e.adler,t.pending_buf,t.pending-r,r)),F(e),r=t.pending,t.pending===t.pending_buf_size)){i=1;break}}while(i=t.gzindex<t.gzhead.name.length?255&t.gzhead.name.charCodeAt(t.gzindex++):0,P(t,i),0!==i);t.gzhead.hcrc&&t.pending>r&&(e.adler=h(e.adler,t.pending_buf,t.pending-r,r)),0===i&&(t.gzindex=0,t.status=91)}else t.status=91;if(91===t.status)if(t.gzhead.comment){r=t.pending;do{if(t.pending===t.pending_buf_size&&(t.gzhead.hcrc&&t.pending>r&&(e.adler=h(e.adler,t.pending_buf,t.pending-r,r)),F(e),r=t.pending,t.pending===t.pending_buf_size)){i=1;break}}while(i=t.gzindex<t.gzhead.comment.length?255&t.gzhead.comment.charCodeAt(t.gzindex++):0,P(t,i),0!==i);t.gzhead.hcrc&&t.pending>r&&(e.adler=h(e.adler,t.pending_buf,t.pending-r,r)),0===i&&(t.status=103)}else t.status=103;if(103===t.status&&(t.gzhead.hcrc?(t.pending+2>t.pending_buf_size&&F(e),t.pending+2<=t.pending_buf_size&&(P(t,255&e.adler),P(t,e.adler>>8&255),e.adler=0,t.status=x)):t.status=x),0!==t.pending){if(F(e),0===e.avail_out)return t.last_flush=-1,v}else if(0===e.avail_in&&O(n)<=O(a)&&n!==f)return D(e,-5);if(666===t.status&&0!==e.avail_in)return D(e,-5);if(0!==e.avail_in||0!==t.lookahead||n!==s&&666!==t.status){var a=2===t.strategy?function(e,n){for(var t;;){if(0===e.lookahead&&(U(e),0===e.lookahead)){if(n===s)return A;break}if(e.match_length=0,t=c._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(_(e,!1),0===e.strm.avail_out))return A}return e.insert=0,n===f?(_(e,!0),0===e.strm.avail_out?R:N):e.last_lit&&(_(e,!1),0===e.strm.avail_out)?A:M}(t,n):3===t.strategy?function(e,n){for(var t,r,i,o,a=e.window;;){if(e.lookahead<=T){if(U(e),e.lookahead<=T&&n===s)return A;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=S&&0<e.strstart&&(r=a[i=e.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){for(o=e.strstart+T;r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o;);e.match_length=T-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=S?(t=c._tr_tally(e,1,e.match_length-S),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=c._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(_(e,!1),0===e.strm.avail_out))return A}return e.insert=0,n===f?(_(e,!0),0===e.strm.avail_out?R:N):e.last_lit&&(_(e,!1),0===e.strm.avail_out)?A:M}(t,n):u[t.level].func(t,n);if(a!==R&&a!==N||(t.status=666),a===A||a===R)return 0===e.avail_out&&(t.last_flush=-1),v;if(a===M&&(1===n?c._tr_align(t):5!==n&&(c._tr_stored_block(t,0,0,!1),3===n&&(L(t.head),0===t.lookahead&&(t.strstart=0,t.block_start=0,t.insert=0))),F(e),0===e.avail_out))return t.last_flush=-1,v}return n!==f?v:t.wrap<=0?1:(2===t.wrap?(P(t,255&e.adler),P(t,e.adler>>8&255),P(t,e.adler>>16&255),P(t,e.adler>>24&255),P(t,255&e.total_in),P(t,e.total_in>>8&255),P(t,e.total_in>>16&255),P(t,e.total_in>>24&255)):(B(t,e.adler>>>16),B(t,65535&e.adler)),F(e),0<t.wrap&&(t.wrap=-t.wrap),0!==t.pending?v:1)},t.deflateEnd=function(e){var n;return e&&e.state?(n=e.state.status)!==k&&69!==n&&73!==n&&91!==n&&103!==n&&n!==x&&666!==n?D(e,m):(e.state=null,n===x?D(e,-3):v):m},t.deflateSetDictionary=function(e,n){var t,r,i,o,a,u,c,s=n.length;if(!e||!e.state)return m;if(2===(o=(t=e.state).wrap)||1===o&&t.status!==k||t.lookahead)return m;for(1===o&&(e.adler=d(e.adler,n,s,0)),t.wrap=0,s>=t.w_size&&(0===o&&(L(t.head),t.strstart=0,t.block_start=0,t.insert=0),c=new l.Buf8(t.w_size),l.arraySet(c,n,s-t.w_size,t.w_size,0),n=c,s=t.w_size),a=e.avail_in,u=e.next_in,c=e.input,e.avail_in=s,e.next_in=0,e.input=n,U(t);t.lookahead>=S;){for(r=t.strstart,i=t.lookahead-(S-1);t.ins_h=(t.ins_h<<t.hash_shift^t.window[r+S-1])&t.hash_mask,t.prev[r&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=r,r++,--i;);t.strstart=r,t.lookahead=S-1,U(t)}return t.strstart+=t.lookahead,t.block_start=t.strstart,t.insert=t.lookahead,t.lookahead=0,t.match_length=t.prev_length=S-1,t.match_available=0,e.next_in=u,e.input=c,e.avail_in=a,t.wrap=o,v},t.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":2,"./adler32":4,"./crc32":5,"./messages":7,"./trees":8}],7:[function(e,n,t){"use strict";n.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],8:[function(e,n,t){"use strict";var i=e("../utils/common"),u=0,c=1;function r(e){for(var n=e.length;0<=--n;)e[n]=0}var a=29,s=256,f=s+1+a,l=30,d=19,g=2*f+1,p=15,o=16,h=7,v=256,m=16,y=17,b=18,w=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],E=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],T=new Array(2*(f+2));r(T);var I=new Array(2*l);r(I);var k=new Array(512);r(k);var x=new Array(256);r(x);var A=new Array(a);r(A);var M,R,N,D=new Array(l);function O(e,n,t,r,i){this.static_tree=e,this.extra_bits=n,this.extra_base=t,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function L(e,n){this.dyn_tree=e,this.max_code=0,this.stat_desc=n}function F(e){return e<256?k[e]:k[256+(e>>>7)]}function _(e,n){e.pending_buf[e.pending++]=255&n,e.pending_buf[e.pending++]=n>>>8&255}function P(e,n,t){e.bi_valid>o-t?(e.bi_buf|=n<<e.bi_valid&65535,_(e,e.bi_buf),e.bi_buf=n>>o-e.bi_valid,e.bi_valid+=t-o):(e.bi_buf|=n<<e.bi_valid&65535,e.bi_valid+=t)}function B(e,n,t){P(e,t[2*n],t[2*n+1])}function j(e,n){for(var t=0;t|=1&e,e>>>=1,t<<=1,0<--n;);return t>>>1}function U(e,n,t){for(var r,i=new Array(p+1),o=0,a=1;a<=p;a++)i[a]=o=o+t[a-1]<<1;for(r=0;r<=n;r++){var u=e[2*r+1];0!==u&&(e[2*r]=j(i[u]++,u))}}function V(e){for(var n=0;n<f;n++)e.dyn_ltree[2*n]=0;for(n=0;n<l;n++)e.dyn_dtree[2*n]=0;for(n=0;n<d;n++)e.bl_tree[2*n]=0;e.dyn_ltree[2*v]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function H(e){8<e.bi_valid?_(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function W(e,n,t,r){var i=2*n,o=2*t;return e[i]<e[o]||e[i]===e[o]&&r[n]<=r[t]}function q(e,n,t){for(var r=e.heap[t],i=t<<1;i<=e.heap_len&&(i<e.heap_len&&W(n,e.heap[i+1],e.heap[i],e.depth)&&i++,!W(n,r,e.heap[i],e.depth));)e.heap[t]=e.heap[i],t=i,i<<=1;e.heap[t]=r}function z(e,n,t){var r,i,o,a,u=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*u]<<8|e.pending_buf[e.d_buf+2*u+1],i=e.pending_buf[e.l_buf+u],u++,0==r?B(e,i,n):(B(e,(o=x[i])+s+1,n),0!==(a=w[o])&&P(e,i-=A[o],a),B(e,o=F(--r),t),0!==(a=E[o])&&P(e,r-=D[o],a)),u<e.last_lit;);B(e,v,n)}function G(e,n){var t,r,i,o=n.dyn_tree,a=n.stat_desc.static_tree,u=n.stat_desc.has_stree,c=n.stat_desc.elems,s=-1;for(e.heap_len=0,e.heap_max=g,t=0;t<c;t++)0!==o[2*t]?(e.heap[++e.heap_len]=s=t,e.depth[t]=0):o[2*t+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=s<2?++s:0)]=1,e.depth[i]=0,e.opt_len--,u&&(e.static_len-=a[2*i+1]);for(n.max_code=s,t=e.heap_len>>1;1<=t;t--)q(e,o,t);for(i=c;t=e.heap[1],e.heap[1]=e.heap[e.heap_len--],q(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=t,e.heap[--e.heap_max]=r,o[2*i]=o[2*t]+o[2*r],e.depth[i]=(e.depth[t]>=e.depth[r]?e.depth[t]:e.depth[r])+1,o[2*t+1]=o[2*r+1]=i,e.heap[1]=i++,q(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,n){for(var t,r,i,o,a,u=n.dyn_tree,c=n.max_code,s=n.stat_desc.static_tree,f=n.stat_desc.has_stree,l=n.stat_desc.extra_bits,d=n.stat_desc.extra_base,h=n.stat_desc.max_length,v=0,m=0;m<=p;m++)e.bl_count[m]=0;for(u[2*e.heap[e.heap_max]+1]=0,t=e.heap_max+1;t<g;t++)h<(m=u[2*u[2*(r=e.heap[t])+1]+1]+1)&&(m=h,v++),u[2*r+1]=m,c<r||(e.bl_count[m]++,o=0,d<=r&&(o=l[r-d]),a=u[2*r],e.opt_len+=a*(m+o),f&&(e.static_len+=a*(s[2*r+1]+o)));if(0!==v){do{for(m=h-1;0===e.bl_count[m];)m--}while(e.bl_count[m]--,e.bl_count[m+1]+=2,e.bl_count[h]--,0<(v-=2));for(m=h;0!==m;m--)for(r=e.bl_count[m];0!==r;)c<(i=e.heap[--t])||(u[2*i+1]!==m&&(e.opt_len+=(m-u[2*i+1])*u[2*i],u[2*i+1]=m),r--)}}(e,n),U(o,s,e.bl_count)}function J(e,n,t){var r,i,o=-1,a=n[1],u=0,c=7,s=4;for(0===a&&(c=138,s=3),n[2*(t+1)+1]=65535,r=0;r<=t;r++)i=a,a=n[2*(r+1)+1],++u<c&&i===a||(u<s?e.bl_tree[2*i]+=u:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[2*m]++):u<=10?e.bl_tree[2*y]++:e.bl_tree[2*b]++,o=i,s=(u=0)===a?(c=138,3):i===a?(c=6,3):(c=7,4))}function X(e,n,t){var r,i,o=-1,a=n[1],u=0,c=7,s=4;for(0===a&&(c=138,s=3),r=0;r<=t;r++)if(i=a,a=n[2*(r+1)+1],!(++u<c&&i===a)){if(u<s)for(;B(e,i,e.bl_tree),0!=--u;);else 0!==i?(i!==o&&(B(e,i,e.bl_tree),u--),B(e,m,e.bl_tree),P(e,u-3,2)):u<=10?(B(e,y,e.bl_tree),P(e,u-3,3)):(B(e,b,e.bl_tree),P(e,u-11,7));o=i,s=(u=0)===a?(c=138,3):i===a?(c=6,3):(c=7,4)}}r(D);var K=!1;function Q(e,n,t,r){P(e,0+(r?1:0),3),r=n,n=t,t=!0,H(e=e),t&&(_(e,n),_(e,~n)),i.arraySet(e.pending_buf,e.window,r,n,e.pending),e.pending+=n}t._tr_init=function(e){K||(function(){for(var e,n,t,r=new Array(p+1),i=0,o=0;o<a-1;o++)for(A[o]=i,e=0;e<1<<w[o];e++)x[i++]=o;for(x[i-1]=o,o=t=0;o<16;o++)for(D[o]=t,e=0;e<1<<E[o];e++)k[t++]=o;for(t>>=7;o<l;o++)for(D[o]=t<<7,e=0;e<1<<E[o]-7;e++)k[256+t++]=o;for(n=0;n<=p;n++)r[n]=0;for(e=0;e<=143;)T[2*e+1]=8,e++,r[8]++;for(;e<=255;)T[2*e+1]=9,e++,r[9]++;for(;e<=279;)T[2*e+1]=7,e++,r[7]++;for(;e<=287;)T[2*e+1]=8,e++,r[8]++;for(U(T,f+1,r),e=0;e<l;e++)I[2*e+1]=5,I[2*e]=j(e,5);M=new O(T,w,s+1,f,p),R=new O(I,E,0,l,p),N=new O(new Array(0),C,0,d,h)}(),K=!0),e.l_desc=new L(e.dyn_ltree,M),e.d_desc=new L(e.dyn_dtree,R),e.bl_desc=new L(e.bl_tree,N),e.bi_buf=0,e.bi_valid=0,V(e)},t._tr_stored_block=Q,t._tr_flush_block=function(e,n,t,r){var i,o,a=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){for(var n=4093624447,t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return u;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return c;for(t=32;t<s;t++)if(0!==e.dyn_ltree[2*t])return c;return u}(e)),G(e,e.l_desc),G(e,e.d_desc),a=function(e){var n;for(J(e,e.dyn_ltree,e.l_desc.max_code),J(e,e.dyn_dtree,e.d_desc.max_code),G(e,e.bl_desc),n=d-1;3<=n&&0===e.bl_tree[2*S[n]+1];n--);return e.opt_len+=3*(n+1)+5+5+4,n}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=t+5,t+4<=i&&-1!==n?Q(e,n,t,r):4===e.strategy||o===i?(P(e,2+(r?1:0),3),z(e,T,I)):(P(e,4+(r?1:0),3),function(e,n,t,r){var i;for(P(e,n-257,5),P(e,t-1,5),P(e,r-4,4),i=0;i<r;i++)P(e,e.bl_tree[2*S[i]+1],3);X(e,e.dyn_ltree,n-1),X(e,e.dyn_dtree,t-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),z(e,e.dyn_ltree,e.dyn_dtree)),V(e),r&&H(e)},t._tr_tally=function(e,n,t){return e.pending_buf[e.d_buf+2*e.last_lit]=n>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&n,e.pending_buf[e.l_buf+e.last_lit]=255&t,e.last_lit++,0===n?e.dyn_ltree[2*t]++:(e.matches++,n--,e.dyn_ltree[2*(x[t]+s+1)]++,e.dyn_dtree[2*F(n)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){P(e,2,3),B(e,v,T),16===(e=e).bi_valid?(_(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},{"../utils/common":2}],9:[function(e,n,t){"use strict";n.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}]},{},[1])(1)}(),function(n,e){"use strict";function t(e){var n=e.charCodeAt(0);return n<128?e:n<2048?f(192|n>>>6)+f(128|63&n):f(224|n>>>12&15)+f(128|n>>>6&63)+f(128|63&n)}function r(e){var n=[0,2,1][e.length%3],e=e.charCodeAt(0)<<16|(1<e.length?e.charCodeAt(1):0)<<8|(2<e.length?e.charCodeAt(2):0);return[c.charAt(e>>>18),c.charAt(e>>>12&63),2<=n?"=":c.charAt(e>>>6&63),1<=n?"=":c.charAt(63&e)].join("")}function i(e){return d(l(e))}function o(e,n){return n?i(e).replace(/[+\/]/g,function(e){return"+"==e?"-":"_"}):i(e)}function a(e){return f(e.length<3?(31&e.charCodeAt(0))<<6|63&e.charCodeAt(1):(15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2))}function u(e){return e=e.replace(/[-_]/g,function(e){return"-"==e?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""),m(h(e))}var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=function(e){for(var n={},t=0,r=e.length;t<r;t++)n[e.charAt(t)]=t;return n}(c),f=String.fromCharCode,l=function(e){return e.replace(/[^\x00-\x7F]/g,t)},d="function"==typeof n.btoa?function(e){return n.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,r)},h="function"==typeof n.atob?function(e){return n.atob(e)}:function(e){return e.replace(/[\s\S]{1,4}/g,g)},v=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}/g,m=function(e){return e.replace(v,a)},g=function(e){var n=e.length,t=n%4,e=(0<n?s[e.charAt(0)]<<18:0)|(1<n?s[e.charAt(1)]<<12:0)|(2<n?s[e.charAt(2)]<<6:0)|(3<n?s[e.charAt(3)]:0),e=[f(e>>>16),f(e>>>8&255),f(255&e)];return e.length-=[0,0,2,1][t],e.join("")};e.Base64={atob:h,btoa:d,fromBase64:u,toBase64:o,bytesToBase64:function(e){for(var n,t="",r=0;r<e.length;r+=3)n=(252&e[r])>>2,t+=c.charAt(n),n=(3&e[r])<<4,r+1<e.length?(n|=(240&e[r+1])>>4,t+=c.charAt(n),n=(15&e[r+1])<<2,r+2<e.length?(n|=(192&e[r+2])>>6,t+=c.charAt(n),n=63&e[r+2],t+=c.charAt(n)):(t+=c.charAt(n),t+="=")):(t+=c.charAt(n),t+="==");return t},utob:l,encode:o,encodeURI:function(e){return o(e,!0)},btou:m,decode:u}}(self,void 0!==Z?Z:{}),void 0!==S&&(g=ln(Y)),dn.prototype={toJSON:function(){if(!(this instanceof dn))throw new Error("Illegal invocation");return hn(this,this)}},vn.prototype=(k=Object.create(dn.prototype),vn.prototype.constructor=vn,k.toString=function(){return this.type},k.setExtraInfo=function(e,n){E.isUndefined(n)||(this.extraInfo[e]=n)},k.getExtraInfo=function(e){if(E.isUndefined(this.extraInfo))return null;e=this.extraInfo[e];return void 0===e?null:e},k.setDebugInfo=function(e){E.isUndefined(this.debugInfo)&&(this.debugInfo={}),this.debugInfo=e},k.getDebugInfo=function(){return this.debugInfo},k.getSubPage=function(){return this.subPage},k.addHybridActionDataItem=function(e,n){E.isUndefined(n)?logger.error("Failed setting value for hybrid action data item: "+e+". Value is undefined"):(E.isUndefined(this.hybridActionData)&&(this.hybridActionData={}),this.hybridActionData[e]=n)},k.getdHybridActionData=function(){return this.hybridActionData},k.nextId=1,k),vn.fromJSON=function(e){return e.constructor=vn,Object.setPrototypeOf(e,vn.prototype),e},vn.prototype.FOCUS_TIME_ATTR="focusTime",vn.prototype.AUTO_COMPLETE_ATTR="autoComplete",vn.prototype.VISUAL_NAME="visualName",vn.prototype.PAGE_NAME="pageName",vn.prototype.WINDOW_DEPTH="windowDepth",vn.prototype.CONTAINER_ID="containerId",vn.prototype.PARENT_PAGE_ID="parentPageId",vn.prototype.HISTORY_LENGTH="historyLen",vn.prototype.TIME_SINCE_LAST_EVENT="timeSinceLastIdle",vn.prototype.COORDINATE_ATTR="coordinate",vn.prototype.SCROLL_REACH="scrollReach",vn.prototype.MOVES_TRUNCATED="truncated",vn.prototype.LOST_EVENTS_NUM="lostEvents",vn.prototype.TP_INTEGRATION_TYPE="tpIntegrationType",vn.prototype.EXTERNAL_ID="externalId",vn.prototype.SYNC_COORDINATE="syncCoordinates",vn.prototype.RAGE_SEQUENCE="rageSequence",vn.prototype.INDEX_IN_RAGE="indexInRage",vn.prototype.ZOOM="zoom",vn.prototype.MOBILE_HYBRID_ID="mobileHybridId",vn.prototype.DETECTOR_CONFIG_ID="detectorCfg",vn.prototype.AUTO_MASKING="autoMasking",vn.prototype.SCROLL_DEBOUNCED="scrollDebounced",vn.prototype.HOST_SELECTOR_PATH="hostSelectorPath",vn.prototype.SNAPSHOT_FUSE="snapshotFuse",vn.prototype.SNAPSHOT_TYPE="snapshotType",vn.prototype.EFFECTIVE_CONNECTION_TYPE="ect",vn.prototype.RTT="rtt",vn.prototype.PROVIDER_NAME="providerName",vn.prototype.METADATA_ONLY="MetaDataOnly",vn.prototype.IS_FIRST_CLICK="isFirstClick",vn.prototype.IS_CLICKABLE="isClickable",vn.prototype.ABEVENTS="ABTestingEvents",vn.prototype.IS_INPUT_ELEMENT="isInputElement",vn.prototype.SELECTOR_ACTION_COUNT="selectorActionCount",vn.prototype.EVENT_ID="eventId",vn.prototype.DEBUG_UNCONFIRMED_BEACONS="unconfirmedBeacons",vn.prototype.FINAL_CANCELLATION="finalCancellation",vn.prototype.ABORT_ON_TIMEOUT="abortOnTimeout",vn.prototype.DEBUG_STORAGE_PENDING="storagePendingBeacons",vn.prototype.FAIL_REQUEST_STATUS="failedWithStatus",vn.prototype.FAILED_STORAGE_FLUSH_BEACONS="failedStorageFlushBeacons",vn.prototype.STORAGE_SIZE_EXCEED="storageSizeExceed",vn.prototype.FAILED_SEND_FROM_STORAGE="failedSendFromStorage",vn.prototype.SENDING_FROM_STORAGE="sendingFromStorage",vn.prototype.RETRIED="failed",vn.prototype.DEVTOOLS_VALUES="devToolsValues",vn.prototype.DEBUG_PAGE_SN="pageSn",vn.prototype.DEBUG_BROWSER_TAB_ID="browserTabId",vn.prototype.USING_WORKER="usingWorker",vn.prototype.NAVIGATION_TIMING="navigationTiming",vn.prototype.CURRENT_VALUE="currentValue",vn.prototype.OLD_VALUE="oldValue",vn.prototype.ERROR_DATA="errorData",void 0!==g&&(vn.prototype.extraInfoAttrs=[{name:vn.prototype.FOCUS_TIME_ATTR,encodeName:"ft",encodeFunc:g.encodeNumber,encodeCode:L.dictionary.encodeEncodingType("cd_number")},{name:vn.prototype.AUTO_COMPLETE_ATTR,encodeName:"ac",encodeFunc:g.encodeBoolean,encodeCode:L.dictionary.encodeEncodingType("cd_boolean")},{name:vn.prototype.VISUAL_NAME,encodeName:"vn",encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.PAGE_NAME,encodeName:vn.prototype.PAGE_NAME,encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.WINDOW_DEPTH,encodeName:vn.prototype.WINDOW_DEPTH,encodeFunc:g.encodeNumber,encodeCode:L.dictionary.encodeEncodingType("cd_number")},{name:vn.prototype.CONTAINER_ID,encodeName:vn.prototype.CONTAINER_ID,encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.PARENT_PAGE_ID,encodeName:vn.prototype.PARENT_PAGE_ID,encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.HISTORY_LENGTH,encodeName:vn.prototype.HISTORY_LENGTH,encodeFunc:g.encodeNumber,encodeCode:L.dictionary.encodeEncodingType("cd_number")},{name:vn.prototype.TIME_SINCE_LAST_EVENT,encodeName:"tl",encodeFunc:g.encodeNumber,encodeCode:L.dictionary.encodeEncodingType("cd_number")},{name:vn.prototype.COORDINATE_ATTR,encodeName:"co",encodeFunc:g.encodeCoordinate64,encodeCode:L.dictionary.encodeEncodingType("cd_coordinate")},{name:vn.prototype.SCROLL_REACH,encodeName:"sr",encodeFunc:g.encodeNumber,encodeCode:L.dictionary.encodeEncodingType("cd_number")},{name:vn.prototype.MOVES_TRUNCATED,encodeName:"tr",encodeFunc:g.encodeBoolean,encodeCode:L.dictionary.encodeEncodingType("cd_boolean")},{name:vn.prototype.LOST_EVENTS_NUM,encodeName:"le",encodeFunc:g.encodeNumber,encodeCode:L.dictionary.encodeEncodingType("cd_number")},{name:vn.prototype.TP_INTEGRATION_TYPE,encodeName:"tp",encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.EXTERNAL_ID,encodeName:"ei",encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.SYNC_COORDINATE,encodeName:"sy",encodeFunc:g.encodeCoordinate64,encodeCode:L.dictionary.encodeEncodingType("cd_coordinate")},{name:vn.prototype.RAGE_SEQUENCE,encodeName:vn.prototype.RAGE_SEQUENCE,encodeFunc:g.encodeNumber,encodeCode:L.dictionary.encodeEncodingType("cd_number")},{name:vn.prototype.INDEX_IN_RAGE,encodeName:vn.prototype.INDEX_IN_RAGE,encodeFunc:g.encodeNumber,encodeCode:L.dictionary.encodeEncodingType("cd_number")},{name:vn.prototype.ZOOM,encodeName:"zo",encodeFunc:g.encodeNumber,encodeCode:L.dictionary.encodeEncodingType("cd_number")},{name:vn.prototype.MOBILE_HYBRID_ID,encodeName:vn.prototype.MOBILE_HYBRID_ID,encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.DETECTOR_CONFIG_ID,encodeName:vn.prototype.DETECTOR_CONFIG_ID,encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.AUTO_MASKING,encodeName:vn.prototype.AUTO_MASKING,encodeFunc:g.encodeBoolean,encodeCode:L.dictionary.encodeEncodingType("cd_boolean")},{name:vn.prototype.SCROLL_DEBOUNCED,encodeName:vn.prototype.SCROLL_DEBOUNCED,encodeFunc:g.encodeBoolean,encodeCode:L.dictionary.encodeEncodingType("cd_boolean")},{name:vn.prototype.HOST_SELECTOR_PATH,encodeName:vn.prototype.HOST_SELECTOR_PATH,encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.SELECTOR_ACTION_COUNT,encodeName:vn.prototype.SELECTOR_ACTION_COUNT,encodeFunc:g.encodeNumber,encodeCode:L.dictionary.encodeEncodingType("cd_number")},{name:vn.prototype.EVENT_ID,encodeName:vn.prototype.EVENT_ID,encodeFunc:g.encodeNumber,encodeCode:L.dictionary.encodeEncodingType("cd_number")},{name:vn.prototype.DEBUG_UNCONFIRMED_BEACONS,encodeName:vn.prototype.DEBUG_UNCONFIRMED_BEACONS,encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.FINAL_CANCELLATION,encodeName:vn.prototype.FINAL_CANCELLATION,encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.ABORT_ON_TIMEOUT,encodeName:vn.prototype.ABORT_ON_TIMEOUT,encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.DEBUG_STORAGE_PENDING,encodeName:vn.prototype.DEBUG_STORAGE_PENDING,encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.FAIL_REQUEST_STATUS,encodeName:vn.prototype.FAIL_REQUEST_STATUS,encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.FAILED_STORAGE_FLUSH_BEACONS,encodeName:vn.prototype.FAILED_STORAGE_FLUSH_BEACONS,encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.STORAGE_SIZE_EXCEED,encodeName:vn.prototype.STORAGE_SIZE_EXCEED,encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.FAILED_SEND_FROM_STORAGE,encodeName:vn.prototype.FAILED_SEND_FROM_STORAGE,encodeFunc:g.encodeBoolean,encodeCode:L.dictionary.encodeEncodingType("cd_boolean")},{name:vn.prototype.SENDING_FROM_STORAGE,encodeName:vn.prototype.SENDING_FROM_STORAGE,encodeFunc:g.encodeBoolean,encodeCode:L.dictionary.encodeEncodingType("cd_boolean")},{name:vn.prototype.RETRIED,encodeName:vn.prototype.RETRIED,encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.DEVTOOLS_VALUES,encodeName:vn.prototype.DEVTOOLS_VALUES,encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.DEBUG_PAGE_SN,encodeName:vn.prototype.DEBUG_PAGE_SN,encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.DEBUG_BROWSER_TAB_ID,encodeName:vn.prototype.DEBUG_BROWSER_TAB_ID,encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.USING_WORKER,encodeName:vn.prototype.USING_WORKER,encodeFunc:g.encodeBoolean,encodeCode:L.dictionary.encodeEncodingType("cd_boolean")},{name:vn.prototype.NAVIGATION_TIMING,encodeName:vn.prototype.NAVIGATION_TIMING,encodeFunc:Z.gbBind(g.encodeNavigationTiming,null,"_"),encodeCode:L.dictionary.encodeEncodingType("cd_navtiming")},{name:vn.prototype.OLD_VALUE,encodeName:vn.prototype.OLD_VALUE,encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.CURRENT_VALUE,encodeName:vn.prototype.CURRENT_VALUE,encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.SNAPSHOT_FUSE,encodeName:vn.prototype.SNAPSHOT_FUSE,encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.SNAPSHOT_TYPE,encodeName:vn.prototype.SNAPSHOT_TYPE,encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.EFFECTIVE_CONNECTION_TYPE,encodeName:vn.prototype.EFFECTIVE_CONNECTION_TYPE,encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.RTT,encodeName:vn.prototype.RTT,encodeFunc:g.encodeNumber,encodeCode:L.dictionary.encodeEncodingType("cd_number")},{name:vn.prototype.PROVIDER_NAME,encodeName:"pn",encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.ERROR_DATA,encodeName:"ed",encodeFunc:g.encodeString,encodeCode:L.dictionary.encodeEncodingType("cd_string")},{name:vn.prototype.METADATA_ONLY,encodeName:vn.prototype.METADATA_ONLY,encodeFunc:g.encodeBoolean,encodeCode:L.dictionary.encodeEncodingType("cd_boolean")},{name:vn.prototype.IS_FIRST_CLICK,encodeName:vn.prototype.IS_FIRST_CLICK,encodeFunc:g.encodeBoolean,encodeCode:L.dictionary.encodeEncodingType("cd_boolean")},{name:vn.prototype.IS_CLICKABLE,encodeName:vn.prototype.IS_CLICKABLE,encodeFunc:g.encodeBoolean,encodeCode:L.dictionary.encodeEncodingType("cd_boolean")},{name:vn.prototype.ABEVENTS,encodeName:"AB",encodeFunc:g.encodeABTesting,encodeCode:L.dictionary.encodeEncodingType("cd_objarray")},{name:vn.prototype.IS_INPUT_ELEMENT,encodeName:vn.prototype.IS_INPUT_ELEMENT,encodeFunc:g.encodeBoolean,encodeCode:L.dictionary.encodeEncodingType("cd_boolean")}]),mn.prototype=(k=Object.create(dn.prototype),mn.prototype.constructor=mn,k.toString=function(){return"EventSet {id:"+this.id+" Events:"+this.events.length+"}"},k),mn.fromJSON=function(e){return e.constructor=mn,Object.setPrototypeOf(e,mn.prototype),e.events.forEach(function(e){vn.fromJSON(e)}),e},mn.reduceByMetadata=function(e){for(var n,t=1,r={},i=0;i<e.length;i++)e[i].metadata._id=e[i].metadata._id||t++,r[n=e[i].metadata._id]?Array.prototype.push.apply(r[n].events,e[i].events):r[n]=e[i];var o=[];for(n in r)r.hasOwnProperty(n)&&o.push(r[n]);return o},void 0!==S&&(l=function(e,o){var n,t="object"==typeof e.glassboxMobileBridge&&"function"==typeof e.glassboxMobileBridge.getContext?e.glassboxMobileBridge.getContext():Q;if("string"==typeof t)try{n=JSON.parse(t)}catch(e){}else{t=o.parseQuery((e.location||{}).search);t!==Q&&(e=t.gbSessionId,t=t.gbUrl,e!==Q&&t!==Q&&(n={sessionId:e,config:{mobileReportURI:t}}))}return{sessionId:(n=n||{}).sessionId,config:n.config||{},override:function(e,n,t){var r=e,i=n,n="reportURI";return"mobileReportURI"!==e&&n!==e||(t=t[n])!==Q&&(r=n,n=o.extractOrigin(t),t=0===i.indexOf("http")?o.extractPath(i):i,i=n.concat(t)),{key:r,value:i}}}}(S,Z)),pn.prototype.add=function(e,n){return this._updates.push({ref:n,update:e}),this},gn.INITIAL_COMPRESSION_FACTOR=.25,gn.MINIMAL_COMPRESSION_FACTOR=.05,(p={idle:"encodeNumber",document:"encodePageDetails",segmentChanged:"encodeSegmentChanged",lastSegment:"encodeSegmentChanged",pageSnapshot:"encodePageSnapshotData",devToolsVisibilityChanged:"encodeBoolean",webStruggle:"encodeStruggles",ajaxRequest:"encodeAjaxRequest",ajaxStats:"encodeJson",hover:"encodeHoverEvent",custom:"encodeKeyValue",customMap:"encodeNameKVMap",thirdpartymap:"encodeKVMap",thirdPartyAttribute:"encodeThirdPartyAttributes",abTesting:"encodeABTesting",resourceContent:"encodeResourceContent",clientAttribute:"encodeKeyValue",resourcesWaterfall:"encodeJson",performance:"encodePerformanceTimings",webVitals:"encodeString",formAnalysis:"encodeJson",timing:"encodeTimings",resize:"encodeResize",submit:"encodeHashCode",touchmove:"encodeClickDetails",touchend:"encodeClickDetails",drag:"encodeClickDetails",mousemove:"encodeMouseMove",mouseover:"encodeHoverEvent",scroll:"encodeCoordinate",scrollReach:"encodeScrollReach",keydown:"encodeKeyEvent",keypress:"encodeKeyEvent",voc:"encodeJson",resourceUrls:"encodeJson",clipboard:"encodeJson"})[L.mouseEvents.up]="encodeClickDetails",wn.COMPRESSED_INDICATION_CHARSET="ISO-8859-15",wn.MINIMAL_COMPRESSION_FACTOR=.05,e?Cn(S,C):(d=",",void 0!==L&&L.detectorScript&&(d=L.detectorScript.getAttribute("data-clsarraydelim")||d),h=function(e,n){if("TRUE"===e.toUpperCase())return!0;if("FALSE"===e.toUpperCase())return!1;throw"cannot parse boolean from '"+e+"'"},v=function(e){var n=(-1===e.indexOf(".")?parseInt:parseFloat)(e);if(isNaN(n))throw"cannot parse number from '"+e+"'";return n},m=function(e){return e},y=function(e){return null==e?[]:e.split(d)},b=function(e){return(Array.isArray?Array.isArray(e):e instanceof Array)?null:"array is expected"},w=function(e,n){for(var t=0;t<n.length;t++)if(typeof n[t]!==e)return"array element type mismatch. expected:"+e+" actual:"+typeof n[t];return null},T=function(){var r=arguments;return function(e){for(var n=0;n<r.length;n++){var t=r[n](e);if(null!=t)return t}return null}},Sn.prototype.ignore=function(e){this[e.toLowerCase()]={name:e,ignore:!0}},I={options:{caseSensitive:!0,errorOnUnknown:!(Sn.newBuilder=function(){var t=new Sn;return{bool:function(e,n){return t.add("boolean",!1,h,null,e,n),this},num:function(e,n){return t.add("number",!1,v,null,e,n),this},str:function(e,n){return t.add("string",!0,m,null,e,n),this},strarray:function(e,n){return t.add("object",!0,y,T(b,function(e){return w("string",e)}),e,n),this},objarray:function(e,n){return t.add("object",!0,y,T(b,function(e){return w("object",e)}),e,n),this},ignore:function(e){return t.ignore(e),this},build:function(){return t}}})},validate:function(e,n){var t=new Tn;if(this.parsingError)return t.addError(I.parsingError),t;n=n||{};var r,i,o,a,u=e.requiredFieldsMask();for(r in n)n.hasOwnProperty(r)&&((i=e[r.toLowerCase()])?i.ignore||(i.name!==r&&I.options.caseSensitive?(t.addError("unknown configuration field (did you mean '"+i.name+"'?).",r),delete u[i.name]):null!==(o=n[r])&&o!==Q?typeof o===i.type?(i.required&&delete u[i.name],!i.validator||(a=i.validator(o))&&t.addError("value violation, "+a,r)):t.addError("value type mismatch. expected:"+i.type+" actual:"+typeof o,r):i.nullable||t.addError("value cannot be null, value of "+i.type+" type is expected.",r)):(I.options.errorOnUnknown?t.addError:t.addWarning).call(t,"unknown configuration field",r));for(r in u)u.hasOwnProperty(r)&&t.addError("missing required field",r);return t},onParsingError:function(e){I.parsingError=e}},Tn.prototype.addError=function(e,n){this.errors.push({field:n,reason:e})},Tn.prototype.addWarning=function(e,n){this.warnings.push({field:n,reason:e})},Tn.prototype.toString=function(){function e(e){var n="",t=0;return t<e.length?n+("\n"+(e[t].field?"'"+e[t].field+"': ":"")+e[t].reason):n}var n=" error(s): "+this.errors.length;return n+=e(this.errors),n+=" warning(s): "+this.warnings.length,n+=e(this.warnings)},k=function(e,n,t,r,i){function o(e){return"function"!=typeof String.prototype.trim?e.replace(/^\s+|\s+$/g,""):e.trim()}e=e||{};for(var a=null!=t?t.split(n):[],u=0;u<a.length;u++){var c=a[u].split("=");if(2===c.length){var s,f=o(c[0]),l=o(c[1]),c=e[f.toLowerCase()];(!c||void 0===(s=c.parser))&&(s=m);try{r[f]=s(l)}catch(e){i&&i("'"+f+"': "+e)}}}},x=Sn.newBuilder().ignore("injectionTime").ignore("visualName").ignore("detectionScriptURI").str("reportURI",!0).str("configPath",!1).bool("recordMouseMoves",!1).bool("recordScrolls",!1).bool("recordScrollReach",!1).num("scrollReachMaxTop",!1).bool("recordErrors",!1).bool("reportValidationErrors",!1).bool("domFormValidationTracking",!1).num("domFormValidationRedComponentMin",!1).num("domFormValidationRedComponentDelta",!1).strarray("domFormValidationSubmissionIds",!1).strarray("domFormValidationSubmissionSelectors",!1).strarray("domFormValidationIgnorableText",!1).strarray("domFormValidationAdditionalTagNames",!1).strarray("domFormValidationIgnorableTags",!1).strarray("domFormValidationIgnorePagesPredicates",!1).strarray("domFormValidationCheckUrls",!1).strarray("domFormValidationTitlesToCheck",!1).bool("html5FormValidation",!1).bool("domFormAnalysisReporting",!1).num("idleEventTimeInterval",!1).bool("botDetection",!1).bool("recordHovers",!1).bool("reportByPost",!1).num("maxPostReportSize",!1).num("reportPostInterval",!1).bool("reportPostRetry",!1).num("reportMaxRetries",!1).num("reportAbortAfter",!1).bool("reportUseWorker",!1).bool("reportInitializeWorkerAsBlob",!1).bool("DOMBeaconImg",!1).num("reportInterval",!1).num("maxReportSize",!1).strarray("maskList",!1).strarray("maskWhitelistValueById",!1).strarray("maskBlacklistValueById",!1).strarray("maskClassList",!1).strarray("maskWhitelistValueByClass",!1).strarray("maskBlacklistValueByClass",!1).strarray("valueWhitelistMaskSimpleSelector",!1).strarray("valueBlacklistMaskSimpleSelector",!1).str("valueMaskIgnoreAttribute",!1).bool("maskTitle",!1).strarray("encryptionList",!1).strarray("encryptionClassList",!1).strarray("valueEncryptById",!1).strarray("valueEncryptByClass",!1).str("externalIdAttr",!1).str("valueMaskingCharNumericLike",!1).str("valueMaskingCharNumeric",!1).strarray("valueMaskByCategories",!1).bool("useIdSelectors",!1).bool("useNameInFormSelectors",!1).bool("preferNamesInFormSelectors",!1).strarray("noIdSelectorsForClassNames",!1).strarray("noIdSelectorsForIDs",!1).strarray("noIdSelectorsForAttrs",!1).bool("noMetaTagInSelector",!1).bool("SCIntegration",!1).strarray("SCIntegrationURLsContainList",!1).strarray("SCIntegrationKeyList",!1).bool("interceptThirdPartyAttributes",!1).bool("interceptABTesting",!1).bool("interceptAdobeABEvent",!1).str("abTestingGlobalObject",!1).bool("enableOptimizelyIntegration",!1).bool("optimizelyCheckOnSegmentLoad",!1).str("optimizelyUrl",!1).bool("enableAdobeAnalyticsIntegration",!1).str("adobeRsid",!1).str("adobeEVarNumber",!1).num("adobeAPIMaxAttempts",!1).bool("enableGoogleAnalyticsIntegration",!1).num("googleDimensionIndex",!1).str("googleMeasurementId",!1).num("googleAPIMaxAttempts",!1).bool("interceptGAABTesting",!1).bool("reportAllResourcesLoad",!1).bool("reportExternalResources",!1).strarray("ignoreReportResourcesByTagNames",!1).num("reportMaxConcurrency",!1).num("reportTimingBetweenBeacons",!1).str("externalReporterObject",!1).bool("debugMode",!1).bool("traceMode",!1).bool("suppressMouseMovesDebug",!1).bool("visualNameDebug",!1).bool("timingMode",!1).num("minDragPixels",!1).bool("reportVisualNames",!1).num("titleCharsLimit",!1).num("maxTimeForIdleEvent",!1).num("validationValueForRenderTime",!1).bool("reportDebugInfo",!1).str("externalIdByClassesOnPrefix",!1).bool("supportNativeAutoComplete",!1).bool("recordEnterForInputs",!1).bool("recordTypingAll",!1).strarray("recordTypingForAttrs",!1).strarray("recordTypingForClasses",!1).strarray("recordTypingForIDs",!1).num("mmMaxMovesWithUnload",!1).num("mmMaxMovesInEventNoTimes",!1).num("mmMaxMovesInEventWithTimes",!1).num("mmMinStallingMoveTime",!1).num("mmMaxInMemoryMoves",!1).bool("mmDebug",!1).bool("ignoreSelectorOnMouseMove",!1).num("mhDeepLevel",!1).num("mhMaxListSize",!1).num("mhMaxInMemeoryHovers",!1).bool("mhDebug",!1).num("minStallingScrollTime",!1).bool("scrollDebug",!1).bool("clsDebug",!1).num("clsDebugCharsLimit",!1).num("clsDebugMaxReports",!1).bool("netgearSendDebugInfo",!1).bool("domRecordEnabled",!1).bool("recordShadowDom",!1).bool("recordNonNativeShadowAsElementContainer",!1).bool("domOmitInvisibleElements",!1).strarray("domNewPageTriggers",!1).strarray("pageSnapshotTriggers",!1).num("domStartAfter",!1).strarray("snapshotImmediatePages",!1).num("minVisibleElementOpacity",!1).num("domUpdateEveryWsMsgIn",!1).bool("domForceUpdateOnClick",!1).num("domRecordEnabledByChance",!1).bool("saveChancesByCookie",!1).str("domReportURI",!1).bool("domCompress",!1).strarray("domNewPageAjaxTriggers",!1).strarray("domIgnoredFormElements",!1).bool("domIncludeSelectorOnUpdate",!1).bool("domIncludeCSSSelector",!1).bool("semiDomEnabled",!1).bool("domRecordCssRules",!1).bool("domRecordCssProps",!1).strarray("domCompressRepetitiveElements",!1).bool("recordAnimation",!1).bool("domPreciseStyleSheetCloning",!1).bool("domRecordStyleAttributes",!1).bool("domThrottleChanges",!1).strarray("ignorableElementIds",!1).bool("recordAjaxCallsAnyway",!1).bool("truncateEventsWithUnload",!1).bool("mmRecordTimes",!1).num("mmDiluteMinPixels",!1).bool("reportHybrid",!1).str("customTLD",!1).num("enabledByChance",!1).strarray("domCloningBannedIds",!1).strarray("domCloningBannedClasses",!1).str("reportEncoding",!1).bool("reportCompress",!1).bool("cordovaSdkReporting",!1).str("maskingMode",!1).str("valueMaskingMode",!1).str("domMaskingMode",!1).str("encryptionMode",!1).str("valueEncryptionMode",!1).strarray("reportAddUriParams",!1).bool("recordConsoleErrors",!1).strarray("domMaskContentById",!1).strarray("domBlacklistMaskContentById",!1).strarray("domWhitelistMaskContentById",!1).strarray("domMaskContentByClass",!1).strarray("domBlacklistMaskContentByClass",!1).strarray("domWhitelistMaskContentByClass",!1).strarray("domOmitById",!1).strarray("domOmitByClass",!1).strarray("domOmitObjectElementsByType",!1).strarray("domMaskOmitById",!1).strarray("domMaskOmitByClass",!1).strarray("domIgnoreChangesById",!1).strarray("domIgnoreChangesByClass",!1).strarray("domMaskedAttributes",!1).bool("domMaskDataAttributes",!1).strarray("domMaskAttributesByTag",!1).str("domMaskIgnoreAttribute",!1).strarray("domMaskSimpleSelector",!1).strarray("domBlacklistMaskSimpleSelector",!1).strarray("domWhitelistMaskSimpleSelector",!1).strarray("tagsToCheckLength",!1).num("tagMaxLength",!1).strarray("domEncryptById",!1).strarray("domEncryptByClass",!1).str("encryptionPublicKey",!1).str("encryptionKeyId",!1).num("encryptionTimeout",!1).bool("reportPreferSendBeaconAPI",!1).bool("reportLastPageEventsViaBeaconAPI",!1).num("struggleUncompletedFormMinFields",!1).bool("domKeepComments",!1).str("domKeepScriptMatching",!1).num("domExpireSnapshotAfter",!1).bool("reportCorsForceSafelistedHeaders",!1).bool("reportDisableCors",!1).bool("enableSessionizingByCors",!1).strarray("reportCorsTakeNativeCookies",!1).str("clsByNativeCookie",!1).num("visitorDaysToExpiration",!1).bool("resetCorsOnNativeCookieChange",!1).strarray("maskCookies",!1).strarray("maskQueryParameters",!1).strarray("maskUrlPath",!1).strarray("reportStorageBackedForUA",!1).bool("reportViaTopWindow",!1).bool("reportAddUriParamAPI",!1).bool("storageBackedReporting",!1).bool("externalReporting",!1).bool("domOmitAfterUnload",!1).bool("duplicateIdCheck",!1).strarray("domPartialWhenLocationContains",!1).strarray("domFilterAttributes",!1).strarray("domIgnoreAttributes",!1).strarray("blackoutWhenLocationContains",!1).bool("iframesAutoInject",!1).bool("injectIframesAboutBlank",!1).str("iframesAutoInjectMode",!1).bool("iframesRecordEnabled",!1).bool("framesetRecordEnabled",!1).bool("htmlObjectRecordEnabled",!1).str("iframesParentOrigin",!1).num("iframesHandshakeTimeout",!1).bool("iframesDebugEnabled",!1).bool("iframesSkipHidden",!1).bool("iframesDisableNotifications",!1).bool("iframesDirectChannel",!1).strarray("iframesDirectChannelWhenUriContains",!1).strarray("iframesSkipWhenLocationContains",!1).strarray("iframesBlackoutWhenLocationContains",!1).bool("blackoutIdleReporting",!1).bool("reportIncludeReferrer",!1).str("mobileHybridId",!1).bool("interceptAjax",!1).bool("ajaxDebug",!1).bool("ajaxHashRecurrentUrls",!1).str("ajaxRecordMetadata",!1).str("ajaxRecordResponseBody",!1).str("ajaxRecordResponseHeaders",!1).str("ajaxRecordRequestBody",!1).str("ajaxRecordRequestHeaders",!1).str("ajaxRecordStats",!1).strarray("ajaxStatsQueryParams",!1).num("ajaxRecordSessionLimit",!1).bool("ajaxCaptureRequestCookie",!1).num("ajaxTimeoutForResourceData",!1).objarray("ajaxMaskRequestBody",!1).objarray("ajaxMaskResponseBody",!1).bool("reportCreateSubSessionCookie",!1).bool("resourcesRecordEnabled",!1).bool("resourceRecordCssOnly",!1).bool("resourcesRecordAllowCors",!1).num("resourcesRecordCount",!1).num("resourcesRecordChance",!1).bool("electResourcesOnClear",!1).strarray("resourceIgnoreWhenUrlContains",!1).bool("resourceTimingRecordEnabled",!1).num("resourceTimingRecordEnabledByChance",!1).bool("versionResources",!1).num("versionResourcesEnabledByChance",!1).num("webVitalsReportTimeout",!1).bool("resourceTimingRecordAjax",!1).num("resourceBufferCheckTime",!1).num("maxResourcesBeforeFlush",!1).num("resourceBufferIncreaseBy",!1).bool("isCheckResourceBuffer",!1).bool("clientAttributesEnabled",!1).num("clientAttributeMaxLength",!1).num("clientAttributeFuseWaitTime",!1).num("clientAttributeMaxMutations",!1).bool("domIE11ForceMutationObserver",!1).bool("domForceIEMutationEventsHandler",!1).str("detectorTagId",!1).bool("cookieAssignFQDN",!1).num("cookieTLDSegmentCount",!1).bool("enableSecureCookie",!1).str("sessionIdByQueryParam",!1).str("visitorIdByQueryParam",!1).str("domIdentifyingAttribute",!1).bool("sendStateInfo",!1).bool("supportRemoteClientConfig",!1).num("debounceScrolls",!1).num("debounceScrollReach",!1).bool("domHashTokens",!1).bool("ccAutoMask",!1).bool("ccAutoMaskByContent",!1).bool("ccAutoMaskNumberInString",!1).str("ccAutoMaskMode",!1).strarray("ccAutoMaskFields",!1).num("ccAutoMaskKeepLastDigits",!1).bool("ccForceMaskContainer",!1).str("domTokenizationVersion",!1).strarray("captureGlobalObjects",!1).bool("captureGlobalObjectsEmptyStrings",!1).bool("captureGlobalObjectsOnSegmentChange",!1).bool("useFullPathForObjectCapturing",!1).bool("domIEForceStyleCopyByRules",!1).bool("domFormValidationAllowFormLevel",!1).strarray("segmentationTriggerBySimpleSelector",!1).strarray("segmentationLabelBySimpleSelector",!1).str("segmentationLabelByAttribute",!1).str("segmentationTitleByAttribute",!1).str("segmentationPrefix",!1).str("segmentationIgnoreWhenLocationContains",!1).bool("segmentationParallelMechanism",!1).str("segmentationInitialLabelSelector",!1).bool("segmentationForceTryEnterSegment",!1).bool("forceLogicalSegmentationOnHash",!1).num("waitForSegmentRender",!1).bool("recordSpaLoadTime",!1).bool("collectStruggles",!1).bool("collectFormStruggles",!1).num("struggleMaxLongFocusTime",!1).num("struggleRageClickInterval",!1).num("struggleRageClickMinCount",!1).strarray("struggleRageClickIgnoreBySelector",!1).strarray("struggleDeadClickIgnoreBySelector",!1).strarray("struggleDeadClickIgnoreByTagNames",!1).bool("struggleCaptureDeadClick",!1).num("struggleDeadClickInterval",!1).bool("struggleCaptureErrorClick",!1).num("struggleErrorClickInterval",!1).bool("struggleCaptureAjaxErrors",!1).bool("struggleCaptureHorizontalScrollbar",!1).bool("struggleCaptureBlankPage",!1).bool("domTamperingDetectionEnabled",!1).num("domTamperingGraceTime",!1).strarray("domTamperingIgnorePages",!1).strarray("domTamperingIgnorableTags",!1).bool("devToolsDetectionEnabled",!1).str("devToolsDetectionMessage",!1).num("devToolsDetectionWorkerTimeout",!1).bool("domThrottleChanges",!1).bool("domThrottleChangesIE11Only",!1).num("visualNameLimit",!1).num("maxRecordedCountPerError",!1).num("maxRecordedCountPerWarning",!1).num("maxRecordedCountPerInfo",!1).bool("recordConsoleWarn",!1).bool("recordConsoleInfo",!1).strarray("recordConsoleWarnWhitelist",!1).strarray("recordConsoleInfoWhitelist",!1).strarray("recordConsoleWarnBlacklist",!1).strarray("recordConsoleInfoBlacklist",!1).bool("observeRightClick",!1).bool("reinstateNativeMutationObserver",!1).bool("useExtension",!1).str("forceRenderingFixForUA",!1).bool("pageNameResolvingEnabled",!1).strarray("pageNameResolvingByElements",!1).num("domFuseDuration",!1).num("domFuseElementCount",!1).num("domFuseDurationIE",!1).num("domFuseElementCountIE",!1).strarray("removeBase64ImageDataTagNames",!1).num("delayDomMutationEvent",!1).num("handleAttributeMutationsAsChunks",!1).bool("ignoreMutationsOnNotAttachedElements",!1).bool("startMutationObserverOnLoad",!1).bool("enableAdoptedCss",!1).bool("adoptedStylesRemoveFontsFace",!1).bool("checkForHtmlOnly",!1).strarray("snapshotWaitForElement",!1).bool("snapshotWaitForElementMustShown",!1).bool("snapshotAsync",!1).num("visitorAsyncMaxChunkTime",!1).strarray("allowWaitForElementsUrls",!1).num("delaySnapshotAfterElementFound",!1).num("waitForElementTime",!1).num("minAreaTocountElementAsShown",!1).bool("checkVisibility",!1).num("reTakeSnapshotAfterTime",!1).str("gbconsoledomain",!1).bool("collectVoc",!1).ignore("vocObjectMap").bool("collectUsabillaVoc",!1).bool("waitForUsabillaObj",!1).str("interceptUsabillaUrl",!1).bool("decodeUri",!1).bool("decodUri",!1).bool("isDetectorDom",!1).bool("enableSessionCamApi",!1).bool("enableEncodeSnapshotReferrer",!1).bool("passTabIdViaWinName",!1).num("infiniteScrollDetectionWaitTime",!1).num("infiniteScrollDetectionGrowElementsCount",!1).num("infiniteScrollDetectionGrowPixels",!1).bool("recordCanvas",!1).num("canvasQuality",!1).bool("initDetectorOnInteractive",!1).bool("useAlternateBindFunction",!1).bool("setSelectorToAttributes",!1).bool("recordClipboardEvents",!1).bool("recordClipboardContent",!1).num("clipboardMaxValue",!1).num("clipboardMaxDuration",!1).build(),L.detectorScript&&(e=L.detectorScript.getAttribute("data-clsdelim")||";",(M=L.detectorScript.getAttribute("data-clsconfig"))&&k(x,e,M,Y,I.onParsingError)),M=window._cls_config||window._config||{},kn(Y,M),kn(Y,window._cls_config_forced),(Y.maskingMode||xn(Y.domMaskContentById,Y.domMaskContentByClass,Y.domMaskSimpleSelector,Y.maskList,Y.maskClassList))&&(xn(Y.domBlacklistMaskContentById,Y.domWhitelistMaskContentById,Y.domBlacklistMaskContentByClass,Y.domWhitelistMaskContentByClass,Y.domBlacklistMaskSimpleSelector,Y.domWhitelistMaskSimpleSelector,Y.maskBlacklistValueById,Y.maskWhitelistValueById,Y.maskBlacklistValueByClass,Y.maskWhitelistValueByClass)&&(Z.isIE()?console.log("Bad mixed configuration combination, old and new masking configuration!"):console.log("%c Bad mixed configuration combination, old and new masking configuration!","color: white; background: red"),Y.isMixMasking=!0),Y.valueMaskingMode=Y.maskingMode||Y.valueMaskingMode||L.censorMode.BlackList,Y.domBlacklistMaskContentById=Y.domMaskContentById||[],Y.domWhitelistMaskContentById=Y.domMaskContentById||[],Y.domBlacklistMaskContentByClass=Y.domMaskContentByClass||[],Y.domWhitelistMaskContentByClass=Y.domMaskContentByClass||[],Y.domBlacklistMaskSimpleSelector=Y.domMaskSimpleSelector||[],Y.domWhitelistMaskSimpleSelector=Y.domMaskSimpleSelector||[],Y.maskBlacklistValueById=Y.maskList||[],Y.maskWhitelistValueById=Y.maskList||[],Y.maskBlacklistValueByClass=Y.maskClassList||[],Y.maskWhitelistValueByClass=Y.maskClassList||[]),Y.valueMaskingMode=Y.valueMaskingMode||L.censorMode.WhiteList,Y.domPreciseStyleSheetCloning=Y.domPreciseStyleSheetCloning||!!Y.domIEForceStyleCopyByRules,Y.reportPostRetry=Y.reportPostRetry||!!Y.postRetry,(Y.encryptionMode||xn(Y.encryptionList,Y.encryptionClassList))&&(Y.valueEncryptionMode=Y.encryptionMode||Y.valueEncryptionMode||L.censorMode.BlackList,Y.valueEncryptById=Y.encryptionList||[],Y.valueEncryptByClass=Y.encryptionClassList||[]),Y.decodUri!==Q&&(Y.decodeUri=Y.decodUri),Y.reportAddUriParamAPI&&(Y.reportAddUriParams=Y.reportAddUriParams||[],Y.reportAddUriParams.push("api")),Y.visualName&&Y.visualName.eventsToCalcDistance&&Y.visualName.eventsToCalcDistance.length&&(Y.visualName.eventsToCalcDistance=Z.immutableSet.apply(null,Y.visualName.eventsToCalcDistance)),function(e){var n=Y.reportToStorageAfterUnload,t=Y.reportPreferSendBeaconAPI&&"function"!=typeof navigator.sendBeacon;if(!n&&Y.reportStorageBackedForUA&&!t)for(var r=0;r<Y.reportStorageBackedForUA.length;r++)try{if(new RegExp(Y.reportStorageBackedForUA[r],"gi").exec(e.navigator.userAgent)){n=!0;break}}catch(e){}n&&(Y.storageBackedReporting=!0)}(window),M=window,Y.externalReporterObject&&M[Y.externalReporterObject]&&(Y.externalReporting=!0,Y.reportDisableCors=!0,Y.reportUseWorker&&(Y.reportUseWorker=!1)),kn(Y,l.config,l.override),Y.domRecordEnabled&&void 0!==Y.domRecordEnabledByChance&&(A=new Ln(K,$,Q),M=new On(window.localStorage,{keysPrefix:L.Storage.BoundKeyPrefix,sessionIdFunc:function(){return A.get(L.cookies.session)}}),In(Y.domRecordEnabledByChance,M,A,"dom",Y.saveChancesByCookie)?(Y.domRecordEnabled=!0,Y.domReportURI&&(Y.reportURI=Y.domReportURI)):Y.domRecordEnabled=!1,Y.domRecordEnabledByChance),ee={MASKING_CHAR:"*",censorValueOf:function(e,n,t,r){var i;if(e=""+(e||""),0<(n||0)&&(i=Math.min(e.length,n)),r){var o,a,u=e;for(0<(n||0)&&(i=Math.min(e.length,n)),o=0;o<r.length;++o)u=0<i?(a=new Array(r[o].length-i+1).join(t||ee.MASKING_CHAR),u.replace(r[o].substring(r[o].length-i),a)):(a=new Array(r[o].length+1).join(t||ee.MASKING_CHAR),u.replace(r[o],a));return u}return 0<i?new Array(e.length-i+1).join(t||ee.MASKING_CHAR)+e.substring(e.length-i):new Array(e.length+1).join(t||ee.MASKING_CHAR)},isAvailable:function(){return!0}},Bn.prototype={isCensored:function(e){return!!jn.call(this,e).doMask},censor:function(e){var n=jn.call(this,e);return n.doMask?(this.cb&&this.cb(e,n.cause,n.valuesToMask),n.valuesToMask?this.maskingUtils.censorValueOf(e.value,n.keepLastDigits,n.maskingChar,n.valuesToMask):this.maskingUtils.censorValueOf(e.value,n.keepLastDigits,n.maskingChar)):e.value},isAvailable:function(){return!0}},Un.getMatchingAttributeFromRegexpArray=function(e,n){for(var t=0;t<n.length;t++)if(n[t].test(e))return n[t]},Un.checkSelector=function(e,n){for(var t=0;t<n.length;++t)if(e&&e.nodeType===Node.ELEMENT_NODE&&Z.elementMatches(e,n[t]))return n[t]},Un.prototype.isCensored=function(e,n){var t=n?e.parentElement:e;if(!Z.isEditableInput(t))return!1;if(t.hasAttribute(this._options.valueCensorIgnoreAttribute))return!1;n=this._options.valueCensorshipMode===this._envCensorMode.WhiteList;return t.hasAttribute(this._censorAttribute)||Z.hasClassName(t,this._censorAttribute)?n=!0:this._valueCensorIdsWithoutwildcards.length&&E.contains(this._valueCensorIdsWithoutwildcards,Z.getElementId(t))?(this._valueCensorIdsWithoutwildcards.indexOf(Z.getElementId(t)),n=!n):this._valueCensorClassesWithoutwildcards.length&&Z.hasOneOfClassNames(t,this._valueCensorClassesWithoutwildcards)?n=!n:this._valueCensorSelectorsWithoutwildcards.length?Un.checkSelector(t,this._valueCensorSelectorsWithoutwildcards)&&(n=!n):this._regexpValueCensorIds.length?Un.getMatchingAttributeFromRegexpArray(Z.getElementId(t),this._regexpValueCensorIds)&&(n=!n):this._regexpValueCensorClasses.length&&Un.getMatchingAttributeFromRegexpArray(Z.getClass(t),this._regexpValueCensorClasses)&&(n=!n),!n||(e=e.getAttribute("gbid")||e._gbid)&&!this.maskedElementsAlreadyLogged[e]&&(this.maskedElementsAlreadyLogged[e]=!0),n},Un.prototype.censor=function(e,n){return e._gbValuesToMask?this.isCensored(e,n)?this._censorValueOf(e.value,Q,Q,e._gbValuesToMask):e.value:this.isCensored(e,n)?this._censorValueOf(e.value):e.value},Un.prototype.isAvailable=function(){return this._isAvailable()},R=new function(o,a,u){var e=function(){if(-1===(a||"").indexOf("://"))return!1;var e=o.createElement("a");if(e.href=a,(/:\d+/gi.test(a)?e.port:"")!==o.location.port)return!0;if(u)return e.hostname!==o.location.hostname;for(var n=o.location.hostname.split("."),t=e.hostname.split("."),r=n.length<=2,i=!1;n.length&&t.length&&!i;)i=n.pop()!==t.pop();e=(i?1:0)+Math.max(n.length,t.length);return r?0!==e:1<e}();this.isCorsReporting=function(){return e}}(K,Y.reportURI,Y.cookieAssignFQDN),N=new Ln(K,$,{domainBy:Y.cookieAssignFQDN?"fqdn":"tld",tldSegmentCount:Y.cookieTLDSegmentCount,reportURI:Y.reportURI,enableSecureCookie:Y.enableSecureCookie}),D=new On(window.localStorage,{keysPrefix:L.Storage.BoundKeyPrefix,sessionIdFunc:function(){return N.get(L.cookies.session)}}),Ie=window,O=(ke=Y).recordShadowDom&&Ie.ShadowRoot&&void 0!==yi?new yi(new Qn(ke)):new Qn(ke),F=new function(e,l,d){this.getSelectorInfo=function(e){if(!d)return L.encoding.rootCssSelector;try{if(!(e instanceof Element))return;for(var n=[];e.nodeType===Node.ELEMENT_NODE&&"HTML"!==e.nodeName;){var t=e.nodeName.toLowerCase();if(e.id){r="#"+e.id,n.push(r);break}var r=t,i=e,o=1,a=!0,u=!1;if(i.previousElementSibling)for(;i=i.previousElementSibling;)o++,i.nodeName.toLowerCase()===r&&(u=!0,e.className===i.className&&(a=!1));else if(i.nextElementSibling)for(;i=i.nextElementSibling;)i.nodeName.toLowerCase()===r&&(u=!0,e.className!==i.className&&e.className||(a=!1));if(a){if(u&&e.className){for(var c="",s=e.className.split(" "),f=0;f<s.length;f++)c+="."+s[f];r+=c}}else r+=":nth-child("+o+")";n.push(r),e=e.parentNode}return(n=n.reverse()).join(" > ")}catch(e){return logger.error("Failed extracting CSS selector. Error "+e.message,e),l.emit("clsDebug","Failed extracting CSS selector. Error: "+e.message),L.encoding.rootCssSelector}}}(window,$,Y.domIncludeCSSSelector),_=new function(t,n,e,r,i,o){o=o||{};var a,u,c,s,f,l,d=0<(i.valueEncryptById||[]).length||0<(i.valueEncryptByClass||[]).length||0<(i.domEncryptById||[]).length||0<(i.domEncryptByClass||[]).length||i.valueEncryptionMode===L.censorMode.WhiteList,i=d&&!(!o.publicKey||!o.keyId),h=!1,v=!1,m=!1,g=[];function p(e){w(u=Z.Base64.bytesToBase64(new Uint8Array(e))),!m&&v&&b()}function y(e){g.push(e),w(),v&&g.length&&n.emit("clsDebug","Error: "+g.join(". Error: "))}function b(){e.set("hybrid.key",u),e.set("symmetric.key",Z.Base64.bytesToBase64(new Uint8Array(a))),e.set("public.key.hash",Z.hashcode(o.publicKey)),m=!0}function w(e){h||(Z.currentTimestamp(),h=!0,(u=e)&&(c=o.keyId+"_"+u),setTimeout(function(){n.emit("encryptionReady")},0))}if(i)try{Z.currentTimestamp(),s=e.get("symmetric.key"),f=e.get("hybrid.key"),l=""+Z.hashcode(o.publicKey)===e.get("public.key.hash"),s&&f&&l?(a=new Uint8Array(Z.strToBytes(Z.Base64.atob(s))),w(f)):(n.once("init:loaded",function(){v=!0,!m&&a&&u&&b(),g.length&&n.emit("clsDebug","Error: "+g.join(". Error: "))}),function(){var e=r(t);if(e){var n=Z.strToBytes(Z.Base64.atob(o.publicKey));return a=new Uint8Array(16),e.getRandomValues(a),e.executeEncryptionFlow(n,a,p,y),1}y("Current browser does not support crypto interface.")}()&&setTimeout(function(){w()},o.timeout))}catch(e){y(e.message||"unknown exception during encryption")}else d?(y("encryption is not well configured"),console.error("[EyeView-403]: Encryption configuration error: missing encryption key settings. Sensitive data might be recorded.")):w();this.isEncryptionConfigured=function(){return!!d},this.canUseEncryption=function(){return!!c&&!!(t.crypto&&(t.crypto.subtle||t.crypto.webkitSubtle)||t.msCrypto&&t.msCrypto.subtle)},this.getEncryptionKey=function(){return c?a:Q},this.getKeyInfo=function(){return c||Q},this.stringIsEncrypted=function(e){return Z.startsWith(e,L.encryptionPrefix)}}(window,$,D,function(e){return e.crypto&&(e.crypto.subtle||e.crypto.webkitSubtle)?new Dn(e):e.msCrypto&&e.msCrypto.subtle?new Mn(e):null},Y,{publicKey:Y.encryptionPublicKey,keyId:Y.encryptionKeyId,timeout:Y.encryptionTimeout}),window,Te=_,P={censorValueOf:function(e){var n=Te.getEncryptionKey(),n=Te.AES_CBC.encrypt(new Uint8Array(Z.strToUTF8Bytes(e)),n,!0);return L.encryptionPrefix+Z.Base64.bytesToBase64(n,!0)+"_"},isAvailable:function(){return Te.canUseEncryption()}},B=new function(e,n){var o=n.handlers;function a(e){return o[e]=n.fallbackHandlers[e]||o[e],o[e]}this.censor=function(n,t){for(var e,r=n.value,i=0;i<o.length;i++){(e=o[i]).isAvailable()||(e=a(i));try{r=e.censor(n,t)}catch(e){logger.error("failed censoring value, switching to fallback: "+e.message,e),r=a(i).censor(n,t)}if(r!==n.value)return r}return r},this.isCensored=function(e,n){for(var t=0;t<o.length;t++)if(o[t].isCensored(e,n))return!0;return!1}}(window,(z=_,G=P,J=$,be=An(),we=(X=Y).valueMaskingMode===L.censorMode.WhiteList,Ee=X.ccForceMaskContainer?Pn(J):{markOwnerAndInputs:function(){}},Se=[],(Ce=[]).push(new Bn(ee,[function(e){return{doMask:"INPUT"===e.tagName&&"password"===e.type,cause:"password"}},(te={enabled:X.ccAutoMask,byContent:X.ccAutoMaskByContent,byAttributes:X.ccAutoMaskFields,keepLastDigits:X.ccAutoMaskKeepLastDigits,ccAutoMaskNumberInString:X.ccAutoMaskNumberInString,ccAutoMaskMode:X.ccAutoMaskMode},ie=0<(te=Z.optionsWithDefaults(te,{enabled:!0,byContent:!0,byAttributes:["cc-number","cc-csc"],byCommonProps:["class","id","name"],ccAutoMaskNumberInString:!1,ccAutoMaskMode:"default"})).keepLastDigits?te.keepLastDigits:Q,oe=Z.immutableSet.apply(null,te.byAttributes),ae={doMask:!1},ue=/[\s\d]+/gi,ce=/\d{12,19}/g,se="relaxed"===te.ccAutoMaskMode?/(credit.*card)|((credit|card|cc).?num)/gi:/(credit.*card)|((credit|card|cc).*num)/gi,re=[0,2,4,6,8,1,3,5,7,9],fe=function(e){for(var n,t=e.length,r=1,i=0;t;)n=parseInt(e.charAt(--t),10),i+=(r^=1)?re[n]:n;return i&&i%10==0},function(n){if(!te.enabled)return ae;var e=n.getAttribute("autocomplete")||n.getAttribute("x-autocompletetype")||"";if(oe[e])return{doMask:!0,keepLastDigits:"cc-number"===e?ie:Q,cause:"cc"};if(te.byContent){e=n.value||"";if(e.match(ue)&&(e=e.trim().split(/\s+/).join(""))){var t=e.match(ce);if(t&&t.length)if(te.ccAutoMaskNumberInString){for(var r=[],i=0;i<t.length;++i)fe(t[i])&&r.push(t[i]);if(r.length)return{doMask:!0,keepLastDigits:ie,cause:"cc",valuesToMask:r}}else if(fe(e))return{doMask:!0,keepLastDigits:ie,cause:"cc"}}}return te.byCommonProps&&te.byCommonProps.some(function(e){return(n.getAttribute(e)||"").match(se)})?{doMask:!0,keepLastDigits:ie,cause:"cc"}:ae}),_n(Fn({valueMaskByCategories:X.valueMaskByCategories,valueMaskingCharNumeric:X.valueMaskingCharNumeric,valueMaskingCharNumericLike:X.valueMaskingCharNumericLike}))],function(e,n,t){"cc"===n&&Ee.markOwnerAndInputs(e,t),Le.onAutoMaskingApplied(e,n)})),Se.push(Q),Ce.push((le=ee,de={valueCensorIds:we?X.maskWhitelistValueById:[],valueCensorClasses:we?X.maskWhitelistValueByClass:[],valueCensorSimpleSelector:we?X.valueWhitelistMaskSimpleSelector:[],valueCensorIgnoreAttribute:X.valueMaskIgnoreAttribute},he={},ve=[],me=[],ge=[],pe=[],(ye=de||{}).valueCensorIds&&Hn(ye.valueCensorIds,ve,ge),ye.valueCensorClasses&&Hn(ye.valueCensorClasses,me,pe),{isCensored:function(e,n){var t=n?e.parentElement:e,n=!!t._gbForceMasking;return!(n=t.hasAttribute(ye.valueCensorIgnoreAttribute)||ve.length&&E.contains(ve,Z.getElementId(t))||me.length&&Z.hasOneOfClassNames(t,me)||ge.length&&Un.getMatchingAttributeFromRegexpArray(Z.getElementId(t),ge)||pe.length&&Un.getMatchingAttributeFromRegexpArray(Z.getClass(t),pe)?!1:n)||(e=e._gbid||e.getAttribute("gbid"))&&!he[e]&&(he[e]=!0),n},censor:function(e,n){return this.isCensored(e,n)?e._gbValuesToMask?le.censorValueOf(e.value,Q,Q,e._gbValuesToMask):le.censorValueOf(e.value):e.value},isAvailable:function(){return!0}})),Se.push(Q),z.isEncryptionConfigured()&&(Ce.push(new Un(J,G,L.censorMode,"cls_encrypt",{name:"encryption",valueCensorshipMode:X.valueEncryptionMode,valueCensorIds:X.valueEncryptById,valueCensorClasses:X.valueEncryptByClass,autoCensorPredicate:Q},be)),Se.push(new Un(J,ee,L.censorMode,"cls_encrypt",{name:"masking_fallback",valueCensorshipMode:X.valueEncryptionMode,valueCensorIds:X.valueEncryptById,valueCensorClasses:X.valueEncryptByClass,valueCensorIgnoreAttribute:X.valueMaskIgnoreAttribute},be))),Ce.push(new Un(J,ee,L.censorMode,"cls_mask",{name:"masking",valueCensorshipMode:X.valueMaskingMode,valueCensorIds:we?X.maskWhitelistValueById:X.maskBlacklistValueById,valueCensorClasses:we?X.maskWhitelistValueByClass:X.maskBlacklistValueByClass,valueCensorSimpleSelectors:we?X.valueWhitelistMaskSimpleSelector:X.valueBlacklistMaskSimpleSelector,valueCensorIgnoreAttribute:X.valueMaskIgnoreAttribute},be)),Se.push(Q),{handlers:Ce,fallbackHandlers:Se})),H=0,q=function(){return++H},j={idOf:function(e,n){return e?n?e[W]:Vn(e):null},selectorFor:function(e){return{selector:""+Vn(e)}},GB_ID_FIELD_NAME:W="_gbid"},ne=function(c,s){c&&c.length&&(c=Z.arrayToLowerCase(c)),s&&s.length&&(s=Z.arrayToLowerCase(s));var f=Z.immutableSet.apply(null,c),l=Z.immutableSet.apply(null,s);function n(e){if(!c.length&&!s.length||!e)return e;var n=e.split("?");if(n[0]&&0<Object.keys(l).length){for(var t=n[0].split("/"),r=1;r<t.length;r++)l[t[r]]&&t[r+1]&&(t[r+1]=ee.censorValueOf(t[r+1]));n[0]=t.join("/")}if(!n[1])return n[0]+(e.indexOf("?")===e.length-1?"?":"");var i,o,a=[],u=n[1].split("&");for(r=0;r<u.length;r++)1<(o=u[r].split("=")).length?(i=o[0],o=f[i.toLowerCase()]?ee.censorValueOf(o[1]):o[1],a.push(i+"="+o)):a.push(u[r]);return n[0]+"?"+a.join("&")}return{mask:function(e){e=e.split("#");return n(e[0])+(1<e.length?"#"+n(e[1]):"")}}}(Y.maskQueryParameters,Y.maskUrlPath),U={setListener:function(e){V=e},clonerHook:function(e,n){V&&V(e,n)}},Ae=K,Me=void 0!==Y&&Y.scrollDebug,xe={scroll:function(e,n,t,r){return Re=function(r,e,i,o,a,n){var u,c,s,f,l=0,d=0,h=0,v=0;e.on("event:unload",function(){c&&(clearTimeout(c),p(!0))});var m="scrollReach"===n.logicalName,g="_gb_scrollInfo";function p(e){e&&f?(v++,f(),f=null,a&&console.log("SCROLL DEBUG: bounced invocation #"+v)):!e&&s&&(d++,s(),s=null,a&&console.log("SCROLL DEBUG: bounced invocation #"+d))}return{debouncedHandler:function(e){var n,t;m?(clearTimeout(c),0<Z.getCurrentScrollReach()&&(f=Z.gbBind(o,this,e)),c=setTimeout(Z.gbBind(p,null,m),i),h++,a&&h%20==0&&console.log("SCROLL DEBUG: de-bouncer - called:",v," of total:",h)):(clearTimeout(u),s=Z.gbBind(o,this,e),t=e.target,(n=t===r?r.documentElement:t)[g]||(n[g]={lastScrollTop:n.scrollTop,lastVDelta:0}),t=(e=n).scrollTop-e[g].lastScrollTop,n=t*e[g].lastVDelta<0,e[g].lastVDelta=t,e[g].lastScrollTop=e.scrollTop,n?p(!1):(u=setTimeout(Z.gbBind(p,null,m),i),l++,a&&l%20==0&&console.log("SCROLL DEBUG: de-bouncer - called:",d," of total:",l)))},bounce:p}}(Ae,n,t,e,Me,r)},bounceAll:function(e){Re&&"scroll"!==e&&Re.bounce(!1)}},Wn.prototype.open=function(e,n){this._url=n,this.readyState=XMLHttpRequest.OPENED,this.onreadystatechange&&this.onreadystatechange()},Wn.prototype.send=function(e){var n;this.readyState=XMLHttpRequest.LOADING,e=this._contentType?(n={type:this._contentType},new Blob([e],n)):e,this.status=navigator.sendBeacon(this._url,e)?200:Wn.BEACON_ERROR_STATUS,200!==this.status&&logger.error("failed posting new beacon using sendBeacon API. payload: contentType:"+this._contentType),this.readyState=XMLHttpRequest.DONE,this.onreadystatechange&&this.onreadystatechange()},Wn.prototype.setRequestHeader=function(e,n){"Content-Type"===e&&(this._contentType=n)},Wn.prototype.getResponseHeader=function(){return null},Wn.canSend=(Ne=/chrome/.test(navigator.userAgent.toLowerCase()),function(e){return!(Ne&&e&&e.length>Wn.CHROME_PAYLOAD_LIMIT)}),Wn.isSupported=function(){return"function"==typeof navigator.sendBeacon},Wn.CHROME_PAYLOAD_LIMIT=61440,Wn.BEACON_ERROR_STATUS=400,qn.prototype.open=function(e,n){-1===n.indexOf("://")&&(n=location.protocol+"//"+location.hostname+(n.startsWith("/")?"":"/")+n),this.xdr.open(e,n),this.readyState=XMLHttpRequest.OPENED,this.onreadystatechange&&this.onreadystatechange()},qn.prototype.send=function(e){this.xdr.send(e),this.readyState=XMLHttpRequest.LOADING,this.onreadystatechange&&this.onreadystatechange()},qn.prototype.setRequestHeader=function(){},qn.prototype.getResponseHeader=function(){return null},De=zn(self,Y.reportPreferSendBeaconAPI,Y.clientAttributesEnabled||Y.interceptThirdPartyAttributes,Y.cordovaSdkReporting),function(e){var r,i,n=this&&this.__extends||(r=function(e,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)},function(e,n){function t(){this.constructor=e}r(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),f=(i=Error,n(t,i),t);function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=i.apply(this,e)||this;return Object.create(Error.prototype,{name:{value:"IllegalArgumentError"}}),t}var g=function(){"use strict";var o,a,i=!1;function u(e,n){var t=o[(a[e]+a[n])%255];return t=0===e||0===n?0:t}var m,c,s,f,l=!1;function r(){function e(e){var n,t,r,i;for(i=o[255-a[e]],t=r=i=0===e?0:i,n=0;n<4;n++)r^=t=255&(t<<1|t>>>7);return r^=99}i||function(){o=[],a=[];for(var e,n=1,t=0;t<255;t++)e=128&(o[t]=n),n<<=1,n&=255,128==e&&(n^=27),n^=o[t],a[o[t]]=t;o[255]=o[0],a[0]=0,i=!0}(),m=[],c=[],s=[[],[],[],[]],f=[[],[],[],[]];for(var n=0;n<256;n++){var t=e(n);m[n]=t,c[t]=n,s[0][n]=u(2,t)<<24|t<<16|t<<8|u(3,t),f[0][t]=u(14,n)<<24|u(9,n)<<16|u(13,n)<<8|u(11,n);for(var r=1;r<4;r++)s[r][n]=s[r-1][n]>>>8|s[r-1][n]<<24,f[r][t]=f[r-1][t]>>>8|f[r-1][t]<<24}l=!0}function e(e,n){l||r();var h=new Uint32Array(n);h.set(m,512),h.set(c,768);for(var t=0;t<4;t++)h.set(s[t],4096+1024*t>>2),h.set(f[t],8192+1024*t>>2);var v=function(e,n){"use asm";var g=0,p=0,y=0,b=0,v=0,m=0,w=0,E=0,i=0,o=0,a=0,u=0,c=0,s=0,f=0,l=0,C=0,S=0,T=0,I=0,d=0;var k=new e.Uint32Array(n),h=new e.Uint8Array(n);function x(e,n,t,r,i,o,a,u){e=e|0;n=n|0;t=t|0;r=r|0;i=i|0;o=o|0;a=a|0;u=u|0;var c=0,s=0,f=0,l=0,d=0,h=0,v=0,m=0;c=t|0x400,s=t|0x800,f=t|0xc00;i=i^k[(e|0)>>2],o=o^k[(e|4)>>2],a=a^k[(e|8)>>2],u=u^k[(e|12)>>2];for(m=16;(m|0)<=r<<4;m=m+16|0){l=k[(t|i>>22&1020)>>2]^k[(c|o>>14&1020)>>2]^k[(s|a>>6&1020)>>2]^k[(f|u<<2&1020)>>2]^k[(e|m|0)>>2],d=k[(t|o>>22&1020)>>2]^k[(c|a>>14&1020)>>2]^k[(s|u>>6&1020)>>2]^k[(f|i<<2&1020)>>2]^k[(e|m|4)>>2],h=k[(t|a>>22&1020)>>2]^k[(c|u>>14&1020)>>2]^k[(s|i>>6&1020)>>2]^k[(f|o<<2&1020)>>2]^k[(e|m|8)>>2],v=k[(t|u>>22&1020)>>2]^k[(c|i>>14&1020)>>2]^k[(s|o>>6&1020)>>2]^k[(f|a<<2&1020)>>2]^k[(e|m|12)>>2];i=l,o=d,a=h,u=v}g=k[(n|i>>22&1020)>>2]<<24^k[(n|o>>14&1020)>>2]<<16^k[(n|a>>6&1020)>>2]<<8^k[(n|u<<2&1020)>>2]^k[(e|m|0)>>2],p=k[(n|o>>22&1020)>>2]<<24^k[(n|a>>14&1020)>>2]<<16^k[(n|u>>6&1020)>>2]<<8^k[(n|i<<2&1020)>>2]^k[(e|m|4)>>2],y=k[(n|a>>22&1020)>>2]<<24^k[(n|u>>14&1020)>>2]<<16^k[(n|i>>6&1020)>>2]<<8^k[(n|o<<2&1020)>>2]^k[(e|m|8)>>2],b=k[(n|u>>22&1020)>>2]<<24^k[(n|i>>14&1020)>>2]<<16^k[(n|o>>6&1020)>>2]<<8^k[(n|a<<2&1020)>>2]^k[(e|m|12)>>2]}function A(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;x(0x0000,0x0800,0x1000,d,e,n,t,r)}function M(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;var i=0;x(0x0400,0x0c00,0x2000,d,e,r,t,n);i=p,p=b,b=i}function R(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;x(0x0000,0x0800,0x1000,d,v^e,m^n,w^t,E^r);v=g,m=p,w=y,E=b}function N(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;var i=0;x(0x0400,0x0c00,0x2000,d,e,r,t,n);i=p,p=b,b=i;g=g^v,p=p^m,y=y^w,b=b^E;v=e,m=n,w=t,E=r}function D(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;x(0x0000,0x0800,0x1000,d,v,m,w,E);v=g=g^e,m=p=p^n,w=y=y^t,E=b=b^r}function O(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;x(0x0000,0x0800,0x1000,d,v,m,w,E);g=g^e,p=p^n,y=y^t,b=b^r;v=e,m=n,w=t,E=r}function L(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;x(0x0000,0x0800,0x1000,d,v,m,w,E);v=g,m=p,w=y,E=b;g=g^e,p=p^n,y=y^t,b=b^r}function F(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;x(0x0000,0x0800,0x1000,d,i,o,a,u);u=~l&u|l&u+1;a=~f&a|f&a+((u|0)==0);o=~s&o|s&o+((a|0)==0);i=~c&i|c&i+((o|0)==0);g=g^e;p=p^n;y=y^t;b=b^r}function _(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;var i=0,o=0,a=0,u=0,c=0,s=0,f=0,l=0,d=0,h=0;e=e^v,n=n^m,t=t^w,r=r^E;i=C|0,o=S|0,a=T|0,u=I|0;for(;(d|0)<128;d=d+1|0){if(i>>>31)c=c^e,s=s^n,f=f^t,l=l^r;i=i<<1|o>>>31,o=o<<1|a>>>31,a=a<<1|u>>>31,u=u<<1;h=r&1;r=r>>>1|t<<31,t=t>>>1|n<<31,n=n>>>1|e<<31,e=e>>>1;if(h)e=e^0xe1000000}v=c,m=s,w=f,E=l}function t(e){e=e|0;d=e}function P(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;g=e,p=n,y=t,b=r}function B(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;v=e,m=n,w=t,E=r}function j(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;i=e,o=n,a=t,u=r}function U(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;c=e,s=n,f=t,l=r}function V(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;u=~l&u|l&r,a=~f&a|f&t,o=~s&o|s&n,i=~c&i|c&e}function r(e){e=e|0;if(e&15)return-1;h[e|0]=g>>>24,h[e|1]=g>>>16&255,h[e|2]=g>>>8&255,h[e|3]=g&255,h[e|4]=p>>>24,h[e|5]=p>>>16&255,h[e|6]=p>>>8&255,h[e|7]=p&255,h[e|8]=y>>>24,h[e|9]=y>>>16&255,h[e|10]=y>>>8&255,h[e|11]=y&255,h[e|12]=b>>>24,h[e|13]=b>>>16&255,h[e|14]=b>>>8&255,h[e|15]=b&255;return 16}function H(e){e=e|0;if(e&15)return-1;h[e|0]=v>>>24,h[e|1]=v>>>16&255,h[e|2]=v>>>8&255,h[e|3]=v&255,h[e|4]=m>>>24,h[e|5]=m>>>16&255,h[e|6]=m>>>8&255,h[e|7]=m&255,h[e|8]=w>>>24,h[e|9]=w>>>16&255,h[e|10]=w>>>8&255,h[e|11]=w&255,h[e|12]=E>>>24,h[e|13]=E>>>16&255,h[e|14]=E>>>8&255,h[e|15]=E&255;return 16}function W(){A(0,0,0,0);C=g,S=p,T=y,I=b}function q(e,n,t){e=e|0;n=n|0;t=t|0;var r=0;if(n&15)return-1;while((t|0)>=16){G[e&7](h[n|0]<<24|h[n|1]<<16|h[n|2]<<8|h[n|3],h[n|4]<<24|h[n|5]<<16|h[n|6]<<8|h[n|7],h[n|8]<<24|h[n|9]<<16|h[n|10]<<8|h[n|11],h[n|12]<<24|h[n|13]<<16|h[n|14]<<8|h[n|15]);h[n|0]=g>>>24,h[n|1]=g>>>16&255,h[n|2]=g>>>8&255,h[n|3]=g&255,h[n|4]=p>>>24,h[n|5]=p>>>16&255,h[n|6]=p>>>8&255,h[n|7]=p&255,h[n|8]=y>>>24,h[n|9]=y>>>16&255,h[n|10]=y>>>8&255,h[n|11]=y&255,h[n|12]=b>>>24,h[n|13]=b>>>16&255,h[n|14]=b>>>8&255,h[n|15]=b&255;r=r+16|0,n=n+16|0,t=t-16|0}return r|0}function z(e,n,t){e=e|0;n=n|0;t=t|0;var r=0;if(n&15)return-1;while((t|0)>=16){J[e&1](h[n|0]<<24|h[n|1]<<16|h[n|2]<<8|h[n|3],h[n|4]<<24|h[n|5]<<16|h[n|6]<<8|h[n|7],h[n|8]<<24|h[n|9]<<16|h[n|10]<<8|h[n|11],h[n|12]<<24|h[n|13]<<16|h[n|14]<<8|h[n|15]);r=r+16|0,n=n+16|0,t=t-16|0}return r|0}var G=[A,M,R,N,D,O,L,F];var J=[R,_];return{set_rounds:t,set_state:P,set_iv:B,set_nonce:j,set_mask:U,set_counter:V,get_state:r,get_iv:H,gcm_init:W,cipher:q,mac:z}}({Uint8Array:Uint8Array,Uint32Array:Uint32Array},n);return v.set_key=function(e,n,t,r,i,o,a,u,c){var s=h.subarray(0,60);h.subarray(256,316),s.set([n,t,r,i,o,a,u,c]);for(var f=e,l=1;f<4*e+28;f++){var d=s[f-1];(f%e==0||8===e&&f%e==4)&&(d=m[d>>>24]<<24^m[d>>>16&255]<<16^m[d>>>8&255]<<8^m[255&d]),f%e==0&&(d=d<<8^d>>>24^l<<24,l=l<<1^(128&l?27:0)),s[f]=s[f-e]^d}v.set_rounds(e+5)},v}return e.ENC={ECB:0,CBC:2,CFB:4,OFB:6,CTR:7},e.MAC={CBC:0,GCM:1},e.HEAP_DATA=16384,e}(),o=(a.prototype.AES_Encrypt_process=function(e){if(!(e instanceof Uint8Array))throw new TypeError("data isn't of expected type");for(var n,t,r,i,o,a=this.asm,u=this.heap,c=g.ENC[this.mode],s=g.HEAP_DATA,f=this.pos,l=this.len,d=0,h=e.length||0,v=0,m=new Uint8Array(l+h&-16);0<h;)t=f+l,r=d,i=h,o=void 0,o=u.length-t,i=o<i?o:i,u.set(e.subarray(r,r+i),t),l+=i,d+=i,h-=i,(n=a.cipher(c,s+f,l))&&m.set(u.subarray(f,f+n),v),v+=n,n<l?(f+=n,l-=n):l=f=0;return this.pos=f,this.len=l,m},a.prototype.AES_Encrypt_finish=function(){var e=this.asm,n=this.heap,t=g.ENC[this.mode],r=g.HEAP_DATA,i=this.pos,o=this.len,a=16-o%16,u=o;if(this.hasOwnProperty("padding")){if(this.padding){for(var c=0;c<a;++c)n[i+o+c]=a;u=o+=a}else if(o%16)throw new f("data length must be a multiple of the block size")}else o+=a;var s=new Uint8Array(u);return o&&e.cipher(t,r+i,o),u&&s.set(n.subarray(i,i+u)),this.pos=0,this.len=0,s},a);function a(e,n,t,r,i,o){void 0===t&&(t=!0),this.pos=0,this.len=0,this.mode=r,this.heap=i||function(e,n){if(4095&(n=e?e.byteLength:n||65536)||n<=0)throw new Error("heap size must be a positive integer and a multiple of 4096");return e=e||new Uint8Array(new ArrayBuffer(n))}().subarray(g.HEAP_DATA),this.asm=o||new g(null,this.heap.buffer),this.pos=0,this.len=0;o=e.length;if(16!==o&&24!==o&&32!==o)throw new f("illegal key size");e=new DataView(e.buffer,e.byteOffset,e.byteLength);if(this.asm.set_key(o>>2,e.getUint32(0),e.getUint32(4),e.getUint32(8),e.getUint32(12),16<o?e.getUint32(16):0,16<o?e.getUint32(20):0,24<o?e.getUint32(24):0,24<o?e.getUint32(28):0),n!==Q){if(16!==n.length)throw new f("illegal iv size");n=new DataView(n.buffer,n.byteOffset,n.byteLength);this.asm.set_iv(n.getUint32(0),n.getUint32(4),n.getUint32(8),n.getUint32(12))}else this.asm.set_iv(0,0,0,0);this.padding=t}function u(e,n,t,r){void 0===t&&(t=!0),this.aes=r||new o(e,n,t,"CBC")}e.AES_CBC=(u.encrypt=function(e,n,t,r){return new u(n,r,t=void 0===t?!0:t).encrypt(e)},u.prototype.encrypt=function(e){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var t=e.reduce(function(e,n){return e+n.length},0),r=new Uint8Array(t),i=0,o=0;o<e.length;o++)r.set(e[o],i),i+=e[o].length;return r}(this.aes.AES_Encrypt_process(e),this.aes.AES_Encrypt_finish())},u)}(_),Gn.prototype.put=function(e,n){n={key:e,value:n};if(this._keymap[e]=n,this.tail?(this.tail.newer=n).older=this.tail:this.head=n,this.tail=n,this.size===this.limit)return this.shift();this.size++},Gn.prototype.shift=function(){var e=this.head;return e&&(this.head.newer?(this.head=this.head.newer,this.head.older=Q):this.head=Q,e.newer=e.older=Q,delete this._keymap[e.key]),e},Gn.prototype.get=function(e,n){e=this._keymap[e];if(e!==Q)return e===this.tail||(e.newer&&(e===this.head&&(this.head=e.newer),e.newer.older=e.older),e.older&&(e.older.newer=e.newer),e.newer=Q,e.older=this.tail,this.tail&&(this.tail.newer=e),this.tail=e),n?e:e.value},Gn.prototype.find=function(e){return this._keymap[e]},Gn.prototype.set=function(e,n){var t,r=this.get(e,!0);return r?(t=r.value,r.value=n):t=(t=this.put(e,n))&&t.value,t},Gn.prototype.toString=function(){for(var e="",n=this.head;n;)e+=String(n.key)+":"+n.value,(n=n.newer)&&(e+=" < ");return e},Jn.MAX_ENTRIES=150,Jn.DirectionType={BACK:1,FORWARD:2},Jn.UrlType={FUlL_URL:1,HASH_ONLY:2},Xn.EVENTS={BlackoutEnter:"BlackoutEnter",BlackoutLeave:"BlackoutLeave"},Oe={severity:{ERROR:0,WARN:1,INFO:2,DEBUG:3},types:{GENERAL_ERR:{code:100,count:0},INVALID_TIMING_ERR:{code:101,count:0},TOP_WINDOW_SIZE_ERR:{code:102,count:0},WINDOW_SIZE_NOT_VALID_ERR:{code:103,count:0},KEREN_ERR:{code:104,count:0}},currentDebugInfo:null,registerError:function(e,n){Oe.registerDebugInfo(Oe.severity.ERROR,e,n)},registerErrorAndLog:function(e,n){Oe.registerDebugInfoAndLog(Oe.severity.ERROR,e,n)},registerDebugInfoAndLog:function(e,n,t){Oe.registerDebugInfo(e,n,t)},registerDebugInfo:function(e,n,t){n.count++,null===Oe.currentDebugInfo&&(Oe.currentDebugInfo=new Kn(e,n.code,n.count,t))},getRegisteredDebugInfo:function(e){var n=Oe.currentDebugInfo;return null===n||E.isUndefined(n)?null:(e&&Oe.clearDebugInfo(),n)},clearDebugInfo:function(){Oe.currentDebugInfo=null},setRegisteredDebugInfoOnEvent:function(e){var n;null!==e.getDebugInfo()&&!E.isUndefined(e.getDebugInfo())||null!=(n=Oe.getRegisteredDebugInfo(!0))&&e.setDebugInfo(n)},setErrorOnEvent:function(e,n,t){Oe.setDebugInfoOnEvent(e,Oe.severity.ERROR,n,t)},setErrorOnEventAndLog:function(e,n,t,r){Oe.setDebugInfoOnEvent(e,Oe.severity.ERROR,n,t)},setWarnOnEvent:function(e,n,t){Oe.setDebugInfoOnEvent(e,Oe.severity.WARN,n,t)},setDebugInfoOnEvent:function(e,n,t,r){null===e||E.isUndefined(e)?logger.error("Failed setting debug on non-existing event"):(r=new Kn(n,t.code,t.count,r),e.setDebugInfo(r))}},Le={env:L,config:Y,utils:Z,_:E,sessionId:Q,visitorId:Q,isSessionIdExist:Q,externalIdResolver:(Pe=(Pe={byAttribute:Y.externalIdAttr,byClassPrefix:Y.externalIdByClassesOnPrefix})||{},{resolve:function(e){if(e.getAttribute){if(Pe.byClassPrefix){var n=tt(e);if(n)return function(e,n){for(var t=e.parentElement,r=[n];t;)(n=tt(t))&&r.unshift(n),t=t.parentElement;return r.join(" ")}(e,n)}if(Pe.byAttribute){e=e.getAttribute(Pe.byAttribute);if(e)return e}}return null}}),uaUtils:{captureWindowSize:function(){return E.isNumber(window.innerWidth)&&E.isNumber(window.innerHeight)?nt(window.innerWidth,window.innerHeight,"[inner]"):!E.isUndefined(K.body)&&E.isNumber(K.body.offsetWidth)&&E.isNumber(K.body.offsetHeight)?nt(K.body.offsetWidth,K.body.offsetHeight,"[offset]"):null},captureScreenSize:function(){return nt(window.screen.width,window.screen.height,"[screen]")}},debugHelper:(Fe=Y,{visitLoadEvent:function(e){var n;Fe.sendStateInfo&&(cn(n={}),sn(n),n={ver:_e,config:function(e){var n,t,r={};for(n in Fe)Fe.hasOwnProperty(n)&&("object"==typeof Fe[n]?0<(Fe[n].length||0)&&(r[n]=Fe[n]):(t=""+Fe[n],""+e[n]!==t&&(100<t.length&&(t="[trimmed] "+t.substring(0,100)),r[n]=t)));return r}(n)},e.setExtraInfo(vn.prototype.DETECTOR_CONFIG_ID,JSON.stringify(n)))},visitUnloadEvent:function(e){}}),page:{snapshotEmitted:!(_e=n),snapshotFuseData:Q,timing:{}},encryptionPendingEvents:[],bindings:{registered:[],unsupportedEventTypes:[]},plugins:{},reports:{events:[],resources:[]},state:{loaded:!(Xn.ALWAYS_FALSE=function(){return!1}),handshakeDone:!1,encryptionReady:!1,stopped:!1,clickStart:Q,clickStartType:Q,scrolling:{},unloading:!1,maxScrollReach:0,typableElementsLRUMap:new Gn(20),lastFocusData:{},mouseEnterReported:!1,hover:{hoverStartTimestamp:0,hoverElementList:[]},clsDebugCounter:0,dpr:window.devicePixelRatio},scrollReach:{top:0,height:null,isInfinite:!1},snapshotType:"regular",touchDetected:!1,firstClickFired:!1,ajaxUrls:new Gn(20),historyManager:new Jn(window,$,window.history),blackoutManager:new Xn(window,$,Y.blackoutWhenLocationContains),debugInfoHandler:Oe,zoomType:{IN:1,OUT:2},version:L.detectorVersion,aBTestingEvents:[],logicalSegmentTracker:new function(o,a,n,u){var t,e,c,i,s,f=!1;function r(e){e=e.join(",");return n.validateSelector(e)?e:null}function l(e,n,t){var r;if(e){if((r=e.getAttribute(u.labelByAttribute))&&r!==i)return i=r,u.parallelMechanism&&(s=!1===t?0:t++),n&&(f=!1,o.emit("logicalSegmentEntered",u.segmentationPrefix+r),(e=e.getAttribute(u.titleByAttribute))&&o.emit("titleChanged",e),v()),1;n&&(f=!0)}else n&&(f=!0)}function d(e,n,t){try{if(t&&u.initialLabelSelector)return void l(a.querySelector(u.initialLabelSelector),e,n);var r=a.querySelectorAll(c);if(t||r.length||!u.forceTryEnterSegment||(f=!0),!1!==n)l(r[n],e,n);else for(var i=0;i<r.length&&!l(r[i],e);i++);}catch(e){logger.error("Exception while trying to enter a new logical segment. Error: "+e.message,e),f=!1,o.emit("clsDebug","error trying to enter a new logical segment. Exception message: "+e.message)}}function h(e){setTimeout(Z.gbBind(d,null,!0,e),0)}function v(){for(var e,n=0;n<u.triggerBySimpleSelector.length;n++)for(t=a.querySelectorAll(u.triggerBySimpleSelector[n]),e=0;e<t.length;e++)t[e]._gb_logical_listener||(Z.addEventHandler(t[e],"click",Z.gbBind(h,null,!!u.parallelMechanism&&n),!0),t[e]._gb_logical_listener=!0)}function m(){if(u.parallelMechanism&&!u.initialLabelSelector)return Z.isIE()?console.log('Must define "initialLabelSelector" in parallel mode! disabling Logical Segmentation.'):console.log('%c Must define "initialLabelSelector" in parallel mode! disabling Logical Segmentation.',"color: white; background: red"),void o.emit("clsDebug",'Missing "initialLabelSelector". Disabling Logical Segmentation.');e=r(u.triggerBySimpleSelector),c=r(u.labelBySimpleSelector),e&&c&&(v(),d(!1,!1,!0))}this.init=function(){m()},this.onBeforeEmittingPageEvent=function(){f&&d(!(f=!1),!!u.parallelMechanism&&s)}}($,K,An(),{triggerBySimpleSelector:Y.segmentationTriggerBySimpleSelector,labelBySimpleSelector:Y.segmentationLabelBySimpleSelector,labelByAttribute:Y.segmentationLabelByAttribute,titleByAttribute:Y.segmentationTitleByAttribute,segmentationPrefix:Y.segmentationPrefix,parallelMechanism:Y.segmentationParallelMechanism,initialLabelSelector:Y.segmentationInitialLabelSelector,forceTryEnterSegment:Y.segmentationForceTryEnterSegment}),segmentManager:new function(t,a,u,r,c){c=c||{ignoreWhenLocationContains:Q};var s,f={},l=!1,n="",i=r.mask(Z.stripHash(Z.decodeUri(c.decodeUri,t.location.href))),d={startedAt:Z.currentTimestamp(),value:Z.decodeUri(c.decodeUri,t.location.pathname),type:"path"};function o(e){n=r.mask(Z.decodeUri(c.decodeUri,t.location.hash)),h()||v("hash",e,n)}function h(){return c.ignoreWhenLocationContains&&0<=Z.decodeUri(c.decodeUri,t.location.href).indexOf(c.ignoreWhenLocationContains)}function v(e,n,t){Z.currentTimestamp(),f.isPending&&(s&&clearTimeout(s),a.emit("segmentChanged",f));var r=Z.currentTimestamp(),i=d.value,o=u.segmentChange(r);f={type:e,hint:n,current:Z.decodeUri(c.decodeUri,t),last:i,lastDwell:r-d.startedAt,isPending:!0},-1!==o&&(f.lastLoadTime=o),d.startedAt=r,d.type=e,d.value=t,l=!0,c.waitForSegmentRender&&-1<c.waitForSegmentRender?(a.on("segmentLoadEnd",m),a.on("userInteraction",m),s=setTimeout(Z.gbBind(m,null,{type:"timeout end"}),c.waitForSegmentRender)):(a.emit("segmentChanged",f),f.isPending=!1)}function m(e){Z.currentTimestamp(),e.type,s&&clearTimeout(s),f.isPending&&(a.emit("segmentChanged",f),f.isPending=!1,a.off("segmentLoadEnd",m),a.off("userInteraction",m))}a.once("init:loaded",function(){i=r.mask(Z.stripHash(Z.decodeUri(c.decodeUri,t.location.href))),t.location.hash&&o("load")}),a.on("navigation",function(e){var n;e.direction===Jn.DirectionType.BACK?n="back":e.direction===Jn.DirectionType.FORWARD&&(n="forward"),e.urlType===Jn.UrlType.HASH_ONLY?o(n):(n=n,i=r.mask(Z.stripHash(Z.decodeUri(c.decodeUri,t.location.href))),h()||v("path",n,r.mask(Z.decodeUri(c.decodeUri,t.location.pathname))))}),a.on("logicalSegmentEntered",function(e){var n=r.mask(Z.joinPath(Z.decodeUri(c.decodeUri,t.location.pathname),e));i=r.mask(Z.joinPath(Z.decodeUri(c.decodeUri,t.location.pathname),e)),v("path","logical",n)}),this.onUnload=function(){l&&a.emit("lastSegment",{last:d.value,lastDwell:Z.currentTimestamp()-d.startedAt,lastLoadTime:d.lastLoadTime})},this.visitEvent=function(e){e.referrer=i,e.segment=d.value,e.subPage=n}}(K,$,new function(n,t,r){var i=50,o={pendingEvents:{},totalLoadTime:0,startTime:0,keepListen:!1},a=null,u=null,c=function(l,d,h,v,m){var t={IFRAME:!0,FRAME:!!v,OBJECT:!!m};function g(e){if(e.getAttribute){var n=(e.getAttribute("data")||"").toLowerCase();return t[e.tagName]&&("OBJECT"!==e.tagName||"text/html"===(e.getAttribute("type")||"").toLowerCase()||n.indexOf(".html")===n.length-5||n.indexOf(".htm")===n.length-4)}}function p(n){var e,t,r,i,o,a,u=!1,c=n.nodeName.toUpperCase(),s=((n.getAttribute?n.getAttribute("data"):"")||"").toLowerCase(),f=((n.getAttribute?n.getAttribute("type"):"")||"").toLowerCase();if(c.match(/^(IMG|IFRAME|IMAGE)$/)||v&&c.match(/^(FRAME)$/)||m&&c.match(/^(OBJECT)$/)&&("text/html"===f||s.indexOf(".html")===s.length-5||s.indexOf(".htm")===s.length-4)||"LINK"===c&&n.rel&&n.rel.match(/\bstylesheet\b/i)){if(("LINK"!==c||!n.rel||!n.sheet)&&((e=h(n))&&("OBJECT"===n.tagName&&s!==e.url||"OBJECT"!==n.tagName&&n.src!==e.url)&&(u=!0),(o=n.src||"function"==typeof n.getAttribute&&n.getAttribute("xlink:href")||n.href||"OBJECT"===n.tagName&&s)&&!o.match(/^(about:|javascript:|data:)/i))){if(e&&e.url!==o&&(u=!0),"IMG"===c){if(n.naturalWidth&&!u||""!==n.getAttribute("src")&&n.complete)return;if("function"==typeof n.getAttribute&&""===n.getAttribute("src"))return}g(n)&&u||(e||l(n,o),a=function(e){d(e.target),Z.removeEventHandler(n,"load",a),Z.removeEventHandler(n,"error",a)},Z.addEventHandler(n,"load",a),Z.addEventHandler(n,"error",a))}}else n&&n.nodeType===Node.ELEMENT_NODE&&["IMAGE","IMG"].forEach(function(e){if((t=n.getElementsByTagName(e)).length)for(r=0,i=t.length;r<i;r++)p(t[r])},this)}return{checkMutation:function(e){var n,t,r;if("attributes"===e.type)p(e.target);else if("childList"===e.type){for(t=e.addedNodes.length,n=0;n<t;n++)p(e.addedNodes[n]);for(t=e.removedNodes.length,n=0;n<t;n++)g(r=e.removedNodes[n])&&h(r)&&d(r)}}}}(function(e,n){o.pendingEvents[t.idOf(e)]={url:n}},function(e){h(t.idOf(e))},function(e){return o.pendingEvents[t.idOf(e)]},r.framesetRecordEnabled,r.htmlObjectRecordEnabled);function s(e){o.isRoutingStart&&(u=o.totalLoadTime),o.keepListen=!0,o.pendingEvents={},o.totalLoadTime=0,o.startTime=e,o.isRoutingStart||(n.on("ajax:send",l),n.on("ajax:end",d),n.on("ajax:loadError",d),n.on("domMutation",v),o.isRoutingStart=!0)}function f(){Z.isEmpty(o.pendingEvents)&&(u=o.totalLoadTime,o.keepListen=!1,n.emit("segmentLoadEnd",{type:"loadTimeEnd"}))}function l(e){o.keepListen&&(o.pendingEvents[e.uuid]={url:e.url})}function d(e){o.keepListen&&h(e.uuid)}function h(e){o.pendingEvents[e]&&(o.totalLoadTime=Z.currentTimestamp()-o.startTime,delete o.pendingEvents[e],Z.isEmpty(o.pendingEvents)&&(e=i,a&&clearTimeout(a),a=setTimeout(f,e)))}function v(e){o.keepListen&&c.checkMutation(e)}this.segmentChange=function(e){return r.recordSpaLoadTime&&r.interceptAjax?(s(e),18e4<(u=null===u?window.performance.timing.domContentLoadedEventEnd-window.performance.timing.navigationStart:u)&&n.emit("clsDebug","Error: SPA load time exceed 180000 milliseconds, SPA load time:"+u),u):-1}}($,j,{recordSpaLoadTime:Y.recordSpaLoadTime,interceptAjax:Y.interceptAjax,framesetRecordEnabled:Y.framesetRecordEnabled,htmlObjectRecordEnabled:Y.htmlObjectRecordEnabled}),ne,{ignoreWhenLocationContains:Y.segmentationIgnoreWhenLocationContains,decodeUri:Y.decodeUri,waitForSegmentRender:Y.waitForSegmentRender}),botDetector:new function(t,n,r){var i="bot.nh",o="bot.d",a={CLICKS_WITH_NO_MOUSE_MOVES:{code:"1",active:!0},NOT_TRUSTED_MOUSEEVENT:{code:"3",active:!0},INVALID_NAVIGATION_API_VALUES:{code:"4",active:!0},MOVE_AND_CLICK_SAME_COORDINATES_AND_TIMES:{code:"5",active:!0}},u={MANY_MOUSE_MOVES_BETWEEN_CLICKS:{code:"-1",active:!0}},c=!1,s=!1,f=null,l=null,d=0,h=100,v=0,m={robot:!1,human:!1},g=!1;function p(){e("mousemove",y),e("click",b),g=!1}function y(e){return c||(l=Z.getCoordinate(e),d=Z.currentTimestamp()),s&&v++,c=!0}function b(e){var n,t;return e.type===L.mouseEvents.down&&(n=e).type===L.mouseEvents.down&&(s=!0,t=Z.getCoordinate(n),null!==f?u.MANY_MOUSE_MOVES_BETWEEN_CLICKS.active&&!Z.isSameCoordinates(t,f)?10<=v&&function(e){e.code,m.human=!0,r.set(o,e.code),p()}(u.MANY_MOUSE_MOVES_BETWEEN_CLICKS):a.CLICKS_WITH_NO_MOUSE_MOVES.active&&Z.isCoordinatesDistLargerThan(t,f,10)&&0===v&&w(a.CLICKS_WITH_NO_MOUSE_MOVES):c&&function(e){a.MOVE_AND_CLICK_SAME_COORDINATES_AND_TIMES.active&&(e=Z.getCoordinate(e),null!==l&&Z.isSameCoordinates(e,l)&&Z.currentTimestamp()-d<h&&(e=r.get(i),E.isUndefined(e)?r.set(i,1):(e=parseInt(e),isNaN(e)&&(e=1),e++,r.set(i,e),w(a.MOVE_AND_CLICK_SAME_COORDINATES_AND_TIMES),a.MOVE_AND_CLICK_SAME_COORDINATES_AND_TIMES.active=!1)))}(n),v=0,f=t),e=e,a.NOT_TRUSTED_MOUSEEVENT.active&&"isTrusted"in e&&!1===e.isTrusted&&w(a.NOT_TRUSTED_MOUSEEVENT),!0}function e(n,e){try{Z.removeEventHandler(t.body,n,e)}catch(e){logger.error("BotDetector failed to remove "+n+" listener. "+e.message(),e)}}function w(e){g&&(e.code,e.active=!1,r.set(o,e.code),m.robot=!0,p(),n.emit("botDetection",e.code))}this.init=function(){var e=r.get(o);e||(g=!0,Z.addEventHandler(t.body,"mousemove",y,!0),Z.addEventHandler(t.body,"click",b,!0))},this.isActive=function(){return g},this.notifyMouseAction=b}(K,$,D),pageInfo:function(e,t){var n;if(!t||e)return Q;try{n=function(){var n=t["gb.psn"]||"0";try{n=parseInt(n)+1}catch(e){n=1}return t["gb.psn"]=n}()}catch(e){}return{pageSn:n}}((window,window.top!==window),window.sessionStorage),ect:null,isUnloaded:!1,refireCoreEvents:Y.supportRemoteClientConfig,corePluginEvents:[],handledClientConfiguration:!1,addListenersForReEmission:function(){Le.refireCoreEvents&&!Le.handledClientConfiguration&&(Le.corePluginEvents.push({name:"init:preloaded",data:{sessionId:Le.sessionId,visitorId:Le.visitorId,pageId:Le.page.id}}),$.once("newSessionSet",function(){Le.corePluginEvents.push({name:"plugin:newSessionSet"})}),$.once("corsReset",function(){Le.corePluginEvents.push({name:"plugin:corsReset"})}),$.once("corsReady",function(){Le.corePluginEvents.push({name:"plugin:corsReady"})}),$.once("updateSafariQueryString",function(e){Le.corePluginEvents.push({name:"plugin:updateSafariQueryString",data:e})}),$.once("init:loaded",function(){Le.corePluginEvents.push({name:"init:loaded"})}),$.once("encryptionReady",function(){Le.corePluginEvents.push({name:"encryptionReady"})}),$.once("init:domready",function(){Le.corePluginEvents.push({name:"init:domready"})}))},userInterActionsEvents:Z.immutableSet("mousedown","touchstart","drag","keydown"),initialize:function(){var e,n;if(window.localStorage&&"true"===window.localStorage[L.Storage.UnboundKeyPrefix+"session_breach"]?(Le.asStoppable().stop(),$.emit("quotaBreach"),$.emit("clsDebug","quotaBreach activate from local storage")):$.emit("clsDebug","Error: localStorage is not defined"),L.setup,Le.version,$.on("clsDebug",Le.saveClsDebugErrorEvent),Le.setClientCookies(((Y.visitorIdByQueryParam||Y.sessionIdByQueryParam)&&(e=(n=Z.parseQuery(K.location.search.substring(1)))[Y.sessionIdByQueryParam],n=n[Y.visitorIdByQueryParam]),l.sessionId&&(l.sessionId,e=l.sessionId),{sessionId:e=Y.clsByNativeCookie?N.get(Y.clsByNativeCookie):e,visitorId:n})),void 0!==Y.enabledByChance&&!In(Y.enabledByChance,D,N,"recording",Y.saveChancesByCookie))return L.disabled=!0,void Y.enabledByChance;window.navigator.connection&&(Le.ect=window.navigator.connection.effectiveType);try{if(void 0!==x){var t=I.validate(x,Y);if(0<t.errors.length)return void console.error("[EyeView-1401]: Detector configuration validation failure. validation report:"+t)}}catch(e){return void console.error("[EyeView-1402]: Error while validating Detector configuration:"+e+". Detector is DISABLED.")}try{Le.checkSupportModeSession(),Le.initializePageDetails();var r=Le.plugins.cors;if(r&&!r.isInit&&(r.isInit=!0,r.initialize()),Y.supportRemoteClientConfig){var i,o=D.get("client_conf");if(o){try{i=JSON.parse(Z.Base64.decode(o))}catch(e){return void Le.consoleWarning("Error parsing remote client configuration from storage. Plugins will not be initialized.")}Le.refireCoreEvents=!1,Le.handleClientConfiguration(i,!1)}else Le.isSessionCookieExist()?Le.consoleWarning("supportRemoteClientConfig is enabled but no config received. Plugins will not be initialized."):$.on("clientRemoteConfiguration",function(e){e?Le.handleClientConfiguration(e,!0):Le.consoleWarning("supportRemoteClientConfig is enabled but no config received. Plugins will not be initialized.")})}else Le.handleClientConfiguration(Q,!1);$.on(Xn.EVENTS.BlackoutEnter,Le.onBlackoutEnter),$.on(Xn.EVENTS.BlackoutLeave,Le.onBlackoutLeave),this.asStoppable().isStopped(!0),Le.updateScrollReach(),Le.registerPreLoadEvents(),Le.addDomReadyEventHandler(),$.on("3rdpartymap:scReport",Le.saveThirdPartyMapEvent),$.on("3rdPartyAttribute",Le.saveThirdPartyAttributeEvent),$.on("abTesting",Le.saveABTesting),$.on("pageNameResolved",Le.onPageNameResolved),$.once("encryptionReady",Le.onEncryptionReady),$.on("dom:fuseBlown",Le.onDomFuseBlown),$.emit("init:preloaded",{sessionId:Le.sessionId,visitorId:Le.visitorId,pageId:Le.page.id}),Le.addListenersForReEmission(),Le.saveDocumentLoadEvent(Le.page.initializationTimestamp),Le.page.id,Le.page.urlWithoutHash;var a=window.document.readyState;K.body&&("complete"===a||"interactive"===a&&Y.initDetectorOnInteractive)?Le.onLoad():Z.addEventHandler(window,"load",Le.onLoad,!1)}catch(e){logger.error("ERROR: while initializing detector. Exception: ",e.stack||e.message),console.log("WARNING[EyeView-1302]: Failed initializing detector script - "+e.message),Le.saveClsDebugErrorEvent("initialize",e)}Y.reportValidationErrors&&$.on("formValidationError",Le.saveValidationError),Y.isMixMasking&&Le.saveClsDebugErrorEvent("maskingConfiguration",{name:"masking configuration error",message:"mixed masking configuration"})},handleClientConfiguration:function(e,n){if(!Le.handledClientConfiguration){if(Le.handledClientConfiguration=!0,e)for(var t in e)e.hasOwnProperty(t)&&(Le.config[t]=e[t]);if((new or).init(),Le.registerPlugins(),n)for(var r=Le.corePluginEvents,i=0;i<r.length;i++)r[i].data?$.emit(r[i].name,r[i].data):$.emit(r[i].name)}},onEncryptionReady:function(){var e;for(Le.state.encryptionReady=!0,e=0;e<Le.encryptionPendingEvents.length;e++)$.emit("saveEvent",Le.encryptionPendingEvents[e]);Le.encryptionPendingEvents=[]},onBlackoutEnter:function(e){var n;window===window.top&&((n=Le.createEventObject("blackout",Z.currentTimestamp(),null)).value=e,Le.saveEvent(n))},onBlackoutLeave:function(){Le.savePageUpdate()},onLoad:function(){window.location.href;var e=Z.currentTimestamp();Le.state.loaded||(Z.time("onLoadInitialization"),Le.documentEvent&&0<K.title.length&&(void 0===Le.page.title||0===Le.page.title.length)&&(Le.page.title=Le.getPageTitle(),Le.documentEvent.setExtraInfo(vn.prototype.VISUAL_NAME,Le.page.title)),(Y.forceLogicalSegmentationOnHash||!Z.getLocationUrlSplitByHash(window.location.href).hash)&&0<Y.segmentationTriggerBySimpleSelector.length&&0<Y.segmentationLabelBySimpleSelector.length&&""!==Y.segmentationLabelByAttribute&&""!==Y.segmentationTitleByAttribute&&Le.logicalSegmentTracker.init(),Y.botDetection&&!Z.hasTouch()&&Le.botDetector.init(),Le.state.loaded=!0,Le.page.loadTimestamp=e,Le.trySendPerformanceEvent(),$.emit("init:loaded"),Le.registerPostLoadEvents(),Le.plugins.domRecordingPlugin&&Nr(K,$,Y),Z.timeEnd("onLoadInitialization"),window.location.href)},registerPlugins:function(){var t=this;E.forOwn(Le.plugins,function(e,n){e.isInit||(e.initialize($,t),e.isInit=!0)})},registerPreLoadEvents:function(){var e=function(){return Le.state.unloading},n=[{type:"beforeunload",interception:Le.interceptUnload,target:window,logicalName:"unload",filter:e},{type:"visibilitychange",interception:Le.interceptVisibilityChange,target:K},Z.isSafariOnIos()&&{type:"pagehide",interception:Le.interceptPagehide,target:window,logicalName:"unload",filter:e},{type:"resize",internallyDispatchAs:"window",filter:Le.filterResize,interception:Le.interceptResize,target:window},{type:Le.getChangeEventType(),valueExtraction:Le.extractElementValue,interception:Le.interceptFocusLost,filter:Le.filterNonChangableEventsElements,logicalName:"change",target:K},{type:"reset",target:K},{type:"submit",valueExtraction:Le.extractElementSource,target:K},{type:"keyup",target:K,internalOnly:!0},{type:Le.getFocusInEventType(),internallyDispatchAs:"element",valueExtraction:Le.extractElementValue,interception:Le.interceptFocusIn,filter:Le.filterNonTypableElements,target:K}];$.on("shadow:rootDetected",function(e){e={type:Le.getChangeEventType(),target:e,valueExtraction:Le.extractElementValue,interception:Le.interceptFocusLost,filter:Le.filterNonChangableEventsElements,logicalName:"change"};Le.registerEventBinding(e)}),Le.page.hasTouch?(n.push({type:"touchstart",interception:Le.interceptTouchStart,target:K}),n.push({type:Z.isHybridAndroid()?"touchmove":"touchend",interception:Le.interceptClickEnd,target:K})):(n.push({type:L.mouseEvents.down,interception:Le.interceptClickStart,target:K,logicalName:"mousedown"}),n.push({type:L.mouseEvents.up,interception:Le.interceptClickEnd,target:K})),Z.isMobile()||(n.push({type:"dragstart",interception:Le.interceptDragStart,target:K}),n.push({type:"dragend",interception:Le.interceptDragEnd,target:K})),"blur"!==Le.getChangeEventType()&&n.push({preload:!0,type:"blur",valueExtraction:Le.extractElementValue,interception:Le.interceptBlur,filter:Le.filterNonTypableElements,logicalName:"change",target:K}),Y.recordMouseMoves&&n.push({type:"mousemove",valueExtraction:Le.extractMouseMoveValue,encodeValue:!1,interception:Le.interceptMouseMove,dontSendElement:!0,target:K}),Y.recordHovers&&n.push({type:"mouseover",encodeValue:!1,filter:Le.filterHovers,interception:Le.interceptMouseOver,target:K}),Y.recordScrolls&&n.push({type:"scroll",debounceBy:Y.debounceScrolls,valueExtraction:Le.extractScrollValue,filter:Le.filterScrollElements,interception:Le.interceptScroll,target:K}),Y.recordScrollReach&&n.push({type:"scroll",logicalName:"scrollReach",debounceBy:Y.debounceScrollReach,valueExtraction:Le.extractScrollReach,filter:Le.filterScrollElements,interception:Le.interceptScrollReach,target:K});e=Z.getMouseEnterTarget();e!==K&&e!==window||n.push({type:"mouseenter",interception:Le.interceptMouseEnter,target:e}),Le.shouldListenToKeyEvents()&&(n.push({type:"keydown",interception:Le.interceptKeyboard,target:K}),n.push({type:"keypress",interception:Le.interceptKeyboard,target:K})),Y.domRecordEnabled&&($.on("pageSnapshot:save",Le.savePageSnapshotEvent),$.on("pageUpdate",Le.savePageUpdate)),Y.resourcesRecordEnabled&&$.on("saveResourceEvent",Le.saveResourceDataEvent),Y.versionResources&&!Y.resourceTimingRecordEnabled&&$.on("saveResourceUrls",Le.saveResourceUrlsEvent),Y.resourcesRecordAllowCors&&$.on("saveCorsDeniedEvent",Le.saveCorsDeniedDataEvent),Y.clientAttributesEnabled&&$.on("clientAttribute",Le.saveClientAttributeEvent),Y.resourceTimingRecordEnabled&&In(Y.resourceTimingRecordEnabledByChance,D,N,"performanceRecord",Y.saveChancesByCookie)&&$.on("resourcesWaterfall",Le.savePerformanceDataEvent),$.on("webVitals",Le.saveWebVitalsEvent),Y.domFormAnalysisReporting&&$.on("formAnalysis",Le.saveFormAnalysisEvent),Le.page.hasTimingAPI&&!Y.recordAjaxCallsAnyway||($.on("ajax:load",Le.recordAjaxResource),$.on("ajax:error",Le.recordAjaxResource)),-1!==Y.ajaxRecordSessionLimit&&$.on("ajax:limitReached",Le.ajaxLimitReached),$.on("devToolsVisibilityChanged",Le.saveDevToolsChangeEvent),$.on("domTampered",Le.saveDomTamperedEvent),$.on("ajax:loadend",Le.saveAjaxRequestEvent),$.on("clipboardEvent",Le.interceptClipboardEvent),$.on("ajax:reportStats",Le.saveAjaxStatsEvent),$.on("segmentChanged",function(e){Le.saveSegmentChangedEvent(e),Le.firstClickFired=!1}),$.on("lastSegment",Le.saveLastSegmentEvent),$.on("titleChanged",Le.saveTitleChanged),$.on("botDetection",Le.saveBotDetectionEvent),$.on("reporter:idle",Le.saveIdleEvent),$.on("customEvent",Le.saveCustomEvent),$.on("customMapEvent",Le.saveCustomMapEvent),$.on("pageError",Le.onPageError),$.on("consoleWarn",Le.onConsoleMessage),$.on("consoleInfo",Le.onConsoleMessage),$.on("parentWindowInfo",Le.setClientCookies),$.on("reportStruggle",Le.saveStruggle),$.on("reportVoC",Le.saveVoc),$.on("invalidateSession",Le.onInvalidateSession),Le.bindPageEvents(n)},saveIdleEvent:function(e){var n=Z.currentTimestamp(),t=Le.createEventObject("idle",n,null);t.value=n-e.idleBaseTime,t.setExtraInfo(vn.prototype.TIME_SINCE_LAST_EVENT,n-e.latestEventTime),Le.saveEvent(t)},saveBotDetectionEvent:function(e){var n=Le.createEventObject("botDetection",Z.currentTimestamp(),null);n.value=e,n.shouldEncodeValue=!1,Le.saveEvent(n)},registerPostLoadEvents:function(){var e=[];Le.state.mouseEnterReported||Z.getMouseEnterTarget()!==K.body||e.push({type:"mouseenter",interception:Le.interceptMouseEnter,target:K.body}),0<e.length&&Le.bindPageEvents(e)},bindPageEvents:function(e){Z.time("bindPageEvents"),E.forEach(e,function(e){Le.registerEventBinding(e)}),Le.bindings.registered.length,E.pluck(Le.bindings.registered,"type"),Le.bindings.unsupportedEventTypes.length&&Le.bindings.unsupportedEventTypes.join(", "),Z.timeEnd("bindPageEvents")},registerEventBinding:function(n){var e=n.target||window.document.body;if(E.isUndefined(e)||null==e)n.type;else try{Le.handleElementsEvents(e,n)}catch(e){logger.error("Failed binding '"+n.type+"'. Error: "+e.message,e),window.console&&console.error(e)}},handleElementsEvents:function(e,n){var t=n.type;E.contains(L.eventTypes,t)&&(Z.isEventSupported(t)?(n=Le.createHandler(n),Z.addEventHandler(e,t,n,!0),Le.bindings.registered.push({type:t,el:e,handler:n})):Le.bindings.unsupportedEventTypes.push(t))},createHandler:function(n){var e,t=function(e){if("mousemove"!==e.type&&xe.bounceAll(e.type),Le.handleDOMEvent(e,n),"beforeunload"!==e.type)return!0};return 0<(n.debounceBy||0)&&((e=xe[n.type])?t=e(t,$,n.debounceBy,n).debouncedHandler:n.type),t},handleDOMEvent:function(n,e){try{if(n=n||window.event,!(E.isUndefined(n._cls_handled)||!0!==n._cls_handled||e&&"scrollReach"===e.logicalName))return;Le.userInterActionsEvents[n.type]&&$.emit("userInteraction",{type:"userInteraction"}),n._cls_handled=!0,Z.time("handleDOMEvent_"+n.type);var t=Z.extractElementFromEvent(n),r=Z.getElementId(t);Y.ignorableElementIds&&E.contains(Y.ignorableElementIds,r)||Le.handleEvent(n,t,e),Z.timeEnd("handleDOMEvent_"+n.type)}catch(e){logger.error("ERROR: while handling "+n.type+" DOM event ",n," Exception: ",e.stack||e.message),Le.saveClsDebugErrorEvent("handleDOMEvent",e,"event type="+n.type)}},assignSelectorInfo:function(e,n){var t=O.getSelectorInfo(e);n.selectorExpression=t.selector||L.encoding.rootSelector,n.cssSelector=F.getSelectorInfo(e),t.hostSelectorPath&&n.setExtraInfo(vn.prototype.HOST_SELECTOR_PATH,t.hostSelectorPath),Y.domFormAnalysisReporting&&e&&("INPUT"===e.tagName||"SELECT"===e.tagName)&&n.setExtraInfo(vn.prototype.IS_INPUT_ELEMENT,!0)},handleEvent:function(e,n,t){var r,i,o;t.internallyDispatchAs&&$.emit(t.internallyDispatchAs+":"+t.type,n),E.isFunction(t.filter)&&t.filter(n,e)||(i=Z.currentTimestamp(),r=e.type,Z.time("handleEvent_"+r),(i=Le.createEventObject(r,i,n)).domEvent=e,e=!E.isUndefined(t.dontSendElement)&&!0===t.dontSendElement,"mousemove"===r&&Y.ignoreSelectorOnMouseMove||(Le.assignSelectorInfo(n,i),i.selectorExpression=e?L.encoding.rootSelector:i.selectorExpression),i.binding=t,E.isUndefined(t.encodeValue)||!1!==t.encodeValue||(i.shouldEncodeValue=!1),Le.extractValue(i,t),Le.extractExternalId(i,n),Le.interceptReport(i,t),Y.reportVisualNames&&i.report&&!e&&(o=Y.visualName&&Y.visualName.eventsToCalcDistance[i.type]?(o=i.getExtraInfo(vn.prototype.COORDINATE_ATTR),Le.extractVisualName(n,o.x,o.y)):Le.extractVisualName(n))&&i.setExtraInfo(vn.prototype.VISUAL_NAME,o),Le.autoMaskingSignaled&&(i.setExtraInfo(vn.prototype.AUTO_MASKING,Le.autoMaskingSignaled),Le.autoMaskingSignaled=null),t.internalOnly||Le.saveEvent(i),"unload"===i.type&&(sessionStorage["gb.unloaded"]=!0),$.emit("event:"+i.type,i),Z.timeEnd("handleEvent"+r))},createEventObject:function(e,n,t){t=new vn(e,n,t,Le.page.id);return Le.segmentManager.visitEvent(t),t},onDomReady:function(){Le.page.timing.contentInteractiveTime=performance.now(),$.emit("init:domready")},onAutoMaskingApplied:function(e,n){e.tagName,e.id,Le.autoMaskingSignaled=n},addDomReadyEventHandler:function(){"interactive"===K.readyState||"complete"===K.readyState?Le.onDomReady():Z.addEventHandler(window,"DOMContentLoaded",Le.onDomReady,!0)},extractValue:function(n,e){try{var t;E.isUndefined(e.valueExtraction)||(t=e.valueExtraction(n.domEvent,n.element),E.isUndefined(t)||null==t||(n.value=t))}catch(e){logger.error("Failed extracting value for event "+n.type+" - "+e.name+": "+e.message,e),"clsdebug"!==n.type&&Le.saveClsDebugErrorEvent("extractValue",e,"event type="+n.type)}},extractExternalId:function(e,n){n&&Z.isElement(n)&&((n=this.externalIdResolver.resolve(n))&&e.setExtraInfo(vn.prototype.EXTERNAL_ID,n))},interceptReport:function(n,e){if(!E.isUndefined(e.interception))try{n.report=e.interception(n)}catch(e){logger.error("Failed intercepting "+n.type+" event: "+e.message,e,n),"clsdebug"!==n.type&&Le.saveClsDebugErrorEvent("interceptReport",e,"event type="+n.type)}},addEvent:function(e){Le.config.debugMode&&Le.reports.events.push(e)},getFocusInEventType:function(){return Z.isOldIE()?"focusin":"focus"},getChangeEventType:function(){return Z.isOldIE()?"onfocusout"in K?"focusout":"blur":"change"},startFocusTiming:function(e){var n=Z.currentTimestamp(),t=Le.state.lastFocusData.startTime;Le.state.lastFocusData={element:e,startTime:n,prevFocusStartTime:t}},endFocusTiming:function(e){Le.state.lastFocusData.element===e&&(e=Z.currentTimestamp(),Le.state.lastFocusData.focusTime=e-Le.state.lastFocusData.startTime)},filterNonTypableElements:function(e,n){return null===e||(Le.isChangebleElement(e)&&("focus"===n.type||"focusin"===n.type?Le.startFocusTiming(e):"blur"===n.type&&Le.endFocusTiming(e)),!Le.isTypableElement(e))},filterNonChangableEventsElements:function(e,n){return null===e||null===n||(Le.isChangebleElement(e)&&Le.endFocusTiming(e),"change"!==n.type&&!Le.isChangebleElement(e))},interceptFocusIn:function(e){return Le.checkTypedContentHasChangedAndUpdate(e),!1},interceptFocusLost:function(e){return null!==e&&null!==e.element&&(Le.state.lastFocusData.focusTime&&e.setExtraInfo(e.FOCUS_TIME_ATTR,Le.state.lastFocusData.focusTime),$.emit("event:elementChange",e),!!Le.isSelectableElement(e.element)||Le.checkTypedContentHasChangedAndUpdate(e))},interceptBlur:function(e){return Le.state.lastFocusData.focusTime&&e.setExtraInfo(e.FOCUS_TIME_ATTR,Le.state.lastFocusData.focusTime),$.emit("event:elementChange",e),Le.checkTypedContentHasChangedAndUpdate(e)},checkTypedContentHasChangedAndUpdate:function(e){var n="focus"===e.type||"focusin"===e.type,t="blur"===e.type||"focusout"===e.type,r=e.selectorExpression,i=e.value;if(null===i||E.isUndefined(i))return!1;var o={text:i,markAutoComplete:!1},a=Le.state.typableElementsLRUMap.set(r,o),r=E.isUndefined(a);if(r&&t)return!1;if(n&&!r&&a.text!==i&&0<=i.toLocaleLowerCase().indexOf(a.text.toLocaleLowerCase())&&(o.markAutoComplete=!0),t&&!r&&a.markAutoComplete){o=Le.state.lastFocusData.prevFocusStartTime;return!E.isUndefined(o)&&E.isNumber(o)&&Le.state.lastFocusData.element===e.element?(t=Z.currentTimestamp(),e.setExtraInfo(e.FOCUS_TIME_ATTR,t-o)):e.setExtraInfo(e.FOCUS_TIME_ATTR,-1),e.setExtraInfo(e.AUTO_COMPLETE_ATTR,!0),!0}return r||a.text!==i},isMouseEvent:function(e){return e===L.mouseEvents.down||e===L.mouseEvents.up},isTouchEvent:function(e){return"touchstart"===e||"touchend"===e||"touchmove"===e},interceptMouseEnter:function(e){if(Le.state.mouseEnterReported)return!1;var n=Z.getCoordinate(e.domEvent);return e.setExtraInfo(vn.prototype.COORDINATE_ATTR,n),Le.removeEventBinding("mouseenter"),Le.state.mouseEnterReported=!0,!Le.page.hasTouch||Le.touchDetected||Z.isMobile()||(Le.switchTouchToMouse(),Le.page.hasTouch=!1),!0},switchTouchToMouse:function(){Le.removeEventBinding("touchstart"),Z.isHybridAndroid()?Le.removeEventBinding("touchmove"):Le.removeEventBinding("touchend");var e=[{type:L.mouseEvents.down,interception:Le.interceptClickStart,target:K,logicalName:"mousedown"},{type:L.mouseEvents.up,interception:Le.interceptClickEnd,target:K}];Le.bindPageEvents(e)},filterHovers:function(n){try{if("undefined"==typeof jQuery||E.isUndefined(jQuery)||E.isUndefined(jQuery._data))return!0;for(var e=n,t=1,r=E.isNumber(Y.mhDeepLevel)?Y.mhDeepLevel:1;null!==e&&e!==K.body&&t<=r;){var i=jQuery._data(e,"events");if(i&&i.mouseover&&0<i.mouseover.length)return Y.mhDebug&&e.id,Le.addHoverElement(e),!0;t++,e=e.parentElement}}catch(e){logger.error("Exception while extracting hover information for element : ",n,e.message,e),Le.saveClsDebugErrorEvent("filterHovers",e,"element="+(n?n.nodeName:"null"))}return!0},addHoverElement:function(e){Le.state.hover.hoverElementList.length<Y.mhMaxInMemeoryHovers&&(Le.state.hover.hoverElementList.push(e),Le.state.hover.hoverStartTimestamp=Z.currentTimestamp())},cleanHoverElements:function(){Y.mhDebug,Le.state.hover.hoverElementList=[],Le.state.hover.hoverStartTimestamp=0},filterResize:function(){return Z.isOldIE()},interceptResize:function(e){var n=Z.getWindowSize(),t=Z.getScreenSize(),r=!1;return null===n||null===Le.page.windowSize||Le.page.windowSize.width===n.width&&Le.page.windowSize.height===n.height||(Le.page.windowSize=n,r=!0),null===t||null===Le.page.screenSize||Le.page.screenSize.width===t.width&&Le.page.screenSize.height===t.height||(Le.page.screenSize=t,r=!0),window.devicePixelRatio!==Le.state.dpr&&(window.devicePixelRatio>Le.state.dpr?e.setExtraInfo(e.ZOOM,Le.zoomType.IN):e.setExtraInfo(e.ZOOM,Le.zoomType.OUT),Le.state.dpr=window.devicePixelRatio),e.value={},e.value.dpr=Le.state.dpr,e.value.window=Le.page.windowSize,e.value.screen=Le.page.screenSize,r},interceptMouseOver:function(){return!1},interceptClickStart:function(e){return Le.botDetector.isActive()&&Le.isMouseEvent(e.type)&&Le.botDetector.notifyMouseAction(e.domEvent),Y.recordHovers&&Le.saveHoverEvent(),Le.state.clickStart=Le.createClickDetailsObject(e),!0===Y.observeRightClick&&2===e.domEvent.button?Le.state.clickStartType="rightclick":Le.state.clickStartType="mousedown",!1},interceptTouchStart:function(e){return Le.touchDetected=!0,Le.state.clickStartType="touchstart",Le.state.clickStart=Le.createClickDetailsObject(e),!1},interceptClickEnd:function(e){Le.botDetector.isActive()&&Le.isMouseEvent(e.type)&&Le.botDetector.notifyMouseAction(e.domEvent);var n=!1,t=Le.state.clickStart,r=Le.createClickDetailsObject(e);if("touchend"===e.type&&t&&r.elPosition&&r.elPosition.left&&Math.abs(parseInt(r.elPosition.left,10)-(parseInt(t.elPosition.left,10)||0))>Y.minDragPixels||r.elPosition&&r.elPosition.right&&Math.abs(parseInt(r.elPosition.right,10)-(parseInt(t.elPosition.right,10)||0))>Y.minDragPixels||r.elPosition&&r.elPosition.top&&Math.abs(parseInt(r.elPosition.top,10)-(parseInt(t.elPosition.top,10)||0))>Y.minDragPixels||r.elPosition&&r.elPosition.bottom&&Math.abs(parseInt(r.elPosition.bottom,10)-(parseInt(t.elPosition.bottom,10)||0))>Y.minDragPixels)Le.handleDrag(e,t,r),n=!0;else if(t){if(Z.isMobile())if(t&&(Math.abs(r.coordinate.x-t.coordinate.x)>Y.minDragPixels||Math.abs(r.coordinate.y-t.coordinate.y)>Y.minDragPixels))return!1;e.type=Le.state.clickStartType,e.value=t,e.timestamp=t.timestamp,e.selectorExpression=t.selector,e.element=t.el,e.setExtraInfo(vn.prototype.COORDINATE_ATTR,Le.state.clickStart.coordinate),e.setExtraInfo(vn.prototype.IS_FIRST_CLICK,!Le.firstClickFired),Le.firstClickFired||(Le.firstClickFired=!0),e.setExtraInfo(vn.prototype.IS_CLICKABLE,Z.isClickable(e.element)),E.isUndefined(e.element)||(i=Z.getElementXYCoordinates(e.element))&&e.setExtraInfo(vn.prototype.SYNC_COORDINATE,i),Z.isHybrid()&&e.addHybridActionDataItem("start",{x:Le.state.clickStart.coordinate.x,y:Le.state.clickStart.coordinate.y});var i="rightclick"===Le.state.clickStartType?"rightclick":"event:click";$.emit(i,e),e.rageSequence&&e.indexInRage&&(e.setExtraInfo(vn.prototype.RAGE_SEQUENCE,e.rageSequence),e.setExtraInfo(vn.prototype.INDEX_IN_RAGE,e.indexInRage)),n=!0}return Le.state.clickStart=Q,Le.state.clickStartType=Q,n},interceptDragStart:function(e){return Le.state.clickStart=Le.createClickDetailsObject(e),!(Le.state.clickStartType="mousedown")},interceptDragEnd:function(e){var n=Le.state.clickStart,t=Le.createClickDetailsObject(e);return Le.handleDrag(e,n,t),!0},handleDrag:function(e,n,t){var r={duration:n.timestamp?t.timestamp-n.timestamp:-1,start:n.coordinate,end:t.coordinate};e.type="drag",e.value=r,E.isUndefined(e.element)||(r=Z.getElementXYCoordinates(n.el))&&e.setExtraInfo(vn.prototype.SYNC_COORDINATE,r),Z.isHybrid()&&(e.addHybridActionDataItem("start",{x:n.coordinate.x,y:n.coordinate.y}),e.addHybridActionDataItem("end",{x:t.coordinate.x,y:t.coordinate.y}))},interceptPagehide:function(e){Le.isUnloaded||Le.interceptUnload(e)},interceptUnload:function(e){Le.isUnloaded=!0;Z.time("unload");var n=performance.now()-Le.page.timing.contentInteractiveTime;Le.page.timing.contentInteractiveTime&&n<5e3&&Le.saveClsDebugErrorEvent("detector.js",{name:"fast unload",message:"Unload happened at "+n/1e3+" second"},""),Le.state.unloading=!0,Le.segmentManager.onUnload();var t=Z.currentTimestamp();Le.page.hasTimingAPI||(sessionStorage["gb.lastReferrer"]=g.encodeNumber(t)+"_"+Z.Base64.encode(Le.page.urlWithoutHash));n=t-Le.page.initializationTimestamp;return e.setExtraInfo(e.FOCUS_TIME_ATTR,n),e.setExtraInfo(e.SCROLL_REACH,Math.round(Le.state.maxScrollReach)),Le.debugHelper.visitUnloadEvent(e),Z.timeEnd("unload"),e.timestamp=t,Y.passTabIdViaWinName&&sessionStorage["gb.btabid"]&&(window.name?Le.saveClsDebugErrorEvent("detector.js",{name:"tabId",message:"window.name was already in use by someone else on this website"},""):window.name="gb.btabid="+sessionStorage["gb.btabid"]+";cls_s="+Le.sessionId+";referrer="+K.location.host),!0},interceptVisibilityChange:function(e){!Z.isSafari()&&!Z.isMobile()||"hidden"!==K.visibilityState||Le.isUnloaded?Le.state.unloading=!1:Le.interceptUnload(e),Le.isUnloaded=!1},updateScrollReach:function(){var e=Z.getCurrentScrollReach();e&&(Le.state.maxScrollReach=Math.max(Le.state.maxScrollReach,e))},interceptScroll:function(e){return"#document"===e.element.nodeName&&Le.updateScrollReach(),!0},updateScrollReachValues:function(e){e.value&&e.value.top&&(Le.scrollReach.height=e.value.height,Le.scrollReach.top=Math.max(Le.scrollReach.top,e.value.top),Le.scrollReach.domElementsCount=e.value.domElementsCount)},shouldReportScrollReach:function(e){return!(!e.value.top&&0!==e.value.top||!(Le.scrollReach.height!==e.value.height||Le.scrollReach.top<e.value.top))&&(Math.abs(Le.scrollReach.top)>Y.scrollReachMaxTop&&$.emit("clsDebug","scroll reach top value exceeded, top value = "+Le.scrollReach.top),Le.updateScrollReachValues(e),!0)},interceptScrollReach:function(e){var n=!1;return e.value&&"#document"===e.element.nodeName&&(!Le.scrollReach.isInfinite&&Z.isInfiniteScrollDetected(Le,e)?(Le.scrollReach.isInfinite=!0,Le.updateScrollReachValues(e),n=!0):Le.shouldReportScrollReach(e)&&(n=!0),e.value.isInfinite=Le.scrollReach.isInfinite),n},filterScrollElements:function(e){return!(null!=e&&"MARQUEE"!==e.nodeName)},interceptMouseMove:function(e){return e.lastSingleMoveTimestamp=e.timestamp,e.setExtraInfo(e.FOCUS_TIME_ATTR,0),!0},createClickDetailsObject:function(e){var n={coordinate:Z.getCoordinate(e.domEvent),el:e.element,selector:e.selectorExpression,timestamp:e.timestamp};return Z.isMobile()&&(n.elPosition={left:e.element.style?e.element.style.left:"",right:e.element.style?e.element.style.right:"",top:e.element.style?e.element.style.top:"",bottom:e.element.style?e.element.style.bottom:""}),n},shouldListenToKeyEvents:function(){return Y.recordEnterForInputs||Le.recordAutoCompleteRelatedChars()},recordAutoCompleteRelatedChars:function(){return void 0===Le.acCharsSupport&&(Le.acCharsSupport=Y.recordTypingAll||Y.supportNativeAutoComplete||Y.recordTypingForAttrs&&0<Y.recordTypingForAttrs.length||Y.recordTypingForClasses&&0<Y.recordTypingForClasses.length||Y.recordTypingForIDs&&0<Y.recordTypingForIDs.length),Le.acCharsSupport},resolveKeyData:function(e){var n=e.domEvent,t=e.element.value,r=e.element,i=n.keyCode||n.charCode;e.value={unicode:i};r=B.isCensored(r);return"keypress"===e.type?13!==i&&8!==i&&9!==i&&("0"!==n.charCode&&(r?e.value={unicode:42}:E.isUndefined(t)||null===t||(e.value.content=t+String.fromCharCode(i)),!0)):"keydown"===e.type&&(38===i||40===i||13===i||9===i?(r||(e.value.content=e.element.value),!0):8===i&&!E.isUndefined(t)&&null!==t&&!r&&(e.value.content=0<t.length?t.substring(0,t.length-1):"",!0))},interceptKeyboard:function(e){var n=e.element;if(!(n&&("INPUT"===n.nodeName||"TEXTAREA"===n.nodeName||"BUTTON"===n.nodeName||"SELECT"===n.nodeName)))return!1;var t,r=e.domEvent.keyCode||e.domEvent.charCode,r=13===r||9===r;if(e.shouldEncodeValue=!1,r&&Y.recordEnterForInputs)return Le.resolveKeyData(e);if(Y.supportNativeAutoComplete&&(n.hasAttribute("autocomplete")||n.hasAttribute("aria-autocomplete")&&"none"!==n.getAttribute("aria-autocomplete")||n.hasAttribute("class")&&Z.hasClassName(n,"autocomplete")))return Le.resolveKeyData(e);if(Y.recordTypingAll)return Le.resolveKeyData(e);if(Y.recordTypingForAttrs&&0<Y.recordTypingForAttrs.length)for(t=0;t<Y.recordTypingForAttrs.length;t++)if(n.hasAttribute(Y.recordTypingForAttrs[t]))return Le.resolveKeyData(e);if(n.hasAttribute("class")&&Y.recordTypingForClasses&&0<Y.recordTypingForClasses.length&&Z.hasOneOfClassNames(n,Y.recordTypingForClasses))return Le.resolveKeyData(e);var i=Z.getElementId(n);if(i&&Y.recordTypingForIDs&&0<Y.recordTypingForIDs.length)for(t=0;t<Y.recordTypingForIDs.length;t++)if(i===Y.recordTypingForIDs[t])return Le.resolveKeyData(e);return!1},recordAjaxResource:function(e){Le.addResource("ajax",e.url,e.timestamp)},addResource:function(e,n,t){t=new rt(e,n,t);return Le.reports.resources.push(t),$.emit("timingResource",t),t},saveEvent:function(e){var n;Le.blackoutManager.isUnderBlackout()&&("idle"!==e.type||"idle"===e.type&&!Y.blackoutIdleReporting)||this.state.stopped||("abTesting"!==e.type&&Le.aBTestingEvents.length&&e.setExtraInfo(vn.prototype.ABEVENTS,Le.aBTestingEvents),n=Le.renameEventType(e),Le.addEvent(e),Oe.setRegisteredDebugInfoOnEvent(e),Y.debugMode&&(e.report||Y.traceMode)&&Le.shouldLog(e.type)&&Le.logEvent(e,n),e.report&&(Le.state.encryptionReady?$.emit("saveEvent",e):Le.encryptionPendingEvents.push(e)))},shouldLog:function(e){return"mousemove"===e?!Y.suppressMouseMovesDebug||Y.mmDebug:"scroll"!==e||Y.scrollDebug},renameEventType:function(e){var n=e.type;return E.isUndefined(e.binding)||E.isUndefined(e.binding.logicalName)||"drag"===e.type||(e.type=e.binding.logicalName),n},logEvent:function(e,n){Y.debugMode&&((n=["saving event: "+(e.type===n?e.type:e.type+"("+n+")")+" selector: "+(e.selectorExpression||"")]).push("{value="),n.push(e.value||"NONE"),e.extraInfo&&(n.push("{ extraInfo="),n.push(e.extraInfo)),n.push("}"))},saveDocumentLoadEvent:function(e){var n=Le.createEventObject("document",e,null);Le.page.url=ne.mask(Le.page.url),Le.page.urlWithoutHash=ne.mask(Le.page.urlWithoutHash),n.value=Le.page,n.shouldEncodeValue=!1,Le.page.screenSize=Le.uaUtils.captureScreenSize(),Le.page.windowSize=Le.uaUtils.captureWindowSize(),Le.page.title=Le.getPageTitle(),Le.page.title&&n.setExtraInfo(vn.prototype.VISUAL_NAME,Le.page.title),void 0!==iframeHelper&&n.setExtraInfo(vn.prototype.WINDOW_DEPTH,iframeHelper.tryGetCurrentDepth(window)),n.setExtraInfo(vn.prototype.HISTORY_LENGTH,window.history.length),Le.pageInfo&&n.setExtraInfo(vn.prototype.DEBUG_PAGE_SN,""+Le.pageInfo.pageSn);e=Z.generateTabId();n.setExtraInfo(vn.prototype.DEBUG_BROWSER_TAB_ID,""+e),Y.mobileHybridId&&n.setExtraInfo(vn.prototype.MOBILE_HYBRID_ID,Y.mobileHybridId),Y.debounceScrolls&&n.setExtraInfo(vn.prototype.SCROLL_DEBOUNCED,!0),Le.ect&&n.setExtraInfo(vn.prototype.EFFECTIVE_CONNECTION_TYPE,Le.ect),Le.documentEvent=n,this.debugHelper.visitLoadEvent(n),Le.documentEventHook?Le.documentEventHook(n,Le.onParentHandshakeDone):Le.onParentHandshakeDone()},trySendPerformanceEvent:function(){Le.state.loaded&&Le.state.handshakeDone&&Le.resolvePageLoadTime(Le.page)},onParentHandshakeDone:function(){Le.state.handshakeDone=!0,Le.documentEvent&&(Le.saveEvent(Le.documentEvent),$.emit("event:document")),Le.trySendPerformanceEvent()},savePageUpdate:function(){var e=Le.createEventObject("pageUpdate",Z.currentTimestamp(),null);Le.saveEvent(e)},onPageError:function(e){var n;e.eventLimitExceeded||((n=Le.createEventObject("error",Z.currentTimestamp(),null)).value=e.error,n.shouldEncodeValue=!0,Le.saveEvent(n))},onConsoleMessage:function(e){var n;e.eventLimitExceeded||((n=Le.createEventObject(e.eventName,Z.currentTimestamp(),null)).value=e[e.eventName],n.shouldEncodeValue=!0,Le.saveEvent(n))},saveTitleChanged:function(e){var n=Le.createEventObject("titleChanged",Z.currentTimestamp(),null);n.value=Le.getPageTitle(e),n.shouldEncodeValue=!0,Le.saveEvent(n)},saveSegmentChangedEvent:function(e){var n=Le.createEventObject("segmentChanged",Z.currentTimestamp(),null);n.value=e,n.shouldEncodeValue=!1,Le.saveEvent(n),Le.plugins.domRecordingPlugin&&Le.plugins.domRecordingPlugin.isStarted()&&setTimeout(function(){Le.savePageUpdate()},0)},saveLastSegmentEvent:function(e){var n=Le.createEventObject("lastSegment",Z.currentTimestamp(),null);n.value=e,n.shouldEncodeValue=!1,Le.saveEvent(n)},savePageSnapshotEvent:function(e){var n=Le.useCurrentTimeForPagesnapshot?Z.currentTimestamp():Le.page.initializationTimestamp,n=Le.createEventObject("pageSnapshot",n,null);n.value=e,n.shouldEncodeValue=!1;e=window.performance&&window.performance.timing;e&&n.setExtraInfo(vn.prototype.NAVIGATION_TIMING,JSON.parse(JSON.stringify(e))),Le.autoMaskingSignaled&&(n.setExtraInfo(vn.prototype.AUTO_MASKING,Le.autoMaskingSignaled),Le.autoMaskingSignaled=null),Le.page.snapshotFuseData&&n.setExtraInfo(vn.prototype.SNAPSHOT_FUSE,JSON.stringify(Le.page.snapshotFuseData)),n.setExtraInfo(vn.prototype.SNAPSHOT_TYPE,Le.snapshotType),Le.saveEvent(n)},saveDevToolsChangeEvent:function(e){var n=Le.createEventObject("devToolsVisibilityChanged",Z.currentTimestamp(),null);n.value=e.value,Le.saveEvent(n)},saveDomTamperedEvent:function(e){var n,t=Le.createEventObject("domTampered",Z.currentTimestamp(),null);t.element=e.element,void 0!==e.newText&&t.setExtraInfo(vn.prototype.CURRENT_VALUE,e.newText),void 0!==e.prevText&&t.setExtraInfo(vn.prototype.OLD_VALUE,e.prevText),!Y.reportVisualNames||(n=Le.extractVisualName(e.element))&&t.setExtraInfo(vn.prototype.VISUAL_NAME,n),Le.assignSelectorInfo(e.element,t),Le.saveEvent(t)},saveStruggle:function(e){var n,t,r=Le.createEventObject("webStruggle",Z.currentTimestamp(),null);e.errors&&(n=e.errors.join(";"),r.setExtraInfo(vn.prototype.ERROR_DATA,n)),e.elementSelector?(r.selectorExpression=e.elementSelector.selector||L.encoding.rootSelector,r.cssSelector=e.cssSelector||L.encoding.rootCssSelector,e.elementSelector.hostSelectorPath&&r.setExtraInfo(vn.prototype.HOST_SELECTOR_PATH,e.elementSelector.hostSelectorPath)):(r.element=e.element,Le.assignSelectorInfo(e.element,r),Y.reportVisualNames&&e.relatedEvent&&(t=Y.visualName&&Y.visualName.eventsToCalcDistance[e.relatedEvent.type]?(t=e.relatedEvent.getExtraInfo(vn.prototype.COORDINATE_ATTR),Le.extractVisualName(e.element,t.x,t.y)):Le.extractVisualName(e.element))&&r.setExtraInfo(vn.prototype.VISUAL_NAME,t)),r.value=e.dataToEncode,r.shouldEncodeValue=!1,Le.saveEvent(r)},saveVoc:function(e){var n=Le.createEventObject("voc",Z.currentTimestamp(),null);n.value=e,Le.saveEvent(n)},saveAjaxRequestEvent:function(e){var n=Le.createEventObject("ajaxRequest",e.startedAt||Z.currentTimestamp(),null);e.ajaxUrls=Le.ajaxUrls,n.value=e,n.selectorExpression=e.lastFocusedSelectorInfo?e.lastFocusedSelectorInfo.selector:L.encoding.rootSelector,n.cssSelector=e.lastFocusedCSSSelectorInfo||L.encoding.rootCssSelector,e.lastFocusedSelectorInfo&&e.lastFocusedSelectorInfo.hostSelectorPath&&n.setExtraInfo(vn.prototype.HOST_SELECTOR_PATH,e.lastFocusedSelectorInfo.hostSelectorPath),e.containOnlyMetaData&&n.setExtraInfo(vn.prototype.METADATA_ONLY,!0),n.shouldEncodeValue=!1,Le.saveEvent(n)},ajaxLimitReached:function(){var e=Le.createEventObject("ajaxLimitReached",Z.currentTimestamp(),null);Le.saveEvent(e)},saveAjaxStatsEvent:function(e){var n=Le.createEventObject("ajaxStats",Z.currentTimestamp(),null);n.value=e,n.shouldEncodeValue=!1,Le.saveEvent(n)},interceptClipboardEvent:function(e){var n=e.data,t=Le.createEventObject("clipboard",n.timestamp,null);n.sourceData&&(r=O.getSelectorInfo(n.sourceData.element),n.sourceData.selector=r.selector||L.encoding.rootSelector,r.hostSelectorPath&&(n.sourceData[vn.prototype.HOST_SELECTOR_PATH]=r.hostSelectorPath),(r=Le.extractVisualName(n.sourceData.element))&&t.setExtraInfo(vn.prototype.VISUAL_NAME,r),delete n.sourceData.element),delete n.timestamp;var r=Le.extractVisualName(e.element);r&&t.setExtraInfo(vn.prototype.VISUAL_NAME,r),Le.assignSelectorInfo(e.element,t),n.element&&delete n.element,t.value=n,t.shouldEncodeValue=!1,Le.saveEvent(t)},saveClsDebugErrorEvent:function(e,n,t){n=Le.formatClsDebugMessage(e,n,t);0!==n.length&&((t=Le.createEventObject("clsdebug",Z.currentTimestamp(),null)).value=n,Le.saveEvent(t))},formatClsDebugMessage:function(e,n,t){if(Le.state.clsDebugCounter>=Y.clsDebugMaxReports)return"";Le.state.clsDebugCounter++;n=n?n.stack||n.name+": "+n.message:"";return"CLS Error in "+e+" "+(t?"{"+t+"} ":"")+(0<(n=Z.truncateStr(n,Y.clsDebugCharsLimit,!0)).length?": "+n:"")},saveValidationError:function(e){var n=Le.createEventObject("formValidationError",Z.currentTimestamp(),null);n.element=e.element,n.value=e.message,Le.assignSelectorInfo(e.element,n);e=Le.extractVisualName(e.element);e&&n.setExtraInfo(vn.prototype.VISUAL_NAME,e),Le.saveEvent(n)},saveHoverEvent:function(){var e=Le.createEventObject("hover",Le.state.hover.hoverStartTimestamp,null);if(0!==Le.state.hover.hoverElementList.length){Y.mhDebug&&Le.state.hover.hoverElementList.length;var n=Le.state.hover.hoverElementList;Le.cleanHoverElements();for(var t,r={},i=[],o=n.length-1;0<=o;o--)if(t=n[o],r[t=O.getSelectorInfo(t).selector||L.encoding.rootSelector])Y.mhDebug;else if(r[t]=!0,i.push(t),i.length>=Y.mhMaxListSize){Y.mhDebug;break}e.value=n,e.shouldEncodeValue=!1,Le.saveEvent(e)}else Y.mhDebug},saveCustomEvent:function(e){Le.handleCustomEvent("custom",e)},saveCustomMapEvent:function(e){Le.handleCustomEvent("customMap",e)},handleCustomEvent:function(e,n){e=Le.createEventObject(e,Z.currentTimestamp(),null);e.value=n,!E.isUndefined(n.domEl)&&Z.isDOMElement(n.domEl)&&(e.element=n.domEl,Le.assignSelectorInfo(n.domEl,e)),e.shouldEncodeValue=!1,Le.saveEvent(e)},saveThirdPartyMapEvent:function(e){var n=Le.createEventObject("thirdpartymap",Z.currentTimestamp(),null);n.value=e.value,e.type&&n.setExtraInfo(vn.prototype.TP_INTEGRATION_TYPE,e.type),e.element&&(n.element=e.element,Le.assignSelectorInfo(e.element,n)),n.shouldEncodeValue=!1,Le.saveEvent(n)},saveThirdPartyAttributeEvent:function(e){var n=Le.createEventObject("thirdPartyAttribute",Z.currentTimestamp(),null);n.value=e,n.shouldEncodeValue=!1,Le.saveEvent(n)},onDomFuseBlown:function(e){Le.page.snapshotEmitted||(Le.page.snapshotFuseData=e)},onPageNameResolved:function(e){Le.page.name=e},saveABTesting:function(e){for(var n=Le.createEventObject("abTesting",Z.currentTimestamp(),null),t=0;t<e.offers.length;++t)Le.aBTestingEvents.push(e.offers[t]);n.setExtraInfo(vn.prototype.PROVIDER_NAME,e.provider),n.value=e.offers,n.shouldEncodeValue=!1,Le.saveEvent(n)},saveResourceDataEvent:function(e){var n=Le.createEventObject("resourceContent",Z.currentTimestamp(),null);n.value=e,n.shouldEncodeValue=!1,Le.saveEvent(n)},saveResourceUrlsEvent:function(e){var n=Le.createEventObject("resourceUrls",Z.currentTimestamp(),null);n.value=e,n.shouldEncodeValue=!1,Le.saveEvent(n)},saveCorsDeniedDataEvent:function(e){var n=Le.createEventObject("corsDeniedResource",Z.currentTimestamp(),null);n.value=e,Le.saveEvent(n)},saveClientAttributeEvent:function(e){var n=Le.createEventObject("clientAttribute",Z.currentTimestamp(),null);n.value=e,n.shouldEncodeValue=!1,Le.saveEvent(n)},saveWebVitalsEvent:function(e){var n=Le.createEventObject("webVitals",Z.currentTimestamp(),null);n.value=e.webVitals,n.setExtraInfo(vn.prototype.EFFECTIVE_CONNECTION_TYPE,e.ect),n.setExtraInfo(vn.prototype.RTT,e.rtt),n.shouldEncodeValue=!1,Le.saveEvent(n)},saveFormAnalysisEvent:function(e){var n=Le.createEventObject("formAnalysis",Z.currentTimestamp(),null);n.value=e,n.shouldEncodeValue=!1,Le.saveEvent(n)},savePerformanceDataEvent:function(e){var n=Le.createEventObject("resourcesWaterfall",Z.currentTimestamp(),null);n.value={version:e.version,causedBy:e.causedBy,performance:e.pagePerformance,resources:e.resource},n.setExtraInfo(vn.prototype.EFFECTIVE_CONNECTION_TYPE,e.ect),n.setExtraInfo(vn.prototype.RTT,e.rtt),n.shouldEncodeValue=!1,Le.saveEvent(n)},initializePageDetails:function(){Z.time("initializePageDetails");var e=Le.page;e.initializationTimestamp=Z.currentTimestamp(),e.id=Z.uuid(),e.frame=window.self!==top,e.frame&&(e.referrerWithoutHash=Z.getReferrerUrlWithoutHash());var n=Z.getLocationUrlSplitByHash(Y.decodeUri);e.url=n.url,e.urlWithoutHash=n.withoutHash,e.hash=n.hash,e.hasTouch=Z.hasTouch(),e.hasTouch&&setTimeout(function(){$.emit("clsDebug","machine has touch screen active")},1e3),e.hasTimingAPI=Z.hasTimingAPI(),e.title=Le.getPageTitle(),Z.timeEnd("initializePageDetails")},getPageTitle:function(e){e=Z.truncateStr(e||K.title,Y.titleCharsLimit,!0);return e=Y.maskTitle?Z.transformTextSegments(e,ee.censorValueOf):e},resolvePageLoadTime:function(e){var n,t;e.hasTimingAPI?Le.acquirePerformanceTiming():(t=sessionStorage["gb.lastReferrer"])&&(n=K.referrer.replace(/#.*/,""),t=t.split("_"),n===Z.Base64.decode(t[1])&&(t=parseInt(t[0],36),e.timing.total=e.loadTimestamp-t,Le.saveTimingEvent({page:e.timing})))},saveTimingEvent:function(e){var n=Le.createEventObject("timing",Z.currentTimestamp(),window.document);n.value=e,Le.page.title&&n.setExtraInfo(vn.prototype.VISUAL_NAME,Le.page.title),Le.saveEvent(n)},savePerformanceEvent:function(e){var n=Le.createEventObject("performance",Z.currentTimestamp(),window.document);window.performance&&window.performance.timing&&(n.value={perf:{timing:JSON.parse(JSON.stringify(window.performance.timing))},browserTime:e},window.performance.navigation&&(n.value.perf.navigation={redirectCount:window.performance.navigation.redirectCount,type:window.performance.navigation.type}),Le.page.title&&n.setExtraInfo(vn.prototype.VISUAL_NAME,Le.page.title),Le.page.name&&n.setExtraInfo(vn.prototype.PAGE_NAME,Le.page.name),Le.ect&&n.setExtraInfo(vn.prototype.EFFECTIVE_CONNECTION_TYPE,Le.ect),n.shouldEncodeValue=!1,Le.saveEvent(n))},acquirePerformanceTiming:function(){var e;0===window.performance.timing.loadEventEnd?window.setTimeout(Le.acquirePerformanceTiming,300):(e=Z.currentTimestamp()-Le.page.initializationTimestamp,Le.savePerformanceEvent(e))},isSessionCookieExist:function(){return Le.isSessionIdExist},setClientCookies:function(e,n,t){e=et(new Zn(window.localStorage,{keysPrefix:L.Storage.UnboundKeyPrefix}),$,N,e,n,Y.visitorDaysToExpiration,t);e.isSessionIdExist&&(Le.isSessionIdExist=!0),$.emit("sessionCookieSet"),Le.handledClientConfiguration||!Le.refireCoreEvents||Y.enableSessionizingByCors||Le.corePluginEvents.push({name:"plugin:sessionCookieSet"}),t||!R.isCorsReporting()||!e.changed||(t=Le.plugins.cors)&&t.onCookieChanged(n),e.visitorId&&(Le.visitorId=e.visitorId),Le.sessionId=e.sessionId},setSessionId:function(e){Le.sessionId=e,Le.setClientCookies({sessionId:e},!0,!0),$.emit("session:setSessionId",e)},onInvalidateSession:function(){$.emit("forceFlush"),Le.setClientCookies(Q,!0),Le.sessionId,Le.page.id=Z.uuid(),Le.page.snapshotEmitted=!1,Le.page.snapshotFuseData=Q,$.emit("session:new",{sessionId:Le.sessionId,visitorId:Le.visitorId,pageId:Le.page.id,pageName:Le.page.name})},registerPlugin:function(e,n){Le.plugins[e]=n},removeEventBinding:function(e){for(var n=-1,t=0;t<Le.bindings.registered.length;t++){var r=Le.bindings.registered[t];r.type===e&&(Z.removeEventHandler(r.el,e,r.handler),n=t)}0<=n&&Le.bindings.registered.splice(n,1)},removeBindings:function(){E.forEach(Le.bindings.registered,function(e){Z.removeEventHandler(e.el,e.type,e.handler)}),Le.bindings.registered=[],Le.bindings.unsupportedEventTypes=[]},getEncoder:function(){return g},supportModeOn:function(e){e=e||!1,Le.applySupportMode(),e&&D.set("supportMode",!0)},isSupportModeSession:function(){return void 0!==N.get(L.cookies.supportMode)||D.get("supportMode")},checkSupportModeSession:function(){Le.isSupportModeSession()&&Le.applySupportMode()},applySupportMode:function(){},asStoppable:function(){var n=this;return{isStopped:function(e){return e&&(n.state.stopped="true"===D.get("stopped")),n.state.stopped},start:function(){return!!n.state.stopped&&(n.state.stopped=!1,$.emit("recordingStarted"),D.remove("stopped"),!0)},stop:function(){return!n.state.stopped&&(n.state.stopped=!0,$.emit("recordingStopped"),D.set("stopped","true"),!0)}}},consoleWarning:function(e){Z.isIE()?console.log(e):console.log("%c "+e,"color: white; background: red")}},rt.prototype.toString=function(){return this.url},it.prototype.toString=function(){return"("+this.x+","+this.y+")"},Be={inMemoryMovesCounter:0,notifyEventsFlush:function(){Be.inMemoryMovesCounter=0},diluteEvents:function(e,n,t){if(n){if("resize"===t.type)return!0;if("scroll"===t.type)return"scroll"===n.type||Le.page.hasTouch&&"drag"===n.type?!(t.timestamp-n.timestamp>Y.minStallingScrollTime)&&(t.selectorExpression=n.selectorExpression,Y.scrollDebug&&n.type,!0):!("mousemove"!==n.type||1!==n.value.length||!e||"scroll"!==e.type)&&(!(t.timestamp-e.timestamp>Y.minStallingScrollTime)&&(Y.scrollDebug,!0));if("mousemove"===t.type&&"mousemove"!==n.type)return!0;if("mousemove"===t.type&&"mousemove"===n.type){var r=Y.reportByPost?3e3:Y.mmMaxMovesInEventWithTimes,e=Y.reportByPost?3e3:Y.mmMaxMovesInEventNoTimes;return Y.mmRecordTimes&&n.value.length>=r||!Y.mmRecordTimes&&n.value.length>=e?(Y.mmDebug&&n.value.length,Be.inMemoryMovesCounter++,!1):!E.isUndefined(Y.mmMinStallingMoveTime)&&t.timestamp-n.lastSingleMoveTimestamp>Y.mmMinStallingMoveTime?(Y.mmDebug&&(t.timestamp,n.lastSingleMoveTimestamp),Be.inMemoryMovesCounter++,!1):(Be.checkExceededInMemoryMoves()?Y.mmDebug&&Y.mmMaxInMemoryMoves:Be.diluteMoveEvents(n,t)&&Be.inMemoryMovesCounter++,!0)}}return"mousemove"===t.type&&(Be.inMemoryMovesCounter++,!0)},checkExceededInMemoryMoves:function(){var e=Y.reportByPost?3e3:Y.mmMaxInMemoryMoves;return Be.inMemoryMovesCounter>=e},diluteMoveEvents:function(e,n){var t=E.last(e.value),r=n.value[0],i=n.timestamp-e.lastSingleMoveTimestamp,o=e.getExtraInfo(e.FOCUS_TIME_ATTR);return Math.abs(t.x-r.x)>Y.mmDiluteMinPixels||Math.abs(t.y-r.y)>Y.mmDiluteMinPixels?(r.t=i,n.setExtraInfo(n.FOCUS_TIME_ATTR,o+=i),n.timestamp=e.timestamp,e.value.push(r),n.value=e.value,Y.mmDebug&&n.value,!0):(n.setExtraInfo(n.FOCUS_TIME_ATTR,o),n.timestamp=e.timestamp,n.value=e.value,n.lastSingleMoveTimestamp=e.lastSingleMoveTimestamp,Y.mmDebug&&Y.mmDiluteMinPixels,!1)},truncateEventsForUnload:function(e){for(var n=[],t=Y.mmMaxMovesWithUnload,r=0,i=!1,o=0;o<e.length;o++){var a=e[o];if("mousemove"===a.type){if(r>=Y.mmMaxMovesWithUnload){Y.mmMaxMovesWithUnload,i=!0;continue}var u=a.value.length,c=Be.truncateMouseMoveEvent(a,t-r);r+=c,c<u&&(i=!0)}"unload"===a.type&&i&&a.event.setExtraInfo(a.MOVES_TRUNCATED,!0),n.push(a)}return n},truncateMouseMoveEvent:function(e,n){var t=e.value.length;return t<n?t:(e.value=e.value.slice(0,n),n)}},Le.checkElementChangebility=function(e){var n=e.nodeName,t=e.type,r=!1,i=!1;switch(n){case"SELECT":i=!0;break;case"TEXTAREA":r=!0;break;case"INPUT":if(null===t)break;switch(t){case"checkbox":case"radio":i=!0;break;case"text":case"password":case"number":case"file":case"url":case"search":case"email":case"date":case"time":case"tel":case"range":case"month":case"week":case"datetime":case"datetime-local":case"color":r=!0}}return{isTypable:r,isSelectable:i}},Le.isTypableElement=function(e){return Le.checkElementChangebility(e).isTypable},Le.isSelectableElement=function(e){return Le.checkElementChangebility(e).isSelectable},Le.isChangebleElement=function(e){return Le.isTypableElement(e)||Le.isSelectableElement(e)},void 0!==Le&&ot(Le,B),St.KEY_NAME_EST=L.Storage.BoundKeyPrefix+"est",St.KEY_NAME_SN=L.Storage.BoundKeyPrefix+"sn",je={hookProto:function(a){var u={};return{setHookBefore:function(n,e){var t=a[n];return!!t&&(a[n]=function(){try{e.apply(this,arguments)}catch(e){logger.error("error during method '"+n+"' hook invocation. error: "+e.message,e)}return t.apply(this,arguments)},u[n]=t,!0)},setHookAfter:function(t,r,i){var o=a[t];return!!o&&(a[t]=function(){var e,n=o.apply(this,arguments);try{i?(arguments.length?(e=Array.prototype.slice.call(arguments)).push(n):e=[n],r.apply(this,e)):r.apply(this,arguments)}catch(e){logger.error("error during method '"+t+"' hook invocation. error: "+e.message,e)}return n},u[t]=o,!0)},hookSetPropertyAfter:function(n,t){var r=Object.getOwnPropertyDescriptor(a,n)?Object.getOwnPropertyDescriptor(a,n).set:null;return!!r&&(Object.defineProperty(a,n,{set:function(){var e=r.apply(this,arguments);try{t.apply(this,arguments)}catch(e){logger.error("error during method '"+n+"' hook invocation. error: "+e.message,e)}return e}}),u[n]=r,!0)},revert:function(){for(var e in u)u.hasOwnProperty(e)&&(a[e]=u[e])}}}},Ue={uriContainsAnyOf:function(e,n){if(!e)return!1;for(var t=0;t<n.length;t++)if(0<=e.indexOf(n[t]))return!0;return!1},tryParseValueMap:function(e,n){for(var t,r,i={},o=e.split("&"),a=!1,u=0;u<o.length;u++)if(2===(t=o[u].split("=")).length)try{if(!n[r=decodeURIComponent(t[0])])continue;i[r]=decodeURIComponent(t[1]),a=!0}catch(e){logger.error("error was detected: "+e)}return a?i:Q}},void 0!==Le&&jt(Le,function(){return Ve=Ve||function(){if(!Y.isDetectorDom)return null;var n=lr();return{cloneNode:function(e){return n.isDomMasked(e,We.SELF_OR_ANY_PARENT,qe.TEXT)?{innerText:ee.censorValueOf(e.innerText)}:{innerText:e.innerText}}}}(),Le.plugins.domRecordingPlugin?Le.plugins.domRecordingPlugin.getNodeCloner():Ve},Y),Ht.getEntryKey=function(e){return e.url.split("?")[0]+"_"+e.method+"_"+e.segment+"_"+e.queryHash},qt.prototype.hasGzipContentEncoding=function(){if(this.resHeaders)for(var e=this.resHeaders.entries(),n=e.next();!n.done;){if("content-encoding"===n.value[0].toLowerCase()&&"gzip"===n.value[1].toLowerCase())return!0;n=e.next()}return!1},qt.prototype.captureContent=function(){return this.responseText},qt.prototype.fixHeaders=function(){if(!this.resHeaders||!this.resHeaders.forEach)return"";var t="";return this.resHeaders.forEach(function(e,n){"transfer-encoding"===n.toLowerCase()&&"chunked"===e.toLowerCase()||(t="content-length"===n.toLowerCase()?t+"X-Glassbox-Orig-Content-Length: "+e+"\r\n":t+n+": "+e+"\r\n")}),this.masking.response&&(t+="X-Glassbox-JSMasking: "+this.masking.response+"\r\n"),t},zt.prototype.hasGzipContentEncoding=function(){return null!==/content-encoding:\sgzip/gi.exec(this.resHeaders||"")},zt.prototype.captureContent=function(){return"json"===this.xhr.responseType||this.resContentType&&-1!==this.resContentType.indexOf("json")?this.ajaxMasker.getJsonContent(this,"response",this.xhr.response):"string"==typeof this.xhr.response?this.ajaxMasker.maskText(this,"response",this.xhr.response):null},zt.prototype.fixHeaders=function(){var e=(e=(this.resHeaders||"").replace(/transfer-encoding:\schunked/gi,"X-Glassbox-Orig-Transfer-Encoding: chunked")).replace(/content-length:/gi,"X-Glassbox-Orig-Content-Length:");return this.masking.response&&(e=e.trim(),e+="\r\nX-Glassbox-JSMasking: "+this.masking.response+"\r\n"),e},zt.prototype.onCompleted=function(){var e=Z.currentTimestamp();this.consumed=!0,this.status=this.xhr.status,this.statusText=this.xhr.statusText,this.resHeaders=this.xhr.getAllResponseHeaders(),this.resContentType=this.xhr.getResponseHeader("Content-Type"),this.contentLength=this.xhr.getResponseHeader("Content-Length"),this.duration=e-this.startTime,this.endTime=e,this.responseType=this.xhr.responseType,this.response=this.xhr.response,this.responseText=this.xhr.responseType&&"text"!==this.xhr.responseType?Q:this.xhr.responseText},Xt.safeEncodeURI=function(n){try{return n===decodeURI(n)?encodeURI(n):n.replace(/\s/g,"%20")}catch(e){return encodeURI(n)}},Xt.nextSn=(He=0,function(){return He++}),void 0!==Le&&Le.registerPlugin("cors",new tr($,Z,De.createXMLHTTPObject,R,D,N,new Zt($,new Zn(window.localStorage,{keysPrefix:L.Storage.UnboundKeyPrefix}),Le.asStoppable()),new er($,Le.setSessionId),new nr($,D),Y)),void 0!==C&&ur(L,new Zn(window.localStorage,{keysPrefix:L.Storage.UnboundKeyPrefix}),function(n,t,r){try{var i=De.createXMLHTTPObject(!0);i||r("Failed creating XHR object for fetching external configuration"),i.onreadystatechange=function(){var e;4===i.readyState&&(200===i.status?(e=i.getResponseHeader("Content-Type"))&&-1!==e.indexOf("application/json")&&t(i.response):(e="Failed getting external configuration for url : "+n+" status:"+i.status+" "+i.statusText,r(e)))},i.open("GET",n,!0),i.onprogress=function(){},i.ontimeout=function(){},i.onerror=function(){},setTimeout(function(){try{i.send()}catch(e){logger.error("Failed sending request to url "+n+": "+e.message,e)}},0)}catch(e){logger.error(f+e.message,e),console.log("Failed getting external configuration for url: "+n+": "+e.message,e),r(e.message)}},new cr(Z.Base64),$,Y),We={SELF:{follow:function(e,n){return e&&e.nodeType===Node.ELEMENT_NODE&&Z.elementMatches(e,n)}},SELF_OR_ANY_PARENT:{follow:function(e,n){for(var t=e;t;){if(t.nodeType===Node.ELEMENT_NODE&&Z.elementMatches(t,n))return!0;t=t.parentNode}return!1}},SELF_OR_ANY_CHILD:{follow:function(e,n){if(e){if(e.nodeType===Node.ELEMENT_NODE&&Z.elementMatches(e,n))return!0;if("function"==typeof e.querySelector)return!!e.querySelector(n)}return!1}}},sr.prototype.isAttributeMasked=function(e,n){return!(!this._maskedAttributesTags[e.tagName]||!(this._maskedAttributes[n]||this._maskDataAttributes&&0===n.indexOf("data-"))||e.hasAttribute&&e.hasAttribute(this._ignoreMaskByAttribute))},sr.prototype.isDomMasked=function(e,n){for(var t,r,i=Array.prototype.slice.call(arguments,2),o=0;o<i.length;o++){if(t=!!(t=this._selectorsByMaskingType[i[o]].selector)&&n.follow(e,t),r=this._selectorsByMaskingType[i[o]].doInvert,t)return!r;if(r)return!0}return!!r},sr.prototype.createContextUpdater=function(i){var o=this,a=this._domMaskingMode===L.censorMode.WhiteList,u={},c=[];function s(e,n){c.push(e),n.maskText=e}return{onStart:function(e,n){if(s(!o._unmaskableTags[e.tagName]&&o.isDomMasked(e,We.SELF_OR_ANY_PARENT,qe.TEXT),n),e.querySelectorAll){n=o._selectorsByMaskingType[qe.TEXT].selector;if(n)for(var t=e.querySelectorAll(n),r=0;r<t.length;r++)u[i.idOf(t[r])]=!0}},onEnterElement:function(e,n){var t=c[c.length-1],r=i.idOf(e);if(u[r]){r=!a&&!o._unmaskableTags[e.tagName];if(r!==t)return s(r,n),!0}return!!(t&&o._unmaskableTags[e.tagName]||t&&e.hasAttribute&&e.hasAttribute(o._ignoreMaskByAttribute))&&(s(!1,n),!0)},onLeaveElement:function(e,n){c.pop(),n.maskText=c[c.length-1]},onEnd:function(){u={},c=[]}}},qe={TEXT:"TEXT",ATTRIBUTE:"ATTRIBUTE",VALUE_ATTRIBUTE:"VALUE_ATTRIBUTE",OMIT:"OMIT"},sr.prepareWildCardSelector=function(e,n){e=""===e[0]?3===e.length&&""===e[2]?"["+n+"*='"+e[1]+"']":"["+n+"$='"+e[1]+"']":""===e[1]?"["+n+"^='"+e[0]+"']":"["+n+"^='"+e[0]+"']["+n+"$='"+e[1]+"']";return e},dr.prototype.maskCookie=function(e){if(!e||!this._cookieMaskSet)return e;for(var n,t,r,i=e.split(";"),o=[],a=0;a<i.length;a++)-1!==(r=(n=i[a]).indexOf("="))?(t=n.substring(0,r).trim(),r=n.substring(r+1),o.push(t+"="+(r&&this._cookieMaskSet.hasOwnProperty(t)?ee.censorValueOf(r):r))):o.push(n);return o.join("; ")},hr.prototype.isDomEncrypted=function(e,n){return n.follow(e,this._encryptionSelector)},hr.prototype.encrypt=function(n){if(this._shouldFallback)return Z.transformTextSegments(n,this._maskingUtils.censorValueOf);if(!this._encryptionUtils.isAvailable())return this._shouldFallback=!0,logger.error("encryption not available, switching to fallback."),this._events.emit("clsDebug","encryption not available, switching to fallback"),Z.transformTextSegments(n,this._maskingUtils.censorValueOf);try{return this._encryptionUtils.censorValueOf(n)}catch(e){return logger.error("failed encrypting text, switching to fallback: "+e.message,e),this._events.emit("clsDebug","Error: failed encrypting text. Switching to fallback"),this._shouldFallback=!0,Z.transformTextSegments(n,this._maskingUtils.censorValueOf)}},hr.prototype.createContextUpdater=function(i){var o=this,a={},u=[];function c(e,n){u.push(e),n.encryptText=e}return{onStart:function(e,n){if(c(!o._unEncryptableTags[e.tagName]&&o.isDomEncrypted(e,We.SELF_OR_ANY_PARENT),n),e.querySelectorAll){n=o._encryptionSelector;if(n)for(var t=e.querySelectorAll(n),r=0;r<t.length;r++)a[i.idOf(t[r])]=!0}},onEnterElement:function(e,n){var t=u[u.length-1],r=i.idOf(e);if(a[r]){r=!o._unEncryptableTags[e.tagName];if(r!==t)return c(r,n),!0}return!(!t||!o._unEncryptableTags[e.tagName])&&(c(!1,n),!0)},onLeaveElement:function(e,n){u.pop(),n.encryptText=u[u.length-1]},onEnd:function(){a={},u=[]}}},mr.prototype={next:function(){for(var e=this._node.childNodes[++this._childIndex];e&&!this._predicate(e);)e=this._node.childNodes[++this._childIndex];return e}},pr.SHOW_ALL=0,pr.SHOW_ELEMENTS=1,Or.prototype.toString=function(){return"seq:"+this.seq+"referrer"+this.referrer+"charset:"+this.charset+"cookie-len"+(this.cookie?this.cookie.length:0)+(20<this.html.length?"html length: "+this.html.length:"html: "+this.html)},Fr.prototype.onNodeAdded=function(e){this.addedNodes[e]=!0},Pr.propertyForElement=function(e){if("SELECT"===e.tagName)return"selectedIndex";if("TEXTAREA"===e.tagName)return"value";if("INPUT"!==e.tagName)return Q;e=e.getAttribute("type")&&e.getAttribute("type").toLowerCase();return!e||"checkbox"!==e&&"radio"!==e?"value":"checked"},Pr.defaultValue=function(e,n){if("checked"===n)return e.hasAttribute("checked");if("selectedIndex"===n){var t=e.querySelector("option[selected]");return t?t.index:null!==e.querySelector("option")?0:-1}e=e.getAttribute(n);return e||"value"!==n?e:""},ze=window,Ge=void 0!==Y&&Y.iframesDebugEnabled,Je=ze.top!==ze,iframeHelper={MAX_DEPTH_THRESHOLD:20,tryGetCurrentDepth:function(e){var n=0,t=e;try{for(;t.parent!=t&&n<=this.MAX_DEPTH_THRESHOLD;)t=t.parent,n++}catch(e){return logger.error("could not retrieve current window's depth (a CORS issue?). error:"+e),-1}return n>this.MAX_DEPTH_THRESHOLD?(this.MAX_DEPTH_THRESHOLD,-1):n},isCrossOriginFrame:function(e,n){try{if(!e.contentWindow)return!0;var t="OBJECT"===e.tagName?e.getAttribute("data"):e.getAttribute("src");if("about:blank"===t)return!1;if(!t)return!1;var r=Z.extractOrigin(t);return r?n!==r:!1}catch(e){return!0}},isEmpty:function(e){return!(e.contentDocument&&e.contentDocument.body.hasChildNodes())},logError:function(){var e=Array.prototype.slice.call(arguments);return"string"==typeof e[0]&&(e[0]="[frame.debug] "+(Je?"FRAME ("+ze.location.href+")":"TOP")+" "+e[0]),Ge?console.log.apply(console,e):logger.error(e)},logDebug:function(){var e=Array.prototype.slice.call(arguments);return"string"==typeof e[0]&&(e[0]="[frame.debug] "+(Je?"FRAME ("+ze.location.href+")":"TOP")+" "+e[0]),Ge&&logger.log(e)}},Xe={hidden:function(e){return!(!e||!e.style||"none"!==e.style.display)}},Fi.prototype.matchPattern=function(e){return this._urlRegexp.test(e)},Fi.prototype.getRuleName=function(){return this._rule.name},Fi.prototype.getRuleMaxLength=function(){return this._rule.maxLength},Fi.prototype.evaluate=function(e,n,t,r,i){if(this.matchPattern(n)){n=r[this._rule.selector];if(n||(t?this._elementResolver.matches(e,this._rule.selector)&&(n=e):n=this._elementResolver.querySelector(e,this._rule.selector)),!n&&this._isHierarchical){i=i();if(Z.startsWith(this._rule.selector,i)){i=this._rule.selector.substring(i.length+1);if(i)try{t?this._elementResolver.matches(e,i)&&(n=e):n=this._elementResolver.querySelector(e,i)}catch(e){}}}if(n)return r[this._rule.selector]=n,this._accessors[this._rule.accessorMethod](n,this._rule.accessor)}},Bi.KEY_NAME=L.Storage.BoundKeyPrefix+"aid",S[C]=(Qe=(Ke=Le).asStoppable(),Ye=$,$e=Y,Ze=Z.currentTimestamp,en=["config","page","plugins","blackoutManager","version","triggerMessage","sessionId","visitorId"],nn=Z.shallowExtend($e.debugMode?Ke:{},{triggerCustomEvent:function(e,n,t){e&&"string"==typeof e&&Ye.emit("customEvent",{name:""+e,val:""+n,domEl:t})},triggerCustomEventMap:function(e,n,t){e&&"string"==typeof e&&n&&"object"==typeof n&&0!==Object.keys(n).length&&Ye.emit("customMapEvent",{name:""+e,val:n,domEl:t})},trigger3rdPartyMap:function(e){Ye.emit("api:captureObject",e)},isRecording:function(){return!(Qe&&Qe.isStopped())},startRecording:function(){Qe&&Qe.start()},stopRecording:function(){Qe&&Qe.stop()},invalidateSession:function(){Ye.emit("invalidateSession"),Wi(nn)},flush:function(){Ye.emit("forceFlush"),Ye.emit("iFramesForceFlush")},triggerABTestingEvent:function(e,n,t,r,i){e&&r&&i&&n&&t?"string"==typeof e&&"string"==typeof r&&"string"==typeof i&&"string"==typeof n&&"string"==typeof t?Ye.emit("abTesting",{provider:e,offers:[{variantId:r,variantName:i,experimentId:n,experimentName:t}]}):console.log("Type mismatch - should be String."):console.log("Missing one or more arguments. Expected format: provider, experimentId, experimentName, variantId, variantName")},waitForObjectOnPage:function(e,n,t){try{Z.waitForObjDefined(e,n,function(){try{t()}catch(e){Ye.emit("clsDebug","callback function bad implementation in waitForObjectOnPage API: "+e.message)}})}catch(e){Ye.emit("clsDebug","bad implementation for waitForObjectOnPage API: "+e.message)}},getSessionReplayLink:function(e,n,t){var r=e||$e.gbconsoledomain,i=n||"cls_s",e=t||Ke.sessionId,n=Ze()-792e5,t=Ze()+792e5;return r?"https://"+r+"/webinterface/webui/#/sessions/"+i+":"+e+"/replay?from="+n+"&till="+t:"glassbox console domain was not configured or passed via call to getSessionReplayLink"},sendVocData:function(e){Ye.emit("vocGetData",e)}}),$.on("parentWindowInfo",function(e){nn&&e&&(nn.sessionId=e.sessionId,nn.visitorId=e.visitorId)}),Ye.once("init:loaded",Z.gbBind(Wi,null,nn)),Wi(nn)),Y.enableSessionCamApi&&(S.sessionCamRecorder=(tn=S[C],rn=Le.asStoppable(),on=$,an=[],un=Z.currentTimestamp(),{sendCustomDataEvent:function(e,n){e&&"string"==typeof e&&on.emit("customEvent",{name:""+e,val:""+n})},startSession:function(){rn&&rn.start()},endSession:function(e){rn&&rn.stop()&&(tn.invalidateSession(),e&&rn.start())},sessionId:function(){return tn.sessionId},registerFields:function(){return Q},registeredFieldsGetValue:function(){return""},getFieldValue:function(){return""},getSessionCamUserId:function(){return""},createVirtualPageLoad:function(e){if("string"!=typeof e)return!1;0===an.length&&an.push(tn.page.url);var n=Z.currentTimestamp(),t=an[an.length-1];on.emit("segmentChanged",{type:"path",current:e,last:t,lastDwell:n-un}),an.push(e),un=n},closeVirtualPage:function(e){var n,t=Z.currentTimestamp(),r=an[an.length-1];an.length<=1||(e?(n=an[0],an=[]):(an.pop(),n=an[an.length-1]),on.emit("segmentChanged",{type:"path",current:n,last:r,lastDwell:t-un}),un=t)}})),(S.Zone&&S.Zone.root&&"function"==typeof S.Zone.root.wrap?S.Zone.root.wrap(Le.initialize):Le.initialize).call(Le)))}("_detector","undefined"!=typeof window?window:self,"undefined"==typeof window,"undefined"!=typeof document?document:void 0,"6.6.28B38");