!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="4d011d977d";const e=e=>{try{window.VWO._.customError(e)}catch(e){}};function t(t,n={sendErrorLog:!1},o){try{return t()}catch(t){return n.sendErrorLog&&setTimeout((()=>{try{e({msg:n.msg||"safelyGetValue failed!",url:n.url||"errorHandler.ts",source:n.source||t})}catch(e){}}),100),o}}function n(e,n={sendErrorLog:!0}){return t((()=>e.toLowerCase()),n,"")}let o;const i=function(){if(void 0!==o)return o;const e=[],t=window.VWO._.allSettings.dataStore.campaigns;let n,i;for(let n in t)e.push(n);return o=!!(n=(window.location.search+window.location.hash).match(/.*_vis_test_id=(.*?)&.*_vis_opt_preview_combination=(.*?)(?:&|#|$)/))&&(!(!e.includes(n[1])||!t[n[1]]||void 0===t[n[1]].combs[i=function(e){if(!e)return e;try{e=window.decodeURIComponent(e)}catch(e){}return e}(n[2])])&&i),o};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(`^${n=e,r?n.startsWith(r)?n:`${r}${n}`:n}(\\d{1,})_combi$`,"");var n;const o=document.cookie.split(";");for(let e=0;ee.trim())),s=t.exec(n);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 n=t((()=>window.VWO._.bucketedCampaignsAPIStore.callbacks.length))||0;for(let o=0;o"number"==typeof n.count))?n.count>0?(n(e),--n.count):(window.VWO._.bucketedCampaignsAPIStore.callbacks.splice(o,1),o--):n(e)}}}function d(e,t,n,o){return new(n||(n=Promise))((function(i,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}d((o=o.apply(e,t||[])).next())}))}const l="cCC",c="hCl",u="vwo__activated",w="nSF",_="vwo_pageUnload",g="vE",h="pageExitEvent",v="cCAI",p="loadSurveyLib";class E{constructor(){this.forceKeys={id:"forceIdSelector",class:"forceClassSelector",customAttribute:"forceCustomAttributeSelector"},this.regexCache={}}shouldUseAttributeSelector(e,t,n){if(!!((e&&e.getRootNode())instanceof ShadowRoot)||t.dAttrName||n._vwo_noAttributeMode)return null;const o=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 E.RE_DYNAMIC_ATTRIBUTE_1.test(e)||E.RE_DYNAMIC_ATTRIBUTE_2.test(e)}isDynamicId(e){return(E.RE_DYNAMIC_ID_1.test(e)||E.RE_DYNAMIC_ID_2.test(e))&&!E.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 E.RE_DYNAMIC_CLASS_1.test(e)||E.RE_HOVER_CLASS.test(e)}shouldUseTextBasedSelector(e,t){return null}findRecursiveTextBasedSelector(e,t,n){return null}generateShortPath(e,t,n={}){if(!e)return null;if(n.originNode||(n.originNode=e),n.dClassValBoolean=n.hasOwnProperty("dClassValBoolean")?n.dClassValBoolean:!0===n.dClassVal,n.dClassVal="string"==typeof n.dClassVal?`${n.dClassVal}|${E.DEFAULT_EXCLUDE_CLASSES_REGEX}`:E.DEFAULT_EXCLUDE_CLASSES_REGEX,this.shouldUseSiblingSelectorEarly(e,n)){const t=this.shouldUseSiblingSelector(e,n);if(t)return t}if(n.skipRootNodeInSelectorPath&&n.documentRootNode===e)return"";const o=this.getSelectorPathSettings(n);(n.forceTextBasedSelector||n.forceRecursiveTextBasedSelector)&&(o._vwo_noIdMode=!0,o._vwo_noClassMode=!0,o._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,n,r);if(a)return a;const d=this.createRegex("string"==typeof n.dIdVal?n.dIdVal:"");if(this.shouldUseIdSelector(e,n,o,d))return"#"+e.getAttribute("id");const l=this.shouldUseClassSelector(e,n,o);if(l)return l;const c=this.shouldUseAttributeSelector(e,n,o);if(c)return c;if(r){const t=this.shouldUseTextBasedSelector(e,n);if(t)return t}if(this.shouldUseRecursiveTextBasedSelector(e,n,r)){const t=5,o=this.findRecursiveTextBasedSelector(e,t,n);if(o)return e._vwoCachedShortPath=o,o}const u=this.generateParentPath(e,t,n);if(u&&"string"==typeof u&&-1!==u.indexOf(":nth-parent"))return u;const w=this.generateCurrentNodePath(e,i,s,n);if(n.skipRootNodeInSelectorPath&&!u)return w;const _=this.handleSlotAssignment(e,w);return this.isSpecialUrlCase()?this.handleSpecialUrlCase(e,u,_):`${u} > ${_}`}shouldUseSiblingSelectorEarly(e,t){return!t.skipTextBasedSelector&&window._vwo_textBasedSelectorMode&&window.eventArchEnabled&&t.recursiveCall&&window._vwo_textBasedSelectorV2Mode}getNodeName(e){const t=e.nodeName.toLowerCase(),n=t.match(E.DANGEROUS_NODE_REGEX);if(!n||n[0]!==t)switch(e.nodeType){case Node.DOCUMENT_FRAGMENT_NODE:return e.nodeName;default:return"*"}return t}tryCustomAttributeSelector(e,t,n){const o=this.forceKeys;if(!n||!t[o.customAttribute]&&!window._vwo_useAttributeForSelector&&!t.isContainedInBasicOrPastedElement||this.isForceAttributeSelectorRequired(t))return null;const i=t[o.customAttribute]&&t.forceCustomAttributeName||(t.isContainedInBasicOrPastedElement?"vwo-element-id":void 0)||window._vwo_useAttributeForSelector,s=t[o.customAttribute]&&t.forceCustomAttributeValue||(i?e.getAttribute(i):void 0);if(!s)return null;const r=`[${i}='${s}']`;return t[o.customAttribute]||this.verify(r,t)?r:null}shouldUseRecursiveTextBasedSelector(e,t,n){return!t.skipTextBasedSelector&&!t.skipRecursiveTextBasedSelector&&window._vwo_textBasedSelectorMode&&n&&window.eventArchEnabled&&!t.recursiveCall&&e.innerText&&-1===e.innerText.indexOf("<%=")&&window._vwo_textBasedSelectorV2Mode}generateParentPath(e,t,n){const o=e.parentNode||e.host;return t?this.generateCachedShortPath(o):this.generateShortPath(o,t,Object.assign(Object.assign({},n),{recursiveCall:!0,parentLevel:0}))}generateCurrentNodePath(e,t,n,o){let i=0;for(let t=e;t;t=t.previousSibling)(e.nodeName===t.nodeName||n&&t.nodeType===Node.ELEMENT_NODE)&&i++;return t+(n?":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,n){let o=n;if(e.assignedSlot&&(o=" slot > #assignElements()"),e.shadowRoot&&-1===o.indexOf("#document-fragment:nth-child(1)")&&(o=`${o} > #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)"===o)return t}return`${t} > ${o}`}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,n,o){const i=e.getAttribute("id");return!(e.getRootNode()instanceof ShadowRoot)&&t[this.forceKeys.id]||(!n._vwo_noIdMode||t.isContainedInWidget)&&i&&(!o||!o.test(i))&&!E.EXCLUDED_NODE_NAMES.test(e.nodeName)&&!(n._vwo_noDynamicIdMode&&this.isDynamicId(i))&&this.verify("#"+i,t)&&!this.isForceAttributeSelectorRequired(t)}shouldUseClassSelector(e,t,n){if(!!(e.getRootNode()instanceof ShadowRoot)||!e.hasAttribute||!t[this.forceKeys.class]&&(!e.hasAttribute("class")||n._vwo_noClassMode||t.isContainedInWidget||t.isContainedInBasicAddElement)||this.isForceAttributeSelectorRequired(t))return null;const o=e.getAttribute("class").split(/\s+/),i="string"==typeof t.dClassVal?o.filter((e=>{const n=this.createRegex(t.dClassVal);return!this.isVwoClass(e)&&!this.isUnstableClass(e)&&E.VALID_CLASS_NAME_REGEX.test(e)&&(!n||!n.test(e))})):o.filter((e=>!this.isVwoClass(e)&&!this.isUnstableClass(e)&&E.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))),n="."+e.join(".");if(t.forceClassSelector||this.verify(n,t)&&!this.isDynamicClass(e.join(".")))return n}return null}generateCachedShortPath(e,t){return e?e._vwoCachedShortPath?e._vwoCachedShortPath:e._vwoCachedShortPath=this.generateShortPath(e,!0,t):null}verify(e,t,n){try{const o=t.documentRootNode||document;return"class"===n?!!t._vwo_skipUniqueElementsCheck||1===o.getElementsByClassName(e).length:1===o.querySelectorAll(e).length}catch(e){return!1}}}function A(e,t){if(e){var n,o="."+e,i=window.vwo_$;if((t=t||{})[e])return!1;try{n=i(o)}catch(e){n=""}return 1===n.length||(t[e]=!0,!1)}}function f(e){if(e){var t,n=window.vwo_$;try{t=n("#"+e)}catch(e){t=""}return t.length}}function O(e,t){var n=t[e](),o=t.get(0);if(!n){if(window.getComputedStyle&&void 0!==(n=getComputedStyle(o)[e])&&(n=parseInt(n,10),!isNaN(n)&&n))return n;n=o["client"+e.toUpperCase()[0]+e.substring(1,e.length)]}return n}function m(e){if(e.previousElementSibling)return e.previousElementSibling;for(;e=e.previousSibling;)if(1===e.nodeType)return e}function S(e,t){if(!e)return null;if(e===document)return"#document";t=t||{};var n,o,i,s,r,a=e,d=[],l=e.tagName,c=window.vwo_$;if(e===document.body||e===document.head)return l;for(;e;){n=(l="undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot?"shadow-root":e.tagName)&&l.match(/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/),l&&n&&(n&&n[0])===l||(l="*");const w=["INPUT","SELECT"].indexOf(e.tagName)>-1;try{o=c(e).attr("id")}catch(a){o=e.id}w&&e.name?l=l+'[name="'+e.name+'"]':o&&"string"==typeof o&&f(o)&&(l=o.match(/^\d/)?l+'[id="'+o+'"]':l+"#"+o),i=(i=e.getAttribute&&e.getAttribute("class"))?i.split(/\s+/):[];for(var u=0;u "+d.join(" + ")}function C(e){return e instanceof SVGElement&&e.tagName&&"svg"!==e.tagName.toLowerCase()?C(e.parentNode):e}function N(e,t){return Math.round(e/t*100)}function I(){const e=document.querySelector("._vwo_scroll_fix"),t=e||document.documentElement,n=(null==e?void 0:e.scrollTop)||window.scrollY||window.pageYOffset,o=(null==e?void 0:e.scrollLeft)||window.scrollX||window.pageXOffset,i=t.scrollHeight,s=t.scrollWidth,r=window.innerHeight,a=window.innerWidth,d=n+r,l=N(d,i),c=o+a;return{xScrollPercent:N(c,s),yScrollPercent:l,absXScroll:c,absYScroll:d,contentWidth:s,contentHeight:i,scrollTop:n}}E.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"],E.EXCLUDED_ATTR_VALUES_REGEX=/^(1|0|true|false|self|logged-in|log)$/,E.EXCLUDED_ATTR_KEYS_REGEX=new RegExp(`^(${E.EXCLUDED_KEY_STRINGS.join("|")})`),E.DATA_SELECTOR_CHECK=/^data-(.+)/,E.VALID_CLASS_NAME_REGEX=/^[^:]+$/,E.DANGEROUS_NODE_REGEX=/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,E.EXCLUDED_NODE_NAMES=/base|link|meta|style|iframe|script|noscript/gi,E.DEFAULT_EXCLUDE_CLASSES_REGEX="(^elementor-)|elementor-|(^active)|active|(^sc-)|(^pf-)|(^__pf)",E.RE_DYNAMIC_ATTRIBUTE_1=/[a-z]+[_-]?([0-9_-]){2,}$/,E.RE_DYNAMIC_ATTRIBUTE_2=/[0-9a-z]{5,}/gi,E.RE_DYNAMIC_ID_1=/[a-z]+[_-]?([0-9_-]){2,}$/,E.RE_DYNAMIC_ID_2=/[0-9a-f]{5,}/gi,E.RE_DYNAMIC_ID_FOR_ADDED_WIDGET=/(vwo-widget-)[0-9]{2,}/gi,E.RE_DYNAMIC_CLASS_1=/[a-z]+[_-][0-9_-]{4,}/gi,E.RE_HOVER_CLASS=/hover/gi;const V=(e,{perAnimation:t=!1}={})=>new Promise((n=>{t?requestAnimationFrame((()=>n(e()))):"requestIdleCallback"in window?requestIdleCallback((()=>{n(e())}),{timeout:2e3}):"function"==typeof queueMicrotask?queueMicrotask((()=>n(e()))):"undefined"!=typeof Promise?Promise.resolve().then((()=>n(e()))):setTimeout((()=>n(e())),0)})),b=new E;function W(e){const n=t((()=>window.VWO._.allSettings.dataStore.plugins.DACDNCONFIG.sConfig))||{};return t((()=>b.generateShortPath(e,!1,Object.assign({},n))),{sendErrorLog:!0,msg:"error while generating short selector path",url:window.location.href},"")}function T(e){return t((()=>e.tagName.toLowerCase()),null,"")}function y(e){return t((()=>vwo_$(e).attr("placeholder")))}function L(e){const{scrollTop:n,contentHeight:o}=t(I,null,{scrollTop:0,contentHeight:0});return N(t((()=>e.getBoundingClientRect().top+n),null,0),o)}function R(e){const n=t((()=>e.id));if(!n)return;const o=function(e){const n=vwo_$(e);return t((()=>n.closest("form").get(0)))||t((()=>n.parent().get(0)))}(e);if(!o)return;const i=vwo_$(o),s=t((()=>i.find(`label[for="${n}"]`).get(0)));return s?t((()=>{var e;return null===(e=s.textContent)||void 0===e?void 0:e.trim()})):void 0}function P(e){const t=vwo_$(e.target).get(0);return{sPath:W(t),tag:T(t),ph:y(t),scrDp:L(t),label:R(t)}}var D,M,U,G,x,k,F;window.VWO.modules.utils.getClickMetadata=P,function(e){e.DOM="vwo_dom"}(D||(D={})),function(e){e.WILD_CARD="*",e.TRIGGER="trigger",e.POST_INIT="post-init",e.TIMER="vwo_timer"}(M||(M={})),function(e){e.URL_CHANGE="vwo_urlChange",e.LEAVE_INTENT="vwo_leaveIntent",e.CLICK_EVENT="vwo_dom_click",e.SUBMIT_EVENT="vwo_dom_submit",e.PAGE_LOAD_EVENT="vwo_page_load"}(U||(U={})),function(e){e.PAGE_VIEW="vwo_pageView",e.PAGE_UNLOAD_EVENT="vwo_pageUnload"}(G||(G={})),function(e){e.EXIT_CONDITIONS="__exitConditions"}(x||(x={})),function(e){e.DOM_CONTENT_LOADED="DOMContentLoaded",e.SCROLL="scroll",e.CLICK="click",e.SUBMIT="submit"}(k||(k={})),function(e){e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR"}(F||(F={}));var $=new class{constructor(e){this.setLevel(e)}setLevel(e="warn"){this.logLevel=F[e.toUpperCase()]}info(e,t={}){this.customLog(F.INFO,e,t)}debug(e,t={}){this.customLog(F.DEBUG,e,t)}warn(e,t={}){var n,o;this.customLog(F.WARN,e,t,null===(o=null===(n=window.VWO)||void 0===n?void 0:n._)||void 0===o?void 0:o.customError)}error(e,t={}){var n,o;this.customLog(F.ERROR,e,t,null===(o=null===(n=window.VWO)||void 0===n?void 0:n._)||void 0===o?void 0:o.customError)}customLog(e,t,n,o=null){var i,s,r;if(e>=this.logLevel){const a=this.formatMessage(e,t,n);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),o?o(a):this.consoleLog(e,[a])}}consoleLog(e,t){switch(e){case F.INFO:console.info(...t);break;case F.WARN:console.warn(...t);break;case F.ERROR:console.error(...t);break;default:console.log(...t)}}formatMessage(e,t,n){var o,i;const s=Object.keys(n).reduce(((e,t)=>e.replace(new RegExp(`{{${t}}}`,"g"),n[t])),t),r=`${D.DOM}_`;let a=n;const d=(null===(o=n.data)||void 0===o?void 0:o.vwoEventName)||n.vwoEventName;d!==r+k.CLICK&&d!==r+k.SUBMIT||(a=n.data?null===(i=n.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: [${F[e].toUpperCase()}] [${(new Date).toUTCString()}] ${s} ${l(a)}`}}("warn");function B(){}try{B.prototype=Object.create(Array.prototype),Object.defineProperty(B.prototype,"clear",{value:void 0,writable:!0,enumerable:!1})}catch(e){}const H=null===(Y=window._vwoCc)||"object"!=typeof Y||Array.isArray(Y)?{}:window._vwoCc;var Y;(()=>{const e=H.debugConfig||{};e.CLICK_DEBUG,e.TIMEOUT_DEBUG,e.GA_DEBUG,e.URL_DEBUG,e.VARIATION_SHOWN_DEBUG,e.IN_LIST_DEBUG})(),H.debugLogs,H.disableAsp,H.vwoUuidV2Secure;const j=t((()=>window.VWO._.useCdn))||!1,X=(H.enableRefreshLimit,H.expUrlChange,window._vwo_acc_id>1044e3||H.enableLoader,H.eblCSync,H.hdPR,H.cPM,H.svIdInSyncListDbgLog,H.wMS,H.mEPR,H.cA_csa,H.dAM,H.observeHTML,H.mSSR,H.allowWinnerSelection,H.dNcLT,(!!H.sPCe||window._vwo_acc_id>1e6)&&!H.dsPCe),K=!!H.vTsPU;H.vTST,H.aRVId;class Z{constructor(){this.GoalsEnum=window.VWO._.GoalsEnum,this.eventName=_,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 n;null===(n=e.filters)||void 0===n||n.forEach(((n,o)=>{const i=n[0].substring(0,n[0].indexOf("."));if("event"===i||"page"===i){const i=JSON.parse(JSON.stringify(n));t.push({condition:i,triggerName:e.triggerName,condId:e.id,filterId:o,aux:e.aux})}}))})),t}(e),this.registeredTriggers=t,this.addListenersForPageUnload()}}))}extractPageUnloadFilters(e){var t;const n=[];for(let o=0;o86400)){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),n={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,n,{eventData:e}),delete n.preComputedConds;const o=t((()=>n._vwo.eventDataConfig))||{};e._vwo=e._vwo||{},Object.keys(o).length&&(e._vwo.eventDataConfig=o),e._vwo.syncEventData=n}catch(e){$.error(e)}}}resetStartTimeAndPageData(){this.lastResetTime=performance.now(),this.updatePageUnloadTriggers()}sendDataWrapper(e){return this.unloadCaptured?this.unloadCaptured=!1:(window.VWO._.phoenixMT.trigger(_,e),this.unloadCaptured=!0)}addListenersForPageUnload(){this.unloadListenersAttached||(window.VWO._.phoenixMT.on(_,(e=>{this.evaluateAndSendData(e)}),{syncToDataLayer:!0}),window.VWO._.phoenixMT.on(h,(e=>{this.sendDataWrapper(e)})),this.initScrollTracking=function(){let e,t,n=0,o=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:u,contentHeight:w}=I(),_=ta(!0))),r?r.addEventListener("scroll",(()=>a())):window.addEventListener("scroll",(()=>a())),{getFinalScrollValues:function(){return{xScrollDepthAbs:n,yScrollDepthAbs:o,xScrollDepthPercent:i>100?100:i,yScrollDepthPercent:s>100?100:s}},updateScrollState:a}}(),window.VWO._.phoenixMT.on("vwo_urlChangeMt",(e=>{window.VWO._.phoenixMT.trigger(_,e),this.resetStartTimeAndPageData()})),this.unloadListenersAttached=!0)}}var q,z,J;function Q(e,n){let o=!1;const i=function(){o||(o=!0,function(e,n){var o,i,s,r,a,d,l,c;const u=window._vwo_cdn||window.VWO.modules.dataStorePlugin.serverUrl,_=window.VWO.modules.dataStorePlugin.serverUrl,g=null===(s=null===(i=null===(o=window.VWO._.allSettings)||void 0===o?void 0:o.dataStore)||void 0===i?void 0:i.plugins)||void 0===s?void 0:s.LIBINFO,h=null===(r=null==g?void 0:g.TRACK)||void 0===r?void 0:r.HASH,v=null===(a=null==g?void 0:g.OPA)||void 0===a?void 0:a.HASH,E=null===(d=null==g?void 0:g.OPA)||void 0===d?void 0:d.PATH,A=null===(l=null==g?void 0:g.SURVEY)||void 0===l?void 0:l.HASH;let f=!1,O=!1;const m=null===(c=window.VWO._)||void 0===c?void 0:c.loadPC;let S=!1,C=window._vis_apm_lib;const N=[];for(const t of e){const e=window.VWO._.allSettings.dataStore.campaigns;if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n.type!==q.ANALYSIS_CAMPAIGN&&n.type!==q.ANALYZE_FORM_CAMPAIGN&&n.type!==q.ANALYZE_HEATMAP_CAMPAIGN&&n.type!==q.ANALYZE_RECORDING_CAMPAIGN||(f=!0,O=!0),n.type!==q.FUNNEL_CAMPAIGN&&n.type!==q.GOAL_CAMPAIGN&&n.type!==q.INSIGHTS_FUNNEL_CAMPAIGN&&n.type!==q.INSIGHTS_METRIC_CAMPAIGN||(O=!0),n.type===q.SURVEY_CAMPAIGN||n.survey&&n.survey.id)for(var I in S=!0,n.survey)Object.prototype.hasOwnProperty.call(n.survey,I)&&N.push(I)}}if(m&&window.VWO.modules.utils.loadScript(`${u}web/djIkcGM6MS4w/tag-1a6cb79d9b921e9f733a3a9f91c43b90.js`,null,(function(){})),O&&!window.VWO.v_t&&window.VWO.modules.utils.loadScript(`${u}7.0/track-${h}.js`),f&&!window.VWO.nls&&(window.VWO.v_t||window.VWO.modules.utils.loadScript(`${u}7.0/track-${h}.js`),window.VWO.modules.utils.loadScript(`${u}analysis${E}/opaEv-${v}.js`,null,(function(){window.VWO.modules.vwoUtils.optOut.callStopAnalyzeAndSurvey()}))),!window.VWO._[p]){const e=window.VWO.featureInfo.sse;!window.VWO.v_t&&e&&window.VWO.modules.utils.loadScript(`${u}7.0/track-${h}.js`);const n=()=>{const e=t((()=>window.VWO._.useCdn))?`${u}static/1.0/`:_;window.VWO.modules.utils.loadScript(`${e}va_survey-${A}.js`)};window.VWO._.shouldLoadSurveyLib?n():window.VWO.phoenix('on("${{1}}", "${{2}}")',null,{captureGroups:[p,n]})}if(C&&!window.VWO.apm){const e=window._vis_apm_lib,t=`${_}${e}`,n=`${window._vwo_cdn}${e}`,o=j?n:t;window.VWO.modules.utils.loadScript(o,null,(()=>{}),{defer:!0})}S&&n&&window.VWO.phoenix('trigger("${{1}}", "${{2}}")',null,{captureGroups:[w,{oldArgs:[N]}]})}(e,n))},s=()=>window.VWO._.defer(i);!function(e){if("undefined"==typeof PerformanceObserver)return;let t=!1;const n=new PerformanceObserver((o=>{o.getEntries().length&&!t&&(t=!0,n.disconnect(),e())}));try{n.observe({type:"largest-contentful-paint",buffered:!0})}catch(e){}}(s),function(e){if("complete"===document.readyState)e();else{const t=()=>{window.removeEventListener("load",t),e()};window.addEventListener("load",t)}}(s)}function ee(e,t){const n=window.VWO.consentMode;if(n){if(n.dTI)return;if(n.hTI){const n=window.VWO._.phoenixMT.on(v,(()=>{window.VWO._.phoenixMT.off(v,n),window.fetcher.setValue("VWO.consentMode.hTI",!1),window.VWO.phoenix('trigger("${{1}}")',null,{captureGroups:[v]}),Q(e,t)}));return}}Q(e,t)}!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"}(q||(q={})),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"}(z||(z={})),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"}(J||(J={})),window.VWO._.loadNonTestingLibraries=ee;const te=[q.ANALYSIS_CAMPAIGN,q.SURVEY_CAMPAIGN,q.ANALYZE_RECORDING_CAMPAIGN,q.ANALYZE_HEATMAP_CAMPAIGN,q.ANALYZE_FORM_CAMPAIGN,q.GOAL_CAMPAIGN,q.FUNNEL_CAMPAIGN,q.INSIGHTS_FUNNEL_CAMPAIGN,q.INSIGHTS_METRIC_CAMPAIGN];const ne={[q.ANALYZE_RECORDING_CAMPAIGN]:!0,[q.ANALYZE_HEATMAP_CAMPAIGN]:!0,[q.ANALYZE_FORM_CAMPAIGN]:!0,[q.GOAL_CAMPAIGN]:!0,[q.FUNNEL_CAMPAIGN]:!0,[q.INSIGHTS_FUNNEL_CAMPAIGN]:!0,[q.INSIGHTS_METRIC_CAMPAIGN]:!0};const oe=[q.ANALYZE_RECORDING_CAMPAIGN,q.ANALYZE_HEATMAP_CAMPAIGN,q.ANALYZE_FORM_CAMPAIGN];const ie=[q.INSIGHTS_FUNNEL_CAMPAIGN,q.INSIGHTS_METRIC_CAMPAIGN];const se={isDomIndependentCampaign:function(e){return te.includes(e)},isSessionBasedCampaign2:function(e){return!!ne[e.type]},isAnalyzeCampaign:function(e){return oe.includes(e)},hasInsightsMetric:function(e){return ie.includes(e)}};let re=e=>e;window.VWO._.namespaceKeyWithAccId=re;class ae{constructor(){this.vwoExecutedTriggeredOnce=!1,this.vwoOSCTriggeredOnce=!1,this.vwoDebouncedTimer=null}_debouncedEvent(){this.vwoDebouncedTimer&&clearTimeout(this.vwoDebouncedTimer),this.vwoDebouncedTimer=setTimeout((()=>this._sendCampaignsLoaded()),ae.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=!!window._vwo_code;if(this._attachCombiListenerOnce(e),this.vwoExecutedTriggeredOnce)return void(this.vwoOSCTriggeredOnce=!0);const n=function(){const{executableCampaignsOnCurrentPage:e}=window.VWO._,n=window.VWO._.allSettings.dataStore.campaigns,o=[{},[]];if(null==e?void 0:e.length)for(const i of e){const e=n[i];t((()=>window.VWO.modules.utils.libUtils.isTestingCampaign(e.type)))&&(e.ready?o[0][i]=e.combination_chosen:o[1].push(i))}return window._vwo_code&&(window._vwo_code.lT||window._vwo_code.sT)&&o.push({timeout:!0}),o}();window.VWO._.triggerEvent.apply(window.VWO._.triggerEvent,[g,n]),this.vwoExecutedTriggeredOnce=!0}}ae.CAMPAIGNS_LOADED_DELAY=200;const de=new ae,le=de.execute.bind(de);function ce(e){return 1!=e||!window.VWO._.disableAutofetchSettings}function ue(e,t){var n,o,i,s,r,a,d;ce(e)&&(n=()=>{ce(e)&&window.VWO.settings.requestSettings(e)},d=!1,-1===(o=+t||0)||i?(r=requestAnimationFrame,a=cancelAnimationFrame):(r=setTimeout,a=clearTimeout),function(...e){d&&(a(s),s=null),s=r((function(){n.apply(this,e)}),o),d=!0})()}const we=e=>e?ue(e,window.VWO._.SPA_NEW_PAGE_SETTINGS_DELAY):function(){if(window._vis_debug||i()||!window.VWO._.isSpaEnabled)return;const e=window._vwo_code,{SPA_SETTINGS_DELAY:t,SPA_NEW_PAGE_SETTINGS_DELAY:n}=window.VWO._;ue(e?1:2,e?t:n)}();window.VWO.settings={requestSettings:function(n){return d(this,void 0,void 0,(function*(){const o=window.VWO.modules.utils.libUtils;if(window._vis_debug||i()||o.isBot2()||window.VWO._.selfHosted)return;const{dcdnUrl:s=""}=window._VWO||{},{serverUrl:r,accountId:a,currentUrl:d}=window.VWO.modules.dataStorePlugin,l=t((()=>{var e;return null===(e=window._vwo_code)||void 0===e?void 0:e.getVersion}))&&window._vwo_code.getVersion();if(s){const t=window._vwo_code?4:5,{settingsUrl:n,fallbackUrl:o}=window.VWO._.getSettingsUrl({settingsType:t,cacheParam:!0,txtCfgState:!0});return function(t,n){window.VWO.modules.utils.loadScript(t,(()=>{window.VWO.modules.utils.loadScript(n,window.fetcher.getValue("VWO.modules.utils.libUtils.firePageViewEvent"),(()=>{}),{defer:!0,allowReload:!0}),e({msg:`settings.js type ${window._vwo_code?4:5} cdn request failed.`,url:window.location.href,uuid:window.VWO._.cookies.get("_vwo_uuid"),source:encodeURIComponent("settingsjs")})}),(()=>{}),{defer:!0,allowReload:!0})}(n,o)}const c=[],u=window._vwo_exp_ids,w=window._vwo_exp;let _=!1;const g=t((()=>window.VWO.pageGroup.pageConfig)),h=t((()=>window.VWO.pageGroup.experimentConfig)),v=[],p=[];for(const e in g)Object.hasOwnProperty.call(g,e)&&v.push(e);for(const e in h)Object.hasOwnProperty.call(h,e)&&p.push(e);const E=[];for(let e=0;e=1.4&&l<2){let e;undefined._.jar||(e=window._vwo_code.getCombinationCookie&&o.getCombinationCookie()),e&&(f+="&c="+e)}if(4!==n&&c.length){const e="&exc="+c.join("|");f.length+e.length<2e3&&(f+=e)}window.VWO.modules.utils.loadScript(f,(()=>window.fetcher.getValue("VWO.modules.utils.libUtils.initAuxiliaryPageView")),(()=>{}),{defer:!0})}))}};const _e=window.VWO.modules.events.fireEventAndSyncData,ge=window.VWO._.commonCookieHandler,he=window.VWO._.libUtils;function ve(){const e=ge.getMetaStore().split(":")[1];return!!new RegExp("(,|^)"+z[q.INSIGHTS_FUNNEL_CAMPAIGN]+"_1").test(e)&&"1"}function pe(e,t,n,o){let i=[e,t].join("_");window._vwo_exp[e]&&window._vwo_exp[e].type!==q.INSIGHTS_METRIC_CAMPAIGN&&(i=[e,t,0,window._vwo_exp[e].version].join("_")),n&&o&&(i=function(e,t,n,o){var i,s="";return null!=n&&o?((null===(i=ge.getDataStore().split(":")[2])||void 0===i?void 0:i.split(",")).forEach((i=>{if(i.includes(`${e}`)){const r=i.split("_");r[3]&&r[3]==o.toString()?parseInt(r[2],10)+1==n?(s=[e,t,n,o].join("_"),window.VWO._.phoenixMT.trigger("vwo_insightsFunnel",{data:s})):s=[e,t,r[2],o].join("_"):1==n?(s=[e,t,1,o].join("_"),window.VWO._.phoenixMT.trigger("vwo_insightsFunnel",{data:s})):s=[e,t,0,o].join("_")}})),s):""}(e,t,n,o));var s=ge.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(":"),ge.setDataStore(s)}function Ee(e,t){const n=ge.getDataStore().split(":")[2];return new RegExp(`(?:,|^)${e}_${t}(?:_[^,]*)?(?:,|$)`).test(n)?"1":""}const Ae={isVisBucketedForTrack:ve,includeFunnel:function(e){pe(e,1)},excludeFunnel:function(e){pe(e,0)},isFunnelIncluded:function(e){return Ee(e,1)},isFunnelExcluded:function(e){return Ee(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)&&ve()){const e=Object.keys(window._vwo_exp||{}).map((function(e){return d(this,void 0,void 0,(function*(){if(window._vwo_exp[e]){const t=window._vwo_exp[e].type;he.hasInsightsMetric(t)&&(yield _e(window.VWO.phoenix,u,{id:e}))}}))}));yield Promise.all(e),window.VWO._.phoenixMT.trigger("vwo_insightsActivated")}}))},markFunnelValue:pe,includeInsightsMetric:function(e){pe(e,1)},isMetircTriggered:function(e){const t=ge.getDataStore().split(":")[2];return new RegExp(`(?:,|^)${e}_1(?:_[^,]*)?(?:,|$)`).test(t)}},fe=window.VWO.modules.utils.campaignUtils,Oe=window.VWO.modules.utils.libUtils,me=window.VWO.modules.tags.dataSync.utils,Se=window.VWO.modules.dataStorePlugin,Ce=Object.keys;const Ne=new class{getTargetPathInfo(e){let o,i,s,r,a,d,l,c,u;o=vwo_$(t((()=>e.composedPath()[0]))||e.target),i=o.get(0);const w=C(i);w!==i&&(i=w,o=vwo_$(i));const _=P(e);return c=X&&_.sPath?_.sPath:S(i),"string"!=typeof c||"html"===n(c)||Oe.isBot2()||(u=o.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-u.left)/(o.outerWidth()||function(e){return O("width",e)}(o)))/1e3,l=Math.round(1e3*(r-u.top)/(o.outerHeight()||function(e){return O("height",e)}(o)))/1e3,(0>d||1l||1me.sendCall({serverUrl:Se.serverUrl,accountId:d},{url:s}))),window.VWO._.isLinkRedirecting=!1,i=i&&window.VWO._.isBeaconAvailable,window.VWO.modules.tags.wildCardCallback({oldArgs:[o,e,w,_,g]},c);const n={x:_,y:g,path:w,sPath:h,tag:v,ph:p,scrDp:E,label:A},l="id_"+o;a[r]?a[r]=Object.assign(Object.assign({},a[r]),{[l]:e}):a=Object.assign(Object.assign({},a),{[r]:Object.assign({[l]:e},n)})}}return a}};window.VWO.modules.utils.heatmapUtils=Ne;const Ie=()=>{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,(()=>{const e=window.VWO._.cookies,n=e.getAll(),o=/^(debug)?(_vis_opt|_vwo)/;for(const i in n)if(o.test(i)){const n=/(_vis_opt_exp_|_vwo_uuid_)(\d+)/,o=t((()=>n.exec(i)[2]));o||"_vwo"==i?(e.createThirdParty(i,"",-1,null,o),i.includes("combi")&&e.createThirdParty(`_vis_opt_exp_${o}_combi_choose`,"",-1,null,o)):e.create(i,"",-1)}})(),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 Ve(e){return function(e){return Object.keys(e).filter((t=>Object.prototype.hasOwnProperty.call(e,t)))}(window._vwo_exp[e.toString()].goals)[0]}window.VWO._.destroySession?window.VWO._.destroySession(Ie):window.VWO._.destroySession=Ie;const be={markInsightGoalTriggered:function(e,t){var n;const o=window.tracklib||window.VWO._.track;e.type===q.GOAL_CAMPAIGN?o.markGoalTriggered(e.id,t):e.type===q.INSIGHTS_METRIC_CAMPAIGN&&((null===(n=e.goals[t])||void 0===n?void 0:n.mca)||window.VWO._.insightsUtils.includeInsightsMetric(e.id))},getInsightCombi:function(e,t){const n=window.VWO._.track,o=window.VWO._.insightsUtils;if(e.type===q.GOAL_CAMPAIGN)return n.isGoalIncluded?n.isGoalIncluded(Ve(e.id)):void(t||window.VWO.push(["track.delayedGoalConversion",{campaignId:e.id,type:q.GOAL_CAMPAIGN,goalId:Ve(e.id)}]));if(e.type===q.FUNNEL_CAMPAIGN)return n.isFunnelIncluded?n.isFunnelIncluded(e.id):void(t||window.VWO.push(["track.delayedGoalConversion",{campaignId:e.id,type:q.FUNNEL_CAMPAIGN}]));if(e.type===q.INSIGHTS_FUNNEL_CAMPAIGN)return o.isFunnelIncluded(e.id);if(se.hasInsightsMetric(e.type)&&e.ready)return window.VWO._.insightsUtils.isVisBucketedForTrack();if(se.isAnalyzeCampaign(e.type)){if(n.isAnalyzeCampaignIncluded)return n.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=()=>{var e;(le(),window.VWO._.ncLib.ncInit)||(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),q),window.VWO._.pcTrafficEnum=Object.assign(Object.assign({},window.VWO._.pcTrafficEnum),z),window.VWO._.GoalsEnum=Object.assign(Object.assign({},window.VWO._.GoalsEnum),J),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:"vwo_dom_submit",PAGE_UNLOAD:"vwo_pageUnload"}),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 n;return d(this,void 0,void 0,(function*(){if(!(null===(n=window.VWO._.track)||void 0===n?void 0:n.isUserBucketed()))return void window.VWO._.vwoLib.init("track",window.VWO,null);"object"==typeof e&&(t=e.expIds);const o=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(o),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})},window.VWO._.libUtils.sendCall=function(e,t,n,o){window.VWO.modules.vwoUtils.sendCall({url:e},t,n,o)},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 se.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 n in t)"ANALYZE_RECORDING"===t[n].type&&(e.r=1),"ANALYZE_FORM"===t[n].type&&(e.r=1),"ANALYZE_HEATMAP"===t[n].type&&(e.r=1)}(),window.VWO._.insights=Ae,window.VWO._.insightsLibUtils=se,window.VWO._.insightsCampaignUtils=be,window._vis_heatmap||ee(window._vwo_exp_ids),new a,window.VWO.modules.phoenixPlugins.events.predefinedEvents.PageUnloadEvent=new Z,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:n,isErrorClick:o}=e._vwo;(t||n||o)&&e.props&&(t&&(e.props.isDeadClick=!0),n&&(e.props.isRageClick=!0),o&&(e.props.isErrorClick=!0))}})},window.VWO._.phoenixMT&&window.VWO._.phoenixMT.trigger("vwo_InitNCLib"),function(){const e=window.VWO._.phoenixMT;e.on("vwo_loadSettings",we),e.getEventHistory("vwo_loadSettings")&&we()}()}(); (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";function e(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 a(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(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&&d(e,t)}function c(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 l(e){for(var t=1;t=0;e--){var t=o[e];t.type[t.state]=t.ref}}return m={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 m}},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(y(e).find("input,select,textarea,option").length>0)return!0}return!e||e._vwo_nd&&!e.disabled||1===g[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){b.isNodeVisible(e)?e._vwo_vba_vis=!0:e&&e._vwo_vba_vis&&delete e._vwo_vba_vis}},E="pageExitEvent",O="nlsClick",T={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.length0&&void 0!==arguments[0]?arguments[0]:{};if(n(this,e),window.VWO.clickWatcher&&this.initialized)return window.VWO.clickWatcher;this.deadQueue=[],this.clickQueue=[],this.config=l({clickTimeout:(null===(t=window._vwoCc)||void 0===t?void 0:t.dCT)||500},i),this.sendClicks=T.debounce(this.triggerAuxClick.bind(this),this.config.clickTimeout),this.init()}return r(e,[{key:"init",value:function(){var e=this;_.onEventReceive(S,(function(){var t,n,i,r;(null!==(t=window.VWO)&&void 0!==t&&null!==(n=t.nls)&&void 0!==n&&n.r||null!==(i=window.VWO)&&void 0!==i&&null!==(r=i.nls)&&void 0!==r&&r.hs)&&e.initialize()})),k&&window.fetcher.getValue("VWO._.initClickWatcher").then((function(t){t&&!e.initialized&&e.initialize()}))}},{key:"initialize",value:function(){this.initialized||(this.initialized=!0,this.initMutationObserver(),this.initClickListener(),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&&(b.updateNodeVisibility(t),t.shadowRoot&&this.initializeNode(t.shadowRoot))}},{key:"initClickListener",value:function(){var e=this;k?V.on(window.VWO._.EventsEnum.DOM_CLICK,(function(t){e.processClick(t)})):_.onEventReceive(O,(function(t){e.processClick(t[1])}))}},{key:"initScrollListeners",value:function(){var e=this,t=T.debounce((function(){e.processDeadQueue()}),100);m.addEventListener(document,"scroll",t),m.addEventListener(document.body,"scroll",t,!0)}},{key:"initPageChangeListeners",value:function(){var e=this;k?V.on(E,(function(){e.processDeadQueue()})):m.addEventListener(window,"beforeunload",(function(){e.processDeadQueue()})),_.onEventReceive(window.VWO._.EventsEnum.URL_CHANGED,(function(){e.processDeadQueue()}))}},{key:"processClick",value:function(e){var t,n,i,r,o=this;if(null===(t=e._vwo)||void 0===t||!t.aux){this.clickQueue.push(e);var a=T.getTargetNode(e);b.updateNodeVisibility(a),e.eventUuid=e.eventUuid||(null===(n=window.VWO.modules)||void 0===n||null===(i=n.utils)||void 0===i||null===(r=i.libUtils)||void 0===r?void 0:r.generateUUID()),setTimeout((function(){o.processDeadQueue({filterQueue:!0})}),this.config.clickTimeout),this.sendClicks(),b.isLinkOrImmediateParentAnchor(a)||b.isNonDeadClickElement(a)||this.deadQueue.push({event:e,target:a,timestamp:Date.now()})}}},{key:"processMutations",value:function(e){var t,n=this,i=["style","id","class"],r=["aria-hidden","aria-expanded","aria-modal","aria-pressed","aria-selected","aria-checked","aria-disabled","aria-busy","aria-invalid","aria-current","aria-haspopup","aria-controls","aria-owns","aria-describedby","aria-labelledby","role"],a=o(e);try{for(a.s();!(t=a.n()).done;){var s=t.value,u=s.target;if("attributes"===s.type){var c=s.attributeName;if(i.indexOf(c)>-1||r.indexOf(c)>-1){var l=!!u._vwo_vba_vis;b.updateNodeVisibility(u);var d=!!u._vwo_vba_vis;(l||l!=d)&&this.processDeadQueue({mutatedNode:u})}}else"childList"===s.type&&(s.addedNodes.forEach((function(e){b.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){a.e(e)}finally{a.f()}}},{key:"processDeadQueue",value:function(t){var n=this,i=t||{},r=i.mutatedNode,o=i.filterQueue;if(!r||b.isElementInViewport(r)){var a=Date.now();this.deadQueue=this.deadQueue.filter((function(t){var i=t.event,r=t.timestamp;return a-r>=n.config.clickTimeout?(e.classifyDead(i),!1):!!o}))}}},{key:"triggerAuxClick",value:function(){C.getRageClicks(this.clickQueue);var e,t=o(this.clickQueue);try{for(t.s();!(e=t.n()).done;){var n=e.value;n._vwo&&n._vwo.aux&&k&&V.trigger(window.VWO._.EventsEnum.DOM_CLICK,n)}}catch(e){t.e(e)}finally{t.f()}this.clickQueue=[]}},{key:"destroy",value:function(){this.mutationObserver.disconnect(),this.deadQueue=[]}}],[{key:"classifyDead",value:function(e){e._vwo=l(l({},e._vwo),{},{isDeadClick:!0,aux:!0}),e.isDeadClick=!0}}])}());window.VWO.clickWatcher=L;var W=VWO._&&VWO._.ac&&VWO._.ac.eNC;void 0===window.DISABLE_NATIVE_CONSTANTS&&(window.DISABLE_NATIVE_CONSTANTS=!W);var P,R,D,I,N={JSON:{stringify:function(e){var t=this,n=function(e){return"string"==typeof e},i=function(e){return null===e&&"object"===p(e)},r=function(e){return"number"==typeof e&&isNaN(e)},o=function(e){return"number"==typeof e&&!isFinite(e)},a=function(e){return"symbol"===p(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"===p(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"===p(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"===p(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||(D=function(e,t){try{Object.defineProperty(e,t,{writable:!1})}catch(e){}},I=function(){if(!window.DISABLE_NATIVE_CONSTANTS){if(!document.body)return void(window.DISABLE_NATIVE_CONSTANTS=!0);P=window.document.createElement("iframe"),D(P,"src"),P.setAttribute=function(e,t){},P.style.display="none",P.onload=function(){(R=P.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(P),(R=P.contentWindow)&&D(R.location,"href")}},void 0===window.DISABLE_NATIVE_CONSTANTS?window.DISABLE_NATIVE_CONSTANTS=!0:!1===window.DISABLE_NATIVE_CONSTANTS&&I(),{get:function(e){P&&P.contentWindow||I();var t=R;return t&&!window.DISABLE_NATIVE_CONSTANTS||(t=window),window.VWO.featureInfo&&window.VWO.featureInfo.vwoNative&&N[e]?("JSON"===e&&(N[e].parse=t[e].parse),N[e]):t[e]}});var x=window.VWO._.nativeConstants,M=x,F="ex",j="pr",H="csp",B={FETCH:"fetch",XHR:"xmlhttprequest"},q=function(){return r((function e(){if(n(this,e),window.VWO.errorClickWatcher)return window.VWO.errorClickWatcher}),null,[{key:"markClickAsError",value:function(e){var t=e.map((function(e){var t=f(e.split(":"),2),n=t[0],i=t[1];return{timestamp:parseInt(n,10),id:parseInt(i,10)}}));if(!T.validateLastNErrors(t,3)){var n=Date.now()-performance.timeOrigin,i=A();if(i.length>0){var r=i[i.length-1];r.timeStamp>=n-500&&(r.isErrorClick=!0,r._vwo=l(l({},r._vwo),{},{isErrorClick:!0,aux:!0}))}}}}])}(),z=new q;window.VWO.errorClickWatcher=z;var U,X=parseInt(+new Date/1e3,10),Q=function(){return U||(U=VWO.data.ts||X)};function G(e){var t=Q(),n=parseInt(+new Date/1e3,10)-X;return e?t+n:1e3*(t+n)+ +new Date%1e3}function $(e){return 1e3*(Q()+(parseInt(e/1e3,10)-X))+ +new Date%1e3}var J=["Script error.","ResizeObserver loop completed with undelivered notifications."],K=x.get("Array"),Y=function(){return r((function e(){n(this,e),this.processedData=new K,this.pageErrors=new K,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 K,this.pageErrors=new K,this.nextErrorIndex=0,this.nextPageErrorIndex=0}},{key:"processErrorData",value:function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;if(!J.some((function(t){return"string"==typeof e[1]&&e[1].toLowerCase().indexOf(t.toLowerCase())>-1}))&&(i||(i=[]),q.markClickAsError(this.processedData),null!==(t=window.VWO.nls)&&void 0!==t&&t.startTime)){var o=e.join("_"),a=i.join("_"),s=r||Math.floor(G()-(null===(n=window.VWO.nls)||void 0===n?void 0:n.startTime)),u=this.pageErrors.indexOf(o);u>=0?this.processedData.push("".concat(s,":").concat(u)):(u=this.pageErrors.length,this.pageErrors.push(o),i.length?this.processedData.push(["".concat(s,":").concat(u),o,a].join("_")):this.processedData.push(["".concat(s,":").concat(u),o].join("_")))}}}])}();var Z=function(e){var t=document.createElement("div");return t.innerHTML='x'),t.firstChild.href},ee=function(){function e(){n(this,e)}return r(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=Z(e.getFetchURL(i));if(se.isUrlAllowed(a)){var s=T.getAnonymizedUrl(a),u=T.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([B.FETCH,n,t.status||0,i])})).catch((function(t){e.processErrorData([B.FETCH,n,0,i],[T.sanitizeActionData(t.message)])}))}},{key:"getFetchURL",value:function(e){return"object"===p(e)?e.url?e.url:e.toString():e}}])}(),te=function(){return r((function e(){n(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=Z(n),r=T.getAnonymizedUrl(i),o=T.sanitizeActionData(r);this._url=o}catch(e){}this._method=e,t.apply(this,arguments)},XMLHttpRequest.prototype.send=function(){try{se.isUrlAllowed(this._url)&&(this.addEventListener("error",(function(t){e.processErrorData([B.XHR,this._url,this.status||0,this._method],[T.sanitizeActionData(t.message)])})),this.addEventListener("load",(function(t){this.status>=400&&e.processErrorData([B.XHR,this._url,this.status||0,this._method],[T.sanitizeActionData(t.message)])})))}catch(e){}n.apply(this,arguments)}}}])}();window._vwo_evq=window._vwo_evq||[];var ne=window._vwo_evq,ie=window._vwo_ev=window._vwo_ev||function(){"jI"!==arguments[0]?ne.push([].slice.call(arguments)):ne.unshift(["jI"])};window.VWO._.triggerEvent=window._vwo_ev;var re="pTLD",oe=["co","org","com","net","edu","au","ac"],ae=window.vwo_$||window.$;var se=function(e){function i(){var e;return n(this,i),(e=t(this,i)).processXHRRequests(),e.addPerformanceObserver(),te.patchXHRAPI(e),ee.patchFetchAPI(e),e}return u(i,e),r(i,[{key:"processXHRRequests",value:function(){var e=this;performance.getEntriesByType("resource").forEach((function(t){if(!([B.FETCH,B.XHR].indexOf(t.initiatorType)<0)&&i.isUrlAllowed(t.name)&&t.responseStatus>=400){var n,r=$(performance.timeOrigin+t.responseEnd-(null===(n=window.VWO.nls)||void 0===n?void 0:n.startTime)),o=T.getAnonymizedUrl(t.name),a=T.sanitizeActionData(o),s=[t.initiatorType,a,t.responseStatus];e.processErrorData(s,null,r)}}))}},{key:"addPerformanceObserver",value:function(){var e=this,t=new PerformanceObserver((function(t){t.getEntries().forEach((function(t){if(!([B.FETCH,B.XHR].indexOf(t.initiatorType)>-1)&&i.isUrlAllowed(t.name)&&t.responseStatus>=400){var n,r=$(performance.timeOrigin+t.responseEnd-(null===(n=window.VWO.nls)||void 0===n?void 0:n.startTime)),o=T.getAnonymizedUrl(t.name),a=T.sanitizeActionData(o),s=[t.initiatorType,a,t.responseStatus];e.processErrorData(s,null,r)}}))}));t.observe({type:"resource",buffered:!0}),window.addEventListener("beforeunload",(function(){t.disconnect()}))}}],[{key:"isUrlAllowed",value:function(e){var t=T.getCookieDomain(),n=!0;try{n=!/^$/g.test(e)&&!T.containsOurDomain(e)&&function(e){var t,n=e.split("."),i=n.length,r=n[i-2];return r&&-1!==ae.inArray(r,oe)?(t=n[i-3]+"."+r+"."+n[i-1],ie(re,e,t),t):(t=r+"."+n[i-1],ie(re,e,t),t)}(new URL(e).host)===t}catch(e){}return n}}])}(Y),ue=function(e){function i(){var e;return n(this,i),(e=t(this,i)).addErrorListener(),e}return u(i,e),r(i,[{key:"addErrorListener",value:function(){var e=this;window.addEventListener("error",(function(t){if(t&&t.message){var n=T.sanitizeActionData(t.message.slice(0,e.truncationLenth));return e.processErrorData([F,n]),!0}})),window.addEventListener("unhandledrejection",(function(t){if(t&&t.reason){var n="Uncaught (in promise) "+t.reason,i=T.sanitizeActionData(n.slice(0,e.truncationLenth));return e.processErrorData([j,i]),!0}})),document.addEventListener("securitypolicyviolation",(function(t){if(t&&t.blockedURI&&se.isUrlAllowed(t.blockedURI)){var n=T.getAnonymizedUrl(t.blockedURI),i=T.sanitizeActionData(n),r=[H,i,T.sanitizeActionData(t.violatedDirective)],o=[T.sanitizeActionData(t.originalPolicy)];e.processErrorData(r,o)}}))}}])}(Y),ce=x.get("JSON"),le=function(e){function i(){var e;return n(this,i),(e=t(this,i)).patchConsoleAPI(),e}return u(i,e),r(i,[{key:"patchConsoleAPI",value:function(){var e=console.error,t=this;console.error=function(n){try{var i=n;"string"!=typeof i&&(i=ce.stringify(n)),i=T.sanitizeActionData(i.slice(0,t.truncationLenth)),t.processErrorData([i])}catch(e){}e.apply(console,arguments)}}}])}(Y),de=!1,fe=window.VWO._.listener,he=void 0!==VWO.v_e,ve=function(){function e(){n(this,e),void 0!==VWO.v_e&&VWO.featureInfo.ele&&!de&&this.init()}return r(e,[{key:"init",value:function(){var e=this;fe.onEventReceive(S,(function(){var t,n,i,r;(null!==(t=window.VWO)&&void 0!==t&&null!==(n=t.nls)&&void 0!==n&&n.r||null!==(i=window.VWO)&&void 0!==i&&null!==(r=i.nls)&&void 0!==r&&r.hs)&&e.initialize()})),he&&window.fetcher.getValue("VWO._.initClickWatcher").then((function(t){t&&!de&&e.initialize()}))}},{key:"initialize",value:function(){de||(de=!0,this.exceptionRecorder=new ue,this.consoleRecorder=new le,this.networkRecorder=new se)}},{key:"sendData",value:function(){var t;if(de&&this.isNewDataAvailable()){var n=this.exceptionRecorder.getDataToSend(),i=this.consoleRecorder.getDataToSend(),r=this.networkRecorder.getDataToSend();if(e.sendErrorOnPageAsEvent(n,i,r),null!==(t=window.VWO.nls)&&void 0!==t&&t.startTime)return e.parseErrorLoggerData(n,i,r)}}},{key:"isNewDataAvailable",value:function(){return this.exceptionRecorder.shouldSendData()||this.consoleRecorder.shouldSendData()||this.networkRecorder.shouldSendData()}},{key:"resetData",value:function(){de&&(this.exceptionRecorder.resetData(),this.consoleRecorder.resetData(),this.networkRecorder.resetData())}}],[{key:"sendErrorOnPageAsEvent",value:function(e,t,n){var i={};e&&e.pEr&&(i.e=e.pEr),t&&t.pEr&&(i.c=t.pEr),n&&n.pEr&&(i.n=n.pEr),Object.keys(i).length>0&&VWO._.phoenixMT&&VWO._.phoenixMT.trigger(window.VWO._.EventsEnum.ERROR_ONPAGE,i)}},{key:"parseErrorLoggerData",value:function(e,t,n){var i=M.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}}])}();window.VWO.ErrorLogger=new ve;window.VWO.ErrorLogger;function pe(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 we=/url\(("[^"]*"|'[^']*'|[^)]*)\)/i,me=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);function ge(){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 ye(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 be(e){var t=we.exec(e);if(!t)return"";var n=t[1];return 0===n.indexOf('"')||0===n.indexOf("'")?n.slice(1,-1):n}function Ee(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=me?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=pe({median:t,p10:n},e);return i>.9&&(i+=.05*(i-.9)),Math.floor(100*i)/100}(t,o,a)}var Oe,Te=-1,Ce=function(e){addEventListener("pageshow",(function(t){t.persisted&&(Te=t.timeStamp,e(t))}),!0)},Se=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||ke()>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}},_e=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){}},Ae=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))}},Le=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},We=function(e){document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&e()}))},Pe=function(e){var t=!1;return function(){t||(e(),t=!0)}},Re=-1,De=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},Ie=function(e){"hidden"===document.visibilityState&&Re>-1&&(Re="visibilitychange"===e.type?e.timeStamp:0,xe())},Ne=function(){addEventListener("visibilitychange",Ie,!0),addEventListener("prerenderingchange",Ie,!0)},xe=function(){removeEventListener("visibilitychange",Ie,!0),removeEventListener("prerenderingchange",Ie,!0)},Me=function(){return Re<0&&(Re=De(),Ne(),Ce((function(){setTimeout((function(){Re=De(),Ne()}),0)}))),{get firstHiddenTime(){return Re}}},Fe=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},je=[1800,3e3],He=function(e,t){t=t||{},Fe((function(){var n,i=Me(),r=Ve("FCP"),o=_e("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]};Je.set(i.id,i),$e.push(i)}$e.sort((function(e,t){return t.latency-e.latency})),$e.length>10&&$e.splice(10).forEach((function(e){return Je.delete(e.id)}))}}},tt=function(e){var t=self.requestIdleCallback||self.setTimeout,n=-1;return e=Pe(e),"hidden"===document.visibilityState?e():(n=t(e),We(e)),n},nt=[200,500],it=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},Fe((function(){var n;Ge();var i,r=Ve("INP"),o=function(e){tt((function(){e.forEach(et);var t=Ye();t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,i())}))},a=_e("event",o,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});i=Ae(e,r,nt,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),We((function(){o(a.takeRecords()),i(!0)})),Ce((function(){Ke=Qe(),$e.length=0,Je.clear(),r=Ve("INP"),i=Ae(e,r,nt,t.reportAllChanges)})))})))},rt=[2500,4e3],ot={},at=[800,1800],st=function(e){document.prerendering?Fe((function(){return st(e)})):"complete"!==document.readyState?addEventListener("load",(function(){return st(e)}),!0):setTimeout(e,0)},ut=function(){return[1053520].indexOf(window._vwo_acc_id)>-1},ct=["vwoEventName"],lt=void 0!==VWO.v_e&&VWO.featureInfo&&VWO.featureInfo.wve||ut(),dt=window.VWO._.phoenixMT,ft=window.VWO._.listener,ht=window.VWO._.cookies.get("_vwo_uuid"),vt=new(function(){return r((function e(){var t=this;if(n(this,e),lt){if(window.VWO.performanceWatcher)return window.VWO.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 n;e.duration<0||(n=e.name,!/^https?:\/\//i.test(n))||null!==t.resources&&(t.resources[e.name]=e.startTime+e.duration)}))})),this.paintObserver=new PerformanceObserver((function(e){e.getEntries().forEach((function(e){"first-paint"!==e.name||t.isHidden||(t.paintObserver.disconnect(),t.firstPaint=e.startTime)}))})),this.longTaskObserver=new PerformanceObserver((function(e){e.getEntries().forEach((function(e){e.startTime>t.firstContentfulPaint&&(t.resetQuietWindowTimer(),e.duration>50&&(t.lastLongTask=e.startTime+e.duration,t.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 e=this;this.resourceObserver.observe({type:"resource",buffered:!0}),this.paintObserver.observe({type:"paint",buffered:!0}),dt.on(window.VWO._.EventsEnum.PERFORMANCE,(function(t){if(e.isSendingInitialMetrics)e.isSendingInitialMetrics=!1;else{var n=t.vwoEventName,i=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,n())},s=_e("layout-shift",a);s&&(n=Ae(e,i,Be,t.reportAllChanges),We((function(){a(s.takeRecords()),n(!0)})),Ce((function(){r=0,i=Ve("CLS",0),n=Ae(e,i,Be,t.reportAllChanges),Le((function(){return n()}))})),setTimeout(n,0))}))),it((function(e){n.isDestroyed||(n.webVitals.inp=parseFloat(e.value.toFixed(3)))}),{reportAllChanges:!0}),function(e,t){t=t||{},Fe((function(){var n,i=Me(),r=Ve("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=ge(),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=ge(),r=i.width*i.height/10,a=r*e,s=o(t);try{for(s.s();!(n=s.n()).done;){var u=n.value,c=u.time,l=u.area;r+=l,a+=l*Math.max(c,e)}}catch(e){s.e(e)}finally{s.f()}return 0===r?0:a/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+=Ee(r,t[r])*e[r]}this.webVitals.score=parseFloat(n.toFixed(3))}},{key:"sendInitialPerformanceMetrics",value:function(){if(!this.isSendingInitialMetrics){this.isSendingInitialMetrics=!0;var e={fcp:this.firstContentfulPaint,ttfb:this.timeToFirstByte,dcl:this.domContentLoaded,pl:this.pageLoad},t=Object.keys(e).reduce((function(t,n){var i=e[n];return void 0!==i&&(t[n]=parseFloat(i.toFixed(3))),t}),{});Object.keys(t).length>0&&window.VWO._.phoenixMT.trigger(window.VWO._.EventsEnum.PERFORMANCE,t)}}},{key:"resetQuietWindowTimer",value:function(){var e=this;this.quietWindowTimeout&&clearTimeout(this.quietWindowTimeout),this.quietWindowTimeout=window.setTimeout((function(){if(!e.isTTICalculated&&e.inFlightGetRequests<3){var t={tti:parseFloat(e.lastLongTask.toFixed(3)),tbt:parseFloat(e.totalBlockingTime.toFixed(3))};e.finalTBT=parseFloat(e.totalBlockingTime.toFixed(3)),dt.trigger(window.VWO._.EventsEnum.PERFORMANCE,t),e.isTTICalculated=!0,e.longTaskObserver.disconnect(),e.speedIndexCalculation()}}),5e3)}},{key:"resetData",value:function(){lt&&(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)}}])}());window.VWO.performanceWatcher=vt}(); }); })();