!function(){"use strict";if(window.VWO=window.VWO||[],window.VWO.coreLibExecuted)return;window.VWO.coreLibExecuted=1,window.VWO.v="7.0",window.VWO.v_e="7a1416e";const e=e=>{try{window.VWO._.customError(e)}catch(e){}};function t(t,o={sendErrorLog:!1},n){try{return t()}catch(t){return o.sendErrorLog&&setTimeout(()=>{try{e({msg:o.msg||"safelyGetValue failed!",url:o.url||"errorHandler.ts",source:o.source||t})}catch(e){}},100),n}}function o(e,o={sendErrorLog:!0}){return t(()=>e.toLowerCase(),o,"")}let n;const i=function(){if(void 0!==n)return n;const e=[],o=window.VWO._.allSettings.dataStore.campaigns;let i,s,r,a,d;for(let t in o)e.push(t);return n=!!(i=(window.location.search+window.location.hash).match(/.*_vis_test_id=(.*?)&.*_vis_opt_preview_combination=(.*?)(?:&|#|$)/))&&(!(!e.includes(i[1])||!o[i[1]]||(d=o[i[1]].combs,[r,a]=(s=function(e){if(!e)return e;try{e=window.decodeURIComponent(e)}catch(e){}return e}(i[2])).split(","),void 0===t(void 0!==a?()=>d[r][a]:()=>d[r])))&&s),n};var s;const r=null===(s=window._vwoCc)||void 0===s?void 0:s.cookiePrefix;class a{constructor(){var e,t;window.VWO._.phoenixMT.on("vwo_campaignsLoaded",()=>{this.processLoadedCampaigns(),window.VWO.state="executionComplete"}),(null===(e=window.VWO._.phoenixMT.getEventHistory("vwo_campaignsLoaded"))||void 0===e?void 0:e.length)>0&&(this.processLoadedCampaigns(),(null===(t=window._vwoCc)||void 0===t?void 0:t.delayCustomGoal)||window.VWO._.phoenixMT.clearEventHistory("vwo_campaignsLoaded"))}processLoadedCampaigns(){this.setBucketedCampaigns(),this.executeAll({bucketed_campaigns:window.VWO._.bucketedCampaignsAPIStore.campaigns})}setBucketedCampaigns(){window.VWO._.bucketedCampaignsAPIStore=window.VWO._.bucketedCampaignsAPIStore||{},window.VWO._.bucketedCampaignsAPIStore.campaigns=[];let e=window._vis_debug||i()?"debug":"";e+="_vis_opt_exp_";const t=new RegExp(`^${o=e,r?o.startsWith(r)?o:`${r}${o}`:o}(\\d{1,})_combi$`,"");var o;const n=document.cookie.split(";");for(let e=0;ee.trim()),s=t.exec(o);s&&_vwo_exp[s[1]]&&window.VWO._.bucketedCampaignsAPIStore.campaigns.push({[s[1]]:i,name:_vwo_exp[s[1]].name,variation:_vwo_exp[s[1]].comb_n[i]})}}executeAll(e={}){const o=t(()=>window.VWO._.bucketedCampaignsAPIStore.callbacks.length)||0;for(let n=0;n"number"==typeof o.count)?o.count>0?(o(e),--o.count):(window.VWO._.bucketedCampaignsAPIStore.callbacks.splice(n,1),n--):o(e)}}}function d(e,t,o,n){return new(o||(o=Promise))(function(i,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?i(e.value):(t=e.value,t instanceof o?t:new o(function(e){e(t)})).then(r,a)}d((n=n.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const l="cCC",c="hCl",w="vwo_dynDataFetched",u="vwo__activated",_="nSF",g="vwo_dom_submit",E="vwo_dom_hover",h="vwo_dom_focus",v="vwo_dom_blur",O="vwo_pageUnload",p="vE",A="pageExitEvent",S="cCAI",f="loadSurveyLib",C="vwo_widgetClose",m="vwo_widgetShown";class I{constructor(){this.forceKeys={id:"forceIdSelector",class:"forceClassSelector",customAttribute:"forceCustomAttributeSelector"},this.regexCache={}}shouldUseAttributeSelector(e,t,o){if(!!((e&&e.getRootNode())instanceof ShadowRoot)||t.dAttrName||o._vwo_noAttributeMode)return null;const n=this.createRegex("string"==typeof t.dAttrName?t.dAttrName:""),i=[],s=e.attributes;if(s)for(let e=0;e1){const e=i.slice(0,3).map(e=>this.createAttributeSelector(e.name,e.value)).join("");if(this.verify(e,t))return e}return null}createAttributeSelector(e,t){return`[${e}='${t?t.replace(/'/g,"\\'"):""}']`}escapeCSS(e){return"undefined"!=typeof CSS&&CSS.escape?CSS.escape(e):e}createRegex(e){if(!e)return null;if(this.regexCache[e])return this.regexCache[e];try{const t=new RegExp(e);return this.regexCache[e]=t,t}catch(e){return null}}isDynamicAttribute(e=""){return I.RE_DYNAMIC_ATTRIBUTE_1.test(e)||I.RE_DYNAMIC_ATTRIBUTE_2.test(e)}isDynamicId(e){return(I.RE_DYNAMIC_ID_1.test(e)||I.RE_DYNAMIC_ID_2.test(e))&&!I.RE_DYNAMIC_ID_FOR_ADDED_WIDGET.test(e)}isVwoClass(e){return e.indexOf("vwo")>-1||e.indexOf("_vwo_")>-1}getSelectorPathSettings(e){return{_vwo_noIdMode:!(!e||!(!0===e.dIdVal||e.selectorPathSetting&&e.selectorPathSetting.hasOwnProperty("editorNoIdMode")))&&(!0===e.dIdVal||e.selectorPathSetting.editorNoIdMode),_vwo_noDynamicIdMode:!(!e||!(e.dDynId||e.selectorPathSetting&&e.selectorPathSetting.hasOwnProperty("editorNoDynamicIdMode")))&&(e.dDynId||e.selectorPathSetting.editorNoDynamicIdMode),_vwo_noClassMode:!(!e||!(e.dClassValBoolean||e.selectorPathSetting&&e.selectorPathSetting.hasOwnProperty("editorNoClassMode")))&&(e.dClassValBoolean||e.selectorPathSetting.editorNoClassMode)}}isDynamicClass(e){return I.RE_DYNAMIC_CLASS_1.test(e)||I.RE_HOVER_CLASS.test(e)}shouldUseTextBasedSelector(e,t){return null}findRecursiveTextBasedSelector(e,t,o){return null}generateShortPath(e,t,o={}){if(!e)return null;if(o.originNode||(o.originNode=e),o.dClassValBoolean=o.hasOwnProperty("dClassValBoolean")?o.dClassValBoolean:!0===o.dClassVal,o.dClassVal="string"==typeof o.dClassVal?`${o.dClassVal}|${I.DEFAULT_EXCLUDE_CLASSES_REGEX}`:I.DEFAULT_EXCLUDE_CLASSES_REGEX,this.shouldUseSiblingSelectorEarly(e,o)){const t=this.shouldUseSiblingSelector(e,o);if(t)return t}if(o.skipRootNodeInSelectorPath&&o.documentRootNode===e)return"";const n=this.getSelectorPathSettings(o);(o.forceTextBasedSelector||o.forceRecursiveTextBasedSelector)&&(n._vwo_noIdMode=!0,n._vwo_noClassMode=!0,n._vwo_noAttributeMode=!0);const i=this.getNodeName(e);if(document.body===e||"head"===i||"html"===i)return i;const s="*"===i,r=!(e.getRootNode()instanceof ShadowRoot),a=this.tryCustomAttributeSelector(e,o,r);if(a)return a;const d=this.createRegex("string"==typeof o.dIdVal?o.dIdVal:"");if(this.shouldUseIdSelector(e,o,n,d))return"#"+e.getAttribute("id");const l=this.shouldUseClassSelector(e,o,n);if(l)return l;const c=this.shouldUseAttributeSelector(e,o,n);if(c)return c;if(r){const t=this.shouldUseTextBasedSelector(e,o);if(t)return t}if(this.shouldUseRecursiveTextBasedSelector(e,o,r)){const t=5,n=this.findRecursiveTextBasedSelector(e,t,o);if(n)return e._vwoCachedShortPath=n,n}const w=this.generateParentPath(e,t,o);if(w&&"string"==typeof w&&-1!==w.indexOf(":nth-parent"))return w;const u=this.generateCurrentNodePath(e,i,s,o);if(o.skipRootNodeInSelectorPath&&!w)return u;const _=this.handleSlotAssignment(e,u);return this.isSpecialUrlCase()?this.handleSpecialUrlCase(e,w,_):`${w} > ${_}`}shouldUseSiblingSelectorEarly(e,t){return!t.skipTextBasedSelector&&window._vwo_textBasedSelectorMode&&window.eventArchEnabled&&t.recursiveCall&&window._vwo_textBasedSelectorV2Mode}getNodeName(e){const t=e.nodeName.toLowerCase(),o=t.match(I.DANGEROUS_NODE_REGEX);return o&&o[0]===t?t:e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.nodeName:"*"}tryCustomAttributeSelector(e,t,o){const n=this.forceKeys;if(!o||!t[n.customAttribute]&&!window._vwo_useAttributeForSelector&&!t.isContainedInBasicOrPastedElement||this.isForceAttributeSelectorRequired(t))return null;const i=t[n.customAttribute]&&t.forceCustomAttributeName||(t.isContainedInBasicOrPastedElement?"vwo-element-id":void 0)||window._vwo_useAttributeForSelector,s=t[n.customAttribute]&&t.forceCustomAttributeValue||(i?e.getAttribute(i):void 0);if(!s)return null;const r=`[${i}='${s}']`;return t[n.customAttribute]||this.verify(r,t)?r:null}shouldUseRecursiveTextBasedSelector(e,t,o){return!t.skipTextBasedSelector&&!t.skipRecursiveTextBasedSelector&&window._vwo_textBasedSelectorMode&&o&&window.eventArchEnabled&&!t.recursiveCall&&e.innerText&&-1===e.innerText.indexOf("<%=")&&window._vwo_textBasedSelectorV2Mode}generateParentPath(e,t,o){const n=e.parentNode||e.host;return t?this.generateCachedShortPath(n):this.generateShortPath(n,t,Object.assign(Object.assign({},o),{recursiveCall:!0,parentLevel:0}))}generateCurrentNodePath(e,t,o,n){let i=0;for(let t=e;t;t=t.previousSibling)(e.nodeName===t.nodeName||o&&t.nodeType===Node.ELEMENT_NODE)&&i++;return t+(o?":nth-child(":":nth-of-type(")+i+")"}handleSlotAssignment(e,t){return e.assignedSlot&&document.contains(e.assignedSlot)?` slot > ${t}`:t}isSpecialUrlCase(){return window.location&&-1!==window.location.href.indexOf("https://quote.cignaglobal.com/s/")||!1}handleSpecialUrlCase(e,t,o){let n=o;if(e.assignedSlot&&(n=" slot > #assignElements()"),e.shadowRoot&&-1===n.indexOf("#document-fragment:nth-child(1)")&&(n=`${n} > #document-fragment:nth-child(1)`),t&&"string"==typeof t){const e=t.split(">").map(e=>e.trim());if("#document-fragment:nth-child(1)"===e[e.length-1]&&"#document-fragment:nth-child(1)"===n)return t}return`${t} > ${n}`}isUnstableClass(e){return!1}isForceAttributeSelectorRequired(e){return!!e&&!!(e[this.forceKeys.customAttribute]||e[this.forceKeys.id]||e[this.forceKeys.class])}shouldUseSiblingSelector(e,t){return null}shouldUseIdSelector(e,t,o,n){const i=e.getAttribute("id");return!(e.getRootNode()instanceof ShadowRoot)&&t[this.forceKeys.id]||(!o._vwo_noIdMode||t.isContainedInWidget)&&i&&(!n||!n.test(i))&&!I.EXCLUDED_NODE_NAMES.test(e.nodeName)&&!(o._vwo_noDynamicIdMode&&this.isDynamicId(i))&&this.verify("#"+i,t)&&!this.isForceAttributeSelectorRequired(t)}shouldUseClassSelector(e,t,o){if(!!(e.getRootNode()instanceof ShadowRoot)||!e.hasAttribute||!t[this.forceKeys.class]&&(!e.hasAttribute("class")||o._vwo_noClassMode||t.isContainedInWidget||t.isContainedInBasicAddElement)||this.isForceAttributeSelectorRequired(t))return null;const n=e.getAttribute("class").split(/\s+/),i="string"==typeof t.dClassVal?n.filter(e=>{const o=this.createRegex(t.dClassVal);return!this.isVwoClass(e)&&!this.isUnstableClass(e)&&I.VALID_CLASS_NAME_REGEX.test(e)&&(!o||!o.test(e))}):n.filter(e=>!this.isVwoClass(e)&&!this.isUnstableClass(e)&&I.VALID_CLASS_NAME_REGEX.test(e));for(const e of i)if(t.forceClassSelector||this.verify(e,t,"class")&&!this.isDynamicClass(e))return"."+this.escapeCSS(e);if(i.length>0){const e=i.map(e=>this.escapeCSS(e)),o="."+e.join(".");if(t.forceClassSelector||this.verify(o,t)&&!this.isDynamicClass(e.join(".")))return o}return null}generateCachedShortPath(e,t){return e?e._vwoCachedShortPath?e._vwoCachedShortPath:e._vwoCachedShortPath=this.generateShortPath(e,!0,t):null}verify(e,t,o){try{const n=t.documentRootNode||document;return"class"===o?!!t._vwo_skipUniqueElementsCheck||1===n.getElementsByClassName(e).length:1===n.querySelectorAll(e).length}catch(e){return!1}}}function N(e,t){if(e){var o,n="."+e,i=window.vwo_$;if((t=t||{})[e])return!1;try{o=i(n)}catch(e){o=""}return 1===o.length||(t[e]=!0,!1)}}function T(e){if(e){var t,o=window.vwo_$;try{t=o("#"+e)}catch(e){t=""}return t.length}}function V(e,t){var o=t[e](),n=t.get(0);if(!o){if(window.getComputedStyle&&void 0!==(o=getComputedStyle(n)[e])&&(o=parseInt(o,10),!isNaN(o)&&o))return o;o=n["client"+e.toUpperCase()[0]+e.substring(1,e.length)]}return o}function W(e){if(e.previousElementSibling)return e.previousElementSibling;for(;e=e.previousSibling;)if(1===e.nodeType)return e}function R(e,t){if(!e)return null;if(e===document)return"#document";t=t||{};var o,n,i,s,r,a=e,d=[],l=e.tagName,c=window.vwo_$;if(e===document.body||e===document.head)return l;for(;e;){o=(l="undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot?"shadow-root":e.tagName)&&l.match(/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/),l&&o&&(o&&o[0])===l||(l="*");const u=["INPUT","SELECT"].indexOf(e.tagName)>-1;try{n=c(e).attr("id")}catch(a){n=e.id}u&&e.name?l=l+'[name="'+e.name+'"]':n&&"string"==typeof n&&T(n)&&(l=n.match(/^\d/)?l+'[id="'+n+'"]':l+"#"+n),i=(i=e.getAttribute&&e.getAttribute("class"))?i.split(/\s+/):[];for(var w=0;w "+d.join(" + ")}function L(e){return e instanceof SVGElement&&e.tagName&&"svg"!==e.tagName.toLowerCase()?L(e.parentNode):e}function b(e,t){return Math.round(e/t*100)}function D(){const e=document.querySelector("._vwo_scroll_fix"),t=e||document.documentElement,o=(null==e?void 0:e.scrollTop)||window.scrollY||window.pageYOffset,n=(null==e?void 0:e.scrollLeft)||window.scrollX||window.pageXOffset,i=t.scrollHeight,s=t.scrollWidth,r=window.innerHeight,a=window.innerWidth,d=o+r,l=b(d,i),c=n+a;return{xScrollPercent:b(c,s),yScrollPercent:l,absXScroll:c,absYScroll:d,contentWidth:s,contentHeight:i,scrollTop:o}}var y;I.EXCLUDED_KEY_STRINGS=["data-user-id","data-kriti-","data-user-name","data-user-email","data-customer-logged-in","data-session-id","data-cart-id","data-timestamp","data-date","data-time","data-order-number","data-product-id","data-token","data-api-key","data-ga-","data-gtm-","data-utm-","data-tracking-id","data-session-count","data-page-view","data-locale","data-language","data-currency","data-region","data-experiment-id","data-variant-id","data-personalization-id","data-ab-test-group"],I.EXCLUDED_ATTR_VALUES_REGEX=/^(1|0|true|false|self|logged-in|log)$/,I.EXCLUDED_ATTR_KEYS_REGEX=new RegExp(`^(${I.EXCLUDED_KEY_STRINGS.join("|")})`),I.DATA_SELECTOR_CHECK=/^data-(.+)/,I.VALID_CLASS_NAME_REGEX=/^[^:]+$/,I.DANGEROUS_NODE_REGEX=/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,I.EXCLUDED_NODE_NAMES=/base|link|meta|style|iframe|script|noscript/gi,I.DEFAULT_EXCLUDE_CLASSES_REGEX="(^elementor-)|elementor-|(^active)|active|(^sc-)|(^pf-)|(^__pf)",I.RE_DYNAMIC_ATTRIBUTE_1=/[a-z]+[_-]?([0-9_-]){2,}$/,I.RE_DYNAMIC_ATTRIBUTE_2=/[0-9a-z]{5,}/gi,I.RE_DYNAMIC_ID_1=/[a-z]+[_-]?([0-9_-]){2,}$/,I.RE_DYNAMIC_ID_2=/[0-9a-f]{5,}/gi,I.RE_DYNAMIC_ID_FOR_ADDED_WIDGET=/(vwo-widget-)[0-9]{2,}/gi,I.RE_DYNAMIC_CLASS_1=/[a-z]+[_-][0-9_-]{4,}/gi,I.RE_HOVER_CLASS=/hover/gi,function(e){e[e.SCHEDULE_CALLBACK=0]="SCHEDULE_CALLBACK",e[e.REQUEST_IDLE_CALLBACK=1]="REQUEST_IDLE_CALLBACK",e[e.REQUEST_ANIMATION_FRAME=2]="REQUEST_ANIMATION_FRAME",e[e.QUEUE_MICROTASK=3]="QUEUE_MICROTASK",e[e.SET_TIMEOUT=4]="SET_TIMEOUT"}(y||(y={}));const U={[y.SCHEDULE_CALLBACK]:{doesThisMethodExist:"function"==typeof t(()=>window.scheduler.yield),defer:e=>window.scheduler.yield().then(()=>e())},[y.REQUEST_IDLE_CALLBACK]:{doesThisMethodExist:"function"==typeof requestIdleCallback,defer:(e,t=200)=>requestIdleCallback(e,{timeout:t})},[y.QUEUE_MICROTASK]:{doesThisMethodExist:"function"==typeof queueMicrotask,defer:e=>queueMicrotask(e)},[y.REQUEST_ANIMATION_FRAME]:{doesThisMethodExist:"function"==typeof requestAnimationFrame,defer:e=>requestAnimationFrame(e)},[y.SET_TIMEOUT]:{doesThisMethodExist:!0,defer:(e,t=0)=>setTimeout(e,t)}},P=(e,{timeout:t=100,type:o=y.REQUEST_IDLE_CALLBACK,fallbackType:n}={})=>{const i=U[o]||U[n];if(i&&i.doesThisMethodExist)return i.defer(e,t);U[y.SET_TIMEOUT].defer(e,t)},M=new I;function G(e){const o=t(()=>window.VWO._.allSettings.dataStore.plugins.DACDNCONFIG.sConfig)||{};return t(()=>M.generateShortPath(e,!1,Object.assign({},o)),{},"")}function x(e){return t(()=>e.tagName.toLowerCase(),null,"")}function k(e){return t(()=>vwo_$(e).attr("placeholder"))}function F(e){const{scrollTop:o,contentHeight:n}=t(D,null,{scrollTop:0,contentHeight:0});return b(t(()=>e.getBoundingClientRect().top+o,null,0),n)}function B(e){const o=t(()=>e.id);if(!o)return;const n=function(e){const o=vwo_$(e);return t(()=>o.closest("form").get(0))||t(()=>o.parent().get(0))}(e);if(!n)return;const i=vwo_$(n),s=t(()=>i.find(`label[for="${o}"]`).get(0));return s?t(()=>{var e;return null===(e=s.textContent)||void 0===e?void 0:e.trim()}):void 0}function H(e){var t;const o=(null===(t=e.target)||void 0===t?void 0:t.shadowRoot)&&e.composedPath,n=vwo_$(o?e.composedPath()[0]:e.target).get(0);return{sPath:o?R(n):G(n),tag:x(n),ph:k(n),scrDp:F(n),label:B(n)}}var Y,$,j,K,X,q,Z;window.VWO.modules.utils.getElementMetadata=H,function(e){e.DOM="vwo_dom"}(Y||(Y={})),function(e){e.WILD_CARD="*",e.TRIGGER="trigger",e.POST_INIT="post-init",e.TIMER="vwo_timer",e.TRIGGER_UPDATES="vwo_triggerUpdates"}($||($={})),function(e){e.URL_CHANGE="vwo_urlChange",e.LEAVE_INTENT="vwo_leaveIntent",e.CLICK_EVENT="vwo_dom_click",e.HOVER_EVENT="vwo_dom_hover",e.BLUR_EVENT="vwo_dom_blur",e.FOCUS_EVENT="vwo_dom_focus",e.CHANGE_EVENT="vwo_dom_change",e.ELEMENT_VIEWED_EVENT="vwo_dom_elementViewed",e.SUBMIT_EVENT="vwo_dom_submit",e.PAGE_LOAD_EVENT="vwo_page_load",e.CAMPAIGN_FREQUENCY_EVALUATED="vwo_campaignFrequencyEvaluated"}(j||(j={})),function(e){e.PAGE_VIEW="vwo_pageView",e.PAGE_UNLOAD_EVENT="vwo_pageUnload"}(K||(K={})),function(e){e.EXIT_CONDITIONS="__exitConditions"}(X||(X={})),function(e){e.DOM_CONTENT_LOADED="DOMContentLoaded",e.SCROLL="scroll",e.CLICK="click",e.SUBMIT="submit"}(q||(q={})),function(e){e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR"}(Z||(Z={}));var Q=new class{constructor(e){this.setLevel(e)}setLevel(e="warn"){this.logLevel=Z[e.toUpperCase()]}info(e,t={}){this.customLog(Z.INFO,e,t)}debug(e,t={}){this.customLog(Z.DEBUG,e,t)}warn(e,t={}){var o,n;this.customLog(Z.WARN,e,t,null===(n=null===(o=window.VWO)||void 0===o?void 0:o._)||void 0===n?void 0:n.customError)}error(e,t={}){var o,n;this.customLog(Z.ERROR,e,t,null===(n=null===(o=window.VWO)||void 0===o?void 0:o._)||void 0===n?void 0:n.customError)}customLog(e,t,o,n=null){var i,s,r;if(e>=this.logLevel){const a=this.formatMessage(e,t,o);null===(r=null===(s=null===(i=window.VWOEvents)||void 0===i?void 0:i.store)||void 0===s?void 0:s.actions)||void 0===r||r.addLogsForDebugging(a),n?n(a):this.consoleLog(e,[a])}}consoleLog(e,t){switch(e){case Z.INFO:console.info(...t);break;case Z.WARN:console.warn(...t);break;case Z.ERROR:console.error(...t);break;default:console.log(...t)}}formatMessage(e,t,o){var n,i;const s=Object.keys(o).reduce((e,t)=>e.replace(new RegExp(`{{${t}}}`,"g"),o[t]),t),r=`${Y.DOM}_`;let a=o;const d=(null===(n=o.data)||void 0===n?void 0:n.vwoEventName)||o.vwoEventName;d!==r+q.CLICK&&d!==r+q.SUBMIT||(a=o.data?null===(i=o.data)||void 0===i?void 0:i.props:a.props,a=a||{name:d});let l=JSON.stringify;try{l=window.VWO._.native.JSON.stringify||JSON.stringify}catch(e){}return`VWO: [${Z[e].toUpperCase()}] [${(new Date).toUTCString()}] ${s} ${l(a)}`}}("warn");function z(){}try{z.prototype=Object.create(Array.prototype),Object.defineProperty(z.prototype,"clear",{value:void 0,writable:!0,enumerable:!1})}catch(e){}const J=null===(ee=window._vwoCc)||"object"!=typeof ee||Array.isArray(ee)?{}:window._vwoCc;var ee;(()=>{const e=J.debugConfig||{};e.CLICK_DEBUG,e.TIMEOUT_DEBUG,e.GA_DEBUG,e.URL_DEBUG,e.VARIATION_SHOWN_DEBUG,e.IN_LIST_DEBUG})(),J.debugLogs,J.disableAsp,J.vwoUuidV2Secure;const te=t(()=>window.VWO._.useCdn)||!1,oe=(J.enableRefreshLimit,J.expUrlChange,window._vwo_acc_id>1044e3||J.enableLoader,J.eblCSync,J.hdPR,J.oscH,J.cPM,J.svIdInSyncListDbgLog,J.wMS,J.mEPR,J.cA_csa,J.dAM,J.observeHTML,J.useSessionInfo,J.mSSR,J.mtUrlChange,J.allowWinnerSelection,J.dNcLT,!!J.dsPCe),ne=!!J.vTsPU,ie=(J.vTST,J.sTVS,J.aRVId,J.sMR,J.aL,J.aCSF,window._vwo_acc_id>1221449||J.hBCS,J.dHRoDr,J.fPVR,J.cDSTR,J.cLID,J.cLIT,J.nUW,J.aLEHIR,J.sTMO,J.eSDO,J.dCEIOS,!!J.sIMCV);J.sWFTPS,J.wPFR,J.aSCCD,t(()=>window._vwoCc.rBQP),J.aSMO,J.nHE,J.gVAoC,(()=>{const e=J.vwoEventCustomLogs;Array.isArray(e)&&e.filter(e=>"string"==typeof e)})(),J.sDN,J.tpcDT;class se{constructor(){this.GoalsEnum=window.VWO._.GoalsEnum,this.eventName=O,this.attachedFilters=[],this.unloadListenersAttached=!1,this.registeredTriggers=[],this.unloadCaptured=!1,this.functionalTriggerFilters=new Set,this.lastResetTime=0,this.goalConverter=new window.VWO.modules.utils.goalUtils.GoalConversion("vwoPageUnloadData",[this.GoalsEnum.PAGE_UNLOAD,this.GoalsEnum.CUSTOM_GOAL]),window.VWO._.phoenixMT.on("vwo_campaignsLoaded",()=>{this.updatePageUnloadTriggers()}),this.updatePageUnloadTriggers()}updatePageUnloadTriggers(){return d(this,void 0,void 0,function*(){const e=yield window.fetcher.getValue("VWO._.pageUnloadTriggers");if(this.pageData=yield window.fetcher.getValue("VWO.pluginStorage.props.page"),!e)return;const t=Object.keys(e);if(this.registeredTriggers.length!==t.length){const e=this.extractPageUnloadFilters(t);this.attachedFilters=function(e){const t=[];return e.forEach(e=>{var o;null===(o=e.filters)||void 0===o||o.forEach((o,n)=>{const i=o[0].substring(0,o[0].indexOf("."));if("event"===i||"page"===i){const i=JSON.parse(JSON.stringify(o));t.push({condition:i,triggerName:e.triggerName,condId:e.id,filterId:n,aux:e.aux})}})}),t}(e),this.registeredTriggers=t,this.addListenersForPageUnload()}})}extractPageUnloadFilters(e){var t;const o=[];for(let n=0;n86400)){e.sdxp=s.xScrollDepthPercent,e.sdxa=s.xScrollDepthAbs,e.sdyp=s.yScrollDepthPercent,e.sdya=s.yScrollDepthAbs,window.VWO._.lastPageUnloadURL=this.pageData.url;try{e.preComputedConds=window.VWO.modules.utils.triggers.triggersConditionsCheck(this.eventName,e,this.attachedFilters),o={name:this.eventName,vwoEventName:this.eventName,preComputedConds:e.preComputedConds,page:this.pageData,timeSpent:e.timeSpent,sdxp:e.sdxp,sdxa:e.sdxa,sdyp:e.sdyp,sdya:e.sdya,postSyncCallback:function(){delete window.VWO._.lastPageUnloadURL}},window.VWO._.functionalDSLUtils.evaluateFunctionalTriggers({event:e,eventName:this.eventName,functionalTriggerFilters:this.functionalTriggerFilters}),this.goalConverter.fireEventForConversion(this.eventName,o,{eventData:e}),delete o.preComputedConds;const n=t(()=>o._vwo.eventDataConfig)||{};e._vwo=e._vwo||{},Object.keys(n).length&&(e._vwo.eventDataConfig=n),e._vwo.syncEventData=o}catch(e){Q.error(e)}}}resetStartTimeAndPageData(){this.lastResetTime=performance.now(),this.updatePageUnloadTriggers()}sendDataWrapper(e){return this.unloadCaptured?this.unloadCaptured=!1:(window.VWO._.phoenixMT.trigger(O,e),this.unloadCaptured=!0)}addListenersForPageUnload(){this.unloadListenersAttached||(window.VWO._.phoenixMT.on(O,e=>{this.evaluateAndSendData(e)},{syncToDataLayer:!0}),window.VWO._.phoenixMT.on(A,e=>{this.sendDataWrapper(e)}),this.initScrollTracking=function(){let e,t,o=0,n=0,i=0,s=0;const r=document.querySelector("._vwo_scroll_fix");function a(r=!1){try{const{xScrollPercent:a,yScrollPercent:d,absXScroll:l,absYScroll:c,contentWidth:w,contentHeight:u}=D(),_=ta(!0)),r?r.addEventListener("scroll",()=>a()):window.addEventListener("scroll",()=>a()),{getFinalScrollValues:function(){return{xScrollDepthAbs:o,yScrollDepthAbs:n,xScrollDepthPercent:i>100?100:i,yScrollDepthPercent:s>100?100:s}},updateScrollState:a}}(),window.VWO._.phoenixMT.on("vwo_urlChangeMt",e=>{window.VWO._.phoenixMT.trigger(O,e),this.resetStartTimeAndPageData()}),this.unloadListenersAttached=!0)}}var re,ae,de;!function(e){e.SURVEY_CAMPAIGN="SURVEY",e.ANALYZE_HEATMAP_CAMPAIGN="ANALYZE_HEATMAP",e.ANALYZE_RECORDING_CAMPAIGN="ANALYZE_RECORDING",e.ANALYZE_FORM_CAMPAIGN="ANALYZE_FORM",e.ANALYSIS_CAMPAIGN="ANALYSIS",e.GOAL_CAMPAIGN="TRACK",e.FUNNEL_CAMPAIGN="FUNNEL",e.INSIGHTS_FUNNEL_CAMPAIGN="INSIGHTS_FUNNEL",e.INSIGHTS_METRIC_CAMPAIGN="INSIGHTS_METRIC"}(re||(re={})),function(e){e.ANALYSIS="r",e.ANALYZE_FORM="a",e.ANALYZE_HEATMAP="a",e.ANALYZE_RECORDING="a",e.FUNNEL="t",e.SURVEY="s",e.TRACK="t",e.INSIGHTS_FUNNEL="t",e.INSIGHTS_METRIC="t"}(ae||(ae={})),function(e){e.SEPARATE_PAGE="SEPARATE_PAGE",e.CLICK_ELEMENT="CLICK_ELEMENT",e.ENGAGEMENT="ENGAGEMENT",e.FORM_SUBMIT="FORM_SUBMIT",e.ON_PAGE="ON_PAGE",e.REVENUE_TRACKING="REVENUE_TRACKING",e.CUSTOM_GOAL="CUSTOM_GOAL",e.PAGE_UNLOAD="PAGE_UNLOAD",e.WIDGET_CLOSE="WIDGET_CLOSE",e.WIDGET_SHOWN="WIDGET_SHOWN"}(de||(de={}));const le=()=>{var e,t;return null===(t=null===(e=window.Wingify)||void 0===e?void 0:e._)||void 0===t?void 0:t.code},ce=()=>!!le();function we(o,n){let i=!1;const s=function(){i||(i=!0,function(o,n){var i,s,r,a,d,l,c,w,u;const g=window.VWO._.domains.sv+window._vwo_cdn,E=window.VWO._.domains.sv,h=null===(r=null===(s=null===(i=window.VWO._.allSettings)||void 0===i?void 0:i.dataStore)||void 0===s?void 0:s.plugins)||void 0===r?void 0:r.LIBINFO,v=null===(a=null==h?void 0:h.TRACK)||void 0===a?void 0:a.HASH,O=null===(d=null==h?void 0:h.OPA)||void 0===d?void 0:d.HASH,p=null===(l=null==h?void 0:h.OPA_NG)||void 0===l?void 0:l.HASH,A=null===(c=null==h?void 0:h.OPA)||void 0===c?void 0:c.PATH,S=null===(w=null==h?void 0:h.SURVEY)||void 0===w?void 0:w.HASH;let C=!1,m=!1;const I=null===(u=window.VWO._)||void 0===u?void 0:u.loadPC;let N=!1,T=window._vis_apm_lib;const V=[];for(const R of o){const L=window.VWO._.allSettings.dataStore.campaigns;if(Object.prototype.hasOwnProperty.call(L,R)){const b=L[R];if(b.type!==re.ANALYSIS_CAMPAIGN&&b.type!==re.ANALYZE_FORM_CAMPAIGN&&b.type!==re.ANALYZE_HEATMAP_CAMPAIGN&&b.type!==re.ANALYZE_RECORDING_CAMPAIGN||(C=!0,m=!0),b.type!==re.FUNNEL_CAMPAIGN&&b.type!==re.GOAL_CAMPAIGN&&b.type!==re.INSIGHTS_FUNNEL_CAMPAIGN&&b.type!==re.INSIGHTS_METRIC_CAMPAIGN||(m=!0),b.type===re.SURVEY_CAMPAIGN||b.survey&&b.survey.id){if(window.VWO._.dSl)continue;for(var W in N=!0,b.survey)Object.prototype.hasOwnProperty.call(b.survey,W)&&V.push(W)}}}if(I&&window.VWO.modules.utils.loadScript(`${g}web/djIkcGM6MS4w/tag-1a6cb79d9b921e9f733a3a9f91c43b90.js`,null,function(){}),m&&!window.VWO.v_t&&window.VWO.modules.utils.loadScript(`${g}7.0/track-${v}.js`),C&&!window.VWO.nls){window.VWO.v_t||window.VWO.modules.utils.loadScript(`${g}7.0/track-${v}.js`);const D=window.vwo_$.fn.gQVersion?"opaEv_ng":"opaEv",y=window.vwo_$.fn.gQVersion?p:O;function U(t){const o={dSC:!0,onloadCb:function(e,t){var o;if(200===e.status||304===e.status)return null===(o=le())||void 0===o||o.addScript({text:e.responseText}),void window.VWO.modules.vwoUtils.optOut.callStopAnalyzeAndSurvey();window.VWO._.gcpfb(t,U,e.status)},onerrorCb:function(t){window.VWO._.gcpfb(t,U)||e({msg:"Error in loading OPA library"})}};window.VWO.load_co(t,o)}U(`${g}analysis${A}/${D}-${y}.js`)}if(!window.VWO._[f]){const P=window.VWO.featureInfo.sse;!window.VWO.v_t&&P&&window.VWO.modules.utils.loadScript(`${g}7.0/track-${v}.js`);const M=()=>{const e=t(()=>window.VWO._.useCdn)?`${g}static/1.0/`:E;window.VWO.modules.utils.loadScript(`${e}va_survey-${S}.js`)};window.VWO._.shouldLoadSurveyLib?M():window.VWO.phoenix('on("${{1}}", "${{2}}")',null,{captureGroups:[f,M]})}if(T&&!window.VWO.apm){const G=window._vis_apm_lib,x=te?`${g}${G}`:`${E}${G}`;window.VWO.modules.utils.loadScript(x,null,()=>{},{defer:!0})}N&&n&&window.VWO.phoenix('trigger("${{1}}", "${{2}}")',null,{captureGroups:[_,{oldArgs:[V]}]})}(o,n))},r=()=>window.VWO._.defer(s);!function(e){if("undefined"==typeof PerformanceObserver)return;let t=!1;const o=new PerformanceObserver(n=>{n.getEntries().length&&!t&&(t=!0,o.disconnect(),e())});try{o.observe({type:"largest-contentful-paint",buffered:!0})}catch(e){}}(r),function(e){if("complete"===document.readyState)e();else{const t=()=>{window.removeEventListener("load",t),e()};window.addEventListener("load",t)}}(r)}function ue(e,t){const o=window.VWO.consentMode;if(o){if(o.dTI)return;if(o.hTI){const o=window.VWO._.phoenixMT.on(S,()=>{window.VWO._.phoenixMT.off(S,o),window.fetcher.setValue("VWO.consentMode.hTI",!1),window.VWO.phoenix('trigger("${{1}}")',null,{captureGroups:[S]}),we(e,t)});return}}we(e,t)}window.VWO._.loadNonTestingLibraries=ue;const _e=[re.ANALYSIS_CAMPAIGN,re.SURVEY_CAMPAIGN,re.ANALYZE_RECORDING_CAMPAIGN,re.ANALYZE_HEATMAP_CAMPAIGN,re.ANALYZE_FORM_CAMPAIGN,re.GOAL_CAMPAIGN,re.FUNNEL_CAMPAIGN,re.INSIGHTS_FUNNEL_CAMPAIGN,re.INSIGHTS_METRIC_CAMPAIGN];const ge={[re.ANALYZE_RECORDING_CAMPAIGN]:!0,[re.ANALYZE_HEATMAP_CAMPAIGN]:!0,[re.ANALYZE_FORM_CAMPAIGN]:!0,[re.GOAL_CAMPAIGN]:!0,[re.FUNNEL_CAMPAIGN]:!0,[re.INSIGHTS_FUNNEL_CAMPAIGN]:!0,[re.INSIGHTS_METRIC_CAMPAIGN]:!0};const Ee=[re.ANALYZE_RECORDING_CAMPAIGN,re.ANALYZE_HEATMAP_CAMPAIGN,re.ANALYZE_FORM_CAMPAIGN];const he=[re.INSIGHTS_FUNNEL_CAMPAIGN,re.INSIGHTS_METRIC_CAMPAIGN];const ve={isDomIndependentCampaign:function(e){return _e.includes(e)},isSessionBasedCampaign2:function(e={}){return!!ge[e.type||""]},isAnalyzeCampaign:function(e){return Ee.includes(e)},hasInsightsMetric:function(e){return he.includes(e)}};let Oe=e=>e;window.VWO._.namespaceKeyWithAccId=Oe;class pe{constructor(){this.vwoExecutedTriggeredOnce=!1,this.vwoOSCTriggeredOnce=!1,this.vwoDebouncedTimer=null}_debouncedEvent(){this.vwoDebouncedTimer&&clearTimeout(this.vwoDebouncedTimer),this.vwoDebouncedTimer=setTimeout(()=>this._sendCampaignsLoaded(),pe.CAMPAIGNS_LOADED_DELAY)}_sendCampaignsLoaded(){null!==this.vwoCookieListenerId&&(window.VWO._.phoenixMT.trigger("vwo_campaignsLoaded"),window.VWO._.phoenixMT.off(this.vwoCookieListenerId),this.vwoCookieListenerId=null)}_attachCombiListener(){this.vwoCookieListenerId=window.VWO._.phoenixMT.on(l,()=>this._debouncedEvent())}_canAttachCombiListenerOnce(e){return!(!window._vis_debug&&!i())||(this.vwoExecutedTriggeredOnce?e||this.vwoOSCTriggeredOnce:!e)}_attachCombiListenerOnce(e){this._canAttachCombiListenerOnce(e)&&(this._debouncedEvent(),this._attachCombiListener())}execute(){const e=ce();if(this._attachCombiListenerOnce(e),this.vwoExecutedTriggeredOnce)return void(this.vwoOSCTriggeredOnce=!0);const o=function(){const{executableCampaignsOnCurrentPage:e}=window.VWO._,o=window.VWO._.allSettings.dataStore.campaigns,n=[{},[]];if(null==e?void 0:e.length)for(const i of e){const e=o[i];t(()=>window.VWO.modules.utils.libUtils.isTestingCampaign(e.type))&&(e.ready?n[0][i]=e.combination_chosen:n[1].push(i))}const i=le();return((null==i?void 0:i.lT)||(null==i?void 0:i.sT))&&n.push({timeout:!0}),n}();window.VWO._.triggerEvent.apply(window.VWO._.triggerEvent,[p,o]),this.vwoExecutedTriggeredOnce=!0}}pe.CAMPAIGNS_LOADED_DELAY=200;const Ae=new pe,Se=Ae.execute.bind(Ae);const fe=()=>window.VWO._,Ce=()=>fe().allSettings.dataStore,me=()=>t(()=>Ce().plugins,{sendErrorLog:!1},{}),Ie=t(()=>me().UA.br,void 0,""),Ne=t(()=>me().UA.de,void 0,""),Te=("safari"===Ie.toLowerCase()||["ipad","iphone"].includes(Ne.toLowerCase()),t(()=>t(()=>me().DACDNCONFIG,{sendErrorLog:!1},{}).jsConfig.osce,void 0,!1));t(()=>"ios"===me().UA.os.toLowerCase(),void 0,!1),t(()=>Ce().vwoData.ovot);function Ve(e){return 1!=e||!window.VWO._.disableAutofetchSettings}function We(e,t){var o,n,i,s,r,a,d;Ve(e)&&(o=()=>{Ve(e)&&window.VWO.settings.requestSettings(e)},d=!1,-1===(n=+t||0)||i?(r=requestAnimationFrame,a=cancelAnimationFrame):(r=setTimeout,a=clearTimeout),function(...e){d&&(a(s),s=null),s=r(function(){o.apply(this,e)},n),d=!0})()}const Re=e=>{const o=()=>e?We(e,window.VWO._.SPA_NEW_PAGE_SETTINGS_DELAY):function(){const e=t(()=>window.VWO.featureInfo.cS);if(window._vis_opt_heatmap||(window._vis_debug||i())&&!e)return;const{SPA_SETTINGS_DELAY:o,SPA_NEW_PAGE_SETTINGS_DELAY:n}=window.VWO._,s=ce(),r=s?1:2;We(r,s?o:n)}();if(Te){if(Te){if(!(window.VWO._.dynReady||e&&1!==e)){const e=window.VWO._.phoenixMT,t=e.on(w,()=>{e.off(w,t),o()})}else o()}}else o()};window.VWO.settings={requestSettings:function(o){var n;return d(this,void 0,void 0,function*(){const s=window.VWO.modules.utils.libUtils,r=t(()=>window.VWO.featureInfo.cS);if((window._vis_debug||i()||s.isBot2()||window.VWO._.selfHosted)&&!r)return;if(window.VWO._.lsP)return;const{dcdnUrl:a=""}=window._VWO||{},{serverUrl:d,accountId:l,currentUrl:c}=window.VWO.modules.dataStorePlugin,w=le(),u=t(()=>null==w?void 0:w.getVersion)&&w.getVersion();if(a){const t=ce()?4:5,{settingsUrl:o,fallbackUrl:n}=window.VWO._.getSettingsUrl({settingsType:t,cacheParam:!0,txtCfgState:!0});return function(t,o){window.VWO.modules.utils.loadScript(t,()=>{window.VWO.modules.utils.loadScript(o,window.fetcher.getValue("VWO.modules.utils.libUtils.firePageViewEvent"),()=>{},{defer:!0,allowReload:!0}),e({msg:`settings.js type ${ce()?4:5} cdn request failed.`,url:window.location.href,uuid:window.VWO._.cookies.get("_vwo_uuid"),source:encodeURIComponent("settingsjs")})},()=>{},{defer:!0,allowReload:!0})}(o,n)}const _=[],g=window._vwo_exp_ids,E=window._vwo_exp;let h=!1;const v=t(()=>window.VWO.pageGroup.pageConfig),O=t(()=>window.VWO.pageGroup.experimentConfig),p=[],A=[];for(const e in v)Object.hasOwnProperty.call(v,e)&&p.push(e);for(const e in O)Object.hasOwnProperty.call(O,e)&&A.push(e);const S=[];for(let e=0;e=1.4&&u<2){let e;undefined._.jar||(e=(null===(n=le())||void 0===n?void 0:n.getCombinationCookie)&&s.getCombinationCookie()),e&&(C+="&c="+e)}if(4!==o&&_.length){const e="&exc="+_.join("|");C.length+e.length<2e3&&(C+=e)}window.VWO.modules.utils.loadScript(C,()=>window.fetcher.getValue("VWO.modules.utils.libUtils.initAuxiliaryPageView"),()=>{},{defer:!0})})}};const Le=window.VWO.TRACK_SESSION_COOKIE_EXPIRY_CUSTOM||1/48,be={TRACK_GLOBAL_COOKIE_NAME:"_vwo_ds",TRACK_SESSION_COOKIE_NAME:"_vwo_sn",TRACK_SESSION_COOKIE_EXPIRY:Le,SESSION_TIMER_EXPIRE:60*Le*60*1e3*24,COOKIE_VERSION:3,COOKIE_TS_INDEX:1,COOKIE_VERSION_INDEX:0,FIRST_SESSION_ID_INDEX:0,PC_TRAFFIC_INDEX:1,CURRENT_SESSION_ID:6,LAST_SESSION_ID:7,SESSION_COUNT_INDEX:8,LAST_TIMESTAMP_SHOWN_INDEX:9,RELATIVE_SESSION_ID_INDEX:0,PAGE_ID_INFORMATION_INDEX:1,LAST_UPDATED_TIME_INDEX:7,SESSION_SYNCED_STATE_INDEX:4,SESSION_SEG_INFO_INDEX:5,TOTAL_TIME_SPENT_IN_A_SESSION_INDEX:6,PAGE_ID_EXPIRY:15,GLOBAL_OPT_OUT:"_vwo_global_opt_out",OPT_OUT:"_vis_opt_out",TEST_COOKIE:"_vis_opt_test_cookie",COOKIE_JAR:"_vwo",SAME_SITE:"_vwo_ssm",UUID:"uuid",UUID_V2:"uuid_v2",VWO_COOKIE_QUERY_PARAM:"vwo_q",DEFAULT_EXPIRY:100,UUID_COOKIE_EXPIRY:365.2425};const De=window.VWO.modules.events.fireEventAndSyncData,ye=window.VWO._.commonCookieHandler,Ue=window.VWO._.libUtils;function Pe(){const e=function(){const e=(ye.getDataInfoByIndex(5)||"").split(",")[1];return Number(e)+window.VWO._.sessionInfoService.getFirstSessionId()||0}(),t=window.VWO.data.accountJSInfo,o=t.iqst||window.VWO.data.iqst||0;if(t.iqe&&e{if(i.includes(`${e}`)){const r=i.split("_");r[3]&&r[3]==n.toString()?parseInt(r[2],10)+1==o?(s=[e,t,o,n].join("_"),window.VWO._.phoenixMT.trigger("vwo_insightsFunnel",{data:s})):s=[e,t,r[2],n].join("_"):1==o?(s=[e,t,1,n].join("_"),window.VWO._.phoenixMT.trigger("vwo_insightsFunnel",{data:s})):s=[e,t,0,n].join("_")}}),s):""}(e,t,o,n));var s=ye.getDataStore(),r=s.split(":");if(!r[2])for(let e=r.length;e<=2;e++)r[e]="";r[2].match(new RegExp("(?:^|,)("+e+"_[^,]+)"))?r[2]=r[2].replace(new RegExp("(^|,)("+e+"_[^,]+)"),"$1"+i):r[2]+=(0===r[2].length?"":",")+i,s=r.join(":"),ye.setDataStore(s)}function Ge(e,t){const o=ye.getDataStore().split(":")[2];return new RegExp(`(?:,|^)${e}_${t}(?:_[^,]*)?(?:,|$)`).test(o)?"1":""}const xe={isVisBucketedForTrack:Pe,includeFunnel:function(e){Me(e,1)},excludeFunnel:function(e){Me(e,0)},isFunnelIncluded:function(e){return Ge(e,1)},isFunnelExcluded:function(e){return Ge(e,0)},activateFunnels:function(){var e;return d(this,void 0,void 0,function*(){if(!(null===(e=window.VWO._.track)||void 0===e?void 0:e.loaded)&&Pe()){const e=Object.keys(window._vwo_exp||{}).map(function(e){return d(this,void 0,void 0,function*(){if(window._vwo_exp&&window._vwo_exp[e]){const t=window._vwo_exp[e].type;Ue.hasInsightsMetric(t)&&(yield De(window.VWO.phoenix,u,{id:e}))}})});yield Promise.all(e),window.VWO._.phoenixMT.trigger("vwo_insightsActivated")}})},markFunnelValue:Me,includeInsightsMetric:function(e){Me(e,1)},isMetircTriggered:function(e){const t=ye.getDataStore().split(":")[2];return new RegExp(`(?:,|^)${e}_1(?:_[^,]*)?(?:,|$)`).test(t)},fetchInsightsTPC:function(){if(!window.VWO._.libUtils.shouldUseCrossDomainForInsights())return;const e=window.VWO._.networkClient,t=window.VWO._.domains.sv;e.request({url:t+"ping_tpc.php?account="+window._vwo_acc_id+"&getCookieData=true&random="+Math.random(),method:"GET",cacheBurst:!0},{onSuccessCallback:e=>d(this,void 0,void 0,function*(){try{const t=yield e.json();t&&t.cookies&&window.VWO._.libUtils.syncThirdPartyGlobalCookies(t.cookies)}catch(e){}}),onErrorCallback:()=>{}})},setTPCOnPageExit:function(){if(!window.VWO._.libUtils.shouldUseCrossDomainForInsights())return;const e={_vwo_ds:Math.min(window.VWO.TRACK_GLOBAL_COOKIE_EXPIRY_CUSTOM||window.VWO.data.rp||90,90),_vwo_sn:be.TRACK_SESSION_COOKIE_EXPIRY,_vwo_uuid_cd:be.UUID_COOKIE_EXPIRY};Object.entries(e).forEach(([e,t])=>{const o=window.VWO._.cookies.get(e);o&&window.VWO._.cookies.setThirdPartyCookie(window._vwo_acc_id,e,o,t)})}},ke=window.VWO.modules.utils.campaignUtils,Fe=window.VWO.modules.utils.libUtils,Be=window.VWO.modules.tags.dataSync.utils,He=window.VWO.modules.dataStorePlugin,Ye=Object.keys;const $e=new class{getTargetPathInfo(e){let n,i,s,r,a,d,l,c,w;n=vwo_$(t(()=>e.composedPath()[0])||e.target),i=n.get(0);const u=L(i);u!==i&&(i=u,n=vwo_$(i));const _=H(e);return c=oe||!_.sPath?R(i):_.sPath,"string"!=typeof c||"html"===o(c)||Fe.isBot2()||(w=n.offset(),"touchend"===e.type?(a=e.originalEvent&&e.originalEvent.changedTouches[0],a&&(s=a.pageX,r=a.pageY)):(s=e.pageX,r=e.pageY),d=Math.round(1e3*(s-w.left)/function(e){return e[0].getBoundingClientRect().width||e.outerWidth()||V("width",e)}(n))/1e3,l=Math.round(1e3*(r-w.top)/function(e){return e[0].getBoundingClientRect().height||e.outerHeight()||V("height",e)}(n))/1e3,(0>d||1l||1Be.sendCall({serverUrl:He.serverUrl,accountId:d},{url:s})),window.VWO._.isLinkRedirecting=!1,i=i&&window.VWO._.isBeaconAvailable,window.VWO.modules.tags.wildCardCallback({oldArgs:[n,e,u,_,g]},c);const o={x:_,y:g,path:u,tag:h,ph:v,scrDp:O,label:p},l="id_"+n;a[r]?a[r]=Object.assign(Object.assign({},a[r]),{[l]:e}):a=Object.assign(Object.assign({},a),{[r]:Object.assign({[l]:e},o)})}else Fe.inQACampaign(n)&&window.VWO.modules.tags.wildCardCallback({oldArgs:[n,e,u,_,g]},c)}return a}};window.VWO.modules.utils.heatmapUtils=$e;const je=(e={})=>{t(()=>window.VWO.modules.tags.sessionInfoService.eraseSessionCookie()),window.fetcher.setValue("window._vwo_uuid",null),window.fetcher.setValue("window.VWO._.allSettings.dataStore.uuid",null),window._vwo_uuid=null,window.VWO._.allSettings.dataStore.uuid=null,(e=>{const o=window.VWO._.cookies,n=o.getAll(),i=/^(debug)?(_vis_opt|_vwo)/;for(const s in n)if(i.test(s)){const n=/(_vis_opt_exp_|_vwo_uuid_)(\d+)/,i=t(()=>n.exec(s)[2]);i||"_vwo"==s?(o.createThirdParty(s,"",-1,null,i,void 0,void 0,void 0,void 0,e),s.includes("combi")&&o.createThirdParty(`_vis_opt_exp_${i}_combi_choose`,"",-1,null,i,void 0,void 0,void 0,void 0,e)):o.create(s,"",-1,void 0,void 0,void 0,void 0,e)}})(e),Object.keys(window.localStorage).forEach(e=>{e.indexOf("vwo")>-1&&window.localStorage.removeItem(e)}),window.VWO._.sessionInfoService.setVisitorInformation("new"),t(()=>window.VWO._.crossStore.removeAll()),window.VWO._.phoenixMT.trigger("vwo.session.destroyed"),955434===window._vwo_acc_id&&t(()=>window.VWO._.tua.clearCallbacks())};function Ke(e){const t=function(e){return Object.keys(e).filter(t=>Object.prototype.hasOwnProperty.call(e,t))}(window._vwo_exp[e.toString()].goals);return t[0]}window.VWO._.destroySession?window.VWO._.destroySession(je):window.VWO._.destroySession=je;const Xe={markInsightGoalTriggered:function(e,t){var o;const n=window.tracklib||window.VWO._.track;e.type===re.GOAL_CAMPAIGN?n.markGoalTriggered(e.id,t):e.type===re.INSIGHTS_METRIC_CAMPAIGN&&((null===(o=e.goals[t])||void 0===o?void 0:o.mca)||window.VWO._.insightsUtils.includeInsightsMetric(e.id))},getInsightCombi:function(e,t){const o=window.VWO._.track,n=window.VWO._.insightsUtils;if(e.type===re.GOAL_CAMPAIGN)return o.isGoalIncluded?o.isGoalIncluded(Ke(e.id)):void(t||window.VWO.push(["track.delayedGoalConversion",{campaignId:e.id,type:re.GOAL_CAMPAIGN,goalId:Ke(e.id)}]));if(e.type===re.FUNNEL_CAMPAIGN)return o.isFunnelIncluded?o.isFunnelIncluded(e.id):void(t||window.VWO.push(["track.delayedGoalConversion",{campaignId:e.id,type:re.FUNNEL_CAMPAIGN}]));if(e.type===re.INSIGHTS_FUNNEL_CAMPAIGN)return n.isFunnelIncluded(e.id);if(ve.hasInsightsMetric(e.type)&&(e.ready||ie))return window.VWO._.insightsUtils.isVisBucketedForTrack();if(ve.isAnalyzeCampaign(e.type)){if(o.isAnalyzeCampaignIncluded)return o.isAnalyzeCampaignIncluded(e.id);t||window.VWO.push(["track.delayedGoalConversion",{campaignId:e.id,type:e.type}])}}};window.VWO._.ncLib=window.VWO._.ncLib||{},window.VWO._.ncLib.initNonCriticalLib=()=>{if(Se(),window.VWO._.ncLib.ncInit)return;var e;window.VWO._.vwoLib.init("nonCritical",window.VWO,null),e=window.VWO.modules.dataStorePlugin.vwoUUID,window.VWO.modules.otherLibDeps.setOtherLibrariesDepsMT(),window.VWO._.addConsentTrigger=function(e){return d(this,void 0,void 0,function*(){yield window.VWO._.insightsOnConsentPromise,e()})},window.VWO._.libLoaded=!0,window.VWO._.track=window.VWO._.track||{},window.VWO._.CampaignEnum=Object.assign(Object.assign({},window.VWO._.CampaignEnum),re),window.VWO._.pcTrafficEnum=Object.assign(Object.assign({},window.VWO._.pcTrafficEnum),ae),window.VWO._.GoalsEnum=Object.assign(Object.assign({},window.VWO._.GoalsEnum),de),window.VWO._.EventsEnum=Object.assign(Object.assign({},window.VWO._.EventsEnum),{PERFORMANCE:"vwo_performance",ERROR_ONPAGE:"vwo_errorOnPage",CURSOR_THRASHED:"vwo_cursorThrashed",PAGE_REFRESHED:"vwo_pageRefreshed",QUICK_BACK:"vwo_quickBack",COPY:"vwo_copy",SELECTION:"vwo_selection",TAB_IN:"vwo_tabIn",TAB_OUT:"vwo_tabOut",REPEATED_SCROLLED:"vwo_repeatedScrolled",REPEATED_HOVERED:"vwo_repeatedHovered",LEAVE_INTENT:"vwo_leaveIntent",DOM_SUBMIT:g,DOM_HOVER:E,DOM_FOCUS:h,DOM_BLUR:v,PAGE_UNLOAD:O,WIDGET_CLOSE:C,WIDGET_SHOWN:m}),window.VWO._.SyncableEventsEnum=Object.assign(Object.assign({},window.VWO._.SyncableEventsEnum),{[window.VWO._.EventsEnum.PERFORMANCE]:{},[window.VWO._.EventsEnum.ERROR_ONPAGE]:{},[window.VWO._.EventsEnum.CURSOR_THRASHED]:{},[window.VWO._.EventsEnum.PAGE_REFRESHED]:{},[window.VWO._.EventsEnum.QUICK_BACK]:{},[window.VWO._.EventsEnum.COPY]:{},[window.VWO._.EventsEnum.SELECTION]:{},[window.VWO._.EventsEnum.TAB_IN]:{},[window.VWO._.EventsEnum.TAB_OUT]:{},[window.VWO._.EventsEnum.LEAVE_INTENT]:{},[window.VWO._.EventsEnum.REPEATED_SCROLLED]:{},[window.VWO._.EventsEnum.REPEATED_HOVERED]:{}}),window.VWO._.coreLib=window.VWO._.coreLib||{},window.VWO._.coreLib.compareUrlWithIncludeExcludeRegex=window.VWO.modules.utils.urlUtils.compareUrlWithIncludeExcludeRegex.bind(window.VWO.modules.utils.urlUtils),window.VWO._.coreLib.getCurrentUrl=function(){return window._vis_opt_url||window.location.href},window.VWO._.coreLib.runCampaigns=function(e,t){var o;return d(this,void 0,void 0,function*(){if(!(null===(o=window.VWO._.track)||void 0===o?void 0:o.isUserBucketed()))return void window.VWO._.vwoLib.init("track",window.VWO,null);"object"==typeof e&&(t=e.expIds);const n=t.map(function(e){return d(this,void 0,void 0,function*(){yield window.VWO.modules.events.fireEventAndSyncData(window.VWO.phoenix,u,{id:e})})});yield Promise.all(n),window.VWO._.track.nlsProcessed=!0,window.VWO._.phoenixMT.trigger("vwo_insightsActivated"),window.VWO._.vwoLib.init("track",window.VWO,null)})},window.VWO._.libUtils.createUUIDCookie=function(){return window.VWO._.libUtils.createUUIDCookie2({vwoUUID:e,type:re.ANALYSIS_CAMPAIGN})},window.VWO._.libUtils.sendCall=function(e,t,o,n){window.VWO.modules.vwoUtils.sendCall({url:e},t,o,n)},window.VWO._.libUtils.extraData=function(e){return window.VWO._.libUtils.extraData2(e)},window.VWO._.libUtils.isSessionBasedCampaign=function(e){const t=window.VWO._.allSettings.dataStore.campaigns[e];return ve.isSessionBasedCampaign2(t)},window.VWO._.libUtils.isBot=function(){return window.VWO._.libUtils.isBot2()},window.VWO.modules.otherLibDeps.storeSurveyDataInVWOSurveySettings(window._vwo_exp),window.VWO.track=window.VWO.track||{},window.VWO.track.goalConversion=function(e){return d(this,void 0,void 0,function*(){yield window.fetcher.getValue("VWO.modules.tags.backwardCompatibilityUtils.customGoalConversion",[e,!0])})},window.VWO.track.revenueConversion=function(e){return d(this,void 0,void 0,function*(){yield window.fetcher.getValue("VWO.modules.tags.backwardCompatibilityUtils.customRevenueConversion",[e,!0])})},window.VWO.track.delayedGoalConversion=function(e){return d(this,void 0,void 0,function*(){yield window.fetcher.getValue("VWO.modules.tags.backwardCompatibilityUtils.delayedGoalConversion",[e])})},function(){const e=window._vwo_pa={},t=window._vwo_exp;for(var o in t)"ANALYZE_RECORDING"===t[o].type&&(e.r=1),"ANALYZE_FORM"===t[o].type&&(e.r=1),"ANALYZE_HEATMAP"===t[o].type&&(e.r=1)}(),window.VWO._.insights=xe,window.VWO._.insightsLibUtils=ve,window.VWO._.insightsCampaignUtils=Xe;const t=window._vis_debug||i();window._vis_heatmap||t||ue(window._vwo_exp_ids),new a,window.VWO.modules.phoenixPlugins.events.predefinedEvents.PageUnloadEvent=new se,window.VWO._.ncLib.ncInit=!0,window.VWO._.ncLib.handleClickEvent=e=>{var t;if((null===(t=e._vwo)||void 0===t?void 0:t.aux)&&e.props){e.props.aux=!0;const{isDeadClick:t,isRageClick:o,isErrorClick:n}=e._vwo;(t||o||n)&&e.props&&(t&&(e.props.isDeadClick=!0),o&&(e.props.isRageClick=!0),n&&(e.props.isErrorClick=!0))}},function(){try{document.addEventListener("visibilitychange",()=>{try{document.hidden||window.VWO._.insights.fetchInsightsTPC()}catch(e){}}),window.VWO._.phoenixMT.on(A,e=>{try{window.VWO._.insights.setTPCOnPageExit()}catch(e){}})}catch(e){}}()},window.VWO._.phoenixMT&&window.VWO._.phoenixMT.trigger("vwo_InitNCLib"),function(){const e=window.VWO._.phoenixMT;e.on("vwo_loadSettings",Re),e.getEventHistory("vwo_loadSettings")&&Re()}()}(); (function(){ var waitForCondition = function (condition, callback) { var execute = function () { if(condition()) { callback(); } else { setTimeout(execute, 100); } }; execute(); }; waitForCondition(function () { return VWO && VWO._ && VWO._.libLoaded } , function () { !function(){"use strict";var e=function(){return window.Wingify||window.VWO||(window.VWO=[]),window.Wingify||window.VWO};function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function s(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function d(e){for(var t=1;t=0;e--){var t=o[e];t.type[t.state]=t.ref}}return w={addEventListener:function(n,i,r,o){if(!s(i)){t&&e.push({$el:n,name:i,callback:r,capture:o});try{n.addEventListener?n.addEventListener(i,r,o):n.attachEvent&&n.attachEvent("on"+i,r,o)}catch(e){}return w}},addMutationObserver:function(e,t,n,r){var o;if(void 0!==window.MutationObserver?o=window.MutationObserver:void 0!==window.WebKitMutationObserver&&(o=window.WebKitMutationObserver),o)try{var a=new MutationObserver(e.bind(r));i.push(a),a.observe(t,n)}catch(e){}},clearAllListeners:function(){for(var t=0;t0||"none"!==(null==t?void 0:t.transition)&&""!==(null==t?void 0:t.transition)?r.length?r[0].overallProgress<.5&&!("none"===(null==t?void 0:t.display)):!("none"===(null==t?void 0:t.display)||"hidden"===(null==t?void 0:t.visibility)):!("none"===(null==t?void 0:t.display)||"hidden"===(null==t?void 0:t.visibility)||"0"===(null==t?void 0:t.opacity)||n.width<=0||n.height<=0)},isLinkOrImmediateParentAnchor:function(e){if(e instanceof HTMLAnchorElement&&e.hasAttribute("href"))return!0;var t=e.parentElement;return!!(t instanceof HTMLAnchorElement&&t.hasAttribute("href"))},isNonDeadClickElement:function(e){switch(e.nodeName.toUpperCase()){case"LABEL":if(e.hasAttribute("for")){var t=e.getAttribute("for");if(document.getElementById(t))return!0}else if(b(e).find("input,select,textarea,option").length>0)return!0}return!e||e._vwo_nd&&!e.disabled||1===E[e.nodeName&&e.nodeName.toUpperCase&&e.nodeName.toUpperCase()]},isElementInViewport:function(e){var t=e.getBoundingClientRect();return!!(t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth))||t.top<(window.innerHeight||document.documentElement.clientHeight)&&t.bottom>0&&t.left<(window.innerWidth||document.documentElement.clientWidth)&&t.right>0},updateNodeVisibility:function(e){T.isNodeVisible(e)?e._vwo_vba_vis=!0:e&&e._vwo_vba_vis&&delete e._vwo_vba_vis}},O={RECORDING_INITIATED:"rI",PAGE_EXIT:"pageExitEvent",NLS_CLICK:"nlsClick",VARIATION_SHOWN:"vS",PAGE_UNLOAD:"pU",METRIC_CONVERTED:"mT",DOM_SUBMIT:"dS",CUSTOM_EVENT:"cE",VWO_VARIATION_SHOWN:"vwo_variationShown",PAGE_VIEW:"vwo_pageView",URL_CHANGE:"vwo_urlChange",GOAL_CONVERTED:"vwo_goalConverted",INSIGHTS_FUNNEL:"vwo_insightsFunnel",CAMPAIGNS_LOADED:"vwo_campaignsLoaded"},C={debounce:function(e,t){var n;return function(){for(var i=arguments.length,r=new Array(i),o=0;o1&&void 0!==arguments[1]?arguments[1]:3,n=e.slice(-t);if(n.length2&&void 0!==arguments[2]?arguments[2]:_,i=t.timeStamp,r=e.timeStamp;return!(!i||!r)&&((!n.matchTarget||C.getTargetNode(e)===C.getTargetNode(t))&&("number"!=typeof n.threshold||i-r1&&void 0!==arguments[1]?arguments[1]:_,n=S(t);if(!n||e.length0&&void 0!==arguments[0]?arguments[0]:{};if(i(this,t),e().clickWatcher&&this.initialized)return e().clickWatcher;this.deadQueue=[],this.clickQueue=[],this.config=d({clickTimeout:(null===(n=window._vwoCc)||void 0===n?void 0:n.dCT)||500},r),this.sendClicks=C.debounce(this.triggerAuxClick.bind(this),this.config.clickTimeout),this.init()}return o(t,[{key:"init",value:function(){var t=this;if(I.onEventReceive(k,(function(){var n,i,r,o;(null!==(n=e())&&void 0!==n&&null!==(i=n.nls)&&void 0!==i&&i.r||null!==(r=e())&&void 0!==r&&null!==(o=r.nls)&&void 0!==o&&o.hs)&&t.initialize()})),setTimeout((function(){A.listeners.length>0&&t.initialize()})),L){var n,i=function(){window.fetcher?window.fetcher.getValue("VWO._.initClickWatcher").then((function(e){e&&!t.initialized&&t.initialize()})):e()._.initClickWatcher&&!t.initialized&&t.initialize()};i();var r=(null===(n=e()._.enums)||void 0===n?void 0:n.EventsEnumMT)||O;e()._.phoenixMT.on(r.CAMPAIGNS_LOADED,(function(){i()}))}}},{key:"initialize",value:function(){this.initialized||(this.initialized=!0,this.initMutationObserver(),this.initClickListener(),this.initRageClickListener(),this.initScrollListeners(),this.initPageChangeListeners())}},{key:"initMutationObserver",value:function(){this.mutationObserver=new MutationObserver(this.processMutations.bind(this)),this.initializeNode(document.body)}},{key:"initializeNode",value:function(e){var t,n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,null);for(this.mutationObserver.observe(e,{attributes:!0,childList:!0,subtree:!0});t=n.nextNode();)t instanceof HTMLElement&&(T.updateNodeVisibility(t),t.shadowRoot&&this.initializeNode(t.shadowRoot))}},{key:"initClickListener",value:function(){var t=this;L?P.on(e()._.EventsEnum.DOM_CLICK,(function(e){t.processClick(e)})):I.onEventReceive(O.NLS_CLICK,(function(e){t.processClick(e[1])}))}},{key:"initRageClickListener",value:function(){this.initialized&&A.isRageClick(_,(function(e){for(var n=0;n-1||r.indexOf(c)>-1){var l=!!u._vwo_vba_vis;T.updateNodeVisibility(u);var d=!!u._vwo_vba_vis;(l||l!=d)&&this.processDeadQueue({mutatedNode:u})}}else"childList"===s.type&&(s.addedNodes.forEach((function(e){T.updateNodeVisibility(e),e.shadowRoot&&n.initializeNode(e.shadowRoot),e instanceof HTMLElement&&e._vwo_vba_vis&&n.processDeadQueue({mutatedNode:e})})),s.removedNodes.forEach((function(e){e instanceof HTMLElement&&e._vwo_vba_vis&&n.processDeadQueue()})))}}catch(e){o.e(e)}finally{o.f()}}},{key:"processDeadQueue",value:function(e){var n=this,i=e||{},r=i.mutatedNode,o=i.filterQueue;if(!r||T.isElementInViewport(r)){var a=Date.now();this.deadQueue=this.deadQueue.filter((function(e){var i=e.event,r=e.timestamp;return a-r>=n.config.clickTimeout?(t.classifyClick(i,"isDeadClick"),!1):!!o}))}}},{key:"triggerAuxClick",value:function(){A.processListeners(this.clickQueue);var t,n=a(this.clickQueue);try{for(n.s();!(t=n.n()).done;){var i=t.value;i._vwo&&i._vwo.aux&&L&&P.trigger(e()._.EventsEnum.DOM_CLICK,i)}}catch(e){n.e(e)}finally{n.f()}this.clickQueue=[]}},{key:"destroy",value:function(){this.mutationObserver.disconnect(),this.deadQueue=[]}}],[{key:"classifyClick",value:function(e,t){e._vwo=d(d({},e._vwo),{},s({aux:!0},t,!0)),e[t]=!0}}])}(),D=function(){var t;return(null===(t=e().clickWatcher)||void 0===t?void 0:t.clickQueue)||[]},N=new R;e().clickWatcher=N;var V=VWO._&&VWO._.ac&&VWO._.ac.eNC;void 0===window.DISABLE_NATIVE_CONSTANTS&&(window.DISABLE_NATIVE_CONSTANTS=!V);var M,x,W,F,j={JSON:{stringify:function(e){var t=this,n=function(e){return"string"==typeof e},i=function(e){return null===e&&"object"===g(e)},r=function(e){return"number"==typeof e&&isNaN(e)},o=function(e){return"number"==typeof e&&!isFinite(e)},a=function(e){return"symbol"===g(e)},s=function(e){return function(e){return void 0===e&&void 0===e}(e)||function(e){return"function"==typeof e}(e)||a(e)},u=function(e){var t=e.split("");return t.pop(),t.join("")};if(!s(e)){if("object"===g(c=e)&&null!==c&&"function"==typeof c.getMonth)return'"'.concat(e.toISOString(),'"');var c;if(function(e){return r(e)||o(e)||i(e)}(e))return"".concat(null);if(!a(e)){var l,d;if(function(e){return function(e){return"number"==typeof e}(e)||n(e)||function(e){return"boolean"==typeof e}(e)}(e))return n(e)?(d='"',l=(l=(l=(l=(l=e.toString()).replace(/\\/g,"\\\\")).replace(/\n/g,"\\n")).replace(/\t/g,"\\t")).replace(/\"/g,'\\"')):d="",l?"".concat(d).concat(l).concat(d):"".concat(d).concat(e).concat(d);if(function(e){return Array.isArray(e)&&"object"===g(e)}(e)){var f="";return e.forEach((function(e){f+=function(e){return r(e)||o(e)||i(e)||s(e)}(e)?t.stringify(null):t.stringify(e),f+=","})),"["+u(f)+"]"}if(function(e){return"object"===g(e)&&null!==e&&!Array.isArray(e)}(e)){var h="";return Object.keys(e).forEach((function(n){var i=e[n],r=s(i);h+=r?"":t.stringify(n)+":"+t.stringify(i)+","})),"{"+u(h)+"}"}}}}}};window.VWO=window.VWO||[],window.VWO._=window.VWO._||{},window.VWO._.nativeConstants=window.VWO._.nativeConstants||(W=function(e,t){try{Object.defineProperty(e,t,{writable:!1})}catch(e){}},F=function(){if(!window.DISABLE_NATIVE_CONSTANTS){if(!document.body)return void(window.DISABLE_NATIVE_CONSTANTS=!0);M=window.document.createElement("iframe"),W(M,"src"),M.setAttribute=function(e,t){},M.style.display="none",M.onload=function(){(x=M.contentWindow).onerror=function(e,t,n,i){window.VWO&&window.VWO._&&window.VWO._.customError&&window.VWO._.customError({msg:e,url:t,lineno:n,colno:i,source:"nativeConstants"})}},document.body.appendChild(M),(x=M.contentWindow)&&W(x.location,"href")}},void 0===window.DISABLE_NATIVE_CONSTANTS?window.DISABLE_NATIVE_CONSTANTS=!0:!1===window.DISABLE_NATIVE_CONSTANTS&&F(),{get:function(e){M&&M.contentWindow||F();var t=x;return t&&!window.DISABLE_NATIVE_CONSTANTS||(t=window),window.VWO.featureInfo&&window.VWO.featureInfo.vwoNative&&j[e]?("JSON"===e&&(j[e].parse=t[e].parse),j[e]):t[e]}});var H=window.VWO._.nativeConstants,z=H,B="ex",U="pr",q="csp",X={FETCH:"fetch",XHR:"xmlhttprequest"},G=function(){return o((function t(){if(i(this,t),e().errorClickWatcher)return e().errorClickWatcher}),null,[{key:"markClickAsError",value:function(e){var t=e.map((function(e){var t=h(e.split(":"),2),n=t[0],i=t[1];return{timestamp:parseInt(n,10),id:parseInt(i,10)}}));if(!C.validateLastNErrors(t,3)){var n=Date.now()-performance.timeOrigin,i=D();if(i.length>0){var r=i[i.length-1];r.timeStamp>=n-500&&R.classifyClick(r,"isErrorClick")}}}}])}(),Q=new G;e().errorClickWatcher=Q;var $,K=parseInt(+new Date/1e3,10),J=function(){return $||($=VWO.data.ts||K)};function Y(e){var t=J(),n=parseInt(+new Date/1e3,10)-K;return e?t+n:1e3*(t+n)+ +new Date%1e3}function Z(e){return 1e3*(J()+(parseInt(e/1e3,10)-K))+ +new Date%1e3}var ee=["Script error.","ResizeObserver loop completed with undelivered notifications."],te=H.get("Array"),ne=function(){return o((function e(){i(this,e),this.processedData=new te,this.pageErrors=new te,this.nextErrorIndex=0,this.nextPageErrorIndex=0,this.truncationLenth=100}),[{key:"getDataToSend",value:function(){if(this.shouldSendData()){var e=this.processedData.slice(this.nextErrorIndex).join(","),t=this.pageErrors.slice(this.nextPageErrorIndex).join(",");return this.nextErrorIndex=this.processedData.length,this.nextPageErrorIndex=this.pageErrors.length,{er:e,pEr:t}}}},{key:"shouldSendData",value:function(){return this.nextErrorIndex!==this.processedData.length}},{key:"resetData",value:function(){this.processedData=new te,this.pageErrors=new te,this.nextErrorIndex=0,this.nextPageErrorIndex=0}},{key:"processErrorData",value:function(t){var n,i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0;if(!ee.some((function(e){return"string"==typeof t[1]&&t[1].toLowerCase().indexOf(e.toLowerCase())>-1}))&&(r||(r=[]),G.markClickAsError(this.processedData),null!==(n=e().nls)&&void 0!==n&&n.startTime)){var a=t.join("_"),s=r.join("_"),u=o||Math.floor(Y()-(null===(i=e().nls)||void 0===i?void 0:i.startTime)),c=this.pageErrors.indexOf(a);c>=0?this.processedData.push("".concat(u,":").concat(c)):(c=this.pageErrors.length,this.pageErrors.push(a),r.length?this.processedData.push(["".concat(u,":").concat(c),a,s].join("_")):this.processedData.push(["".concat(u,":").concat(c),a].join("_")))}}}])}();var ie=function(e){var t=document.createElement("div");return t.innerHTML='x'),t.firstChild.href},re=function(){function e(){i(this,e)}return o(e,null,[{key:"patchFetchAPI",value:function(t){var n=window.fetch;window.fetch=function(i,r){var o=n.call(this,i,r);try{var a=ie(e.getFetchURL(i));if(de.isUrlAllowed(a)){var s=C.getAnonymizedUrl(a),u=C.sanitizeActionData(s),c=r&&r.method||"GET";e.handleResponsePromise(t,o,u,c)}}catch(e){}return o}}},{key:"handleResponsePromise",value:function(e,t,n,i){t.then((function(t){"status"in t&&t.status>=400&&e.processErrorData([X.FETCH,n,t.status||0,i])})).catch((function(t){e.processErrorData([X.FETCH,n,0,i],[C.sanitizeActionData(t.message)])}))}},{key:"getFetchURL",value:function(e){return"object"===g(e)?e.url?e.url:e.toString():e}}])}(),oe=function(){return o((function e(){i(this,e)}),null,[{key:"patchXHRAPI",value:function(e){var t=XMLHttpRequest.prototype.open,n=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.open=function(e,n){try{var i=ie(n),r=C.getAnonymizedUrl(i),o=C.sanitizeActionData(r);this._url=o}catch(e){}this._method=e,t.apply(this,arguments)},XMLHttpRequest.prototype.send=function(){try{de.isUrlAllowed(this._url)&&(this.addEventListener("error",(function(t){e.processErrorData([X.XHR,this._url,this.status||0,this._method],[C.sanitizeActionData(t.message)])})),this.addEventListener("load",(function(t){this.status>=400&&e.processErrorData([X.XHR,this._url,this.status||0,this._method],[C.sanitizeActionData(t.message)])})))}catch(e){}n.apply(this,arguments)}}}])}();window._vwo_evq=window._vwo_evq||[];var ae=window._vwo_evq,se=window._vwo_ev=window._vwo_ev||function(){"jI"!==arguments[0]?ae.push([].slice.call(arguments)):ae.unshift(["jI"])};window.VWO._.triggerEvent=window._vwo_ev;var ue="pTLD",ce=["co","org","com","net","edu","au","ac"],le=window.vwo_$||window.$;var de=function(t){function r(){var e;return i(this,r),(e=n(this,r)).processXHRRequests(),e.addPerformanceObserver(),oe.patchXHRAPI(e),re.patchFetchAPI(e),e}return c(r,t),o(r,[{key:"processXHRRequests",value:function(){var t=this;performance.getEntriesByType("resource").forEach((function(n){if(!([X.FETCH,X.XHR].indexOf(n.initiatorType)<0)&&r.isUrlAllowed(n.name)&&n.responseStatus>=400){var i,o=Z(performance.timeOrigin+n.responseEnd-(null===(i=e().nls)||void 0===i?void 0:i.startTime)),a=C.getAnonymizedUrl(n.name),s=C.sanitizeActionData(a),u=[n.initiatorType,s,n.responseStatus];t.processErrorData(u,null,o)}}))}},{key:"addPerformanceObserver",value:function(){var t=this,n=new PerformanceObserver((function(n){n.getEntries().forEach((function(n){if(!([X.FETCH,X.XHR].indexOf(n.initiatorType)>-1)&&r.isUrlAllowed(n.name)&&n.responseStatus>=400){var i,o=Z(performance.timeOrigin+n.responseEnd-(null===(i=e().nls)||void 0===i?void 0:i.startTime)),a=C.getAnonymizedUrl(n.name),s=C.sanitizeActionData(a),u=[n.initiatorType,s,n.responseStatus];t.processErrorData(u,null,o)}}))}));n.observe({type:"resource",buffered:!0}),window.addEventListener("beforeunload",(function(){n.disconnect()}))}}],[{key:"isUrlAllowed",value:function(e){var t=C.getCookieDomain(),n=!0;try{n=!/^$/g.test(e)&&!C.containsOurDomain(e)&&function(e){var t,n=e.split("."),i=n.length,r=n[i-2];return r&&-1!==le.inArray(r,ce)?(t=n[i-3]+"."+r+"."+n[i-1],se(ue,e,t),t):(t=r+"."+n[i-1],se(ue,e,t),t)}(new URL(e).host)===t}catch(e){}return n}}])}(ne),fe=function(e){function t(){var e;return i(this,t),(e=n(this,t)).addErrorListener(),e}return c(t,e),o(t,[{key:"addErrorListener",value:function(){var e=this;window.addEventListener("error",(function(t){if(t&&t.message){var n=C.sanitizeActionData(t.message.slice(0,e.truncationLenth));return e.processErrorData([B,n]),!0}})),window.addEventListener("unhandledrejection",(function(t){if(t&&t.reason){var n="Uncaught (in promise) "+t.reason,i=C.sanitizeActionData(n.slice(0,e.truncationLenth));return e.processErrorData([U,i]),!0}})),document.addEventListener("securitypolicyviolation",(function(t){if(t&&t.blockedURI&&de.isUrlAllowed(t.blockedURI)){var n=C.getAnonymizedUrl(t.blockedURI),i=C.sanitizeActionData(n),r=[q,i,C.sanitizeActionData(t.violatedDirective)],o=[C.sanitizeActionData(t.originalPolicy)];e.processErrorData(r,o)}}))}}])}(ne),he=H.get("JSON"),ve=function(e){function t(){var e;return i(this,t),(e=n(this,t)).patchConsoleAPI(),e}return c(t,e),o(t,[{key:"patchConsoleAPI",value:function(){var e=console.error,t=this;console.error=function(n){try{var i=n;"string"!=typeof i&&(i=he.stringify(n)),i=C.sanitizeActionData(i.slice(0,t.truncationLenth)),t.processErrorData([i])}catch(e){}e.apply(console,arguments)}}}])}(ne),pe=!1,ge=e()._.listener,me=void 0!==e().v_e,ye=function(){function t(){var n;i(this,t),void 0!==e().v_e&&null!==(n=e().featureInfo)&&void 0!==n&&n.ele&&!pe&&this.init()}return o(t,[{key:"init",value:function(){var t=this;if(ge.onEventReceive(k,(function(){var n,i,r,o;(null!==(n=e())&&void 0!==n&&null!==(i=n.nls)&&void 0!==i&&i.r||null!==(r=e())&&void 0!==r&&null!==(o=r.nls)&&void 0!==o&&o.hs)&&t.initialize()})),me){var n,i=function(){window.fetcher?window.fetcher.getValue("VWO._.initErrorLogger").then((function(e){e&&!pe&&t.initialize()})):e()._.initErrorLogger&&!pe&&t.initialize()};i();var r=(null===(n=e()._.enums)||void 0===n?void 0:n.EventsEnumMT)||O;e()._.phoenixMT.on(r.CAMPAIGNS_LOADED,(function(){i()}))}}},{key:"initialize",value:function(){pe||(pe=!0,this.exceptionRecorder=new fe,this.consoleRecorder=new ve,this.networkRecorder=new de)}},{key:"sendData",value:function(){var n;if(pe&&this.isNewDataAvailable()){var i=this.exceptionRecorder.getDataToSend(),r=this.consoleRecorder.getDataToSend(),o=this.networkRecorder.getDataToSend();if(t.sendErrorOnPageAsEvent(i,r,o),null!==(n=e().nls)&&void 0!==n&&n.startTime)return t.parseErrorLoggerData(i,r,o)}}},{key:"isNewDataAvailable",value:function(){return this.exceptionRecorder.shouldSendData()||this.consoleRecorder.shouldSendData()||this.networkRecorder.shouldSendData()}},{key:"resetData",value:function(){pe&&(this.exceptionRecorder.resetData(),this.consoleRecorder.resetData(),this.networkRecorder.resetData())}}],[{key:"sendErrorOnPageAsEvent",value:function(t,n,i){var r={};t&&t.pEr&&(r.e=t.pEr),n&&n.pEr&&(r.c=n.pEr),i&&i.pEr&&(r.n=i.pEr),Object.keys(r).length>0&&e()._.phoenixMT&&e()._.phoenixMT.trigger(e()._.EventsEnum.ERROR_ONPAGE,r)}},{key:"parseErrorLoggerData",value:function(e,t,n){var i=z.get("JSON"),r={error:{e:null==e?void 0:e.er,c:null==t?void 0:t.er,n:null==n?void 0:n.er}};return null!=e&&e.pEr&&(r.pEr=r.pEr||{},r.pEr.e=e.pEr),null!=t&&t.pEr&&(r.pEr=r.pEr||{},r.pEr.c=t.pEr),null!=n&&n.pEr&&(r.pEr=r.pEr||{},r.pEr.n=n.pEr),r.pEr&&(r.pEr=i.stringify(r.pEr)),r.error=i.stringify(r.error),r}}])}();e().ErrorLogger=new ye;e().ErrorLogger;function we(e,t){var n=e.median,i=e.p10;if(n<=0)throw new Error("median must be greater than zero");if(i<=0)throw new Error("p10 must be greater than zero");if(i>=n)throw new Error("p10 must be less than the median");if(t<=0)return 1;var r,o,a,s=Math.max(Number.MIN_VALUE,t/n),u=Math.log(s),c=Math.max(Number.MIN_VALUE,i/n),l=-Math.log(c),d=(1-(o=(r=.9061938024368232*u/l)<0?-1:0===r?0:1,a=1/(1+.3275911*(r=Math.abs(r))),o*(1-a*(.254829592+a*(a*(1.421413741+a*(1.061405429*a-1.453152027))-.284496736))*Math.exp(-r*r))))/2;return t<=i?Math.max(.9,Math.min(1,d)):t<=n?Math.max(.5,Math.min(.8999999999999999,d)):Math.max(0,Math.min(.49999999999999994,d))}var Ee=/url\(("[^"]*"|'[^']*'|[^)]*)\)/i,be=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);function Te(){var e=document.documentElement;return{width:Math.max((null==e?void 0:e.clientWidth)||0,window.innerWidth||0),height:Math.max((null==e?void 0:e.clientHeight)||0,window.innerHeight||0)}}function Oe(e,t){var n=Math.max(e.top,0),i=Math.max(e.left,0),r=Math.min(e.bottom,t.height),o=Math.min(e.right,t.width);return r<=n||o<=i?0:(r-n)*(o-i)}function Ce(e){var t=Ee.exec(e);if(!t)return"";var n=t[1];return 0===n.indexOf('"')||0===n.indexOf("'")?n.slice(1,-1):n}function _e(e,t){var n={FCP:[3e3,1800,1600,934],SI:[5800,3387,2300,1311],LCP:[4e3,2500,2400,1200],TBT:[600,200,350,150],CLS:[.25,.1,.25,.1]}[e],i={FCP:[1187,7582,603,4251],SI:[2188,15400,831,6380],LCP:[1705,9389,683,8447],TBT:[60,4408,60,1930],CLS:[0,1.3192,0,1.3192]}[e],r=be?0:2,o=n[r],a=n[r+1],s=i[r],u=i[r+1];return tu?0:100*function(e,t,n){var i=we({median:t,p10:n},e);return i>.9&&(i+=.05*(i-.9)),Math.floor(100*i)/100}(t,o,a)}var Se,Ae,ke=-1,Le=function(e){addEventListener("pageshow",(function(t){t.persisted&&(ke=t.timeStamp,e(t))}),!0)},Pe=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart=0?i="back-forward-cache":n&&(document.prerendering||Ie()>0?i="prerender":document.wasDiscarded?i="restore":n.type&&(i=n.type.replace(/_/g,"-")));return{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:i}},De=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var i=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return i.observe(Object.assign({type:e,buffered:!0},n||{})),i}}catch(e){}},Ne=function(e,t,n,i){var r,o;return function(a){t.value>=0&&(a||i)&&((o=t.value-(r||0))||void 0===r)&&(r=t.value,t.delta=o,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},Ve=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},Me=function(e){document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&e()}))},xe=function(e){var t=!1;return function(){t||(e(),t=!0)}},We=-1,Fe=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},je=function(e){"hidden"===document.visibilityState&&We>-1&&(We="visibilitychange"===e.type?e.timeStamp:0,ze())},He=function(){addEventListener("visibilitychange",je,!0),addEventListener("prerenderingchange",je,!0)},ze=function(){removeEventListener("visibilitychange",je,!0),removeEventListener("prerenderingchange",je,!0)},Be=function(){return We<0&&(We=Fe(),He(),Le((function(){setTimeout((function(){We=Fe(),He()}),0)}))),{get firstHiddenTime(){return We}}},Ue=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},qe=[1800,3e3],Xe=function(e,t){t=t||{},Ue((function(){var n,i=Be(),r=Re("FCP"),o=De("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(o.disconnect(),e.startTimet.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e);else{var i={id:e.interactionId,latency:e.duration,entries:[e]};tt.set(i.id,i),et.push(i)}et.sort((function(e,t){return t.latency-e.latency})),et.length>10&&et.splice(10).forEach((function(e){return tt.delete(e.id)}))}}},at=function(e){var t=self.requestIdleCallback||self.setTimeout,n=-1;return e=xe(e),"hidden"===document.visibilityState?e():(n=t(e),Me(e)),n},st=[200,500],ut=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},Ue((function(){var n;Ze();var i,r=Re("INP"),o=function(e){at((function(){e.forEach(ot);var t=it();t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,i())}))},a=De("event",o,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});i=Ne(e,r,st,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),Me((function(){o(a.takeRecords()),i(!0)})),Le((function(){nt=Ye(),et.length=0,tt.clear(),r=Re("INP"),i=Ne(e,r,st,t.reportAllChanges)})))})))},ct=[2500,4e3],lt={},dt=[800,1800],ft=function(e){document.prerendering?Ue((function(){return ft(e)})):"complete"!==document.readyState?addEventListener("load",(function(){return ft(e)}),!0):setTimeout(e,0)},ht=function(){return[1053520].indexOf(window._vwo_acc_id)>-1},vt=["vwoEventName"],pt=void 0!==e().v_e&&(null===(Ae=e().featureInfo)||void 0===Ae?void 0:Ae.wve)||ht(),gt=e()._.phoenixMT,mt=e()._.listener,yt=e()._.cookies.get("_".concat(e()._.sKP||"vwo","_uuid")),wt=new(function(){return o((function t(){var n=this;if(i(this,t),pt){if(e().performanceWatcher)return e().performanceWatcher;this.lastWebVitalsSent={},this.resources={},this.webVitals={},this.totalBlockingTime=0,this.isTTICalculated=!1,this.isHidden=!1,this.lastLongTask=0,this.lastVisuallyComplete=0,this.finalTBT=0,this.quietWindowTimeout=0,this.inFlightGetRequests=0,this.isDestroyed=!1,this.isSendingInitialMetrics=!1,this.originalPushState=history.pushState,this.originalReplaceState=history.replaceState,this.isHistoryPatched=!1,"PerformanceObserver"in window&&(this.resourceObserver=new PerformanceObserver((function(e){e.getEntries().forEach((function(e){var t;e.duration<0||(t=e.name,!/^https?:\/\//i.test(t))||null!==n.resources&&(n.resources[e.name]=e.startTime+e.duration)}))})),this.paintObserver=new PerformanceObserver((function(e){e.getEntries().forEach((function(e){"first-paint"!==e.name||n.isHidden||(n.paintObserver.disconnect(),n.firstPaint=e.startTime)}))})),this.longTaskObserver=new PerformanceObserver((function(e){e.getEntries().forEach((function(e){e.startTime>n.firstContentfulPaint&&(n.resetQuietWindowTimer(),e.duration>50&&(n.lastLongTask=e.startTime+e.duration,n.totalBlockingTime+=e.duration-50))}))})),this.initGetRequestTracking(),this.initializeWatcher())}}),[{key:"initGetRequestTracking",value:function(){this.originalFetch=window.fetch,this.originalXhrOpen=XMLHttpRequest.prototype.open,this.originalXhrSend=XMLHttpRequest.prototype.send,this.patchFetchAPI(),this.patchXhrAPI()}},{key:"patchFetchAPI",value:function(){var e=this;window.fetch=function(t,n){var i;return"GET"===((null==n||null===(i=n.method)||void 0===i?void 0:i.toUpperCase())||"GET")?(e.inFlightGetRequests++,e.originalFetch.call(this,t,n).finally((function(){e.inFlightGetRequests--}))):e.originalFetch.call(this,t,n)}}},{key:"patchXhrAPI",value:function(){var e=this;XMLHttpRequest.prototype.open=function(t){return this._method=t.toUpperCase(),e.originalXhrOpen.apply(this,arguments)},XMLHttpRequest.prototype.send=function(){return"GET"===this._method&&(e.inFlightGetRequests++,this.addEventListener("loadend",(function(){e.inFlightGetRequests--})),this.addEventListener("error",(function(){e.inFlightGetRequests--})),this.addEventListener("abort",(function(){e.inFlightGetRequests--}))),e.originalXhrSend.apply(this,arguments)}}},{key:"initializeWatcher",value:function(){var t=this;this.resourceObserver.observe({type:"resource",buffered:!0}),this.paintObserver.observe({type:"paint",buffered:!0}),gt.on(e()._.EventsEnum.PERFORMANCE,(function(n){if(t.isSendingInitialMetrics)t.isSendingInitialMetrics=!1;else{var i=n.vwoEventName,r=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;ii.value&&(i.value=r,i.entries=o,e())},s=De("layout-shift",a);s&&(e=Ne(t,i,Ge,n.reportAllChanges),Me((function(){a(s.takeRecords()),e(!0)})),Le((function(){r=0,i=Re("CLS",0),e=Ne(t,i,Ge,n.reportAllChanges),Ve((function(){return e()}))})),setTimeout(e,0))}))),ut((function(e){i.isDestroyed||(i.webVitals.inp=parseFloat(e.value.toFixed(3)))}),{reportAllChanges:!0}),function(e,t){t=t||{},Ue((function(){var n,i=Be(),r=Re("LCP"),o=function(e){t.reportAllChanges||(e=e.slice(-1)),e.forEach((function(e){e.startTimethis.lastVisuallyComplete&&n-e>1e3){t=function(e){for(var t,n,i=[],r=document.getElementsByTagName("*"),o=Te(),a=0;a0&&i.push({time:l,area:d})}}}return i}(this.resources),this.resources=null,this.lastVisuallyComplete=e;var i=null===t?0:function(e,t){var n,i=Te(),r=i.width*i.height/10,o=r*e,s=a(t);try{for(s.s();!(n=s.n()).done;){var u=n.value,c=u.time,l=u.area;r+=l,o+=l*Math.max(c,e)}}catch(e){s.e(e)}finally{s.f()}return 0===r?0:o/r}(this.firstContentfulPaint||this.firstPaint,t);this.webVitals.si=parseFloat(i.toFixed(3))}}}},{key:"performanceScoreCalculation",value:function(){var e={FCP:.1,SI:.1,LCP:.25,TBT:.3,CLS:.25},t={FCP:this.firstContentfulPaint,SI:this.webVitals.si,LCP:this.webVitals.lcp,TBT:this.finalTBT,CLS:this.webVitals.cls},n=0;for(var i in t)if(void 0===t[i])return;for(var r in t){n+=_e(r,t[r])*e[r]}this.webVitals.score=parseFloat(n.toFixed(3))}},{key:"sendInitialPerformanceMetrics",value:function(){if(!this.isSendingInitialMetrics){this.isSendingInitialMetrics=!0;var t={fcp:this.firstContentfulPaint,ttfb:this.timeToFirstByte,dcl:this.domContentLoaded,pl:this.pageLoad},n=Object.keys(t).reduce((function(e,n){var i=t[n];return void 0!==i&&(e[n]=parseFloat(i.toFixed(3))),e}),{});Object.keys(n).length>0&&e()._.phoenixMT.trigger(e()._.EventsEnum.PERFORMANCE,n)}}},{key:"resetQuietWindowTimer",value:function(){var t=this;this.quietWindowTimeout&&clearTimeout(this.quietWindowTimeout),this.quietWindowTimeout=window.setTimeout((function(){if(!t.isTTICalculated&&t.inFlightGetRequests<3){var n={tti:parseFloat(t.lastLongTask.toFixed(3)),tbt:parseFloat(t.totalBlockingTime.toFixed(3))};t.finalTBT=parseFloat(t.totalBlockingTime.toFixed(3)),gt.trigger(e()._.EventsEnum.PERFORMANCE,n),t.isTTICalculated=!0,t.longTaskObserver.disconnect(),t.speedIndexCalculation()}}),5e3)}},{key:"resetData",value:function(){pt&&(this.webVitals={},this.lastWebVitalsSent={},this.resources={},this.totalBlockingTime=0,this.isTTICalculated=!1,this.isHidden=!1,this.lastLongTask=0,this.lastVisuallyComplete=0,this.finalTBT=0,this.firstPaint=void 0,this.firstContentfulPaint=void 0,this.timeToFirstByte=void 0,this.domContentLoaded=void 0,this.pageLoad=void 0,this.quietWindowTimeout&&(clearTimeout(this.quietWindowTimeout),this.quietWindowTimeout=0),this.inFlightGetRequests=0,this.isDestroyed||(this.destroy(),this.isDestroyed=!0))}},{key:"destroy",value:function(){this.resourceObserver.disconnect(),this.paintObserver.disconnect(),this.longTaskObserver.disconnect(),this.resources=null,this.isHistoryPatched&&(history.pushState=this.originalPushState,history.replaceState=this.originalReplaceState,this.isHistoryPatched=!1),this.originalFetch&&(window.fetch=this.originalFetch),this.originalXhrOpen&&(XMLHttpRequest.prototype.open=this.originalXhrOpen),this.originalXhrSend&&(XMLHttpRequest.prototype.send=this.originalXhrSend)}}])}());e().performanceWatcher=wt,e().watcher=e().watcher||{},e()._.vwoLib.init("watcher",e(),null)}(); }); })();