Created
April 15, 2025 14:37
-
-
Save chriszarate/386b633f641e16e60b1568517a4e3546 to your computer and use it in GitHub Desktop.
Custom pendo build with 708k output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "custom-pendo-lib", | |
"version": "1.0.0", | |
"description": "", | |
"scripts": { | |
"build": "npx parcel build", | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"browserslist": "> 0.5%, last 2 versions, not dead", | |
"targets": { | |
"default": { | |
"context": "browser", | |
"distDir": ".", | |
"includeNodeModules": true, | |
"optimize": true, | |
"source": "pendo-agent.mjs", | |
"sourceMap": false | |
} | |
}, | |
"author": "", | |
"license": "ISC", | |
"dependencies": { | |
"@pendo/agent": "2.271.0" | |
}, | |
"devDependencies": {} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Build output | |
// 708k | |
!function(){var $parcel$global="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{};function $parcel$export(e,t,n,i){Object.defineProperty(e,t,{get:n,set:i,enumerable:!0,configurable:!0})}function $parcel$interopDefault(e){return e&&e.__esModule?e.default:e}var $parcel$modules={},$parcel$inits={},parcelRequire=$parcel$global.parcelRequirea8f5;null==parcelRequire&&((parcelRequire=function(e){if(e in $parcel$modules)return $parcel$modules[e].exports;if(e in $parcel$inits){var t=$parcel$inits[e];delete $parcel$inits[e];var n={id:e,exports:{}};return $parcel$modules[e]=n,t.call(n.exports,n,n.exports),n.exports}var i=Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}).register=function(e,t){$parcel$inits[e]=t},$parcel$global.parcelRequirea8f5=parcelRequire);var parcelRegister=parcelRequire.register;parcelRegister("3IN8j",function(module,exports){let canvasService,canvasCtx,errorHandler,stopFn;function URLPolyfillFactory(e){return function(t){var n=e.createElement("a");if(n.href=t,":"===n.protocol||n.href!==t&&n.href!==encodeURI(t))throw Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");return n.toString||(n.toString=function(){return n.href}),null==n.origin&&(n.origin=n.protocol+"//"+n.hostname,"80"!==n.port)&&"443"!==n.port&&(n.origin+=":"+n.port),n}}$parcel$export(module.exports,"loadAgent",function(){return loadAgent});var _a,URL$1=function(e){var t=window.URL;return"function"==typeof t&&/native/.test(t)?t:e(document)}(URLPolyfillFactory),__defProp=Object.defineProperty,__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),__defProp$1=Object.defineProperty,__defNormalProp$1=(e,t,n)=>t in e?__defProp$1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField$1=(e,t,n)=>__defNormalProp$1(e,"symbol"!=typeof t?t+"":t,n),NodeType$2=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(NodeType$2||{});let testableAccessors$1={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},testableMethods$1={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},untaintedBasePrototype$1={},isAngularZonePresent$1=()=>!!globalThis.Zone;function getUntaintedPrototype$1(e){if(untaintedBasePrototype$1[e])return untaintedBasePrototype$1[e];var t=globalThis[e];let n=t.prototype;var i=e in testableAccessors$1?testableAccessors$1[e]:void 0,i=!!(i&&i.every(e=>!!(null==(e=null==(e=Object.getOwnPropertyDescriptor(n,e))?void 0:e.get)?void 0:e.toString().includes("[native code]")))),r=e in testableMethods$1?testableMethods$1[e]:void 0,r=!!(r&&r.every(e=>"function"==typeof n[e]&&(null==(e=n[e])?void 0:e.toString().includes("[native code]"))));if(i&&r&&!isAngularZonePresent$1())return untaintedBasePrototype$1[e]=t.prototype,t.prototype;try{var o,a=document.createElement("iframe"),s=(document.body.appendChild(a),a.contentWindow);return s?(o=s[e].prototype,document.body.removeChild(a),o?untaintedBasePrototype$1[e]=o:n):t.prototype}catch{return n}}let untaintedAccessorCache$1={};function getUntaintedAccessor$1(e,t,n){var i=e+"."+String(n);return untaintedAccessorCache$1[i]?untaintedAccessorCache$1[i].call(t):(e=null==(e=Object.getOwnPropertyDescriptor(e=getUntaintedPrototype$1(e),n))?void 0:e.get)?(untaintedAccessorCache$1[i]=e).call(t):t[n]}let untaintedMethodCache$1={};function getUntaintedMethod$1(e,t,n){var i=e+"."+String(n);return untaintedMethodCache$1[i]?untaintedMethodCache$1[i].bind(t):"function"!=typeof(e=getUntaintedPrototype$1(e)[n])?t[n]:(untaintedMethodCache$1[i]=e).bind(t)}function childNodes$1(e){return getUntaintedAccessor$1("Node",e,"childNodes")}function parentNode$1(e){return getUntaintedAccessor$1("Node",e,"parentNode")}function parentElement$1(e){return getUntaintedAccessor$1("Node",e,"parentElement")}function textContent$1(e){return getUntaintedAccessor$1("Node",e,"textContent")}function contains$1(e,t){return getUntaintedMethod$1("Node",e,"contains")(t)}function getRootNode$1(e){return getUntaintedMethod$1("Node",e,"getRootNode")()}function host$1(e){return e&&"host"in e?getUntaintedAccessor$1("ShadowRoot",e,"host"):null}function styleSheets$1(e){return e.styleSheets}function shadowRoot$1(e){return e&&"shadowRoot"in e?getUntaintedAccessor$1("Element",e,"shadowRoot"):null}function querySelector$1(e,t){return getUntaintedAccessor$1("Element",e,"querySelector")(t)}function querySelectorAll$1(e,t){return getUntaintedAccessor$1("Element",e,"querySelectorAll")(t)}function mutationObserverCtor$1(){return getUntaintedPrototype$1("MutationObserver").constructor}let index$1={childNodes:childNodes$1,parentNode:parentNode$1,parentElement:parentElement$1,textContent:textContent$1,host:host$1,shadowRoot:shadowRoot$1};function isElement(e){return e.nodeType===e.ELEMENT_NODE}function isShadowRoot(e){var t=e&&"host"in e&&"mode"in e&&index$1.host(e)||null;return!!(t&&"shadowRoot"in t&&index$1.shadowRoot(t)===e)}function isNativeShadowDom(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function getNative$1$1(e,t=window){var n=null==(i=null==(n=null==t?void 0:t.Zone)?void 0:n.__symbol__)?void 0:i.call(n,e);if(n){var i=t[n];if(i)return i}return t[e]}let nativeSetTimeout="undefined"!=typeof window?getNative$1$1("setTimeout").bind(window):$parcel$global.setTimeout;function fixBrowserCompatibilityIssuesInCSS(e){return e=e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")?e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"):e}function escapeImportStatement(e){var t=e.cssText;return t.split('"').length<3?t:(t=["@import",`url(${JSON.stringify(e.href)})`],""===e.layerName?t.push("layer"):e.layerName&&t.push(`layer(${e.layerName})`),e.supportsText&&t.push(`supports(${e.supportsText})`),e.media.length&&t.push(e.media.mediaText),t.join(" ")+";")}function stringifyStylesheet(e){try{var t=e.rules||e.cssRules;if(!t)return null;let n=e.href;return!n&&e.ownerNode&&e.ownerNode.ownerDocument&&(n=e.ownerNode.ownerDocument.location.href),fixBrowserCompatibilityIssuesInCSS(Array.from(t,e=>stringifyRule(e,n)).join(""))}catch(e){return null}}function stringifyRule(e,t){if(isCSSImportRule(e)){let t;try{t=stringifyStylesheet(e.styleSheet)||escapeImportStatement(e)}catch(n){t=e.cssText}return e.styleSheet.href?absolutifyURLs(t,e.styleSheet.href):t}{let n=e.cssText;return isCSSStyleRule(e)&&(n=replaceChromeGridTemplateAreas(e),e.selectorText.includes(":"))&&(n=fixSafariColons(n)),t?absolutifyURLs(n,t):n}}function replaceChromeGridTemplateAreas(e){var t=e.cssText.includes("grid-template:"),n=""!==e.style.getPropertyValue("grid-template-areas"),i=e.cssText.includes("grid-template-areas:");if(t&&n&&!i){var r=[];for(let t=0;t<e.style.length;t++){var o=e.style[t],a=e.style.getPropertyValue(o);r.push(o+": "+a)}return`${e.selectorText} { ${r.join("; ")}; }`}return e.cssText}function fixSafariColons(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function isCSSImportRule(e){return"styleSheet"in e}function isCSSStyleRule(e){return"selectorText"in e}class Mirror{constructor(){__publicField$1(this,"idNodeMap",new Map),__publicField$1(this,"nodeMetaMap",new WeakMap)}getId(e){return e?(null==(e=this.getMeta(e))?void 0:e.id)??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){var t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){var n=this.getNode(e);n&&(n=this.nodeMetaMap.get(n))&&this.nodeMetaMap.set(t,n),this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function createMirror$2(){return new Mirror}function maskInputValue({element:e,maskInputOptions:t,tagName:n,type:i,value:r,maskInputFn:o,needsMask:a}){let s=r||"";return r=i&&toLowerCase(i),t[n.toLowerCase()]||r&&t[r]||a?o?o(s,e):"*".repeat(s.length):s}function toLowerCase(e){return e.toLowerCase()}let ORIGINAL_ATTRIBUTE_NAME="__rrweb_original__";function is2DCanvasBlank(e){var t=e.getContext("2d");if(t)for(let i=0;i<e.width;i+=50)for(let r=0;r<e.height;r+=50){var n=t.getImageData,n=ORIGINAL_ATTRIBUTE_NAME in n?n[ORIGINAL_ATTRIBUTE_NAME]:n;if(new Uint32Array(n.call(t,i,r,Math.min(50,e.width-i),Math.min(50,e.height-r)).data.buffer).some(e=>0!==e))return!1}return!0}function getInputType(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?toLowerCase(t):null}function extractFileExtension(e,t){let n;try{n=new URL$1(e,t??window.location.href)}catch(e){return null}return(null==(e=n.pathname.match(/\.([0-9a-z]+)(?:$)/i))?void 0:e[1])??null}function extractOrigin(e){let t="";return(t=-1<e.indexOf("//")?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}let URL_IN_CSS_REF=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,URL_PROTOCOL_MATCH=/^(?:[a-z+]+:)?\/\//i,URL_WWW_MATCH=/^www\..*/i,DATA_URI=/^(data:)([^,]*),(.*)/i;function absolutifyURLs(e,t){return(e||"").replace(URL_IN_CSS_REF,(e,n,i,r,o,a)=>{if(i=i||o||a,o=n||r||"",!i)return e;if(URL_PROTOCOL_MATCH.test(i)||URL_WWW_MATCH.test(i)||DATA_URI.test(i))return`url(${o}${i}${o})`;if("/"===i[0])return`url(${o}${extractOrigin(t)+i}${o})`;var s=t.split("/"),a=i.split("/");for(let e of(s.pop(),a))"."!==e&&(".."===e?s.pop():s.push(e));return`url(${o}${s.join("/")}${o})`})}let _id=1,tagNameRegex=RegExp("[^a-z0-9-_:]"),IGNORED_NODE=-2;function genId(){return _id++}function getValidTagName$1(e){return e instanceof HTMLFormElement?"form":(e=toLowerCase(e.tagName),tagNameRegex.test(e)?"div":e)}let SRCSET_NOT_SPACES=/^[^ \t\n\r\u000c]+/,SRCSET_COMMAS_OR_SPACES=/^[, \t\n\r\u000c]+/;function getAbsoluteSrcsetString(e,t){if(""===t.trim())return t;let n=0;function i(e){var e=e.exec(t.substring(n));return e?(e=e[0],n+=e.length,e):""}for(var r=[];i(SRCSET_COMMAS_OR_SPACES),!(n>=t.length);){let a=i(SRCSET_NOT_SPACES);if(","===a.slice(-1))a=absoluteToDoc(e,a.substring(0,a.length-1)),r.push(a);else{let i="",s=(a=absoluteToDoc(e,a),!1);for(;;){var o=t.charAt(n);if(""===o){r.push((a+i).trim());break}if(s)")"===o&&(s=!1);else{if(","===o){n+=1,r.push((a+i).trim());break}"("===o&&(s=!0)}i+=o,n+=1}}}return r.join(", ")}let cachedDocument=new WeakMap;function absoluteToDoc(e,t){return t&&""!==t.trim()?getHref(e,t):t}function isSVGElement(e){return!!("svg"===e.tagName||e.ownerSVGElement)}function getHref(e,t){let n=cachedDocument.get(e);if(n||(n=e.createElement("a"),cachedDocument.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function transformAttribute(e,t,n,i){return i&&("src"!==n&&("href"!==n||"use"===t&&"#"===i[0])&&("xlink:href"!==n||"#"===i[0])&&("background"!==n||"table"!==t&&"td"!==t&&"th"!==t)?"srcset"===n?getAbsoluteSrcsetString(e,i):"style"===n?absolutifyURLs(i,getHref(e)):"object"===t&&"data"===n?absoluteToDoc(e,i):i:absoluteToDoc(e,i))}function ignoreAttribute(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function _isBlockedElement(e,t,n){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else if(t)for(let n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(n)return e.matches(n)}catch(e){}return!1}function classMatchesRegex(e,t,n){if(!e||!t)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!n&&classMatchesRegex(index$1.parentNode(e),t,n);for(let n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!n&&classMatchesRegex(index$1.parentNode(e),t,n)}function needMaskingText(e,t,n,i){let r;if(isElement(e)){if(r=e,"*"===n)return!0;if(!index$1.childNodes(r).length)return!1}else{if(null===index$1.parentElement(e))return!1;r=index$1.parentElement(e)}try{if("string"==typeof t){if(i){if(r.closest("."+t))return!0}else if(r.classList.contains(t))return!0}else if(classMatchesRegex(r,t,i))return!0;if(n){if(i){if(r.closest(n))return!0}else if(r.matches(n))return!0}}catch(e){}return!1}function onceIframeLoaded(e,t,n){var i=e.contentWindow;if(i){let r=!1,o;try{o=i.document.readyState}catch(e){return}if("complete"!==o){let i=nativeSetTimeout(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{clearTimeout(i),r=!0,t()})}else{if(n="about:blank",(e.src===n||e.src!==n&&i.location.href!==n)&&"complete"===o)return nativeSetTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}}}function onceStylesheetLoaded(e,t,n){let i=!1,r;try{r=e.sheet}catch(e){return}if(!r){let r=nativeSetTimeout(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{clearTimeout(r),i=!0,t()})}}function serializeNode(e,t){var{doc:n,mirror:t,blockClass:i,blockSelector:r,needsMask:o,inlineStylesheet:a,maskInputOptions:s={},maskTextFn:d,maskInputFn:u,dataURLOptions:c={},inlineImages:l,recordCanvas:p,keepIframeSrcFn:f,newlyAddedElement:h=!1}=t,g=getRootId(n,t);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:NodeType$2.Document,childNodes:[],compatMode:e.compatMode}:{type:NodeType$2.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:NodeType$2.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:g};case e.ELEMENT_NODE:return serializeElementNode(e,{doc:n,blockClass:i,blockSelector:r,inlineStylesheet:a,maskInputOptions:s,maskInputFn:u,dataURLOptions:c,inlineImages:l,recordCanvas:p,keepIframeSrcFn:f,newlyAddedElement:h,rootId:g,needsMask:o});case e.TEXT_NODE:return serializeTextNode(e,{doc:n,needsMask:o,maskTextFn:d,maskInputOptions:s,maskInputFn:u,rootId:g});case e.CDATA_SECTION_NODE:return{type:NodeType$2.CDATA,textContent:"",rootId:g};case e.COMMENT_NODE:return{type:NodeType$2.Comment,textContent:index$1.textContent(e)||"",rootId:g};default:return!1}}function getRootId(e,t){return t.hasNode(e)&&1!==(e=t.getId(e))?e:void 0}function serializeTextNode(e,t){var n,{needsMask:i,maskTextFn:r,rootId:o,maskInputOptions:a,maskInputFn:s}=t,d=index$1.parentNode(e),u=d&&d.tagName;let c=index$1.textContent(e);var l="STYLE"===u||void 0,p="SCRIPT"===u||void 0,u="TEXTAREA"===u||void 0;if(l&&c){try{e.nextSibling||e.previousSibling||null!=(n=d.sheet)&&n.cssRules&&(c=stringifyStylesheet(d.sheet))}catch(t){console.warn("Cannot get CSS styles from text's parentNode. Error: "+t,e)}c=absolutifyURLs(c,getHref(t.doc))}return p&&(c="SCRIPT_PLACEHOLDER"),!l&&!p&&c&&i&&(c=r?r(c,index$1.parentElement(e)):c.replace(/[\S]/g,"*")),u&&c&&a.textarea&&(c=s?s(c,e.parentNode):c.replace(/[\S]/g,"*")),{type:NodeType$2.Text,textContent:c||"",isStyle:l,rootId:o}}function serializeElementNode(e,t){let n,{doc:i,blockClass:r,blockSelector:o,inlineStylesheet:a,maskInputOptions:s={},maskInputFn:d,dataURLOptions:u={},inlineImages:c,recordCanvas:l,keepIframeSrcFn:p,newlyAddedElement:f=!1,rootId:h,needsMask:g}=t;var t=_isBlockedElement(e,r,o),m=getValidTagName$1(e);let v={};var y,b=e.attributes.length;for(let t=0;t<b;t++){var I=e.attributes[t];ignoreAttribute(m,I.name,I.value)||(v[I.name]=transformAttribute(i,m,toLowerCase(I.name),I.value))}if("link"===m&&a){var w=Array.from(i.styleSheets).find(t=>t.href===e.href);let t=null;(t=w?stringifyStylesheet(w):t)&&(delete v.rel,delete v.href,v._cssText=t)}if("style"===m&&e.sheet&&!(e.innerText||index$1.textContent(e)||"").trim().length&&(w=stringifyStylesheet(e.sheet))&&(v._cssText=w),"input"!==m&&"textarea"!==m&&"select"!==m||(w=e.value,y=e.checked,"radio"!==v.type&&"checkbox"!==v.type&&"submit"!==v.type&&"button"!==v.type&&w?v.value=maskInputValue({element:e,type:getInputType(e),tagName:m,value:w,maskInputOptions:s,maskInputFn:d,needsMask:g}):y&&(v.checked=y)),"option"===m&&(e.selected&&!s.select?v.selected=!0:delete v.selected),"dialog"===m&&e.open&&(v.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===m&&l&&("2d"===e.__context?is2DCanvasBlank(e)||(v.rr_dataURL=e.toDataURL(u.type,u.quality)):"__context"in e||(w=e.toDataURL(u.type,u.quality),(y=i.createElement("canvas")).width=e.width,y.height=e.height,w!==y.toDataURL(u.type,u.quality)&&(v.rr_dataURL=w))),"img"===m&&c){canvasService||(canvasCtx=(canvasService=i.createElement("canvas")).getContext("2d"));let t=e,n=t.currentSrc||t.getAttribute("src")||"<unknown-src>",r=t.crossOrigin,o=()=>{t.removeEventListener("load",o);try{canvasService.width=t.naturalWidth,canvasService.height=t.naturalHeight,canvasCtx.drawImage(t,0,0),v.rr_dataURL=canvasService.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o));console.warn(`Cannot inline img src=${n}! Error: `+e)}"anonymous"===t.crossOrigin&&(r?v.crossOrigin=r:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}"audio"!==m&&"video"!==m||((y=v).rr_mediaState=e.paused?"paused":"played",y.rr_mediaCurrentTime=e.currentTime,y.rr_mediaPlaybackRate=e.playbackRate,y.rr_mediaMuted=e.muted,y.rr_mediaLoop=e.loop,y.rr_mediaVolume=e.volume),f||(e.scrollLeft&&(v.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(v.rr_scrollTop=e.scrollTop)),t&&({width:w,height:y}=e.getBoundingClientRect(),v={class:v.class,rr_width:w+"px",rr_height:y+"px"}),"iframe"!==m||p(v.src)||(e.contentDocument||(v.rr_src=v.src),delete v.src);try{customElements.get(m)&&(n=!0)}catch(e){}return{type:NodeType$2.Element,tagName:m,attributes:v,childNodes:[],isSVG:isSVGElement(e)||void 0,needBlock:t,rootId:h,isCustom:n}}function lowerIfExists(e){return null==e?"":e.toLowerCase()}function slimDOMExcluded(e,t){if(t.comment&&e.type===NodeType$2.Comment)return!0;if(e.type===NodeType$2.Element&&(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===extractFileExtension(e.attributes.href))||t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(lowerIfExists(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===lowerIfExists(e.attributes.name)||"icon"===lowerIfExists(e.attributes.rel)||"apple-touch-icon"===lowerIfExists(e.attributes.rel)||"shortcut icon"===lowerIfExists(e.attributes.rel)))||"meta"===e.tagName&&(t.headMetaDescKeywords&&lowerIfExists(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(lowerIfExists(e.attributes.property).match(/^(og|twitter|fb):/)||lowerIfExists(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===lowerIfExists(e.attributes.name))||t.headMetaRobots&&("robots"===lowerIfExists(e.attributes.name)||"googlebot"===lowerIfExists(e.attributes.name)||"bingbot"===lowerIfExists(e.attributes.name))||t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"]||t.headMetaAuthorship&&("author"===lowerIfExists(e.attributes.name)||"generator"===lowerIfExists(e.attributes.name)||"framework"===lowerIfExists(e.attributes.name)||"publisher"===lowerIfExists(e.attributes.name)||"progid"===lowerIfExists(e.attributes.name)||lowerIfExists(e.attributes.property).match(/^article:/)||lowerIfExists(e.attributes.property).match(/^product:/))||t.headMetaVerification&&("google-site-verification"===lowerIfExists(e.attributes.name)||"yandex-verification"===lowerIfExists(e.attributes.name)||"csrf-token"===lowerIfExists(e.attributes.name)||"p:domain_verify"===lowerIfExists(e.attributes.name)||"verify-v1"===lowerIfExists(e.attributes.name)||"verification"===lowerIfExists(e.attributes.name)||"shopify-checkout-api-token"===lowerIfExists(e.attributes.name)))))return!0;return!1}function serializeNodeWithId(e,t){let n,{doc:i,mirror:r,blockClass:o,blockSelector:a,maskTextClass:s,maskTextSelector:d,skipChild:u=!1,inlineStylesheet:c=!0,maskInputOptions:l={},maskTextFn:p,maskInputFn:f,slimDOMOptions:h,dataURLOptions:g={},inlineImages:m=!1,recordCanvas:v=!1,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:I=5e3,onStylesheetLoad:w,stylesheetLoadTimeout:C=5e3,keepIframeSrcFn:S=()=>!1,newlyAddedElement:x=!1}=t,A=t.needsMask,{preserveWhiteSpace:E=!0}=t;if(A||(A=needMaskingText(e,s,d,t=void 0===A)),!(t=serializeNode(e,{doc:i,mirror:r,blockClass:o,blockSelector:a,needsMask:A,inlineStylesheet:c,maskInputOptions:l,maskTextFn:p,maskInputFn:f,dataURLOptions:g,inlineImages:m,recordCanvas:v,keepIframeSrcFn:S,newlyAddedElement:x})))return console.warn(e,"not serialized"),null;n=r.hasNode(e)?r.getId(e):!slimDOMExcluded(t,h)&&(E||t.type!==NodeType$2.Text||t.isStyle||t.textContent.replace(/^\s+|\s+$/gm,"").length)?genId():IGNORED_NODE;var T=Object.assign(t,{id:n});if(r.add(e,T),n===IGNORED_NODE)return null;y&&y(e);let k=!u;if(T.type===NodeType$2.Element&&(k=k&&!T.needBlock,delete T.needBlock,t=index$1.shadowRoot(e))&&isNativeShadowDom(t)&&(T.isShadowHost=!0),(T.type===NodeType$2.Document||T.type===NodeType$2.Element)&&k){h.headWhitespace&&T.type===NodeType$2.Element&&"head"===T.tagName&&(E=!1);var _={doc:i,mirror:r,blockClass:o,blockSelector:a,needsMask:A,maskTextClass:s,maskTextSelector:d,skipChild:u,inlineStylesheet:c,maskInputOptions:l,maskTextFn:p,maskInputFn:f,slimDOMOptions:h,dataURLOptions:g,inlineImages:m,recordCanvas:v,preserveWhiteSpace:E,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:I,onStylesheetLoad:w,stylesheetLoadTimeout:C,keepIframeSrcFn:S};if(T.type!==NodeType$2.Element||"textarea"!==T.tagName||void 0===T.attributes.value)for(let t of Array.from(index$1.childNodes(e))){var R=serializeNodeWithId(t,_);R&&T.childNodes.push(R)}let t=null;if(isElement(e)&&(t=index$1.shadowRoot(e)))for(let e of Array.from(index$1.childNodes(t))){var O=serializeNodeWithId(e,_);O&&(isNativeShadowDom(t)&&(O.isShadow=!0),T.childNodes.push(O))}}return(t=index$1.parentNode(e))&&isShadowRoot(t)&&isNativeShadowDom(t)&&(T.isShadow=!0),T.type===NodeType$2.Element&&"iframe"===T.tagName&&onceIframeLoaded(e,()=>{var t=e.contentDocument;t&&b&&(t=serializeNodeWithId(t,{doc:t,mirror:r,blockClass:o,blockSelector:a,needsMask:A,maskTextClass:s,maskTextSelector:d,skipChild:!1,inlineStylesheet:c,maskInputOptions:l,maskTextFn:p,maskInputFn:f,slimDOMOptions:h,dataURLOptions:g,inlineImages:m,recordCanvas:v,preserveWhiteSpace:E,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:I,onStylesheetLoad:w,stylesheetLoadTimeout:C,keepIframeSrcFn:S}))&&b(e,t)},I),T.type===NodeType$2.Element&&"link"===T.tagName&&"string"==typeof T.attributes.rel&&("stylesheet"===T.attributes.rel||"preload"===T.attributes.rel&&"string"==typeof T.attributes.href&&"css"===extractFileExtension(T.attributes.href))&&onceStylesheetLoaded(e,()=>{var t;w&&(t=serializeNodeWithId(e,{doc:i,mirror:r,blockClass:o,blockSelector:a,needsMask:A,maskTextClass:s,maskTextSelector:d,skipChild:!1,inlineStylesheet:c,maskInputOptions:l,maskTextFn:p,maskInputFn:f,slimDOMOptions:h,dataURLOptions:g,inlineImages:m,recordCanvas:v,preserveWhiteSpace:E,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:I,onStylesheetLoad:w,stylesheetLoadTimeout:C,keepIframeSrcFn:S}))&&w(e,t)},C),T}function snapshot(e,t){var{mirror:t=new Mirror,blockClass:n="rr-block",blockSelector:i=null,maskTextClass:r="rr-mask",maskTextSelector:o=null,inlineStylesheet:a=!0,inlineImages:s=!1,recordCanvas:d=!1,maskAllInputs:u=!1,maskTextFn:c,maskInputFn:l,slimDOM:p=!1,dataURLOptions:f,preserveWhiteSpace:h,onSerialize:g,onIframeLoad:m,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:I=()=>!1}=t||{};return serializeNodeWithId(e,{doc:e,mirror:t,blockClass:n,blockSelector:i,maskTextClass:r,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===u?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===u?{password:!0}:u,maskTextFn:c,maskInputFn:l,slimDOMOptions:!0===p||"all"===p?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===p,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===p?{}:p,dataURLOptions:f,inlineImages:s,recordCanvas:d,preserveWhiteSpace:h,onSerialize:g,onIframeLoad:m,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:I,newlyAddedElement:!1})}var __defProp2=Object.defineProperty,__defNormalProp2=(e,t,n)=>t in e?__defProp2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField2=(e,t,n)=>__defNormalProp2(e,"symbol"!=typeof t?t+"":t,n);function getNative$8(e,t=window){var n=null==(i=null==(n=null==t?void 0:t.Zone)?void 0:n.__symbol__)?void 0:i.call(n,e);if(n){var i=t[n];if(i)return i}return t[e]}"undefined"!=typeof window?getNative$8("setTimeout").bind(window):$parcel$global.setTimeout;class BaseRRNode{constructor(){__publicField2(this,"parentElement",null),__publicField2(this,"parentNode",null),__publicField2(this,"ownerDocument"),__publicField2(this,"firstChild",null),__publicField2(this,"lastChild",null),__publicField2(this,"previousSibling",null),__publicField2(this,"nextSibling",null),__publicField2(this,"ELEMENT_NODE",1),__publicField2(this,"TEXT_NODE",3),__publicField2(this,"nodeType"),__publicField2(this,"nodeName"),__publicField2(this,"RRNodeType")}get childNodes(){var e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(e instanceof BaseRRNode&&e.ownerDocument===this.ownerDocument){if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}}return!1}appendChild(e){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}let testableAccessors={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},testableMethods={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},untaintedBasePrototype={},isAngularZonePresent=()=>!!globalThis.Zone;function getUntaintedPrototype(e){if(untaintedBasePrototype[e])return untaintedBasePrototype[e];var t=globalThis[e];let n=t.prototype;var i=e in testableAccessors?testableAccessors[e]:void 0,i=!!(i&&i.every(e=>!!(null==(e=null==(e=Object.getOwnPropertyDescriptor(n,e))?void 0:e.get)?void 0:e.toString().includes("[native code]")))),r=e in testableMethods?testableMethods[e]:void 0,r=!!(r&&r.every(e=>"function"==typeof n[e]&&(null==(e=n[e])?void 0:e.toString().includes("[native code]"))));if(i&&r&&!isAngularZonePresent())return untaintedBasePrototype[e]=t.prototype,t.prototype;try{var o,a=document.createElement("iframe"),s=(document.body.appendChild(a),a.contentWindow);return s?(o=s[e].prototype,document.body.removeChild(a),o?untaintedBasePrototype[e]=o:n):t.prototype}catch{return n}}let untaintedAccessorCache={};function getUntaintedAccessor(e,t,n){var i=e+"."+String(n);return untaintedAccessorCache[i]?untaintedAccessorCache[i].call(t):(e=null==(e=Object.getOwnPropertyDescriptor(e=getUntaintedPrototype(e),n))?void 0:e.get)?(untaintedAccessorCache[i]=e).call(t):t[n]}let untaintedMethodCache={};function getUntaintedMethod(e,t,n){var i=e+"."+String(n);return untaintedMethodCache[i]?untaintedMethodCache[i].bind(t):"function"!=typeof(e=getUntaintedPrototype(e)[n])?t[n]:(untaintedMethodCache[i]=e).bind(t)}function childNodes(e){return getUntaintedAccessor("Node",e,"childNodes")}function parentNode(e){return getUntaintedAccessor("Node",e,"parentNode")}function parentElement(e){return getUntaintedAccessor("Node",e,"parentElement")}function textContent(e){return getUntaintedAccessor("Node",e,"textContent")}function contains(e,t){return getUntaintedMethod("Node",e,"contains")(t)}function getRootNode(e){return getUntaintedMethod("Node",e,"getRootNode")()}function host(e){return e&&"host"in e?getUntaintedAccessor("ShadowRoot",e,"host"):null}function styleSheets(e){return e.styleSheets}function shadowRoot(e){return e&&"shadowRoot"in e?getUntaintedAccessor("Element",e,"shadowRoot"):null}function querySelector(e,t){return getUntaintedAccessor("Element",e,"querySelector")(t)}function querySelectorAll(e,t){return getUntaintedAccessor("Element",e,"querySelectorAll")(t)}function mutationObserverCtor(){return getUntaintedPrototype("MutationObserver").constructor}let index={childNodes:childNodes,parentNode:parentNode,parentElement:parentElement,textContent:textContent,contains:contains,getRootNode:getRootNode,host:host,shadowRoot:shadowRoot};function getWindow(e){return e.defaultView||e}function on(e,t,n=document){var i=getWindow(n),r=getNative$1$1("addEventListener",i);let o=getNative$1$1("removeEventListener",i),a={capture:!0,passive:!0};return r.call(n,e,t,a),()=>o.call(n,e,t,a)}let DEPARTED_MIRROR_ACCESS_WARNING="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",_mirror={map:{},getId:()=>(console.error(DEPARTED_MIRROR_ACCESS_WARNING),-1),getNode:()=>(console.error(DEPARTED_MIRROR_ACCESS_WARNING),null),removeNodeFromMap(){console.error(DEPARTED_MIRROR_ACCESS_WARNING)},has:()=>(console.error(DEPARTED_MIRROR_ACCESS_WARNING),!1),reset(){console.error(DEPARTED_MIRROR_ACCESS_WARNING)}};function throttle$2(e,t,n={}){let i=null,r=0;return function(...o){var a=Date.now(),s=(r||!1!==n.leading||(r=a),t-(a-r));let d=this;s<=0||t<s?(i&&(clearTimeout(i),i=null),r=a,e.apply(d,o)):i||!1===n.trailing||(i=nativeSetTimeout(()=>{r=!1===n.leading?0:Date.now(),i=null,e.apply(d,o)},s))}}function hookSetter(e,t,n,i,r=window){let o=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,i?n:{set(e){nativeSetTimeout(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>hookSetter(e,t,o||{},!0)}function patch(e,t,n){try{if(!(t in e))return()=>{};let r=e[t];var i=n(r);return"function"==typeof i&&(i.toString=function(){return r.toString()},i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(_mirror=new Proxy(_mirror,{get:(e,t,n)=>("map"===t&&console.error(DEPARTED_MIRROR_ACCESS_WARNING),Reflect.get(e,t,n))}));let nowTimestamp=Date.now;function getWindowScroll(e){var t,n=e.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:n.documentElement.scrollLeft||(null==n?void 0:n.body)&&(null==(t=index.parentElement(n.body))?void 0:t.scrollLeft)||(null==(t=null==n?void 0:n.body)?void 0:t.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==n?void 0:n.documentElement.scrollTop)||(null==n?void 0:n.body)&&(null==(t=index.parentElement(n.body))?void 0:t.scrollTop)||(null==(e=null==n?void 0:n.body)?void 0:e.scrollTop)||0}}function getWindowHeight(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function getWindowWidth(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function closestElementOfNode(e){return e?e.nodeType===e.ELEMENT_NODE?e:index.parentElement(e):null}function isBlocked(e,t,n,i){if(e&&(e=closestElementOfNode(e))){try{if("string"==typeof t){if(e.classList.contains(t)||i&&null!==e.closest("."+t))return!0}else if(classMatchesRegex(e,t,i))return!0}catch(e){}if(n&&(e.matches(n)||i&&null!==e.closest(n)))return!0}return!1}function isSerialized(e,t){return -1!==t.getId(e)}function isIgnored(e,t,n){return!("TITLE"!==e.tagName||!n.headTitleMutations)||t.getId(e)===IGNORED_NODE}function isAncestorRemoved(e,t){var n;return!isShadowRoot(e)&&(n=t.getId(e),!t.has(n)||(!(n=index.parentNode(e))||n.nodeType!==e.DOCUMENT_NODE)&&(!n||isAncestorRemoved(n,t)))}function legacy_isTouchEvent(e){return!!e.changedTouches}function polyfill$1(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function isSerializedIframe(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function isSerializedStylesheet(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function hasShadowRoot(e){return!!e&&(e instanceof BaseRRNode&&"shadowRoot"in e?!!e.shadowRoot:!!index.shadowRoot(e))}/[1-9][0-9]{12}/.test(Date.now().toString())||(nowTimestamp=()=>(new Date).getTime());class StyleSheetMirror{constructor(){__publicField(this,"id",1),__publicField(this,"styleIDMap",new WeakMap),__publicField(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let n;return this.has(e)?this.getId(e):(n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function getShadowHost(e){var t;let n=null;return"getRootNode"in e&&(null==(t=index.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&index.host(index.getRootNode(e))?index.host(index.getRootNode(e)):n}function getRootShadowHost(e){let t=e;for(var n;n=getShadowHost(t);)t=n;return t}function shadowHostInDom(e){var t=e.ownerDocument;return!!t&&(e=getRootShadowHost(e),index.contains(t,e))}function inDom(e){var t=e.ownerDocument;return!!t&&(index.contains(t,e)||shadowHostInDom(e))}var EventType=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(EventType||{}),IncrementalSource=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(IncrementalSource||{}),MouseInteractions=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(MouseInteractions||{}),PointerTypes=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(PointerTypes||{}),CanvasContext=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(CanvasContext||{}),MediaInteractions=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(MediaInteractions||{});function isNodeInLinkedList(e){return"__ln"in e}class DoubleLinkedList{constructor(){__publicField(this,"length",0),__publicField(this,"head",null),__publicField(this,"tail",null),__publicField(this,"reordered",!1)}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=(null==t?void 0:t.next)||null;return t}addNode(e){var t,n={value:e,previous:null,next:null};e.__ln=n,e.previousSibling&&isNodeInLinkedList(e.previousSibling)?(n.next=t=e.previousSibling.__ln.next,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,t&&(t.previous=n)):e.nextSibling&&isNodeInLinkedList(e.nextSibling)&&e.nextSibling.__ln.previous?(n.previous=t=e.nextSibling.__ln.previous,n.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=n,t&&(t.next=n)):(this.head&&(this.head.previous=n),n.next=this.head,this.head=n),null===n.next&&(this.tail=n),this.length++}removeNode(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}needsReorder(e){return!(this.reordered||!e.value.previousSibling||!isNodeInLinkedList(e.value.previousSibling)||!e.previous||e.previous.value===e.value.previousSibling)}reorder(){if(this.reordered)return!1;let e=this.tail;for(var t=this.head;e;){var n=e.previous;if(this.removeNode(e.value),this.addNode(e.value),e===t)break;e=n}return this.reordered=!0}}let moveKey=(e,t)=>e+"@"+t;class MutationBuffer{constructor(){__publicField(this,"frozen",!1),__publicField(this,"locked",!1),__publicField(this,"texts",[]),__publicField(this,"attributes",[]),__publicField(this,"attributeMap",new WeakMap),__publicField(this,"removes",[]),__publicField(this,"mapRemoves",[]),__publicField(this,"movedMap",{}),__publicField(this,"addedSet",new Set),__publicField(this,"movedSet",new Set),__publicField(this,"droppedSet",new Set),__publicField(this,"removesSubTreeCache",new Set),__publicField(this,"mutationCb"),__publicField(this,"blockClass"),__publicField(this,"blockSelector"),__publicField(this,"maskTextClass"),__publicField(this,"maskTextSelector"),__publicField(this,"inlineStylesheet"),__publicField(this,"maskInputOptions"),__publicField(this,"maskTextFn"),__publicField(this,"maskInputFn"),__publicField(this,"keepIframeSrcFn"),__publicField(this,"recordCanvas"),__publicField(this,"inlineImages"),__publicField(this,"slimDOMOptions"),__publicField(this,"dataURLOptions"),__publicField(this,"doc"),__publicField(this,"mirror"),__publicField(this,"iframeManager"),__publicField(this,"stylesheetManager"),__publicField(this,"shadowDomManager"),__publicField(this,"canvasManager"),__publicField(this,"processedNodeManager"),__publicField(this,"unattachedDoc"),__publicField(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),__publicField(this,"emit",()=>{if(!this.frozen&&!this.locked){let s=[],d=new Set,u=new DoubleLinkedList,c=e=>{let t=e,n=IGNORED_NODE;for(;n===IGNORED_NODE;)n=(t=t&&t.nextSibling)&&this.mirror.getId(t);return n};for(var e,t,n=e=>{var t,n,i=index.parentNode(e);if(i&&inDom(e)&&"TEXTAREA"!==i.tagName)return i=isShadowRoot(i)?this.mirror.getId(getShadowHost(e)):this.mirror.getId(i),t=c(e),-1===i||-1===t?u.addNode(e):void((n=serializeNodeWithId(e,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:t=>{isSerializedIframe(t,this.mirror)&&this.iframeManager.addIframe(t),isSerializedStylesheet(t,this.mirror)&&this.stylesheetManager.trackLinkElement(t),hasShadowRoot(e)&&this.shadowDomManager.addShadowRoot(index.shadowRoot(e),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}}))&&(s.push({parentId:i,nextId:t,node:n}),d.add(n.id)))};this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet){var i=index.parentNode(e);(!isParentRemoved(this.removesSubTreeCache,e,this.mirror)||this.movedSet.has(i)||this.addedSet.has(i))&&n(e)}for(let e of this.addedSet)!isAncestorInSet(this.droppedSet,e)&&!isParentRemoved(this.removesSubTreeCache,e,this.mirror)||isAncestorInSet(this.movedSet,e)?n(e):this.droppedSet.add(e);let l=null;for(;u.length;){let i=null;if(!(i=l&&(e=this.mirror.getId(index.parentNode(l.value)),t=c(l.value),-1!==e)&&-1!==t?l:i)){let e=u.tail;for(;e;){var r=e;if(e=e.previous,r){var o=this.mirror.getId(index.parentNode(r.value));if(-1===c(r.value))u.needsReorder(r)&&u.reorder()&&(e=u.tail);else if(-1!==o||(o=r.value,(o=index.parentNode(o))&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(o=index.host(o),-1!==this.mirror.getId(o)))){i=r;break}}}}if(!i){for(;u.head;)u.removeNode(u.head.value);break}l=i.previous,u.removeNode(i.value),n(i.value)}var a={texts:this.texts.map(e=>{var t=e.node,n=index.parentNode(t);return n&&"TEXTAREA"===n.tagName&&this.genTextAreaValueMutation(n),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!d.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{var t,n,i=e.attributes;return"string"==typeof i.style&&(t=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles),t.length<i.style.length)&&(t+n).split("var(").length===i.style.split("var(").length&&(i.style=e.styleDiff),{id:this.mirror.getId(e.node),attributes:i}}).filter(e=>!d.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:s};(a.texts.length||a.attributes.length||a.removes.length||a.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(a))}}),__publicField(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t)),t.attributes.value=Array.from(index.childNodes(e),e=>index.textContent(e)||"").join("")}),__publicField(this,"processMutation",e=>{if(!isIgnored(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":var t=index.textContent(e.target);isBlocked(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:needMaskingText(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,closestElementOfNode(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break;case"attributes":{var n,i=e.target;let s=e.attributeName,d=e.target.getAttribute(s);if("value"===s&&(t=getInputType(i),n=needMaskingText(e.target,this.maskTextClass,this.maskTextSelector,!0),d=maskInputValue({element:i,maskInputOptions:this.maskInputOptions,tagName:i.tagName,type:t,value:d,maskInputFn:this.maskInputFn,needsMask:n})),isBlocked(e.target,this.blockClass,this.blockSelector,!1)||d===e.oldValue)return;let u=this.attributeMap.get(e.target);if("IFRAME"===i.tagName&&"src"===s&&!this.keepIframeSrcFn(d)){if(i.contentDocument)return;s="rr_src"}if(u||(u={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(u),this.attributeMap.set(e.target,u)),"type"===s&&"INPUT"===i.tagName&&"password"===(e.oldValue||"").toLowerCase()&&i.setAttribute("data-rr-is-password","true"),!ignoreAttribute(i.tagName,s))if(u.attributes[s]=transformAttribute(this.doc,toLowerCase(i.tagName),toLowerCase(s),d),"style"===s){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}var r=this.unattachedDoc.createElement("span");for(let t of(e.oldValue&&r.setAttribute("style",e.oldValue),Array.from(i.style))){var o=i.style.getPropertyValue(t),a=i.style.getPropertyPriority(t);o!==r.style.getPropertyValue(t)||a!==r.style.getPropertyPriority(t)?u.styleDiff[t]=""===a?o:[o,a]:u._unchangedStyles[t]=[o,a]}for(let e of Array.from(r.style))""===i.style.getPropertyValue(e)&&(u.styleDiff[e]=!1)}else"open"===s&&"DIALOG"===i.tagName&&(i.matches("dialog:modal")?u.attributes.rr_open_mode="modal":u.attributes.rr_open_mode="non-modal");break}case"childList":isBlocked(e.target,this.blockClass,this.blockSelector,!0)||("TEXTAREA"!==e.target.tagName?(e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{var n=this.mirror.getId(t),i=isShadowRoot(e.target)?this.mirror.getId(index.host(e.target)):this.mirror.getId(e.target);isBlocked(e.target,this.blockClass,this.blockSelector,!1)||isIgnored(t,this.mirror,this.slimDOMOptions)||!isSerialized(t,this.mirror)||(this.addedSet.has(t)?(deepDelete(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||isAncestorRemoved(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[moveKey(n,i)]?deepDelete(this.movedSet,t):(this.removes.push({parentId:i,id:n,isShadow:!(!isShadowRoot(e.target)||!isNativeShadowDom(e.target))||void 0}),processRemoves(t,this.removesSubTreeCache))),this.mapRemoves.push(t))})):this.genTextAreaValueMutation(e.target))}}),__publicField(this,"genAdds",(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(isIgnored(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let n=null;(n=t&&this.mirror.hasNode(t)?this.mirror.getId(t):n)&&-1!==n&&(this.movedMap[moveKey(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);isBlocked(e,this.blockClass,this.blockSelector,!1)||(index.childNodes(e).forEach(e=>this.genAdds(e)),hasShadowRoot(e)&&index.childNodes(index.shadowRoot(e)).forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}})}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function deepDelete(e,t){e.delete(t),index.childNodes(t).forEach(t=>deepDelete(e,t))}function processRemoves(e,t){let n=[e];for(;n.length;){var i=n.pop();t.has(i)||(t.add(i),index.childNodes(i).forEach(e=>n.push(e)))}}function isParentRemoved(e,t,n){return 0!==e.size&&_isParentRemoved(e,t)}function _isParentRemoved(e,t,n){return!!(t=index.parentNode(t))&&e.has(t)}function isAncestorInSet(e,t){return 0!==e.size&&_isAncestorInSet(e,t)}function _isAncestorInSet(e,t){return!!(t=index.parentNode(t))&&(!!e.has(t)||_isAncestorInSet(e,t))}function registerErrorHandler(e){errorHandler=e}function unregisterErrorHandler(){errorHandler=void 0}let callbackWrapper=e=>errorHandler?(...t)=>{try{return e(...t)}catch(e){if(!errorHandler||!0!==errorHandler(e))throw e}}:e,mutationBuffers=[];function getEventTarget(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function initMutationObserver(e,t){var n=new MutationBuffer,e=(mutationBuffers.push(n),n.init(e),new(mutationObserverCtor())(callbackWrapper(n.processMutations.bind(n))));return e.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function initMoveObserver({mousemoveCb:e,sampling:t,doc:n,mirror:i}){if(!1===t.mousemove)return()=>{};var r="number"==typeof t.mousemove?t.mousemove:50,t="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let o=[],a,s=throttle$2(callbackWrapper(t=>{let n=Date.now()-a;e(o.map(e=>(e.timeOffset-=n,e)),t),o=[],a=null}),t),d=[on("mousemove",t=callbackWrapper(throttle$2(callbackWrapper(e=>{var t=getEventTarget(e),{clientX:n,clientY:r}=legacy_isTouchEvent(e)?e.changedTouches[0]:e;a=a||nowTimestamp(),o.push({x:n,y:r,id:i.getId(t),timeOffset:nowTimestamp()-a}),s("undefined"!=typeof DragEvent&&e instanceof DragEvent?IncrementalSource.Drag:e instanceof MouseEvent?IncrementalSource.MouseMove:IncrementalSource.TouchMove)}),r,{trailing:!1})),n),on("touchmove",t,n),on("drag",t,n)];return callbackWrapper(()=>{d.forEach(e=>e())})}function initMouseInteractionObserver({mouseInteractionCb:e,doc:t,mirror:n,blockClass:i,blockSelector:r,sampling:o}){if(!1===o.mouseInteraction)return()=>{};let a=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,s=[],d=null;return Object.keys(MouseInteractions).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]).forEach(o=>{let a=toLowerCase(o);var u=o,c=t=>{var o=getEventTarget(t);if(!isBlocked(o,i,r,!0)){let i=null,r=u;if("pointerType"in t){switch(t.pointerType){case"mouse":i=PointerTypes.Mouse;break;case"touch":i=PointerTypes.Touch;break;case"pen":i=PointerTypes.Pen}i===PointerTypes.Touch?MouseInteractions[u]===MouseInteractions.MouseDown?r="TouchStart":MouseInteractions[u]===MouseInteractions.MouseUp&&(r="TouchEnd"):PointerTypes.Pen}else legacy_isTouchEvent(t)&&(i=PointerTypes.Touch);null!==i?(d=i,(r.startsWith("Touch")&&i===PointerTypes.Touch||r.startsWith("Mouse")&&i===PointerTypes.Mouse)&&(i=null)):MouseInteractions[u]===MouseInteractions.Click&&(i=d,d=null);var a,t=legacy_isTouchEvent(t)?t.changedTouches[0]:t;t&&(o=n.getId(o),{clientX:t,clientY:a}=t,callbackWrapper(e)({type:MouseInteractions[r],id:o,x:t,y:a,...null!==i&&{pointerType:i}}))}};if(window.PointerEvent)switch(MouseInteractions[o]){case MouseInteractions.MouseDown:case MouseInteractions.MouseUp:a=a.replace("mouse","pointer");break;case MouseInteractions.TouchStart:case MouseInteractions.TouchEnd:return}s.push(on(a,c,t))}),callbackWrapper(()=>{s.forEach(e=>e())})}function initScrollObserver({scrollCb:e,doc:t,mirror:n,blockClass:i,blockSelector:r,sampling:o}){return on("scroll",callbackWrapper(throttle$2(callbackWrapper(o=>{var a,s,o=getEventTarget(o);o&&!isBlocked(o,i,r,!0)&&(a=n.getId(o),o===t&&t.defaultView?e({id:a,x:(s=getWindowScroll(t.defaultView)).left,y:s.top}):e({id:a,x:o.scrollLeft,y:o.scrollTop}))}),o.scroll||100)),t)}function initViewportResizeObserver({viewportResizeCb:e},{win:t}){let n=-1,i=-1;return on("resize",callbackWrapper(throttle$2(callbackWrapper(()=>{var t=getWindowHeight(),r=getWindowWidth();n===t&&i===r||(e({width:Number(r),height:Number(t)}),n=t,i=r)}),200)),t)}let INPUT_TAGS=["INPUT","TEXTAREA","SELECT"],lastInputValueMap=new WeakMap;function initInputObserver({inputCb:e,doc:t,mirror:n,blockClass:i,blockSelector:r,ignoreClass:o,ignoreSelector:a,maskInputOptions:s,maskInputFn:d,sampling:u,userTriggeredOnInput:c,maskTextClass:l,maskTextSelector:p}){var f;function h(e){let n=getEventTarget(e);var e=e.isTrusted,u=n&&n.tagName;if((n=n&&"OPTION"===u?index.parentElement(n):n)&&u&&!(0>INPUT_TAGS.indexOf(u))&&!isBlocked(n,i,r,!0)&&!(n.classList.contains(o)||a&&n.matches(a))){let i=n.value,r=!1;var f=getInputType(n)||"",h=needMaskingText(n,l,p,!0),u=("radio"===f||"checkbox"===f?r=n.checked:(s[u.toLowerCase()]||s[f]||h)&&(i=maskInputValue({element:n,maskInputOptions:s,tagName:u,type:f,value:i,maskInputFn:d,needsMask:h})),g(n,c?{text:i,isChecked:r,userTriggered:e}:{text:i,isChecked:r}),n.name);"radio"===f&&u&&r&&t.querySelectorAll(`input[type="radio"][name="${u}"]`).forEach(e=>{var t;e!==n&&(t=e.value,g(e,c?{text:t,isChecked:!r,userTriggered:!1}:{text:t,isChecked:!r}))})}}function g(t,i){var r=lastInputValueMap.get(t);r&&r.text===i.text&&r.isChecked===i.isChecked||(lastInputValueMap.set(t,i),r=n.getId(t),callbackWrapper(e)({...i,id:r}))}let m=("last"===u.input?["change"]:["input","change"]).map(e=>on(e,callbackWrapper(h),t)),v=t.defaultView;return v?(u=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),f=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]],u&&u.set&&m.push(...f.map(e=>hookSetter(e[0],e[1],{set(){callbackWrapper(h)({target:this,isTrusted:!1})}},!1,v))),callbackWrapper(()=>{m.forEach(e=>e())})):()=>{m.forEach(e=>e())}}function getNestedCSSRulePositions(e){var t,n;return t=[],hasNestedCSSRule("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||hasNestedCSSRule("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||hasNestedCSSRule("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||hasNestedCSSRule("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?(n=Array.from(e.parentRule.cssRules).indexOf(e),t.unshift(n)):e.parentStyleSheet&&(n=Array.from(e.parentStyleSheet.cssRules).indexOf(e),t.unshift(n)),t}function getIdAndStyleId(e,t,n){let i,r;return e?(e.ownerNode?i=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:i}):{}}function initStyleSheetObserver({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:i}){let r,o;if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};let a=i.CSSStyleSheet.prototype.insertRule,s=(i.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:callbackWrapper((i,r,o)=>{var[a,s]=o,{id:d,styleId:u}=getIdAndStyleId(r,t,n.styleMirror);return(d&&-1!==d||u&&-1!==u)&&e({id:d,styleId:u,adds:[{rule:a,index:s}]}),i.apply(r,o)})}),i.CSSStyleSheet.prototype.addRule=function(e,t,n=this.cssRules.length){return i.CSSStyleSheet.prototype.insertRule.apply(this,[e+` { ${t} }`,n])},i.CSSStyleSheet.prototype.deleteRule);i.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:callbackWrapper((i,r,o)=>{var[a]=o,{id:s,styleId:d}=getIdAndStyleId(r,t,n.styleMirror);return(s&&-1!==s||d&&-1!==d)&&e({id:s,styleId:d,removes:[{index:a}]}),i.apply(r,o)})}),i.CSSStyleSheet.prototype.removeRule=function(e){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},i.CSSStyleSheet.prototype.replace&&(r=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(r,{apply:callbackWrapper((i,r,o)=>{var[a]=o,{id:s,styleId:d}=getIdAndStyleId(r,t,n.styleMirror);return(s&&-1!==s||d&&-1!==d)&&e({id:s,styleId:d,replace:a}),i.apply(r,o)})})),i.CSSStyleSheet.prototype.replaceSync&&(o=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:callbackWrapper((i,r,o)=>{var[a]=o,{id:s,styleId:d}=getIdAndStyleId(r,t,n.styleMirror);return(s&&-1!==s||d&&-1!==d)&&e({id:s,styleId:d,replaceSync:a}),i.apply(r,o)})}));let d={},u=(canMonkeyPatchNestedCSSRule("CSSGroupingRule")?d.CSSGroupingRule=i.CSSGroupingRule:(canMonkeyPatchNestedCSSRule("CSSMediaRule")&&(d.CSSMediaRule=i.CSSMediaRule),canMonkeyPatchNestedCSSRule("CSSConditionRule")&&(d.CSSConditionRule=i.CSSConditionRule),canMonkeyPatchNestedCSSRule("CSSSupportsRule")&&(d.CSSSupportsRule=i.CSSSupportsRule)),{});return Object.entries(d).forEach(([i,r])=>{u[i]={insertRule:r.prototype.insertRule,deleteRule:r.prototype.deleteRule},r.prototype.insertRule=new Proxy(u[i].insertRule,{apply:callbackWrapper((i,r,o)=>{var[a,s]=o,{id:d,styleId:u}=getIdAndStyleId(r.parentStyleSheet,t,n.styleMirror);return(d&&-1!==d||u&&-1!==u)&&e({id:d,styleId:u,adds:[{rule:a,index:[...getNestedCSSRulePositions(r),s||0]}]}),i.apply(r,o)})}),r.prototype.deleteRule=new Proxy(u[i].deleteRule,{apply:callbackWrapper((i,r,o)=>{var[a]=o,{id:s,styleId:d}=getIdAndStyleId(r.parentStyleSheet,t,n.styleMirror);return(s&&-1!==s||d&&-1!==d)&&e({id:s,styleId:d,removes:[{index:[...getNestedCSSRulePositions(r),a]}]}),i.apply(r,o)})})}),callbackWrapper(()=>{i.CSSStyleSheet.prototype.insertRule=a,i.CSSStyleSheet.prototype.deleteRule=s,r&&(i.CSSStyleSheet.prototype.replace=r),o&&(i.CSSStyleSheet.prototype.replaceSync=o),Object.entries(d).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}function initAdoptedStyleSheetObserver({mirror:e,stylesheetManager:t},n){let i=null;i="#document"===n.nodeName?e.getId(n):e.getId(index.host(n));let r=null!=(e="#document"===n.nodeName?null==(e=n.defaultView)?void 0:e.Document:null==(e=null==(e=n.ownerDocument)?void 0:e.defaultView)?void 0:e.ShadowRoot)&&e.prototype?Object.getOwnPropertyDescriptor(null==e?void 0:e.prototype,"adoptedStyleSheets"):void 0;return null!==i&&-1!==i&&e&&r?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:r.configurable,enumerable:r.enumerable,get(){var e;return null==(e=r.get)?void 0:e.call(this)},set(e){var n=null==(n=r.set)?void 0:n.call(this,e);if(null!==i&&-1!==i)try{t.adoptStyleSheets(e,i)}catch(e){}return n}}),callbackWrapper(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:r.configurable,enumerable:r.enumerable,get:r.get,set:r.set})})):()=>{}}function initStyleDeclarationObserver({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:i},{win:r}){let o=r.CSSStyleDeclaration.prototype.setProperty,a=(r.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:callbackWrapper((r,a,s)=>{var d,u,[c,l,p]=s;return n.has(c)?o.apply(a,[c,l,p]):({id:d,styleId:u}=getIdAndStyleId(null==(d=a.parentRule)?void 0:d.parentStyleSheet,t,i.styleMirror),(d&&-1!==d||u&&-1!==u)&&e({id:d,styleId:u,set:{property:c,value:l,priority:p},index:getNestedCSSRulePositions(a.parentRule)}),r.apply(a,s))})}),r.CSSStyleDeclaration.prototype.removeProperty);return r.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:callbackWrapper((r,o,s)=>{var d,u,[c]=s;return n.has(c)?a.apply(o,[c]):({id:d,styleId:u}=getIdAndStyleId(null==(d=o.parentRule)?void 0:d.parentStyleSheet,t,i.styleMirror),(d&&-1!==d||u&&-1!==u)&&e({id:d,styleId:u,remove:{property:c},index:getNestedCSSRulePositions(o.parentRule)}),r.apply(o,s))})}),callbackWrapper(()=>{r.CSSStyleDeclaration.prototype.setProperty=o,r.CSSStyleDeclaration.prototype.removeProperty=a})}function initMediaInteractionObserver({mediaInteractionCb:e,blockClass:t,blockSelector:n,mirror:i,sampling:r,doc:o}){var a=callbackWrapper(o=>throttle$2(callbackWrapper(r=>{var a,s,d,u,c,r=getEventTarget(r);r&&!isBlocked(r,t,n,!0)&&({currentTime:a,volume:s,muted:d,playbackRate:u,loop:c}=r,e({type:o,id:i.getId(r),currentTime:a,volume:s,muted:d,playbackRate:u,loop:c}))}),r.media||500));let s=[on("play",a(MediaInteractions.Play),o),on("pause",a(MediaInteractions.Pause),o),on("seeked",a(MediaInteractions.Seeked),o),on("volumechange",a(MediaInteractions.VolumeChange),o),on("ratechange",a(MediaInteractions.RateChange),o)];return callbackWrapper(()=>{s.forEach(e=>e())})}function initFontObserver({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let i=[],r=new WeakMap,o=n.FontFace;return n.FontFace=function(e,t,n){var i=new o(e,t,n);return r.set(i,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),i},t=patch(t.fonts,"add",function(t){return function(n){return nativeSetTimeout(callbackWrapper(()=>{var t=r.get(n);t&&(e(t),r.delete(n))}),0),t.apply(this,[n])}}),i.push(()=>{n.FontFace=o}),i.push(t),callbackWrapper(()=>{i.forEach(e=>e())})}function initSelectionObserver(e){let{doc:t,mirror:n,blockClass:i,blockSelector:r,selectionCb:o}=e,a=!0;return(e=callbackWrapper(()=>{var e=t.getSelection();if(!(!e||a&&null!=e&&e.isCollapsed)){a=e.isCollapsed||!1;var s=[],d=e.rangeCount||0;for(let t=0;t<d;t++){var{startContainer:u,startOffset:c,endContainer:l,endOffset:p}=e.getRangeAt(t);isBlocked(u,i,r,!0)||isBlocked(l,i,r,!0)||s.push({start:n.getId(u),startOffset:c,end:n.getId(l),endOffset:p})}o({ranges:s})}}))(),on("selectionchange",e)}function initCustomElementObserver({doc:e,customElementCb:t}){return(e=e.defaultView)&&e.customElements?patch(e.customElements,"define",function(e){return function(n,i,r){try{t({define:{name:n}})}catch(e){console.warn("Custom element callback failed for "+n)}return e.apply(this,[n,i,r])}}):()=>{}}function mergeHooks(e,t){let{mutationCb:n,mousemoveCb:i,mouseInteractionCb:r,scrollCb:o,viewportResizeCb:a,inputCb:s,mediaInteractionCb:d,styleSheetRuleCb:u,styleDeclarationCb:c,canvasMutationCb:l,fontCb:p,selectionCb:f,customElementCb:h}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),n(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),i(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),r(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),o(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),a(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),s(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),d(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),u(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),c(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),l(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),p(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),f(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),h(...e)}}function initObservers(e,t={}){let n;var i=e.doc.defaultView;if(!i)return()=>{};mergeHooks(e,t),e.recordDOM&&(n=initMutationObserver(e,e.doc));let r=initMoveObserver(e),o=initMouseInteractionObserver(e),a=initScrollObserver(e),s=initViewportResizeObserver(e,{win:i}),d=initInputObserver(e),u=initMediaInteractionObserver(e),c=()=>{},l=()=>{},p=()=>{},f=()=>{};e.recordDOM&&(c=initStyleSheetObserver(e,{win:i}),l=initAdoptedStyleSheetObserver(e,e.doc),p=initStyleDeclarationObserver(e,{win:i}),e.collectFonts)&&(f=initFontObserver(e));let h=initSelectionObserver(e),g=initCustomElementObserver(e),m=[];for(let t of e.plugins)m.push(t.observer(t.callback,i,t.options));return callbackWrapper(()=>{mutationBuffers.forEach(e=>e.reset()),null!=n&&n.disconnect(),r(),o(),a(),s(),d(),u(),c(),l(),p(),f(),h(),g(),m.forEach(e=>e())})}function hasNestedCSSRule(e){return void 0!==window[e]}function canMonkeyPatchNestedCSSRule(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class CrossOriginIframeMirror{constructor(e){__publicField(this,"iframeIdToRemoteIdMap",new WeakMap),__publicField(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,n,i){n=n||this.getIdToRemoteIdMap(e),i=i||this.getRemoteIdToIdMap(e);let r=n.get(t);return r||(r=this.generateIdFn(),n.set(t,r),i.set(r,t)),r}getIds(e,t){let n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,i))}getRemoteId(e,t,n){return n=n||this.getRemoteIdToIdMap(e),"number"!=typeof t?t:n.get(t)||-1}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){e?(this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class IframeManager{constructor(e){__publicField(this,"iframes",new WeakMap),__publicField(this,"crossOriginIframeMap",new WeakMap),__publicField(this,"crossOriginIframeMirror",new CrossOriginIframeMirror(genId)),__publicField(this,"crossOriginIframeStyleMirror"),__publicField(this,"crossOriginIframeRootIdMap",new WeakMap),__publicField(this,"mirror"),__publicField(this,"mutationCb"),__publicField(this,"wrappedEmit"),__publicField(this,"takeFullSnapshot"),__publicField(this,"loadListener"),__publicField(this,"stylesheetManager"),__publicField(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.takeFullSnapshot=e.takeFullSnapshot,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new CrossOriginIframeMirror(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}setTakeFullSnapshot(e){this.takeFullSnapshot=e}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e),!e.contentDocument&&e.contentWindow&&e.contentWindow.postMessage({type:"rrweb",origin:window.location.origin,snapshot:!0},"*")}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&null!=(t=e.contentWindow)&&t.addEventListener("message",this.handleMessage.bind(this)),null!=(t=this.loadListener)&&t.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&0<e.contentDocument.adoptedStyleSheets.length&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){var t,n=e;"rrweb"===n.data.type&&n.origin===n.data.origin&&(t=e.source)&&(t==window.parent&&window!=window.parent&&e.data.snapshot?this.takeFullSnapshot():(t=this.crossOriginIframeMap.get(e.source))&&(e=this.transformCrossOriginEvent(t,n.data.event))&&this.wrappedEmit(e,n.data.isCheckout))}transformCrossOriginEvent(e,t){var n;switch(t.type){case EventType.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case EventType.Meta:case EventType.Load:case EventType.DomContentLoaded:break;case EventType.Plugin:return t;case EventType.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case EventType.IncrementalSnapshot:switch(t.data.source){case IncrementalSource.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);var n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case IncrementalSource.Drag:case IncrementalSource.TouchMove:case IncrementalSource.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case IncrementalSource.ViewportResize:return!1;case IncrementalSource.MediaInteraction:case IncrementalSource.MouseInteraction:case IncrementalSource.Scroll:case IncrementalSource.CanvasMutation:case IncrementalSource.Input:return this.replaceIds(t.data,e,["id"]),t;case IncrementalSource.StyleSheetRule:case IncrementalSource.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case IncrementalSource.Font:return t;case IncrementalSource.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case IncrementalSource.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null!=(n=t.data.styles)&&n.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,n,i){for(let r of i)(Array.isArray(t[r])||"number"==typeof t[r])&&(Array.isArray(t[r])?t[r]=e.getIds(n,t[r]):t[r]=e.getId(n,t[r]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===NodeType$2.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class ShadowDomManager{constructor(e){__publicField(this,"shadowDoms",new WeakSet),__publicField(this,"mutationCb"),__publicField(this,"scrollCb"),__publicField(this,"bypassOptions"),__publicField(this,"mirror"),__publicField(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(isNativeShadowDom(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);let n=initMutationObserver({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(initScrollObserver({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),nativeSetTimeout(()=>{e.adoptedStyleSheets&&0<e.adoptedStyleSheets.length&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(index.host(e))),this.restoreHandlers.push(initAdoptedStyleSheetObserver({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(patch(e.prototype,"attachShadow",function(e){return function(i){var i=e.call(this,i),r=index.shadowRoot(this);return r&&inDom(this)&&n.addShadowRoot(r,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup="undefined"==typeof Uint8Array?[]:new Uint8Array(256),i$1=0;i$1<chars.length;i$1++)lookup[chars.charCodeAt(i$1)]=i$1;var n,encode=function(e){for(var t=new Uint8Array(e),n=t.length,i="",r=0;r<n;r+=3)i=(i=(i=(i+=chars[t[r]>>2])+chars[(3&t[r])<<4|t[r+1]>>4])+chars[(15&t[r+1])<<2|t[r+2]>>6])+chars[63&t[r+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i};let canvasVarMap=new Map;function variableListFor$1(e,t){let n=canvasVarMap.get(e);return n||(n=new Map,canvasVarMap.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}let saveWebGLVar=(e,t,n)=>{if(e&&(isInstanceOfWebGLObject(e,t)||"object"==typeof e)){let i=(t=variableListFor$1(n,e.constructor.name)).indexOf(e);return -1===i&&(i=t.length,t.push(e)),i}};function serializeArg(e,t,n){var i;return e instanceof Array?e.map(e=>serializeArg(e,t,n)):null===e?e:e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray?{rr_type:e.constructor.name,args:[Object.values(e)]}:e instanceof ArrayBuffer?{rr_type:e.constructor.name,base64:encode(e)}:e instanceof DataView?{rr_type:e.constructor.name,args:[serializeArg(e.buffer,t,n),e.byteOffset,e.byteLength]}:e instanceof HTMLImageElement?(i=e.src,{rr_type:e.constructor.name,src:i}):e instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:e.toDataURL()}:e instanceof ImageData?{rr_type:e.constructor.name,args:[serializeArg(e.data,t,n),e.width,e.height]}:isInstanceOfWebGLObject(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:saveWebGLVar(e,t,n)}:e}let serializeArgs=(e,t,n)=>e.map(e=>serializeArg(e,t,n)),isInstanceOfWebGLObject=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]).find(n=>e instanceof t[n]);function initCanvas2DMutationObserver(e,t,n,i){let r=[];for(let s of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{"function"==typeof t.CanvasRenderingContext2D.prototype[s]&&(o=patch(t.CanvasRenderingContext2D.prototype,s,function(r){return function(...o){return isBlocked(this.canvas,n,i,!0)||nativeSetTimeout(()=>{var n=serializeArgs(o,t,this);e(this.canvas,{type:CanvasContext["2D"],property:s,args:n})},0),r.apply(this,o)}}),r.push(o))}catch{var o,a=hookSetter(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:CanvasContext["2D"],property:s,args:[t],setter:!0})}});r.push(a)}return()=>{r.forEach(e=>e())}}function getNormalizedContextName(e){return"experimental-webgl"===e?"webgl":e}function initCanvasContextObserver(e,t,n,i){let r=[];try{var o=patch(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(r,...o){var a;return isBlocked(this,t,n,!0)||(a=getNormalizedContextName(r),"__context"in this||(this.__context=a),i&&["webgl","webgl2"].includes(a)&&(o[0]&&"object"==typeof o[0]?(a=o[0]).preserveDrawingBuffer||(a.preserveDrawingBuffer=!0):o.splice(0,1,{preserveDrawingBuffer:!0}))),e.apply(this,[r,...o])}});r.push(o)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{r.forEach(e=>e())}}function patchGLPrototype(e,t,n,i,r,o){var a,s=[];for(let u of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(u))try{"function"==typeof e[u]&&(a=patch(e,u,function(e){return function(...a){var s=e.apply(this,a);return saveWebGLVar(s,o,this),"tagName"in this.canvas&&!isBlocked(this.canvas,i,r,!0)&&(a=serializeArgs(a,o,this),a={type:t,property:u,args:a},n(this.canvas,a)),s}}),s.push(a))}catch{var d=hookSetter(e,u,{set(e){n(this.canvas,{type:t,property:u,args:[e],setter:!0})}});s.push(d)}return s}function initCanvasWebGLMutationObserver(e,t,n,i){let r=[];return r.push(...patchGLPrototype(t.WebGLRenderingContext.prototype,CanvasContext.WebGL,e,n,i,t)),void 0!==t.WebGL2RenderingContext&&r.push(...patchGLPrototype(t.WebGL2RenderingContext.prototype,CanvasContext.WebGL2,e,n,i,t)),()=>{r.forEach(e=>e())}}let encodedJs="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",decodeBase64$1=e=>Uint8Array.from(atob(e),e=>e.charCodeAt(0)),blob="undefined"!=typeof window&&window.Blob&&new Blob([decodeBase64$1(encodedJs)],{type:"text/javascript;charset=utf-8"});function WorkerWrapper(e){let t;try{var n;if(t=blob&&(window.URL||window.webkitURL).createObjectURL(blob))return(n=new Worker(t,{name:null==e?void 0:e.name})).addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),n;throw""}catch(t){return new Worker("data:text/javascript;base64,"+encodedJs,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}class CanvasManager{constructor(e){__publicField(this,"pendingCanvasMutations",new Map),__publicField(this,"rafStamps",{latestId:0,invokeId:null}),__publicField(this,"mirror"),__publicField(this,"mutationCb"),__publicField(this,"resetObservers"),__publicField(this,"frozen",!1),__publicField(this,"locked",!1),__publicField(this,"processMutation",(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});var{sampling:t="all",win:n,blockClass:i,blockSelector:r,recordCanvas:o,dataURLOptions:a}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&"all"===t&&this.initCanvasMutationObserver(n,i,r),o&&"number"==typeof t&&this.initCanvasFPSObserver(t,n,i,r,{dataURLOptions:a})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,t,n,i,r){let o=initCanvasContextObserver(t,n,i,!0),a=new Map,s=new WorkerWrapper,d=(s.onmessage=e=>{var t,n,i,r=e.data.id;a.set(r,!1),"base64"in e.data&&({base64:e,type:t,width:n,height:i}=e.data,this.mutationCb({id:r,type:CanvasContext["2D"],commands:[{property:"clearRect",args:[0,0,n,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:e}],type:t}]},0,0]}]}))},1e3/e),u=0,c,l=()=>{let e=[];return t.document.querySelectorAll("canvas").forEach(t=>{isBlocked(t,n,i,!0)||e.push(t)}),e},p=e=>{u&&e-u<d||(u=e,l().forEach(async e=>{var t,n,i=this.mirror.getId(e);a.get(i)||0!==e.width&&0!==e.height&&(a.set(i,!0),["webgl","webgl2"].includes(e.__context)&&!1===(null==(n=null==(t=e.getContext(e.__context))?void 0:t.getContextAttributes())?void 0:n.preserveDrawingBuffer)&&t.clear(t.COLOR_BUFFER_BIT),n=await createImageBitmap(e),s.postMessage({id:i,bitmap:n,width:e.width,height:e.height,dataURLOptions:r.dataURLOptions},[n]))})),c=requestAnimationFrame(p)};c=requestAnimationFrame(p),this.resetObservers=()=>{o(),cancelAnimationFrame(c)}}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let i=initCanvasContextObserver(e,t,n,!1),r=initCanvas2DMutationObserver(this.processMutation.bind(this),e,t,n),o=initCanvasWebGLMutationObserver(this.processMutation.bind(this),e,t,n);this.resetObservers=()=>{i(),r(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{var n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){var n,i;this.frozen||this.locked||(i=this.pendingCanvasMutations.get(e))&&-1!==t&&(n=i.map(e=>{let{type:t,...n}=e;return n}),i=i[0].type,this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e))}}class StylesheetManager{constructor(e){__publicField(this,"trackedLinkElements",new WeakSet),__publicField(this,"mutationCb"),__publicField(this,"adoptedStyleSheetCb"),__publicField(this,"styleMirror",new StyleSheetMirror),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0!==e.length){var n={id:t,styleIds:[]},i=[];for(let t of e){let e;if(this.styleMirror.has(t))e=this.styleMirror.getId(t);else{e=this.styleMirror.add(t);var r=[];for(let e=0;e<t.rules.length;++e)r.push({rule:stringifyRule(t.rules[e],t.href),index:e});i.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,n)=>({rule:stringifyRule(e,t.href),index:n}))})}n.styleIds.push(e)}0<i.length&&(n.styles=i),this.adoptedStyleSheetCb(n)}}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class ProcessedNodeManager{constructor(){__publicField(this,"nodeMap",new WeakMap),__publicField(this,"active",!1)}inOtherBuffer(e,t){return(e=this.nodeMap.get(e))&&Array.from(e).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let wrappedEmit,takeFullSnapshot$1=()=>{},canvasManager,recording=!1;try{if(2!==Array.from([1],e=>2*e)[0]){let vl=document.createElement("iframe");document.body.appendChild(vl),Array.from=(null==(_a=vl.contentWindow)?void 0:_a.Array.from)||Array.from,document.body.removeChild(vl)}}catch(err){console.debug("Unable to override Array.from",err)}let mirror=createMirror$2();function record(e={}){let{emit:t,checkoutEveryNms:n,checkoutEveryNth:i,blockClass:r="rr-block",blockSelector:o=null,ignoreClass:a="rr-ignore",ignoreSelector:s=null,maskTextClass:d="rr-mask",maskTextSelector:u=null,inlineStylesheet:c=!0,maskAllInputs:l,maskInputOptions:p,slimDOMOptions:f,maskInputFn:h,maskTextFn:g,hooks:m,packFn:v,sampling:y={},dataURLOptions:b={},mousemoveWait:I,recordDOM:w=!0,recordCanvas:C=!1,recordCrossOriginIframes:S=!1,recordAfter:x="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:A=!1,collectFonts:E=!1,inlineImages:T=!1,plugins:k,keepIframeSrcFn:_=()=>!1,ignoreCSSAttributes:R=new Set([]),errorHandler:O}=e,N=(registerErrorHandler(O),!S||window.parent===window),M=!1;if(!N)try{window.parent.document&&(M=!1)}catch(e){M=!0}if(N&&!t)throw Error("emit function is required");if(!N&&!M)return()=>{};void 0!==I&&void 0===y.mousemove&&(y.mousemove=I),mirror.reset();let L=!0===l?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==p?p:{password:!0},F=!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===f,headMetaDescKeywords:"all"===f,headTitleMutations:"all"===f}:f||{};polyfill$1();let G,P=0,D=e=>{for(let t of k||[])t.eventProcessor&&(e=t.eventProcessor(e));return e=v&&!M?v(e):e},W=(wrappedEmit=(e,r)=>{var o;e.timestamp=nowTimestamp(),null!=(o=mutationBuffers[0])&&o.isFrozen()&&e.type!==EventType.FullSnapshot&&(e.type!==EventType.IncrementalSnapshot||e.data.source!==IncrementalSource.Mutation)&&mutationBuffers.forEach(e=>e.unfreeze()),N?null!=t&&t(D(e),r):M&&(o={type:"rrweb",event:D(e),origin:window.location.origin,isCheckout:r},window.parent.postMessage(o,"*")),e.type===EventType.FullSnapshot?(G=e,P=0):e.type!==EventType.IncrementalSnapshot||e.data.source===IncrementalSource.Mutation&&e.data.isAttachIframe||(P++,r=i&&P>=i,o=n&&e.timestamp-G.timestamp>n,(r||o)&&takeFullSnapshot$1(!0))},e=>{wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Mutation,...e}})}),B=e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Scroll,...e}}),Z=e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.CanvasMutation,...e}}),z=new StylesheetManager({mutationCb:W,adoptedStyleSheetCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.AdoptedStyleSheet,...e}})}),U=new IframeManager({mirror:mirror,mutationCb:W,stylesheetManager:z,recordCrossOriginIframes:S,wrappedEmit:wrappedEmit,takeFullSnapshot:takeFullSnapshot$1});for(let e of k||[])e.getMirror&&e.getMirror({nodeMirror:mirror,crossOriginIframeMirror:U.crossOriginIframeMirror,crossOriginIframeStyleMirror:U.crossOriginIframeStyleMirror});let j=new ProcessedNodeManager,Y=(canvasManager=new CanvasManager({recordCanvas:C,mutationCb:Z,win:window,blockClass:r,blockSelector:o,mirror:mirror,sampling:y.canvas,dataURLOptions:b}),new ShadowDomManager({mutationCb:W,scrollCb:B,bypassOptions:{blockClass:r,blockSelector:o,maskTextClass:d,maskTextSelector:u,inlineStylesheet:c,maskInputOptions:L,dataURLOptions:b,maskTextFn:g,maskInputFn:h,recordCanvas:C,inlineImages:T,sampling:y,slimDOMOptions:F,iframeManager:U,stylesheetManager:z,canvasManager:canvasManager,keepIframeSrcFn:_,processedNodeManager:j},mirror:mirror}));takeFullSnapshot$1=(e=!1)=>{if(w){wrappedEmit({type:EventType.Meta,data:{href:window.location.href,width:getWindowWidth(),height:getWindowHeight()}},e),z.reset(),Y.init(),mutationBuffers.forEach(e=>e.lock());var t=snapshot(document,{mirror:mirror,blockClass:r,blockSelector:o,maskTextClass:d,maskTextSelector:u,inlineStylesheet:c,maskAllInputs:L,maskTextFn:g,maskInputFn:h,slimDOM:F,dataURLOptions:b,recordCanvas:C,inlineImages:T,onSerialize:e=>{isSerializedIframe(e,mirror)&&U.addIframe(e),isSerializedStylesheet(e,mirror)&&z.trackLinkElement(e),hasShadowRoot(e)&&Y.addShadowRoot(index.shadowRoot(e),document)},onIframeLoad:(e,t)=>{U.attachIframe(e,t),Y.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{z.attachLinkElement(e,t)},keepIframeSrcFn:_});if(!t)return console.warn("Failed to snapshot the document");wrappedEmit({type:EventType.FullSnapshot,data:{node:t,initialOffset:getWindowScroll(window)}},e),mutationBuffers.forEach(e=>e.unlock()),document.adoptedStyleSheets&&0<document.adoptedStyleSheets.length&&z.adoptStyleSheets(document.adoptedStyleSheets,mirror.getId(document))}},U.setTakeFullSnapshot(takeFullSnapshot$1);try{let e=[],t=e=>callbackWrapper(initObservers)({mutationCb:W,mousemoveCb:(e,t)=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.MouseInteraction,...e}}),scrollCb:B,viewportResizeCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.ViewportResize,...e}}),inputCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Input,...e}}),mediaInteractionCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.MediaInteraction,...e}}),styleSheetRuleCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.StyleSheetRule,...e}}),styleDeclarationCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.StyleDeclaration,...e}}),canvasMutationCb:Z,fontCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Font,...e}}),selectionCb:e=>{wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Selection,...e}})},customElementCb:e=>{wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.CustomElement,...e}})},blockClass:r,ignoreClass:a,ignoreSelector:s,maskTextClass:d,maskTextSelector:u,maskInputOptions:L,inlineStylesheet:c,sampling:y,recordDOM:w,recordCanvas:C,inlineImages:T,userTriggeredOnInput:A,collectFonts:E,doc:e,maskInputFn:h,maskTextFn:g,keepIframeSrcFn:_,blockSelector:o,slimDOMOptions:F,dataURLOptions:b,mirror:mirror,iframeManager:U,stylesheetManager:z,shadowDomManager:Y,processedNodeManager:j,canvasManager:canvasManager,ignoreCSSAttributes:R,plugins:(null==(e=null==k?void 0:k.filter(e=>e.observer))?void 0:e.map(e=>({observer:e.observer,options:e.options,callback:t=>wrappedEmit({type:EventType.Plugin,data:{plugin:e.name,payload:t}})})))||[]},m),n=(U.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}),()=>{takeFullSnapshot$1(),e.push(t(document)),recording=!0});return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(on("DOMContentLoaded",()=>{wrappedEmit({type:EventType.DomContentLoaded,data:{}}),"DOMContentLoaded"===x&&n()})),e.push(on("load",()=>{wrappedEmit({type:EventType.Load,data:{}}),"load"===x&&n()},window))),()=>{e.forEach(e=>e()),j.destroy(),recording=!1,unregisterErrorHandler()}}catch(e){console.warn(e)}}record.addCustomEvent=(e,t)=>{if(!recording)throw Error("please add custom event after start recording");wrappedEmit({type:EventType.Custom,data:{tag:e,payload:t}})},record.freezePage=()=>{mutationBuffers.forEach(e=>e.freeze())},record.takeFullSnapshot=e=>{if(!recording)throw Error("please take full snapshot after start recording");takeFullSnapshot$1(e)},record.mirror=mirror,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(n=n||{});var setTimeout=safeBind(window.setTimeout,window);function safeBind(e,t){return"function"==typeof e.bind?e.bind(t):e}var setTimeout=function(e){var t="setTimeout",n="__symbol__";return"undefined"!=typeof Zone&&Zone[n]instanceof Function&&(n=e[Zone[n](t)])instanceof Function?n:safeBind(e[t],e)}(window),setTimeout$1=setTimeout,Promise$3=window.Promise,Promise$3=function(e){var t=window.Promise;return"function"==typeof t&&/native/.test(t)?t:e()}(function(){var e=setTimeout$1;function t(e){return!!(e&&void 0!==e.length)}function n(){}function i(e){if(!(this instanceof i))throw TypeError("Promises must be constructed via new");if("function"!=typeof e)throw TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],u(e,this)}function r(e,t){for(;3===e._state;)e=e._value;0===e._state?e._deferreds.push(t):(e._handled=!0,i._immediateFn(function(){var n,i=1===e._state?t.onFulfilled:t.onRejected;if(null===i)(1===e._state?o:a)(t.promise,e._value);else{try{n=i(e._value)}catch(e){return void a(t.promise,e)}o(t.promise,n)}}))}function o(e,t){try{if(t===e)throw TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n,r,o=t.then;if(t instanceof i)return e._state=3,e._value=t,void s(e);if("function"==typeof o)return void u((n=o,r=t,function(){n.apply(r,arguments)}),e)}e._state=1,e._value=t,s(e)}catch(t){a(e,t)}}function a(e,t){e._state=2,e._value=t,s(e)}function s(e){2===e._state&&0===e._deferreds.length&&i._immediateFn(function(){e._handled||i._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function d(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function u(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,a(t,e))})}catch(e){n||(n=!0,a(t,e))}}return i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var i=new this.constructor(n);return r(this,new d(e,t,i)),i},i.prototype.finally=function(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){return t.reject(n)})})},i.all=function(e){return new i(function(n,i){if(!t(e))return i(TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(e);if(0===r.length)return n([]);var o=r.length;function a(e,t){try{if(t&&("object"==typeof t||"function"==typeof t)){var s=t.then;if("function"==typeof s)return void s.call(t,function(t){a(e,t)},i)}r[e]=t,0==--o&&n(r)}catch(e){i(e)}}for(var s=0;s<r.length;s++)a(s,r[s])})},i.allSettled=function(e){return new this(function(t,n){if(!e||void 0===e.length)return n(TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);for(var r=i.length,o=0;o<i.length;o++)!function e(n,o){if(o&&("object"==typeof o||"function"==typeof o)){var a=o.then;if("function"==typeof a)return void a.call(o,function(t){e(n,t)},function(e){i[n]={status:"rejected",reason:e},0==--r&&t(i)})}i[n]={status:"fulfilled",value:o},0==--r&&t(i)}(o,i[o])})},i.resolve=function(e){return e&&"object"==typeof e&&e.constructor===i?e:new i(function(t){t(e)})},i.reject=function(e){return new i(function(t,n){n(e)})},i.race=function(e){return new i(function(n,r){if(!t(e))return r(TypeError("Promise.race accepts an array"));for(var o=0,a=e.length;o<a;o++)i.resolve(e[o]).then(n,r)})},i._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(t){e(t,0)},i._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},i}),Promise$4=Promise$3,__assign=function(){return(__assign=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},SessionRecorderBuffer=function(){function e(e,t){void 0===t&&(t=1/0),this.data=[],this.sequenceNumber=0,this.interval=e,this.maxCount=t,this.doubledMaxCount=2*t}return e.prototype.isEmpty=function(){return 0===this.data.length},e.prototype.count=function(){return this.data.length},e.prototype.clear=function(){this.data.length=0},e.prototype.clearSequence=function(){this.sequenceNumber=0},e.prototype.push=function(e){this.data.push(e),this.checkRateLimit()},e.prototype.pack=function(e,t){var n=this.data.splice(0,this.maxCount);return e.recordingPayload=n,e.sequence=this.sequenceNumber,e.recordingPayloadCount=n.length,n.length&&(e.browserTime=n[0].timestamp),e.recordingPayloadMetadata=t.map(n,function(e){var n=t.pick(e,"type","timestamp");return e.data&&(n.data=t.pick(e.data,"source","type","x","y","id","height","width","href")),n}),this.sequenceNumber+=n.length,e},e.prototype.checkRateLimit=function(){var e=this.data.length;e>=this.doubledMaxCount&&e%this.maxCount==0&&this.data[e-1].timestamp-this.data[e-this.doubledMaxCount].timestamp<=this.interval&&this.onRateLimit&&this.onRateLimit()},e}(),MAX_BACKOFF=6,MAX_FAILURES=100,SendQueue=function(){function e(e,t){void 0===t&&(t=MAX_FAILURES),this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}return e.prototype.isEmpty=function(){return this.queue.length<=0},e.prototype.stop=function(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer},e.prototype.start=function(){this.stopped=!1},e.prototype.push=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.queue).push.apply(e,t),this.next()},e.prototype.next=function(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)},e.prototype.incrementFailure=function(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t},e.prototype.pass=function(e,t){void 0===t&&(t=!0),this.unloads.delete(e),this.pending.delete(e),this.failures.clear(),0<=(e=this.queue.indexOf(e))&&this.queue.splice(e,1),!this.stopped&&t&&this.next()},e.prototype.fail=function(e,t){void 0===t&&(t=!0),this.unloads.delete(e),this.pending.delete(e);var n=this.incrementFailure(e);!this.stopped&&t&&(n>=this.maxFailures&&(this.onTimeout&&this.onTimeout(),this.pass(e,!1)),this.retryLater(1e3*Math.pow(2,Math.min(n-1,MAX_BACKOFF))))},e.prototype.retryLater=function(e){var t=this;this.timer=setTimeout$1(function(){delete t.timer,t.next()},e)},e.prototype.failed=function(){return 0<this.failures.get(this.queue[0])&&null!=this.timer},e.prototype.send=function(e,t,n){var i=this;return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(function(){return i.pass(e,n)},function(){return i.fail(e,n)})},e.prototype.drain=function(e,t){var n;if(void 0===t&&(t=!0),(n=this.queue).push.apply(n,e),this.failed())return Promise$4.reject();for(var i=[],r=0,o=this.queue;r<o.length;r++){var a=o[r];this.pending.has(a)?this.retryPending&&t&&!this.unloads.has(a)&&(this.incrementFailure(a),i.push(this.send(a,t,!1))):i.push(this.send(a,t,!1))}return Promise$4.all(i)},e}(),RECORDING_CONFIG_WORKERURL$1="recording.workerUrl",MAX_SIZE=1e6,RESOURCE_CACHING$1="resourceCaching",Transport=function(){function e(e,t,n){this.WorkerClass=e,this.pendo=t,this.api=n,this.maxSize=MAX_SIZE,this.isResourceCachingEnabled=this.api.ConfigReader.get(RESOURCE_CACHING$1)}return e.prototype.start=function(e){if(!e.disableWorker&&!this.worker)try{var t;e.workerOverride?this.worker=e.workerOverride:(t=this.api.ConfigReader.get(RECORDING_CONFIG_WORKERURL$1),this.usesSelfHostedWorker=null!=t,this.worker=t?new Worker(t):new this.WorkerClass),this.worker.onmessage=this.pendo._.bind(this._onMessage,this),this.worker.onerror=this.pendo._.bind(this._onError,this)}catch(e){this.worker=null}},e.prototype.stop=function(){this.worker&&(this.worker.terminate(),delete this.worker)},e.prototype.send=function(e,t,n){var i,r=e.url,o=e.payload;if(0<(n=void 0===n?0:n)&&(r="".concat(r,"&rt=").concat(n)),this.worker&&!t&&o)return(i={}).promise=new Promise$4(function(e,t){i.resolve=e,i.reject=t}),this.workerResponse=i,this.worker.postMessage({url:r,payload:o,shouldCacheResources:this.isResourceCachingEnabled}),i.promise;if(!e.body){if((n=JSON.stringify(o)).length>this.maxSize)throw(o=Error("maximum recording payload size exceeded")).reason="HEAVY_EVENT",o;e.body=this.pendo.compress(n,"binary"),delete e.payload}return r="".concat(r,"&ct=").concat((new Date).getTime()),this.post(r,{keepalive:t,body:e.body})},e.prototype.post=function(e,t){return t.method="POST",t.keepalive&&this.api.transmit.fetchKeepalive.supported()?this.api.transmit.fetchKeepalive(e,t):t.keepalive&&this.api.transmit.sendBeacon.supported()?this.api.transmit.sendBeacon(e,new Blob([t.body]))?Promise$4.resolve():Promise$4.reject(Error("sendBeacon failed to send recording data")):this.pendo.ajax.post(e,t.body)},e.prototype._onMessage=function(e){e.data&&e.data.type?this.onWorkerMessage(e.data):(e.data&&e.data.error&&((e.data.status&&e.data.status<500||null==e.data.sequence)&&this.api.log.critical("Failed to send recording data from web worker",{error:e.data.error}),this.workerResponse)&&(this.workerResponse.reject(),this.workerResponse=null),this.workerResponse&&(this.workerResponse.resolve(),this.workerResponse=null))},e.prototype._onError=function(){this.onError&&this.onError()},e}(),ELEMENT_NODE=1,INPUT_MASK="*".repeat(10);function isElementNode(e){return!!e&&e.nodeType===ELEMENT_NODE}function distanceToMatch(e,t,n,i){return void 0===n&&(n=1/0),void 0===i&&(i=0),!isElementNode(e)||n<i?-1:e.matches(t)?i:distanceToMatch(e.parentNode,t,n,i+1)}function shouldMask(e,t){var n=t.maskAllText,i=t.maskTextSelector,t=t.unmaskTextSelector;try{var r=isElementNode(e)?e:e.parentElement;if(null===r)return!1;var o=-1,a=-1;if(n){if((a=distanceToMatch(r,t))<0)return!0;o=distanceToMatch(r,i,0<=a?a:1/0)}else{if((o=distanceToMatch(r,i))<0)return!1;a=distanceToMatch(r,t,0<=o?o:1/0)}return 0<=o?!(0<=a)||o<=a:!(0<=a||!n)}catch(e){}return!!n}function shouldMaskInput(e,t){if(t&&isElementNode(e)){var n=(e.tagName||"").toLowerCase(),e=(e.type||"").toLowerCase();if(t[n]||t[e])return!0}return!1}function maskInput(e,t,n){return shouldMaskInput(n,e.maskInputOptions)||shouldMask(n,e)?t?INPUT_MASK:"":t}function maskText(e,t,n){return shouldMask(n,e)?t?t.replace(/[\S]/g,"*"):"":t}function SessionRecorder(e,t){this.record=e,this.lastKeyFrameTime=0,this.eventsSinceLastKeyFrame=0,this.currentRecordingSize=0,this.WorkerClass=t}SessionRecorder.FULL_SNAPSHOT=2,SessionRecorder.META=4,SessionRecorder.INCREMENTAL_SNAPSHOT=3,SessionRecorder.INCREMENTAL_SOURCE_MUTATION=0,SessionRecorder.INCREMENTAL_SOURCE_INPUT=5,SessionRecorder.SEND_INTERVAL=5e3,SessionRecorder.MAX_SEND_COUNT=2e4;var RECORDING_CONFIG="recording",RECORDING_CONFIG_ENABLED="recording.enabled",RECORDING_CONFIG_AUTO_START="recording.autoStart",RECORDING_CONFIG_WORKERURL="recording.workerUrl",RECORDING_CONFIG_ON_RECORDING_START="recording.onRecordingStart",RECORDING_CONFIG_ON_RECORDING_STOP="recording.onRecordingStop",RECORDING_CONFIG_WORKER_OVERRIDE="recording.workerOverride",RESOURCE_CACHING="resourceCaching",ONE_DAY_IN_MILLISECONDS=864e5,THIRTY_MINUTES=18e5,ONE_HUNDRED_MB_IN_BYTES=0x6400000,SESSION_RECORDING_ID="pendo_srId",SESSION_RECORDING_LAST_USER_INTERACTION_EVENT="pendo_srLastUserInteractionEvent";function wrapMethodWithCatch(e){return function(){try{return e.apply(this,arguments)}catch(e){this.api&&this.api.log&&this.api.log.critical("session recording error",{error:e})}}}function errorLogger(e){if("undefined"!=typeof Object&&"function"==typeof Object.getOwnPropertyNames&&e.constructor&&e.constructor.prototype)for(var t=0,n=Object.getOwnPropertyNames(e.constructor.prototype);t<n.length;t++){var i=n[t];"constructor"!==i&&(e[i]=wrapMethodWithCatch(e[i]))}return e}function decodeBase64(e,t){var n=atob(e);if(t){for(var i=new Uint8Array(n.length),r=0,o=n.length;r<o;++r)i[r]=n.charCodeAt(r);return new TextDecoder("utf-16le").decode(new Uint16Array(i.buffer))}return n}function createURL(e,t,n){return t=void 0===t?null:t,n=(e=decodeBase64(e,void 0!==n&&n)).indexOf("\n",10)+1,e=new Blob([n=e.substring(n)+(t?"//# sourceMappingURL="+t:"")],{type:"application/javascript"}),URL.createObjectURL(e)}function createBase64WorkerFactory(e,t,n){var i;return function(r){return new Worker(i=i||createURL(e,t,n),r)}}SessionRecorder.prototype.addConfigOptions=function(){var e=this.api.ConfigReader;e.addOption(RECORDING_CONFIG,[e.sources.PENDO_CONFIG_SRC],{}),e.addOption(RECORDING_CONFIG_AUTO_START,[e.sources.SNIPPET_SRC],void 0),e.addOption(RECORDING_CONFIG_ENABLED,[e.sources.SNIPPET_SRC],void 0),e.addOption(RECORDING_CONFIG_ON_RECORDING_START,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],void 0),e.addOption(RECORDING_CONFIG_ON_RECORDING_STOP,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],void 0),e.addOption(RECORDING_CONFIG_WORKERURL,[e.sources.SNIPPET_SRC],void 0),e.addOption(RECORDING_CONFIG_WORKER_OVERRIDE,[e.sources.PENDO_CONFIG_SRC],void 0),e.addOption(RESOURCE_CACHING,[e.sources.PENDO_CONFIG_SRC],void 0)},SessionRecorder.prototype.initialize=function(e,t){this.pendo=e,this.api=t;var n=this.pendo._.bind,i=this.api.ConfigReader,r=(this.buffer=new SessionRecorderBuffer(SessionRecorder.SEND_INTERVAL,SessionRecorder.MAX_SEND_COUNT),this.buffer.onRateLimit=n(this.rateLimitExceeded,this),this.transport=new Transport(this.WorkerClass,e,t),this.transport.onError=n(this.sendFailure,this,"WORKER_ERROR"),this.transport.onWorkerMessage=n(this.onWorkerMessage,this),this.sendQueue=new SendQueue(n(this.transport.send,this.transport)),this.sendQueue.onTimeout=n(this.sendFailure,this,"SEND_TIMEOUT"),this.isNewSession=!1,this.addConfigOptions(),this.config=i.get(RECORDING_CONFIG),this.onRecordingStart=e._.isFunction(i.get(RECORDING_CONFIG_ON_RECORDING_START))?i.get(RECORDING_CONFIG_ON_RECORDING_START):function(){},this.onRecordingStop=e._.isFunction(i.get(RECORDING_CONFIG_ON_RECORDING_STOP))?i.get(RECORDING_CONFIG_ON_RECORDING_STOP):function(){},i.get(RECORDING_CONFIG_ENABLED));(e._.isBoolean(r)?r:this.config.enabled)?i.get("excludeNonGuideAnalytics")?this.logStopReason("ANALYTICS_DISABLED"):(r=this.sessionIdKey="".concat(SESSION_RECORDING_ID,".").concat(e.apiKey),e.recording={start:n(this.start,this),stop:n(this.stop,this)},this.subscriptions=[t.attachEvent(t.Events,"appHidden",n(this.handleHidden,this)),t.attachEvent(t.Events,"appUnloaded",n(this.handleUnload,this)),t.attachEvent(t.Events,"identify",n(this.changeIdentity,this)),t.attachEvent(t.Events,"metadata",n(this.changeMetadata,this)),t.attachEvent(t.Events,"eventCaptured",n(this.addRecordingId,this)),t.attachEvent(t.Events,"transmit:locked",n(this.stop,this)),t.attachEvent(t.Events,"transmit:unlocked",n(this._start,this)),t.attachEvent(t.frames.getChannel(),"message",n(this._frameMessage,this))],t.store.getters["frames/isReady"]()?this.ready():this.subscriptions.push(t.attachEvent(t.Events,"ready",n(this.ready,this))),t.agentStorage.registry.addSession(r),t.agentStorage.registry.addSession(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)):this.logStopReason("RECORDING_DISABLED")},SessionRecorder.prototype.teardown=function(){delete this.pendo.recording,delete this.allowStart,this.pendo._.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0,this.stop(),this.transport.stop()},SessionRecorder.prototype.ready=function(){!1!==this.api.ConfigReader.get(RECORDING_CONFIG_AUTO_START)&&this.start()},SessionRecorder.prototype.changeIdentity=function(e){var t=this;this.allowStart&&(clearTimeout(this._changeIdentityTimer),this.isRecording()&&this.stop(),this.visitorId=e.data[0].visitor_id,this.accountId=e.data[0].account_id,this._changeIdentityTimer=setTimeout$1(function(){t._start()},500))},SessionRecorder.prototype.changeMetadata=function(e){var t=this,e=e.data[0],n=e.hashChanged,e=e.options;if(this.allowStart&&n)return clearTimeout(this._changeIdentityTimer),this.visitorId=e.visitor.id,this.accountId=e.account.id,this.fetchVisitorConfig().then(function(e){e&&e.enable||!t.isRecording()?e&&e.enable&&!t.isRecording()&&t._startRecordingForVisitor(e):t.stop()}).catch(function(e){t.api.log.critical("Failed to re-fetch recording config",{error:e}),t.logStopReason("VISITOR_CONFIG_ERROR")})},SessionRecorder.prototype.snapshot=function(){this.isRecording()&&(this.send(),this.record.takeFullSnapshot())},SessionRecorder.prototype.isRecording=function(){return null!=this.interval},SessionRecorder.prototype.recordingConfig=function(e){var e=this.pendo._.extend({},this.config.options,e),t={maskAllText:null==e.privateByDefault||e.privateByDefault,maskTextSelector:[".pendo-sr-mask"].concat(e.maskedSelectors||[]).join(","),unmaskTextSelector:[".pendo-sr-unmask"].concat(e.unmaskedSelectors||[]).join(","),maskInputOptions:{}};return this.pendo._.isObject(e.maskInputOptions)&&(t.maskInputOptions=e.maskInputOptions),t.maskInputOptions=this.pendo._.extend(t.maskInputOptions,{email:!0,password:!0,tel:!0}),{maskInputFn:this.pendo._.partial(maskInput,t),maskTextFn:this.pendo._.partial(maskText,t),maskTextSelector:"*",maskTextClass:null,maskInputOptions:t.maskInputOptions,blockClass:null,blockSelector:[".pendo-ignore",".pendo-sr-ignore"].concat(e.blockedSelectors||[]).join(","),recordCrossOriginIframes:null==e.recordCrossOriginIframes||e.recordCrossOriginIframes}},SessionRecorder.prototype.start=function(){this._restartPtm=this.api.analytics.ptm().pause(),this.allowStart=!0,this.visitorId=this.pendo.get_visitor_id(),this.accountId=this.pendo.get_account_id(),this._start()},SessionRecorder.prototype._markEvents=function(e){if(this.recordingId)for(var t=0,n=e;t<n.length;t++){var i=n[t];i.visitor_id===this.visitorId&&"identify"!==i.type&&(i.recordingId=this.recordingId,i.recordingSessionId=this.sessionId(this.recordingId))}},SessionRecorder.prototype.restartPtm=function(){if(this.pendo._.isFunction(this._restartPtm)){this._markEvents(this.pendo.buffers.events);for(var e=0,t=this.pendo.buffers.silos;e<t.length;e++){var n=t[e];this._markEvents(n)}this._restartPtm(),this._restartPtm=null}},SessionRecorder.prototype._start=function(){var e=this;if(!this.isRecording()&&this.pendo.isSendingEvents()&&this.allowStart)return this.fetchVisitorConfig().then(function(t){e.allowStart&&(t&&t.enable?e._startRecordingForVisitor(t):(e.restartPtm(),e.logStopReason("VISITOR_DISABLED")))}).catch(function(t){e.restartPtm(),e.api.log.critical("Failed to fetch recording config",{error:t}),e.logStopReason("VISITOR_CONFIG_ERROR")})},SessionRecorder.prototype._startRecordingForVisitor=function(e){var t=this;if(this.transport.start(this.config),this.pendo._.get(this.config,"disableFallback",!0)&&!this.transport.worker)this.restartPtm(),this.pendo.log("Worker failed to start and main thread fallback is disabled. Recording prevented from starting."),this.logStopReason("WORKER_ERROR");else try{var n=this.pendo._.bind,i=(this.visitorConfig=e,this.clearOldSessionId(),this.sendQueue.start(),this.interval=setInterval(function(){t.sendQueue.failed()||t.send()},SessionRecorder.SEND_INTERVAL),this.recordingConfig(e));this._stop=this.record(this.pendo._.extend({emit:n(this.emit,this)},i)),this._refreshIds(),this.onRecordingStart()}catch(e){this.restartPtm(),this.logStopReason("RECORDING_ERROR")}},SessionRecorder.prototype._sendIds=function(){window==window.top&&this.api.frames.getChannel().postMessage({type:"pendo:sr:id",recordingId:this.recordingId,_sessionId:this._sessionId})},SessionRecorder.prototype._refreshIds=function(e){window!=window.top&&this.api.frames.getChannel().postMessage({type:"pendo:sr:refresh"})},SessionRecorder.prototype._frameMessage=function(e){"pendo:sr:id"===(e=e.data).type?(this.recordingId=e.recordingId,this._sessionId=e._sessionId,this.restartPtm()):"pendo:sr:refresh"===e.type&&window==window.top&&this._sendIds()},SessionRecorder.prototype.clearSessionId=function(){delete this._sessionId,this.api.sessionStorage.removeItem(SESSION_RECORDING_ID),this.api.sessionStorage.removeItem(this.sessionIdKey)},SessionRecorder.prototype.sessionId=function(e){var t,n;return void 0===e&&(e=this.pendo.randomString(16)),this._sessionId||((t=this.api.sessionStorage.getItem(this.sessionIdKey))||((n=this.api.sessionStorage.getItem(SESSION_RECORDING_ID))?(t=n,this.api.sessionStorage.removeItem(SESSION_RECORDING_ID)):t=e,this.api.sessionStorage.setItem(this.sessionIdKey,t)),this._sessionId=t),this._sessionId},SessionRecorder.prototype.clearOldSessionId=function(){var e=this.getLastUserInteractionEventInformation();if(e){var t=e.timestamp,e=e.visitorId===this.visitorId&&e.accountId===this.accountId,t=t>Date.now()-this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES);if(e&&t)return}this.clearSessionInfo(),this.isNewSession=!0},SessionRecorder.prototype.clearSessionInfo=function(){this.currentRecordingSize=0,this.clearSessionId(),this.clearLastUserInteractionEventInformation()},SessionRecorder.prototype.isUserInteraction=function(e){return e.type===SessionRecorder.INCREMENTAL_SNAPSHOT&&e.data.source>SessionRecorder.INCREMENTAL_SOURCE_MUTATION&&e.data.source<=SessionRecorder.INCREMENTAL_SOURCE_INPUT},SessionRecorder.prototype.storeLastUserInteractionEventInformation=function(e,t,n,i){(this.isUserInteraction(e)||i)&&(this.lastUserInteractionEventInfo={timestamp:e.timestamp,visitorId:t,accountId:n},this.api.sessionStorage.setItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT,JSON.stringify(this.lastUserInteractionEventInfo)))},SessionRecorder.prototype.clearLastUserInteractionEventInformation=function(){delete this.lastUserInteractionEventInfo,this.api.sessionStorage.removeItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)},SessionRecorder.prototype.getLastUserInteractionEventInformation=function(){if(this.lastUserInteractionEventInfo)return this.lastUserInteractionEventInfo;try{return this.lastUserInteractionEventInfo=JSON.parse(this.api.sessionStorage.getItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)),this.lastUserInteractionEventInfo}catch(e){return null}},SessionRecorder.prototype.emit=function(e){e.timestamp&&e.timestamp.getTime&&(e.timestamp=e.timestamp.getTime()),e.timestamp||(e.timestamp=(new Date).getTime());var t=e.type===SessionRecorder.META,n=e.type===SessionRecorder.FULL_SNAPSHOT,i=this.pendo._.get(this.getLastUserInteractionEventInformation(),"timestamp"),r=!i&&!!t,r=(this.storeLastUserInteractionEventInformation(e,this.visitorId,this.accountId,r),this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES));i&&e.timestamp-i>r&&!n&&!t?(this.send(),this.clearSessionInfo(),this.snapshot()):(t&&this.send(),this.buffer.push(e),n?(this.lastKeyFrameTime=e.timestamp,this.eventsSinceLastKeyFrame=0,this.recordingId=this.pendo.randomString(16),this.buffer.clearSequence(),this.sessionId(this.recordingId),this.restartPtm(),this._sendIds(),this.send({keyframe:!0})):!t&&(this.eventsSinceLastKeyFrame+=1,r=ONE_DAY_IN_MILLISECONDS<=(i=e.timestamp-this.lastKeyFrameTime),n=i>=this.pendo._.get(this.visitorConfig,"keyframeTimeFrequency",0x1d39b37),t=this.eventsSinceLastKeyFrame>=this.pendo._.get(this.visitorConfig,"keyframeEventFrequency",4548),e=this.currentRecordingSize>=this.pendo._.get(this.visitorConfig,"recordingSizeLimit",ONE_HUNDRED_MB_IN_BYTES),r||n&&t||e)&&(this.currentRecordingSize=0,this.snapshot()))},SessionRecorder.prototype.updateCurrentRecordingSize=function(e){this.currentRecordingSize+=e},SessionRecorder.prototype.onWorkerMessage=function(e){switch(e.type){case"recordingPayloadSize":var t=e.recordingPayloadSize,n=e.exceedsPayloadSizeLimit;if(!t)return;if(n)return this.stop(),void this.logStopReason("BIG_PAYLOAD",t);this.updateCurrentRecordingSize(t);break;case"hostedResources":(n=e.hostedResourcesEvent)&&this.sendHostedResources(n)}},SessionRecorder.prototype.addRecordingId=function(e){this.recordingId&&e&&e.data&&e.data.length&&"recording"!==(e=e.data[0]).type&&"identify"!==e.type&&(e.visitor_id!==this.visitorId?(this.api.log.warn("Visitor id has diverged from agent"),this.stop()):this._markEvents([e]))},SessionRecorder.prototype.stop=function(){this._stop&&this._stop(),this.send(),this.sendQueue.stop(),this.recordingId=null,clearInterval(this.interval),this.interval=null,this._stop=null,this.visitorConfig=null,this.visitorId=null,this.accountId=null,this.clearSessionInfo(),this.onRecordingStop()},SessionRecorder.prototype.handleHidden=function(){this.send({hidden:!0})},SessionRecorder.prototype.handleUnload=function(){this.send({unload:!0})},SessionRecorder.prototype.buildRequestUrl=function(e,t){return t=this.pendo._.extend({},this.api.agent.getJwtInfoCopy(),t),(t=this.pendo._.map(t,function(e,t){return"".concat(t,"=").concat(e)}).join("&")).length?"".concat(e,"?").concat(t):e},SessionRecorder.prototype.sendFailure=function(e){this.stop(),this.logStopReason(e)},SessionRecorder.prototype.rateLimitExceeded=function(){this.send(),this.stop(),this.logStopReason("DATA_OVERLOAD")},SessionRecorder.prototype.send=function(e){var e=void 0===e?{}:e,t=e.unload,t=void 0!==t&&t,n=e.keyframe,n=void 0!==n&&n,e=e.hidden,e=void 0!==e&&e;if(this.isRecording()&&this.buffer&&this.recordingId&&!this.buffer.isEmpty())if(this.pendo.isSendingEvents()){var i=this.api.EventTracer.addTracerIds({}),n=this.pendo._.extend({type:"recording",visitorId:this.visitorId,accountId:this.accountId,keyFrame:!!n,lastKeyFrame:this.lastKeyFrameTime,recordingId:this.recordingId,recordingSessionId:this.sessionId(this.recordingId),url:this.pendo.url.get()},i),i=(this.transport.usesSelfHostedWorker&&(n.usesSelfHostedWorker=!0),this.api.Events.eventCaptured.trigger(n),{v:this.pendo.VERSION,recordingId:this.recordingId}),i=(n.keyFrame&&(i.kf=1),this.isNewSession&&(this.isNewSession=(i.ns=1,!1)),this.buildRequestUrl("".concat(this.pendo.HOST,"/data/rec/").concat(this.pendo.apiKey),i)),n=this.buffer.pack(n,this.pendo._);if(t||e)try{this.sendQueue.drain([{url:i,payload:n}],t)}catch(e){e.reason&&this.logStopReason(e.reason)}else this.sendQueue.push({url:i,payload:n});this.buffer.isEmpty()||this.send({unload:t})}else this.buffer.clear()},SessionRecorder.prototype.fetchVisitorConfig=function(){var e=this.pendo.compress({url:this.pendo.url.get(),metadata:this.pendo.getSerializedMetadata(),visitorId:this.visitorId,accountId:this.accountId}),e=this.buildRequestUrl("".concat(this.pendo.HOST,"/data/recordingconf/").concat(this.pendo.apiKey),{jzb:e,ct:(new Date).getTime(),v:this.pendo.VERSION});return fetch(e,{method:"GET"}).then(function(e){return e.json()})},SessionRecorder.prototype.logStopReason=function(e,t){var n=this,i=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend({type:"recording",visitorId:this.visitorId||this.pendo.get_visitor_id(),accountId:this.accountId||this.pendo.get_account_id(),browserTime:(new Date).getTime(),keyFrame:!1,lastKeyFrame:0,recordingId:"log",recordingSessionId:"log",url:this.pendo.url.get(),subType:"log",recordingPayload:[],sequence:0,recordingPayloadCount:0,props:__assign({reason:e},t&&{error:t})},i),t=this.pendo.compress(e),i=this.buildRequestUrl("".concat(this.pendo.HOST,"/data/rec/").concat(this.pendo.apiKey),{jzb:t,ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),t=this.pendo.compress(e,"binary");return this.transport.post(i,{body:t,keepalive:!0}).catch(function(e){n.api.log.critical("Failed to send reason for stopping recording",{error:e})})},SessionRecorder.prototype.sendHostedResources=function(e){var t=this,n=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend(__assign(__assign({},e),{browserTime:(new Date).getTime()}),n),n=this.buildRequestUrl("".concat(this.pendo.HOST,"/data/rec/").concat(this.pendo.apiKey),{ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),e=this.pendo.compress(e,"binary");return this.transport.post(n,{body:e,keepalive:!0}).catch(function(e){t.api.log.critical("Failed to send hosted resources for recording event",{error:e})})};var WorkerFactory=createBase64WorkerFactory("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwp2YXIgd29ya2VyX2NvZGUgPSAoZnVuY3Rpb24gKGV4cG9ydHMpIHsKICAgICd1c2Ugc3RyaWN0JzsKCiAgICB2YXIgYjY0ID0gKGZ1bmN0aW9uKCkgewoKICAgICAgICB2YXIgbG9va3VwID0gJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5LV8nLnNwbGl0KCcnKTsKCiAgICAgICAgcmV0dXJuIHsKICAgICAgICAgICAgJ3VpbnQ4VG9CYXNlNjQnOiB1aW50OFRvQmFzZTY0CiAgICAgICAgfTsKCiAgICAgICAgZnVuY3Rpb24gdWludDhUb0Jhc2U2NCh1aW50OCkgewogICAgICAgICAgICB2YXIgaSwKICAgICAgICAgICAgICAgIGV4dHJhQnl0ZXMgPSB1aW50OC5sZW5ndGggJSAzLCAvLyBpZiB3ZSBoYXZlIDEgYnl0ZSBsZWZ0LCBwYWQgMiBieXRlcwogICAgICAgICAgICAgICAgb3V0cHV0ID0gJycsCiAgICAgICAgICAgICAgICB0ZW1wLCBsZW5ndGg7CgogICAgICAgICAgICBmdW5jdGlvbiB0cmlwbGV0VG9CYXNlNjQobnVtKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gbG9va3VwW251bSA+PiAxOCAmIDB4M0ZdICsgbG9va3VwW251bSA+PiAxMiAmIDB4M0ZdICsgbG9va3VwW251bSA+PiA2ICYgMHgzRl0gKyBsb29rdXBbbnVtICYgMHgzRl07CiAgICAgICAgICAgIH0KCiAgICAJCS8vIGdvIHRocm91Z2ggdGhlIGFycmF5IGV2ZXJ5IHRocmVlIGJ5dGVzLCB3ZSdsbCBkZWFsIHdpdGggdHJhaWxpbmcgc3R1ZmYgbGF0ZXIKICAgICAgICAgICAgZm9yIChpID0gMCwgbGVuZ3RoID0gdWludDgubGVuZ3RoIC0gZXh0cmFCeXRlczsgaSA8IGxlbmd0aDsgaSArPSAzKSB7CiAgICAgICAgICAgICAgICB0ZW1wID0gKHVpbnQ4W2ldIDw8IDE2KSArICh1aW50OFtpICsgMV0gPDwgOCkgKyAodWludDhbaSArIDJdKTsKICAgICAgICAgICAgICAgIG91dHB1dCArPSB0cmlwbGV0VG9CYXNlNjQodGVtcCk7CiAgICAgICAgICAgIH0KCiAgICAJCS8vIHBhZCB0aGUgZW5kIHdpdGggemVyb3MsIGJ1dCBtYWtlIHN1cmUgdG8gbm90IGZvcmdldCB0aGUgZXh0cmEgYnl0ZXMKICAgICAgICAgICAgLy9lc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgZGVmYXVsdC1jYXNlCiAgICAgICAgICAgIHN3aXRjaCAoZXh0cmFCeXRlcykgewogICAgICAgICAgICBjYXNlIDE6CiAgICAgICAgICAgICAgICB0ZW1wID0gdWludDhbdWludDgubGVuZ3RoIC0gMV07CiAgICAgICAgICAgICAgICBvdXRwdXQgKz0gbG9va3VwW3RlbXAgPj4gMl07CiAgICAgICAgICAgICAgICBvdXRwdXQgKz0gbG9va3VwWyh0ZW1wIDw8IDQpICYgMHgzRl07CiAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgY2FzZSAyOgogICAgICAgICAgICAgICAgdGVtcCA9ICh1aW50OFt1aW50OC5sZW5ndGggLSAyXSA8PCA4KSArICh1aW50OFt1aW50OC5sZW5ndGggLSAxXSk7CiAgICAgICAgICAgICAgICBvdXRwdXQgKz0gbG9va3VwW3RlbXAgPj4gMTBdOwogICAgICAgICAgICAgICAgb3V0cHV0ICs9IGxvb2t1cFsodGVtcCA+PiA0KSAmIDB4M0ZdOwogICAgICAgICAgICAgICAgb3V0cHV0ICs9IGxvb2t1cFsodGVtcCA8PCAyKSAmIDB4M0ZdOwogICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIHJldHVybiBvdXRwdXQ7CiAgICAgICAgfQogICAgfSkoKTsKCiAgICBmdW5jdGlvbiBnZXREZWZhdWx0RXhwb3J0RnJvbUNqcyAoeCkgewogICAgCXJldHVybiB4ICYmIHguX19lc01vZHVsZSAmJiBPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoeCwgJ2RlZmF1bHQnKSA/IHhbJ2RlZmF1bHQnXSA6IHg7CiAgICB9CgogICAgdmFyIGRlZmxhdGVfbWluID0ge2V4cG9ydHM6IHt9fTsKCiAgICAvKgogICAgICogQGxpY2Vuc2UgemxpYi5qcyAyMDEyIC0gaW1heWEgWyBodHRwczovL2dpdGh1Yi5jb20vaW1heWEvemxpYi5qcyBdIFRoZSBNSVQgTGljZW5zZQogICAgICovCgogICAgKGZ1bmN0aW9uIChtb2R1bGUpIHsKICAgIAkoZnVuY3Rpb24oKSB7dmFyIG49dm9pZCAwLHc9ITAsYWE9dGhpcztmdW5jdGlvbiBiYShmLGQpe3ZhciBjPWYuc3BsaXQoIi4iKSxlPWFhOyEoY1swXWluIGUpJiZlLmV4ZWNTY3JpcHQmJmUuZXhlY1NjcmlwdCgidmFyICIrY1swXSk7Zm9yKHZhciBiO2MubGVuZ3RoJiYoYj1jLnNoaWZ0KCkpOykhYy5sZW5ndGgmJmQhPT1uP2VbYl09ZDplPWVbYl0/ZVtiXTplW2JdPXt9O312YXIgQz0idW5kZWZpbmVkIiE9PXR5cGVvZiBVaW50OEFycmF5JiYidW5kZWZpbmVkIiE9PXR5cGVvZiBVaW50MTZBcnJheSYmInVuZGVmaW5lZCIhPT10eXBlb2YgVWludDMyQXJyYXk7ZnVuY3Rpb24gSyhmLGQpe3RoaXMuaW5kZXg9Im51bWJlciI9PT10eXBlb2YgZD9kOjA7dGhpcy5lPTA7dGhpcy5idWZmZXI9ZiBpbnN0YW5jZW9mKEM/VWludDhBcnJheTpBcnJheSk/ZjpuZXcgKEM/VWludDhBcnJheTpBcnJheSkoMzI3NjgpO2lmKDIqdGhpcy5idWZmZXIubGVuZ3RoPD10aGlzLmluZGV4KXRocm93IEVycm9yKCJpbnZhbGlkIGluZGV4Iik7dGhpcy5idWZmZXIubGVuZ3RoPD10aGlzLmluZGV4JiZjYSh0aGlzKTt9ZnVuY3Rpb24gY2EoZil7dmFyIGQ9Zi5idWZmZXIsYyxlPWQubGVuZ3RoLGI9bmV3IChDP1VpbnQ4QXJyYXk6QXJyYXkpKGU8PDEpO2lmKEMpYi5zZXQoZCk7ZWxzZSBmb3IoYz0wO2M8ZTsrK2MpYltjXT1kW2NdO3JldHVybiBmLmJ1ZmZlcj1ifQogICAgCUsucHJvdG90eXBlLmI9ZnVuY3Rpb24oZixkLGMpe3ZhciBlPXRoaXMuYnVmZmVyLGI9dGhpcy5pbmRleCxhPXRoaXMuZSxnPWVbYl0sbTtjJiYxPGQmJihmPTg8ZD8oTFtmJjI1NV08PDI0fExbZj4+PjgmMjU1XTw8MTZ8TFtmPj4+MTYmMjU1XTw8OHxMW2Y+Pj4yNCYyNTVdKT4+MzItZDpMW2ZdPj44LWQpO2lmKDg+ZCthKWc9Zzw8ZHxmLGErPWQ7ZWxzZSBmb3IobT0wO208ZDsrK20pZz1nPDwxfGY+PmQtbS0xJjEsOD09PSsrYSYmKGE9MCxlW2IrK109TFtnXSxnPTAsYj09PWUubGVuZ3RoJiYoZT1jYSh0aGlzKSkpO2VbYl09Zzt0aGlzLmJ1ZmZlcj1lO3RoaXMuZT1hO3RoaXMuaW5kZXg9Yjt9O0sucHJvdG90eXBlLmZpbmlzaD1mdW5jdGlvbigpe3ZhciBmPXRoaXMuYnVmZmVyLGQ9dGhpcy5pbmRleCxjOzA8dGhpcy5lJiYoZltkXTw8PTgtdGhpcy5lLGZbZF09TFtmW2RdXSxkKyspO0M/Yz1mLnN1YmFycmF5KDAsZCk6KGYubGVuZ3RoPWQsYz1mKTtyZXR1cm4gY307CiAgICAJdmFyIGRhPW5ldyAoQz9VaW50OEFycmF5OkFycmF5KSgyNTYpLE07Zm9yKE09MDsyNTY+TTsrK00pe2Zvcih2YXIgTj1NLFM9TixlYT03LE49Tj4+PjE7TjtOPj4+PTEpUzw8PTEsU3w9TiYxLC0tZWE7ZGFbTV09KFM8PGVhJjI1NSk+Pj4wO312YXIgTD1kYTtmdW5jdGlvbiBpYShmKXt0aGlzLmJ1ZmZlcj1uZXcgKEM/VWludDE2QXJyYXk6QXJyYXkpKDIqZik7dGhpcy5sZW5ndGg9MDt9aWEucHJvdG90eXBlLmdldFBhcmVudD1mdW5jdGlvbihmKXtyZXR1cm4gMiooKGYtMikvNHwwKX07aWEucHJvdG90eXBlLnB1c2g9ZnVuY3Rpb24oZixkKXt2YXIgYyxlLGI9dGhpcy5idWZmZXIsYTtjPXRoaXMubGVuZ3RoO2JbdGhpcy5sZW5ndGgrK109ZDtmb3IoYlt0aGlzLmxlbmd0aCsrXT1mOzA8YzspaWYoZT10aGlzLmdldFBhcmVudChjKSxiW2NdPmJbZV0pYT1iW2NdLGJbY109YltlXSxiW2VdPWEsYT1iW2MrMV0sYltjKzFdPWJbZSsxXSxiW2UrMV09YSxjPWU7ZWxzZSBicmVhaztyZXR1cm4gdGhpcy5sZW5ndGh9OwogICAgCWlhLnByb3RvdHlwZS5wb3A9ZnVuY3Rpb24oKXt2YXIgZixkLGM9dGhpcy5idWZmZXIsZSxiLGE7ZD1jWzBdO2Y9Y1sxXTt0aGlzLmxlbmd0aC09MjtjWzBdPWNbdGhpcy5sZW5ndGhdO2NbMV09Y1t0aGlzLmxlbmd0aCsxXTtmb3IoYT0wOzspe2I9MiphKzI7aWYoYj49dGhpcy5sZW5ndGgpYnJlYWs7YisyPHRoaXMubGVuZ3RoJiZjW2IrMl0+Y1tiXSYmKGIrPTIpO2lmKGNbYl0+Y1thXSllPWNbYV0sY1thXT1jW2JdLGNbYl09ZSxlPWNbYSsxXSxjW2ErMV09Y1tiKzFdLGNbYisxXT1lO2Vsc2UgYnJlYWs7YT1iO31yZXR1cm4ge2luZGV4OmYsdmFsdWU6ZCxsZW5ndGg6dGhpcy5sZW5ndGh9fTtmdW5jdGlvbiBrYShmLGQpe3RoaXMuZD1sYTt0aGlzLmk9MDt0aGlzLmlucHV0PUMmJmYgaW5zdGFuY2VvZiBBcnJheT9uZXcgVWludDhBcnJheShmKTpmO3RoaXMuYz0wO2QmJihkLmxhenkmJih0aGlzLmk9ZC5sYXp5KSwibnVtYmVyIj09PXR5cGVvZiBkLmNvbXByZXNzaW9uVHlwZSYmKHRoaXMuZD1kLmNvbXByZXNzaW9uVHlwZSksZC5vdXRwdXRCdWZmZXImJih0aGlzLmE9QyYmZC5vdXRwdXRCdWZmZXIgaW5zdGFuY2VvZiBBcnJheT9uZXcgVWludDhBcnJheShkLm91dHB1dEJ1ZmZlcik6ZC5vdXRwdXRCdWZmZXIpLCJudW1iZXIiPT09dHlwZW9mIGQub3V0cHV0SW5kZXgmJih0aGlzLmM9ZC5vdXRwdXRJbmRleCkpO3RoaXMuYXx8KHRoaXMuYT1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoMzI3NjgpKTt9dmFyIGxhPTIsbmE9e05PTkU6MCxoOjEsZzpsYSxuOjN9LFQ9W10sVTsKICAgIAlmb3IoVT0wOzI4OD5VO1UrKylzd2l0Y2godyl7Y2FzZSAxNDM+PVU6VC5wdXNoKFtVKzQ4LDhdKTticmVhaztjYXNlIDI1NT49VTpULnB1c2goW1UtMTQ0KzQwMCw5XSk7YnJlYWs7Y2FzZSAyNzk+PVU6VC5wdXNoKFtVLTI1NiswLDddKTticmVhaztjYXNlIDI4Nz49VTpULnB1c2goW1UtMjgwKzE5Miw4XSk7YnJlYWs7ZGVmYXVsdDp0aHJvdyAiaW52YWxpZCBsaXRlcmFsOiAiK1U7fQogICAgCWthLnByb3RvdHlwZS5mPWZ1bmN0aW9uKCl7dmFyIGYsZCxjLGUsYj10aGlzLmlucHV0O3N3aXRjaCh0aGlzLmQpe2Nhc2UgMDpjPTA7Zm9yKGU9Yi5sZW5ndGg7YzxlOyl7ZD1DP2Iuc3ViYXJyYXkoYyxjKzY1NTM1KTpiLnNsaWNlKGMsYys2NTUzNSk7Yys9ZC5sZW5ndGg7dmFyIGE9ZCxnPWM9PT1lLG09bixrPW4scD1uLHQ9bix1PW4sbD10aGlzLmEsaD10aGlzLmM7aWYoQyl7Zm9yKGw9bmV3IFVpbnQ4QXJyYXkodGhpcy5hLmJ1ZmZlcik7bC5sZW5ndGg8PWgrYS5sZW5ndGgrNTspbD1uZXcgVWludDhBcnJheShsLmxlbmd0aDw8MSk7bC5zZXQodGhpcy5hKTt9bT1nPzE6MDtsW2grK109bXwwO2s9YS5sZW5ndGg7cD1+ays2NTUzNiY2NTUzNTtsW2grK109ayYyNTU7bFtoKytdPWs+Pj44JjI1NTtsW2grK109cCYyNTU7bFtoKytdPXA+Pj44JjI1NTtpZihDKWwuc2V0KGEsaCksaCs9YS5sZW5ndGgsbD1sLnN1YmFycmF5KDAsaCk7ZWxzZSB7dD0wO2Zvcih1PWEubGVuZ3RoO3Q8dTsrK3QpbFtoKytdPQogICAgCWFbdF07bC5sZW5ndGg9aDt9dGhpcy5jPWg7dGhpcy5hPWw7fWJyZWFrO2Nhc2UgMTp2YXIgcT1uZXcgSyhDP25ldyBVaW50OEFycmF5KHRoaXMuYS5idWZmZXIpOnRoaXMuYSx0aGlzLmMpO3EuYigxLDEsdyk7cS5iKDEsMix3KTt2YXIgcz1vYSh0aGlzLGIpLHgsZmEsejt4PTA7Zm9yKGZhPXMubGVuZ3RoO3g8ZmE7eCsrKWlmKHo9c1t4XSxLLnByb3RvdHlwZS5iLmFwcGx5KHEsVFt6XSksMjU2PHopcS5iKHNbKyt4XSxzWysreF0sdykscS5iKHNbKyt4XSw1KSxxLmIoc1srK3hdLHNbKyt4XSx3KTtlbHNlIGlmKDI1Nj09PXopYnJlYWs7dGhpcy5hPXEuZmluaXNoKCk7dGhpcy5jPXRoaXMuYS5sZW5ndGg7YnJlYWs7Y2FzZSBsYTp2YXIgQj1uZXcgSyhDP25ldyBVaW50OEFycmF5KHRoaXMuYS5idWZmZXIpOnRoaXMuYSx0aGlzLmMpLHRhLEosTyxQLFEsTGE9WzE2LDE3LDE4LDAsOCw3LDksNiwxMCw1LDExLDQsMTIsMywxMywyLDE0LDEsMTVdLFgsdWEsWSx2YSxnYSxqYT1BcnJheSgxOSksCiAgICAJd2EsUixoYSx5LHhhO3RhPWxhO0IuYigxLDEsdyk7Qi5iKHRhLDIsdyk7Sj1vYSh0aGlzLGIpO1g9cGEodGhpcy5tLDE1KTt1YT1xYShYKTtZPXBhKHRoaXMubCw3KTt2YT1xYShZKTtmb3IoTz0yODY7MjU3PE8mJjA9PT1YW08tMV07Ty0tKTtmb3IoUD0zMDsxPFAmJjA9PT1ZW1AtMV07UC0tKTt2YXIgeWE9Tyx6YT1QLEY9bmV3IChDP1VpbnQzMkFycmF5OkFycmF5KSh5YSt6YSkscixHLHYsWixFPW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoMzE2KSxELEEsSD1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoMTkpO2ZvcihyPUc9MDtyPHlhO3IrKylGW0crK109WFtyXTtmb3Iocj0wO3I8emE7cisrKUZbRysrXT1ZW3JdO2lmKCFDKXtyPTA7Zm9yKFo9SC5sZW5ndGg7cjxaOysrcilIW3JdPTA7fXI9RD0wO2ZvcihaPUYubGVuZ3RoO3I8WjtyKz1HKXtmb3IoRz0xO3IrRzxaJiZGW3IrR109PT1GW3JdOysrRyk7dj1HO2lmKDA9PT1GW3JdKWlmKDM+dilmb3IoOzA8di0tOylFW0QrK109MCwKICAgIAlIWzBdKys7ZWxzZSBmb3IoOzA8djspQT0xMzg+dj92OjEzOCxBPnYtMyYmQTx2JiYoQT12LTMpLDEwPj1BPyhFW0QrK109MTcsRVtEKytdPUEtMyxIWzE3XSsrKTooRVtEKytdPTE4LEVbRCsrXT1BLTExLEhbMThdKyspLHYtPUE7ZWxzZSBpZihFW0QrK109RltyXSxIW0Zbcl1dKyssdi0tLDM+dilmb3IoOzA8di0tOylFW0QrK109RltyXSxIW0Zbcl1dKys7ZWxzZSBmb3IoOzA8djspQT02PnY/djo2LEE+di0zJiZBPHYmJihBPXYtMyksRVtEKytdPTE2LEVbRCsrXT1BLTMsSFsxNl0rKyx2LT1BO31mPUM/RS5zdWJhcnJheSgwLEQpOkUuc2xpY2UoMCxEKTtnYT1wYShILDcpO2Zvcih5PTA7MTk+eTt5KyspamFbeV09Z2FbTGFbeV1dO2ZvcihRPTE5OzQ8USYmMD09PWphW1EtMV07US0tKTt3YT1xYShnYSk7Qi5iKE8tMjU3LDUsdyk7Qi5iKFAtMSw1LHcpO0IuYihRLTQsNCx3KTtmb3IoeT0wO3k8UTt5KyspQi5iKGphW3ldLDMsdyk7eT0wO2Zvcih4YT1mLmxlbmd0aDt5PHhhO3krKylpZihSPQogICAgCWZbeV0sQi5iKHdhW1JdLGdhW1JdLHcpLDE2PD1SKXt5Kys7c3dpdGNoKFIpe2Nhc2UgMTY6aGE9MjticmVhaztjYXNlIDE3OmhhPTM7YnJlYWs7Y2FzZSAxODpoYT03O2JyZWFrO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgY29kZTogIitSO31CLmIoZlt5XSxoYSx3KTt9dmFyIEFhPVt1YSxYXSxCYT1bdmEsWV0sSSxDYSwkLG1hLERhLEVhLEZhLEdhO0RhPUFhWzBdO0VhPUFhWzFdO0ZhPUJhWzBdO0dhPUJhWzFdO0k9MDtmb3IoQ2E9Si5sZW5ndGg7STxDYTsrK0kpaWYoJD1KW0ldLEIuYihEYVskXSxFYVskXSx3KSwyNTY8JClCLmIoSlsrK0ldLEpbKytJXSx3KSxtYT1KWysrSV0sQi5iKEZhW21hXSxHYVttYV0sdyksQi5iKEpbKytJXSxKWysrSV0sdyk7ZWxzZSBpZigyNTY9PT0kKWJyZWFrO3RoaXMuYT1CLmZpbmlzaCgpO3RoaXMuYz10aGlzLmEubGVuZ3RoO2JyZWFrO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgY29tcHJlc3Npb24gdHlwZSI7fXJldHVybiB0aGlzLmF9OwogICAgCWZ1bmN0aW9uIHJhKGYsZCl7dGhpcy5sZW5ndGg9Zjt0aGlzLms9ZDt9CiAgICAJdmFyIHNhPWZ1bmN0aW9uKCl7ZnVuY3Rpb24gZihiKXtzd2l0Y2godyl7Y2FzZSAzPT09YjpyZXR1cm4gWzI1NyxiLTMsMF07Y2FzZSA0PT09YjpyZXR1cm4gWzI1OCxiLTQsMF07Y2FzZSA1PT09YjpyZXR1cm4gWzI1OSxiLTUsMF07Y2FzZSA2PT09YjpyZXR1cm4gWzI2MCxiLTYsMF07Y2FzZSA3PT09YjpyZXR1cm4gWzI2MSxiLTcsMF07Y2FzZSA4PT09YjpyZXR1cm4gWzI2MixiLTgsMF07Y2FzZSA5PT09YjpyZXR1cm4gWzI2MyxiLTksMF07Y2FzZSAxMD09PWI6cmV0dXJuIFsyNjQsYi0xMCwwXTtjYXNlIDEyPj1iOnJldHVybiBbMjY1LGItMTEsMV07Y2FzZSAxND49YjpyZXR1cm4gWzI2NixiLTEzLDFdO2Nhc2UgMTY+PWI6cmV0dXJuIFsyNjcsYi0xNSwxXTtjYXNlIDE4Pj1iOnJldHVybiBbMjY4LGItMTcsMV07Y2FzZSAyMj49YjpyZXR1cm4gWzI2OSxiLTE5LDJdO2Nhc2UgMjY+PWI6cmV0dXJuIFsyNzAsYi0yMywyXTtjYXNlIDMwPj1iOnJldHVybiBbMjcxLGItMjcsMl07Y2FzZSAzND49YjpyZXR1cm4gWzI3MiwKICAgIAliLTMxLDJdO2Nhc2UgNDI+PWI6cmV0dXJuIFsyNzMsYi0zNSwzXTtjYXNlIDUwPj1iOnJldHVybiBbMjc0LGItNDMsM107Y2FzZSA1OD49YjpyZXR1cm4gWzI3NSxiLTUxLDNdO2Nhc2UgNjY+PWI6cmV0dXJuIFsyNzYsYi01OSwzXTtjYXNlIDgyPj1iOnJldHVybiBbMjc3LGItNjcsNF07Y2FzZSA5OD49YjpyZXR1cm4gWzI3OCxiLTgzLDRdO2Nhc2UgMTE0Pj1iOnJldHVybiBbMjc5LGItOTksNF07Y2FzZSAxMzA+PWI6cmV0dXJuIFsyODAsYi0xMTUsNF07Y2FzZSAxNjI+PWI6cmV0dXJuIFsyODEsYi0xMzEsNV07Y2FzZSAxOTQ+PWI6cmV0dXJuIFsyODIsYi0xNjMsNV07Y2FzZSAyMjY+PWI6cmV0dXJuIFsyODMsYi0xOTUsNV07Y2FzZSAyNTc+PWI6cmV0dXJuIFsyODQsYi0yMjcsNV07Y2FzZSAyNTg9PT1iOnJldHVybiBbMjg1LGItMjU4LDBdO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgbGVuZ3RoOiAiK2I7fX12YXIgZD1bXSxjLGU7Zm9yKGM9MzsyNTg+PWM7YysrKWU9ZihjKSxkW2NdPWVbMl08PDI0fAogICAgCWVbMV08PDE2fGVbMF07cmV0dXJuIGR9KCksSGE9Qz9uZXcgVWludDMyQXJyYXkoc2EpOnNhOwogICAgCWZ1bmN0aW9uIG9hKGYsZCl7ZnVuY3Rpb24gYyhiLGMpe3ZhciBhPWIuayxkPVtdLGU9MCxmO2Y9SGFbYi5sZW5ndGhdO2RbZSsrXT1mJjY1NTM1O2RbZSsrXT1mPj4xNiYyNTU7ZFtlKytdPWY+PjI0O3ZhciBnO3N3aXRjaCh3KXtjYXNlIDE9PT1hOmc9WzAsYS0xLDBdO2JyZWFrO2Nhc2UgMj09PWE6Zz1bMSxhLTIsMF07YnJlYWs7Y2FzZSAzPT09YTpnPVsyLGEtMywwXTticmVhaztjYXNlIDQ9PT1hOmc9WzMsYS00LDBdO2JyZWFrO2Nhc2UgNj49YTpnPVs0LGEtNSwxXTticmVhaztjYXNlIDg+PWE6Zz1bNSxhLTcsMV07YnJlYWs7Y2FzZSAxMj49YTpnPVs2LGEtOSwyXTticmVhaztjYXNlIDE2Pj1hOmc9WzcsYS0xMywyXTticmVhaztjYXNlIDI0Pj1hOmc9WzgsYS0xNywzXTticmVhaztjYXNlIDMyPj1hOmc9WzksYS0yNSwzXTticmVhaztjYXNlIDQ4Pj1hOmc9WzEwLGEtMzMsNF07YnJlYWs7Y2FzZSA2ND49YTpnPVsxMSxhLTQ5LDRdO2JyZWFrO2Nhc2UgOTY+PWE6Zz1bMTIsYS0KICAgIAk2NSw1XTticmVhaztjYXNlIDEyOD49YTpnPVsxMyxhLTk3LDVdO2JyZWFrO2Nhc2UgMTkyPj1hOmc9WzE0LGEtMTI5LDZdO2JyZWFrO2Nhc2UgMjU2Pj1hOmc9WzE1LGEtMTkzLDZdO2JyZWFrO2Nhc2UgMzg0Pj1hOmc9WzE2LGEtMjU3LDddO2JyZWFrO2Nhc2UgNTEyPj1hOmc9WzE3LGEtMzg1LDddO2JyZWFrO2Nhc2UgNzY4Pj1hOmc9WzE4LGEtNTEzLDhdO2JyZWFrO2Nhc2UgMTAyND49YTpnPVsxOSxhLTc2OSw4XTticmVhaztjYXNlIDE1MzY+PWE6Zz1bMjAsYS0xMDI1LDldO2JyZWFrO2Nhc2UgMjA0OD49YTpnPVsyMSxhLTE1MzcsOV07YnJlYWs7Y2FzZSAzMDcyPj1hOmc9WzIyLGEtMjA0OSwxMF07YnJlYWs7Y2FzZSA0MDk2Pj1hOmc9WzIzLGEtMzA3MywxMF07YnJlYWs7Y2FzZSA2MTQ0Pj1hOmc9WzI0LGEtNDA5NywxMV07YnJlYWs7Y2FzZSA4MTkyPj1hOmc9WzI1LGEtNjE0NSwxMV07YnJlYWs7Y2FzZSAxMjI4OD49YTpnPVsyNixhLTgxOTMsMTJdO2JyZWFrO2Nhc2UgMTYzODQ+PQogICAgCWE6Zz1bMjcsYS0xMjI4OSwxMl07YnJlYWs7Y2FzZSAyNDU3Nj49YTpnPVsyOCxhLTE2Mzg1LDEzXTticmVhaztjYXNlIDMyNzY4Pj1hOmc9WzI5LGEtMjQ1NzcsMTNdO2JyZWFrO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgZGlzdGFuY2UiO31mPWc7ZFtlKytdPWZbMF07ZFtlKytdPWZbMV07ZFtlKytdPWZbMl07dmFyIGssbTtrPTA7Zm9yKG09ZC5sZW5ndGg7azxtOysraylsW2grK109ZFtrXTtzW2RbMF1dKys7eFtkWzNdXSsrO3E9Yi5sZW5ndGgrYy0xO3U9bnVsbDt9dmFyIGUsYixhLGcsbSxrPXt9LHAsdCx1LGw9Qz9uZXcgVWludDE2QXJyYXkoMipkLmxlbmd0aCk6W10saD0wLHE9MCxzPW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoMjg2KSx4PW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoMzApLGZhPWYuaSx6O2lmKCFDKXtmb3IoYT0wOzI4NT49YTspc1thKytdPTA7Zm9yKGE9MDsyOT49YTspeFthKytdPTA7fXNbMjU2XT0xO2U9MDtmb3IoYj1kLmxlbmd0aDtlPGI7KytlKXthPQogICAgCW09MDtmb3IoZz0zO2E8ZyYmZSthIT09YjsrK2EpbT1tPDw4fGRbZSthXTtrW21dPT09biYmKGtbbV09W10pO3A9a1ttXTtpZighKDA8cS0tKSl7Zm9yKDswPHAubGVuZ3RoJiYzMjc2ODxlLXBbMF07KXAuc2hpZnQoKTtpZihlKzM+PWIpe3UmJmModSwtMSk7YT0wO2ZvcihnPWItZTthPGc7KythKXo9ZFtlK2FdLGxbaCsrXT16LCsrc1t6XTticmVha30wPHAubGVuZ3RoPyh0PUlhKGQsZSxwKSx1P3UubGVuZ3RoPHQubGVuZ3RoPyh6PWRbZS0xXSxsW2grK109eiwrK3Nbel0sYyh0LDApKTpjKHUsLTEpOnQubGVuZ3RoPGZhP3U9dDpjKHQsMCkpOnU/Yyh1LC0xKTooej1kW2VdLGxbaCsrXT16LCsrc1t6XSk7fXAucHVzaChlKTt9bFtoKytdPTI1NjtzWzI1Nl0rKztmLm09cztmLmw9eDtyZXR1cm4gQz9sLnN1YmFycmF5KDAsaCk6bH0KICAgIAlmdW5jdGlvbiBJYShmLGQsYyl7dmFyIGUsYixhPTAsZyxtLGsscCx0PWYubGVuZ3RoO209MDtwPWMubGVuZ3RoO2E6Zm9yKDttPHA7bSsrKXtlPWNbcC1tLTFdO2c9MztpZigzPGEpe2ZvcihrPWE7MzxrO2stLSlpZihmW2Uray0xXSE9PWZbZCtrLTFdKWNvbnRpbnVlIGE7Zz1hO31mb3IoOzI1OD5nJiZkK2c8dCYmZltlK2ddPT09ZltkK2ddOykrK2c7Zz5hJiYoYj1lLGE9Zyk7aWYoMjU4PT09ZylicmVha31yZXR1cm4gbmV3IHJhKGEsZC1iKX0KICAgIAlmdW5jdGlvbiBwYShmLGQpe3ZhciBjPWYubGVuZ3RoLGU9bmV3IGlhKDU3MiksYj1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoYyksYSxnLG0sayxwO2lmKCFDKWZvcihrPTA7azxjO2srKyliW2tdPTA7Zm9yKGs9MDtrPGM7KytrKTA8ZltrXSYmZS5wdXNoKGssZltrXSk7YT1BcnJheShlLmxlbmd0aC8yKTtnPW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoZS5sZW5ndGgvMik7aWYoMT09PWEubGVuZ3RoKXJldHVybiBiW2UucG9wKCkuaW5kZXhdPTEsYjtrPTA7Zm9yKHA9ZS5sZW5ndGgvMjtrPHA7KytrKWFba109ZS5wb3AoKSxnW2tdPWFba10udmFsdWU7bT1KYShnLGcubGVuZ3RoLGQpO2s9MDtmb3IocD1hLmxlbmd0aDtrPHA7KytrKWJbYVtrXS5pbmRleF09bVtrXTtyZXR1cm4gYn0KICAgIAlmdW5jdGlvbiBKYShmLGQsYyl7ZnVuY3Rpb24gZShhKXt2YXIgYj1rW2FdW3BbYV1dO2I9PT1kPyhlKGErMSksZShhKzEpKTotLWdbYl07KytwW2FdO312YXIgYj1uZXcgKEM/VWludDE2QXJyYXk6QXJyYXkpKGMpLGE9bmV3IChDP1VpbnQ4QXJyYXk6QXJyYXkpKGMpLGc9bmV3IChDP1VpbnQ4QXJyYXk6QXJyYXkpKGQpLG09QXJyYXkoYyksaz1BcnJheShjKSxwPUFycmF5KGMpLHQ9KDE8PGMpLWQsdT0xPDxjLTEsbCxoLHEscyx4O2JbYy0xXT1kO2ZvcihoPTA7aDxjOysraCl0PHU/YVtoXT0wOihhW2hdPTEsdC09dSksdDw8PTEsYltjLTItaF09KGJbYy0xLWhdLzJ8MCkrZDtiWzBdPWFbMF07bVswXT1BcnJheShiWzBdKTtrWzBdPUFycmF5KGJbMF0pO2ZvcihoPTE7aDxjOysraCliW2hdPjIqYltoLTFdK2FbaF0mJihiW2hdPTIqYltoLTFdK2FbaF0pLG1baF09QXJyYXkoYltoXSksa1toXT1BcnJheShiW2hdKTtmb3IobD0wO2w8ZDsrK2wpZ1tsXT1jO2ZvcihxPTA7cTxiW2MtMV07KytxKW1bYy0KICAgIAkxXVtxXT1mW3FdLGtbYy0xXVtxXT1xO2ZvcihsPTA7bDxjOysrbClwW2xdPTA7MT09PWFbYy0xXSYmKC0tZ1swXSwrK3BbYy0xXSk7Zm9yKGg9Yy0yOzA8PWg7LS1oKXtzPWw9MDt4PXBbaCsxXTtmb3IocT0wO3E8YltoXTtxKyspcz1tW2grMV1beF0rbVtoKzFdW3grMV0scz5mW2xdPyhtW2hdW3FdPXMsa1toXVtxXT1kLHgrPTIpOihtW2hdW3FdPWZbbF0sa1toXVtxXT1sLCsrbCk7cFtoXT0wOzE9PT1hW2hdJiZlKGgpO31yZXR1cm4gZ30KICAgIAlmdW5jdGlvbiBxYShmKXt2YXIgZD1uZXcgKEM/VWludDE2QXJyYXk6QXJyYXkpKGYubGVuZ3RoKSxjPVtdLGU9W10sYj0wLGEsZyxtLGs7YT0wO2ZvcihnPWYubGVuZ3RoO2E8ZzthKyspY1tmW2FdXT0oY1tmW2FdXXwwKSsxO2E9MTtmb3IoZz0xNjthPD1nO2ErKyllW2FdPWIsYis9Y1thXXwwLGI8PD0xO2E9MDtmb3IoZz1mLmxlbmd0aDthPGc7YSsrKXtiPWVbZlthXV07ZVtmW2FdXSs9MTttPWRbYV09MDtmb3Ioaz1mW2FdO208azttKyspZFthXT1kW2FdPDwxfGImMSxiPj4+PTE7fXJldHVybiBkfWZ1bmN0aW9uIEthKGYsZCl7dGhpcy5pbnB1dD1mO3RoaXMuYT1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoMzI3NjgpO3RoaXMuZD1WLmc7dmFyIGM9e30sZTtpZigoZHx8IShkPXt9KSkmJiJudW1iZXIiPT09dHlwZW9mIGQuY29tcHJlc3Npb25UeXBlKXRoaXMuZD1kLmNvbXByZXNzaW9uVHlwZTtmb3IoZSBpbiBkKWNbZV09ZFtlXTtjLm91dHB1dEJ1ZmZlcj10aGlzLmE7dGhpcy5qPW5ldyBrYSh0aGlzLmlucHV0LGMpO312YXIgVj1uYTsKICAgIAlLYS5wcm90b3R5cGUuZj1mdW5jdGlvbigpe3ZhciBmLGQsYyxlLGIsYSxnPTA7YT10aGlzLmE7c3dpdGNoKDgpe2Nhc2UgODpmPU1hdGguTE9HMkUqTWF0aC5sb2coMzI3NjgpLTg7YnJlYWs7ZGVmYXVsdDp0aHJvdyBFcnJvcigiaW52YWxpZCBjb21wcmVzc2lvbiBtZXRob2QiKTt9ZD1mPDw0fDg7YVtnKytdPWQ7c3dpdGNoKDgpe2Nhc2UgODpzd2l0Y2godGhpcy5kKXtjYXNlIFYuTk9ORTplPTA7YnJlYWs7Y2FzZSBWLmg6ZT0xO2JyZWFrO2Nhc2UgVi5nOmU9MjticmVhaztkZWZhdWx0OnRocm93IEVycm9yKCJ1bnN1cHBvcnRlZCBjb21wcmVzc2lvbiB0eXBlIik7fWJyZWFrO2RlZmF1bHQ6dGhyb3cgRXJyb3IoImludmFsaWQgY29tcHJlc3Npb24gbWV0aG9kIik7fWM9ZTw8NnwwO2FbZysrXT1jfDMxLSgyNTYqZCtjKSUzMTt2YXIgbT10aGlzLmlucHV0O2lmKCJzdHJpbmciPT09dHlwZW9mIG0pe3ZhciBrPW0uc3BsaXQoIiIpLHAsdDtwPTA7Zm9yKHQ9ay5sZW5ndGg7cDx0O3ArKylrW3BdPQogICAgCShrW3BdLmNoYXJDb2RlQXQoMCkmMjU1KT4+PjA7bT1rO31mb3IodmFyIHU9MSxsPTAsaD1tLmxlbmd0aCxxLHM9MDswPGg7KXtxPTEwMjQ8aD8xMDI0Omg7aC09cTtkbyB1Kz1tW3MrK10sbCs9dTt3aGlsZSgtLXEpO3UlPTY1NTIxO2wlPTY1NTIxO31iPShsPDwxNnx1KT4+PjA7dGhpcy5qLmM9ZzthPXRoaXMuai5mKCk7Zz1hLmxlbmd0aDtDJiYoYT1uZXcgVWludDhBcnJheShhLmJ1ZmZlciksYS5sZW5ndGg8PWcrNCYmKHRoaXMuYT1uZXcgVWludDhBcnJheShhLmxlbmd0aCs0KSx0aGlzLmEuc2V0KGEpLGE9dGhpcy5hKSxhPWEuc3ViYXJyYXkoMCxnKzQpKTthW2crK109Yj4+MjQmMjU1O2FbZysrXT1iPj4xNiYyNTU7YVtnKytdPWI+PjgmMjU1O2FbZysrXT1iJjI1NTtyZXR1cm4gYX07YmEoIlpsaWIuRGVmbGF0ZSIsS2EpO2JhKCJabGliLkRlZmxhdGUuY29tcHJlc3MiLGZ1bmN0aW9uKGYsZCl7cmV0dXJuIChuZXcgS2EoZixkKSkuZigpfSk7YmEoIlpsaWIuRGVmbGF0ZS5wcm90b3R5cGUuY29tcHJlc3MiLEthLnByb3RvdHlwZS5mKTt2YXIgTWE9e05PTkU6Vi5OT05FLEZJWEVEOlYuaCxEWU5BTUlDOlYuZ30sTmEsT2EsVyxQYTtpZihPYmplY3Qua2V5cylOYT1PYmplY3Qua2V5cyhNYSk7ZWxzZSBmb3IoT2EgaW4gTmE9W10sVz0wLE1hKU5hW1crK109T2E7Vz0wO2ZvcihQYT1OYS5sZW5ndGg7VzxQYTsrK1cpT2E9TmFbV10sYmEoIlpsaWIuRGVmbGF0ZS5Db21wcmVzc2lvblR5cGUuIitPYSxNYVtPYV0pO30pLmNhbGwobW9kdWxlLmV4cG9ydHMpOyAKICAgIH0gKGRlZmxhdGVfbWluKSk7CgogICAgdmFyIGRlZmxhdGVfbWluRXhwb3J0cyA9IGRlZmxhdGVfbWluLmV4cG9ydHM7CiAgICB2YXIgWkxpYkRlZmxhdGUgPSAvKkBfX1BVUkVfXyovZ2V0RGVmYXVsdEV4cG9ydEZyb21DanMoZGVmbGF0ZV9taW5FeHBvcnRzKTsKCiAgICBmdW5jdGlvbiB0b1VURjhBcnJheShzdHIpIHsKICAgICAgICB2YXIgdXRmOCA9IFtdOwogICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgc3RyLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgIHZhciBjaGFyY29kZSA9IHN0ci5jaGFyQ29kZUF0KGkpOwogICAgICAgICAgICBpZiAoY2hhcmNvZGUgPCAweDgwKQogICAgICAgICAgICAgICAgdXRmOC5wdXNoKGNoYXJjb2RlKTsKICAgICAgICAgICAgZWxzZSBpZiAoY2hhcmNvZGUgPCAweDgwMCkgewogICAgICAgICAgICAgICAgdXRmOC5wdXNoKDB4YzAgfCAoY2hhcmNvZGUgPj4gNiksIDB4ODAgfCAoY2hhcmNvZGUgJiAweDNmKSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZSBpZiAoY2hhcmNvZGUgPCAweGQ4MDAgfHwgY2hhcmNvZGUgPj0gMHhlMDAwKSB7CiAgICAgICAgICAgICAgICB1dGY4LnB1c2goMHhlMCB8IChjaGFyY29kZSA+PiAxMiksIDB4ODAgfCAoKGNoYXJjb2RlID4+IDYpICYgMHgzZiksIDB4ODAgfCAoY2hhcmNvZGUgJiAweDNmKSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZSB7CiAgICAgICAgICAgICAgICAvLyBzdXJyb2dhdGUgcGFpcgogICAgICAgICAgICAgICAgaSsrOwogICAgICAgICAgICAgICAgLy8gVVRGLTE2IGVuY29kZXMgMHgxMDAwMC0weDEwRkZGRiBieQogICAgICAgICAgICAgICAgLy8gc3VidHJhY3RpbmcgMHgxMDAwMCBhbmQgc3BsaXR0aW5nIHRoZQogICAgICAgICAgICAgICAgLy8gMjAgYml0cyBvZiAweDAtMHhGRkZGRiBpbnRvIHR3byBoYWx2ZXMKICAgICAgICAgICAgICAgIGNoYXJjb2RlID0gMHgxMDAwMCArICgoKGNoYXJjb2RlICYgMHgzZmYpIDw8IDEwKSB8CiAgICAgICAgICAgICAgICAgICAgKHN0ci5jaGFyQ29kZUF0KGkpICYgMHgzZmYpKTsKICAgICAgICAgICAgICAgIHV0ZjgucHVzaCgweGYwIHwgKGNoYXJjb2RlID4+IDE4KSwgMHg4MCB8ICgoY2hhcmNvZGUgPj4gMTIpICYgMHgzZiksIDB4ODAgfCAoKGNoYXJjb2RlID4+IDYpICYgMHgzZiksIDB4ODAgfCAoY2hhcmNvZGUgJiAweDNmKSk7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIHV0Zjg7CiAgICB9CgogICAgdmFyIFpsaWIgPSB7CiAgICAgICAgJ0RlZmxhdGUnOiBaTGliRGVmbGF0ZS5abGliLkRlZmxhdGUKICAgIH07CiAgICB2YXIgRW5jb2RpbmcgPSB7CiAgICAgICAgJ2Jhc2U2NFVybCc6ICdiYXNlNjR1cmwnLAogICAgICAgICdiaW5hcnknOiAnYmluYXJ5JwogICAgfTsKICAgIGZ1bmN0aW9uIGNvbXByZXNzKGpzb25fb2JqLCBlbmNvZGluZykgewogICAgICAgIGlmICghZW5jb2RpbmcpIHsKICAgICAgICAgICAgZW5jb2RpbmcgPSBFbmNvZGluZy5iYXNlNjRVcmw7CiAgICAgICAgfQogICAgICAgIC8qIC0tIFRoaXMgaXMgWkxJQiAqLwogICAgICAgIHZhciBjb21wcmVzc0RhdGEgPSB0b1VURjhBcnJheSh0eXBlb2YganNvbl9vYmogPT09ICdzdHJpbmcnID8ganNvbl9vYmogOiBKU09OLnN0cmluZ2lmeShqc29uX29iaikpOwogICAgICAgIHZhciBkZWZsYXRlID0gbmV3IFpsaWIuRGVmbGF0ZShjb21wcmVzc0RhdGEpOwogICAgICAgIHZhciBjb21wcmVzc2VkQnl0ZXMgPSBkZWZsYXRlLmNvbXByZXNzKCk7CiAgICAgICAgaWYgKGVuY29kaW5nID09PSBFbmNvZGluZy5iYXNlNjRVcmwpIHsKICAgICAgICAgICAgcmV0dXJuIGI2NC51aW50OFRvQmFzZTY0KGNvbXByZXNzZWRCeXRlcyk7CiAgICAgICAgfQogICAgICAgIGVsc2UgewogICAgICAgICAgICByZXR1cm4gY29tcHJlc3NlZEJ5dGVzOwogICAgICAgIH0KICAgIH0KCiAgICB2YXIgT05FX0hVTkRSRURfTUJfSU5fQllURVMgPSAxMDAgKiAxMDI0ICogMTAyNDsKICAgIGZ1bmN0aW9uIG1hdGNoSG9zdGVkUmVzb3VyY2VzKHJlY29yZGluZ0V2ZW50LCBzdHJpbmdpZmllZFJlY29yZGluZ1BheWxvYWQpIHsKICAgICAgICB2YXIgZm9udFVSTFJlZ2V4ID0gL2h0dHBzOlwvXC9bXlxzXSs/XC4od29mZnx3b2ZmMnx0dGZ8b3RmfGVvdClcYi9nOwogICAgICAgIHZhciBob3N0ZWRSZXNvdXJjZXMgPSBzdHJpbmdpZmllZFJlY29yZGluZ1BheWxvYWQubWF0Y2goZm9udFVSTFJlZ2V4KTsKICAgICAgICByZXR1cm4gewogICAgICAgICAgICAndHlwZSc6ICdyZWNvcmRpbmcnLAogICAgICAgICAgICAndmlzaXRvcklkJzogcmVjb3JkaW5nRXZlbnQudmlzaXRvcklkLAogICAgICAgICAgICAnYWNjb3VudElkJzogcmVjb3JkaW5nRXZlbnQuYWNjb3VudElkLAogICAgICAgICAgICAna2V5RnJhbWUnOiBmYWxzZSwKICAgICAgICAgICAgJ2xhc3RLZXlGcmFtZSc6IHJlY29yZGluZ0V2ZW50Lmxhc3RLZXlGcmFtZSwKICAgICAgICAgICAgJ3JlY29yZGluZ0lkJzogcmVjb3JkaW5nRXZlbnQucmVjb3JkaW5nSWQsCiAgICAgICAgICAgICdyZWNvcmRpbmdTZXNzaW9uSWQnOiByZWNvcmRpbmdFdmVudC5yZWNvcmRpbmdTZXNzaW9uSWQsCiAgICAgICAgICAgICd1cmwnOiByZWNvcmRpbmdFdmVudC51cmwsCiAgICAgICAgICAgICdzdWJUeXBlJzogJ2hvc3RlZFJlc291cmNlcycsCiAgICAgICAgICAgICdyZWNvcmRpbmdQYXlsb2FkJzogW10sCiAgICAgICAgICAgICdyZWNvcmRpbmdQYXlsb2FkTWV0YWRhdGEnOiBbXSwKICAgICAgICAgICAgJ3NlcXVlbmNlJzogMCwKICAgICAgICAgICAgJ3JlY29yZGluZ1BheWxvYWRDb3VudCc6IDAsCiAgICAgICAgICAgICdob3N0ZWRSZXNvdXJjZXMnOiBob3N0ZWRSZXNvdXJjZXMgfHwgW10KICAgICAgICB9OwogICAgfQogICAgLy8ga2VlcCBpbiBtaW5kIGNoYW5nZXMgaGVyZSBtYXkgbmVlZCBhZGRyZXNzaW5nIGluIHRoZSBleHRlbnNpb24gd29ya2VyIHByb3h5IGFzIHdlbGwKICAgIHNlbGYub25tZXNzYWdlID0gZnVuY3Rpb24gKGUpIHsKICAgICAgICB0cnkgewogICAgICAgICAgICBpZiAoZS5kYXRhLnVybCAmJiBlLmRhdGEucGF5bG9hZCkgewogICAgICAgICAgICAgICAgdmFyIF9hID0gZS5kYXRhLCB1cmwgPSBfYS51cmwsIHBheWxvYWQgPSBfYS5wYXlsb2FkLCBzaG91bGRDYWNoZVJlc291cmNlcyA9IF9hLnNob3VsZENhY2hlUmVzb3VyY2VzOwogICAgICAgICAgICAgICAgdmFyIHNlcXVlbmNlXzEgPSBwYXlsb2FkLnNlcXVlbmNlOwogICAgICAgICAgICAgICAgdmFyIHN0cmluZ2lmaWVkUmVjb3JkaW5nUGF5bG9hZCA9IEpTT04uc3RyaW5naWZ5KHBheWxvYWQucmVjb3JkaW5nUGF5bG9hZCk7CiAgICAgICAgICAgICAgICAvLyBjYWxjdWxhdGUgYW5kIHBvc3QgYmFjayB0aGUgcmVjb3JkaW5nIHBheWxvYWQgc2l6ZSBiZWZvcmUgdGhlIHBheWxvYWQgaXMgY29tcHJlc3NlZAogICAgICAgICAgICAgICAgdmFyIHJlY29yZGluZ1BheWxvYWRTaXplID0gbmV3IFRleHRFbmNvZGVyKCkuZW5jb2RlKHN0cmluZ2lmaWVkUmVjb3JkaW5nUGF5bG9hZCkubGVuZ3RoOwogICAgICAgICAgICAgICAgdmFyIGV4Y2VlZHNQYXlsb2FkU2l6ZUxpbWl0ID0gcmVjb3JkaW5nUGF5bG9hZFNpemUgPj0gT05FX0hVTkRSRURfTUJfSU5fQllURVM7CiAgICAgICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICAgICAgJ3R5cGUnOiAncmVjb3JkaW5nUGF5bG9hZFNpemUnLAogICAgICAgICAgICAgICAgICAgICdyZWNvcmRpbmdQYXlsb2FkU2l6ZSc6IHJlY29yZGluZ1BheWxvYWRTaXplLAogICAgICAgICAgICAgICAgICAgICdleGNlZWRzUGF5bG9hZFNpemVMaW1pdCc6IGV4Y2VlZHNQYXlsb2FkU2l6ZUxpbWl0CiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgIC8vIGRvbid0IGF0dGVtcHQgdG8gc2VuZCB0aGUgcGF5bG9hZCBpZiBpdCBleGNlZWRzIHRoZSBhbGxvd2VkIGxpbWl0CiAgICAgICAgICAgICAgICBpZiAoZXhjZWVkc1BheWxvYWRTaXplTGltaXQpCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgaWYgKHNob3VsZENhY2hlUmVzb3VyY2VzKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIGhvc3RlZFJlc291cmNlc0V2ZW50ID0gbWF0Y2hIb3N0ZWRSZXNvdXJjZXMocGF5bG9hZCwgc3RyaW5naWZpZWRSZWNvcmRpbmdQYXlsb2FkKTsKICAgICAgICAgICAgICAgICAgICBpZiAoaG9zdGVkUmVzb3VyY2VzRXZlbnQuaG9zdGVkUmVzb3VyY2VzLmxlbmd0aCkgewogICAgICAgICAgICAgICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAndHlwZSc6ICdob3N0ZWRSZXNvdXJjZXMnLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgJ2hvc3RlZFJlc291cmNlc0V2ZW50JzogaG9zdGVkUmVzb3VyY2VzRXZlbnQKICAgICAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgcGF5bG9hZC5yZWNvcmRpbmdTaXplID0gcmVjb3JkaW5nUGF5bG9hZFNpemU7CiAgICAgICAgICAgICAgICB2YXIgYm9keSA9IGNvbXByZXNzKHBheWxvYWQsICdiaW5hcnknKTsKICAgICAgICAgICAgICAgIC8vIHdlIHdhbnQgdG8gY2FsY3VsYXRlIGN0IChjdXJyZW50IHRpbWUpIGFzIGNsb3NlIGFzIHdlIGNhbiB0byB0aGUgYWN0dWFsIFBPU1QgcmVxdWVzdAogICAgICAgICAgICAgICAgLy8gc28gdGhhdCBpdCdzIGFzIGFjY3VyYXRlIGFzIHBvc3NpYmxlCiAgICAgICAgICAgICAgICB1cmwgPSAiIi5jb25jYXQodXJsLCAiJmN0PSIpLmNvbmNhdChuZXcgRGF0ZSgpLmdldFRpbWUoKSk7CiAgICAgICAgICAgICAgICBmZXRjaCh1cmwsIHsKICAgICAgICAgICAgICAgICAgICAnbWV0aG9kJzogJ1BPU1QnLAogICAgICAgICAgICAgICAgICAgICdib2R5JzogYm9keQogICAgICAgICAgICAgICAgfSkudGhlbihmdW5jdGlvbiAocmVzcG9uc2UpIHsKICAgICAgICAgICAgICAgICAgICBpZiAocmVzcG9uc2Uuc3RhdHVzIDwgMjAwIHx8IHJlc3BvbnNlLnN0YXR1cyA+PSAzMDApIHsKICAgICAgICAgICAgICAgICAgICAgICAgcG9zdE1lc3NhZ2UoewogICAgICAgICAgICAgICAgICAgICAgICAgICAgJ2Vycm9yJzogbmV3IEVycm9yKCJyZWNlaXZlZCBzdGF0dXMgY29kZSAiLmNvbmNhdChyZXNwb25zZS5zdGF0dXMsICI6ICIpLmNvbmNhdChyZXNwb25zZS5zdGF0dXNUZXh0KSksCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAnc3RhdHVzJzogcmVzcG9uc2Uuc3RhdHVzLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgc2VxdWVuY2U6IHNlcXVlbmNlXzEKICAgICAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIGVsc2UgewogICAgICAgICAgICAgICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXF1ZW5jZTogc2VxdWVuY2VfMQogICAgICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9KVsnY2F0Y2gnXShmdW5jdGlvbiAoZSkgewogICAgICAgICAgICAgICAgICAgIHBvc3RNZXNzYWdlKHsKICAgICAgICAgICAgICAgICAgICAgICAgJ2Vycm9yJzogZSwKICAgICAgICAgICAgICAgICAgICAgICAgc2VxdWVuY2U6IHNlcXVlbmNlXzEKICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGNhdGNoIChlKSB7CiAgICAgICAgICAgIHBvc3RNZXNzYWdlKHsKICAgICAgICAgICAgICAgICdlcnJvcic6IGUKICAgICAgICAgICAgfSk7CiAgICAgICAgfQogICAgfTsKCiAgICBleHBvcnRzLm1hdGNoSG9zdGVkUmVzb3VyY2VzID0gbWF0Y2hIb3N0ZWRSZXNvdXJjZXM7CgogICAgcmV0dXJuIGV4cG9ydHM7Cgp9KSh7fSk7Ci8vIyBzb3VyY2VNYXBwaW5nVVJMPXdvcmtlci5qcy5tYXAKCg==",null,!1);function loadAgent(i){var u=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");return{uint8ToBase64:function(t){var n,i,r,o=t.length%3,a="";for(n=0,r=t.length-o;n<r;n+=3)a+=function(t){return e[t>>18&63]+e[t>>12&63]+e[t>>6&63]+e[63&t]}(i=(t[n]<<16)+(t[n+1]<<8)+t[n+2]);switch(o){case 1:a=(a+=e[(i=t[t.length-1])>>2])+e[i<<4&63];break;case 2:a=(a=(a+=e[(i=(t[t.length-2]<<8)+t[t.length-1])>>10])+e[i>>4&63])+e[i<<2&63]}return a}}}(),Bt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==$parcel$global?$parcel$global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var o,t={exports:{}},r=(!function(h){!function(){var s="object"==typeof window?window:{},i=!s.JS_SHA1_NO_NODE_JS&&!1,e=(i&&(s=Bt),!s.JS_SHA1_NO_COMMON_JS&&h.exports),o="0123456789abcdef".split(""),n=[-0x80000000,8388608,32768,128],d=[24,16,8,0],r=["hex","array","digest","arrayBuffer"],t=[],a=function(e){return function(t){return new l(!0).update(t)[e]()}},u=function(){var e=a("hex");(e=i?c(e):e).create=function(){return new l},e.update=function(t){return e.create().update(t)};for(var t=0;t<r.length;++t){var n=r[t];e[n]=a(n)}return e},c=function(t){var n=eval("require('crypto')"),i=eval("require('buffer').Buffer"),e=function(e){if("string"==typeof e)return n.createHash("sha1").update(e,"utf8").digest("hex");if(e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(void 0===e.length)return t(e);return n.createHash("sha1").update(new i(e)).digest("hex")};return e};function l(e){e?(t[0]=t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0,this.blocks=t):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=0x67452301,this.h1=0xefcdab89,this.h2=0x98badcfe,this.h3=0x10325476,this.h4=0xc3d2e1f0,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}l.prototype.update=function(e){if(!this.finalized){for(var t,n,i="string"!=typeof e,r=0,o=(e=i&&e.constructor===s.ArrayBuffer?new Uint8Array(e):e).length||0,a=this.blocks;r<o;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),i)for(n=this.start;r<o&&n<64;++r)a[n>>2]|=e[r]<<d[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<d[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<d[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<d[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<d[3&n++],a[n>>2]|=(128|t>>12&63)<<d[3&n++]),a[n>>2]|=(128|t>>6&63)<<d[3&n++]),a[n>>2]|=(128|63&t)<<d[3&n++]);this.lastByteIndex=n,this.bytes+=n-this.start,64<=n?(this.block=a[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return 0xffffffff<this.bytes&&(this.hBytes+=this.bytes/0x100000000|0,this.bytes=this.bytes%0x100000000),this}},l.prototype.finalize=function(){var e,t;this.finalized||(this.finalized=!0,e=this.blocks,t=this.lastByteIndex,e[16]=this.block,e[t>>2]|=n[3&t],this.block=e[16],56<=t&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash())},l.prototype.hash=function(){for(var e,t=this.h0,n=this.h1,i=this.h2,r=this.h3,o=this.h4,a=this.blocks,s=16;s<80;++s)e=a[s-3]^a[s-8]^a[s-14]^a[s-16],a[s]=e<<1|e>>>31;for(s=0;s<20;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n&i|~n&r)+o+0x5a827999+a[s]|0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|~t&i)+r+0x5a827999+a[s+1]|0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|~o&n)+i+0x5a827999+a[s+2]|0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|~r&t)+n+0x5a827999+a[s+3]|0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|~i&o)+t+0x5a827999+a[s+4]|0,i=i<<30|i>>>2;for(;s<40;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n^i^r)+o+0x6ed9eba1+a[s]|0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r+0x6ed9eba1+a[s+1]|0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i+0x6ed9eba1+a[s+2]|0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n+0x6ed9eba1+a[s+3]|0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t+0x6ed9eba1+a[s+4]|0,i=i<<30|i>>>2;for(;s<60;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n&i|n&r|i&r)+o-0x70e44324+a[s]|0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|t&i|n&i)+r-0x70e44324+a[s+1]|0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|o&n|t&n)+i-0x70e44324+a[s+2]|0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|r&t|o&t)+n-0x70e44324+a[s+3]|0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|i&o|r&o)+t-0x70e44324+a[s+4]|0,i=i<<30|i>>>2;for(;s<80;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n^i^r)+o-0x359d3e2a+a[s]|0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r-0x359d3e2a+a[s+1]|0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i-0x359d3e2a+a[s+2]|0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n-0x359d3e2a+a[s+3]|0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t-0x359d3e2a+a[s+4]|0,i=i<<30|i>>>2;this.h0=this.h0+t|0,this.h1=this.h1+n|0,this.h2=this.h2+i|0,this.h3=this.h3+r|0,this.h4=this.h4+o|0},l.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4;return o[e>>28&15]+o[e>>24&15]+o[e>>20&15]+o[e>>16&15]+o[e>>12&15]+o[e>>8&15]+o[e>>4&15]+o[15&e]+o[t>>28&15]+o[t>>24&15]+o[t>>20&15]+o[t>>16&15]+o[t>>12&15]+o[t>>8&15]+o[t>>4&15]+o[15&t]+o[n>>28&15]+o[n>>24&15]+o[n>>20&15]+o[n>>16&15]+o[n>>12&15]+o[n>>8&15]+o[n>>4&15]+o[15&n]+o[i>>28&15]+o[i>>24&15]+o[i>>20&15]+o[i>>16&15]+o[i>>12&15]+o[i>>8&15]+o[i>>4&15]+o[15&i]+o[r>>28&15]+o[r>>24&15]+o[r>>20&15]+o[r>>16&15]+o[r>>12&15]+o[r>>8&15]+o[r>>4&15]+o[15&r]},l.prototype.toString=l.prototype.hex,l.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4;return[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,r>>24&255,r>>16&255,r>>8&255,255&r]},l.prototype.array=l.prototype.digest,l.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(20),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),e};var p=u();e?h.exports=p:s.sha1=p}()}(t),t.exports),R=e(r),a={createScriptURL:function(e){return e},createHTML:function(e){return e}};function Te(e){return o||(o=e.trustedTypesPolicy||(window.trustedTypes&&"function"==typeof window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("pendo",a):a),e.trustedTypesPolicy=o),o}var C,k="stagingServerHashes",O={};function N(e){return e.loadAsModule}function M(e){return C=(e=N(e)?{}:window).pendo=e.pendo||{}}function L(e){return"staging"===e.environmentName}function F(e){return!e.unminified}function P(e){return"extension"===e.installType}function G(e){return!P(e)&&!L(e)&&U(e)}function D(e,t){return!P(e)&&F(e)&&t}function B(e){void 0===e&&(e=[]);for(var t=/^https:\/\/[\w\-.]*cdn[\w\-.]*\.(pendo-dev\.com|pendo\.io)\/agent\/static\/([\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12}|PENDO_API_KEY)\/pendo\.js$/g,n=0;n<e.length;n++){var i=e[n];if(t.test(i.src))return i.src.replace(/\.js$/,"-staging.js")}}function W(e,t,n){return e=B(document.getElementsByTagName("script"))||e.stagingAgentUrl,n&&(n="unminified.js",t&&(n="staging-"+n),e=e&&e.replace(/staging\.js$/,n)),e}function U(e,t){if(L(e=e||he()))return!0;if(t=t||window.location,j(e)){for(var n=$(t.host),i=0,r=e[k].length;i<r;++i)if(e[k][i]===n)return!0}if(z(e))for(var o=0,a=e.stagingServers.length;o<a;++o){var s=e.stagingServers[o];if((s="string"==typeof s?RegExp("^"+s+"$"):s)instanceof RegExp&&s.test(t.host))return!0}return!1}function $(e){return u.uint8ToBase64(R.create().update(e).digest())}function j(e){return e&&e.stagingAgentUrl&&e[k]}function z(e){return e&&e.stagingAgentUrl&&e.stagingServers}var Z=["initialize","identify","updateOptions","pageLoad","track","clearSession"];function V(e,t,n){(e._q=e._q||[])["initialize"===t?"unshift":"push"]([].concat.apply([t],n))}function Y(e,t){t[e]=t[e]||function(){V(t,e,arguments)}}function H(e){if(!e._q)for(var t=Z,n=0,i=t.length;n<i;++n)Y(t[n],e)}function de(e,t,n){return!!(G(e)&&(e=W(e,!0,n)))&&(H(t),le(e,t),!0)}function ue(e,t,n){return!!(D(e,n)&&(e=W(e,!1,n)))&&(H(t),le(e,t),!0)}function ce(e,t,n){return de(e,t,n)||ue(e,t,n)}function le(e,t){var n=document.createElement("script"),t=(n.async=!0,n.src=Te(t).createScriptURL(e),document.getElementsByTagName("script")[0]);t&&t.parentNode?t.parentNode.insertBefore(n,t):(document.head||document.body).appendChild(n)}function pe(e){O=e}function he(){return O}function fe(){return void 0===i?{}:i}function ge(e){return he()[e]}var me=ve(window.setTimeout,window);function ve(e,t){return"function"==typeof e.bind?e.bind(t):e}var Ie,me=function(e){var t="setTimeout",n="__symbol__";return"undefined"!=typeof Zone&&Zone[n]instanceof Function&&(n=e[Zone[n](t)])instanceof Function?n:ve(e[t],e)}(window),Dt=me,ye={exports:{}},be=(!function(){ye.exports=function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof Bt&&Bt.global===Bt&&Bt||Function("return this")()||{},t=Array.prototype,n=Object.prototype,i="undefined"!=typeof Symbol?Symbol.prototype:null,r=t.push,o=t.slice,a=n.toString,s=n.hasOwnProperty,d="undefined"!=typeof ArrayBuffer,u="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),c=Array.isArray,l=Object.keys,p=Object.create,f=d&&ArrayBuffer.isView,h=isNaN,g=isFinite,m=!({toString:null}).propertyIsEnumerable("toString"),v=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],y=0x1fffffffffffff;function b(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),i=Array(n),r=0;r<n;r++)i[r]=arguments[r+t];switch(t){case 0:return e.call(this,i);case 1:return e.call(this,arguments[0],i);case 2:return e.call(this,arguments[0],arguments[1],i)}for(var o=Array(t+1),r=0;r<t;r++)o[r]=arguments[r];return o[t]=i,e.apply(this,o)}}function I(e){var t=typeof e;return"function"==t||"object"==t&&!!e}function w(e){return void 0===e}function C(e){return!0===e||!1===e||"[object Boolean]"===a.call(e)}function S(e){var t="[object "+e+"]";return function(e){return a.call(e)===t}}var x=S("String"),A=S("Number"),E=S("Date"),T=S("RegExp"),k=S("Error"),_=S("Symbol"),R=S("ArrayBuffer"),O=S("Function"),e=e.document&&e.document.childNodes,N=O="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof e?function(e){return"function"==typeof e}:O,e=S("Object"),M=u&&e(new DataView(new ArrayBuffer(8))),O="undefined"!=typeof Map&&e(new Map),u=S("DataView"),L=M?function(e){return null!=e&&N(e.getInt8)&&R(e.buffer)}:u,F=c||S("Array");function G(e,t){return null!=e&&s.call(e,t)}var P=S("Arguments"),D=(!function(){P(arguments)||(P=function(e){return G(e,"callee")})}(),P);function W(e){return A(e)&&h(e)}function B(e){return function(){return e}}function Z(e){return function(t){return"number"==typeof(t=e(t))&&0<=t&&t<=y}}function z(e){return function(t){return null==t?void 0:t[e]}}var U=z("byteLength"),j=Z(U),Y=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,V=d?function(e){return f?f(e)&&!L(e):j(e)&&Y.test(a.call(e))}:B(!1),H=z("length");function K(e,t){t=function(e){for(var t={},n=e.length,i=0;i<n;++i)t[e[i]]=!0;return{contains:function(e){return!0===t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var i=v.length,r=e.constructor,o=N(r)&&r.prototype||n,a="constructor";for(G(e,a)&&!t.contains(a)&&t.push(a);i--;)(a=v[i])in e&&e[a]!==o[a]&&!t.contains(a)&&t.push(a)}function X(e){if(!I(e))return[];if(l)return l(e);var t,n=[];for(t in e)G(e,t)&&n.push(t);return m&&K(e,n),n}function J(e,t){var n=X(t),i=n.length;if(null==e)return!i;for(var r=Object(e),o=0;o<i;o++){var a=n[o];if(t[a]!==r[a]||!(a in r))return!1}return!0}function q(e){return e instanceof q?e:this instanceof q?void(this._wrapped=e):new q(e)}function Q(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,U(e))}q.VERSION="1.13.6",q.prototype.valueOf=q.prototype.toJSON=q.prototype.value=function(){return this._wrapped},q.prototype.toString=function(){return String(this._wrapped)};var $="[object DataView]";function ee(e,t,n,r){var o;return e===t?0!==e||1/e==1/t:null!=e&&null!=t&&(e!=e?t!=t:("function"==(o=typeof e)||"object"==o||"object"==typeof t)&&function e(t,n,r,o){t instanceof q&&(t=t._wrapped),n instanceof q&&(n=n._wrapped);var s=a.call(t);if(s!==a.call(n))return!1;if(M&&"[object Object]"==s&&L(t)){if(!L(n))return!1;s=$}switch(s){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return i.valueOf.call(t)===i.valueOf.call(n);case"[object ArrayBuffer]":case $:return e(Q(t),Q(n),r,o)}if(!(s="[object Array]"===s)&&V(t)){var d=U(t);if(d!==U(n))return!1;if(t.buffer===n.buffer&&t.byteOffset===n.byteOffset)return!0;s=!0}if(!s){if("object"!=typeof t||"object"!=typeof n)return!1;var d=t.constructor,u=n.constructor;if(d!==u&&!(N(d)&&d instanceof d&&N(u)&&u instanceof u)&&"constructor"in t&&"constructor"in n)return!1}o=o||[];for(var c=(r=r||[]).length;c--;)if(r[c]===t)return o[c]===n;if(r.push(t),o.push(n),s){if((c=t.length)!==n.length)return!1;for(;c--;)if(!ee(t[c],n[c],r,o))return!1}else{var l,p=X(t);if(c=p.length,X(n).length!==c)return!1;for(;c--;)if(!G(n,l=p[c])||!ee(t[l],n[l],r,o))return!1}return r.pop(),o.pop(),!0}(e,t,n,r))}function et(e){if(!I(e))return[];var t,n=[];for(t in e)n.push(t);return m&&K(e,n),n}function en(e){var t=H(e);return function(n){if(null==n||H(et(n)))return!1;for(var i=0;i<t;i++)if(!N(n[e[i]]))return!1;return e!==er||!N(n[ei])}}var ei="forEach",e=["clear","delete"],u=["get","has","set"],c=e.concat(ei,u),er=e.concat(u),d=["add"].concat(e,ei,"has"),u=O?en(c):S("Map"),e=O?en(er):S("WeakMap"),c=O?en(d):S("Set"),O=S("WeakSet");function eo(e){for(var t=X(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function ea(e){for(var t={},n=X(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function es(e){var t,n=[];for(t in e)N(e[t])&&n.push(t);return n.sort()}function ed(e,t){return function(n){var i=arguments.length;if(t&&(n=Object(n)),!(i<2||null==n))for(var r=1;r<i;r++)for(var o=arguments[r],a=e(o),s=a.length,d=0;d<s;d++){var u=a[d];t&&void 0!==n[u]||(n[u]=o[u])}return n}}var eu=ed(et),ec=ed(X),el=ed(et,!0);function ep(e){var t;return I(e)?p?p(e):((t=function(){}).prototype=e,e=new t,t.prototype=null,e):{}}function ef(e){return F(e)?e:[e]}function eh(e){return q.toPath(e)}function eg(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function em(e,t,n){return w(e=eg(e,eh(t)))?n:e}function ev(e){return e}function ey(e){return e=ec({},e),function(t){return J(t,e)}}function eb(e){return e=eh(e),function(t){return eg(t,e)}}function eI(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,i,r){return e.call(t,n,i,r)};case 4:return function(n,i,r,o){return e.call(t,n,i,r,o)}}return function(){return e.apply(t,arguments)}}function ew(e,t,n){return null==e?ev:N(e)?eI(e,t,n):(I(e)&&!F(e)?ey:eb)(e)}function eC(e,t){return ew(e,t,1/0)}function eS(e,t,n){return q.iteratee!==eC?q.iteratee(e,t):ew(e,t,n)}function ex(){}function eA(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}q.toPath=ef,q.iteratee=eC;var eE=Date.now||function(){return(new Date).getTime()};function eT(e){var t=function(t){return e[t]},n="(?:"+X(e).join("|")+")",i=RegExp(n),r=RegExp(n,"g");return function(e){return i.test(e=null==e?"":""+e)?e.replace(r,t):e}}var d={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},ek=eT(d),d=eT(ea(d)),e_=q.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},eR=/(.)^/,eO={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},eN=/\\|'|\r|\n|\u2028|\u2029/g;function eM(e){return"\\"+eO[e]}var eL=/^\s*(\w|\$)+\s*$/,eF=0;function eG(e,t,n,i,r){return i instanceof t?(i=ep(e.prototype),I(t=e.apply(i,r))?t:i):e.apply(n,r)}var eP=b(function(e,t){var n=eP.placeholder,i=function(){for(var r=0,o=t.length,a=Array(o),s=0;s<o;s++)a[s]=t[s]===n?arguments[r++]:t[s];for(;r<arguments.length;)a.push(arguments[r++]);return eG(e,i,this,this,a)};return i}),eD=(eP.placeholder=q,b(function(e,t,n){var i;if(N(e))return i=b(function(r){return eG(e,i,t,this,n.concat(r))});throw TypeError("Bind must be called on a function")})),eW=Z(H);function eB(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=1/0;for(var r=i.length,o=0,a=H(e);o<a;o++){var s=e[o];if(eW(s)&&(F(s)||D(s)))if(1<t)eB(s,t-1,n,i),r=i.length;else for(var d=0,u=s.length;d<u;)i[r++]=s[d++];else n||(i[r++]=s)}return i}var eZ=b(function(e,t){var n=(t=eB(t,!1,!1)).length;if(n<1)throw Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=eD(e[i],e)}return e}),ez=b(function(e,t,n){return Dt(function(){return e.apply(null,n)},t)}),eU=eP(ez,q,1);function ej(e){return function(){return!e.apply(this,arguments)}}function eY(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var eV=eP(eY,2);function eH(e,t,n){t=eS(t,n);for(var i,r=X(e),o=0,a=r.length;o<a;o++)if(t(e[i=r[o]],i,e))return i}function eK(e){return function(t,n,i){n=eS(n,i);for(var r=H(t),o=0<e?0:r-1;0<=o&&o<r;o+=e)if(n(t[o],o,t))return o;return -1}}var eX=eK(1),eJ=eK(-1);function eq(e,t,n,i){for(var r=(n=eS(n,i,1))(t),o=0,a=H(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<r?o=s+1:a=s}return o}function eQ(e,t,n){return function(i,r,a){var s=0,d=H(i);if("number"==typeof a)0<e?s=0<=a?a:Math.max(a+d,s):d=0<=a?Math.min(a+1,d):a+d+1;else if(n&&a&&d)return i[a=n(i,r)]===r?a:-1;if(r!=r)return 0<=(a=t(o.call(i,s,d),W))?a+s:-1;for(a=0<e?s:d-1;0<=a&&a<d;a+=e)if(i[a]===r)return a;return -1}}var e$=eQ(1,eX,eq),e0=eQ(-1,eJ);function e1(e,t,n){if(void 0!==(t=(eW(e)?eX:eH)(e,t,n))&&-1!==t)return e[t]}function e2(e,t,n){if(t=eI(t,n),eW(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else for(var i=X(e),r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e);return e}function e5(e,t,n){t=eS(t,n);for(var i=!eW(e)&&X(e),r=(i||e).length,o=Array(r),a=0;a<r;a++){var s=i?i[a]:a;o[a]=t(e[s],s,e)}return o}function e3(e){return function(t,n,i,r){var o=3<=arguments.length,a=t,s=eI(n,r,4),d=i,u=!eW(a)&&X(a),c=(u||a).length,l=0<e?0:c-1;for(o||(d=a[u?u[l]:l],l+=e);0<=l&&l<c;l+=e){var p=u?u[l]:l;d=s(d,a[p],p,a)}return d}}var e9=e3(1),e6=e3(-1);function e4(e,t,n){var i=[];return t=eS(t,n),e2(e,function(e,n,r){t(e,n,r)&&i.push(e)}),i}function e7(e,t,n){t=eS(t,n);for(var i=!eW(e)&&X(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(!t(e[a],a,e))return!1}return!0}function e8(e,t,n){t=eS(t,n);for(var i=!eW(e)&&X(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(t(e[a],a,e))return!0}return!1}function te(e,t,n,i){return eW(e)||(e=eo(e)),0<=e$(e,t,n="number"!=typeof n||i?0:n)}var tt=b(function(e,t,n){var i,r;return N(t)?r=t:(i=(t=eh(t)).slice(0,-1),t=t[t.length-1]),e5(e,function(e){var o=r;if(!o){if(null==(e=i&&i.length?eg(e,i):e))return;o=e[t]}return null==o?o:o.apply(e,n)})});function tn(e,t){return e5(e,eb(t))}function ti(e,t,n){var i,r,o=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=eW(e)?e:eo(e)).length;s<d;s++)null!=(i=e[s])&&o<i&&(o=i);else t=eS(t,n),e2(e,function(e,n,i){r=t(e,n,i),(a<r||r===-1/0&&o===-1/0)&&(o=e,a=r)});return o}var tr=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function to(e){return e?F(e)?o.call(e):x(e)?e.match(tr):eW(e)?e5(e,ev):eo(e):[]}function ta(e,t,n){if(null==t||n)return(e=eW(e)?e:eo(e))[eA(e.length-1)];for(var i=to(e),n=H(i),r=(t=Math.max(Math.min(t,n),0),n-1),o=0;o<t;o++){var a=eA(o,r),s=i[o];i[o]=i[a],i[a]=s}return i.slice(0,t)}function ts(e,t){return function(n,i,r){var o=t?[[],[]]:{};return i=eS(i,r),e2(n,function(t,r){r=i(t,r,n),e(o,t,r)}),o}}var td=ts(function(e,t,n){G(e,n)?e[n].push(t):e[n]=[t]}),tu=ts(function(e,t,n){e[n]=t}),tc=ts(function(e,t,n){G(e,n)?e[n]++:e[n]=1}),tl=ts(function(e,t,n){e[+!n].push(t)},!0);function tp(e,t,n){return t in n}var tf=b(function(e,t){var n={},i=t[0];if(null!=e){N(i)?(1<t.length&&(i=eI(i,t[1])),t=et(e)):(i=tp,t=eB(t,!1,!1),e=Object(e));for(var r=0,o=t.length;r<o;r++){var a=t[r],s=e[a];i(s,a,e)&&(n[a]=s)}}return n}),th=b(function(e,t){var n,i=t[0];return N(i)?(i=ej(i),1<t.length&&(n=t[1])):(t=e5(eB(t,!1,!1),String),i=function(e,n){return!te(t,n)}),tf(e,i,n)});function tg(e,t,n){return o.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function tm(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:tg(e,e.length-t)}function tv(e,t,n){return o.call(e,null==t||n?1:t)}var ty=b(function(e,t){return t=eB(t,!0,!0),e4(e,function(e){return!te(t,e)})}),tb=b(function(e,t){return ty(e,t)});function tI(e,t,n,i){C(t)||(i=n,n=t,t=!1),null!=n&&(n=eS(n,i));for(var r=[],o=[],a=0,s=H(e);a<s;a++){var d=e[a],u=n?n(d,a,e):d;t&&!n?(a&&o===u||r.push(d),o=u):n?te(o,u)||(o.push(u),r.push(d)):te(r,d)||r.push(d)}return r}var tw=b(function(e){return tI(eB(e,!0,!0))});function tC(e){for(var t=e&&ti(e,H).length||0,n=Array(t),i=0;i<t;i++)n[i]=tn(e,i);return n}var tS=b(tC);function tx(e,t){return e._chain?q(t).chain():t}function tA(e){return e2(es(e),function(t){var n=q[t]=e[t];q.prototype[t]=function(){var e=[this._wrapped];return r.apply(e,arguments),tx(this,n.apply(q,e))}}),q}e2(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var n=t[e];q.prototype[e]=function(){var t=this._wrapped;return null!=t&&(n.apply(t,arguments),"shift"!==e&&"splice"!==e||0!==t.length||delete t[0]),tx(this,t)}}),e2(["concat","join","slice"],function(e){var n=t[e];q.prototype[e]=function(){var e=this._wrapped;return tx(this,e=null!=e?n.apply(e,arguments):e)}});var tE=tA({__proto__:null,VERSION:"1.13.6",restArguments:b,isObject:I,isNull:function(e){return null===e},isUndefined:w,isBoolean:C,isElement:function(e){return!(!e||1!==e.nodeType)},isString:x,isNumber:A,isDate:E,isRegExp:T,isError:k,isSymbol:_,isArrayBuffer:R,isDataView:L,isArray:F,isFunction:N,isArguments:D,isFinite:function(e){return!_(e)&&g(e)&&!isNaN(parseFloat(e))},isNaN:W,isTypedArray:V,isEmpty:function(e){var t;return null==e||("number"==typeof(t=H(e))&&(F(e)||x(e)||D(e))?0===t:0===H(X(e)))},isMatch:J,isEqual:function(e,t){return ee(e,t)},isMap:u,isWeakMap:e,isSet:c,isWeakSet:O,keys:X,allKeys:et,values:eo,pairs:function(e){for(var t=X(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i},invert:ea,functions:es,methods:es,extend:eu,extendOwn:ec,assign:ec,defaults:el,create:function(e,t){return e=ep(e),t&&ec(e,t),e},clone:function(e){return I(e)?F(e)?e.slice():eu({},e):e},tap:function(e,t){return t(e),e},get:em,has:function(e,t){for(var n=(t=eh(t)).length,i=0;i<n;i++){var r=t[i];if(!G(e,r))return!1;e=e[r]}return!!n},mapObject:function(e,t,n){t=eS(t,n);for(var i=X(e),r=i.length,o={},a=0;a<r;a++){var s=i[a];o[s]=t(e[s],s,e)}return o},identity:ev,constant:B,noop:ex,toPath:ef,property:eb,propertyOf:function(e){return null==e?ex:function(t){return em(e,t)}},matcher:ey,matches:ey,times:function(e,t,n){var i=Array(Math.max(0,e));t=eI(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:eA,now:eE,escape:ek,unescape:d,templateSettings:e_,template:function(e,t,n){var n=RegExp([((t=el({},t=!t&&n?n:t,q.templateSettings)).escape||eR).source,(t.interpolate||eR).source,(t.evaluate||eR).source].join("|")+"|$","g"),i=0,r="__p+='";if(e.replace(n,function(t,n,o,a,s){return r+=e.slice(i,s).replace(eN,eM),i=s+t.length,n?r+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":o?r+="'+\n((__t=("+o+"))==null?'':__t)+\n'":a&&(r+="';\n"+a+"\n__p+='"),t}),r+="';\n",n=t.variable){if(!eL.test(n))throw Error("variable is not a bare identifier: "+n)}else r="with(obj||{}){\n"+r+"}\n",n="obj";r="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+r+"return __p;\n";try{throw Error("Function constructor not supported")}catch(e){throw e.source=r,e}return(t=function(e){return(void 0).call(this,e,q)}).source="function("+n+"){\n"+r+"}",t},result:function(e,t,n){var i=(t=eh(t)).length;if(!i)return N(n)?n.call(e):n;for(var r=0;r<i;r++){var o=null==e?void 0:e[t[r]];void 0===o&&(o=n,r=i),e=N(o)?o.call(e):o}return e},uniqueId:function(e){var t=++eF+"";return e?e+t:t},chain:function(e){return(e=q(e))._chain=!0,e},iteratee:eC,partial:eP,bind:eD,bindAll:eZ,memoize:function(e,t){var n=function(i){var r=n.cache,o=""+(t?t.apply(this,arguments):i);return G(r,o)||(r[o]=e.apply(this,arguments)),r[o]};return n.cache={},n},delay:ez,defer:eU,throttle:function(e,t,n){var i,r,o,a,s=0,d=(n=n||{},function(){s=!1===n.leading?0:eE(),i=null,a=e.apply(r,o),i||(r=o=null)}),u=function(){var u=eE(),c=(s||!1!==n.leading||(s=u),t-(u-s));return r=this,o=arguments,c<=0||t<c?(i&&(clearTimeout(i),i=null),s=u,a=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=Dt(d,c)),a};return u.cancel=function(){clearTimeout(i),s=0,i=r=o=null},u},debounce:function(e,t,n){var i,r,o,a,s,d=function(){var u=eE()-r;u<t?i=Dt(d,t-u):(i=null,n||(a=e.apply(s,o)),i||(o=s=null))},u=b(function(u){return s=this,o=u,r=eE(),i||(i=Dt(d,t),n&&(a=e.apply(s,o))),a});return u.cancel=function(){clearTimeout(i),i=o=s=null},u},wrap:function(e,t){return eP(t,e)},negate:ej,compose:function(){var e=arguments,t=e.length-1;return function(){for(var n=t,i=e[t].apply(this,arguments);n--;)i=e[n].call(this,i);return i}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:eY,once:eV,findKey:eH,findIndex:eX,findLastIndex:eJ,sortedIndex:eq,indexOf:e$,lastIndexOf:e0,find:e1,detect:e1,findWhere:function(e,t){return e1(e,ey(t))},each:e2,forEach:e2,map:e5,collect:e5,reduce:e9,foldl:e9,inject:e9,reduceRight:e6,foldr:e6,filter:e4,select:e4,reject:function(e,t,n){return e4(e,ej(eS(t)),n)},every:e7,all:e7,some:e8,any:e8,contains:te,includes:te,include:te,invoke:tt,pluck:tn,where:function(e,t){return e4(e,ey(t))},max:ti,min:function(e,t,n){var i,r,o=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=eW(e)?e:eo(e)).length;s<d;s++)null!=(i=e[s])&&i<o&&(o=i);else t=eS(t,n),e2(e,function(e,n,i){((r=t(e,n,i))<a||r===1/0&&o===1/0)&&(o=e,a=r)});return o},shuffle:function(e){return ta(e,1/0)},sample:ta,sortBy:function(e,t,n){var i=0;return t=eS(t,n),tn(e5(e,function(e,n,r){return{value:e,index:i++,criteria:t(e,n,r)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return -1}return e.index-t.index}),"value")},groupBy:td,indexBy:tu,countBy:tc,partition:tl,toArray:to,size:function(e){return null==e?0:(eW(e)?e:X(e)).length},pick:tf,omit:th,first:tm,head:tm,take:tm,initial:tg,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:tv(e,Math.max(0,e.length-t))},rest:tv,tail:tv,drop:tv,compact:function(e){return e4(e,Boolean)},flatten:function(e,t){return eB(e,t,!1)},without:tb,uniq:tI,unique:tI,union:tw,intersection:function(e){for(var t=[],n=arguments.length,i=0,r=H(e);i<r;i++){var o=e[i];if(!te(t,o)){for(var a=1;a<n&&te(arguments[a],o);a++);a===n&&t.push(o)}}return t},difference:ty,unzip:tC,transpose:tC,zip:tS,object:function(e,t){for(var n={},i=0,r=H(e);i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},range:function(e,t,n){null==t&&(t=e||0,e=0),n=n||(t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),o=0;o<i;o++,e+=n)r[o]=e;return r},chunk:function(e,t){if(null==t||t<1)return[];for(var n=[],i=0,r=e.length;i<r;)n.push(o.call(e,i,i+=t));return n},mixin:tA,default:q}),tT=tE.toPath;return tE.mixin({toPath:function(e){return tE.isString(e)?e.split("."):tT(e)}}),tE._=tE}()}(),ye.exports),K=e(be);function S(e){return null!=e}function we(e){return K.isFunction(e)||K.isRegExp(e)?e:K.isArray(e)?K.map(e,we):K.isObject(e)?K.reduce(e,function(e,t,n){return e[n]=we(t),e},{}):e}var m=function(){var e=K.all,t=K.each,n=K.filter,i=K.first,r=K.find,o=K.map,a=K.pluck,s="snippet",d="pendoconfig",u="global",c="default",l={};function p(e,t,n,i){void 0===t&&(t=[d]),e&&!l[e]&&(n={name:e,defaultValue:n,supportedSources:t},null!=i&&(n.useAnySource=i),l[e]=n)}p("additionalApiKeys",[d,s]),p("allowedOriginServers"),p("allowMixedApiKeyFrames",[s,d],!0),p("annotateUrl",[s]),p("apiKey",[d,s]),p("assetHost",[s,d]),p("autoFrameInstall",[s,d],!1),p("blockAgentMetadata",[d],!1),p("contentHost",[s,d]),p("cookieDomain",[s,d]),p("dataHost",[s,d]),p("disableAutoInitialize"),p("disableCookies",[s,d]),p("disablePendo",[s,d],!1),p("disablePersistence",[s,d]),p("enableSignedMetadata",[d],!1),p("frameIdentitySync",[s,d],!1),p("frameIdentityTopDownOnly",[s,d],!0),p("forceAnonymous",[s,d],!1),p("identityStorageLifetime",[s,d]),p("identityStorageSuffix",[s,d]),p("ignoreHashRouting",[s,d]),p("initializeImmediately",[s,d],!1),p("installType"),p("localStorageOnly",[s,d]),p("location.pushState",[s,d],!0),p("maxCookieTTLDays",[s,d],1/0),p("observeShadowRoots",[s,d],!1),p("pendoCore",[d],!0),p("preferBroadcastChannel",[s,d],!1),p("preferMutationObserver",[s,d],!1),p("preventCookieRefresh"),p("preventUnloadListener",[s,d],!1),p("promotedAgentMetadataConfigurations",[d]),p("queryStringWhitelist",[s]),p("requireSignedMetadata",[d],!1),p("sanitizeUrl",[s]),p("selfHosted"),p("selfHostedAgentUrl",[s,d]),p("sendEventsWithPostOnly",[s,d],!1),p("siblingSelectors"),p("dropAnonymous"),p("allowedText",[s,d],[]),p("analytics.excludeEvents",[s,d],[]),p("enableDebugEvents",[s,d]),p("freeNPSData"),p("eventPropertyConfigurations"),p("eventPropertyMatchParents",[s,d],!0),p("excludeAllText",[d,s],!1,!0),p("excludeNonGuideAnalytics",[s,d],!1),p("htmlAttributeBlacklist"),p("htmlAttributes"),p("interceptElementRemoval",[s,d],!1),p("interceptPreventDefault",[s,d],!0),p("interceptStopPropagation",[s,d],!0),p("syntheticClicks.elementRemoval",[s,d],!1),p("syntheticClicks.targetChanged",[s,d],!0),p("xhrWhitelist"),p("appAutoOrdering",[s,d]),p("cacheGuides",[s,d],!1),p("cacheGuidesTimeout",[d],6e5),p("delayGuides",[s]),p("disableDesigner",[d,s],!1),p("disableDesignerKeyboardShortcut",[d],!1),p("disableGlobalCSS",[s,d],!1),p("disableGuidePseudoStyles",[s,d],!1),p("disableGuides",[s]),p("disablePrefetch",[s,d]),p("enableDesignerKeyboardShortcut",[s]),p("enableGuideTimeout",[d,s],!1),p("guideCssAssetPath"),p("guideSeenTimeoutLength",[d,s],1e4),p("guideTimeout",[s]),p("guideValidation",[s,d],!1),p("guides.attachPoint",[s]),p("guides.delay",[s]),p("guides.disabled",[s]),p("guides.ejectOnTimeout",[s,d],!1),p("guides.globalScripts",[s,d],[]),p("guides.timeout",[s]),p("guides.tooltip.arrowSize",[s]),p("inlineStyleNonce",[s]),p("leaderKey",[s,d],[]),p("preventCodeInjection",[d,s,u],!1),p("previewModeAssetPath"),p("storage.allowKeys",[s],"*"),p("disableFeedback",[s]),p("disableFeedbackAutoInit"),p("feedbackSettings",[d],{}),p("pendoFeedback",[d],!1),p("crossAppGuideStorageSuffix",[s,d]),p("adoptHost"),p("adoptAnalyticsForwarding"),p("agentDebuggerPluginLoader"),p("allowPartnerAnalyticsForwarding",[s],!1),p("adoptPrioritizeAdoptGuides",[d],!1),p("designerAgentPluginsLoader",[d,s]),p("trainingPartner"),p("errorClickLogging",[d],!1),p("forceParentDesigner",[s]),p("enableAllEmbeddedGuideEvents",[d],!1);var f={};function h(e){return l[e]||{name:e}}function g(e,t){if(t)return t=t(),S(e=K.get(t.lookup,(t=e,K.get(t,"key")||K.get(t,"name"))))?e:void 0}function m(e,t){var n=g(e,f[t]);return new b(e.name,n,t)}function v(e,t){return n(o(t=t||K.get(e,"supportedSources",[s,d,u]),K.partial(m,e)),function(e){return S(e.value)})}function y(e,t,n){var o=h(e),e=new b(e,t=t||K.get(o,"defaultValue",null),c),n=v(o,n);return o.useAnySource&&S(t)?r(n,function(e){return e.value!==t})||e:i(n)||e}function b(e,t,n){this.name=e,this.value=t,this.source=n}function I(){var i=[];return t(l,function(t){var r;i.push({name:t.name,active:y(t.name),conflicts:(r=n(v(t=h(t=t.name)),function(e){return e.source!==c})).length<2||e(a(r,"value"),function(e){return e===r[0].value})?[]:r})}),i}return f[s]=function(){return{lookup:Ie||window.pendo_options,name:s}},f[d]=function(){return{lookup:he(),name:d}},f[u]=function(){return{lookup:C,name:u}},b.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"},{audit:I,get:function(e,t){return y(e,t).value},getLocalConfig:function(e,t){return arguments.length?y(e,t,[s]).value:we(Ie)},getHostedConfig:function(e,t){return y(e,t,[d]).value},addOption:p,setLocalConfig:function(e){Ie=e},options:function(){return a(l,"name")},sources:{SNIPPET_SRC:s,PENDO_CONFIG_SRC:d,GLOBAL_SRC:u,DEFAULT_SRC:c},validate:function(e){e.groupCollapsed("Validate Config options"),t(I(),function(n){e.log(String(n.active)),0<n.conflicts.length&&(e.warn("Multiple sources found with values for "+n.name),t(n.conflicts,function(t){e.warn(String(t))}))}),e.groupEnd()}}}(),Ce="prod",Se="extension",Ae="native";function _e(){return m.get("installType")||Ae}function Ee(e){return e===Ce?"pendo-static":xe(e)}function xe(e){var t;return e===Ce?"pendo-io-static":"prod-jp"===e?"pendo-jp-prod-static":"pendo-"+((t=/^prod-(.+)$/.exec(e))&&1<t.length?t[1]:e)+"-static"}function Re(e){return/native/.test(e)}var d,Oe,ke=function(e,t){return e=e||10,(t=!isNaN(Oe)&&(!t||Oe<t))&&d<e};function Ne(e){return parseInt(e,10)}var Me=function(e){return K.isString(e)?e.toLowerCase():e};function Le(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e}function Fe(){return(window.navigator||{}).userAgent}var je,He,Pe=function(e){var t=Ne((/msie (\d+)/.exec(Me(e))||[])[1]);return isNaN(t)?Ne((/trident\/.*; rv:(\d+)/.exec(Me(e))||[])[1]):t},d=Pe(Fe()),Ge=function(e,t){return e=isNaN(e=Ne((/trident\/(\d+)/.exec(Me(e))||[])[1]))&&7==t?3:e},Oe=Ge(Fe(),d),De={},Be=Ne((/android (\d+)/.exec(Me(Fe()))||[])[1]),We=/Boxee/i.test(Fe()),Ue=window.document||{},$e=Ue.documentMode,ze=/^(Moz|webkit|O|ms)(?=[A-Z])/,Ze=Ue.body&&Ue.body.style,Ve=!1,Ye=!1;if(Ze){for(var Ke in Ze)if(He=ze.exec(Ke)){je=(je=He[0]).substr(0,1).toUpperCase()+je.substr(1);break}je=je||"WebkitOpacity"in Ze&&"webkit",Ve=!!("transition"in Ze||je+"Transition"in Ze),Ye=!!("animation"in Ze||je+"Animation"in Ze),!Be||Ve&&Ye||(Ve=K.isString(Ue.body.style.webkitTransition),Ye=K.isString(Ue.body.style.webkitAnimation))}var Xe=K.memoize(function(){var e=window.history&&window.history.pushState&&window.history.replaceState,t=window.history&&K.isFunction(Object.isFrozen)&&Object.isFrozen(window.history),n=window.history&&K.isFunction(Object.getOwnPropertyDescriptors)&&Object.getOwnPropertyDescriptors(window.history),n=n&&K.get(n,"pushState.writable",!0)&&K.get(n,"replaceState.writable",!0),i=!(Be<4),r=_e()===Se;return!(!e||t||!n||!i||We||r)});function Je(){var e="onhashchange"in window,t=!$e||7<$e,n=_e()===Se;return!(!e||!t||n)}function qe(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Fe())}var l={supportsHistoryApi:Xe,supportsHashChange:Je,hasEvent:function(e){var t;return("input"!=e||9!=d)&&(K.isUndefined(De[e])&&(t=Ue.createElement("div"),De[e]="on"+e in t),De[e])},vendorPrefix:je,transitions:Ve,animations:Ye,android:Be,msie:d,msieDocumentMode:$e,safari:/apple/i.test(navigator.vendor),sri:"integrity"in document.createElement("script"),addEventListener:K.isFunction(window.addEventListener),MutationObserver:Re(window.MutationObserver),isMinimumIEVersion:Le,isMobileUserAgent:K.memoize(qe)},Qe=function(){return!isNaN(d)&&11!=d&&"CSS1Compat"!==document.compatMode},et=function(e,t){var n,i=e.height,r=e.width;return"top"==e.arrowPosition||"bottom"==e.arrowPosition?(n=0,"top"==e.arrowPosition?(e.top=t.top+t.height,n=-1,e.arrow.top=3,d<=9&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(i+C.TOOLTIP_ARROW_SIZE),e.arrow.top=i-C.TOOLTIP_ARROW_SIZE,10==d?e.arrow.top--:d<=9&&(e.arrow.top+=4),n=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(10+2*C.TOOLTIP_ARROW_SIZE),e.arrow.left=10+C.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-r+t.width/2+(10+2*C.TOOLTIP_ARROW_SIZE),e.arrow.left=r-3*C.TOOLTIP_ARROW_SIZE-10):(e.left=t.left+t.width/2-r/2,e.arrow.left=r/2-C.TOOLTIP_ARROW_SIZE),e.arrow.border.top=e.arrow.top+n,e.arrow.border.left=e.arrow.left):("left"==e.arrow.hbias?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left-1):"right"==e.arrow.hbias&&(e.left=Math.max(0,t.left-r-C.TOOLTIP_ARROW_SIZE),e.arrow.left=r-C.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=5,e.arrow.border.left=e.arrow.left+1),e.top=t.top+t.height/2-i/2,e.arrow.top=i/2-C.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e},tt="",nt="",it="",rt="",ot="",at="2.271.0_",st="2.271.0",dt="xhr",ut=function(){return Qe()?at+"+quirksmode":at},ct=function(){tt=ge("env")||tt,nt=ge("server")||nt,it=ge("assetHost")||it,rt=ge("assetPath")||rt,ot=ge("designerEnv")||ot,at=st+"_"+(lt()?tt+"_ext":tt)};function lt(){return(ge("installType")||fe().installType)===Se}function pt(){return -1!==tt.indexOf("prod")}function ht(e,t){return!/prod/.test(e)||U(t)}var ft=/^\s+|\s+$/g,gt=String.prototype.trim;function mt(e){for(var t=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||57344<=i?t.push(224|i>>12,128|i>>6&63,128|63&i):(n++,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return t}var gt=gt||function(){return this.replace(ft,"")},vt={exports:{}},yt=(!(function(){var e=void 0,t=!0,n=this;function i(t,i){var r,o=t.split("."),a=n;for((o[0]in a)||!a.execScript||a.execScript("var "+o[0]);o.length&&(r=o.shift());)o.length||i===e?a=a[r]||(a[r]={}):a[r]=i}var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function o(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(r?Uint8Array:Array)?e:new(r?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&a(this)}function a(e){var t,n=e.buffer,i=n.length,o=new(r?Uint8Array:Array)(i<<1);if(r)o.set(n);else for(t=0;t<i;++t)o[t]=n[t];return e.buffer=o}o.prototype.b=function(e,t,n){var i,r=this.buffer,o=this.index,s=this.e,d=r[o];if(n&&1<t&&(e=8<t?(p[255&e]<<24|p[e>>>8&255]<<16|p[e>>>16&255]<<8|p[e>>>24&255])>>32-t:p[e]>>8-t),t+s<8)d=d<<t|e,s+=t;else for(i=0;i<t;++i)d=d<<1|e>>t-i-1&1,8==++s&&(s=0,r[o++]=p[d],d=0,o===r.length)&&(r=a(this));r[o]=d,this.buffer=r,this.e=s,this.index=o},o.prototype.finish=function(){var e=this.buffer,t=this.index;return 0<this.e&&(e[t]<<=8-this.e,e[t]=p[e[t]],t++),r?e.subarray(0,t):(e.length=t,e)};for(var s=new(r?Uint8Array:Array)(256),d=0;d<256;++d){for(var u=l=d,c=7,l=l>>>1;l;l>>>=1)u=u<<1|1&l,--c;s[d]=(u<<c&255)>>>0}var p=s;function f(e){this.buffer=new(r?Uint16Array:Array)(2*e),this.length=0}function h(e,t){this.d=g,this.i=0,this.input=r&&e instanceof Array?new Uint8Array(e):e,this.c=0,t&&(t.lazy&&(this.i=t.lazy),"number"==typeof t.compressionType&&(this.d=t.compressionType),t.outputBuffer&&(this.a=r&&t.outputBuffer instanceof Array?new Uint8Array(t.outputBuffer):t.outputBuffer),"number"==typeof t.outputIndex)&&(this.c=t.outputIndex),this.a||(this.a=new(r?Uint8Array:Array)(32768))}f.prototype.getParent=function(e){return 2*((e-2)/4|0)},f.prototype.push=function(e,t){var n,i,r=this.buffer,o=this.length;for(r[this.length++]=t,r[this.length++]=e;0<o&&(n=this.getParent(o),r[o]>r[n]);)i=r[o],r[o]=r[n],r[n]=i,i=r[o+1],r[o+1]=r[n+1],r[n+1]=i,o=n;return this.length},f.prototype.pop=function(){var e,t,n,i=this.buffer,r=i[0],o=i[1];for(this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],n=0;!((t=2*n+2)>=this.length)&&(t+2<this.length&&i[t+2]>i[t]&&(t+=2),i[t]>i[n]);)e=i[n],i[n]=i[t],i[t]=e,e=i[n+1],i[n+1]=i[t+1],i[t+1]=e,n=t;return{index:o,value:r,length:this.length}};for(var g=2,m={NONE:0,h:1,g:g,n:3},v=[],y=0;y<288;y++)switch(t){case y<=143:v.push([y+48,8]);break;case y<=255:v.push([y-144+400,9]);break;case y<=279:v.push([y-256,7]);break;case y<=287:v.push([y-280+192,8]);break;default:throw"invalid literal: "+y}function b(e,t){this.length=e,this.k=t}h.prototype.f=function(){var n,i,a,s=this.input;switch(this.d){case 0:for(i=0,a=s.length;i<a;){var d,u,c=l=r?s.subarray(i,i+65535):s.slice(i,i+65535),l=(i+=l.length)===a,p=e,f=this.a,h=this.c;if(r){for(f=new Uint8Array(this.a.buffer);f.length<=h+c.length+5;)f=new Uint8Array(f.length<<1);f.set(this.a)}if(f[h++]=0|!!l,d=65536+~(l=c.length)&65535,f[h++]=255&l,f[h++]=l>>>8&255,f[h++]=255&d,f[h++]=d>>>8&255,r)f.set(c,h),h+=c.length,f=f.subarray(0,h);else{for(p=0,u=c.length;p<u;++p)f[h++]=c[p];f.length=h}this.c=h,this.a=f}break;case 1:for(var m,y=new o(r?new Uint8Array(this.a.buffer):this.a,this.c),b=(y.b(1,1,t),y.b(1,2,t),C(this,s)),I=0,w=b.length;I<w;I++)if(m=b[I],o.prototype.b.apply(y,v[m]),256<m)y.b(b[++I],b[++I],t),y.b(b[++I],5),y.b(b[++I],b[++I],t);else if(256===m)break;this.a=y.finish(),this.c=this.a.length;break;case g:var A,E,T,k,_,R,O,N,M,L,F,G,P=new o(r?new Uint8Array(this.a.buffer):this.a,this.c),D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],W=Array(19),B=g;for(P.b(1,1,t),P.b(B,2,t),A=C(this,s),B=x(_=S(this.m,15)),ee=x(R=S(this.l,7)),E=286;257<E&&0===_[E-1];E--);for(T=30;1<T&&0===R[T-1];T--);for(var Z,z,U,j,Y,V=E,H=T,K=new(r?Uint32Array:Array)(V+H),X=new(r?Uint32Array:Array)(316),J=new(r?Uint8Array:Array)(19),q=Z=0;q<V;q++)K[Z++]=_[q];for(q=0;q<H;q++)K[Z++]=R[q];if(!r)for(q=0,U=J.length;q<U;++q)J[q]=0;for(q=j=0,U=K.length;q<U;q+=Z){for(Z=1;q+Z<U&&K[q+Z]===K[q];++Z);if(z=Z,0===K[q])if(z<3)for(;0<z--;)J[X[j++]=0]++;else for(;0<z;)(Y=z-3<(Y=z<138?z:138)&&Y<z?z-3:Y)<=10?(X[j++]=17,X[j++]=Y-3,J[17]++):(X[j++]=18,X[j++]=Y-11,J[18]++),z-=Y;else if(X[j++]=K[q],J[K[q]]++,--z<3)for(;0<z--;)X[j++]=K[q],J[K[q]]++;else for(;0<z;)z-3<(Y=z<6?z:6)&&Y<z&&(Y=z-3),X[j++]=16,X[j++]=Y-3,J[16]++,z-=Y}for(n=r?X.subarray(0,j):X.slice(0,j),O=S(J,7),F=0;F<19;F++)W[F]=O[D[F]];for(k=19;4<k&&0===W[k-1];k--);for(N=x(O),P.b(E-257,5,t),P.b(T-1,5,t),P.b(k-4,4,t),F=0;F<k;F++)P.b(W[F],3,t);for(F=0,G=n.length;F<G;F++)if(M=n[F],P.b(N[M],O[M],t),16<=M){switch(F++,M){case 16:L=2;break;case 17:L=3;break;case 18:L=7;break;default:throw"invalid code: "+M}P.b(n[F],L,t)}for(var Q,$,B=[B,_],ee=[ee,R],et=B[0],en=B[1],ei=ee[0],er=ee[1],eo=0,ea=A.length;eo<ea;++eo)if(Q=A[eo],P.b(et[Q],en[Q],t),256<Q)P.b(A[++eo],A[++eo],t),$=A[++eo],P.b(ei[$],er[$],t),P.b(A[++eo],A[++eo],t);else if(256===Q)break;this.a=P.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var I=function(){for(var e,n=[],i=3;i<=258;i++)e=function(e){switch(t){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(i),n[i]=e[2]<<24|e[1]<<16|e[0];return n}(),w=r?new Uint32Array(I):I;function C(n,i){function o(e,n){var i,r,o,a=e.k,s=[],d=0,u=w[e.length];switch(s[d++]=65535&u,s[d++]=u>>16&255,s[d++]=u>>24,t){case 1===a:i=[0,a-1,0];break;case 2===a:i=[1,a-2,0];break;case 3===a:i=[2,a-3,0];break;case 4===a:i=[3,a-4,0];break;case a<=6:i=[4,a-5,1];break;case a<=8:i=[5,a-7,1];break;case a<=12:i=[6,a-9,2];break;case a<=16:i=[7,a-13,2];break;case a<=24:i=[8,a-17,3];break;case a<=32:i=[9,a-25,3];break;case a<=48:i=[10,a-33,4];break;case a<=64:i=[11,a-49,4];break;case a<=96:i=[12,a-65,5];break;case a<=128:i=[13,a-97,5];break;case a<=192:i=[14,a-129,6];break;case a<=256:i=[15,a-193,6];break;case a<=384:i=[16,a-257,7];break;case a<=512:i=[17,a-385,7];break;case a<=768:i=[18,a-513,8];break;case a<=1024:i=[19,a-769,8];break;case a<=1536:i=[20,a-1025,9];break;case a<=2048:i=[21,a-1537,9];break;case a<=3072:i=[22,a-2049,10];break;case a<=4096:i=[23,a-3073,10];break;case a<=6144:i=[24,a-4097,11];break;case a<=8192:i=[25,a-6145,11];break;case a<=12288:i=[26,a-8193,12];break;case a<=16384:i=[27,a-12289,12];break;case a<=24576:i=[28,a-16385,13];break;case a<=32768:i=[29,a-24577,13];break;default:throw"invalid distance"}for(u=i,s[d++]=u[0],s[+d]=u[1],s[5]=u[2],r=0,o=s.length;r<o;++r)m[v++]=s[r];I[s[0]]++,C[s[3]]++,y=e.length+n-1,f=null}var a,s,d,u,c,l,p,f,h,g={},m=r?new Uint16Array(2*i.length):[],v=0,y=0,I=new(r?Uint32Array:Array)(286),C=new(r?Uint32Array:Array)(30),S=n.i;if(!r){for(d=0;d<=285;)I[d++]=0;for(d=0;d<=29;)C[d++]=0}for(I[256]=1,a=0,s=i.length;a<s;++a){for(d=c=0,u=3;d<u&&a+d!==s;++d)c=c<<8|i[a+d];if(g[c]===e&&(g[c]=[]),l=g[c],!(0<y--)){for(;0<l.length&&32768<a-l[0];)l.shift();if(s<=a+3){for(f&&o(f,-1),d=0,u=s-a;d<u;++d)h=i[a+d],m[v++]=h,++I[h];break}0<l.length?(p=function(e,t,n){var i,r,o,a,s,d,u=0,c=e.length;a=0,d=n.length;e:for(;a<d;a++){if(i=n[d-a-1],(o=3)<u){for(s=u;3<s;s--)if(e[i+s-1]!==e[t+s-1])continue e;o=u}for(;o<258&&t+o<c&&e[i+o]===e[t+o];)++o;if(u<o&&(r=i,u=o),258===o)break}return new b(u,t-r)}(i,a,l),f?f.length<p.length?(h=i[a-1],m[v++]=h,++I[h],o(p,0)):o(f,-1):p.length<S?f=p:o(p,0)):f?o(f,-1):(h=i[a],m[v++]=h,++I[h])}l.push(a)}return m[v++]=256,I[256]++,n.m=I,n.l=C,r?m.subarray(0,v):m}function S(e,t){var n,i,o,a,s,d=e.length,u=new f(572),c=new(r?Uint8Array:Array)(d);if(!r)for(a=0;a<d;a++)c[a]=0;for(a=0;a<d;++a)0<e[a]&&u.push(a,e[a]);if(n=Array(u.length/2),i=new(r?Uint32Array:Array)(u.length/2),1===n.length)c[u.pop().index]=1;else{for(a=0,s=u.length/2;a<s;++a)n[a]=u.pop(),i[a]=n[a].value;for(o=function(e,t,n){var i,o,a,s,d,u=new(r?Uint16Array:Array)(n),c=new(r?Uint8Array:Array)(n),l=new(r?Uint8Array:Array)(t),p=Array(n),f=Array(n),h=Array(n),g=(1<<n)-t,m=1<<n-1;for(u[n-1]=t,o=0;o<n;++o)g<m?c[o]=0:(c[o]=1,g-=m),g<<=1,u[n-2-o]=(u[n-1-o]/2|0)+t;for(u[0]=c[0],p[0]=Array(u[0]),f[0]=Array(u[0]),o=1;o<n;++o)u[o]>2*u[o-1]+c[o]&&(u[o]=2*u[o-1]+c[o]),p[o]=Array(u[o]),f[o]=Array(u[o]);for(i=0;i<t;++i)l[i]=n;for(a=0;a<u[n-1];++a)p[n-1][a]=e[a],f[n-1][a]=a;for(i=0;i<n;++i)h[i]=0;for(1===c[n-1]&&(--l[0],++h[n-1]),o=n-2;0<=o;--o){for(s=i=0,d=h[o+1],a=0;a<u[o];a++)(s=p[o+1][d]+p[o+1][d+1])>e[i]?(p[o][a]=s,f[o][a]=t,d+=2):(p[o][a]=e[i],f[o][a]=i,++i);h[o]=0,1===c[o]&&function e(n){var i=f[n][h[n]];i===t?(e(n+1),e(n+1)):--l[i],++h[n]}(o)}return l}(i,i.length,t),a=0,s=n.length;a<s;++a)c[n[a].index]=o[a]}return c}function x(e){for(var t,n,i=new(r?Uint16Array:Array)(e.length),o=[],a=[],s=0,d=0,u=e.length;d<u;d++)o[e[d]]=1+(0|o[e[d]]);for(d=1,u=16;d<=u;d++)s=(a[d]=s)+(0|o[d])<<1;for(d=0,u=e.length;d<u;d++)for(s=a[e[d]],a[e[d]]+=1,t=i[d]=0,n=e[d];t<n;t++)i[d]=i[d]<<1|1&s,s>>>=1;return i}function A(e,t){this.input=e,this.a=new(r?Uint8Array:Array)(32768),this.d=R.g;var n,i={};for(n in(t?"number"==typeof t.compressionType:(t={},0))&&(this.d=t.compressionType),t)i[n]=t[n];i.outputBuffer=this.a,this.j=new h(this.input,i)}var E,T,k,_,R=m,O=(A.prototype.f=function(){var e,t,n=0,i=this.a,o=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=o,this.d){case R.NONE:t=0;break;case R.h:t=1;break;case R.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6)|31-(256*o+e)%31;var a=this.input;if("string"==typeof a){for(var s=a.split(""),d=0,u=s.length;d<u;d++)s[d]=(255&s[d].charCodeAt(0))>>>0;a=s}for(var c,l=1,p=0,f=a.length,h=0;0<f;){for(f-=c=1024<f?1024:f;p+=l+=a[h++],--c;);l%=65521,p%=65521}return o=(p<<16|l)>>>0,this.j.c=2,n=(i=this.j.f()).length,r&&((i=new Uint8Array(i.buffer)).length<=n+4&&(this.a=new Uint8Array(i.length+4),this.a.set(i),i=this.a),i=i.subarray(0,n+4)),i[n++]=o>>24&255,i[n++]=o>>16&255,i[n++]=o>>8&255,i[+n]=255&o,i},i("Zlib.Deflate",A),i("Zlib.Deflate.compress",function(e,t){return new A(e,t).f()}),i("Zlib.Deflate.prototype.compress",A.prototype.f),{NONE:R.NONE,FIXED:R.h,DYNAMIC:R.g});if(Object.keys)E=Object.keys(O);else for(T in E=[],k=0,O)E[k++]=T;for(k=0,_=E.length;k<_;++k)i("Zlib.Deflate.CompressionType."+(T=E[k]),O[T])}).call(vt.exports),vt.exports),bt=e(yt),It={Deflate:bt.Zlib.Deflate},wt={base64Url:"base64url"};function Ct(e,t){return t=t||wt.base64Url,e=mt("string"==typeof e?e:JSON.stringify(e)),e=new It.Deflate(e).compress(),t===wt.base64Url?u.uint8ToBase64(e):e}var St={exports:{}},At=(!(function(){var e=this;function t(t,n){var i,r=t.split("."),o=e;for((r[0]in o)||!o.execScript||o.execScript("var "+r[0]);r.length&&(i=r.shift());)r.length||void 0===n?o=o[i]||(o[i]={}):o[i]=n}var n={c:function(e,t,i){return n.update(e,0,t,i)},update:function(e,t,i,r){var o=n.a,a="number"==typeof i?i:i=0,r="number"==typeof r?r:e.length;for(t^=0xffffffff,a=7&r;a--;++i)t=t>>>8^o[255&(t^e[i])];for(a=r>>3;a--;i+=8)t=(t=(t=(t=(t=(t=(t=(t=t>>>8^o[255&(t^e[i])])>>>8^o[255&(t^e[i+1])])>>>8^o[255&(t^e[i+2])])>>>8^o[255&(t^e[i+3])])>>>8^o[255&(t^e[i+4])])>>>8^o[255&(t^e[i+5])])>>>8^o[255&(t^e[i+6])])>>>8^o[255&(t^e[i+7])];return(0xffffffff^t)>>>0},d:function(e,t){return(n.a[255&(e^t)]^e>>>8)>>>0},b:[0,0x77073096,0xee0e612c,0x990951ba,0x76dc419,0x706af48f,0xe963a535,0x9e6495a3,0xedb8832,0x79dcb8a4,0xe0d5e91e,0x97d2d988,0x9b64c2b,0x7eb17cbd,0xe7b82d07,0x90bf1d91,0x1db71064,0x6ab020f2,0xf3b97148,0x84be41de,0x1adad47d,0x6ddde4eb,0xf4d4b551,0x83d385c7,0x136c9856,0x646ba8c0,0xfd62f97a,0x8a65c9ec,0x14015c4f,0x63066cd9,0xfa0f3d63,0x8d080df5,0x3b6e20c8,0x4c69105e,0xd56041e4,0xa2677172,0x3c03e4d1,0x4b04d447,0xd20d85fd,0xa50ab56b,0x35b5a8fa,0x42b2986c,0xdbbbc9d6,0xacbcf940,0x32d86ce3,0x45df5c75,0xdcd60dcf,0xabd13d59,0x26d930ac,0x51de003a,0xc8d75180,0xbfd06116,0x21b4f4b5,0x56b3c423,0xcfba9599,0xb8bda50f,0x2802b89e,0x5f058808,0xc60cd9b2,0xb10be924,0x2f6f7c87,0x58684c11,0xc1611dab,0xb6662d3d,0x76dc4190,0x1db7106,0x98d220bc,0xefd5102a,0x71b18589,0x6b6b51f,0x9fbfe4a5,0xe8b8d433,0x7807c9a2,0xf00f934,0x9609a88e,0xe10e9818,0x7f6a0dbb,0x86d3d2d,0x91646c97,0xe6635c01,0x6b6b51f4,0x1c6c6162,0x856530d8,0xf262004e,0x6c0695ed,0x1b01a57b,0x8208f4c1,0xf50fc457,0x65b0d9c6,0x12b7e950,0x8bbeb8ea,0xfcb9887c,0x62dd1ddf,0x15da2d49,0x8cd37cf3,0xfbd44c65,0x4db26158,0x3ab551ce,0xa3bc0074,0xd4bb30e2,0x4adfa541,0x3dd895d7,0xa4d1c46d,0xd3d6f4fb,0x4369e96a,0x346ed9fc,0xad678846,0xda60b8d0,0x44042d73,0x33031de5,0xaa0a4c5f,0xdd0d7cc9,0x5005713c,0x270241aa,0xbe0b1010,0xc90c2086,0x5768b525,0x206f85b3,0xb966d409,0xce61e49f,0x5edef90e,0x29d9c998,0xb0d09822,0xc7d7a8b4,0x59b33d17,0x2eb40d81,0xb7bd5c3b,0xc0ba6cad,0xedb88320,0x9abfb3b6,0x3b6e20c,0x74b1d29a,0xead54739,0x9dd277af,0x4db2615,0x73dc1683,0xe3630b12,0x94643b84,0xd6d6a3e,0x7a6a5aa8,0xe40ecf0b,0x9309ff9d,0xa00ae27,0x7d079eb1,0xf00f9344,0x8708a3d2,0x1e01f268,0x6906c2fe,0xf762575d,0x806567cb,0x196c3671,0x6e6b06e7,0xfed41b76,0x89d32be0,0x10da7a5a,0x67dd4acc,0xf9b9df6f,0x8ebeeff9,0x17b7be43,0x60b08ed5,0xd6d6a3e8,0xa1d1937e,0x38d8c2c4,0x4fdff252,0xd1bb67f1,0xa6bc5767,0x3fb506dd,0x48b2364b,0xd80d2bda,0xaf0a1b4c,0x36034af6,0x41047a60,0xdf60efc3,0xa867df55,0x316e8eef,0x4669be79,0xcb61b38c,0xbc66831a,0x256fd2a0,0x5268e236,0xcc0c7795,0xbb0b4703,0x220216b9,0x5505262f,0xc5ba3bbe,0xb2bd0b28,0x2bb45a92,0x5cb36a04,0xc2d7ffa7,0xb5d0cf31,0x2cd99e8b,0x5bdeae1d,0x9b64c2b0,0xec63f226,0x756aa39c,0x26d930a,0x9c0906a9,0xeb0e363f,0x72076785,0x5005713,0x95bf4a82,0xe2b87a14,0x7bb12bae,0xcb61b38,0x92d28e9b,0xe5d5be0d,0x7cdcefb7,0xbdbdf21,0x86d3d2d4,0xf1d4e242,0x68ddb3f8,0x1fda836e,0x81be16cd,0xf6b9265b,0x6fb077e1,0x18b74777,0x88085ae6,0xff0f6a70,0x66063bca,0x11010b5c,0x8f659eff,0xf862ae69,0x616bffd3,0x166ccf45,0xa00ae278,0xd70dd2ee,0x4e048354,0x3903b3c2,0xa7672661,0xd06016f7,0x4969474d,0x3e6e77db,0xaed16a4a,0xd9d65adc,0x40df0b66,936918e3,0xa9bcae53,0xdebb9ec5,0x47b2cf7f,0x30b5ffe9,0xbdbdf21c,0xcabac28a,0x53b39330,0x24b4a3a6,0xbad03605,0xcdd70693,0x54de5729,0x23d967bf,0xb3667a2e,0xc4614ab8,0x5d681b02,0x2a6f2b94,0xb40bbe37,0xc30c8ea1,0x5a05df1b,0x2d02ef8d]};n.a="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array?new Uint32Array(n.b):n.b,t("Zlib.CRC32",n),t("Zlib.CRC32.calc",n.c),t("Zlib.CRC32.update",n.update)}).call(St.exports),St.exports),Tt=e(At),_t={CRC32:Tt.Zlib.CRC32},Et=function(e,t){var n;return 200<=(t=t||0)?e:K.isArray(e)?K.map(e,function(e){return Et(e,t+1)}):!K.isObject(e)||K.isDate(e)||K.isRegExp(e)||K.isElement(e)?K.isString(e)?K.escape(e):e:(n={},K.each(e,function(e,i){n[i]=Et(e,t+1)}),n)},xt=function(e){return e=mt(e),u.uint8ToBase64(e)},Rt=function(e){if(void 0!==e)return e=mt(e=K.isString(e)?e:JSON.stringify(e)),_t.CRC32.calc(e,0,e.length)};function kt(e){return e[Math.floor(Math.random()*e.length)]}function Ot(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",i=(t+t.toUpperCase()+"1234567890").split(""),r=0;r<e;r++)n+=kt(i);return n}var Nt=function(e,t,n){return!(!S(e)||!S(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<e.indexOf(t))};function v(){return(new Date).getTime()}function Mt(){return"undefined"!=typeof $A&&K.isFunction($A.get)&&K.isString($A.get("$Browser.formFactor"))}function Lt(e,t){void 0===t&&(t=window);var n="__symbol__";return"undefined"!=typeof Zone&&K.isFunction(Zone[n])&&(n=t[Zone[n](e)],K.isFunction(n))?n:t[e]}function Ft(e){return K.isFunction(e.isFinite)?e.isFinite:e.Number&&K.isFunction(e.Number.isFinite)?e.Number.isFinite:function(e){return e!=1/0&&e!=-1/0&&!isNaN(e)}}var Pt=Ft(window);function Gt(e){return"number"==typeof e&&Pt(e)&&Math.floor(e)===e}function Wt(e,t,n,i){(t=t||{}).maxRetries=Gt(t.maxRetries)?t.maxRetries:10,t.delay=Gt(t.delay)?t.delay:50,t.exponentialBackoff=t.exponentialBackoff||!1;var r=function(e){return e&&"[object Function]"===({}).toString.call(e)},o=r(n)?n:function(){},a=r(i)?i:function(){},n=e();n?o(n):0<t.maxRetries?Dt(function(){t.maxRetries=--t.maxRetries,t.delay=t.exponentialBackoff?2*t.delay:t.delay,Wt(e,t,o,a)},t.delay):(a||function(){})()}var Ut=function(e){return(e=e.match(/-?[\d,]+\.?([\d,]+)*/))?parseFloat(e[0].replace(/,/g,"")):null};function $t(e){return K.isObject(e)&&K.isFunction(e.then)}var jt=K.isFunction(window.decodeURIComponent)?window.decodeURIComponent:K.identity,zt=K.isFunction(window.encodeURIComponent)?window.encodeURIComponent:K.identity,Zt=window.Promise,Zt=function(e){var t=window.Promise;return"function"==typeof t&&/native/.test(t)?t:e()}(function(){var e=Dt;function t(e){return!!(e&&void 0!==e.length)}function n(){}function i(e){if(!(this instanceof i))throw TypeError("Promises must be constructed via new");if("function"!=typeof e)throw TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],u(e,this)}function r(e,t){for(;3===e._state;)e=e._value;0===e._state?e._deferreds.push(t):(e._handled=!0,i._immediateFn(function(){var n,i=1===e._state?t.onFulfilled:t.onRejected;if(null===i)(1===e._state?o:a)(t.promise,e._value);else{try{n=i(e._value)}catch(e){return void a(t.promise,e)}o(t.promise,n)}}))}function o(e,t){try{if(t===e)throw TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n,r,o=t.then;if(t instanceof i)return e._state=3,e._value=t,void s(e);if("function"==typeof o)return void u((n=o,r=t,function(){n.apply(r,arguments)}),e)}e._state=1,e._value=t,s(e)}catch(t){a(e,t)}}function a(e,t){e._state=2,e._value=t,s(e)}function s(e){2===e._state&&0===e._deferreds.length&&i._immediateFn(function(){e._handled||i._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function d(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function u(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,a(t,e))})}catch(e){n||(n=!0,a(t,e))}}return i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var i=new this.constructor(n);return r(this,new d(e,t,i)),i},i.prototype.finally=function(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){return t.reject(n)})})},i.all=function(e){return new i(function(n,i){if(!t(e))return i(TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(e);if(0===r.length)return n([]);var o=r.length;function a(e,t){try{if(t&&("object"==typeof t||"function"==typeof t)){var s=t.then;if("function"==typeof s)return void s.call(t,function(t){a(e,t)},i)}r[e]=t,0==--o&&n(r)}catch(e){i(e)}}for(var s=0;s<r.length;s++)a(s,r[s])})},i.allSettled=function(e){return new this(function(t,n){if(!e||void 0===e.length)return n(TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);for(var r=i.length,o=0;o<i.length;o++)!function e(n,o){if(o&&("object"==typeof o||"function"==typeof o)){var a=o.then;if("function"==typeof a)return void a.call(o,function(t){e(n,t)},function(e){i[n]={status:"rejected",reason:e},0==--r&&t(i)})}i[n]={status:"fulfilled",value:o},0==--r&&t(i)}(o,i[o])})},i.resolve=function(e){return e&&"object"==typeof e&&e.constructor===i?e:new i(function(t){t(e)})},i.reject=function(e){return new i(function(t,n){n(e)})},i.race=function(e){return new i(function(n,r){if(!t(e))return r(TypeError("Promise.race accepts an array"));for(var o=0,a=e.length;o<a;o++)i.resolve(e[o]).then(n,r)})},i._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(t){e(t,0)},i._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},i}),Vt=Zt,Yt=function(e,t){return(Yt=Object.setPrototypeOf||(({__proto__:[]})instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function Ht(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Yt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Kt=function(){return(Kt=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function Xt(e,t,n,i){return new(n=n||Vt)(function(r,o){function a(e){try{d(i.next(e))}catch(e){o(e)}}function s(e){try{d(i.throw(e))}catch(e){o(e)}}function d(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((i=i.apply(e,t||[])).next())})}function Jt(e,t){var n,i,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return d([e,t])}}function d(s){if(n)throw TypeError("Generator is already executing.");for(;o=a&&s[a=0]?0:o;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,(s=r?[2&s[0],r.value]:s)[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(r=0<(r=o.trys).length&&r[r.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3]))o.label=s[1];else if(6===s[0]&&o.label<r[1])o.label=r[1],r=s;else{if(!(r&&o.label<r[2])){r[2]&&o.ops.pop(),o.trys.pop();continue}o.label=r[2],o.ops.push(s)}}s=t.call(e,o)}catch(e){s=[6,e],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function qt(e,t,n){if(n||2==arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||((i=i||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var tn,Qt=function(){function e(){this.listeners={}}return e.prototype.addEventListener=function(e,t){var n=this.listeners[e];n||(this.listeners[e]=n=[]),0>K.findIndex(n,function(e){return t===e})&&n.push(t)},e.prototype.removeEventListener=function(e,t){var n,i=this.listeners[e];i&&0<=(n=K.findIndex(i,function(e){return t===e}))&&(i.splice(n,1),i.length||delete this.listeners[e])},e.prototype.dispatchEvent=function(e){var t=this.listeners[e.type];t&&K.each(t,function(t){t(e)})},e}(),en=function(){function e(e,t,n){this.type="log",this.logged=!1,this.level=e,this.message=t,this.attributes=n}return e.prototype.toString=function(){var e=this.message;return this.error&&e!==this.error.message&&(e="".concat(e,":").concat(this.error.message)),this.attributes&&(e+=": ".concat(K.map(this.attributes,function(e,t){return"".concat(t,"=").concat(e)}))),e},e.prototype.hashCode=function(){return this.toString()},e}(),nn=(!function(e){e.Debug="debug",e.Info="info",e.Warn="warn",e.Error="error",e.Critical="critical"}(tn=tn||{}),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ht(t,e),t.prototype.write=function(e,t,n){this.dispatchEvent(new en(t,e,n))},t.prototype.writeError=function(e,t,n){K.isString(e)?r={message:i=e}:i=(r=e).message,n&&n.error&&(r=n.error,delete n.error);var i,r,e=new en(t,i,n);e.error=r,this.dispatchEvent(e)},t.prototype.debug=function(e,t){this.write(e,tn.Debug,t)},t.prototype.info=function(e,t){this.write(e,tn.Info,t)},t.prototype.warn=function(e,t){this.writeError(e,tn.Warn,t)},t.prototype.error=function(e,t){this.writeError(e,tn.Error,t)},t.prototype.critical=function(e,t){this.writeError(e,tn.Critical,t)},t}(Qt)),X=new nn;function rn(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var on=function(){var e=m.get("storage.allowKeys")||"*";return K.isArray(e)?K.indexBy(e):e};function an(e){var t=on();return"*"===t||t[e]}function sn(e,t,n){return function(){try{return t.apply(e,arguments)}catch(e){return n}}}function dn(e){K.forEach(K.keys(e),function(t){try{/^_?pendo_/.test(t)&&e.removeItem(t)}catch(e){}})}function un(e){return{getItem:sn(e,e.getItem,null),setItem:sn(e,e.setItem),removeItem:sn(e,e.removeItem),clearPendo:K.partial(dn,e)}}function cn(e){var t=K.noop,t={getItem:function(){return null},setItem:t,removeItem:t,clearPendo:t};try{var n=e();return n?un(n):t}catch(e){return t}}var fn,ln=cn(function(){return window.localStorage}),pn=cn(function(){return window.sessionStorage}),hn={},gn=!0,mn=function(){return m.get("localStorageOnly")},vn=function(){return!!m.get("disableCookies")};function yn(e){gn=e}var bn=function(e){var t=vn()||mn()?hn[e]:document.cookie;return(e=RegExp("(^|; )"+e+"=([^;]*)").exec(t))?jt(e[2]):null},In=function(e,t,n,i){var r,o;!gn||m.get("preventCookieRefresh")&&bn(e)===t||(o=xn(n),(r=new Date).setTime(r.getTime()+o),o=e+"="+zt(t)+(n?";expires="+r.toUTCString():"")+"; path=/"+("https:"===document.location.protocol||i?";secure":"")+"; SameSite=Strict",fn&&(o+=";domain="+fn),vn()||mn()?hn[e]=o:document.cookie=o)};function wn(e,t){var n,i;e?K.isString(e)&&(t=t.replace(/:\d+$/,""),n=RegExp("\\."+rn(e=e.replace(/^\./,""))+"$"),i=RegExp("^"+rn(e)+"$"),n.test(t)||i.test(t))&&(fn="."+e):fn=e}function Cn(){return fn}function Sn(e){Cn()?In(e,""):document.cookie=e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"}var J,An=function(e,t){return"_pendo_".concat(e,".").concat(t||C.apiKey)},Tn=function(e,t){return bn(An(e,t))},_n=864e5,En=100*_n,xn=function(e){void 0===e&&(e=En);var t=m.get("maxCookieTTLDays"),t=t<1/0?t*_n:1/0;return Math.min(e,t)},Rn=function(e,t,n,i,r){n=n||En,In(An(e,r),t,n,i)},kn=function(){function e(){this.keys={}}return e.prototype.addLocal=function(e){this._add(e,"local")},e.prototype.addSession=function(e){this._add(e,"session")},e.prototype.hasLocal=function(e){return this._has(e,"local")},e.prototype.hasSession=function(e){return this._has(e,"session")},e.prototype._add=function(e,t){this.keys[e]||(this.keys[e]=t)},e.prototype._has=function(e,t){return this.keys[e]===t},e}(),h=function(){var e=new kn;function t(t,n){return function(i){if(an(i))return e[n](i)||X.warn("storage key ".concat(i," is not registered")),t.apply(this,arguments);X.debug("writing storage key ".concat(i," is not allowed"))}}function n(){return!vn()&&!Cn()&&i("localStorage")}var i=K.memoize(function(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&t&&0!==t.length}});function r(e){e.cache&&(e.cache={})}function o(e,t,i){if(t=t?e:An(e,i),n())return localStorage.removeItem(t);Sn(t)}var a=K.extend({},pn),s=(a.setItem=t(a.setItem,"hasSession"),K.extend({},ln));return s.setItem=t(s.setItem,"hasLocal"),{read:function(e,t,i){var r;return n()?(r=t?e:An(e,i),null===(r=function(e){if(null===e)return null;try{var t=JSON.parse(e);return t.ttl?t.ttl<(new Date).getTime()?null:String(t.value||t):e}catch(t){return e}}(localStorage.getItem(r)))&&o(e,t,i),r):t?bn(e):Tn(e,i)},write:t(function(e,t,o,a,s,d){if(r(i),n())try{var u=a?e:An(e,d);return localStorage.setItem(u,function(e,t){return null===t?e:(t=(new Date).getTime()+xn(t),JSON.stringify({ttl:t,value:e}))}(t,o)),void r(i)}catch(e){}if(!a)return Rn(e,t,o,s,d);In(e,t,o,s)},"hasLocal"),clear:o,registry:e,getLocal:function(){return s},getSession:function(){return a}}}(),On=function(){var e={},t=function(){var e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}},n=function(t,n){var r=e.defer(),o=function(e,t){Dt(function(){var n;try{n=e(t)}catch(e){return void r.reject(e)}n===r.promise?r.reject(TypeError("Cannot resolve promise with itself")):r.resolve(n)},1)};return{promise:r.promise,handle:function(e,a){e===i?(e=a,t&&t.call?o(t,e):r.resolve(e)):(e=a,n&&n.call?o(n,e):r.reject(e))}}},i=1;return e.defer=function(){var e,r=0,o=[],a=function(t,n){r=t,e=n,K.each(o,function(t){t.handle(r,e)}),o=null},s=function(e){a(i,e)},d=function(e){a(2,e)},u=function(t,i){return t=n(t,i),0===r?o.push(t):t.handle(r,e),t.promise},c=function(e){var n=t();try{e(n(l),n(d))}catch(e){n(d)(e)}},l=function(e){var t;try{t=function(e){var t=e&&e.then;if("object"==typeof e&&"function"==typeof t)return function(){return t.apply(e,arguments)}}(e)}catch(e){return void d(e)}t?c(t):s(e)},p=t();return{resolve:p(l),reject:p(d),promise:{then:u,catch:function(e){return u(null,e)}}}},e}();function Nn(e){var t,n=J.defer(),i=K.isArray(e)?[]:{},r=K.size(e);return r?(t=!1,K.each(e,function(e,o){J.resolve(e).then(function(e){i[o]=e,0!=--r||t||n.resolve(i)},function(e){t||(t=!0,n.reject(e))})}),n.promise):J.resolve(e)}!lt()&&ht(tt,he())&&l.isMinimumIEVersion(11)?J={all:function(e){return K.isArray(e)?Vt.all.apply(Vt,arguments):Nn(e)},reject:function(){return Vt.reject.apply(Vt,arguments)},resolve:function(){return Vt.resolve.apply(Vt,arguments)},defer:function(){var e={};return e.promise=new Vt(function(t,n){e.resolve=t,e.reject=n}),e}}:(J=On,J.all=Nn,J.reject=function(e){var t=J.defer();return t.reject(e),t.promise},J.resolve=function(e){var t=J.defer();return t.resolve(e),t.promise});var Mn=h.getSession(),Ln="pendo_frameId",Fn="pendo_tabId",Pn="pendo_parentTabId";function Gn(e){var t=K.partial,n=K.extend,i=K.omit,r={data:{},getItem:function(e){return r.data[e]},setItem:function(e,t){r.data[e]=t},removeItem:function(e){r.data[e]=null,delete r.data[e]}},o=t(u,Fn,c),a=t(u,Ln,r);function s(e,t){return(K.isFunction(t)?t():t).getItem(e)}function d(e,t,n){(K.isFunction(n)?n():n).setItem(e,t)}function u(e,t){var n=s(e,t);return n||d(e,n=Ot(16),t),n}function c(){var e,t;return e=r,t=Mn,{getItem:function(n){var i=e.getItem(n);return void 0===i&&(i=t.getItem(n),e.setItem(n,i)),i},setItem:function(n,i){e.setItem(n,i),t.setItem(n,i)},removeItem:function(n){e.removeItem(n),t.removeItem(n)}}}return{addTracerIds:function(e){return i(n(e,{parentTabId:s(Pn,c),tabId:o(),frameId:a()}),function(e){return void 0===e})},setParentTabId:function(e){d(Pn,e,c)},newTabId:function(){var e=Ot(16);return d(Fn,e,c),e},getTabId:o,getFrameId:a,tabIdChanged:function(t){var n;if(l.addEventListener)return e.addEventListener("storage",n=function(e){e.key===Fn&&(r.removeItem(Fn),t())}),function(){e.removeEventListener("storage",n)}}}}var Dn=Gn(window);function Bn(){var e=this._handlers={};return this.addEventListener=function(){this.on.apply(this,arguments)},this.removeEventListener=function(){this.off.apply(this,arguments)},this.on=function(t,n){var i;return(K.isString(t)||K.isFunction(n))&&(i=(i=e[t])||(e[t]=[]),0>K.indexOf(i,n))&&i.push(n),this},this.one=function(e,t){var n=this,i=function(){n.off(e,i),t.apply(this,arguments)};return this.on(e,i)},this.once=this.one,this.off=function(t,n){var i,t=e[t];return K.isFunction(n)?(i=K.indexOf(t,n),t&&0<=i&&t.splice(i,1)):t&&void 0===n&&(t.length=0),this},this.trigger=function(t){var n=e[t]?e[t].slice():[],i=K.toArray(arguments).slice(1);return K.map(n,function(e){return e.apply(C,i)})},this.triggerCancelable=function(t,n){return t=e[t]?e[t].slice():[],K.map(t,function(e){if(!n.cancel)return e.apply(C,[n])})},this.triggerAsync=function(){var e=K.map(this.trigger.apply(this,arguments),function(e){return!1===e?J.reject():e});return J.all(e)},this}Bn.clear=function(e){e&&K.each(K.keys(e._handlers),function(t){e.off(t),delete e._handlers[t]})};var y=function(){function e(e,t){this.name=e,this.groups=t||[]}var t="debug",n="lifecycle",i="runtime",r="frames",o={DEBUG:t,FRAMES:r,LIFECYCLE:n,RUNTIME:i},a=[new e("ready",[t,n]),new e("deliverablesLoaded",[t,n]),new e("guidesFailed",[t,n]),new e("guidesLoaded",[t,n]),new e("guideListChanged",[t,n]),new e("guideSeen",[t,n]),new e("guideNotSeen",[t,n]),new e("guideAdvanced",[t,n]),new e("guideDismissed",[t,n]),new e("guideSnoozed",[t,n]),new e("beforeGuideShow",[n]),new e("beforeMount",[i]),new e("beforeAdvance",[i]),new e("beforePrevious",[i]),new e("beforeSnooze",[i]),new e("beforeDismiss",[i]),new e("beforeUnmount",[i]),new e("unmounted",[i]),new e("beforeUpdate",[i]),new e("updated",[i]),new e("guideSnoozeCancelled",[t,n]),new e("guideTimeout",[t,n]),new e("guideLoopStopped",[t,n]),new e("guideUpdateComplete",[n]),new e("designerLaunched",[t,n]),new e("debuggerLaunched",[t,n]),new e("stepEligibility",[t]),new e("identify",[t,n]),new e("metadata",[t,n]),new e("appUnloaded",[t,n]),new e("appHidden",[t,n]),new e("startPreview",[t]),new e("resourceFetchFail",[t]),new e("contentVerificationFail",[t]),new e("contentValidationFail",[t]),new e("renderFail",[t]),new e("appUsage",[n]),new e("eventCaptured",[t]),new e("error",[t,n]),new e("onClickCaptured",[t]),new e("urlChanged",[n]),new e("leaderChanged",[n,r]),new e("transmit:locked",[n]),new e("transmit:unlocked",[n]),new e("sessionChanged",[n]),new e("childFrameJoined",[r])],s=Bn.call({});function d(e,t){return e={type:e,ts:v()},S(t)&&K.isObject(t)&&(e.data=t),e}var u={debug:function(){return Dn.addTracerIds(d.apply(null,arguments))},lifecycle:d,runtime:d,frames:d},c=s.trigger;function l(e){var t=K.findWhere(a,{name:e}),n=K.toArray(arguments).slice(1),i={};return K.each(t.groups,function(t){i.cancel||(i=u[t](e,n),c.apply(s,[t].concat(i)))}),i.cancel||(i=d(e,n),c.apply(s,[e].concat(i))),i}return s.trigger=l,K.each(K.values(o),function(e){s[e]={on:K.partial(s.on,e),one:K.partial(s.one,e),off:K.partial(s.off,e)}}),K.each(a,function(e){s[e=e.name]={on:K.partial(s.on,e),one:K.partial(s.one,e),off:K.partial(s.off,e),trigger:K.partial(l,e)}}),s}();function Wn(e){var t=[],n=[],i={},r={},o={state:{},commit:function(e,n){var r=i[e];if(!r)throw Error("mutation "+e+" not found");r(n),K.each(t,function(t){t({type:e,payload:n},o.state)})},dispatch:function(e,t){var i=r[e];if(i)return i=i(t),K.each(n,function(n){n({type:e,payload:t},o.state)}),i;throw Error("action "+e+" not found")},subscribe:K.partial(a,t),subscribeAction:K.partial(a,n),registerModule:function e(t,n){K.isString(t)&&(t=[t]);var a=d(o.state,n,t);K.extend(o.getters,l(n,a,o,t)),K.extend(i,u(n,a,t)),K.extend(r,c(n,a,o,t)),K.each(n.modules,function(n,i){e(t.concat([i]),n)})},getters:{}};return e&&o.registerModule([],e),o;function a(e,t){var n,i;return K.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):K.noop}function s(e,t){return(e=t?e.concat([t]):e).join("/")}function d(e,t,n){var i=e;return K.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),K.extend(i,we(t.state||{}))}function u(e,t,n){var i={};return K.each(e.mutations,function(e,r){i[s(n,r)]=K.partial(e,t)}),i}function c(e,t,n,i){var r={},o={state:t,rootState:n.state,commit:function(e,t,r){r=r&&r.root?e:s(i,e),n.commit(r,t)},dispatch:function(e,t,r){return r=r&&r.root?e:s(i,e),n.dispatch(r,t)},getters:function(e,t){var n=s(t);return n&&(n+="/"),K.reduce(e,function(e,t,i){return 0===i.indexOf(n)&&(e[i.replace(n,"")]=t),e},{})}(n.getters,i),rootGetters:n.getters};return K.each(e.actions,function(e,t){r[s(i,t)]=K.partial(e,o)}),r}function l(e,t,n,i){var r={},o={};return K.each(e.getters,function(e,a){o[a]=r[s(i,a)]=function(){return e(t,o,n.state,n.getters)}}),r}}function Un(){return Wn()}var q=Un(),$n=(q.subscribe(function(e,t){}),"_PENDO_T_"),jn=11,zn="visitorId",Zn="oldVisitorId",Vn="accountId",Yn=function(e){return(e=void 0===e?"":e)+Ot(jn)};function Hn(e){return e&&"string"==typeof e&&0===gt.call(e).length}var Kn=function(e){return S(e)&&""!==e&&e!==ti&&"boolean"!=typeof e&&"object"!=typeof e&&!Hn(e)},Xn=function(e){return!(!e||"number"==typeof e)&&e.substring(0,$n.length)===$n},Jn=function(){return!m.get("disablePersistence")},qn=function(e){e=e||[zn,Vn,Zn];var t=m.get("identityStorageSuffix")||C.apiKey;K.each(e,function(e){Sn(An(e,t)),h.clear(e,!1,t)})},Qn="VISITOR-UNIQUE-ID",ei=function(e){return Qn===e},ti="::",ni=function(e){return new RegExp(ti).test(e)};function ii(e){return e.old_visitor_id!==e.visitor_id}var ai,ri=function(e){return ii(e)||e.old_account_id!==e.account_id},oi=function(e,t){var n={old_visitor_id:Q(),old_account_id:fi()};Kn(e)?(pi(e),gi(t),n.visitor_id=Q({generate:!0}),n.account_id=fi(),ri(n)&&(ii(n)&&hi(n.old_visitor_id),y.identify.trigger(n))):X.info("Invalid visitor id "+e)};function si(){return Yn($n)}function di(e){C.visitorId!==e&&(Jn()&&mi(zn,e),C.visitorId=e)}function ui(){if(Kn(C.visitorId))return C.visitorId;var e=m.get("forceAnonymous");if(Jn()){var t=vi(zn);if(Kn(t)&&(!e||Xn(t)))return t}}function Q(e){void 0===e&&(e={});var t=ui();return di(t=!t&&e.generate?si():t),t}function ci(){return ai=void 0===ai&&Jn()?vi(Zn):ai}function li(){return Q()||si()}var pi=function(e){Kn(e)?di(""+e):X.info("Invalid visitor id "+e)};function hi(e){e&&mi(Zn,ai=e)}var fi=function(){var e=m.get("forceAnonymous");return Kn(C.accountId)||!Jn()||e||(e=vi(Vn),C.accountId=e),C.accountId},gi=function(e){K.isUndefined(e)?X.info("No account id provided"):Kn(e)?(C.accountId=""+e,Jn()&&mi(Vn,C.accountId)):(yi(),X.info("Invalid account id: "+e+". Account cleared"))};function mi(e,t){var n=m.get("identityStorageLifetime")||En,i=m.get("identityStorageSuffix")||C.apiKey;h.write(e,t,n,!1,!0,i)}function vi(e){var t=m.get("identityStorageSuffix"),n=t||C.apiKey,n=h.read(e,!1,n)||h.read(e,!1,C.apiKey);return t&&h.clear(e,!1,C.apiKey),n}function yi(){delete C.accountId;var e=m.getLocalConfig();delete e.account,m.setLocalConfig(e),q.commit("metadata/clearAccount"),Jn()&&h.clear(Vn)}function bi(){var e={old_visitor_id:Q({generate:!1}),old_account_id:fi(),wasCleared:!0};qn(),delete C.visitorId,delete C.accountId,Q({generate:!0}),K.extend(e,{visitor_id:Q(),account_id:fi()}),y.identify.trigger(e)}function Ii(e){return e=e.data[0],K.get(e,"wasCleared")}var wi=function(e,t){return t=!!t,function(){try{return e.apply(this,arguments)}catch(e){t||X.critical(e)}}};function Ci(e){return function(t){var n=e.createElement("a");if(n.href=t,":"===n.protocol||n.href!==t&&n.href!==encodeURI(t))throw Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");return n.toString||(n.toString=function(){return n.href}),null==n.origin&&(n.origin=n.protocol+"//"+n.hostname,"80"!==n.port)&&"443"!==n.port&&(n.origin+=":"+n.port),n}}var Si=function(e){var t=window.URL;return"function"==typeof t&&/native/.test(t)?t:e(document)}(Ci);function Ai(e){return e&&K.isFunction(e.composedPath)}function Ti(e){if(Ai(e))try{return e.composedPath()}catch(t){return e.path}return null}function _i(e){return e.shadowRoot}function Ei(e,t){return void 0!==(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function xi(e,t){return Ei(e,t)?e.host:e.parentNode}var c=function(){function e(e){return!!e&&-1<e.indexOf(c.PSEUDO_ELEMENT)}function t(e){return K.reduce(e,function(e,t){return t.value===c.PSEUDO_SAFE?e+c.PSEUDO_ELEMENT:e+t.value},"")}return{PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:Ti,getShadowRoot:_i,isElementShadowRoot:Ei,getParent:xi,isShadowSelector:e,wrapSizzle:function(n){n.intercept(function(n,i,r,o,a){var s,d;return e(i)?K.isFunction(document.documentElement.attachShadow)?(d=n,s=(s=i).replace(c.PSEUDO_REGEX,c.PSEUDO_SAFE),s=K.map(d.tokenize(s),t),K.reduce(s,function(e,t){return e.concat(u(t,r,o,a))},[])):n(i.replace(c.PSEUDO_REGEX,""),r,o,a):n(i,r,o,a);function u(t,i,r,o){var a,s;return e(t)?(s=u((a={baseCss:(s=(s=t).split(c.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:s.join(c.PSEUDO_ELEMENT)}).baseCss,i),K.reduce(s,function(e,t){return c.getShadowRoot(t)?e.concat(u(a.shadowCss,c.getShadowRoot(t),r,o)):e},[])):n(t,i,r,o)}}),n.intercept(function(t,i,r){return!c.isElementShadowRoot(i)&&(e(r)?0<n(r,document,null,[i]).length:t(i,r))},"matchesSelector")}}}(),Ri={exports:{}},ki=(!function(e){var t,n,i,r,o,a,s,d,u,c,l,p,f,h,g,m,v,y,b,I=window,w="sizzle"+ +new Date,C=I.document,S=0,x=0,A=eu(),E=eu(),T=eu(),k=eu(),_=function(e,t){return e===t&&(l=!0),0},R={}.hasOwnProperty,O=[],N=O.pop,M=O.push,L=O.push,F=O.slice,G=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return -1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",D="[\\x20\\t\\r\\n\\f]",W="(?:\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",B="\\["+D+"*("+W+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+W+"))|)"+D+"*\\]",Z=":("+W+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+B+")*)|.*)\\)|)",z=RegExp(D+"+","g"),U=RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g"),j=RegExp("^"+D+"*,"+D+"*"),Y=RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),V=RegExp(D+"|>"),H=new RegExp(Z),K=RegExp("^"+W+"$"),X={ID:RegExp("^#("+W+")"),CLASS:RegExp("^\\.("+W+")"),TAG:RegExp("^("+W+"|[*])"),ATTR:RegExp("^"+B),PSEUDO:RegExp("^"+Z),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:RegExp("^(?:"+P+")$","i"),needsContext:RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},J=/HTML$/i,q=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,ee=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/[+~]/,en=RegExp("\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\([^\\r\\n\\f])","g"),ei=function(e,t){return e="0x"+e.slice(1)-65536,t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))},er=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,eo=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ea=function(){p()},es=eb(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{L.apply(O=F.call(C.childNodes),C.childNodes),O[C.childNodes.length].nodeType}catch(e){L={apply:O.length?function(e,t){M.apply(e,F.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function ed(e,t,i,r){var o,s,u,c,l,h,v=t&&t.ownerDocument,y=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return i;if(!r&&(p(t),t=t||f,g)){if(11!==y&&(c=ee.exec(e)))if(o=c[1]){if(9===y){if(!(h=t.getElementById(o)))return i;if(h.id===o)return i.push(h),i}else if(v&&(h=v.getElementById(o))&&b(t,h)&&h.id===o)return i.push(h),i}else{if(c[2])return L.apply(i,t.getElementsByTagName(e)),i;if((o=c[3])&&n.getElementsByClassName&&t.getElementsByClassName)return L.apply(i,t.getElementsByClassName(o)),i}if(n.qsa&&!k[e+" "]&&(!m||!m.test(e))&&(1!==y||"object"!==t.nodeName.toLowerCase())){if(h=e,v=t,1===y&&(V.test(e)||Y.test(e))){for((v=et.test(e)&&em(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(er,eo):t.setAttribute("id",u=w)),s=(l=a(e)).length;s--;)l[s]=(u?"#"+u:":scope")+" "+ey(l[s]);h=l.join(",")}try{return L.apply(i,v.querySelectorAll(h)),i}catch(t){k(e,!0)}finally{u===w&&t.removeAttribute("id")}}}return d(e.replace(U,"$1"),t,i,r)}function eu(){var e=[];function t(n,r){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=r}return t}function ec(e){return e[w]=!0,e}function el(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function ep(e,t){for(var n=e.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=t}function ef(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n){for(;n=n.nextSibling;)if(n===t)return -1}return e?1:-1}function eh(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||!e!==t.isDisabled&&es(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function eg(e){return ec(function(t){return t*=1,ec(function(n,i){for(var r,o=e([],n.length,t),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))})})}function em(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ed.support={},o=ed.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!J.test(t||e&&e.nodeName||"HTML")},p=ed.setDocument=function(e){var e=e?e.ownerDocument||e:C;return e!=f&&9===e.nodeType&&e.documentElement&&(h=(f=e).documentElement,g=!o(f),C!=f&&(e=f.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",ea,!1):e.attachEvent&&e.attachEvent("onunload",ea)),n.scope=el(function(e){return h.appendChild(e).appendChild(f.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),n.attributes=el(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=el(function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=!!f.getElementsByClassName,n.getById=el(function(e){return h.appendChild(e).id=w,!f.getElementsByName||!f.getElementsByName(w).length}),n.getById?(i.filter.ID=function(e){var t=e.replace(en,ei);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g)return(e=t.getElementById(e))?[e]:[]}):(i.filter.ID=function(e){var t=e.replace(en,ei);return function(e){return(e=void 0!==e.getAttributeNode&&e.getAttributeNode("id"))&&e.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},i.find.CLASS=n.getElementsByClassName&&function(e,t){return void 0!==t.getElementsByClassName&&g?t.getElementsByClassName(e):n.qsa&&g?t.querySelectorAll("."+e):void 0},v=[],m=[],(n.qsa=!!f.querySelectorAll)&&(el(function(e){var t;h.appendChild(e).innerHTML=Te().createHTML("<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+D+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+D+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+w+"-]").length||m.push("~="),(t=f.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\["+D+"*name"+D+"*="+D+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")}),el(function(e){e.innerHTML=Te().createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+D+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=$.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&el(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",Z)}),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),b=(e=!!h.compareDocumentPosition)||h.contains?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t){for(;t=t.parentNode;)if(t===e)return!0}return!1},_=e?function(e,t){var i;return e===t?(l=!0,0):(i=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e==f||e.ownerDocument==C&&b(C,e)?-1:t==f||t.ownerDocument==C&&b(C,t)?1:c?G(c,e)-G(c,t):0:4&i?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==f?-1:t==f?1:r?-1:o?1:c?G(c,e)-G(c,t):0;if(r===o)return ef(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?ef(a[i],s[i]):a[i]==C?-1:+(s[i]==C)}),f},ed.matches=function(e,t){return ed(e,null,null,t)},ed.matchesSelector=function(e,t){if(p(e),n.matchesSelector&&g&&!k[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var i=y.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){k(t,!0)}return 0<ed(t,f,null,[e]).length},ed.contains=function(e,t){return(e.ownerDocument||e)!=f&&p(e),b(e,t)},ed.attr=function(e,t){(e.ownerDocument||e)!=f&&p(e);var r=i.attrHandle[t.toLowerCase()],r=r&&R.call(i.attrHandle,t.toLowerCase())?r(e,t,!g):void 0;return void 0!==r?r:n.attributes||!g?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},ed.escape=function(e){return(e+"").replace(er,eo)},ed.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},ed.uniqueSort=function(e){var t,i=[],r=0,o=0;if(l=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(_),l){for(;t=e[o++];)t===e[o]&&(r=i.push(o));for(;r--;)e.splice(i[r],1)}return c=null,e},r=ed.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=r(t);return n},(i=ed.selectors={cacheLength:50,createPseudo:ec,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(en,ei),e[3]=(e[3]||e[4]||e[5]||"").replace(en,ei),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ed.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ed.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&H.test(n)&&(t=(t=a(n,!0))&&n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(en,ei).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=A[e+" "];return t||(t=RegExp("(^|"+D+")"+e+"("+D+"|$)"),A(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){return null==(i=ed.attr(i,e))?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&-1<i.indexOf(n):"$="===t?n&&i.slice(-n.length)===n:"~="===t?-1<(" "+i.replace(z," ")+" ").indexOf(n):"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,d){var u,c,l,p,f,h,g=o!=a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!d&&!s,b=!1;if(m){if(o){for(;g;){for(p=t;p=p[g];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&y){for(b=(f=(u=(c=(l=(p=m)[w]||(p[w]={}))[p.uniqueID]||(l[p.uniqueID]={}))[e]||[])[0]===S&&u[1])&&u[2],p=f&&m.childNodes[f];p=++f&&p&&p[g]||(b=f=0,h.pop());)if(1===p.nodeType&&++b&&p===t){c[e]=[S,f,b];break}}else if(!1===(b=y?f=(u=(c=(l=(p=t)[w]||(p[w]={}))[p.uniqueID]||(l[p.uniqueID]={}))[e]||[])[0]===S&&u[1]:b))for(;(p=++f&&p&&p[g]||(b=f=0,h.pop()))&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++b||(y&&((c=(l=p[w]||(p[w]={}))[p.uniqueID]||(l[p.uniqueID]={}))[e]=[S,b]),p!==t)););return(b-=r)===i||b%i==0&&0<=b/i}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ed.error("unsupported pseudo: "+e);return r[w]?r(t):1<r.length?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ec(function(e,n){for(var i,o=r(e,t),a=o.length;a--;)e[i=G(e,o[a])]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:ec(function(e){var t=[],n=[],i=s(e.replace(U,"$1"));return i[w]?ec(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:ec(function(e){return function(t){return 0<ed(e,t).length}}),contains:ec(function(e){return e=e.replace(en,ei),function(t){return -1<(t.textContent||r(t)).indexOf(e)}}),lang:ec(function(e){return K.test(e||"")||ed.error("unsupported lang: "+e),e=e.replace(en,ei).toLowerCase(),function(t){var n;do if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType)return!1}}),target:function(e){var t=I.location&&I.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===h},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:eh(!1),disabled:eh(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:eg(function(){return[0]}),last:eg(function(e,t){return[t-1]}),eq:eg(function(e,t,n){return[n<0?n+t:n]}),even:eg(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:eg(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:eg(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:eg(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(t);function ev(){}function ey(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function eb(e,t,n){var i=t.dir,r=t.next,o=r||i,a=n&&"parentNode"===o,s=x++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||a)return e(t,n,r);return!1}:function(t,n,d){var u,c,l=[S,s];if(d){for(;t=t[i];)if((1===t.nodeType||a)&&e(t,n,d))return!0}else for(;t=t[i];)if(1===t.nodeType||a)if(c=(c=t[w]||(t[w]={}))[t.uniqueID]||(c[t.uniqueID]={}),r&&r===t.nodeName.toLowerCase())t=t[i]||t;else{if((u=c[o])&&u[0]===S&&u[1]===s)return l[2]=u[2];if((c[o]=l)[2]=e(t,n,d))return!0}return!1}}function eI(e){return 1<e.length?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function ew(e,t,n,i,r){for(var o,a=[],s=0,d=e.length,u=null!=t;s<d;s++)(o=e[s])&&(!n||n(o,i,r))&&(a.push(o),u&&t.push(s));return a}function eC(e,t,n,i,r,o){return i&&!i[w]&&(i=eC(i)),r&&!r[w]&&(r=eC(r,o)),ec(function(o,a,s,d){var u,c,l,p=[],f=[],h=a.length,g=o||function(e,t,n){for(var i=0,r=t.length;i<r;i++)ed(e,t[i],n);return n}(t||"*",s.nodeType?[s]:s,[]),m=e&&(o||!t)?ew(g,p,e,s,d):g,v=n?r||(o?e:h||i)?[]:a:m;if(n&&n(m,v,s,d),i)for(u=ew(v,f),i(u,[],s,d),c=u.length;c--;)(l=u[c])&&(v[f[c]]=!(m[f[c]]=l));if(o){if(r||e){if(r){for(u=[],c=v.length;c--;)(l=v[c])&&u.push(m[c]=l);r(null,v=[],u,d)}for(c=v.length;c--;)(l=v[c])&&-1<(u=r?G(o,l):p[c])&&(o[u]=!(a[u]=l))}}else v=ew(v===a?v.splice(h,v.length):v),r?r(null,a,v,d):L.apply(a,v)})}ev.prototype=i.filters=i.pseudos,i.setFilters=new ev,a=ed.tokenize=function(e,t){var n,r,o,a,s,d,u,c=E[e+" "];if(c)return t?0:c.slice(0);for(s=e,d=[],u=i.preFilter;s;){for(a in(!n||(r=j.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),d.push(o=[])),n=!1,(r=Y.exec(s))&&(n=r.shift(),o.push({value:n,type:r[0].replace(U," ")}),s=s.slice(n.length)),i.filter)i.filter.hasOwnProperty(a)&&(r=X[a].exec(s))&&(!u[a]||(r=u[a](r)))&&(n=r.shift(),o.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?ed.error(e):E(e,d).slice(0)},s=ed.compile=function(e,t){var n,r,o,s,d,c,l=[],h=[],m=T[e+" "];if(!m){for(n=(t=t||a(e)).length;n--;)((m=function e(t){for(var n,r,o,a=t.length,s=i.relative[t[0].type],d=s||i.relative[" "],c=+!!s,l=eb(function(e){return e===n},d,!0),p=eb(function(e){return -1<G(n,e)},d,!0),f=[function(e,t,i){return e=!s&&(i||t!==u)||((n=t).nodeType?l:p)(e,t,i),n=null,e}];c<a;c++)if(r=i.relative[t[c].type])f=[eb(eI(f),r)];else{if((r=i.filter[t[c].type].apply(null,t[c].matches))[w]){for(o=++c;o<a&&!i.relative[t[o].type];o++);return eC(1<c&&eI(f),1<c&&ey(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(U,"$1"),r,c<o&&e(t.slice(c,o)),o<a&&e(t=t.slice(o)),o<a&&ey(t))}f.push(r)}return eI(f)}(t[n]))[w]?l:h).push(m);(m=T(e,(r=h,s=0<(o=l).length,d=0<r.length,c=function(e,t,n,a,c){var l,h,m,v=0,y="0",b=e&&[],I=[],w=u,C=e||d&&i.find.TAG("*",c),x=S+=null==w?1:Math.random()||.1,A=C.length;for(c&&(u=t==f||t||c);y!==A&&null!=(l=C[y]);y++){if(d&&l){for(h=0,t||l.ownerDocument==f||(p(l),n=!g);m=r[h++];)if(m(l,t||f,n)){a.push(l);break}c&&(S=x)}s&&((l=!m&&l)&&v--,e)&&b.push(l)}if(v+=y,s&&y!==v){for(h=0;m=o[h++];)m(b,I,t,n);if(e){if(0<v)for(;y--;)b[y]||I[y]||(I[y]=N.call(a));I=ew(I)}L.apply(a,I),c&&!e&&0<I.length&&1<v+o.length&&ed.uniqueSort(a)}return c&&(S=x,u=w),b},s?ec(c):c))).selector=e}return m},d=ed.select=function(e,t,n,r){var o,d,u,c,l,p="function"==typeof e&&e,f=!r&&a(e=p.selector||e);if(n=n||[],1===f.length){if(2<(d=f[0]=f[0].slice(0)).length&&"ID"===(u=d[0]).type&&9===t.nodeType&&g&&i.relative[d[1].type]){if(!(t=(i.find.ID(u.matches[0].replace(en,ei),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(d.shift().value.length)}for(o=X.needsContext.test(e)?0:d.length;o--&&(u=d[o],!i.relative[c=u.type]);)if((l=i.find[c])&&(r=l(u.matches[0].replace(en,ei),et.test(d[0].type)&&em(t.parentNode)||t))){if(d.splice(o,1),e=r.length&&ey(d))break;return L.apply(n,r),n}}return(p||s(e,f))(r,t,!g,n,!t||et.test(e)&&em(t.parentNode)||t),n},n.sortStable=w.split("").sort(_).join("")===w,n.detectDuplicates=!!l,p(),n.sortDetached=el(function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))}),el(function(e){return e.innerHTML=Te().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||ep("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&el(function(e){return e.innerHTML=Te().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ep("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),el(function(e){return null==e.getAttribute("disabled")})||ep(P,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var eS=I.Sizzle;ed.noConflict=function(){return I.Sizzle===ed&&(I.Sizzle=eS),ed},e.exports?e.exports=ed:I.Sizzle=ed}(Ri),Ri.exports),Oi=e(ki);function Ni(e){var t=K.extend(function(){return t.Sizzle.apply(this,arguments)},e);return t.reset=function(){t.Sizzle=e,t.matchesSelector=e.matchesSelector,t.matches=e.matches},t.intercept=function(e,n){t[n=void 0===n?"Sizzle":n]=K.wrap(t[n],e)},t.reset(),t}var s=Ni(Oi);function ee(e,t){var n,i=this;if(e&&e instanceof ee)return e;if(!(i instanceof ee))return new ee(e,t);if(e)if(e.nodeType)n=[e];else if(r=/^<(\w+)\/?>$/.exec(e))n=[document.createElement(r[1])];else if(/^<[\w\W]+>$/.test(e)){var r=document.createElement("div");r.innerHTML=e,n=K.toArray(r.childNodes)}else if(K.isString(e)){t instanceof ee&&(t=0<t.length?t[0]:null);try{n=s(e,t)}catch(e){n=[]}}else n=[e];else n=[];return K.each(n,function(e,t){i[t]=e}),i.context=t,i.length=n.length,i}function Mi(){this.ownerKey="_pendo_"+Ot(8)}K.extend(Mi.prototype,{cache:function(e){var t;return K.isObject(e)?((t=e[this.ownerKey])||(e[this.ownerKey]=t={}),t):{}},set:function(e,t,n){return(e=this.cache(e))[t]=n,e},get:function(e,t){return void 0===t?this.cache(e):e[this.ownerKey]&&e[this.ownerKey][t]},remove:function(e,t){var n=this.cache(e);delete n[t],(void 0===t||K.isEmpty(n))&&(e[this.ownerKey]=void 0)}});var Li=new Mi,Fi=1,Pi=2,Gi=3;function Di(e){return K.isNumber(e.eventPhase)&&e.eventPhase===Fi}function Bi(e){return K.isNumber(e.eventPhase)&&e.eventPhase===Pi}function te(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?Lt("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),function(){Wi(e,t,n,i)}):K.noop}function Wi(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?Lt("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var er,Ui=function(e){var t=c.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},$i={add:function(e,t){var n=Li.get(e),i=(n.handle||(n.handle=function(t){$i.dispatch(e,t)}),t.id=K.uniqueId(),t.capture?"captureEvents":"bubbleEvents"),i=n[i]=n[i]||{},i=i[t.type]=i[t.type]||[];return i.length||te(e,t.type,n.handle,t.capture),i.push(t),function(){ee.event.remove(e,t.type,t.handler,t.capture)}},dispatch:function(e,t){var n,i,r;e&&(n=(Li.get(e,"captureEvents")||{})[t.type]||[],i=(Li.get(e,"bubbleEvents")||{})[t.type]||[],(i=n.concat(i)).length)&&!(r=Li.get(t)).ignore&&(r.handled=r.handled||{},K.each(i.slice(),function(n){var i=!!n.capture===Di(t),o=Bi(t),i=!i&&!o;if(!(Ui(t)!==e&&i||r.handled[n.id])){r.handled[n.id]=!0;try{(!S(n.selector)||0<ee(Ui(t)).closest(n.selector).length)&&n.handler.call(e,t)}catch(e){X.error(e)}}}))},remove:function(e,t,n,i){var r=Li.get(e);if(r){if(K.isFunction(n)){var o=i?r.captureEvents:r.bubbleEvents;if(!o)return;var a=o[t];if(!a)return;var s=K.findIndex(a,function(e){return e.handler===n});0<=s&&a.splice(s,1),a.length||(delete o[t],Wi(e,t,r.handle,i))}else void 0===n&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],Wi(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],Wi(e,t,r.handle));K.isEmpty(r.captureEvents)&&K.isEmpty(r.bubbleEvents)&&(Li.remove(e,"captureEvents"),Li.remove(e,"bubbleEvents"),Li.remove(e,"handle"))}},trigger:function(e){var t=Li.get(e);if(!t.pendoStopped)if(e.bubbles){var n=Ui(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=c.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),Di(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)$i.dispatch(o[i],e);(e=$i.clone(e)).eventPhase=Pi}for(e.eventPhase!==Pi||t.pendoStopped||($i.dispatch(n,e),(e=$i.clone(e)).eventPhase=Gi),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)$i.dispatch(o[i],e)}}else $i.dispatch(Ui(e),e)},clone:function(e){var t=K.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",Li.ownerKey]),e=c.getComposedPath(e);return e&&(t.composedPath=K.constant(e)),t},$:{on:function(e,t,n,i){return K.isFunction(t)&&(i=n,n=t,t=null),e=e.split(" "),this.each(function(r){K.each(e,function(e){$i.add(r,{type:e,selector:t,handler:n,capture:i})})})}}},p=function(){function e(){return window.XMLHttpRequest||ActiveXObject}function t(t){var n=J.defer(),i=new(e())("MSXML2.XMLHTTP.3.0");return i.open(t.method||"GET",t.url,!t.sync),K.each(t.headers,function(e,t){i.setRequestHeader(t.toLowerCase(),e)}),i.onreadystatechange=function(){var e;4===i.readyState&&(e=function(e){var t={status:e.status};try{t.data=JSON.parse(e.responseText)}catch(n){t.data=e.responseText}return t}(i),200<=i.status&&i.status<300?n.resolve(e):n.reject(e))},t.withCredentials&&(i.withCredentials=!0),t.data?i.send(t.data):i.send(),function e(t){var n=t.then,i=t.catch;return t.then=function(){return e(n.apply(this,arguments))},t.catch=function(){return e(i.apply(this,arguments))},t.fail=t.catch,t}(n.promise)}function n(e,n,i){return t({method:"POST",url:e,data:n,headers:i})}return K.extend(t,{get:function(e,n){return t({method:"GET",url:e,headers:n})},post:n,postJSON:function(e,t,i){return(i=i||{})["content-type"]="application/json",n(e,t=JSON.stringify(t),i)},urlFor:function(e,t,n){if(K.isArray(t))i=t;else{if(!K.isObject(t))return e||"";i=K.keys(t)}var i=K.map(i,function(e){return K.isArray(t)?zt(e):zt(e)+"="+zt(t[e])}).join("&"),r=(e=e.split("#",2))[0],o=K.contains(r,"?");return[r,i?(o?"&":"?")+i:"",(n=void 0!==n?n:e[1])?"#"+n:""].join("")},supported:function(){return void 0!==e()}})}(),ji=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},zi=function(){return window.process.resourcesPath||""},Zi=function(){return window.process.env.PWD||""},Vi=function(){return window.process.env.HOME||""},Yi=function(){return window.process.env.npm_package_name||""},Hi=function(){return m.get("annotateUrl")||Qi()||m.get("sanitizeUrl")||m.get(cr)||m.get("xhrWhitelist")},Ki=function(){return Qi()?{href:qi(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},Xi=function(){return new Si(window.location.href)},Ji=function(){var e,t,n,i;return Hi()?(e=Xi(),Qi()&&(e.href=qi(e.href)),ji()?(t=f.electronResourcesPath(),n=f.electronUserDirectory(),i=f.electronAppName(),("https://"+e.href.replace(t,i)).replace(e.origin+n,i).replace(f.electronUserHomeDirectory(),"").replace("file:///","")):pr(e.href)):q.getters["location/href"]()},qi=function(e){return e.match(/(.+?)(?:#|$)/)[1]},Qi=function(){return!0===m.get("ignoreHashRouting")},tr=500;function nr(){return K.isUndefined(er)&&function e(){sr(),er=Dt(e,tr)}(),function(){clearTimeout(er)}}var ir=function(e){var t;try{t=Ji()}catch(e){}return t},rr=[],or=!1,ar=null;function sr(){var e=Ki().href;ar!=e&&(ar=e,K.map(rr,function(t){t(e)}))}var dr=function(e){var t,n=[],i=(X.info("Initializing Pendo URL Watcher"),m.get("location.pushState")&&l.supportsHistoryApi());return or||(i&&(t=window.history,K.each(["pushState","replaceState"],function(e){var i=t[e];t[e]=K.wrap(t[e],function(e){var n=e.apply(t,K.toArray(arguments).slice(1));return Dt(sr,0),n}),n.push(function(){t[e]=i})}),n.push(te(window,"popstate",sr))),l.supportsHashChange()&&n.push(te(window,"hashchange",sr)),!1!==i&&l.supportsHashChange()||n.push(nr()),or=!0),rr.push(e),function(){K.each(n,function(e){e()}),rr.length=0,or=!1}},ur=function(){rr=[]},cr="queryStringWhitelist";function lr(e){var t=m.get("sanitizeUrl");return K.isFunction(t)?t(e):e}function pr(e){e=e||Ki().href;var t=m.get("annotateUrl");if(t)if(K.isFunction(t))try{var n,i,r,o=t();return o&&(K.isObject(o)||K.isArray(o))?(n=o.exclude,i=o.include,r=o.fragment,delete o.fragment,(n&&K.isArray(n)||i&&(K.isArray(i)||K.isObject(i)))&&(n&&(e=fr(e,null,n,!0)),o=i||{}),p.urlFor(e,o,r)):e}catch(e){X.error("customer-provided `annotateUrl` function threw an exception",{error:e})}else X.error("customer-provided `annotateUrl` must be of type: function");return e}function hr(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function fr(e,t,n,i){e=e||ir(),t=t||hr(e).substring(1),o=(r=e.indexOf(t))+t.length;var r=e.substring(0,r),o=e.substring(o);return(r=(t=K.isArray(n)?mr(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var br,gr=function(e,t,n){return n=n||m.get(cr),lr(fr(e,t,n=K.isFunction(n)?n():n,!1))},mr=function(e,t,n){return n&&K.contains(t,"*")?"":(e=vr(e),yr(e=n?K.omit(e,t):K.pick(e,t)))},vr=function(e){return e=e.split("&"),K.reduce(e,function(e,t){return(t=t.split("="))[0]&&(e[t[0]]=t[1]&&jt(t[1])),e},{})},yr=function(e){return K.reduce(e,function(e,t,n){return t&&(n+="="+t),e&&(e+="&"),e+n},"")},f={watch:dr,get:ir,externalizeURL:gr,startPoller:nr,getWindowLocation:Ki,clear:ur,isElectron:ji,electronUserDirectory:Zi,electronAppName:Yi,electronUserHomeDirectory:Vi,electronResourcesPath:zi};function Ir(){var e=m.getLocalConfig("dataHost");return e||((e=m.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:nt)}function wr(){br=Ir()}function Cr(e){e.HOST=br}function Sr(){var e=m.get("contentHost")||m.get("assetHost")||it;return e&&-1===e.indexOf("://")?"https://"+e:e}function Ar(e){return"".concat(Sr(),"/").concat(rt?rt+"/":"").concat(e)}function Tr(){var e=m.get("allowPartnerAnalyticsForwarding",!1)&&m.get("adoptAnalyticsForwarding",!1);return m.get("trainingPartner",!1)||e}var _r=3,Er=1,xr=9,Rr=11,kr=4;function Or(e){return e&&e.nodeType===Er}function ne(e){if(Or(e))try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(e){}}function Nr(e,t){var n;return!(!e||!K.isFunction(e.getPropertyValue))&&(n=[e.getPropertyValue("transform")],void 0!==t&&K.isString(t)&&n.push(e.getPropertyValue("-"+t.toLowerCase()+"-transform")),K.any(n,function(e){return e&&"none"!==e}))}function Mr(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function Lr(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function Fr(e){return K.isNumber(e)?e:0}function Pr(e,t){return e=e.offsetParent,t=t||window,e=e&&e.parentElement===t.document.documentElement&&!Dr(e)?null:e}function Gr(e){return Nr(ne(e),je)&&isNaN(d)}function Dr(e){if(e)return(e=ne(e))&&(K.contains(["relative","absolute","fixed"],e.position)||Nr(e,je))}function Br(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=Dr(t)?t:Pr(t,n),i=t?Wr(t):{top:0,left:0},e=Wr(e),i={top:e.top-i.top,left:e.left-i.left,width:e.width,height:e.height};return t?(t!==n.document.scrollingElement&&(i.top+=Fr(t.scrollTop),i.left+=Fr(t.scrollLeft)),i.top-=Fr(t.clientTop),i.left-=Fr(t.clientLeft)):(i.top+=Mr(n),i.left+=Lr(n)),i.bottom=i.top+i.height,i.right=i.left+i.width,i}function Wr(e){var t;return e?e.getBoundingClientRect?{top:(t=e.getBoundingClientRect()).top,left:t.left,bottom:t.bottom,right:t.right,width:t.width||Math.abs(t.right-t.left),height:t.height||Math.abs(t.bottom-t.top)}:{top:0,left:0,width:e.offsetWidth,height:e.offsetHeight,right:e.offsetWidth,bottom:e.offsetHeight}:{width:0,height:0}}function Ur(){var e=m.get("pendoCore");return void 0===e||e}var $r=Ur(),jr=function(e,t,n){return e=br+"/data/"+e+"/"+t,0<(t=K.map(n,function(e,t){return t+"="+e})).length&&(e+="?"+t.join("&")),e};function zr(){return K.compact([C.apiKey].concat(C.additionalApiKeys))}var Zr=function(e){return e+="v"+at,Yr(jr("log.gif",C.apiKey,{msg:e,version:at}))};function Vr(e){try{var t=br+"/data/errorlog?apiKey="+C.apiKey,n={error:e,version:"v"+at,visitorId:Q()};return(Hr.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):p.postJSON(t,n)).then(function(){X.info("successfully wrote error")},function(e){X.info("error writing error:"+e)})}catch(e){return X.info("Failed to write error to server using POST endpoint: "+e),Zr("Failed to write error to server using POST endpoint: "+e)}}function Yr(e){var t,n;return Qr()?(t=J.defer(),te(n=new Image,"load",t.resolve),te(n,"error",t.reject),n.src=e,t.promise):J.resolve()}function Hr(e,t){return fetch(e,t=K.extend({},{method:"GET",keepalive:!0},t=void 0===t?{}:t))}function Kr(e,t){return navigator.sendBeacon(e,t)}Hr.supported=function(){try{return K.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(e){return!1}},Kr.supported=function(){return K.isFunction(navigator.sendBeacon)};var Xr=!1,Jr=function(){var e=Qr();return Xr=!0,e&&y["transmit:locked"].trigger(),"Pendo Agent locked. No more events will be written."},qr=function(){var e=!Qr();return Xr=!1,e&&y["transmit:unlocked"].trigger(),"Pendo Agent unlocked. Events will be written."},Qr=function(){return!Xr&&$r},eo=function(e,t){try{return RegExp("(\\s|^)"+t+"(\\s|$)").test(ro(e))}catch(e){return!1}},to=function(e,t){try{var n;eo(e,t)||(n=gt.call(ro(e))+" "+t,io(e,n))}catch(e){}},no=function(e,t){try{var n,i;eo(e,t)&&(n=RegExp("(\\s|^)"+t+"(\\s|$)"),i=ro(e).replace(n," "),io(e,i))}catch(e){}},io=function(e,t){K.isString(e.className)?e.className=t:e.setAttribute("class",t)},ro=function(e){try{var t=e.className;return(K.isString(t)||!S(t)?t:e.getAttribute("class"))||""}catch(e){return""}},oo=function(e){return e=(e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()})).substr(0,1).toLowerCase()+e.substr(1)},ao={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},so=function(e,t){co(e,t=uo(t))},uo=function(e){if(K.isString(e)){var t,n,i,r=e.split(";");for(e={},n=0;n<r.length;n++)i=(t=r[n]).indexOf(":"),e[t.substring(0,i)]=t.substring(i+1)}return e},co=function(e,t){K.each(t,function(t,n){if(""!==(n=gt.call(n))){var i=oo(n),r=(!K.isNumber(t)||isNaN(t)||ao[i]?K.isString(t)||(t=""+t):t+="px",t.indexOf("!important"));if(-1!==r)try{var o=gt.call(o.substring(0,r));e.style.setProperty(n,o,"important")}catch(i){e.style.cssText+=";"+n+":"+t}else try{e.style[i]=gt.call(t)}catch(e){X.info("failed to set style: "+n+" with value "+t)}}})},lo=function(){return Qe()?{width:document.documentElement.offsetWidth||0,height:document.documentElement.offsetHeight||0}:{width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}},po=function(e){var t=lo(),n=Mr(),i=Lr();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function ho(e){return K.each(["left","top","width","height"],function(t){e[t]=Math.round(e[t])}),e}function ie(e){var t;return To(e)?((t=Wr(e)).fixed=!0,ho(t)):ho(Br(e,bo()))}var fo=function(e,t){var n;"string"==typeof e?(n=ee(e),K.map(n,function(e){no(e,t)})):no(e,t)},go=function(e,t){var n;"string"==typeof e?(n=ee(e),K.map(n,function(e){to(e,t)})):to(e,t)},mo=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},vo=K.compose(function(e){return Array.prototype.slice.call(e)},function(e,t){try{return s(e,t)}catch(n){return Zr("error using sizzle: "+n),t.getElementsByTagName(e)}}),yo=function(e,t){try{return t.children.length+t.offsetHeight+t.offsetWidth-(e.children.length+e.offsetHeight+e.offsetWidth)}catch(e){return X.info("error interrogating body elements: "+e),Zr("error picking best body:"+e),0}},bo=function(e){e=e||document;try{var t=vo("body",e);return t&&1<t.length?(t.sort(yo),t[0]||e.body):e.body&&e.body.tagName&&"body"!==e.body.tagName.toLowerCase()?e.documentElement:e.body}catch(t){return Zr("Error getting body element: "+t),e.body}};function Io(e,t){if(!e)return[];var n=[];if(e.childNodes)for(var i=0;i<e.childNodes.length;i++){var r=e.childNodes[i];1===r.nodeType&&r!==t&&n.push(r)}return n}function wo(e){return e&&e.parentNode?Io(e.parentNode,e):[]}function Co(e){if(s.contains(document,e))return!0;for(;e&&e.parentNode||c.isElementShadowRoot(e);)e=c.getParent(e);return e===document}var re=function(e){var t=bo();if(null!==e)return e===document||e===window?(t={left:window.pageXOffset||t.scrollLeft,top:window.pageYOffset||t.scrollTop,width:window.innerWidth,height:window.innerHeight}).right=t.left+t.width:(t=ie(e)).right=t.left+t.width,t.bottom=t.top+t.height,t},So=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function Ao(e){for(var t=e&&e.parentNode;t;){if(Nr(ne(t),je))return 1;t=t.parentNode}}function To(e){for(var t,n=e;n;){if(!(t=ne(n)))return;if("fixed"===t.position)return!isNaN(d)||!Ao(n);n=n.parentNode}}var _o=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if(Co(e))for(i=e;i;)if(c.isElementShadowRoot(i))i=i.host;else{if(i===r||!(o=ne(i)))return null;var o,a=o.position;if(i!==e&&t.test(o.overflow+o.overflowY+o.overflowX))return i.parentNode!==r||(o=ne(r))&&!K.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&Ao(i))i=Pr(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function Eo(e,t){return t=t||/(auto|scroll|hidden)/,(e=ne(e))&&"inline"!==e.display?t.test(e.overflowY)&&t.test(e.overflowX)?g.BOTH:t.test(e.overflowY)?g.Y:t.test(e.overflowX)?g.X:t.test(e.overflow)?g.BOTH:g.NONE:g.NONE}var g={X:"x",Y:"y",BOTH:"both",NONE:"none"};function xo(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&Co(e)}function Ro(e){var t=document.createElement("script"),n=document.head||document.getElementsByTagName("head")[0]||document.body;t.type="text/javascript",e.src?t.src=e.src:t.text=e.text||e.textContent||e.innerHTML||"",n.appendChild(t),n.removeChild(t)}function ko(e){var e=Wr(e),t=lo();return K.extend(t,{top:0,left:0,bottom:t.height,right:t.width}),So(t,e)}function Oo(e){var t=K.contains(["A","INPUT","LABEL","SELECT","TEXTAREA","BUTTON","FIELDSET","LEGEND","DATALIST","OUTPUT","OPTION","OPTGROUP"],e.nodeName),n=!!e.tabIndex,i=!e.hidden,e=!e.disabled;return(t||n)&&i&&e}function No(e){if(e){if(K.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function Mo(e,t,n){for(var i=[],r=No(document.documentElement),o=No(_o(t)),a=0;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=No(_o(o)),a++;return function(){K.each(K.compact(i),function(e){e()}),i.length=0}}var Lo='a[href]:not([disabled]):not([tabindex="-1"]), button:not([disabled]):not([tabindex="-1"]), textarea:not([disabled]):not([tabindex="-1"]), input:not([disabled]):not([tabindex="-1"]), select:not([disabled]):not([tabindex="-1"]), [tabindex]:not([tabindex="-1"]), iframe';function Fo(e,t,n){var i=re(t),t=Eo(t,n);if(t!==g.BOTH||So(e,i)){if(t===g.Y&&(e.top>=i.bottom||e.bottom<=i.top)||t===g.X&&(e.left>=i.right||e.right<=i.left))return;return 1}}function Po(e){if(e){if(xo(e))return 1;var t=re(e);if(0!==t.width&&0!==t.height){var n=ne(e);if(!n||"hidden"!==n.visibility){for(var i=e;i&&n;){if("none"===n.display||0>=parseFloat(n.opacity))return;n=ne(i=i.parentNode)}return 1}}}}function b(e,t){if(!Po(e))return!1;if(!xo(e)){for(var n=re(e),i=_o(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!Fo(n,i,t))return!1;i=_o(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=Lr(),e+=Mr()),o<=0||e<=0)return!1}}return!0}function Go(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,d=re(e),u=_o(e,s);if(!Po(e))return!1;for(;u;){if(t=re(u),(o=Eo(u,a))!==g.NONE&&(i=n=0,o!==g.Y&&o!==g.BOTH||(d.bottom>t.bottom&&(n+=d.bottom-t.bottom,d.top-=n,d.bottom-=n),d.top<t.top&&(n-=r=t.top-d.top,d.top+=r,d.bottom+=r)),o!==g.X&&o!==g.BOTH||(d.right>t.right&&(i+=d.right-t.right,d.left-=i,d.right-=i),d.left<t.left&&(i-=r=t.left-d.left,d.left+=r,d.right+=r))),!Fo(d,u,s))return!1;u=_o(u,s)}return!0}function Do(e){for(var t,n,i,r,o,a=/(auto|scroll)/,s=bo(),d=_o(e,a);d&&d!==s;)t=re(e),n=re(d),r=i=0,t.bottom>n.bottom&&(i+=t.bottom-n.bottom,t.top-=i,t.bottom-=i),t.top<n.top&&(i-=o=n.top-t.top,t.top+=o,t.bottom+=o),t.right>n.right&&(r+=t.right-n.right,t.left-=r,t.right-=r),t.left<n.left&&(r-=o=n.left-t.left,t.left+=o,t.right+=o),K.isFunction(d.scrollBy)?d.scrollBy(r,i):(d.scrollTop+=i,d.scrollLeft+=r),d=_o(d,a)}var Bo={};function Wo(e){if(!e)return!1;if(e===window.location.origin||e===Ir()||e===Sr())return!0;var t=[/^https:\/\/(app|via|adopt)(\.eu|\.us|\.jpn|\.hsbc|\.au)?\.pendo\.io$/,/^https:\/\/((adopt\.)?us1\.)?(app|via|adopt)\.pendo\.io$/,/^https:\/\/([0-9]{8}t[0-9]{4}-dot-)pendo-(io|eu|us1|jp-prod|hsbc|au)\.appspot\.com$/,/^https:\/\/hotfix-(ops|app)-([0-9]+-dot-)pendo-(io|eu|us1|jp-prod|hsbc|au)\.appspot\.com$/,/^https:\/\/pendo-(io|eu|us1|jp-prod|hsbc|au)-static\.storage\.googleapis\.com$/,/^https:\/\/(us1\.)?cdn(\.eu|\.jpn|\.hsbc|\.au)?\.pendo\.io$/],n=(pt()||(t=t.concat([/^https:\/\/([a-zA-Z0-9-]+\.)*pendo-dev\.com$/,/^https:\/\/([a-zA-Z0-9-]+-dot-)?pendo-(dev|test|io|us1|jp-prod|hsbc|au|batman|magic|atlas|wildlings|ionchef|mobile-guides|mobile-hummus|mobile-fbi|mobile-plat|eu|eu-dev|apollo|security|perfserf|freeze|armada|voc|mcfly|calypso|dap|scrum-ops|ml|helix|uat)\.appspot\.com$/,/^https:\/\/via\.pendo\.local:\d{4}$/,/^https:\/\/adopt\.pendo\.local:\d{4}$/,/^https:\/\/local\.pendo\.io:\d{4}$/,RegExp("^https://pendo-"+tt+"-static\\.storage\\.googleapis\\.com$")])),m.get("adoptHost"));return!!n&&e==="https://"+n||!!K.contains(m.get("allowedOriginServers",[]),e)||K.any(t,function(t){return t.test(e)})}function Uo(e){var t;if(K.isString(e))return t=(t=hr(e).substring(1))&&t.length?vr(t):{},e=K.last(K.first(e.split("?")).split("/")).split("."),{filename:K.first(e),extension:e.slice(1).join("."),query:t}}function $o(e){return K.isString?e.replace(/-/g,"+").replace(/_/g,"/"):e}function jo(e,t){var n;m.get("guideValidation")&&l.sri&&(n=Uo(t),t=K.find(["sha512","sha384","sha256"],function(e){return!!n.query[e]}))&&(e.integrity=t+"-"+$o(n.query[t]),e.setAttribute("crossorigin","anonymous"))}Bo.$={findOrCreate:function(e){return 0<this.length?this:ee(e)},find:function(e){var t=ee();return t.context=this.context,this.each(function(){ee(e,this).each(function(){t[t.length++]=this})}),t},each:function(e){for(var t=0,n=this.length;t<n;++t)e.call(this[t],this[t],t);return this},html:function(e){return void 0===e?this.length?this[0].innerHTML:this:this.each(function(){this.innerHTML=e})},text:function(e){var t="innerText"in document.body;return void 0===e?t?this.length?this[0].innerText:this:this.length?this[0].textContent:this:this.each(function(){so(this,{"white-space":"pre-wrap"}),t?this.innerText=e:this.textContent=e})},addClass:function(e){return e=e.split(/\s+/),this.each(function(t){K.each(e,function(e){to(t,e)})})},removeClass:function(e){return e=e.split(/\s+/),this.each(function(t){K.each(e,function(e){no(t,e)})})},hasClass:function(e){e=e.split(/\s+/);var t=!0;return 0!==this.length&&(this.each(function(n){K.each(e,function(e){t=t&&eo(n,e)})}),t)},toggleClass:function(e){return e=e.split(/\s+/),this.each(function(t){K.each(e,function(e){(eo(t,e)?no:to)(t,e)})})},css:function(e){return this.each(function(){so(this,e)}),this},appendTo:function(e){return ee(e).append(this),this},append:function(e){var t=this;return ee(e).each(function(){t.length&&t[0].appendChild(this),Co(this)&&K.each(s("script",this),Ro)}),t},prependTo:function(e){return ee(e).prepend(this),this},prepend:function(e){var t,n;return this.length&&(n=(t=this[0]).childNodes[0],ee(e).each(function(){n?ee(this).insertBefore(n):ee(this).appendTo(t)})),this},getParent:function(){var e=ee(this)[0];if(e&&e.parentNode)return ee(e.parentNode)},insertBefore:function(e){(e=ee(e)[0])&&e.parentNode&&(e.parentNode.insertBefore(this[0],e),Co(document))&&K.each(s("script",this[0]),Ro)},remove:function(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),this},attr:function(e,t){return K.isObject(e)?(this.each(function(){K.each(e,function(e,t){this.setAttribute(t,e)},this)}),this):void 0!==t?(this.each(function(){this.setAttribute(e,t)}),this):0<this.length?this[0].getAttribute(e):void 0},closest:function(e,t){for(var n=this[0];n&&!s.matchesSelector(n,e);)if((n=xi(n))===document||t&&s.matchesSelector(n,t))return ee();return ee(n)},eq:function(e){return ee(this[e])},height:function(e){if(this.length)return void 0===e?this[0].offsetHeight:(this[0].style.height=e+"px",this)},width:function(e){if(this.length)return void 0===e?this[0].offsetWidth:(this[0].style.width=e+"px",this)},focus:function(){return this.each(function(){K.isFunction(this.focus)&&this.focus()})}},K.extend(ee,{data:Li,event:$i,removeNode:mo,getClass:ro,hasClass:eo,addClass:go,removeClass:fo,getBody:bo,getComputedStyle:ne,getClientRect:re,intersectRect:So,getScrollParent:_o,isElementVisible:b,scrollIntoView:Do,getRootNode:No}),K.extend(ee.prototype,$i.$,Bo.$);var Jo,zo=function(e){var t=0===m.get("allowedOriginServers",[]).length,n=Tr();return!(!t&&!n&&ht(tt,he()))||Wo(e)},Zo=function(e){return new Si(e).origin},Vo=function(e,t,n){void 0===n&&(n=!1);try{var i,r="text/css",o="text/javascript";if(K.isString(e)&&(e={url:e}),!zo(Zo(e.url)))throw Error();e.type=e.type||/\.css/.test(e.url)?r:o;var a=null,s=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0];if(e.type===r){var d=document.createElement("link");d.type=r,d.rel="stylesheet",d.href=e.url,jo(d,e.url),a=d}else{if(Mt())return(i=document.createElement("script")).addEventListener("load",function(){t(),mo(i)}),i.type=o,i.src=Te(C).createScriptURL(e.url),jo(i,e.url),document.body.appendChild(i),{};(i=document.createElement("script")).type=o,i.async=!0,i.src=Te(C).createScriptURL(e.url),jo(i,e.url),a=i,t=K.wrap(t,function(e,t){ee.removeNode(i),t?n&&e(t):e.apply(this,K.toArray(arguments).slice(1))})}return s.appendChild(a),Yo(a,e.url,t),a}catch(e){return{}}},Yo=function(e,t,n){var i=!1;S(n)&&(e.onload=function(){!0!==i&&(i=!0,n(null,t))},e.onerror=function(){!0!==i&&(i=!0,n(Error("Failed to load script"),t))},e.onreadystatechange=function(){i||e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(i=!0,n(null,t))},"link"===e.tagName.toLowerCase())&&(Dt(function(){var e;i||((e=new Image).onload=e.onerror=function(){!0!==i&&(i=!0,n(null,t))},e.src=t)},500),Dt(function(){i||Zr("Failed to load "+t+" within 10 seconds")},1e4))},Ho=function(e){var t=JSON.parse(e.data),n=e.origin;X.debug(C.app_name+": Message: "+JSON.stringify(t)+" from "+n),ga(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},Ko=function(e){qo(oa)(Xo(e))},Xo=function(e){if(e.data)try{var t="string"==typeof e.data?JSON.parse(e.data):e.data,n=e.origin,i=e.source;if(!t.action&&!t.mutation){if(t.type&&"string"==typeof t.type)return{data:t,origin:n,source:i};X.debug("Invalid Message: Missing 'type' in data format")}}catch(e){}};function qo(e){return function(t){if(t&&Wo(t.origin))return e.apply(this,arguments)}}function Qo(e){Jo=e}var ea=function(e){fa(e.moduleURL)},ta=function(e){ba(Ho)},na={disconnect:function(e){},module:ea,debug:ta},ia=function(e,t){na[e]=t},ra=function(e){delete na[e]},oa=function(e){var t;e&&(t=e.data)&&S(na[t.type])&&na[t.type](t,e)},aa={},sa=function(e){if(aa[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(e){}},da=function(e){return S(aa[e])},ua=function(e){if(aa){for(var t in aa)if(0<=t.indexOf(e))return t}return null},ca=[],la=function(){var e;ca.length<1||da(e=ca.shift())||Vo(e,function(){sa(e),la()})};function pa(e){var t={"/js/lib/ckeditor/ckeditor.js":1},n=(K.each(["depres.js","tether.js","sortable.js","selection.js","selection.css","html2canvas.js","ckeditor/ckeditor.js"],function(e){t["/modules/pendo.designer/plugins/"+e]=1,t["/engage-app-ui/assets/classic-designer/plugins/"+e]=1}),(e=e.replace(/^https:\/\//,"")).substring(0,e.indexOf("/"))),e=e.substring(e.indexOf("/"));return Wo("https://"+n)&&t[e]}function ha(e){return e.replace(/^[a-zA-Z-:]*\/\//,"https://")}var fa=function(e){pa(e=ha(e))&&(ca.push(e),1<ca.length||la())},ga=function(e,t,n){var i,r=K.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=Jo||va(),n="*"),t.guid=r,e&&K.isFunction(e.postMessage)&&(i=JSON.stringify(t),e.postMessage(i,n))}catch(e){t=e&&e.message||"",X.info("Failed to postMessage: "+t)}return r},ma=function(){return window!=window.top},va=function(){var e=RegExp("^"+rn(br).replace(/^https?:/,"https?:")),t=m.get("forceParentDesigner");return!pt()&&t||e.test(location.href)?window.parent:window.top},ya=function(){ma()&&ga(va(),{type:"load",url:location.toString()},"*")},ba=function(e){var t;return S(window.addEventListener)&&K.isFunction(window.addEventListener)&&(t=qo(e),window.addEventListener("message",t,!1)),function(){S(window.removeEventListener)&&K.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},Ia=K.memoize(function(){return m.get("restrictP1Access")}),wa=[],Ca=[],Sa=12e4,Aa=16,Ta=1900,_a=65536,Ea=function(e){return!(!e||""===e)},xa=function(){return f.get()},Ra={flush:K.noop,flushBy:K.noop,flushEvents:La,flushTrackEvents:La,flushSilos:La,flushTrackEventSilos:La,flushBeacons:La,flushNow:La,flushLater:Fa,flushEvery:Pa,flushStop:Ga,beacons:[],silos:[],trackEventSilos:[],lock:Jr,unlock:Ba},ka=[];function Oa(e){ka.push(e)}function Na(e){0<=(e=ka.indexOf(e))&&ka.splice(e,1)}function Ma(e,t){var n;return e[t=parseInt(t,10)||0]||(n=Dt(function(){e(),e[t]()},t),e[t]=function(){window.clearTimeout(n),delete e[t]})}function La(e,t){try{K.each(ka,function(e){e.flush&&e.flush(t)})}catch(e){X.critical("unhandled error while flushing event cache",{error:e})}}function Fa(e){return Ma(K.partial(La,!0),e)}function Pa(e){var t;if(e=parseInt(e,10)||0,K.isObject(Pa.intervals)||(Pa.intervals={}),!Pa.intervals[e])return t=window.setInterval(La,e),Pa.intervals[e]=function(){clearInterval(t),delete Pa.intervals[e]}}function Ga(){var e=K.values(Pa.intervals).concat([La]);K.map(e,function(e){K.isFunction(e)&&e()})}function Da(){K.each(ka,function(e){e.clear&&e.clear()}),Ga()}function Ba(){if(!Qr())return Da(),qr()}function Wa(e){return e=atob(e),Uint8Array.from(e,function(e){return e.codePointAt(0)})}function Ua(e){return K.isString(e)&&/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/.test(e)}function $a(e){try{return window.TextDecoder?JSON.parse((new TextDecoder).decode(Wa(e.split(".")[1]))):JSON.parse(atob(e.split(".")[1]))}catch(e){return null}}function ja(e,t){return t=t?t+": ":"",e.jwt||e.signingKeyName?e.jwt&&!e.signingKeyName?(X.debug(t+"The jwt is supplied but missing signingKeyName."),!1):e.signingKeyName&&!e.jwt?(X.debug(t+"The signingKeyName is supplied but missing jwt."),!1):!!Ua(e.jwt)||(X.debug(t+"The jwt is invalid."),!1):(X.debug(t+"Missing jwt and signingKeyName."),!1)}var za=function(){var e=null;return{set:function(t){e=JSON.parse(JSON.stringify(t||{}))},get:function(){return null!==e?e:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!m.get("enableSignedMetadata")&&(n=ja(e,t),m.get("requireSignedMetadata")&&!n?(X.debug("Pendo will not "+t+"."),!1):n?$a(e.jwt):void X.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}}}(),Za=6,Va=100,Ya=function(){function e(e,t){void 0===t&&(t=Va),this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}return e.prototype.isEmpty=function(){return this.queue.length<=0},e.prototype.stop=function(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer},e.prototype.start=function(){this.stopped=!1},e.prototype.push=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.queue).push.apply(e,t),this.next()},e.prototype.next=function(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)},e.prototype.incrementFailure=function(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t},e.prototype.pass=function(e,t){void 0===t&&(t=!0),this.unloads.delete(e),this.pending.delete(e),this.failures.clear(),0<=(e=this.queue.indexOf(e))&&this.queue.splice(e,1),!this.stopped&&t&&this.next()},e.prototype.fail=function(e,t){void 0===t&&(t=!0),this.unloads.delete(e),this.pending.delete(e);var n=this.incrementFailure(e);!this.stopped&&t&&(n>=this.maxFailures&&(this.onTimeout&&this.onTimeout(),this.pass(e,!1)),this.retryLater(1e3*Math.pow(2,Math.min(n-1,Za))))},e.prototype.retryLater=function(e){var t=this;this.timer=Dt(function(){delete t.timer,t.next()},e)},e.prototype.failed=function(){return 0<this.failures.get(this.queue[0])&&null!=this.timer},e.prototype.send=function(e,t,n){var i=this;return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(function(){return i.pass(e,n)},function(){return i.fail(e,n)})},e.prototype.drain=function(e,t){var n;if(void 0===t&&(t=!0),(n=this.queue).push.apply(n,e),this.failed())return Vt.reject();for(var i=[],r=0,o=this.queue;r<o.length;r++){var a=o[r];this.pending.has(a)?this.retryPending&&t&&!this.unloads.has(a)&&(this.incrementFailure(a),i.push(this.send(a,t,!1))):i.push(this.send(a,t,!1))}return Vt.all(i)},e}(),Ha="_PENDO_UNNAMED_",Ka=5;function Xa(e,t,n,i,r,o){return n={type:e,browser_time:v(),visitor_id:Q({generate:!0}),account_id:fi(),url:f.externalizeURL(n),props:t||{},eventProperties:r},n=Dn.addTracerIds(n),"track"===e&&(n.track_event_name=i||Ha),y.eventCaptured.trigger(n,o),n}function Ja(){var e=m.get("dropAnonymous"),t=Xn(Q());return $r&&(!e||!t)}function qa(e,t,n,i,r,o){Ja()&&Ea((t=Xa(e,t,n,i,r,o)).url)&&ts(t)&&("track"===e?Vs.push(t):Zs.push(Qa(q,t)))}function Qa(e,t){try{if(!e.getters["monitoring/shouldFlush"]())return t;var n=e.getters["monitoring/payload"]();e.dispatch("monitoring/flush"),K.isEmpty(n)||(t.ops=n)}catch(e){}return t}var es=["load","meta","identify"];function ts(e){return!m.get("freeNPSData")||K.contains(es,e.type)}function ns(){var e=K.toArray(arguments);return function(t,n){var i=e.concat([n]);!function e(t,n){t<i.length&&i[t](n,function(n){e(t+1,n)})}(0,t)}}var is=0;function rs(e,t){e.sequence=is++,t(e)}function os(e,t){var n=t;return function(t,i){i(n=e(n,t))}}function as(e){return os(function(e,t){return e.push(t),e},e)}function ss(e,t){return Tr()?ds("account_id")(e,t):t(e)}function ds(e){return function(t,n){if(!t.length)return n(t);for(var i=K.get(t[0],e),r=!0,o=1;o<t.length;o++)if(i!==K.get(t[o],e)){r=!1;break}if(r)return n(t);var a=t.slice(0,o),s=t.slice(o);n(a),n(s)}}function us(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function cs(e,t,n){return Math.ceil(e/(t=n[t-1]||K.last(n)))}function ls(e,t){for(var n,i=0,r=(K.isFunction(t.overhead)?t.overhead:K.constant(0))(),o=0;o<e.length;++o){if(cs(n=us(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(cs(i+n,o+1,t.compressionRatio)+r>t.upper)return o;i+=n}if(!(0<o))for(o=i=0;o<e.length;++o){if(cs(i+(n=us(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return -1}function ps(){var e=za.get();return K.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}function hs(e){return function(t,n){for(var i=ls(t,e);0<=i;)n(t.splice(0,Math.max(i,1))),i=ls(t,e)}}var fs=2e3;function gs(e){return e=K.defaults(e||{},{fields:[],siloMaxLength:_a}),function(t,n){var i;1===t.length&&t.JZB.length>e.siloMaxLength&&(i=t[0],X.debug("Max length exceeded for an event"),K.each(e.fields,function(e){var n=i[e];n&&n.length>fs&&(X.debug("shortening "+n+" and retrying"),i[e]=n.substring(0,fs),delete t.JZB)})),n(t)}}function ms(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=C.squeezeAndCompress(e.slice()),e.JZB.length<=_a)||1===e.length?t(e):(n=e.length/2,ms(e.slice(0,n),t),void ms(e.slice(n),t))}function vs(e,t){Qr()&&t(e)}function ys(){return function(e,t){1===e.length&&e.JZB.length>_a?(X.debug("Couldn't write event"),Zr("Single item is: "+e.JZB.length+". Dropping."),Vr(e.JZB)):t(e)}}function bs(e){return K.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey)}function Is(e,t){return jr(t.beacon+".gif",e,K.extend({v:at,ct:v(),jzb:t.JZB},t.params,t.auth))}function ws(e,t){return jr(t.beacon+".gif",e,K.extend({v:at,ct:v(),s:t.JZB.length},t.params))}function Cs(e){return function(t,n){t.params=K.extend({},t.params,e.params),t.beacon=e.beacon,t.eventLength=t.JZB.length;var i=za.get();K.isEmpty(i)||(t.auth=i,t.eventLength+=i.jwt.length,t.eventLength+=i.signingKeyName.length),n(t)}}function Ss(e,t){var n=Tr(),i=K.first(e),i=K.get(i,"account_id");n&&i&&(e.params=K.extend({},e.params,{acc:xt(i)})),t(e)}function As(e,t){var n=K.first(e),n=K.get(n,"props.source");n&&(e.params=K.extend({},e.params,{source:n})),t(e)}function Ts(e){return JSON.stringify(K.extend({events:e.JZB},e.auth))}function _s(e,t){return Yr(Is(e,t))}function Es(e){return e.status<200||300<=e.status?J.reject(Error("received status code ".concat(e.status,": ").concat(e.statusText))):J.resolve()}function xs(e,t){return Hr(Is(e,t)).then(Es)}function Rs(e,t){return fetch(ws(e,t),{method:"POST",keepalive:!0,body:Ts(t),headers:{"Content-Type":"application/json"}}).then(Es)}function ks(e,t){var n=Ts(t);return Kr(ws(e,t),n)?J.resolve():J.reject()}function Os(e,t){return p({method:"GET",url:Is(e,t)})}function Ns(e,t){return p({method:"POST",url:ws(e,t),data:Ts(t),headers:{"Content-Type":"application/json"}})}function Ms(e,t){return p({method:"GET",url:Is(e,t),sync:!0})}function Ls(e,t){return p({method:"POST",url:ws(e,t),data:Ts(t),sync:!0,headers:{"Content-Type":"application/json"}})}function Fs(e){return function(t,n){return n.JZB?n.eventLength<=Ta&&!m.get("sendEventsWithPostOnly")?(e.preferFetch&&!n.auth&&Hr.supported()?xs:n.auth?Os:_s)(t,n):e.allowPost&&n.eventLength<=_a?(Hr.supported()?Rs:Kr.supported()?ks:Ns)(t,n):J.resolve():J.resolve()}}function Ps(e){return function(t,n){if(n.JZB){if(n.eventLength<=Ta&&!m.get("sendEventsWithPostOnly",!1)){if(!n.auth&&Hr.supported())return xs(t,n);if(l.msie<=11)return Ms(t,n)}if(n.eventLength<=_a&&e.allowPost){if(Hr.supported())return Rs(t,n);if(Kr.supported())return ks(t,n);if(l.msie<=11)return Ls(t,n)}}return J.resolve()}}function Gs(e){return ns(vs,ss,ms,gs(e.shorten),ms,ys(),Cs(e),Ss,As)}var Ds=function(){function e(e){this.queues=e}return e.prototype.isEmpty=function(){return K.all(this.queues,function(e){return e.isEmpty()})},e.prototype.stop=function(){K.each(this.queues,function(e){return e.stop()})},e.prototype.push=function(){var e=K.toArray(arguments);K.each(this.queues,function(t){return t.push.apply(t,e)})},e.prototype.drain=function(){var e=K.toArray(arguments);return J.all(K.map(this.queues,function(t){return t.drain.apply(t,e)}))},e}();function Bs(e,t,n){t=t||Fs(e),n=n||Ps(e);var i=bs(e),i=K.map(i,function(i){var r=new Ya(function(e,r,o){return o&&(e.params=K.extend({},e.params,{rt:o})),(r?n:t)(i,e)});return r.onTimeout=function(){q.commit("monitoring/incrementCounter",e.beacon+"GifFailures")},r.retryPending=!0,r});return new Ds(i)}function Ws(e){return function(t,n){var i=m.get("excludeNonGuideAnalytics");"ptm"===e&&i||n(t)}}function Us(e,t){var n=m.get("analytics.excludeEvents");0<=K.indexOf(n,e.type)||t(e)}var js,zs,Zs,Vs,$s=function(){function e(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=Bs(e)}return e.prototype.pause=function(e){var t=this,n=(void 0===e&&(e=1e4),K.uniqueId()),i=this.locks,r=(i[n]=1,function(){i[n]&&(clearTimeout(o),delete i[n],t.flush())}),o=Dt(r,e);return r},e.prototype.push=function(e){var t=this;this.packageSilos(e,function(e){t.silos.push(e)})},e.prototype.clear=function(){this.cache.length=0,this.silos.length=0,this.sendQueue.stop()},e.prototype.flush=function(e){var t,e=void 0===e?{}:e,n=e.unload,n=void 0!==n&&n,e=e.hidden,e=void 0!==e&&e,i=this.cache,r=this.silos;0===i.length&&0===r.length&&this.sendQueue.isEmpty()||K.isEmpty(this.locks)&&(r.push(i.slice()),i.length=0,i=r.slice(),r.length=0,t=[],K.each(i,function(e){this.processSilos(e,function(e){t.push(e)})},this),n||e?this.sendQueue.drain(t,n):(r=this.sendQueue).push.apply(r,t))},e}();function Ys(e){var t=Gs(e),n=ns(Ws(e.beacon),Us,rs,as(e.cache),hs({overhead:ps,lower:m.get("sendEventsWithPostOnly")?_a:Ta,upper:_a,compressionRatio:[.5*Ka,.75*Ka,Ka]}));return new $s(K.extend({processSilos:t,packageSilos:n},e))}function Hs(){return js=Ra.events=wa,zs=Ra.trackEvents=Ca,Zs=Ys({cache:js,silos:Ra.silos,apiKey:zr,beacon:"ptm",allowPost:!0}),Vs=Ys({cache:zs,silos:Ra.trackEventSilos,apiKey:zr,beacon:"ptm",allowPost:!0,params:{type:"track"}}),Oa(Zs),Oa(Vs),function(){Da(),Na(Zs),Na(Vs)}}var Ks=wi(function(e){var t,n;if((e=e||f.get())&&e!==Ks.lastUrl)return Ks.lastUrl=e,n=-1,Ia()||ya(),X.debug("sending load event for url "+e),t={load_time:n="undefined"!=typeof performance&&K.isFunction(performance.getEntriesByType)&&!K.isEmpty(performance.getEntriesByType("navigation"))?(t=performance.getEntriesByType("navigation")[0]).loadEventStart-t.fetchStart:n},ma()&&(t.is_frame=!0),"*"!==(n=on())&&(t.allowed_storage_keys=K.keys(n)),qa("load",t,e),Fa(),y.urlChanged.trigger(),!0});function Xs(e){return"hidden"===e.visibilityState}Ks.reset=function(){Ks.lastUrl=null};var Js="visibilitychange",qs="pagehide",Qs="unload";function ed(e,t){var n;return t?((n=[]).push(te(document,Js,function(){Xs(document)&&e(!0,!1)})),n.push(te(window,qs,K.partial(e,!1,!0))),function(){return K.each(n,function(e){e()})}):te(window,Qs,K.partial(e,!0,!0))}function td(){this.serializers=K.toArray(arguments)}function nd(e,t){return e.tag=c.isElementShadowRoot(t)?"#shadow-root":t.nodeName||"",e}function id(e){return S(e)?""+e:""}function rd(e,t){return e.id=id(t.id),e}function od(e,t){return e.cls=id(ee.getClass(t)),e}K.extend(td.prototype,{add:function(e){this.serializers.push(e)},remove:function(e){0<=(e=K.indexOf(this.serializers,e))&&this.serializers.splice(e,1)},serialize:function(e,t){return e?(t=t||e,K.reduce(this.serializers,function(n,i){return i.call(this,n,e,t)},{},this)):{}}});var ad=256,sd=64,dd={a:{events:["click"],attr:["href"]},button:{events:["click"],attr:["value","name"]},img:{events:["click"],attr:["src","alt"]},select:{events:["mouseup"],attr:["name","type","selectedIndex"]},textarea:{events:["mouseup"],attr:["name"]},'input[type="submit"]':{events:["click"],attr:["name","type","value"]},'input[type="button"]':{events:["click"],attr:["name","type","value"]},'input[type="radio"]':{events:["click"],attr:["name","type"]},'input[type="checkbox"]':{events:["click"],attr:["name","type"]},'input[type="password"]':{events:["click"],attr:["name","type"]},'input[type="text"]':{events:["click"],attr:["name","type"]}},ud=function(e){return e&&0===e.indexOf("data:")?(X.debug("Embedded data provided in URI."),e.substring(0,e.indexOf(","))):e+""};function cd(e,t){return e.getAttribute?e.getAttribute(t):e[t]}var ld=function(e,t,n){var i;return e&&e.nodeName?"img"==(i=e.nodeName.toLowerCase())&&"src"==t||"a"==i&&"href"==t?lr(ud(i=e.getAttribute(t))):(i=cd(e,t),(!n||typeof i===n)&&i?K.isString(i)?gt.call(i).substring(0,ad):i:null):null};function pd(e){var t,n,i;return K.isRegExp(e)&&K.isFunction(e.test)?function(t){return e.test(t)}:K.isArray(e)?(t=K.map(K.filter(e,K.isObject),function(e){var t;return e.regexp?(t=(t=/\/([a-z]*)$/.exec(e.value))&&t[1]||"",new RegExp(e.value.replace(/^\//,"").replace(/\/[a-z]*$/,""),t)):RegExp("^"+e.value+"$","i")}),function(e){return K.any(t,function(t){return t.test(e)})}):K.isObject(e)&&e.regexp?(n=(n=/\/([a-z]*)$/.exec(e.value))&&n[1]||"",i=new RegExp(e.value.replace(/^\//,"").replace(/\/[a-z]*$/,""),n),function(e){return i.test(e)}):K.constant(!1)}function hd(e,t,n,i){try{var r,o=K.indexBy(t),a=K.filter(K.filter(e,function(e){return n(e.nodeName)||o[e.nodeName]}),function(e){return!i(e.nodeName)});return a.length<=sd?K.pluck(a,"nodeName"):(r=K.groupBy(e,function(e){return o[e.nodeName]?"defaults":K.isString(e.value)&&e.value.length>ad?"large":"small"}),K.pluck([].concat(K.sortBy(r.defaults,"nodeName")).concat(K.sortBy(r.small,"nodeName")).concat(K.sortBy(r.large,"nodeName")).slice(0,sd),"nodeName"))}catch(e){return X.error("Error collecting DOM Node attributes: ".concat(e)),[]}}function fd(e,t){var n=pd(m.get("htmlAttributes")),i=pd(m.get("htmlAttributeBlacklist")),r=(i("title")||(e.title=ld(t,"title","string")),(e.tag||"").toLowerCase()),r=("input"===r&&(r+='[type="'+t.type+'"]'),e.attrs={},hd(t.attributes,dd[r]&&dd[r].attr,n,i));return K.each(r,function(n){e.attrs[n.toLowerCase()]=ld(t,n)}),e}function gd(e,t){var n;return t.parentNode&&t.parentNode.childNodes&&(e.myIndex=(n=K.chain(t.parentNode.childNodes)).indexOf(t).value(),e.childIndex=n.filter(function(e){return e.nodeType==Er}).indexOf(t).value()),e}function md(e,t){var n;return m.get("siblingSelectors")&&t.previousElementSibling&&(n="_pendo_sibling_",this.remove(md),t=this.serialize(t.previousElementSibling),this.add(md),e.attrs=e.attrs||{},K.each(t,function(t,i){var r={cls:"class",txt:"pendo_text"}[i]||i;K.isEmpty(t)||(K.isObject(t)?K.each(t,function(t,i){t&&!K.isEmpty(t)&&(e.attrs[n+r+"_"+i]=t)}):e.attrs[n+r]=t)})),e}function vd(){return new td(nd,rd,od,fd,gd,md)}var yd=vd(),bd=function(e){return"BODY"===e.nodeName&&e===bo()||null===e.parentNode&&!c.isElementShadowRoot(e)},Id="pendo-ignore",wd="pendo-analytics-ignore",Cd=function(e){var t={},n=t,i=e,r=!1;if(!e)return t;do var o=i,a=yd.serialize(o,e);while(!r&&(Nt(a.cls,Id)||Nt(a.cls,wd))&&(r=!0),n.parentElem=a,n=a,(i=c.getParent(o))&&!bd(o))return r&&(t.parentElem.ignore=!0),t.parentElem},Sd=["","left","right","middle"],Ad=function(e,t){return Sd[t]},Td=function(){return!0},_d=function(e){return e.which||e.button},Ed=function(e){return e},xd=function(e,t){return e[t]},Rd=[["button",_d,Td,Ad],["altKey",xd,Ed,Ed],["ctrlKey",xd,Ed,Ed],["metaKey",xd,Ed,Ed],["shiftKey",xd,Ed,Ed]],kd=function(e,t){for(var n=[],i=0;i<Rd.length;i++){var r=Rd[i],o=r[0],a=r[1],s=r[2],r=r[3],a=a(e,o);s(a)&&n.push(r(o,a))}return t.flags=n,t},Od={click:kd},Nd=function(e){return e.nodeType===_r?e.parentNode:e.nodeType===kr?null:e.correspondingUseElement||e},Md=function(e){try{var t,n,i,r,o,a;ee.data.get(e,"counted")||(ee.data.set(e,"counted",!0),t=Ui(e),n=e.type,i={},(r=Od[n])&&(i=r(e,i)),ee.data.get(e,"stopped")&&(i.stopped=!0),e.from&&K.isString(e.from)&&(i.from=e.from),(t=Nd(t))?(o=Cd(t),K.extend(o,i),Ks()&&f.startPoller(),o.ignore||(a=void 0,"click"===n&&(a=Ld(t)),qa(n,{target:o},void 0,void 0,a,e),y.trigger("appUsage",o,e))):X.info("Invalid HTML target",{contexts:["event","dom","processing"]}))}catch(e){X.critical("pendo.io while handling event",{error:e})}};function Ld(e){if(e=Fd(e),y.onClickCaptured.trigger(e),e=e.getEventProperties(),!K.isEmpty(e))return e}function Fd(e){var t={};return{getEventProperties:function(){return t},addEventProperty:function(e,n){K.isString(e)&&!K.isUndefined(n)?t[e]=n:X.error("Failed to add click event property")},target:e}}var Pd=function(e){var t=K.map(e,function(e){return I(document,e,Md,!0)});return function(){K.each(t,function(e){e()})}},Gd=5e3,Dd=K.debounce(Md,Gd,!0),Bd=function(e){var t=[],n=(K.contains(e=e||["click","focus","submit","change"],"change")&&(e=K.without(e,"change"),t.push(function(){Dd.cancel()}),t.push(te(document,"change",Dd,!0))),m.get("interceptElementRemoval")||m.get("syntheticClicks.elementRemoval")),i=m.get("syntheticClicks.targetChanged"),n=(t.push(Wd(ee.event.trigger,l.addEventListener,n,i).teardown),t.push(Pd(e)),t.push(ed(function(e,t){t&&y.appUnloaded.trigger(),e&&y.appHidden.trigger()},m.get("preventUnloadListener"))),y.appHidden.on(function(){La(!0,{hidden:!0})}),y.appUnloaded.on(function(){La(!0,{unload:!0})}),m.get("interceptStopPropagation",!0)),i=m.get("interceptPreventDefault",!0);return n&&t.push(jd(window.Event,e)),i&&t.push(zd(window.Event,["touchend"])),function(){K.each(t,function(e){e()})}};function Wd(e,t,n,i){var r,o,a=[],s=l.hasEvent("pointerdown"),d=s?"pointerdown":"mousedown",s=s?"pointerup":"mouseup",u=[],c={cloneEvent:function(e){return(e=ee.event.clone(e)).type="click",e.from=d,e.bubbles=!0,e},down:function(e){o=!1,e&&(r=c.cloneEvent(e),n)&&c.intercept(e)},up:function(t){o=!1,t&&r&&i&&Ui(r)!==Ui(t)&&(o=!0,e(r))},click:function(e){r=null,o&&ee.data.set(e,"ignore",!0),o=!1,n&&c.unwrap()},intercept:function(e){e=Ud(Ui(e)),K.each(e,function(e){e=$d(e,c.remove),a.push(e)})},remove:function(){r&&(e(r),r=null),c.unwrap()},unwrap:function(){0<a.length&&(K.each(a,function(e){e()}),a=[])},teardown:function(){c.unwrap(),K.each(u,function(e){e()})}};return t&&(u.push(te(document,d,c.down,!0)),u.push(te(document,s,c.up,!0)),u.push(te(document,"click",c.click,!0))),c}function Ud(e){for(var t=[];e&&!bd(e);)t.push(e),e=e.parentNode;return t}function $d(e,t){var n=["remove","removeChild"];try{if(!e)return K.noop;K.each(n,function(n){var i=e[n];if(!i)return K.noop;e[n]=K.wrap(i,function(e){return t&&t(),e.apply(this,K.toArray(arguments).slice(1))}),e[n]._pendoUnwrap=function(){if(!e)return K.noop;e[n]=i,delete e[n]._pendoUnwrap}})}catch(e){X.critical("ERROR in interceptRemove",{error:e})}return function(){K.each(n,function(t){if(!e[t])return K.noop;t=e[t]._pendoUnwrap,K.isFunction(t)&&t()})}}function jd(e,t){var n=["stopPropagation","stopImmediatePropagation"];try{if(!e||!e.prototype)return K.noop;var i=K.indexBy(t);K.each(n,function(t){var n=e.prototype[t];n&&(e.prototype[t]=K.wrap(n,function(e){var t=e.apply(this,arguments);return i[this.type]&&(ee.data.set(this,"stopped",!0),ee.event.trigger(this)),t}),e.prototype[t]._pendoUnwrap=function(){e.prototype[t]=n,delete e.prototype[t]._pendoUnwrap})})}catch(e){X.critical("ERROR in interceptStopPropagation",{error:e})}return function(){K.each(n,function(t){t=e.prototype[t]._pendoUnwrap,K.isFunction(t)&&t()})}}function zd(e,t){try{if(!e||!e.prototype)return K.noop;var n=K.indexBy(t),i=e.prototype.preventDefault;if(!i)return K.noop;e.prototype.preventDefault=K.wrap(i,function(e){var t,i=e.apply(this,arguments);return n[this.type]&&((t=ee.event.clone(this)).type="click",t.from=this.type,t.bubbles=!0,t.eventPhase=Fi,ee.event.trigger(t)),i}),e.prototype.preventDefault._pendoUnwrap=function(){e.prototype.preventDefault=i,delete e.prototype.preventDefault._pendoUnwrap}}catch(e){X.critical("ERROR in interceptPreventDefault",{error:e})}return function(){var t=e.prototype.preventDefault._pendoUnwrap;K.isFunction(t)&&t()}}function I(e,t,n,i){return e&&t&&n?(i&&!l.addEventListener&&(i=!1),ee.event.add(e,{type:t,handler:n,capture:i})):K.noop}function w(e,t,n,i){e&&t&&n&&(i&&!l.addEventListener&&(i=!1),ee.event.remove(e,t,n,i))}var Zd=function(e){ee.data.set(e,"pendoStopped",!0),e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1},Vd=function(e,t){return"complete"!==(t=t||window).document.readyState?te(t,"load",e):(e(),K.noop)},Yd=[],Hd=[],Kd={},Xd={};function Jd(e){Kd=e}function A(){return Yd}function qd(){return Qd(A())}function Qd(e){return K.filter(e,function(e){return!e.isFrameProxy})}function eu(e){K.isArray(e)?(Yd=e,y.guideListChanged.trigger({guideIds:K.pluck(e,"id")})):X.info("bad guide array input to `setActiveGuides`")}var tu=function(){var e=[];return{addGuide:function(t){var n;K.isEmpty(t)||(e=e.concat(t),K.each(e,function(e){return e.hide&&e.hide()}),t=A(),(n=K.difference(t,e)).length<t.length&&(eu(n),q.dispatch("frames/changeGuideList",n)))}}}();function nu(e,t){return K.find(ou(),function(n){return K.get(n,e)===t})||null}function T(e){return nu("id",e)}function iu(e){return nu("name",e)}function ru(e,t){return e&&e.id?(e=T(e.id)).findStepById(t):null}function ou(){var e=K.values(Xd);return e.length?Yd.concat(K.flatten(e)):A()}function au(){Xd={}}function su(e,t){K.isArray(t)&&(Xd[e]=t)}function du(e){delete Xd[e]}var uu="_pendo-guide-tt_",cu="_pendo-guide-mobile-tt_",lu=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},pu=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)};function hu(){return"undefined"!=typeof selmo&&selmo.isPreviewing}function fu(){return!!(hu()&&lo().width<=320)||l.isMobileUserAgent()}function oe(){var e=oe.attachPoint;if(null==e){var t=m.get("guides.attachPoint");if(K.isString(t)){try{e=s(t)[0]}catch(e){X.info('Error finding guide attach point "'+t+'"')}e=e||document.createElement("div")}else e=!!K.isFunction(t)&&t();oe.attachPoint=e}return e||bo()}var gu=function(e){var t=Kd[e.guideId];if(t&&Co(t=t.element())&&t.id==="_pendo-badge_"+e.id)return t},mu=function(e){var t;return e?(t=e.getGuide(),t="building-block"===K.get(t,"attributes.type")||!pu(t),!e.overrideElement&&t&&(e.overrideElement=gu(e)),e.targetElement=vu(e),e.overrideElement||e.targetElement):(X.info("Can't get element for null step"),null)},vu=function(e){return 0===(e=(e=e.elementPathRule||null)?s(e):[bo()]).length?null:K.first(e)};function yu(e){return K.get(e,"attributes.activation.selector")||e.steps[0].elementPathRule}function bu(e,t,n){var i,r,o,e=ie(e),t=ie(t),a=(a=t,i=Math.min(e.top,a.top),r=Math.min(e.left,a.left),{height:Math.abs((o=Math.max(e.top+e.height,a.top+a.height))-i),width:Math.abs((e=Math.max(e.left+e.width,a.left+a.width))-r),top:i,left:r});!1!==po(a)||t.fixed||(o=Iu(a,lo(),n,Eo(bo(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}function Iu(e,t,n,i){var r={x:e.left+e.width-t.width,y:0};return r.y="top"===n?e.top:e.top+e.height-t.height,r.y=Math.max(r.y,0),r.x=Math.max(r.x,0),K.contains([g.X,g.BOTH],i)&&(r.x=0),K.contains([g.Y,g.BOTH],i)&&(r.y=0),r}function wu(e,t,n,i,r){var o,a=K.toArray(arguments).slice(1),s=e.apply(this,a);return n||No(o=oe())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function Cu(){return q.getters["frames/isLeader"]()}function Su(){return q.getters["frames/leaderExists"]()}function Au(e){return q.dispatch("frames/updateFrameVisibility",{visibility:e})}var Tu=function(){var e=Bn.call({}),t={validateGuide:1,validateLauncher:1,validateGlobalScript:1},n={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1};return K.each(["ready","onClickCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","validateGuide","validateLauncher","validateGlobalScript"],function(i){n[i]&&y[i].on(function(e){return Tu[i].apply(Tu[i],e.data)}),e[i]=function(n){return K.isFunction(n)?e.on(i,n):e[t[i]?"triggerAsync":"trigger"].apply(e,[i].concat(K.toArray(arguments)))}}),e}();function _u(e,t,n){return p.postJSON(e.replace(/\/guides\.js\//,"/guides.json/"),t).then(function(e){C.guidesPayload(e.data),n()})}var Eu={post:_u,load:function(e,t){return p.get(e).then(function(e){C.guidesPayload(e.data),t()})},endpoint:function(){return"guide.json"},usesXhr:function(){return!0}};function xu(e){if((e=Uo(e))&&(e=e.filename))return 54<e.length?e.substring(28,55):e}var Ru=function(){var e,t,n,i,r,o={failed:{},verified:{}};return t=o,i=Vr,r=function(e){try{var t=[];return!Eu.usesXhr()&&e.domJsonpUrl?t.push(s(e,"domJsonpUrl")):Eu.usesXhr()&&e.domUrl&&t.push(a(e,"domUrl")),e.contentUrlJs?t.push(s(e,"contentUrlJs")):e.contentUrl&&t.push(s(e,"contentUrl")),J.all(t)}catch(t){throw y.contentVerificationFail.trigger(e,t),t}},n=function(e){return r(e).then(K.noop,function(e){return/verify/.test(e)&&i(e),J.reject(e)})},e=function(e){return t.failed[e.id]?J.reject():t.verified[e.id]?J.resolve():n(e).then(function(){t.verified[e.id]=!0},function(n){return t.failed[e.id]=!0,J.reject(n)})},{verify:function(t){return m.get("guideValidation")?e(t):J.resolve()},reset:function(){o.failed={},o.verified={}}};function a(e,t){var n,i=e[t];return K.isString(i)?(n=e[({domUrl:"domHash",domJsonpUrl:"domJsonpHash",contentUrl:"contentHash",contentUrlJs:"contentJsHash"})[t]]||xu(e[t]),p.get(i).then(function(e){var t;if("object"==typeof(e=e.data)&&(e=JSON.stringify(e)),(t=R.create()).update(e),u.uint8ToBase64(t.digest())!==n)return J.reject('Unable to verify content at "'+i+'"')})):J.reject('unable to parse "'+i+'"')}function s(e,t){var n=e[t];return l.sri&&/[?&]sha(256|384|512)=/.test(n)?J.resolve():a(e,t)}}(),ku=function(){var e="allow",t="deny",n="pending",i={},r=function(){return 0<K.size(Tu._handlers.validateGuide)};function o(r){var o=i[r.id];return o||(o={},i[r.id]=o),o.contentPromise||(o.contentPromise=r.fetchContent()),o.contentPromise.then(function(){var i=JSON.stringify(r.signature()),a=r.id+"-"+Rt(i),s=(o[a]||(o[a]={status:n},o.status=n),o[a].promise);return s||(s=Tu.validateGuide(i,r).then(function(){o[a].status=e,o.status=e},function(e){return o[a].status=t,o.status=t,J.reject(e)}),o[a].promise=s),s})}var a=function(e,t){var n=[];return K.each(e,function(e,i){t&&(i=t+"."+i),K.isObject(e)?K.each(a(e,i),function(e){n.push(e)}):n.push([i,e])}),n};return{state:i,Step:function(e){var t=this;function n(e){return K.filter([["content",xu(e.contentUrl)],["contentCss",xu(e.contentUrlCss)],["contentJs",xu(e.contentUrlJs)],["dom",xu(e.domUrl)],["domJsonp",xu(e.domJsonpUrl)]],function(e){return e[1]})}return this.signature=function(){var e,i;return this.domUrl?this.guide.authoredLanguage===this.language?n(this):n({contentUrl:t.contentUrl,contentUrlCss:t.contentUrlCss,contentUrlJs:t.contentUrlJs,domUrl:t.domUrl,domJsonpUrl:t.domJsonpUrl}):(e=[["content",this.content]],(i=this.attributes&&this.attributes.variables)&&(i=a(i)).length&&(i=K.sortBy(i,function(e){return e[0]}),e.push(["variables",i])),e)},t},Guide:function(){return this.signature=function(){return K.map(this.steps,function(e){return e.signature()})},this},Launcher:function(){var n=this,r=!1,o=function(){return 0<K.size(Tu._handlers.validateLauncher)&&n.data.template};return n.before("update",function(){if(o()&&r)return!1}),n.before("render",function(){var a,s;if(o())return!r&&(s=i[s="launcher-"+Rt(n.signature())])!==t&&(s!==e?(r=!0,a="launcher-"+Rt(s=JSON.stringify(n.signature())),Tu.validateLauncher(s).then(function(){i[a]=e},function(){i[a]=t}).then(function(){r=!1,n.render(),n.update(A())},function(){r=!1}),!1):void 0)}),n.signature=function(){var e=[],t=a(this.data);return t.length&&e.push(["variables",t=K.chain(t).filter(function(e){return!/^contentUrl/.test(e[0])}).sortBy(function(e){return e[0]}).value()]),e},n},validate:function(e){var t,n;if(!r())return J.resolve();try{return K.get(e,"attributes.resourceCenter.isTopLevel",!1)?(t=e,n=se.findResourceCenterModules(t,A()),t=[t].concat(n),J.all(K.map(t,o))):o(e)}catch(t){throw y.contentValidationFail.trigger(e,t),t}},valid:function(t){return!r()||!!(t=i[t.guideId])&&t.status===e},invalid:function(e){return!!r()&&!!(e=i[e.guideId])&&e.status===t},reset:function(){i={}}}}();function Ou(e,t){var n=K.toArray(arguments).slice(2);return K.reduce(e,function(e,t){return t.apply(e,n)},t)}function Nu(e){return K.isFunction(e.before)?e:Ou(Nu.behaviors,e)}function Mu(e,t){return Ou(Mu.behaviors,e,t)}function Lu(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",n=e.length,i=0,r=0,o="",a=0;a<n;a++)for(r=r<<8|e[a],i+=8;5<=i;)o+=t[r>>>i-5&31],i-=5;return 0<i&&(o+=t[r<<5-i&31]),o}function Fu(e){var t,n,i=m.getLocalConfig("contentHost");return i&&e?(t=RegExp("(https:)?\\/\\/"+Ee(tt)+"-\\d+\\.storage\\.googleapis\\.com","g"),n=RegExp("(https:)?\\/\\/"+xe(tt)+"\\.storage\\.googleapis\\.com","g"),e.replace(t,i).replace(n,i).replace(RegExp("(https:)?\\/\\/"+rn(it),"g"),i)):e}function Pu(e){return m.getLocalConfig("contentHost")?JSON.parse(Fu(JSON.stringify(e))):e}function Gu(){var e=rn(m.getHostedConfig("contentHost"));if(e)return e+"*"}function Du(e){return!!(K.isObject(e)&&e.hasOwnProperty("type")&&e.hasOwnProperty("children")&&e.hasOwnProperty("props"))}Nu.behaviors=[],Mu.behaviors=[];var Bu=function(){var e={},t=K.compose(function(e){var t=Gu();return t&&!new RegExp(t).test(e)&&X.debug("Failed to verify URL: "+e+" vs "+t),e},Fu),n=[function(e,t,n){return t="var guide = pendo.findGuideById('".concat(t,"');\nvar step = guide && guide.findStepById('").concat(n,"');"),e.replace("<% if (typeof guide !== 'undefined') { %>\nvar guide = pendo.findGuideById('<%= guide.id %>');\nvar step = guide && guide.findStepById('<%= step.id %>');\n<% } %>",t)}];return{load:function(n){try{var i=e[n.id];if(i&&i.language!==n.language&&delete e[n.id],!e[n.id]){var r,o=[],a={deferred:{},language:n.language},s=!1;if(e[n.id]=a,Eu.usesXhr()&&n.domUrl?(a.deferred.domJson=J.defer(),p.get(t(n.domUrl)).then(function(e){a.domJson=Pu(e.data),Du(e.data)?a.deferred.domJson.resolve():(X.critical(Error("Response from the guide was not in proper JSON format")),a.deferred.domJson.reject())}).catch(function(e){X.critical(e),y.resourceFetchFail.trigger(n,e),a.deferred.domJson.reject("Failed to load content")}),o.push(a.deferred.domJson.promise),s=!0):n.domJsonpUrl&&(a.deferred.domJson=J.defer(),r=Vo(t(n.domJsonpUrl),function(e){ee.removeNode(r),e&&y.resourceFetchFail.trigger(n,e)},!0),o.push(a.deferred.domJson.promise),s=!0),n.contentUrlJs&&!m.get("preventCodeInjection")){a.deferred.content=J.defer();var d=Vo(t(function(e){if(Mt()){var t=e.replace(/^https?:\/\/[^/]+\/guide-content\//,"").split("/"),n=t[0],n=$A.get("$Resource.pendoGuide"+Lu(mt(n)));if(K.isString(n))return n+"/"+t.join("/")}return e}(n.contentUrlJs)),function(e){ee.removeNode(d),e&&y.resourceFetchFail.trigger(n,e)},!0);o.push(a.deferred.content.promise),n.contentUrlCss&&(a.deferred.css=J.defer(),Vo({url:t(n.contentUrlCss),type:"text/css"},function(){a.deferred.css.resolve()}),o.push(a.deferred.css.promise))}else if(n.contentUrl&&!m.get("preventCodeInjection")){a.deferred.content=J.defer();var u=Vo(function(e,t){if(!K.isString(e))return e;var n=K.indexOf(e,"?");return n<0?e+".js":e.substring(0,n)+".js"+e.substring(n)}(t(n.contentUrl),".js"),function(e){ee.removeNode(u),e&&y.resourceFetchFail.trigger(n,e)},!0);o.push(a.deferred.content.promise)}else if(!s)return J.reject("fetchedDomContent is still false");a.deferred.promise=J.all(o).then(function(){return K.omit(a,"deferred")})}return e[n.id].deferred.promise}catch(e){throw y.resourceFetchFail.trigger(n,e),e}},reset:function(){e={}},guideContent:function(t,i,r,o,a){var s,d,u;K.isString(r)&&(s=r,d=t,u=i,r=K.reduce(n,function(e,t){return t(e,d,u)},s),K.isFunction(o)||(s=r,o=/<%/.test(s)&&/%>/.test(s)?K.template(r):K.constant(r)),s=e[t+i])&&s.deferred.content&&(s.content=r,s.template=o,s.script=a,s.deferred.content.resolve())},receiveDomStructureJson:function(t,n,i){(t=e[t+n])&&t.deferred.domJson&&(t.domJson=Pu(i),t.deferred.domJson.resolve())}}}(),Wu=function(){function e(t){var n=this,i=1;return(n.contentUrl||n.domJsonpUrl)&&(K.extend(n,{fetchContent:function(t){return void 0===t&&(t=!1),t?e.prefetch(n):e.fetchContent(n)}}),n.after("render",function(e){!function(e){var i=K.indexOf(t.steps,n);K.chain(t.steps).rest(i+1).first(e).each(function(e){K.isFunction(e.fetchContent)&&e.fetchContent()}).value()}(i)})),n}function t(e){var t=e.getGuide(),t=t&&t.language?t.language:"default";return e.id+"."+t}return e.state={},e.queue=[],e.pending=function(){return K.reduce(e.state,function(e,t){return e+ +!t.loaded},0)},e.reset=function(){Bu.reset(),e.state={},e.queue=[]},e.prefetch=function(n){var i;return e.hasContent(n)?K.get(e.state[t(n)],"promise"):(i=J.defer(),e.queue.push([i,n]),i.promise)},e.processPrefetch=function(t){return void 0===t&&(t=10),e.queue.length?(t=e.queue.splice(0,Math.max(t-e.pending(),0)),J.all(K.map(t,function(t){return e.fetchContent(t[1]).then(function(e){t[0].resolve(e)}).catch(function(e){t[0].reject(e)})}))):J.resolve()},e.fetchContent=function(n){var i=t(n);if(!(o=e.state[i])){var r,o={},a=n.getGuide();if(a.control)return J.resolve();a&&a.language&&(r=a.language);var a=n.guideId+n.id,s=K.extend({id:a,language:r,guideId:n.guideId},K.pick(n,"contentUrl","contentUrlCss","contentUrlJs","domJsonpUrl","domUrl","domHash","contentHash","contentJsHash"));o.promise=Ru.verify(s).then(function(){return o.verified=!0,Bu.load(s)}).then(function(e){return o.loaded=!0,e}),e.state[i]=o}return o.promise.then(function(e){K.extend(n,e)})},e.hasContent=function(e){return S(e.content)||S(e.domJson)},e}(),Uu=function(){var e=y.runtime,t=[];function n(e,t,n,i){return K.filter(e,function(e){if(K.isFunction(e[i])){if(K.isFunction(e.test))try{return e.test(t,n)}catch(e){return X.critical("Error in global script test code block",{error:e}),!1}return!K.isRegExp(e.regex)||e.regex.test(n.name)||e.regex.test(t.name)}})}function i(e,i,r){var o=[];return"script"===(r=void 0===r?"script":r)&&K.isFunction(e.script)&&o.push(e.script),K.size(t)&&(e=n(t,e,i,r),K.each(e,function(e){o.push(e[r])})),o}function r(e,t,n){var r=n.guide;r&&K.all(i(n,r,"beforeMount"),function(i){try{return i.call(e,t),!t.cancel}catch(e){return X.critical("Exception thrown running beforeMount for: "+JSON.stringify({guideId:r.id,stepId:n.id}),{error:e}),!1}})}var o=Bn.call({}),a={beforeUnmount:{type:"trigger",fromUnmount:!1},beforeUpdate:{type:"trigger",fromUnmount:!1},updated:{type:"trigger",fromUnmount:!1},unmounted:{type:"trigger",fromUnmount:!0},advanced:{type:"trigger",fromUnmount:!0},dismissed:{type:"trigger",fromUnmount:!0},snoozed:{type:"trigger",fromUnmount:!0},hidden:{type:"trigger",fromUnmount:!0},beforeMount:{type:"triggerCancelable",fromUnmount:!1},beforeAdvance:{type:"triggerCancelable",fromUnmount:!1},beforePrevious:{type:"triggerCancelable",fromUnmount:!1},beforeDismiss:{type:"triggerCancelable",fromUnmount:!1},beforeSnooze:{type:"triggerCancelable",fromUnmount:!1}};function s(e){return a[e]}function d(e){this.step=e,K.each(["read","write","clear"],function(t){this[t]=h[t],this[t+"ByGuide"]=function(){var n=K.first(arguments)+":"+K.get(e,"guide.id");return h[t].apply(this,[n].concat(K.rest(arguments)))}},this);var t=K.bind(function(e){this.step.id!==e.step.id?X.debug("aborting afterUnmounted b/c step ids don't match"):this.purge()},this);this.purge=K.partial(o.off,"afterUnmounted",t),o.on("afterUnmounted",t)}return e.on(function(e){var t,n=e.data[0];if(e.step=n,delete e.data,s(e.type))return -1<K.indexOf(["beforeUnmount","unmounted"],e.type)&&(e.reason=t="active"===(t=n).seenState?"hidden":t.seenState,"unmounted"===e.type)&&o.trigger(t,e),o[t=a[e.type].type](e.type,e),"unmounted"===e.type?o.trigger("afterUnmounted",e):"beforeMount"===e.type&&r(this,e,n),"triggerCancelable"!==t&&e.cancel&&delete e.cancel,e}),d.prototype.on=function(e,t){var n,i;s(e)?(a[e].fromUnmount&&(t=K.once(t)),n=this.step,i=t,t=wi(t=function(e){if(e.step.id===n.id)return i(e);X.debug("called guide runtime callback on wrong step")}),o.on(e,t),this.purge=K.compose(this.purge,K.partial(o.off,e,t))):X.info("GUIDE-RUNTIME: Warning! Unregisterable event type "+e)},{initialize:function(){var e=m.get("guides.globalScripts");K.each(e,Uu.addGlobalScript)},teardown:function(){K.each(t,Uu.removeGlobalScript)},addGlobalScript:function(e){var n,i,r,o;n=e,(r=K.without(K.keys(n),"script","test","regex","beforeMount")).length&&(i=n.script,n.script=function(){if(K.each(r,function(e){s(e)&&this.on(e,n[e])},this),K.isFunction(i))return i.apply(this,arguments)}),o=e=n,(K.isFunction(o.script)||K.isFunction(o.beforeMount))&&(!o.test||K.isFunction(o.test))&&(!o.regex||K.isRegExp(o.regex))?t.push(e):X.critical("Error adding invalid GlobalScript via API")},removeGlobalScript:function(e){0<=(e=K.indexOf(t,e))&&t.splice(e,1)},getContext:function(e){return new d(e)},runCustomScripts:function(e,t){K.each(i(e,t),function(n){try{var i=Uu.getContext(e);n.call(i,e,t)}catch(n){X.critical("Exception thrown running code block for: "+JSON.stringify({guideId:t.id,stepId:e.id}),{error:n})}})}}}();function $u(e){return e.props&&e.props.id&&0===e.props.id.indexOf("pendo-g-")?e:e.children?K.find(e.children,function(e){return $u(e)}):void 0}function ju(e,t){if(t(e))return e;if(e.children)for(var n=0;n<e.children.length;n++){var i=ju(e.children[n],t);if(i)return i}return!1}function zu(e,t){var n=[];return t(e)&&n.push(e),e.children?n.concat.apply(n,K.map(e.children,function(e){return zu(e,t)})):n}function Zu(e,t){if(t.props&&t.props.id===e)return t;if(t.children)for(var n=0;n<t.children.length;n++){var i=Zu(e,t.children[n]);if(i)return i}}var Vu=function(){return{buildNodesFromTemplate:function(r,o,a,s,d){var u=s||A(),c=d||C.BuildingBlockGuides.buildNodeFromJSON;switch(r){case"pendo_resource_center_module_list_item":return function(e,n,i,r){var o=e.templateChildren;return K.reduce(o,function(o,a,s){var d=se.findResourceCenterHomeView(i),u=K.find(i,function(e){return e.id===a.id});if(C.designer)u=a,d=K.find(i,function(e){return K.get(e,"attributes.resourceCenter.isTopLevel")});else{if(!u)return o;if(!u.hasResourceCenterContent)return K.each(u.children,function(e){(e=T(e))&&e.control&&e.steps[0].onControlGuide("control")}),o}var c,l,p,f=JSON.parse(JSON.stringify(e)),h=(delete f.templateChildren,f.props.id=f.props.id+"-"+s,f.props["data-pendo-module-guide-id"]=u.id,f.actions||(f.actions=[]),{action:"renderResourceCenterModule",source:f.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:u.id}],uiMetadata:{},eventType:"click"}),h=(f.props["data-localization-direction"]&&h.parameters.push({name:"transitionDirection",type:"string",value:f.props["data-localization-direction"]}),C.designer||f.actions.push(h),K.get(d,"attributes.notificationBubble")),g=K.get(d,"attributes.notifications"),h=(h&&g&&("AnnouncementsModule"===K.get(u,"attributes.resourceCenter.moduleId")&&(c=u.id),c="chat"===K.get(u,"attributes.resourceCenter.integrationName")?"chat":c)&&(f.props["data-pendo-notification-id"]=c,g=f,u=h,h=c,c=d.attributes.notifications.individualCounts[c],g=ju(g,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-row")}))&&(p=K.find(g.children,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-text")}))&&p.props&&p.props.style&&(m=parseInt(p.props.style.width,10))&&!isNaN(m)&&(l=g.children.indexOf(p),m=m-40+"px","100%"!==p.props.style.width&&(p.props.style.width=m),(m="rtl"===p.props.dir)?p.props.style["padding-left"]="40px":p.props.style["padding-right"]="40px",p.props.style["box-sizing"]="content-box",p={type:"div",children:[{type:"div",content:String(d.attributes.notifications.individualCounts[h]),props:{style:{position:"relative",top:"50%","font-weight":u["font-weight"],"font-family":u["font-family"],color:u.color}}}],props:{id:"pendo-home-view-bubble",class:"_pendo-home-view-bubble",style:Kt(Kt(Kt({position:"absolute","border-radius":"20px",height:"26px","line-height":"0px",padding:"0px 10px"},!m&&{right:"20px"}),m&&{left:"20px"}),{top:"50%","margin-top":"-14px","box-sizing":"content-box","background-color":u["background-color"],display:c?"block":"none"}),"aria-hidden":!0}},g.children.splice(l+1,0,p)),ju(f=t(f,a,f.props.id,s),function(e){return(e=K.get(e,"props.class"))&&0<=e.indexOf("_pendo-resource-center-module-list-item-text-container")})),d=ju(f,function(e){return(e=K.get(e,"props.id"))&&0<=e.indexOf("pendo-right-caret")}),m=ju(f,function(e){return(e=K.get(e,"props.id"))&&0<=e.indexOf("pendo-home-view-bubble-".concat(s))});return h&&(h.props["aria-hidden"]=!0,d)&&(d.props["aria-labelledby"]="".concat(h.props.id," ").concat(m&&m.props.id)),o.concat(r(f,n,i))},[])}(o,a,u,c);case"pendo_resource_center_guide_list_item":return function(e,i,r,o){var a=e.templateChildren;return K.reduce(a,function(a,s,d){var u,c=n(r,s);return c?(u=JSON.parse(JSON.stringify(e)),s.keywords&&(u.props["data-_pendo-text-list-item-1"]=s.keywords),delete u.templateChildren,u.props.id=u.props.id+"-"+d,u.actions||(u.actions=[]),c={action:"showGuide",source:u.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:c.id},{name:"reason",type:"string",value:"launcher"}],uiMetadata:{},eventType:"click"},C.designer||u.actions.push(c),u=t(u,s,u.props.id,d),a.concat(o(u,i,r))):a},[])}(o,a,u,c);case"pendo_task_list":return function(e,t,i,r){var o=e.templateChildren;return K.filter(o,function(e){return n(i,e)}).length?(e.children=K.filter(e.children,function(e){return"pendo_task_list_fallback_text"!==e.templateName}),function e(t,n){if(t.templateName&&(t.templateChildren=n),t.children&&t.children.length)for(var i=0;i<t.children.length;i++)e(t.children[i],n)}(e,o)):e.children=K.filter(e.children,function(e){return"pendo_task_list_item"!==e.templateName&&"pendo_task_list_progress_bar"!==e.templateName}),se.updatePseudoStyleSelectors(e),[r(e,t,i)]}(o,a,u,c);case"pendo_resource_center_onboarding_item":case"pendo_task_list_item":return function(i,r,o,a){var s=i.templateChildren;return K.reduce(s,function(s,d,u){var c,l,p,f=n(o,d);return f?(delete(c=JSON.parse(JSON.stringify(i))).templateChildren,c.props.id=c.props.id+"-"+u,c.props["data-pendo-show-guide-id"]=f.id,c.props.class+=" pendo-task-list-item",c.actions||(c.actions=[]),l={action:"showGuide",source:c.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:f.id},{name:"reason",type:"string",value:"launcher"}],uiMetadata:{},eventType:"click"},C.designer||c.actions.push(l),l=f.getTotalSteps(),p=f.getSeenSteps(),f.isComplete()&&(p=l),f=parseInt(p/l*100,10),ju(c,function(e){return e.svgWidgetId}).svgAttributes.fillCircle.percentComplete=f,d.hasOwnProperty("subtitle")?d.stepProgress=e(d.subtitle,{currentStep:p,totalSteps:l}):d.stepProgress="Step "+p+" of "+l,c=t(c,d,c.props.id,u),s.concat(a(c,r,o))):s},[])}(o,a,u,c);case"pendo_resource_center_onboarding_progress_bar":case"pendo_task_list_progress_bar":return function(e,i,r,o){var a=e.templateChildren||i.getGuide().attributes.resourceCenter.children,s=0,d=0,a=(K.forEach(a,function(e){(e=n(r,e))&&(e.isComplete()?(s+=e.getTotalSteps(),d+=e.getTotalSteps()):(s+=e.getTotalSteps(),d+=e.getSeenSteps()))}),parseInt(d/s*100,10));return isNaN(a)&&(a=0),a={totalPercentComplete:a+"%"},ju(e=t(e=JSON.parse(JSON.stringify(e)),a),function(e){return e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-progress-bar-fill")}).props.style.width=a.totalPercentComplete,[o(e,i,r)]}(o,a,u,c);case"pendo_task_list_fallback_text":return[c(o,a,u)];case"pendo_resource_center_announcement_item":return function(e,t,r,o){if(t=t.getGuide().attributes.resourceCenter.children,t=K.reduce(t,function(e,t){return(t=n(r,t))&&t.steps&&t.steps.length?e.concat(t):e},[]),!K.every(t,function(e){return e=e.steps[0],!!Wu.hasContent(e)}))return[];var a=se.getResourceCenter(),s=K.get(a,"attributes.notificationBubble");return s&&(delete s.dir,"rtl"===e.props["data-localization-direction"])&&(s.dir="rtl"),K.map(t,function(t,n){var r,a,d,u,c,l,p,f="whatsnew"===K.get(t,"attributes.type"),h=JSON.parse(JSON.stringify(e));return h.props.id=h.props.id+"-"+n,h.props["data-pendo-announcement-guide-id"]=t.id,h.props["data-pendo-announcement-send-seen-event"]=!0,f?(n=h,f=s,l=o,(p=(r=Nu(d=t)).steps[0]).render(),Uu.runCustomScripts(p,r),a="#"+(r=p.guideElement)[0].id+" h1::after { display:none; }",r[0].appendChild(document.createElement("style")).innerHTML=a,f&&((u=i(f)).props.style.top="20px"),!se.hasAnnouncementBeenSeen(d)&&u&&(n.props.class+=" pendo-unseen-announcement",n.children=[u]),a=l(n,p),r.appendTo(a),a):(f=h,d=s,u=o,p=Nu(n=t),l=n.steps[0],Uu.runCustomScripts(l,p),p=JSON.parse(JSON.stringify(l.domJson)),f.children=[p],d&&(c=i(d),p=ju(f,function(e){return"pendo-guide-container"===e.props.id}),d=parseInt(f.props.style["padding-top"],10),p=parseInt(p.props.style["padding-top"],10),c.props.style.top=p+d+5+"px"),!se.hasAnnouncementBeenSeen(n)&&c&&(f.props.class+=" pendo-unseen-announcement",f.children.unshift(c)),delete f.templateName,(p=Zu("pendo-guide-container",f))&&(p.props.id=p.props.id+"-"+l.id),u(f,l))})}(o,a,u,c);case"pendo_guide_data_text_block":return function(e,n,i,r){var o=n.getGuide?n.getGuide():K.find(i,function(e){return e.id===n.guideId}),a=K.get(o,"attributes.dates."+o.language,!1);return a=a?{showsAfter:a}:{showsAfter:o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][(a=(a=K.get(o,"currentFirstEligibleToBeSeenAt")||K.get(o,"showsAfter")||K.get(o,"publishedAt"))?new Date(a):new Date).getMonth()]+" "+a.getDate()+", "+a.getFullYear()},[r(o=t(o=JSON.parse(JSON.stringify(e)),a),n,i)]}(o,a,u,c);default:return[]}},generateUnreadAnnouncementMiniBubble:i,getGuidesInResourceCenterModule:function(e,t){return e=e.attributes.resourceCenter.children,K.reduce(e,function(e,i,r){return(i=n(t,i))&&e.push(i),e},[])}};function e(e,t){return e.replace(/<%=\s*([A-Za-z_0-9$]+)\s*%>/gi,function(e,n){return K.isNull(t[n])||K.isUndefined(t[n])?e:t[n]})}function t(n,i,r,o){if(n.content&&(n.content=e(n.content,i)),n.props&&(n.props["aria-label"]&&(n.props["aria-label"]=i.ariaLabel?e(n.props["aria-label"],i):""),n.props.id)&&void 0!==o&&n.props.id!==r&&(n.props.id=n.props.id+"-"+o),n.children)for(var a=0;a<n.children.length;a++)t(n.children[a],i,r,o);return n}function n(e,t){if(e=K.find(e,function(e){return e.id===(t.id||t)}),C.designer)return t;if(e){if(!e.ineligibleForRC)return e;e.control&&e.steps[0].onControlGuide("control")}}function i(e){var t={left:"0px"};return"rtl"===e.dir&&(t={right:"0px"}),{type:"div",children:[],props:{class:"pendo-unread-announcement-mini-bubble",style:Kt(Kt({position:"absolute","border-radius":"5px",height:"10px",width:"10px","line-height":"0px"},t),{top:"30px","box-sizing":"content-box","background-color":e["background-color"],"z-index":"10"})}}}}(),Yu=function(){return{buildSvgNode:function(t,n){switch(t){case"onboardingProgressCircle":case"taskListProgressCircle":return e(n)}},createProgressCircleSvg:e};function e(e){var t,n,i,r,o,a,s;return ke(9)?(n=(t=(t=e).svgAttributes).fillCircle.stroke,i=t.backgroundCircle.stroke,t=100<=(t.fillCircle.percentComplete||0),o=(r=ee(Te(C).createHTML('<div aria-hidden="true" focusable="false" class="pendo-progress-circle-ie"><div class="pendo-progress-circle-fill"></div></div>'))).find(".pendo-progress-circle-fill"),t?o.css({border:"3px solid "+n,height:"10px",width:"10px"}):o.css({border:"3px solid "+i,height:"10px",width:"10px"}),r):100<=((t=e.svgAttributes).fillCircle.percentComplete||0)?(n=(n=t).fillCircle.stroke,(i=ee(Te(C).createHTML('<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" class="pendo-progress-circle-fill" viewBox="0 0 24 24" fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>')))[0].setAttributeNS(null,"stroke",n),i):(r=(o=t).fillCircle.stroke,e=o.backgroundCircle.stroke,o=o.fillCircle.percentComplete||0,a='<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" version="1.1" viewBox="0 0 40 40" preserveAspectRatio="xMidYMid"><circle class="pendo-progress-circle-background" cx="20" cy="20" r="'+(a=100/(2*Math.PI))+'" stroke-width="6px" stroke-linecap="round" fill="none"></circle><circle class="pendo-progress-circle-fill" cx="20" cy="20" r="'+a+'" stroke-width="6px" stroke-linecap="round" transform="rotate(-90 20 20)" fill="none"></circle></svg>',s=(a=ee(Te(C).createHTML(a))).find(".pendo-progress-circle-fill")[0],a.find(".pendo-progress-circle-background")[0].setAttributeNS(null,"stroke",e),o<=0?s.setAttributeNS(null,"stroke-width","0px"):(s.setAttributeNS(null,"stroke",r),s.setAttributeNS(null,"stroke-dasharray",o+", 100")),a)}}(),Hu=function(e,t){return e<t},Ku=K.negate(Hu);function Xu(e){return{top:0,left:0,right:e.width,bottom:e.height,width:0,height:0}}function Ju(){var e=bo();return Gr(e)?re(e):((e=lo()).left=0,e.top=0,e.right=e.width,e.bottom=e.height,e)}function qu(e,t,n){var i={},r=t.top-e.top,e=t.left-e.left;return i.top=r-n.top,i.left=e-n.left,i.height=t.height+n.top+n.bottom,i.width=t.width+n.left+n.right,i.bottom=i.top+i.height,i.right=i.left+i.width,{top:{top:0,height:Math.max(i.top,0),left:i.left,width:i.width},left:{top:0,bottom:0,left:0,width:i.left},bottom:{top:i.bottom,width:i.width,bottom:0,left:i.left},right:{top:0,bottom:0,left:i.right,right:0}}}function Qu(e){var t;if(e&&e.length)return t=Gr(bo())?re:Wr,(e=K.reduce(e,function(e,n){var i;return b(n)?(i=t(n))?(K.each([["top",Hu],["right",Ku],["bottom",Ku],["left",Hu]],function(t){var n=t[0],t=t[1];e[n]&&!t(i[n],e[n])||(e[n]=i[n])}),e):void 0:e},{})).height=e.bottom-e.top,e.width=e.right-e.left,e}function ec(e,t){var n=Ju(),e=Qu(e)||Xu(n);return{viewport:n,box:e,overlays:qu(n,e,t)}}function tc(e){var t=[],n=K.get(e,"attributes.blockOutUI",{});if(n.additionalElements=n.additionalElements||"",n.enabled&&e.element!==bo()){t.push(e.element);for(var i=n.additionalElements.replace(/\s/g,"").split(","),r=0;r<n.additionalElements.length;r++)try{var o=ee(i[r]);o&&K.each(o,function(e){t.push(e)})}catch(e){X.info("Additional element for blockOutUI is invalid selector",{contexts:["error"]})}}return t}var nc=null,ic=function(e){var t=!K.isEqual(e,nc);return nc=e,t},rc=null,oc=function(e){var t=!K.isEqual(e,rc);return rc=e,t},ac=null,sc=function(e){var t=!K.isEqual(e,ac);return ac=e,t},dc=function(e){return oc(e.viewport)||ic(e.box)||sc(e.overlays)};function uc(e){try{var t=ec(tc(e),K.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0}));dc(t)&&K.each(e.backdrop.children,function(e){var n=e.getAttribute("pendo-region"),n=t.overlays[n];K.each(n,function(t,n){e.style[n]=t+"px"})})}catch(e){X.info("Failed to update BlockOut ui",{contexts:["error"]})}}function cc(e){try{var t,n,i,r;if(!pc())return t=ec(tc(e),K.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0})),dc(t),n={"z-index":1e4,position:"fixed"},i=[],K.each(t.overlays,function(e,t){t=lc(t,K.extend({},e,n)),i.push(t)}),r=hc(i,e),e.backdrop=r[0],r}catch(e){X.info("Failed to add BlockOut ui",{contexts:["error"]})}}function lc(e,t){var n=ee("div.pendo-backdrop-region-"+e);return n.length||(n=ee(document.createElement("div")).addClass("pendo-backdrop-region-"+e)),ee(n).css(t).attr("pendo-region",e),n}function pc(){return 0<ee("._pendo-guide-backdrop_").length}function hc(e,t){var n=Zu("pendo-backdrop",t.domJson),i=(K.each(["left","right","width","height","bottom","top"],function(e){delete n.props.style[e]}),ee(document.createElement("div")).attr("id","pendo-backdrop").addClass("_pendo-guide-backdrop_"));return K.each(n.props,function(t,r){K.each(e,function(e,o){"style"===r?e.css(n.props.style):"class"===r?e.addClass(t):"id"===r?e.attr(r,t+"-"+o):e.attr(r,t),i.append(e)})}),i}var fc="top",gc="bottom",mc="left",vc="right",yc="center";function bc(e,t,n){return n===vc||n===mc?n:(n=e.left,(t=(e=t.width)/3)<n&&n<2*t?yc:n<e/2?vc:mc)}function Ic(e,t,n){return n===fc||n===gc?n:(n=e.top,(t=(e=t.height)/3)<n&&n<2*t?yc:n<e/2?gc:fc)}var wc=function(){return{createBBTooltip:e,getBBTooltipDimensions:r,determineBBHorizontalBias:bc,determineTooltipPosition:o,positionBBTooltipWithBias:a,calculateToolTipPositionForTopBottom:s,calculateToolTipPositionForLeftRight:d,buildTooltipCaret:u,styleTopOrBottomCaret:l,styleLeftOrRightCaret:p,buildBorderCaret:f,determineBorderCaretColor:g,placeBBTooltip:function(e,t){var n,i,r,o,a,t=t||function(e){var t,n;if(e.guideElement)return t="pendo-resource-center-container"===e.guideElement.attr("id"),n=$u(e.domJson),(t?e.guideElement:e.guideElement.find("#"+n.props.id))[0]}(e);t&&(n=ie(i=e.element||mu(e)),"none"!==ne(e.elements[0]).display)&&(i=Wr(i),a=e.attributes.layoutDir,e=e.guideElement,o=(r=ee(t).find("#pendo-guide-container"))[0].style,t={height:parseInt((t=ne(t)).height,10),width:parseInt(t.width,10)},r={height:parseInt(r[0].getAttribute("data-caret-height"),10)||0,width:parseInt(r[0].getAttribute("data-caret-width"),10)||0,backgroundColor:r[0].style["background-color"],offset:10,borderColor:o.borderColor,borderWidth:parseInt(o.borderWidth,10)},o=this.getBBTooltipDimensions(n,t,r,a,i),r.height&&r.width&&(t=e.find(".pendo-tooltip-caret")[0],a=e.find(".pendo-tooltip-caret-border")[0],t&&c(t,o,r),a)&&h(a,r,o.layoutDir,t),e.css({top:o.top,left:o.left,position:n.fixed?"fixed":"absolute"}))},attachBBAdvanceActions:i,attachScrollHandlers:t,isBuildingBlockGuideRelativeToElement:function(e){return!(!e.domJson||!K.isObject(e.domJson)||!(e=$u(e.domJson))||"Relative to Element"!==e.props["data-vertical-alignment"])},positionStepForTooltip:function(t,n,i){e(n,t.element,t,i),t.hasBeenScrolledTo||(Do(t.element),bu(t.element,i,t.attributes.layoutDir),t.hasBeenScrolledTo=!0)}};function e(e,n,o,a){var s,d,c,l,p,f;if(o.guideElement)return(s=o.guideElement).addClass(fu()?cu:uu),0===(d=ie(n)).height&&0===d.width?null:(n=Wr(n),(e=ju(e,function(e){return"pendo-guide-container"===e.props.id}))?(f=o.attributes.layoutDir,p={height:a.offsetHeight,width:a.offsetWidth},c={height:parseInt(e.props["data-caret-height"],10)||0,width:parseInt(e.props["data-caret-width"],10)||0,backgroundColor:e.props.style["background-color"],offset:10},i(o),e.props.style.border&&(c.borderColor=(e=e.props.style.border.split(" "))[2],c.borderWidth=parseInt(e[0],10)),e=r(d,p,c,f,n),o&&(o.dim=e),o&&K.isFunction(o.getGuide)&&(l=o.getGuide()),p=K.get(l,"attributes.resourceCenter"),d.fixed?(s.css({position:"fixed"}),a.style.position="absolute"):o&&p||(a.style.position="absolute"),c.height&&c.width&&u(s,e,c),f="300000",a&&a.style&&a.style["z-index"]&&(f=a.style["z-index"]),s.css({"z-index":f}),p||s.css({height:"auto",width:"auto",overflow:"visible"}),o.elementPathRule&&s.css({left:e.left,top:e.top,position:d.fixed?"fixed":"absolute"}),"top"===e.layoutDir&&e.hbias===mc&&s.find("#pendo-watermark").css({top:"auto",bottom:"100%"}),t(o,m),s[0]):void 0)}function t(e,t){e&&K.isFunction(e.attachEvent)&&(hu()&&e.element===ee.getBody()||(t=K.throttle(K.bind(t,e,e),10),e.attachEvent(window,"scroll",t,!0),Mo(K.bind(e.attachEvent,e),e.targetElement,t)))}function n(e,t){var n=ee(t.elementPathRule)[0];t.attachEvent(n,e,function(n){ee.data.set(n,"advanced",!0),hf(e,t)})}function i(e){e.attributes&&e.attributes.advanceActions&&e.elementPathRule&&(e.attributes.advanceActions.elementHover?n("mouseover",e):e.attributes.advanceActions.elementClick&&n("click",e))}function r(e,t,n,i,r){var s=lo(),i=i||"auto",t={width:Math.min(t.width,s.width),height:t.height},r=(t.layoutDir=i,t.hbias=bc(e,s,i),t.vbias=Ic(e,s,i),t.layoutDir=o(t,s,r,i),a(t,e,s));return t.top=r.top,t.left=r.left,"top"===t.layoutDir?t.top-=n.height:"bottom"===t.layoutDir?t.top+=n.height:"right"===t.layoutDir?t.left+=n.height:"left"===t.layoutDir&&(t.left-=n.height),t}function o(e,t,n,i){var r,o,a,s,d,u,c;return i&&"auto"!==i?i:(i=n.top,o=(r=n.left)+n.width,a=n.top-e.height<0,s=n.top+n.height+e.height>t.height,d=n.left-e.width<0,u=n.left+n.width+e.width>t.width,!(s&&a&&d&&u)&&(i<t.height/3&&(c="bottom"),(i>2*t.height/3||e.hbias===yc)&&(c="top"),"top"===(c=r<e.width&&t.width-o<e.width?"bottom":c)&&n.top-e.height<0&&(c="bottom"),s&&a&&(e.hbias!==yc&&(c=e.hbias),d&&u||(u||(c="right"),d)||(c="left")),(c=c&&"bottom"!==c||!s||a?c:"top")||e.hbias)||"bottom")}function a(e,t,n){return"top"===e.layoutDir||"bottom"===e.layoutDir?s(e,n,t,e.layoutDir,e.hbias):d(e,n,t,e.vbias)}function s(e,t,n,i,r){var o=e.height,a=e.width,s={top:null,left:null};return"bottom"===i?s.top=n.top+n.height:"top"===i&&(s.top=n.top-o),"right"===r?((i=n.left+n.width/2)+e.width>t.width&&(i-=i+e.width-t.width),s.left=i):s.left="left"===r?n.left-a+n.width/2:n.left+n.width/2-a/2,s}function d(e,t,n,i){var r=e.height,o=e.width,a={top:null,left:null};return"right"===e.layoutDir?a.left=n.left+n.width:"left"===e.layoutDir&&(a.left=Math.max(0,n.left-o)),"bottom"===i?((o=n.top+n.height/2)+e.height>t.height&&(o-=o+e.height-t.height),a.top=o):a.top="top"===i?n.top-r+n.height/2:n.top-r/2+n.height/2,a}function u(e,t,n){var i=document.createElement("div"),e=(i.setAttribute("class","pendo-tooltip-caret pendo-tooltip-caret--"+t.layoutDir),i.style.position="absolute",i.style.zIndex=11,c(i,t,n),e.find("#pendo-guide-container")[0].parentNode);e.appendChild(i),n.borderWidth&&(i=f(i,n,t.layoutDir),e.appendChild(i))}function c(e,t,n){"top"!==t.layoutDir&&"bottom"!==t.layoutDir||l(e,t,n),"left"!==t.layoutDir&&"right"!==t.layoutDir||p(e,t,n)}function l(e,t,n){var i,r=lo();return e.style["border-left"]=n.width+"px solid transparent",e.style["border-right"]=n.width+"px solid transparent",e.style.right="",t.hbias===mc?(i=t.width-2*n.width-n.offset-n.borderWidth,e.style.left=i+"px",t.left+=n.offset+n.width+n.borderWidth):t.hbias===vc?(e.style.left=n.offset+n.borderWidth+"px",t.left-=n.offset+n.width+n.borderWidth,t.left+t.width>r.width&&(t.left=t.left-(t.left+t.width-r.width)),t.left=Math.max(0,t.left)):e.style.left=t.width/2-n.width+"px","bottom"===t.layoutDir&&(e.style["border-bottom"]=n.height+"px solid "+n.backgroundColor,e.style["border-top"]="",i=-1*n.height,n.borderWidth&&(i+=n.borderWidth),e.style.top=i+"px",e.style.bottom=""),"top"===t.layoutDir&&(e.style["border-top"]=n.height+"px solid "+n.backgroundColor,e.style["border-bottom"]="",r=-1*n.height,n.borderWidth&&(r+=n.borderWidth),e.style.bottom=r+"px",e.style.top=""),e}function p(e,t,n){var i,r=lo();return e.style["border-top"]=n.width+"px solid transparent",e.style["border-bottom"]=n.width+"px solid transparent",e.style.bottom="",t.vbias===fc?(i=t.height-2*n.width-n.offset-n.borderWidth,e.style.top=i+"px",t.top+=n.offset+n.width+n.borderWidth):t.vbias===gc?(e.style.top=n.offset+n.borderWidth+"px",t.top-=n.offset+n.width+n.borderWidth,t.top+t.height>r.height&&(t.top=t.top-(t.top+t.height-r.height)),t.top=Math.max(0,t.top)):e.style.top=t.height/2-n.width+"px","left"===t.layoutDir&&(e.style["border-left"]=n.height+"px solid "+n.backgroundColor,e.style["border-right"]="",i=-1*n.height,n.borderWidth&&(i+=n.borderWidth),e.style.right=i+"px",e.style.left=""),"right"===t.layoutDir&&(e.style["border-right"]=n.height+"px solid "+n.backgroundColor,e.style["border-left"]="",r=-1*n.height,n.borderWidth&&(r+=n.borderWidth),e.style.left=r+"px",e.style.right=""),e}function f(e,t,n){var i=e.cloneNode();return i.setAttribute("class","pendo-tooltip-caret-border"),i.style.zIndex=10,h(i,t,n,e),i}function h(e,t,n,i){for(var r={top:"",right:"",bottom:"",left:""},o=["Top","Right","Bottom","Left"],a=0;a<o.length;a++){var s="border"+o[a]+"Width",d="border"+o[a]+"Color",u="border"+o[a]+"Style";i.style[s]?(r[s]=parseInt(i.style[s],10)+t.borderWidth+"px",r[d]=g(i.style[d],t.borderColor),r[u]="solid"):(r[s]="",r[d]="",r[u]="")}"top"===n&&(r.left=parseInt(i.style.left,10)-t.borderWidth+"px",r.bottom=parseInt(i.style.bottom,10)-t.borderWidth+"px"),"bottom"===n&&(r.left=parseInt(i.style.left,10)-t.borderWidth+"px",r.top=parseInt(i.style.top,10)-t.borderWidth+"px"),"right"===n&&(r.top=parseInt(i.style.top,10)-t.borderWidth+"px",r.left=parseInt(i.style.left,10)-t.borderWidth+"px"),"left"===n&&(r.top=parseInt(i.style.top,10)-t.borderWidth+"px",r.right=parseInt(i.style.right,10)-t.borderWidth+"px"),K.extend(e.style,r)}function g(e,t){return"transparent"===e?e:t}function m(e){b(e.element)?(wc.placeBBTooltip(e),ee(e.elements[0]).css({display:"block"})):ee(e.elements[0]).css({display:"none"})}}();function Cc(e){var t=e.find('[data-pendo-grow-height="true"]');if(t.length)for(var n=Object.entries(t),i=[],r=0;r<n.length;r++)!function(t){if(Number.isInteger(Number.parseInt(n[t][0],10))){var r=n[t][1];if(!K.some(i,function(e){return e.parentNode===r.parentNode})){var t=e[0],o=r.parentNode.closest('[data-pendo-grow-height="true"]');if(o){if(!i.includes(o))return;t=o}Sc(r,t),i.push(r)}}}(r)}function Sc(e,t){for(var n=0,i=e.parentNode.children,r=0;r<i.length;r++){var o,a=i[r];a!==e&&(o=parseInt((o=ne(a)).marginTop,10)+parseInt(o.marginBottom,10),n+=a.offsetHeight+o)}var s=t.offsetHeight,t=ne(t),t=parseInt(t.paddingTop,10)+parseInt(t.paddingBottom,10),d=ne(e),d=parseInt(d.marginTop,10)+parseInt(d.marginBottom,10),s=Math.max(s-t-n-d,0);0<s&&(e.style.height=s+"px")}function Ac(e,t){var n,i,r,o,a,s,d,u,c,e=ee("#"+e,t)[0];e&&(t=ee(e),n=ee(t.find("#pendo-guide-container")[0]),r="%"===(i=e.style.height)[i.length-1]?"%":"px",o=parseInt(i,10),a=e.getAttribute("data-pendo-static-height"),t.css({height:"auto"}),a||n.css({"max-height":"none"}),s=parseInt(ne(e).height,10),d=lo().height,(d=d-(u=isNaN(u=parseInt(e.style.top,10))?0:u)-(c=isNaN(c=parseInt(e.style.bottom,10))?0:c))<s&&(n.css({"max-height":d+"px",overflow:"auto"}),s=d),s!==o?(t.css({height:(u=a&&o?o:s)+r}),"Centered"!==(c=e.getAttribute("data-vertical-alignment"))&&"Left Aligned"!==c&&"Right Aligned"!==c||t.css({"margin-top":"-"+(d<s?d:u)/2+"px"})):t.css({height:i}))}function Tc(e,t){if((e=ee("#"+e,t)[0])&&!(t=e.getAttribute("data-pendo-mobile-layout"))){var n=ee(e),t=ee(n.find("#pendo-guide-container")[0]),i=parseInt(e.style.width,10),r=(t.css({"max-width":"none"}),n.css({"margin-right":"0px"}),parseInt(ne(e).width,10)),o=lo().width-parseInt(e.style.left||0,10)-parseInt(e.style.right||0,10);if(o<r&&(t.css({"max-width":o+"px"}),r=o),!isNaN(i))switch(e.getAttribute("data-vertical-alignment")){case"Centered":case"Top Aligned":case"Bottom Aligned":var a=r/2;parseInt(n.css("margin-left"),10)!==a&&n.css({"margin-left":"-"+a+"px"});break;case"Right Aligned":case"Top Right Aligned":case"Bottom Right Aligned":a=i-r,parseInt(n.css("margin-right"),10)!==a&&n.css({"margin-right":"-"+a+"px"})}}}function _c(e,t){e=K.isArray(e)?e:[e],Ec(e=K.reduce(e,function(e,n){var n=ee("#"+n,t),i=n[0];return i&&!i.getAttribute("data-pendo-mobile-layout")&&(i=n.find("#pendo-guide-container")[0],e.push(i)),e},[])),K.each(e,function(e){xc(e),Rc(e)})}function Ec(e){(e=K.reduce(e,function(e,t){return e.concat(K.toArray(ee('[class*="_pendo-text-"]:not([class*="_pendo-resource-center-"]),.pendo-mock-flexbox-element > [class*="_pendo-button-"],._pendo-multi-choice-poll-select',t)))},[]))&&e.length&&kc(K.reduce(e,function(e,t){var n,t=ee(t),i=Mc(t[0]),i=i.marginLeft+i.marginRight,r=Nc(t);return r&&(n=r.paddingLeft+r.paddingRight,r=r.width-i-n,e.push({$blockElement:t,availableSpace:r})),e},[]))}function xc(e){(e=ee("._pendo-open-text-poll-input",e))&&e.length&&K.each(e,function(e){var t,n=ee(e),i=n.attr("data-_pendo-open-text-poll-resize-base-width"),e=(i||(i=e.style.width,n.attr("data-_pendo-open-text-poll-resize-base-width",i)),Mc(n[0])),r=e.marginLeft+e.marginRight,o=Nc(n);o&&(t=o.paddingLeft+o.paddingRight,o=o.width-r-t,-1!==i.indexOf("%")&&Oc(n,e.width,i,o),-1===i.indexOf("%")&&(i=parseInt(i,10))<o&&n.css({width:i}),kc({$blockElement:n,availableSpace:o}))})}function Rc(e){(e=ee("._pendo-video,._pendo-image",e))&&e.length&&K.each(e,function(e){var t=ee(e),n=Mc(t[0]),i=n.width,n=n.marginLeft+n.marginRight,r=t.attr("data-_pendo-media-resize-base-width"),e=(r||(r=e.style.width,t.attr("data-_pendo-media-resize-base-width",r)),-1!==r.indexOf("%"));if(t.hasClass("_pendo-image")){var o=e&&100<parseInt(r,10),a=t.attr("data-pendo-accessible-element");if(o||!a)return void t.css({width:i});t.css({height:"auto"})}(o=Nc(t))&&(a=o.width-(o.paddingLeft+o.paddingRight)-n,e&&Oc(t,i,r,a),kc({$blockElement:t,availableSpace:a}))})}function kc(e){K.isArray(e)||(e=[e]),K.each(e,function(e){e.$blockElement.css({"max-width":"none"})});var t=K.map(e,function(e){return Mc(e.$blockElement[0]).width});K.each(e,function(e,n){t[n]>=e.availableSpace&&e.$blockElement.css({"max-width":e.availableSpace})})}function Oc(e,t,n,i){var r=-1!==e[0].style.width.indexOf("%"),i=i*(parseInt(n,10)/100);(r||t<i)&&e.css({width:i<0?0:i})}function Nc(e){if((e=e.closest("._pendo-row"))&&(e=ne(e[0])))return{width:parseFloat(e.width),paddingLeft:parseInt(e.paddingLeft,10),paddingRight:parseInt(e.paddingRight,10)}}function Mc(e){return{width:parseFloat((e=ne(e)).width),marginLeft:parseInt(e.marginLeft||0,10),marginRight:parseInt(e.marginRight||0,10)}}var Lc,ae=function(){return{calculateTotalOffsetWidth:n,center:function(e,t){for(var i=t/2,t=e[0],r=e[e.length-1],o=1;o<e.length-1;o++){var a=n(e,o);e[o].style.left=i+a+"px"}1<e.length&&(r.style.right=i+"px"),t.style.left=i+"px"},createFlexContainer:function(e){var t=document.createElement("div");return t.style.display="inline-block",e||(t.style.position="absolute"),t.style["vertical-align"]="top",t.setAttribute("class","pendo-mock-flexbox-element"),t},createFlexRow:function(){var e=document.createElement("div");return e.setAttribute("class","pendo-mock-flexbox-row"),e.style.display="block",e.style.position="relative",e.style.width="100%",e},findMaxChildHeight:function(e,t){for(var n,i=[],r=0;r<e.length;r++)t&&-1!==(e[r].children[0].children[0].getAttribute("class")||"").indexOf("pendo-block-wrapper")&&(n=e[r].children[0].offsetHeight+"px",e[r].style.height=n),i.push(e[r].offsetHeight);return K.reduce(i,function(e,t){return Math.max(e,t)},20)},flexEnd:function(e,t){for(var i=t,t=e[0],r=e[e.length-1],o=1;o<e.length-1;o++){var a=n(e,o);e[o].style.left=i+a+"px"}1<e.length&&(t.style.left=i+"px"),r.style.right="0px"},flexStart:function(e){e[0].style.left="0px";for(var t=1;t<e.length;t++){var i=n(e,t);e[t].style.left=i+"px"}},getPendoInlineUIElements:function(e){return K.filter(e,t)},getPendoVisualElements:function(e){return K.filter(e,function(e){return!t(e)})},initializeFlexElements:function(t){var n=t.cloneNode(),i=e(t),o=ae.getPendoInlineUIElements(t.children);if(1===i.length&&0===i[0].id.indexOf("pendo-text"))return t;for(;n.childNodes.length;)n.removeChild(n.childNodes[0]);for(var a=0;a<i.length;a++)r(i[a])?n.appendChild(i[a]):n.appendChild(ae.wrapElementInMockFlexboxContainer(i[a],t,n));for(var s=0;s<o.length;s++)n.appendChild(o[s]);return t.parentNode.replaceChild(n,t),n},isPendoInlineUIElement:t,setElementHorizontalAlignment:function(e,t,n){if(!(e.length<1))switch(n){case"space-between":ae.spaceBetween(e,t);break;case"space-around":ae.spaceAround(e,t);break;case"space-evenly":ae.spaceEvenly(e,t);break;case"center":ae.center(e,t);break;case"flex-start":ae.flexStart(e);break;case"flex-end":ae.flexEnd(e,t)}},setElementVerticalAlignment:function(e,t,n){switch(n){case"top":ae.topAlignment(e);break;case"center":ae.centerAlignment(e,t);break;case"bottom":ae.bottomAlignment(e)}},spaceAround:function(e,t){for(var i=t/(2*e.length),t=e[0],r=e[e.length-1],o=1;o<e.length-1;o++){var a=n(e,o);e[o].style.left=2*i+a+"px"}t.style.left=i+"px",r.style.right=i+"px"},spaceBetween:function(e,t){for(var i=t/Math.max(e.length-1,1),t=e[0],r=e[e.length-1],o=1;o<e.length-1;o++){var a=n(e,o);e[o].style.left=o*i+a+"px"}t.style.left="0px",r.style.right="0px"},spaceEvenly:function(e,t){for(var i=t/(e.length+1),t=e[0],r=e[e.length-1],o=1;o<e.length-1;o++){var a=n(e,o);e[o].style.left=i+a+"px"}t.style.left=i+"px",r.style.right=i+"px"},topAlignment:function(e){for(var t=0;t<e.length;t++)e[t].style.top="0px"},centerAlignment:function(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=i.offsetHeight,o=t/2,o=Math.round(o-r/2);i.style.top=o+"px"}},bottomAlignment:function(e){for(var t=0;t<e.length;t++)e[t].style.bottom="0px"},wrapElementInMockFlexboxContainer:function(e,t,n){var i,r=e.getAttribute("class")||"",o=-1!==r.indexOf("pendo-block-wrapper"),a=e.style&&"absolute"===e.style.position,s=K.get(e.style,"width",""),d=ne(e).width,u=-1!==r.indexOf("_pendo-open-text-poll-wrapper")||-1!==r.indexOf("_pendo-image-wrapper")||-1!==r.indexOf("pendo-video-wrapper")||-1!==r.indexOf("_pendo-number-scale-poll-wrapper");return(o&&!u&&(s=(s?d:null)||ne(e.children[0]).width),(0<=r.indexOf("_pendo-resource-center-onboarding-module-guide-complete-circle-container")||0<=r.indexOf("pendo-task-list-progress-circle"))&&(d=parseInt(ne(t).width,10),i=parseInt(ne(e).width,10)+parseInt(e.style.marginRight||0,10)+parseInt(e.style.marginLeft||0,10),t=(ee(t).find("._pendo-simple-text").getParent()||ee(n).find("._pendo-simple-text").getParent())[0],n=d-i,"border-box"!==K.get(t,"style.boxSizing")&&(n=n-parseInt(t.style.paddingLeft||0,10)-parseInt(t.style.paddingRight||0,10)),t.style.width=n.toString()+"px",t.style.maxWidth=n.toString()+"px"),!r||0>r.indexOf("pendo-mock-flexbox-element"))?((d=ae.createFlexContainer(a)).appendChild(e),-1<e.id.indexOf("pendo-text")&&"rtl"===e.dir&&(d.style.right="0px"),i=K.get(e,"children")[0],o&&i&&-1!==(i.getAttribute("class")||"").indexOf("image-preview-placeholder")&&(d.children[0].style.width=s),!o||u||e.style.width||(d.children[0].children[0].style.width=s),d):e},getVisualElementsWrappedInFlexElements:e,initializeFlexRows:function(e,t,n){var i,r=function(e){return K.filter(e,function(e){return(e=e.getAttribute("class")||"")&&-1<e.indexOf("pendo-mock-flexbox-element")})}(e.children);0!==r.length&&(i=ae.getRowWidth(e),r=ae.wrapFlexElementsInFlexRows(r,e,i),ae.formatFlexRows(r,e,t,n,i))},getRowWidth:i,wrapFlexElementsInFlexRows:function(e,t,n){for(var r=n||i(t),o=ae.createFlexRow(),a={row:o,rowWidthUsed:0},s=[a],d=0;d<e.length;d++){var u=e[d],c=Wr(u).width,c=parseInt(c,10);a.rowWidthUsed+=c,a.rowWidthUsed>r&&0!==K.indexOf(e,u)&&(a.rowWidthUsed-=c,(o=ae.createFlexRow()).appendChild(u),s.push(a={row:o,rowWidthUsed:c})),a.row.appendChild(u)}return s},formatFlexRows:function(e,t,n,r,o){for(var a=o||i(t),s=0;s<e.length;s++){var d=e[s],u=(t.appendChild(d.row),ae.findMaxChildHeight(d.row.children,!1)),c=(d.row.style["min-height"]=u+"px",a-parseInt(d.rowWidthUsed,10));ae.setElementHorizontalAlignment(d.row.children,c,n),ae.setElementVerticalAlignment(d.row.children,u,r)}},isElementHiddenInGuide:r,flexAllThings:function(e,t){(e=ee("#"+e,t)[0])&&(a(e),ae.flexElement(e))},flexElement:function(e){e=ee("[data-pendo-display-flex]",e),K.each(e,function(e){var t=ae.initializeFlexElements(e),n=e.getAttribute("data-pendo-justify-content"),e=e.getAttribute("data-row-vertical-alignment");ae.initializeFlexRows(t,n,e)})},maintainAspectRatios:a};function e(e){return ee('._pendo-button,.pendo-block-wrapper,._pendo-multi-choice-poll-select-border,._pendo-text-subTitle,._pendo-text-paragraph,._pendo-text-title,._pendo-text-custom,._pendo-close-guide,> ._pendo-simple-text,div._pendo-resource-center-module-list-item-text-container,._pendo-resource-center-right-caret,[id^="pendo-onboarding-guide-progress-circle"],[id^="pendo-task-list-progress-circle"],[id^="pendo-a11y-list-item-button-block"],._pendo-resource-center-onboarding-module-listed-guide-link,._pendo-home-view-bubble',e)}function t(e){return!!((e=e.getAttribute("class"))&&-1<e.indexOf("pendo-inline-ui"))}function n(e,t){for(var n=(e=Array.prototype.slice.call(e)).slice(0,t),i=0,r=0;r<n.length;r++)i+=n[r].offsetWidth;return i}function i(e){var t=Wr(e).width,e=ne(e);return parseInt(t,10)-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10)}function r(e){o(e);var t=re(e);if(0===t.width||0===t.height)return!0;if(!e.style||"visible"!==e.style.visibility)for(var n=e,i=e.id||"",r=0;0!==i.indexOf("pendo-g-")&&(o(n),i=(n=n.parentNode).id||"",!(10<++r)););return!1}function o(e){e.style&&"none"===e.style.display||e.style&&"0"===e.style.opacity||e.style&&e.style.visibility}function a(e){var t="data-aspect-ratio",e=ee("["+t+"]",e);K.each(e,function(e){var n=e.getAttribute(t).split(":"),n=1<n.length?parseInt(n[0],10)/parseInt(n[1],10):parseFloat(n[0]);isNaN(n)||(e.style.height=e.offsetWidth/n+"px")})}}();function Fc(){return!C.designer&&m.get("disableGuidePseudoStyles")}function Pc(e,t,n){return e&&e.templateName?Vu.buildNodesFromTemplate(e.templateName,e,t,n,Bc):"style"===e.type&&Fc()?[]:[Bc(e,t,n)]}function Gc(e,t,n,i){throw e='illegal building block key "'+e+'" found on guide "'+t+'" step "'+n+'"',i&&(e+=' for node type "'+i+'"'),X.info(e),Error(e)}function Dc(e,t,n,i){var r={allow:!0,allowfullscreen:!0,alt:!0,"alt-text":!0,autofocus:!0,class:!0,cols:!0,contenteditable:!0,dir:!0,for:!0,frameborder:!0,href:!0,id:!0,loading:!0,name:!0,placeholder:!0,placement:!0,rows:!0,role:!0,sandbox:!0,scoped:!0,src:!0,start:!0,style:!0,tabindex:!0,target:!0,title:!0,type:!0,value:!0},o={embed:{src:!0}},a=/^data-/,s=/^aria-/,d=K.keys(e);return K.reduce(d,function(d,u){return o[i]&&o[i][u]&&Gc(u,n,t,i),r[u]||a.test(u)||s.test(u)||Gc(u,n,t),d[u]=e[u],d},{})}function Bc(e,t,n){t=t||{id:"unknown",guideId:"unknown"},e.props=Dc(e.props,t.id,t.guideId,e.type);var i,r=ee(document.createElement(e.type));if(document.createElement("div").appendChild(r[0]),"script"===r[0].tagName.toLowerCase())return ee(document.createElement("noscript"));if("pendo-backdrop"===(e.props&&e.props.id))return t.attributes&&t.attributes.blockOutUI&&t.attributes.blockOutUI.enabled&&wc.attachScrollHandlers(t,uc),cc(t);if(K.each(e.props,function(n,i){"style"===i?r.css(e.props.style):"data-pendo-code-block"!==i||!0!==n||m.get("preventCodeInjection")?r.attr(i,n):(i=t.getContent(),0!==gt.call(i).length&&r.addClass("pendo-code-block").html(i))}),e.content&&r.text(e.content),"style"===e.type&&(C.designer||(e.css=jc(e.css)),(i=m.get("inlineStyleNonce"))&&r.attr("nonce",i),r.styleSheet?r.styleSheet.cssText=zc(e.css):r.text(zc(e.css))),e.svgWidgetId&&Yu.buildSvgNode(e.svgWidgetId,e).appendTo(r),e.actions&&e.actions.length)for(var o,a=0;a<e.actions.length;a++)$c(r,e.actions[a],t),"renderGuidesListItem"===e.actions[a].action&&((o=T(e.actions[a].parameters[0]))?r.text(o.name):r.attr("style","display: none;"));if(K.find(e.actions,function(e){return"dismissGuide"===e.action})&&!t.hasEscapeListener&&(t.hasEscapeListener=!0,t.attachEvent(window,"keyup",function(e){27===e.keyCode&&t.eventRouter.eventable.trigger("pendoEvent",{step:t,action:"dismissGuide"})},!0)),e.children)for(var s=No(oe()),d=s!==document,u=0;u<e.children.length;u++){var c=Pc(e.children[u],t,n);K.each(c,function(e){var n;e&&("STYLE"!==e[0].tagName?e.appendTo(r):d?((n=new CSSStyleSheet).replaceSync(e[0].innerHTML),s.hasOwnProperty("wrappedJSObject")?s.wrappedJSObject.adoptedStyleSheets.push(n):s.adoptedStyleSheets=[n]):(ee.addClass(e[0],"pendo-style-".concat(t.isBadge?t.guideId:t.id)),e.appendTo(document.head)))})}return r.hasClass("pendo-code-block")?r.find("img").each(function(e){Wc(e,t)}):Wc(r[0],t),r}function Wc(e,t){var n=e.id&&-1!==e.id.indexOf("badge"),i=!!e.getAttribute("src"),r=e.className&&0<=e.className.indexOf("bb-control"),o=e.tagName&&e.tagName.toLowerCase(),a=e.className&&0<=e.className.indexOf("_pendo-video");("img"!==o||!i||n||r)&&("iframe"!==o||!t||a)||"lazy"===e.getAttribute("loading")||(t.attributes&&!t.attributes.imgCount?t.attributes.imgCount=1:t.attributes&&t.attributes.imgCount&&t.attributes.imgCount++,Uc(ee(e),t))}function Uc(e,t){e.on("load",function(){var e,n={},n=(!t.containerId&&t.domJson&&(n=$u(t.domJson)),t.containerId||n.props&&n.props.id||""),i=n&&ee("#"+n,t.guideElement)[0];t&&t.attributes&&t.attributes.imgCount&&(t.attributes.imgCount--,i)&&t.attributes.imgCount<=0&&(Tc(n,t.guideElement),_c(n,t.guideElement),ae.flexAllThings(n,t.guideElement),e=t.getGuide(),K.get(e,"attributes.isAnnouncement")||"AnnouncementsModule"===K.get(e,"attributes.resourceCenter.moduleId")||(Ac(n,t.guideElement),(e=i.children.item("pendo-guide-container"))&&e.style&&"auto"===e.style.overflow&&(_c(n,t.guideElement),ae.flexAllThings(t.containerId,t.guideElement))),"tooltip"===t.attributes.calculatedType&&wc.positionStepForTooltip(t,t.domJson,i),i.style.visibility="visible",i.parentNode.style.visibility="visible",ee.event.dispatch(i,{type:"imagesLoaded"}))}),e.on("error",function(){var e=ee("#"+t.containerId,t.guideElement)[0];e?("tooltip"===t.attributes.calculatedType&&wc.positionStepForTooltip(t,t.domJson,e),e.style.visibility="visible",e.parentNode.style.visibility="visible",ae.flexAllThings(t.containerId,t.guideElement)):X.info("Failed to find guideContainer for id: "+t.containerId)})}function $c(e,t,n){e.on(t.eventType,function(i){var r;t.designerAction?C.designerv2&&C.designerv2.designerActions&&C.designerv2.designerActions[t.action](e,t.parameters):(r={action:t.action,params:t.parameters,step:n,ignore:!!t.ignore,srcElement:i.srcElement},("showElements"!==t.action&&"hideElements"!==t.action||i.srcElement&&i.srcElement.getAttribute("id")===t.source||i.target&&i.target.getAttribute("id")===t.source)&&n.eventRouter.eventable.trigger("pendoEvent",r))})}function jc(e){for(var t=["button:focus"],n=[],i=0;i<e.length;i++)K.contains(t,e[i].selector)||n.push(e[i]);return n}function zc(e){for(var t="",n=0;n<e.length;n++)t+=e[n].selector+"{",e[n].styles instanceof Array?t+=zc(e[n].styles):K.each(e[n].styles,function(i,r){t+=r+":"+i,e[n].selector.match(/\d+%/)||(t+="!important;")}),t+="}";return t}function Zc(e){K.each(document.head.childNodes,function(t){t&&ee.hasClass(t,"pendo-style-".concat(e))&&mo(t)})}var Vc=function(){var e=window.navigator;return((K.isArray(e.languages)?e.languages[0]:e.language||e.browserLanguage||e.systemLanguage||e.userLanguage)||"").split("-").join("_")},Yc="meta",Hc=function(e){return void 0!==(e="object"==typeof e?Rt(e):e)&&e.toString&&(e=e.toString()),""+(K.isNumber(Lc)?Lc:vi(Yc))!==e},Kc=K.compose(JSON.parse,JSON.stringify),Xc=function(e){var t=K.extend({},e.visitor),n=K.extend({},e.account),e=K.extend({},e.parentAccount);return t.id===Qn&&(X.info("Missing visitor id."),delete t.id),Kn(n.id)&&Kn(e.id)&&(ni(n.id)?e.id=n.id.split(ti)[0]:n.id=""+e.id+ti+n.id),Kn(n.id)&&(n.id=""+n.id),Kn(t.id)?t.id=""+t.id:t.id=Q({generate:!0}),t.language=Vc(),{visitor:Kc(t),account:Kc(n),parentAccount:Kc(e),date:Jc(),version:C.VERSION}},Jc=function(){var e=new Date,t=e.getDate(),n=e.getMonth()+1;return(t=t<10?"0"+t:t)+"/"+(n=n<10?"0"+n:n)+"/"+e.getFullYear()},qc=function(e){(e=K.isObject(e=void 0===e?{}:e)?e:{}).jwt&&e.signingKeyName&&(t=za.getJwtOptions(e,"updateOptions"))&&(za.set(K.pick(e,"jwt","signingKeyName")),e=t),e=Xc(e),q.getters["metadata/selfHosted"]()&&(e.selfHosted=!0);var t=K.clone(rl()),n=(m.setLocalConfig(K.extend({},m.getLocalConfig(),e)),q.commit("metadata/setMetadata",e),rl()),i=(Kn(e.visitor.id)&&(C.identify(e.visitor.id,e.account.id),e.visitor.id=Q(),e.account.id=fi()),Rt(e)),r=Hc(i);return Lc=i,r&&mi(Yc,i),{options:e,hashChanged:r,storeChanged:!K.isEqual(t,n)}},Qc=wi(function(e){e=qc(e),y.metadata.trigger(e)}),el=wi(function(e,t){K.isObject(e)?Qc(e):oi(e,t)}),tl=function(){return nl(ee("script"))&&"extension"!==_e()},nl=function(e){var t=RegExp("/agent/static/"+C.apiKey+"/pendo\\.js$");return!K.any(e,function(e){return t.test(e.src)})},il=function(){var e=m.get("blockAgentMetadata");return void 0!==e&&e};function rl(){return q.getters["metadata/metadata"]()}function ol(){return JSON.parse(JSON.stringify(rl()))}function al(e){var t=e.data[0],n=m.getLocalConfig()||{};Ii(e)?(qn([Yc]),q.commit("metadata/reset",t)):(n.visitor=K.extend({},n.visitor,{id:t.visitor_id}),n.account=K.extend({},n.account,{id:t.account_id}),m.setLocalConfig(n),q.commit("metadata/setMetadata",n))}y.identify.on(al);var sl={Launcher:{addBehavior:K.noop},Metadata:{getMetadata:rl},Util:{documentScrollTop:Mr,documentScrollLeft:Lr,getOffsetPosition:ie},Events:y,JWT:{getJWT:za.get}};function dl(e,t){var n=sl[e]||{};K.extend(n,t),sl[e]=n}var ul={},cl=function(e){var t=[],n=[],i={};function r(e){var t;return!!K.every(["name","version","use","type","uri"],K.partial(K.has,e))&&(t=i[t=e.use]?i[t].validators:[],K.every(K.map(t,function(t){return t(e)})))}function o(t){var r;return"behavior"===t.use?!!t.uri(e,sl)&&(n.push(t),!0):!!(r=i[r=t.use]?i[r].handler||K.identity:null)&&((t=r(t))&&n.push(t),!!t)}return e.tagExtension=function(t,n){(t=e.findExtensionByName(t)).tags=[].concat(t.tags||[],n)},e.findExtensionByTag=function(e){return K.find(n,function(t){return K.contains(t.tags,e)})},e.findExtensionByName=function(e){return K.findWhere(n,{name:e})},e.filterExtensionsByUse=function(e){return K.filter(n,function(t){return t.use===e})},e.findExtensionByNameAndProvider=function(e,t){return K.find(n,function(n){return!!(n=n.data)&&n.name===e&&n.provider&&n.provider.name===t})},e.registerExtensionsByUse=function(e,t,n){n=n?[].concat(n):[],i[e]={handler:t,validators:n}},e.getExtensionFrames=function(){return K.reduce(n,function(e,t){return t.frame&&t.frame[0]&&e.push(t.frame[0]),e},[])},function(e){e=[].concat(e),(e=K.filter(e,r)).length&&(t=function e(t){if(!t.length)return t;var n=K.filter(t,o);return n.length?e(K.difference(t,n)):t}(t.concat(e)))}}(ul),se=function(){var e,t,n,i,r,o;return{initializeResourceCenter:function(t){if(!(e=s(t))||q.getters["frames/isShownInAnotherFrame"]()(e.steps[0]))return J.resolve();if(se.isFullyCustom(e))return e.hasResourceCenterContent=!0,J.resolve();var n=d(e,t),i=K.reduce(n,function(e,t){return a(t)?e.concat(t.steps[0].fetchContent()):e},[]);return i.push(ku.validate(e).then(K.noop,function(){e.launchMethod="api"})),e.attributes.notifications={totalUnseenCount:0,individualCounts:{chat:0}},K.forEach(h(),function(e){var t=ul.findExtensionByNameAndProvider("chat",e),t=(t&&y(e,t),ul.findExtensionByNameAndProvider("helpcenter",e));t&&y(e,t)}),K.forEach(n,function(n){var i=n.attributes.resourceCenter,r=i.children,o=i.moduleId,i=("IframeModule"===o&&(n.hasResourceCenterContent=!0),"SandboxModule"===o&&(n.hasResourceCenterContent=!0),"IntegrationModule"===o&&(n.integrationConfig=p(i.integrationName,i.integrationProvider),n.hasResourceCenterContent=!!n.integrationConfig,n.integrationConfig)&&"chat"===n.integrationConfig.name&&f(i.integrationName,i.integrationProvider),K.reduce(r,function(e,n){var i=K.find(t,function(e){return e.id===n});return i?e.concat(i):e},[]));"AnnouncementsModule"===o&&(e.attributes.notifications.individualCounts[n.id]=0,K.forEach(i,function(t){j(t)||t.isControlGroup()||e.attributes.notifications.individualCounts[n.id]++})),-1<K.indexOf(["GuideListModule","OnboardingModule","AnnouncementsModule"],o)&&K.filter(i,function(e){return e.shouldBeAddedToResourceCenter()?(e.ineligibleForRC=!1,!0):(e.ineligibleForRC=!0,!1)}).length&&(n.hasResourceCenterContent=!0),n.guidesInModule=i}),e.modules=n,e.badgeHidden=!0,J.all(i).catch(function(){return e=null,X.error("Failed to load one or more Resource Center modules"),J.resolve()})},findResourceCenterHomeView:s,findResourceCenterModules:d,replaceResourceCenterContent:u,renderResourceCenterModule:function(e,t){u(e.id,void 0,!0,t)},showHomeViewOrEmptyState:function(e){ee("#pendo-resource-center-container._pendo-guide-walkthrough_").remove(),delete e.activeModule,e.hasResourceCenterContent&&e.skipResourceCenterHomeView?se.replaceResourceCenterContent(e.moduleIdToReplaceHomeViewWith,[{value:"none"},{value:"left"}]):e.showEmptyState&&(se.showResourceCenterEmptyState(),K.each(e.controlGuidesInAllModules,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}))},showResourceCenterEmptyState:function(){var e=ee("#pendo-resource-center-empty-state-container");e&&e.length&&ee(e[0]).css({display:"block"})},launchIntegrationByNameAndProvider:function(e,t,n){var e=ul.findExtensionByNameAndProvider(e,t);return e?(n=ee(n))?((e=e.getFrame()).appendTo(n),void e.css({display:"block"})):X.info("could not find target element for "+t+" integration"):X.info(t+" integration has not been loaded into the agent")},appendIntegrationToBodyByNameAndProvider:f,attemptToPreserveIntegrationIframes:function(e){e.step&&(e=e.step.getGuide()).attributes&&e.attributes.resourceCenter&&(e=se.getResourceCenterContainer())&&(e=ee(e).find('iframe[id^="_pendo-launcher-ext-frame-chat"]'))&&e.length&&e.each(function(e){(e=ee(e)).css({display:"none"}),e.appendTo(oe())})},getResourceCenter:A,getResourceCenterContainer:E,getResourceCenterBadge:T,addNotificationBubbleToResourceCenterBadge:G,addNotificationBubbleToTargetElement:P,updateNotificationBubbles:function(){var t=e,n=K.get(t,"attributes.notifications");if(n){var r=O(n.individualCounts);if(r<=0)r!==n.totalUnseenCount&&z(),n.totalUnseenCount=r;else{N();var o=r!==n.totalUnseenCount;if(o||!_(i)){if("badge"===t.launchMethod){if(!(o=T()))return;G(o.element(),t.attributes.notificationBubble,r)}if("dom"===t.launchMethod&&K.get(t,"attributes.activation.selector")){if(!(o=ee(t.attributes.activation.selector)).length)return;P(o[0],t.attributes.notificationBubble,r),te(window,"resize",K.debounce(R,50))}n.totalUnseenCount=r}}}},removeNotificationBubble:z,updateNotificationBubbleCount:U,updateNotificationBubbleOnHomeView:M,updateOrCreateNotificationBubble:D,hexToRgb:k,doesIntegrationExist:p,calculateTotalNotificationCount:O,updateNotificationBubblesOnHomeView:N,createNotification:B,appendNotificationBubble:Z,hasAnnouncementBeenSeen:j,clearAnnouncementUnseenInterval:c,createAnnouncementUnseenInterval:l,findShownResourceCenterModule:function(){var e=se.getResourceCenterContainer();if(e&&(e=ee(e).find('[id^="pendo-g-"]'))){var t=e.attr("data-pendo-guide-id"),e=K.find(qd(),function(e){return e.id===t});if(K.get(e,"attributes.resourceCenter.isModule",!1))return e}},dismissResourceCenter:Y,repositionResourceCenter:function(){var e,t,n,i=se.getResourceCenterContainer();i&&(n=se.findResourceCenterHomeView(qd()).steps[0],e=isNaN(e=parseInt(e=K.get(n,"domJson.props.style.height"),10))?0:e,t=parseInt(K.get(n,"domJson.props.style.bottom",0),10),n=parseInt(K.get(n,"domJson.props.style.top",0),10),t=isNaN(t)?0:t,n=isNaN(n)?0:n,(t=lo().height-t-n)<=e&&(i.style.height=(t-10).toString()+"px"),n=isNaN(n=parseInt(i.style.height,10))?0:n,e<t)&&e!==n&&(i.style.height=e.toString()+"px"),Cc(ee(i))},repositionDoubleResourceCenterBadge:function(){var e,t,n;q.getters["frames/isLeader"]()&&1<(e=K.unique(K.compact([].concat(K.toArray(ee("._pendo-resource-center-badge-container"))).concat(K.toArray(ee("._pendo-resource-center-badge-container")))))).length&&function(e){var t=re(e[0]),e=re(e[1]);return So(t,e)}(e)&&(t=ie(e[0]).width+5,n=ie(e[1]).left-t<0?"":"-",e[1].style.transform="translateX("+n+t+"px)")},resourceCenterIgnoreRtl:function(){return K.get(this.getResourceCenterBadge(),"ignoreRTL",!1)},adjustResourceCenterWidth:function(e){var t=E();if(t){o=lo().width,r=ee(t),e=ee(e),r.css({"max-width":"none"}),e.css({"max-width":"none"}),o<(i=parseInt(ne(r[0]).width,10))&&(i=isNaN(i=parseInt(t.style.left,10))?0:i,o=o-(t=isNaN(t=parseInt(t.style.right,10))?0:t)-i,r.css({"max-width":o+"px"}),e.css({"max-width":o+"px"}));var t=e,n=ee('button[id^="pendo-a11y-list-item-button-block"]');if(n&&n.length)for(var i=ee(t.find("ol._pendo-text-list-ordered"))[0],r=0,o=0,i=(i&&(o=parseInt((i=ne(i)).paddingLeft,10),r=parseInt(i.paddingRight,10)),ee('[id^="pendo-onboarding-guide-progress-circle"]')[0]),e=0,a=0,s=0,d=(i&&(e=parseInt((i=ne(i)).width,10),a=parseInt(i.marginRight,10),s=parseInt(i.marginLeft,10)),o+r+e+s+a),u=parseInt(ne(t[0]).width,10),c=0;c<n.length;c++){var l=n[c],p=ee(l),l=(p.css({"max-width":"none"}),ne(l)),f=parseInt(l.width,10),l=u-d-(parseInt(l.paddingLeft,10)+parseInt(l.paddingRight,10));l<=f&&p.css({"max-width":l})}}},setNativeIntegrationDefaults:y,renderNativeIntegration:S,isSupportedNativeIntegration:g,handleNativeIntegrationContinuation:x,isProviderInstalled:m,adjustNotificationBubbleForResize:R,getNotificationBubbleDefaultCss:W,getModuleId:V,isIframeModule:function(e){return"IframeModule"===V(e)&&e.hasResourceCenterContent},isSandboxModule:function(e){return"SandboxModule"===V(e)&&e.hasResourceCenterContent},isIntegrationModule:function(e){return"IntegrationModule"===V(e)&&e.hasResourceCenterContent},isFullyCustom:function(e){return"FullyCustomModule"===V(e)},integrationModuleHasContent:function(e){return e=e.attributes.resourceCenter,!se.isSupportedNativeIntegration(e.integrationProvider)||se.isProviderInstalled(e.integrationProvider)},fetchAnnouncementGuidesContent:function(e,t){var n=s(e);if(!n||t.getters["frames/isShownInAnotherFrame"]()(n.steps[0])||se.isFullyCustom(n))return J.resolve();var t=d(n,e),i=[],r=K.indexBy(e,"id");return K.each(t,function(e){var e=e.attributes.resourceCenter;"AnnouncementsModule"===e.moduleId&&(e=e.children,e=K.reduce(e,function(e,t){return(t=r[t])?e.concat(t):e},[]),K.each(e,function(e){a(e)&&i.push(e.steps[0].fetchContent(!0))}))}),J.all(i)},setFocusForResourceCenterModule:function(e,t){var n;"HomeViewModule"===e[0].getAttribute("data-layout")?t&&(n=(e=ee('[data-pendo-module-guide-id="'+t+'"]')).find('button[id^="pendo-right-caret-"]')[0]):n=(t=ee('[id="pendo-resource-center-module-title-container"]')).find('button[id^="pendo-left-caret-"')[0],n&&n.focus()},revertRtlChanges:function(e,t){var n="rtl"===K.get(t,"data-localization-direction",!1),e=K.get(e,"attributes.badge.ignoreRTL",!1);n&&e&&!t["data-direction-changed"]&&(n=K.get(t,"style.left",!1),e=K.get(t,"style.right",!1),n)&&e&&(t.style.left=e,t.style.right=n,t["data-direction-changed"]=!0)},stashBadgeAriaLabel:L,resetBadgeAriaLabel:function(){var e,t=se.getResourceCenterBadge();t&&(e=(t=t.element()).getAttribute("data-pendo-stashed-aria-label"))&&t.setAttribute("aria-label",e)},getNotificationBubbleAriaLabelAttribute:F,updatePseudoStyleSelectors:H,hideRCBadge:$};function a(e){return e.steps&&e.steps.length&&K.isFunction(e.steps[0].fetchContent)}function s(e){var e=K.filter(e,function(e){return K.get(e,"attributes.resourceCenter.isTopLevel")&&!e.isFrameProxy});return K.find(e,function(e){return"staged"===e.state})||e[0]}function d(e,t){return K.filter(t,function(t){return t&&!t.isFrameProxy&&K.get(t,"attributes.resourceCenter.isModule",!1)&&t.state===e.state})}function u(t,i,r,o){if(void 0===o&&(o=!0),!n){var a="left 200ms",s="left",i=(i&&2<=i.length&&(a=i[0].value,s=i[1].value),E());if(i){var d=ee(i).find('[id^="pendo-g-"]')[0];if(d){var u,c=d.getAttribute("data-pendo-guide-id"),p=K.find(qd(),function(e){return e.id===t}),f=(t!==e.id?(Zc(K.get(e.activeModule||e,"steps.0.id")),e.activeModule=p):(u=e.activeModule,Zc(K.get(u,"steps.0.id")),delete e.activeModule),K.get(p,"attributes.resourceCenter.integrationProvider")),h=(g(f)&&S(f),p.steps[0]),f=H(h.domJson),f=(f.props["data-pendo-guide-id"]=p.id,Bc(f,h)),m=f[0],a=(-1===m.id.indexOf("pendo-g-")&&(m=f.find('[id^="pendo-g-"]')[0]),r||(m.style.transition=a,d.style.transition=a,"left"===s?m.style.left=i.offsetWidth+"px":"right"===s&&(m.style.left=-1*i.offsetWidth+"px")),r&&(ee(d).remove(),u)&&u.steps&&u.steps.length&&(u.steps[0].elements.length=0),ee(i).find('[id^="pendo-end-focus-bumper-"]')[0]);if(a?ee(m).insertBefore(a):ee(m).appendTo(i),h.guideElement=ee(i),h.elements.push(h.guideElement[0]),se.adjustResourceCenterWidth(m),"AnnouncementsModule"===V(p)&&h.guide.guidesInModule?(_c(a=K.reduce(h.guide.guidesInModule,function(e,t){var n;return K.isUndefined(t.steps[0].attributes.imgCount)&&(n=t.steps[0].id,n=ee(m).find("#pendo-g-"+n)[0]?n:t.id,e.push("pendo-g-"+n)),e},[]),h.guideElement),K.each(a,function(e){ae.flexAllThings(e,h.guideElement)})):ae.flexAllThings("pendo-resource-center-container"),Cc(ee(i)),m.style.left="0px",!r){n=!0;try{"left"===s?d.style.left=-1*i.offsetWidth+"px":"right"===s&&(d.style.left=i.offsetWidth+"px"),Dt(function(){ee(d).remove(),u&&u.steps&&u.steps.length&&(u.steps[0].elements.length=0),n=!1},200)}catch(e){throw n=!1,e}}return"AnnouncementsModule"===V(p)&&(l(),a=Vu.getGuidesInResourceCenterModule(p,qd()),(r=K.reduce(a,function(e,t){return t.steps&&t.steps.length&&Wu.hasContent(t.steps[0])||e.push(t.fetchContent()),e},[])).length)&&((s=function(){var e,t,n;if(K.isFunction(document.createElementNS))return e="http://www.w3.org/2000/svg",t=function(t,n){var i=ee(document.createElementNS(e,"circle")).attr({cx:t,cy:n,fill:"#9a9ca5",r:5});return K.each(K.toArray(arguments).slice(2),function(e){i.append(e)}),i},n=function(t){return ee(document.createElementNS(e,"animate")).attr({attributeName:"fill-opacity",values:"0;1;0;0",keyTimes:"0;0.4;0.8;1",dur:"1.4s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0 0 0.58 1; 0 0 0.58 1; 0 0 0.58 1",begin:t})},n=ee(document.createElementNS(e,"svg")).attr({viewBox:"0 0 70 20",xmlns:"http://www.w3.org/2000/svg",width:"70",height:"20"}).append(t(21,10,n("-0.32s"))).append(t(35,10,n("-0.16s"))).append(t(49,10,n("0s"))),ee(document.createElement("li")).css({padding:"5px 20px","list-style-type":"none","list-style-position":"inside",position:"relative","margin-left":"0em","border-width":"0px","border-style":"solid","border-color":"rgb(255, 255, 255)",float:"none","vertical-align":"baseline","text-align":"center"}).append(n)}())&&f.find("ol").append(s),J.all(r).then(function(){var e=J.defer();return Dt(e.resolve,500),e.promise}).then(function(){e.activeModule===p&&se.renderResourceCenterModule(p,o)})),se.setFocusForResourceCenterModule(f,c),o&&h.onShown("launcher"),f}}}}function c(){window.clearInterval(t),t=null}function l(){t=t||window.setInterval(function(){var t=E();if(!t||!(t=ee(t).find('[data-layout="AnnouncementsModule"]')).length)return c();var n=ee(t).find('ol[id^="pendo-list"]');if(!n.length)return c();var i=re(n[0]),r=ee(n).find("li");if(!r.length)return c();for(var o=t.attr("data-pendo-guide-id"),a=e.attributes.notifications.individualCounts[o],s=i.height/3,d=re(r[r.length-1]).bottom-30<i.top+i.height,u=0;u<r.length;u++){var l=ee(r[u]),p=l.hasClass("pendo-unseen-announcement"),f=l.attr("data-pendo-announcement-send-seen-event");if(p||f){if(re(r[u]).top-i.top>i.height-s&&!d)break;var h=l.attr("data-pendo-announcement-guide-id"),f=K.find(qd(),function(e){return e.id===h});if(!f)break;p&&(l.removeClass("pendo-unseen-announcement"),p=l.find(".pendo-unread-announcement-mini-bubble"),ke(10)?l.find(".pendo-unread-announcement-mini-bubble").remove():(p[0].style.visibility="hidden",p[0].style.opacity="0",p[0].style.transition="visibility 0s 2s, opacity 2s linear"),j(f)||a--,U(a,o)),f.steps[0].seenState="advanced",Of(f.id,f.steps[0].id,Q(),"whatsnew",f.language,{last_updated_at:f.steps[0].lastUpdatedAt}),l[0].removeAttribute("data-pendo-announcement-send-seen-event"),Lf(f.id,f.steps[0].id,Q(),"advanced",f.language)}}},500)}function p(e,t){return ul.findExtensionByNameAndProvider(e,t)}function f(t,n){if(!(t=ul.findExtensionByNameAndProvider(t,n)))return X.info(n+" integration has not been loaded into the agent");g(n)&&m(n)?e.hasEligibleNativeIntegrationModule=!0:(Co((n=t.getFrame())[0])||n.appendTo(oe()),n.css({display:"none"}))}function h(){return["drift-native-chat","intercom-chat","zendesk-chat","zendesk-native-kb","zendesk-messaging"]}function g(e){return!!e&&0<=h().indexOf(e)}function m(e){return!!e&&null!==(e=v(e))&&K.isFunction(window[e])}function v(e){if(!e)return null;switch(e){case"zendesk-chat":case"zendesk-messaging":case"zendesk-native-kb":return"zE";case"intercom-chat":return"Intercom";case"drift-native-chat":return"drift";default:return null}}function y(t,n){var i,o,a;t&&(m(t)?b(t,n):"function"==typeof Object.defineProperty&&null!==(o=v(t))&&(r&&r[o]?r[o][t]||(r[o][t]={installed:!1,integrationObj:n}):((r=r||{})[o]=((i={})[t]={installed:!1,integrationObj:n},i),Object.defineProperty(window,o,{get:function(){return a},set:function(t){a=t,K.forEach(r[o],function(t,n){var i=t.integrationObj;!t.installed&&m(n)&&(t.installed=!0,b(n,i),f(i.name,n),K.forEach(e.modules,function(e){e.integrationConfig&&e.integrationConfig.data.name===i.name&&e.integrationConfig.data.provider.name===n&&(e.hasResourceCenterContent=!0)}))})},configurable:!0,enumerable:!0}))))}function b(t,n){switch(t){case"zendesk-chat":case"zendesk-native-kb":var i=(r=n).data.provider.name,r=w(r);I(i,"webWidget","hide"),I(i,"webWidget","updateSettings",{webWidget:{navigation:{popoutButton:{enabled:!1}},position:{vertical:r?r[0]:"bottom",horizontal:r?r[1]:"right"}}}),I(i,"webWidget:on","close",function(){I(i,"webWidget","hide"),C()}),e.isInProgress()&&x(e.activeModule),I(i,"webWidget:on","chat:unreadMessages",function(e){U(e,"chat")});break;case"zendesk-messaging":I(r=(r=n).data.provider.name,"messenger","hide"),I(r,"messenger:on","close",function(){C()}),I(r,"messenger:on","unreadMessages",function(e){U(e,"chat")});break;case"intercom-chat":var o=n;o=w(o),window.intercomSettings||(window.intercomSettings={}),window.intercomSettings.hide_default_launcher=!0,window.intercomSettings.alignment=o?o[1]:"right",window.Intercom("update",{hide_default_launcher:!0,alignment:o?o[1]:"right"}),window.Intercom("onHide",function(){C()});break;case"drift-native-chat":window.drift.on("ready",function(t){window.drift.hide();var n=rl();window.drift.identify(n.visitor.id,function e(t){var n={};for(var i in t)if("object"!=typeof t[i]||Array.isArray(t[i]))n[i]=t[i];else{var r,o=e(t[i]);for(r in o)o[r]&&(n[i+"."+r]=o[r])}return n}(n)),window.drift.on("message",function(t){if(!e.isNativeModuleActive)return U(1,"chat")})}),window.drift.on("chatClose",function(e){U(0,"chat"),window.drift.hide(),C()})}}function I(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];try{o&&o[e]||window.zE.apply(null,n)}catch(n){o?o[e]=!0:((t={})[e]=!0,o=t)}}function w(e){return e=(e=K.get(e,"data.options.labels.position"))&&e.split("-")}function C(){Y(e.activeModule),delete e.activeModule,e.continueToNativeModule=!1}function S(t,n){if(t){var i=rl();if(e.isShown()&&e.hide(),o&&o[t])X.info(t+" integration failed to communicate with API, closing"),se.replaceResourceCenterContent(e.id,void 0,!0),C();else{var r=T();switch(r&&$(r,e),t){case"zendesk-messaging":I(t,"messenger","show"),I(t,"messenger","open");break;case"zendesk-native-kb":I(t,"webWidget","updateSettings",{webWidget:{helpCenter:{suppress:!1},chat:{suppress:!0}}}),I(t,"webWidget","show"),I(t,"webWidget","open");break;case"zendesk-chat":I(t,"webWidget","updateSettings",{webWidget:{chat:{suppress:!1},helpCenter:{suppress:!0}}}),window.$zopim.livechat.window.show(),i&&i.visitor&&i.visitor.email&&I(t,"webWidget","prefill",{email:{value:i.visitor.email}});break;case"intercom-chat":window.Intercom("show"),i&&i.visitor&&i.visitor.email&&window.Intercom("update",{email:i.visitor.email});break;case"drift-native-chat":window.drift.api.openChat(),i&&i.visitor&&i.visitor.email&&window.drift.config({email:i.visitor.email})}U(0,"chat"),!e.activeModule&&n&&(e.activeModule=n).steps[0].onShown("launcher")}}}function x(t){t&&!t.isTopLevel&&(S(K.get(t,"attributes.resourceCenter.integrationProvider")),e.activeModule||(e.activeModule=t),t.steps[0].onShown("continue"),t.attributes.doNotResume=!0)}function A(){return e}function E(){return K.get(e,"steps.0.guideElement.0")}function T(){if(e&&e.id)return Kd[e.id]}function k(e){return(e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}function _(e){return e&&K.all(e,function(e){return Co(e&&e.length?e[0]:e)})}function R(){var e,t=se.getResourceCenter(),n=K.get(t,"attributes.notifications");n&&(n=se.calculateTotalNotificationCount(n.individualCounts),"dom"===t.launchMethod)&&K.get(t,"attributes.activation.selector")&&(e=ee(t.attributes.activation.selector)).length&&se.addNotificationBubbleToTargetElement(e[0],t.attributes.notificationBubble,n)}function O(e){return K.reduce(e,function(e,t){return e+t},0)}function N(){var t,n=e;n&&(n=K.get(n,"attributes.notifications"))&&(t=E())&&ee(t).find("._pendo-resource-center-home-list").length&&K.each(n.individualCounts,function(e,t){M(e,t)})}function M(e,t){var n=se.getResourceCenterContainer();n&&(n=ee(n).find('[data-pendo-notification-id="'+t+'"]')).length&&(t=ee(n[0]).find("._pendo-home-view-bubble"),e!==parseInt((n=ee(t[0].children[0])).text(),10))&&(0<e?(n.text(e),ee(t[0]).css({display:"block","margin-right":"0"})):(n.text(""),ee(t[0]).css({display:"none"})))}function L(e){var t;e.getAttribute("data-pendo-stashed-aria-label")||(t=e.getAttribute("aria-label"),e.setAttribute("data-pendo-stashed-aria-label",t))}function F(e){return 1!==e?"data-pendo-aria-label-alert-plural":"data-pendo-aria-label-alert-singular"}function G(e,t,n){var i=F(n),i=e.getAttribute(i),i=(i&&(L(e),i=i.replace("{UNSEEN_COUNT}",n),e.setAttribute("aria-label",i)),K.get(t,"position","top-left")),r=ne(e),r=(parseInt(r.width,10)||56)/2,o=r/Math.sqrt(2),r=Math.round(r-o)-10,a=r-10,o=Math.round(2*o),r={"top-left":{top:r+"px",left:a+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"top-right":{top:r+"px",left:a+o+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-left":{top:r+o,left:a+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-right":{top:r+o,left:a+o+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"}},a=e.attributes["data-localization-direction"]||!1,o=se.resourceCenterIgnoreRtl();D(e,t,n,r[i=a&&!o?({"top-left":"top-right","top-right":"top-left","bottom-left":"bottom-right","bottom-right":"bottom-left"})[i]:i])}function P(e,t,n){var i=Br(e,e),r=Br(e,bo());D(e,t,n,{width:"28px",top:i.top-Math.min(r.top,14)+"px",left:i.left-Math.min(r.left,14)+"px",position:"absolute"},{width:"28px","font-size":"16px","text-align":"center",position:"absolute",right:"0px"})}function D(e,t,n,r,o){var a,s;_(i)?(s=(a=W(t)).defaultBubbleCss,a=a.defaultUnseenCountCss,s=K.extend(s,r),a=K.extend(a,o),i.bubbleEle.css(s),i.unseenCountEle.css(a),i.unseenCountEle.text()!=""+n&&i.unseenCountEle.text(n)):(s=ee(e).find(".pendo-resource-center-badge-notification-bubble")).length?s[0].getElementsByClassName("pendo-notification-bubble-unread-count")[0].textContent=n:n&&Z(i=B(t,n,r,o),e)}function W(e){return{defaultBubbleCss:{position:"absolute","border-radius":"20px","line-height":"0px",height:"26px","box-sizing":"content-box","background-color":e["background-color"]},defaultUnseenCountCss:{"font-weight":e["font-weight"],"font-family":e["font-family"],height:"100%",position:"relative",top:"50%",color:e.color}}}function B(e,t,n,i){var r,o=W(e),a=o.defaultBubbleCss,o=o.defaultUnseenCountCss,s=(t=t||0,ee(document.createElement("div")).addClass("pendo-resource-center-badge-notification-bubble")),d=ee(document.createElement("div")).addClass("pendo-notification-bubble-unread-count"),a=K.extend(a,n),n=K.extend(o,i);return s.css(a),d.css(n),ke(10)||Fc()||(r=ee(document.createElement("style")).attr("id","pendo-resource-center-bubble-animation"),i="@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6) } } "+('.pendo-resource-center-badge-notification-bubble::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: '+("rgb("+(o=k(e["background-color"])).r+", "+o.g+", ")+o.b)+"); border-radius: 100%; z-index: -1; animation: pulse 2s infinite; will-change: transform; }",r.styleSheet?r.styleSheet.cssText=i:r[0].innerHTML=i),d.text(t),{bubbleEle:s,unseenCountEle:d,styleEle:r}}function Z(e,t){e.styleEle&&e.styleEle.appendTo(t),e.unseenCountEle.appendTo(e.bubbleEle),e.bubbleEle.appendTo(t)}function z(){var e=i?i.bubbleEle:ee(".pendo-resource-center-badge-notification-bubble"),t=i?i.styleEle:ee("#pendo-resource-center-bubble-animation");e&&K.each(e,function(t,n){e[n]&&(n=e[n])&&n.parentNode&&n.parentNode.removeChild(n)}),t&&K.each(t,function(e,n){t[n]&&(n=t[n])&&n.parentNode&&n.parentNode.removeChild(n)}),i=null,se.resetBadgeAriaLabel()}function U(t,n){var i=e;i&&(i=K.get(i,"attributes.notifications"))&&i.individualCounts[n]!==t&&(i.individualCounts[n]=t,se.updateNotificationBubbles())}function j(e){return!(!K.isFunction(e.hasBeenSeen)||!e.hasBeenSeen())||"active"===e.steps[0].seenState}function Y(e){var t=K.get(e,"attributes.resourceCenter.isModule",!1)?e:se.findShownResourceCenterModule();return t&&uf(t=K.first(t.steps)),uf(t=(K.get(e,"attributes.resourceCenter.isTopLevel",!1)?e:se.findResourceCenterHomeView(qd())).steps[0])}function V(e){return K.get(e,"attributes.resourceCenter.moduleId")}function H(e){var t="pendo-a11y-list-item-button-block|pendo-link-|pendo-right-caret-|pendo-row-|pendo-text-",n=new RegExp("#((".concat(t,")[^:]*)")),t=zu(e,function(e){return e.css&&e.css.length});return K.forEach(t,function(e){K.forEach(e.css,function(e){e.selector=e.selector.replace(n,"[id^='$1']")})}),e}function $(e,t){e.hide(),t&&t.id&&(t.steps&&t.steps.length&&(t.steps[0].overrideElement=void 0),delete Kd[t.id])}}(),ll=1e4,pl="lastStepAdvanced";function hl(e){q.dispatch("guideState/updateLastGuideStepSeen",e),q.dispatch("guideState/write"),q.dispatch("frames/changeLastGuideStepSeen",e)}function fl(){var e=[];return q.dispatch("guideState/init"),e.push(te(window,"focus",gl)),e.push(te(window,"storage",function(e){q.dispatch("guideState/storageChanged",e)})),function(){return K.each(e,function(e){e()})}}function gl(){q.dispatch("guideState/regainFocus")}function ml(){return q.state.guideState.lastGuideStepSeen}var vl={actions:{init:function(e){e.getters.storage().registry.addLocal(pl),e.commit("setScopedStorageKey",An(e.state.storageKey)),y.identify.on(function(e){Ii(e)&&qn([pl])})},load:function(e,t){if(t){var n;try{n=JSON.parse(t)}catch(e){}n&&K.each([].concat(n),function(t){e.commit("setStepState",t)})}},forceExpire:function(e){K.each(e.state.steps,function(t,n){e.commit("expireStepState",n)})},expire:function(e){var t=e.getters.now();K.each(e.state.steps,function(n,i){t-n.time>e.state.ttl&&e.commit("expireStepState",i)})},apply:function(e){var t,n=K.indexBy(e.getters.guideList(),"id");e.dispatch("expire"),K.each(e.state.steps,function(i){var r,o,a=i.guideId,s=i.guideStepId;i.visitorId&&i.visitorId!==e.getters.visitorId()||((!t||i.time>t.time)&&(t=i),(a=n[a])&&(r=K.findWhere(a.steps,{id:s}))&&(o=e.state.storageKey,r.seenState!=i.state&&(X.info("making sure that seenState = '"+i.state+"' for "+o+": "+s),r.seenState=i.state),r.snoozeEndTime!=i.snoozeEndTime&&(X.info("making sure that snoozeEndTime = '"+i.snoozeEndTime+"' for "+o+": "+s),r.snoozeEndTime=i.snoozeEndTime),r.seenReason!=i.seenReason&&(X.info("making sure that seenReason = '"+i.reason+"' for "+o+": "+s),r.seenReason=i.seenReason),void 0!==i.dismissCount&&r.dismissCount!=i.dismissCount&&(void 0===r.dismissCount?r.dismissCount=i.dismissCount:r.dismissCount=Math.max(i.dismissCount,r.dismissCount),X.info("making sure that dismissCount = '"+r.dismissCount+"' for "+o+": "+s)),i=K.indexOf(a.steps,r),K.each(a.steps.slice(0,i),function(e){K.contains(["advanced","dismissed"],e.seenState)||(e.seenState="advanced")})))}),t&&e.dispatch("updateLastGuideStepSeen",K.extend({},e.state.lastGuideStepSeen,t))},receiveLastGuideStepSeen:function(e,t){e.commit("setReceivedLastGuideStepSeen",t),e.commit("setLastGuideStepSeen",t)},updateLastGuideStepSeen:function(e,t){var n;t.visitorId&&t.visitorId!==e.getters.visitorId()||(n=K.some(e.getters.guideList(),function(e){return e.id===t.guideId}),t.guideStepId&&e.commit("setStepState",t),n&&(e.commit("setLastGuideStepSeen",t),C.lastGuideStepSeen=t))},updateThrottlingState:function(e,t){e.commit("setThrottlingState",t)},write:function(e){e.dispatch("expire");var t=e.rootState.frames.tabId,n=e.state.storageKey,i=e.getters.cookieSuffix(),r=e.state.ttl,o=e.getters.storage(),a=JSON.stringify(K.map(e.state.steps,function(e){return K.extend({tabId:t},e)}));X.info("writing "+a+" to a cookie named "+n+" for "+r+" and cookieSuffix "+i),o.write(n,a,r,!1,!1,i),e.dispatch("preview/update",e.state.lastGuideStepSeen,{root:!0})},storageChanged:function(e,t){if(t.key===e.state.scopedStorageKey){try{var n=e.getters.storage(),i=e.getters.cookieSuffix(),r=n.read(e.state.storageKey,!1,i),o=[].concat(JSON.parse(r))}catch(e){}e.getters.storageChangedInOtherTab()(o)&&(_l(),e.dispatch("load",r),e.dispatch("apply"),e.state.receivedStateChangeAt||e.commit("setReceivedStateChange",e.getters.now()))}},regainFocus:function(e){var t=e.getters.tabLostFocus(),n=e.getters.isGuideRequestStale();t&&(e.commit("setReceivedStateChange",null),n||(El(),xl())),n&&om()}},mutations:{expireStepState:function(e,t){e.expired[t]=e.steps[t],delete e.steps[t]},setStepState:function(e,t){e.steps[t.guideStepId]=t},setScopedStorageKey:function(e,t){e.scopedStorageKey=t},setLastGuideStepSeen:function(e,t){e.lastGuideStepSeen=t},setReceivedLastGuideStepSeen:function(e,t){e.receivedLastGuideStepSeen=t},setReceivedStateChange:function(e,t){e.receivedStateChangeAt=t},setLastGuideRequestAt:function(e,t){e.lastGuideRequestAt=t},setThrottlingState:function(e,t){e[t.name]=t.value}},state:{steps:{},expired:{},ttl:ll,storageKey:pl,guideRequestExpiration:36e5,scopedStorageKey:null,receivedStateChangeAt:null,receivedLastGuideStepSeen:null,lastGuideStepSeen:null,lastGuideRequestAt:null,latestDismissedAutoAt:null,latestSnoozedAutoAt:null,finalAdvancedAutoAt:null},getters:{now:function(){return v()},storage:function(){return h},guideList:function(){return A()},tabLostFocus:function(e){return!!e.receivedStateChangeAt},isGuideRequestStale:function(e,t){return null!=e.lastGuideRequestAt&&t.now()-e.lastGuideRequestAt>e.guideRequestExpiration},storageChangedInOtherTab:function(e,t,n){return function(t){var i=K.get(n,"frames.tabId");return!!t&&!!((t=K.max(K.compact(t),"time"))&&t.tabId&&i&&t.tabId!==i)&&(!e.lastGuideStepSeen||!e.lastGuideStepSeen.time||t.time>e.lastGuideStepSeen.time)}},cookieSuffix:function(){return m.get("crossAppGuideStorageSuffix")},visitorId:function(){return Q()}}},yl=function(){return{canDisplay:function(e,t,i){return!(i&&i.enabled&&K.isFinite(t)&&(t=n(t,i),K.isNumber(t)&&!isNaN(t)))||t<=e},lastDismissedTime:function(e){return Math.max(e.latestDismissedAutoAt||-1/0,e.finalAdvancedAutoAt||-1/0,e.latestSnoozedAutoAt||-1/0)},sortAndFilter:function(n,i){var r=m.get("appAutoOrdering")||[].concat(m.get("leaderKey"));r.length&&(o=q.getters["frames/autoOrdering"](),r=K.reduce(r,function(e,t){return e.concat(o[t]||[])},[]),i=K.uniq(r.concat(i)));var o,a,s,r=function(e){return(e=K.defaults(K.groupBy(e,function(e){return t(e)?"override":"auto"}),{override:[],auto:[]})).override.concat(e.auto)}(function(e,t){var n;return K.isArray(t)&&t.length?(n=K.indexBy(e,"id"),t=K.reduce(t,i,[]),K.chain(e).pluck("id").reduce(i,t).value()):e;function i(e,t){return n[t]&&(e.push(n[t]),delete n[t]),e}}(K.filter(n,e),i));return K.find(n,function(e){return e.isTraining})?(n=i=m.get("adoptPrioritizeAdoptGuides"),a=[],s=[],K.each(r,function(e){(e.isTraining?a:s).push(e)}),n?a.concat(s):s.concat(a)):r},tryDisplayGuide:function(e,n){var i=yl.lastDismissedTime(n),i=yl.canDisplay(v(),i,n.throttling);if((t(e)||i)&&e.shouldAutoDisplay())return e.autoDisplay()},getNextAutoDisplayTime:n};function e(e){return e&&/auto/.test(e.launchMethod)}function t(e){var t;return(t=e).attributes&&t.attributes.overrideAutoThrottling||K.isFunction(e.shouldShowSnoozedGuide)&&e.shouldShowSnoozedGuide()}function n(e,t){var n=t.interval,t=(t.unit||"").toLowerCase();return K.isNumber(n)&&Pt(e)?"minute"===t?6e4*n+e+1:"hour"===t?36e5*n+e+1:"day"===t?(t=e,e=n,(t=new Date(Math.max(t,0))).setHours(0,0,0,0),t.setDate(t.getDate()+e),t.getTime()):void 0:K.isNumber(n)?(new Date).getTime():void 0}}();function bl(e){return y.guideSeen.on(function(t){var t=t.data[0].props||{};"permalink"===t.reason&&(t=e(t.guide_id))&&(t.shownFromPermalink=!0)}),{tryDisplay:function(){var e,n=t(window.location.href),i=this.getGuideFromUrl(n);if(i&&this.shouldShowPermalinkGuide(i))return e=this.getStepFromUrl(n,i),n.pendo_once&&(delete n.pendo_once,delete n.pendo,delete n.step,delete n.c__pendo,window.history.replaceState({},document.title,window.location.pathname+"?"+yr(n))),this.showPermalinkGuide(i,e)},getQueryString:t,getGuideFromUrl:function(t){return(t=t.pendo||t.c__pendo)?e(t):null},getStepFromUrl:function(e,t){return(e=e.step)?function(e,t){return K.find(e.steps,function(e){return e.id===t})}(t,e):null},showPermalinkGuide:function(e,t){(t||e).show("permalink")},shouldShowPermalinkGuide:function(e){return!e.shownFromPermalink}};function t(e){var t=hr(e).substring(1),t=vr(t),n=e.indexOf("#");return!t.pendo&&0<=n&&(n=hr(e.substring(n+1)).substring(1),K.extend(t,vr(n))),t}}var Il=K.memoize(function(){return bl(T)});function wl(e,t){var e=K.find(e,function(e){return e.isContinuation(t)}),n=e&&e.attributes&&e.attributes.doNotResume;if(e&&!n)return e}var Cl=function(){function e(){this.name="autoDisplay",this.queue=[]}return e.prototype.markDirty=function(){var e;Cu()&&(this.queue.push("permalink","continuation"),(e=this.queue).push.apply(e,yl.sortAndFilter(A(),C.autoOrdering)))},e.prototype.process=function(e){if(Vh())this.cancel();else{var t=this.queue.shift();if("permalink"===t)return Il().tryDisplay(C);if("continuation"===t){var n=wl(A(),ml());if(n)return e.saveContext(n),n.show("continue")}else if(t){if(!wl(A(),ml()))return e.saveContext(t),yl.tryDisplayGuide(t,C);this.cancel()}}},e.prototype.handleProcessTimeExceeded=function(e){(e=e.getContext())&&X.warn("Auto display ("+e.id+") timeout exceeded")},e.prototype.cancel=function(){this.queue.length=0},e.prototype.isComplete=function(){return!this.queue.length},e}(),Sl=null,Al=500,Tl=function(e){Sl=K.delay(function(){Sl=null,xl()},e=e||Al),C.guidesProcessingThreadHandle=Sl},_l=function(){Sl&&(clearTimeout(Sl),Sl=null,C.guidesProcessingThreadHandle=Sl),q.dispatch("guideUpdate/stopScheduledUpdate")},El=function(){Jh(),$l.cancel();for(var e=0;e<Hd.length;e++){var t=Hd[e];t.parentNode.removeChild(t)}Hd.length=0,q.dispatch("guideUpdate/stopObserver"),y.guideLoopStopped.trigger()},xl=function(){if(_l(),ng())X.info("guides are loading.",{contexts:["guides","loading"]});else if(jg())X.info("guides are disabled.",{contexts:["guides","disabled"]});else if(zg())X.info("guides are delayed.",{contexts:["guides","delayed"]});else if(!q.getters["guideState/tabLostFocus"]())try{var e=ou();e&&0!==e.length&&(q.dispatch("guideUpdate/startObserverIfNeeded"),$l.isComplete()&&$l.markDirty(),Su())&&$l.process()}catch(e){$l.cancel(),X.critical("ERROR in guide-loop",{error:e})}finally{$l.paused||Rl()}};function Rl(){$l.isComplete()?(q.state.guideUpdate.useObserver&&!q.state.guideUpdate.needsUpdate||Tl(),y.guideUpdateComplete.trigger()):Tl(50)}var kl=function(){var e=m.getLocalConfig();m.get("delayGuides")&&(delete e.delayGuides,m.setLocalConfig(e)),m.get("guides.delay")&&(delete e.guides.delay,m.setLocalConfig(e)),xl()},Ol=function(){jg()||Vg(!0),El(),qf()},Nl=function(){function e(e,t){this.dirty=!1,this.name=e,this.processFn=K.isFunction(t)?t:K.noop}return e.prototype.markDirty=function(){this.dirty=!0},e.prototype.process=function(){this.processFn(),this.dirty=!1},e.prototype.cancel=function(){this.dirty=!1},e.prototype.isComplete=function(){return!this.dirty},e}();function Ml(){var e=dm();e&&(K.each(e.steps,function(t){Ll(e.guide,t)}),e.guide.checkForHiddenGroupSteps())}function Ll(e,t){var n,i,r,o,a;t.isLocked()||q.getters["frames/isShownInAnotherFrame"]()(t)||(n=t.element,i=t.targetElement,o=t.guideElement,r=ee("."+Uh),(o=o.find("#pendo-guide-container")[0])&&o.textContent&&(o=ne(o).fontSize,t.attributes.currentTextZoomFontSize!==o)&&(t.attributes.currentTextZoomFontSize&&t.redraw(),t.attributes.currentTextZoomFontSize=o),t.elementPathRule&&i&&!s.matchesSelector(i,t.elementPathRule)?t.hide():(o=b(n),a=!0,i&&o&&t.elementContainsRulesList&&(o=a=wf(i,t.elementContainsRulesList)),n&&(o||r.hasClass("mouseover"))?t.checkPlacement():("tooltip"===t.type||"tooltip"===t.attributes.calculatedType)&&Go(n)&&a||t.hide()))}var Fl=function(){function e(){this.name="badge",this.queue=[]}return e.prototype.markDirty=function(){this.queue.push.apply(this.queue,K.filter(Qd(A()),lu))},e.prototype.process=function(e){var t=this.queue.shift();e.saveContext(t),t&&t.placeBadge()},e.prototype.handleProcessTimeExceeded=function(e){e=e.getContext(),X.warn("Badge ("+e.id+") timeout exceeded")},e.prototype.cancel=function(){this.queue.length=0},e.prototype.isComplete=function(){return!this.queue.length},e}();function Pl(e,t){var n,i,r,o,a;se.isFullyCustom(e)||(n=!1,i=[],r=K.filter(e.modules,function(t){var r,o;return!!t&&(!!se.isIframeModule(t)||!!se.isSandboxModule(t)||(se.isIntegrationModule(t)?!!se.integrationModuleHasContent(t)||(t.hasResourceCenterContent=!1):(r=(o=K.filter(t.guidesInModule,function(e){return e.shouldBeAddedToResourceCenter()?(e.ineligibleForRC=!1,!0):(e.ineligibleForRC=!0,e.control&&i.push(e),!1)})).length,t.hasResourceCenterContent=!!r,e.activeModule&&t.id===e.activeModule.id&&(o=Rt(K.map(o,function(e){var t=e.isAnnouncement()||e.isWhatsNew()?null:K.pluck(e.steps,"seenState");return{id:e.id,seenState:t}})),t.eligibleGuidesInModuleHash&&o!==t.eligibleGuidesInModuleHash&&(n=!0),t.eligibleGuidesInModuleHash=o),r)))}),o=!1,e.activeModule||(a=Rt(K.map(r,function(e){return{id:e.id}})),e.eligibleModulesHash&&e.eligibleModulesHash!==a&&(o=!0,se.replaceResourceCenterContent(e.id,void 0,!0)),e.eligibleModulesHash=a),t(e,r,i),1===r.length&&(e.skipResourceCenterHomeView=!0,e.moduleIdToReplaceHomeViewWith=r[0].id,a=!e.activeModule&&o,t=e.activeModule&&e.activeModule.id!==r[0].id,a||t||n)&&se.replaceResourceCenterContent(e.moduleIdToReplaceHomeViewWith,void 0,!0),r&&(o=K.find(r,function(e){return e.isContinuation(ml())}),a=K.get(o,"attributes.doNotResume"),t=K.get(o,"attributes.resourceCenter.integrationProvider"),se.isSupportedNativeIntegration(t))&&!a&&e&&(e.continueToNativeModule=!0,o.continueToNativeModule=!0),e.activeModule&&((t=K.find(r,function(t){return t.id===e.activeModule.id}))&&n&&se.replaceResourceCenterContent(e.activeModule.id,void 0,!0),t||se.replaceResourceCenterContent(e.id)),se.repositionResourceCenter())}function Gl(e,t){var n,i,r,o;se.isFullyCustom(e)||(n=[],o=[],(r=K.find(e.modules,function(e){return!!se.isIframeModule(e)||!!se.isSandboxModule(e)||!!se.isIntegrationModule(e)&&(!!se.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1))}))&&n.push(r),r=K.flatten(K.pluck(e.modules,"guidesInModule")),o=K.filter(K.compact(r),function(e){return e.control}),!n.length&&(i=K.reduce(e.modules,function(e,t){return K.each(t.guidesInModule,function(n){e[n.id]=t}),e},{}),r=K.filter(r,function(e){return e&&e.steps&&e.steps.length}),r=K.sortBy(r,function(e){return+!!e.steps[0].elementPathRule}),r=i[(r=K.find(r,function(e){return e.shouldBeAddedToResourceCenter()}))&&r.id])&&n.push(r),t(e,n,o))}function Dl(e,t,n){var i,r,o=Kd[e.id];t&&t.length||(t=-1!==e.launchMethod.indexOf("badge"),i=-1!==e.launchMethod.indexOf("dom"),r=-1!==e.launchMethod.indexOf("extensionIcon"),e.hasResourceCenterContent=!1,t?(e.isShown()&&e.hide(),o&&se.hideRCBadge(o,e),K.each(n,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}),e.badgeHidden=!0,delete e.activeModule):(i||r)&&(e.showEmptyState=!0,e.controlGuidesInAllModules=n)),e.badgeHidden&&e.hasResourceCenterContent&&!e.isNativeModuleActive&&(o||(K.isFunction(e.placeBadge)&&e.placeBadge(),o=Kd[e.id]),o&&o.show(),e.badgeHidden=!1)}function Bl(e){var t,n;e&&e.launchMethod&&(e.skipResourceCenterHomeView=!1,e.hasResourceCenterContent=!0,delete e.moduleIdToReplaceHomeViewWith,n=e.activeModule,t=K.get(n,"attributes.resourceCenter.integrationProvider"),e.isNativeModuleActive=n&&se.isSupportedNativeIntegration(t),se.isFullyCustom(e)?e.hasResourceCenterContent=!0:((e.isShown()||!q.getters["frames/isLeader"]()?Pl:Gl)(e,Dl),e.isNativeModuleActive&&(e.isShown()&&e.hide(),n=Kd[e.id])&&se.hideRCBadge(n,e),"dom"===e.launchMethod&&(se.updateNotificationBubbles(),se.adjustNotificationBubbleForResize())))}var Wl=function(){function e(e){void 0===e&&(e=50),this.startTime=-1,this.timeLimit=e,this.context=null}return e.prototype.start=function(){this.context=null,this.startTime=v()},e.prototype.isTimeExceeded=function(){return v()-this.startTime>this.timeLimit},e.prototype.saveContext=function(e){this.context=e},e.prototype.getContext=function(){return this.context},e}(),Ul=function(){function e(e){this.phases=e,this.queue=[],this.paused=!1}return e.prototype.markDirty=function(){for(var e=0,t=this.phases;e<t.length;e++)t[e].markDirty();this.queue=this.phases.slice()},e.prototype.runGuidePhase=function(){for(var e,t,n,i=this.queue[0],r=new Wl(50);!this.timedOut()&&!i.isComplete()&&!e;)r.start(),!(e=i.process(r))&&r.isTimeExceeded()&&(i.handleProcessTimeExceeded&&i.handleProcessTimeExceeded(r),this.ejectGuide(r.getContext()));$t(e)?(t=this.updateId,n=K.bind(function(){this.updateId===t&&(this.paused=!1,xl())},this),this.paused=!0,e.then(n).catch(n)):i.isComplete()&&this.queue.shift()},e.prototype.addPhase=function(e,t){t=t||e.name||this.phases.length,K.isFunction(e)&&(e=new Nl(t,e)),this.phases.push(e)},e.prototype.removePhase=function(e){var t=K.findIndex(this.phases,function(t){return t.name===e});0<=t&&this.phases.splice(t,1)},e.prototype.timedOut=function(){return!!this.iterationStartTime&&v()-this.iterationStartTime>q.state.guideUpdate.iterationTimeLimit},e.prototype.ejectGuide=function(e){void 0===this.ejectOnTimeout&&(this.ejectOnTimeout=m.get("guides.ejectOnTimeout")),this.ejectOnTimeout&&e&&!e.isShown()&&tu.addGuide(e)},e.prototype.process=function(){var e=v();for(this.updateId||(this.updateId=e,this.updateTotalTime=0,q.commit("guideUpdate/startUpdate",e)),this.iterationStartTime=e;!this.paused&&this.queue.length&&!this.timedOut();)this.runGuidePhase();e=v(),this.updateTotalTime+=e-this.iterationStartTime,this.isComplete()&&this.complete(e)},e.prototype.complete=function(e){q.commit("monitoring/setTimer",{name:"guideUpdateTimeMS",time:this.updateTotalTime}),q.commit("guideUpdate/completeUpdate",e),this.cancel()},e.prototype.cancel=function(){this.updateId=null,this.paused=!1;for(var e=this.queue.length=0,t=this.phases;e<t.length;e++){var n=t[e];K.isFunction(n.cancel)&&n.cancel()}},e.prototype.isComplete=function(){return!this.queue.length},e}(),$l=new Ul([new Fl,new Nl("resourceCenter",function(){Bl(se.getResourceCenter())}),new Nl("frameVisibility",function(){q.dispatch("frames/checkFrameVisibility")}),new Nl("guideShowing",Ml),new Cl]);function jl(){$l.addPhase.apply($l,arguments)}function zl(){$l.removePhase.apply($l,arguments)}function Zl(){var e={};return K.each(["after","before"],function(t){this[t]=function(n,i){var r,o,a,s;this[n]&&((r=e[n])||(r=e[n]={before:[],after:[]},this[n]=(o=this[n],a=r.before,s=r.after,function(){for(var e=K.toArray(arguments),t=0,n=a.length;t<n;++t)if(!1===a[t].apply(this,e))return;var i=o.apply(this,e);for(t=0,n=s.length;t<n&&!1!==s[t].apply(this,e);++t);return i})),r[t].push(i))}},this),this}var Vl="debug-enabled";function Yl(){try{return JSON.parse(h.read(Vl,!0)||bn(Vl))||{}}catch(e){return{}}}function Hl(e){var t;return void 0===e&&(e=!0),t=q&&q.getters&&q.getters["debugger/debuggingEnabled"]?q.getters["debugger/debuggingEnabled"]():!0===Yl().enabled,e?t:t?"Yes":"No"}var Kl=function(){function e(e,t){this.type=t,this.identificationFn=e}return e.prototype.test=function(e){return this.identificationFn(e)},e}(),Xl=function(){var e={},t=function(t){var t=t.data,n=t[0];t[1];var i=T(n.guideId),t=(K.find(e,function(e){return e.GuideType.test(i)})||{}).handler;t&&t(i,"resourceFetchFail")};return{run:function(){y.resourceFetchFail.on(t)},stop:function(){y.resourceFetchFail.off(t)},addTypeHandler:function(t,n){K.isFunction(n)?e[t.type]={GuideType:t,handler:n}:X.error("Invalid Handler function provided for type ".concat(t.type))}}}(),Jl=(Xl.addTypeHandler(new Kl(lu,"badge"),function(e,t){tu.addGuide(e)}),"_pendo-badge_");function ql(e,t){var n;m.get("disablePrefetch")||(t=K.keys(t)).length&&(n=K.indexBy(e,"id"),K.each(t,function(e){var e=n[e];e&&(e=K.first(e.steps))&&K.isFunction(e.fetchContent)&&e.fetchContent(!0)}))}function Ql(e){var t;return e&&((t=(t=e.props=e.props||{}).style=t.style||{}).cursor=t.cursor||"pointer"),e}function ep(e){return function(t){var n,i;return K.get(t,"props.data-localization-direction",!1)&&!e&&(n=K.get(t,"props.style.left","auto"),i=K.get(t,"props.style.right","auto"),n)&&i&&(t.props.style.left=i,t.props.style.right=n),t}}function tp(e,t){var n=e?["he","ar"]:[];return function(e){return K.contains(n,t)&&(e.props["data-localization-direction"]=!0),e}}function np(e,t){var n,i,r=vu(t),o=!(null==(o=null==e?void 0:e.attributes)||!o.resourceCenter),a=!1;return o&&(a=null==(n=null==(n=null==e?void 0:e.attributes)?void 0:n.badge)?void 0:n.ignoreRTL),"building-block"===e.attributes.type?(i=n=K.reduce([tp(o,e.language),ep(a),Ql,Pu,function(n){return Bc(n,{id:t.id,guideId:e.id,isBadge:!0})}],function(e,t){return t(e)},this.domJson)[0],ee.removeNode(n),-1===i.className.indexOf("_pendo-badge_")&&(i.className+=" _pendo-badge_"),this.isP2Badge=!0):((i=document.createElement("img")).src=Fu(this.imageUrl),i.className="_pendo-badge "+Jl,o=this.width||13,a=this.height||13,so(i,"width:"+o+"px;height:"+a+"px;")),i.id="_pendo-badge_"+t.id,this.activate=function(){var e=K.isFunction(t.getGuide)&&t.getGuide(),n=_f(e);!e.isShown()||q.getters["frames/isShownInAnotherFrame"]()(t)?xf(t,"badge"):n?t.eventRouter.eventable.trigger("pendoEvent",{step:t,action:"dismissGuide"}):uf(n=K.find(e.steps,function(e){return e.isShown()}))},this.shouldShow=function(){return e.canBadgeBeShown()||!1},this.show=function(){if(K.isFunction(this.shouldShow))return this.shouldShow()},this.hide=function(){ee.removeNode(i),Zc(e.id),K.isFunction(this.removeScrollHandlers)&&(this.removeScrollHandlers(),this.removeScrollHandlers=null),t.overrideElement=void 0},_f(e)&&(this.toggleAriaExpanded=function(){var e=!!ee("#pendo-resource-center-container")[0],t=ee("button._pendo-resource-center-badge-container")[0]||ee('._pendo-resource-center-badge-container [id^="pendo-image-badge-"]')[0];t&&t.setAttribute("aria-expanded",e)},i.checkAriaExpanded=this.toggleAriaExpanded),this.step=K.constant(t),this.target=K.constant(r),this.element=K.constant(i),this}function ip(){return"inline"!==this.position&&"inline-right"!==this.position&&"inline-left"!==this.position||this.before("show",function(){var e,t=this.target(),n=this.element();this.isP2Badge&&so(n,"display:inline-block;vertical-align:text-bottom;"),this.css&&so(n,this.css),t&&t.tagName&&(e=t.tagName.toLowerCase(),/br|input|img|select|textarea/.test(e)?n.parentNode!==t.parentNode&&t.parentNode.insertBefore(n,t.nextSibling):n.parentNode!==t&&("inline"===this.position||"inline-right"===this.position?t.appendChild(n):"inline-left"===this.position&&t.prepend(n)))}),this}function rp(e){return this.position&&"top-right"!==this.position&&"top-left"!==this.position||this.before("show",function(){var t,n=this.element(),i=ie(this.target()),r=0,o=0,a=0;if(this.offsets&&(r=this.offsets.top||0,o=this.offsets.right||0,a=this.offsets.left||0),!K.get(e,"attributes.resourceCenter",!1)){var s="position:"+(i.fixed?"fixed":"absolute")+";top:"+(i.top+r)+"px;";switch(this.position){case"top-right":s+="left:"+(i.left+i.width-o)+"px";break;case"top-left":s+="left:"+(i.left+a)+"px"}so(n,s)}n.parentNode||(oe().appendChild(n),t=Mo(te,this.target(),fp),this.removeScrollHandlers=function(){fp.cancel(),t()})}),this}function op(){return"over"===this.position&&this.before("show",function(){var e,t=this.element(),n=ie(this.target()),i="position:absolute;top:"+n.top+"px;left:"+n.left+"px;";so(t,i+="height:"+n.height+"px;width:"+n.width+"px;background-color:transparent;"),t.parentNode||(oe().appendChild(t),e=Mo(fp,t,this.target()),this.removeScrollHandlers=function(){fp.cancel(),e()})}),this}function ap(){var e=this,t=e.element(),n=!1,i=function(t){e.activate(),e.toggleAriaExpanded&&e.toggleAriaExpanded(),Zd(t)};return e.after("show",function(){n||(I(t,"click",i),n=!0)}),e.after("hide",function(){w(t,"click",i),n=!1}),e}function sp(){var e,t,n,i=this.element(),r=this.step(),o=!1;return("yes"===this.useHover||this.showGuideOnBadgeHover)&&(e=K.throttle(function(e){Ui(e)===i||function(e){for(;e;){if(/_pendo-guide_|_pendo-guide-tt_|_pendo-backdrop|_pendo-badge_/.test(e.className)||/pendo-guide-container/.test(e.id))return!0;e=e.parentNode}return!1}(Ui(e))||n()},50,{trailing:!1}),t=function(t){r.isShown()||xf(r,"badge"),I(document,"mousemove",e),Zd(t)},n=function(t){w(document,"mousemove",e),hu()||uf(r)},this.after("show",function(){o||(I(i,"mouseover",t),o=!0)}),this.after("hide",function(){w(i,"mouseover",t),w(document,"mousemove",e),o=!1})),this}function dp(){var e,t,n,i,r,o=this.element(),a=this.target(),s=!1;return(this.showBadgeOnlyOnElementHover||/hover/.test(this.showOnEvent))&&!hu()&&(e="inline"===this.position?"visibility:visible;":"display:inline;",t="inline"===this.position?"visibility:hidden;":"display:none;",n=K.throttle(function(e){var t,n,i,s,d,u;Ui(e)===a||Ui(e)===o||eo(o,"triggered")||(t=e.clientX,e=e.clientY,n=re(a),i=re(o),s=Math.min(n.left,i.left),d=Math.min(n.top,i.top),u=Math.max(n.right,i.right),n=Math.max(n.bottom,i.bottom),i=e+document.documentElement.scrollTop,s<=t&&t<=u&&d<=i&&i<=n)||r()},50,{trailing:!1}),i=function(){so(o,e),I(document,"mousemove",n)},r=function(){w(document,"mousemove",n),so(o,t)},this.after("show",function(){s||(I(a,"mouseover",i),s=!0,r())}),this.after("hide",function(){s&&(w(a,"mouseover",i),s=!1),r()})),this}np.create=function(e){var t=np.findStep(e);if(t)return K.reduce(np.behaviors,function(n,i){return i.call(n,e,t)},e.attributes.badge)},np.findStep=function(e){var t=K.find(e.steps,function(e){return!!e.elementPathRule});if(t&&e.attributes&&e.attributes.badge)return t},np.behaviors=[Zl,np,ip,rp,op,ap,sp,dp];var up=function(e,t){var n,i,r=(t=t||Kd)[e.id],o=r?r.step():np.findStep(e);o&&(i=r?r.target():vu(o),(n=K.get(e,"attributes.resourceCenter"))&&!q.getters["frames/canShowRCBadge"]()?r&&K.isFunction(r.hide)&&(t[e.id]=void 0,r.hide()):n&&!e.hasResourceCenterContent||(se.updateNotificationBubbles(),n=!0,o.elementContainsRulesList&&(n=i&&wf(i,o.elementContainsRulesList)),(i=o.elementPathRule&&b(i)&&s.matchesSelector(i,o.elementPathRule)&&n)?((r=r||np.create(e)).show(),t[e.id]=r):r&&!o.isShown()&&(t[e.id]=void 0,r.hide()),Hl()&&y.stepEligibility.trigger({stepId:o.id,guideId:e.id,eligible:i,reason:"target_element_badge"}),se.repositionDoubleResourceCenterBadge()))},cp=function(){K.map(Kd,lp),Jd({})},lp=function(e,t){e&&(K.isFunction(e.hide)&&e.hide(),K.isFunction(e.shouldShow))&&!e.shouldShow()&&t&&delete Kd[t.id]},pp=function(e){var t=Kd[e.id];t&&lp(t,e)};function hp(){K.map(Kd,function(e){e&&e.show&&e.show()})}var fp=K.throttle(hp,10);function gp(e){var t;e&&e.length&&(t=K.indexBy(e),K.each(Kd,function(e,n){t[n]||(e.hide(),delete Kd[n])}))}var _,mp=h.getLocal(),vp="pendo-preview",yp="current-guide-preview";function bp(e){return q.dispatch("preview/load"),Ip(e)}function Ip(e){var t=Zp();if(t)return Cp(e),q.dispatch("preview/start",K.extend(t)),h.clear(pl),yn(!1),Ra.lock(),og(Kp),y.startPreview.trigger(),y.leaderChanged.on(function(t){q.dispatch("preview/write"),t.oldLeaderId||om(),q.getters["frames/isLeader"]()||(ee(_).remove(),_=null,e.removeEventListener("message",Tp))}),jl(wp),!0}function wp(){return q.getters["frames/isFollower"]()||Bp(document,A(),ml()),!0}function Cp(e){if(q.getters["frames/leaderExists"]()){if(!q.getters["frames/isFollower"]()){if(_)return!0;K.isFunction(e.addEventListener)&&e.addEventListener("message",Tp),_=Rp(),bo().appendChild(_)}}else y.one("leaderChanged",K.partial(Cp,e))}function Sp(e,t,n){Jh(),q.commit("healthCheck/resetStepStatus",null,{root:!0}),Wu.reset(),om();var i=e[0],i=(i&&K.each(i.steps,function(e){e.seenState=null}),h.clear(pl),xp(null),Zp());return i&&(i=K.findWhere(e,{id:i.guideId}))&&(i={stepId:i.steps[0].id},n&&(i.language=n),q.dispatch("preview/restart",i)),Gp(e,t)}function Ap(e){_&&_.style&&(_.style.height=e)}function Tp(e){var t,n;e.origin===location.origin&&(t=e.data.type,n=!!e.data.preventWindowClose,t===vp+"::exit"?($p({preventWindowClose:n}),q.dispatch("frames/stopPreview",{preventWindowClose:n})):t===vp+"::restart"?(n=Sp(A(),ml(),e.data.language),q.dispatch("guideState/forceExpire"),q.dispatch("guideState/updateLastGuideStepSeen",n),q.dispatch("frames/restartPreview")):t===vp+"::resize"?Ap(e.data.height):t===vp+"::request-preview-mode-type"&&(n=Vp(),_)&&_.contentWindow&&n&&_.contentWindow.postMessage({mutation:"preview/setPreviewModeType",payload:{previewModeType:n.previewModeType||"NEW_TAB"}},location.origin))}function _p(){return q.getters["preview/isInPreviewMode"]()}function Ep(){return q.getters["preview/isInDesignerPreviewMode"]()}function xp(e){q.dispatch("preview/update",e)}function Rp(){var e=document.createElement("iframe");return e.id=vp,co(e,{border:"none",display:"block !important",height:"70px","min-height":"70px",left:0,position:"fixed",right:0,top:0,visibility:"visible !important",width:"100%","z-index":4e5}),e.onload=function(){m.get("inlineStyleNonce")&&(t=e.contentDocument.createElement.bind(e.contentDocument),e.contentDocument.createElement=function(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r,o=t.apply(void 0,qt([e],n,!1));return"style"===e&&(r=m.get("inlineStyleNonce"))&&o.setAttribute("nonce",r),o});var t,n=document.createElement("script");n.src=Wh(),e.contentDocument.body.appendChild(n),e.contentWindow.ignoreIframeMonitor=!0},e}function kp(){var e=Vp();return e?Ep()?(K.each(e.guide.steps,function(e){var t=["domJsonpUrl","domUrl"];e.domUrl&&0===e.domUrl.indexOf("data:")&&(t=["domJson","contentJs","contentCss","content"]),K.each(t,function(t){delete e[t]})}),e.guide.showsAfter=null,e.guide.expiresAfter=null,[e.guide]):void 0:[]}function Op(e){var t=Zp();return t?(t.isResourceCenter?Np:Fp)(e,t):e}function Np(e,t){var n=se.findResourceCenterHomeView(e),e=K.filter(e,function(e){return e.id!==n.id}),t=(Pp(n,t.stepId),K.map(e,function(e){return e.launchMethod="launcher",e}));return[n].concat(t)}function Mp(e){"launcher"===e.launchMethod?e.launchMethod="auto-launcher":"api"===e.launchMethod&&(e.launchMethod="auto")}function Lp(e){e.launchMethod="api",(e=e.steps[0])&&(e.seenState="advanced")}function Fp(e,t){var n;return K.each(e,function(e){e.id===t.guideId?n=e:Lp(e)}),Mp(n),n.showsAfter=null,n.expiresAfter=null,Pp(n,t.stepId),e}function Pp(e,t){for(var n=K.find(e.steps,function(e){return e.id===t}),i=n?e.steps.indexOf(n):0,r=0;r<e.steps.length;r++)r<i?(e.steps[r].seenState="advanced",e.steps[r].seenReason="continue"):(e.steps[r].seenState=null,e.steps[r].seenReason=null)}function Gp(e,t){null==t&&(t={});var n=Zp();return n&&(e=K.findWhere(e,{id:n.guideId}))?n.state?n.state:(Mp(e),t=-1<e.launchMethod.indexOf("auto"),n.stepId!==e.steps[0].id||t?{guideId:n.guideId,guideStepId:n.stepId,state:"active"}:{}):t}function Dp(e,t){_&&_.contentWindow&&_.contentWindow.postMessage({mutation:"preview/setGuideLoadError",payload:{guideLoadError:t}},location.origin)}function Bp(e,t,n){var i,r,o,a,s,d,u;_p()&&(i=Zp())&&_&&_.contentWindow&&(t&&t.length?(_.contentWindow.postMessage({mutation:"preview/setGuideLoaded",payload:{guideLoaded:!0}},location.origin),r=K.find(t,function(e){return e.id===i.guideId}),o=0,a=r.steps.length,s=n||{},K.find(r.steps,function(e,t){return s.guideStepId===e.id&&("dismissed"===s.state||"active"===s.state?o=t:"advanced"===s.state&&s.destinationStepId?o=K.indexOf(r.steps,K.find(r.steps,function(e){return e.id===s.destinationStepId})):"advanced"===s.state&&t===a-1&&(o=a),!0)}),t="dismissed"===s.state,n=a-1<=o,t=t||n,n=n?a-1:o,u=(d=r.steps[n]).isShown(),_.contentWindow.postMessage({mutation:"preview/setHostname",payload:{hostname:nt}},location.origin),_.contentWindow.postMessage({mutation:"preview/setGuidePages",payload:{guidePages:r.previewPages}},location.origin),_.contentWindow.postMessage({mutation:"preview/setGuideProgress",payload:{guideName:r.name,guideAttributes:JSON.stringify(r.attributes),guideLaunchMethod:r.launchMethod,guideActivationSelector:yu(r),isAdoptGuide:r.isTraining,isResourceCenter:i.isResourceCenter,stepId:d&&d.id,currentStepIndex:n,stepCount:a,elementPathRule:d.elementPathRule,elementContainsRulesList:d.elementContainsRulesList,triggerElementPathRule:d.triggerElementPathRule,isShown:u,pageId:d.pageId,completed:t,languageOptions:K.get(i,"languageOptions",[]),currentLanguage:i.language}},location.origin),Up(d,n,_)):Dp(e,{status:404,data:"Guide not found"}))}function Wp(e){var t,n;_&&_.contentWindow&&_.style&&(t=K.first(ee('#pendo-resource-center-container, [id^="pendo-g-"]')))&&(t=ne(t))&&(n={mutation:"preview/setIsPreviewBarTop",payload:{isPreviewBarTop:!1}},"0px"===t.top?(_.style.top="auto",_.style.bottom="0px",_.contentWindow.postMessage(n,location.origin)):"0px"!==t.bottom&&_.style.top||(_.style.top="0px",_.style.bottom="auto",n.payload.isPreviewBarTop=!0,_.contentWindow.postMessage(n,location.origin)))}function Up(e,t,n){var i,r;e&&n&&n.contentWindow&&(i=e.getGuide().id,(r=K.filter(q.state.frames.frames,function(e){return"hidden"!==e.visibility&&e.guides&&e.guides[i]})).length)&&(r=K.map(r,function(n){return E.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:n.id,stepId:e.id,guideId:i,currentStepIndex:t})}),J.all(r).then(function(t){for(var i={},r=-1,o=0;o<t.length;o++){var a=JSON.parse(t[o]).errors;if(!a.GUIDE){var s=K.keys(a).length;if(!s){i={};break}-1===r?(i=a,r=s):e.regexUrlRule?!a.PAGE&&s<=r&&(i=a,r=s):s<r&&(i=a,r=s)}}n.contentWindow.postMessage({mutation:"preview/setErrors",payload:{errors:i}},location.origin)}).catch(K.noop))}function $p(e){var t=Vp(),n=!1,i=(t&&(n="SAME_TAB"===t.previewModeType),mp.getItem("pendo-navigation-state"));if(q.dispatch("preview/exit"),Jh({stayHidden:!0}),h.clear(pl),Ra.unlock(),ee(_).remove(),ag(),zl(wp),yn(!0),n&&i){mp.setItem(yp,JSON.stringify(K.extend(t,{isExitBackToDesigner:!0})));try{var r=JSON.parse(i),o={target:r.baseUrl,gcsBucket:r.gcsBucket,preloader:!0,DADesigner:r.isDADesigner,host:r.host,forceNativeDesigner:"web"===t.guide.appPlatform};q.dispatch("preview/launchInAppDesigner",o)}catch(e){q.dispatch("preview/exitDesignerPreview")}}else e&&!e.preventWindowClose&&window.close(),om()}function jp(e,t){if(e=K.get(e(),t))return JSON.parse(JSON.stringify(e))}function zp(){return q}var Zp=K.partial(jp,zp,"state.preview.preview"),Vp=K.partial(jp,zp,"state.preview.designerPreview");function Yp(e){var t;if(e.subscriptionId&&e.guideId)return t=e.isResourceCenter?"/resourcecenter/":"/guide/","/api/s/"+zt(e.subscriptionId)+t+zt(e.guideId)+"/preview"}var Hp=function(e){var t;return Wo(e.origin)?(t=Yp(e))?(t={url:e.origin+t+"?url="+zt(f.externalizeURL())+"&apiKey="+C.apiKey,withCredentials:!0},e.headers&&(t.headers=e.headers),p(t).then(function(e){return e.data.guide})):(X.info("Invalid guide url, exiting preview"),J.reject("invalid guide url")):(X.info("Invalid origin, exiting preview"),J.reject("invalid origin"))},Kp={load:function(e,t){return Jp(e,t)},post:function(e,t,n){return Jp(e,n)},endpoint:function(){return""},usesXhr:function(){return!0}};function Xp(e,t){var n,i;return Wo(e.origin)?(n=Yp(e))?q.getters["frames/leaderExists"]()&&e.apiKey===C.apiKey?(n="".concat(e.origin).concat(n,"?url=").concat(zt(f.externalizeURL()),"&apiKey=").concat(C.apiKey),e.childGuides&&e.childGuides.length&&(n+="&childGuides="+e.childGuides.toString()),Ep()&&(n+="&ignoreGuide=true"),n={url:n,withCredentials:!0},e.headers&&(n.headers=e.headers),i=[],p(n).then(function(t){return t=t.data,Ep()?(i=kp(),t.guide=i[0]):i=e.isResourceCenter?t.guide:(t.guide.previewPages=t.pages,[t.guide]),t.children&&(i=i.concat(t.children)),e.language&&e.language!==K.get(i,"[0].authoredLanguage")&&qp(i,e.language.value),e.watermarkConfig&&(t.guide.isTraining=!0),C.guideWidget={enabled:!1,data:{guideCssUrl:t.guideCssUrl}},C.guideCssUrl=t.guideCssUrl,C.normalizedUrl=t.normalizedUrl,C.throttling=void 0,t.guide}).then(function(t){var n;return e.watermarkConfig?Hp(n=Object.assign(n=JSON.parse(JSON.stringify(e)),e.watermarkConfig)):t}).then(function(e){e.attributes&&e.attributes.isWatermark&&i.push(e),C.guidesPayload({id:t,lastGuideStepSeen:Gp(i,C.lastGuideStepSeen),guides:Op(i)})}).catch(function(e){return Dp(document,e),J.reject(e)})):(C.guidesPayload({id:t,lastGuideStepSeen:{},guides:[]}),J.resolve()):(X.info("Invalid guide url, exiting preview"),J.reject("invalid guide url")):(X.info("Invalid origin, exiting preview"),J.reject("invalid origin"))}function Jp(e,t){var n=Zp();return n&&Yp(n)&&(e=/[?&]id=(\d+)/.exec(e))&&!(e.length<1)?Xp(n,e[1]).then(t):J.reject()}function qp(e,t){K.forEach(e,function(e){K.forEach(e.steps,function(n){var i=K.get(e,"translationStates."+t+".stepTranslations."+n.id,{}),r=i.domHash,o=i.domJsonpHash,a=i.translationHash,s=i.originalDomJsonHash,d=i.originalDomJsonpHash,u=i.originalBuildingBlockHash,c=i.domHash256,i=i.domJsonpHash256;n.domUrl=Qp(s,n.domUrl,".dom.json",c),n.domJsonpUrl=Qp(d,n.domJsonpUrl,".dom.jsonp",i),n.buildingBlocksUrl=Qp(u,n.buildingBlocksUrl,".buildingBlocks.json"),r&&o&&a&&(n.domUrl=n.domUrl.replace(".dom.json","-"+r+"-"+t+".dom.json"),n.domJsonpUrl=n.domJsonpUrl.replace(".dom.jsonp","-"+o+"-"+t+".dom.jsonp"),n.buildingBlocksUrl=n.buildingBlocksUrl.replace(".buildingBlocks.json","-"+a+"-"+t+".buildingBlocks.json"))})})}function Qp(e,t,n,i){var r,o;if(t)return o=r=(t=t.split("/"))[t.length-1],e&&(o="".concat(e).concat(r.slice(r.indexOf(n)))),i&&-1<(e=o.indexOf("sha256="))&&(o="".concat(o.slice(0,e)).concat("sha256=").concat(i)),t[t.length-1]=o,t.join("/")}var eh=function(){var e=null,t=[],n=function(t){C.apiKey=t+="",e=t};return{getApiKey:function(){return C.apiKey},discoverKeys:function(i){var r=i.apiKey,i=i.additionalApiKeys,i=void 0===i?[]:i;e=null,t=[],(r=m.get("apiKey",r))&&n(r),r=i,r=m.get("additionalApiKeys",r),t=K.reduce(r,function(e,t){return t&&e.push(t+""),e},[]),t=[].concat(r),C.additionalApiKeys=t,!e&&t&&t.length&&n(t[0])},getAdditionalApiKeys:function(){return C.additionalApiKeys},tamperedWith:function(){return C.apiKey!==e||C.additionalApiKeys!==t}}}(),th=h.getLocal(),nh=function(){var e=nt,t="in-app-designer",n="latest";function i(e){if(!e.ignoreLocalStorageNavigation){var t,e=th.getItem("pendo-navigation-state");if(e&&q.getters["frames/isLeader"]()){try{t=JSON.parse(e)}catch(e){return}if((!t.apiKey||t.apiKey===eh.getApiKey())&&(t.apiKey||!t.agentInstallType||t.agentInstallType===_e()))return e=t.isDADesigner?"da-designer":"in-app-designer",e={target:t.baseUrl,preloader:!0,host:t.host,gcsBucket:t.gcsBucket||e,DADesigner:t.isDADesigner,forceNativeDesigner:!!t.forceNativeDesigner,sidebarDesigner:!!t.sidebarDesigner},nh.launchInAppDesigner(e),!0}}}return"local"===ot&&(e="https://local.pendo.io:8080"),y.leaderChanged.on(function(){i({ignoreLocalStorageNavigation:/pendo-/.test(window.name)||Ep()})}),{launchDesigner:function(t){var n,i="latest",r="designer";p("designer-styles","@keyframes pendoExtensionSlideIn{from{transform:translate3d(-300px,0,0)}to{transform:translate3d(0,0,0);}}#pendo-draggable-handle{z-index:11;line-height: 15px;text-align:center;font-size:20px;letter-spacing:1.5px;position:absolute;width:100%;height:65px;font-size:16px;background-color:transparent;color:#ABE7DB;user-select:none;cursor: move;cursor: grab;cursor: -moz-grab;cursor: -webkit-grab;}#pendo-draggable-handle:active{cursor: grabbing;cursor: -moz-grabbing;cursor: -webkit-grabbing !important;}#pendo-draggable-handle.hidden{display:none;}#pendo-draggable-handle:hover{color:#2EA2A0;}#pendo-designer-container{animation-duration:375ms;animation-name:pendoExtensionSlideIn;animation-timing-function:cubic-bezier(0.4,0.0,0.2,1); box-shadow: 0px 2px 10px rgba(0,0,0,0.15);height:100vh;width:400px;position:fixed;top:0;left:0;overflow:hidden;border-radius:3px;z-index:1000000;}#pendo-mousemove-cover{position:absolute;height:100%;width:100%;top:0;left:0;z-index:9999999999;display:none;}#pendo-designer-container.fullscreen{width:100%;opacity:0.98;}#pendo-designer-container.closed{left:-400px;}#pendo-designer-iframe{background:#3a3c45;border:0px;height:100%;left:0;z-index:10;top:0;width:100%;}"),f("designer-shims",e+"/"+r+"/"+i+"/plugin.js"),C.DESIGNER_VERSION?c(i,r):n=window.setInterval(function(){C.DESIGNER_VERSION&&(c(i,r),clearInterval(n))},100)},launchInAppDesigner:u,localStorageNavigation:i,launchOnToken:function(e){if(!h(window.name)){var t=/pendo-designer=([A-Za-z0-9-]+)/;if(t.test(e)){var n,e=t.exec(e);if(e)return e=o(t=function(e){try{return JSON.parse(atob(jt(e)))||{}}catch(e){return{}}}(e[1])),n=d(t),window.localStorage.removeItem("pendo-navigation-state"),window.localStorage.removeItem("pendo-designer-mode"),u({target:n,host:e,preloader:!1,sidebarDesigner:!!t.sidebarDesigner}),!0}}},sendMessageToLocalStorage:function(e){var t=document.getElementById("pendo-designer-communication-iframe");t&&t.contentWindow.postMessage(e.data,nh.hostConfig.host)},isValidDesignerHost:r,isValidTarget:s,addCommunicationIframe:function(t,n){t=t||{},K.isFunction(n)||(n=K.noop);var i=d(t),t=a(t),r=(new Date).getTime(),o=(nh.windowCommunicationId=r,"pendo-designer-communication-iframe");if(document.getElementById(o))return n(),document.getElementById(o);var s="pendo-designer-communication-embedded";return s+="__"+r,(r=l(o,e+"/"+t+"/"+i+"/communication.html","border-width:0;height:0;width:0;")).setAttribute("name",s),r.onload=n,document.body.appendChild(r),r},addStylesToPage:p,hostConfig:{host:e},isDesignerFrame:h,addScriptToPage:f};function r(e){return!!e&&Wo(e)}function o(t){var t=(t=t||{}).host||e,n=r(t),t=n?t:nt;return n||X.info("Invalid host, falling back to "+nt),t}function a(e){var e=(e=e||{}).gcsBucket||t,n="in-app-designer"===(n=e)||"da-designer"===n||"adopt-studio"===n,e=n?e:t;return n||X.info("Invalid bucket, falling back to "+t),e}function s(e){return"latest"===e||"beta"===e||"via"===e||"mobile"===e||RegExp("^[0-9]+.[0-9]+.[0-9]+(-[a-z0-9-]+[a-z0-9]+)?$").test(e)}function d(e){var e=(e=e||{}).target||e.baseFolder||n,t=s(e),e=t?e:n;return t||X.info("Invalid target, falling back to "+n),e}function u(e){if(!h(window.name)&&!C.designerLaunched)if(m.get("disableDesigner"))X.info("Unable to launch the Visual Design Studio, set to disabled in configuration.");else{var t,n,i,r,s,u=!1;try{u=!!window.top.pendo}catch(e){}void 0===nh.crossFrameChannel&&(nh.crossFrameChannel=E,nh.useCrossFrameChannel=!0),ma()&&u&&!e.allowChildFrame&&!e.selectionOnly?X.info("skipping designer launch from a child frame. pass `allowChildFrame: true` to override"):C.isReady()?(C.designerLaunchTime=(new Date).getTime(),u=o(e=e||{}),i=a(e),r=d(e),n=e.preloader?"preloader.js":"plugin.js",t=e.preloader?"preloader-shims":"designer-shims",n=u+"/"+i+"/"+r+"/"+n,nh.hostConfig={gcsBucket:i,baseFolder:r,uniqueWindowId:e.uniqueWindowId,host:u,adoptv2:e.adoptv2,DADesigner:e.DADesigner,agentInstallType:_e(),forceNativeDesigner:!!e.forceNativeDesigner,sidebarDesigner:!!e.sidebarDesigner,apiKey:eh.getApiKey()},i={},e.selectionOnly&&(i["selection-only"]=!0),r=m.get("designerAgentPluginsLoader"),u=window.__pendoExtensions&&e.forceNativeDesigner,s=!window.__pendoExtensions&&!K.isFunction(r),(u||s)&&(nh.addScriptToPage(t,n,i),C.designerLaunched=!0),!e.forceNativeDesigner&&K.isFunction(r)&&(r(t,n,i),C.designerLaunched=!0)):X.error("Unable to launch the designer, the agent has not been initialized. Please use `pendo.initialize` prior to launching the designer")}}function c(t,n){var i;window.postMessage({type:"connect",source:"pendo-designer-content-script",destination:"pendo-designer-agent"},location.origin),document.getElementById("pendo-designer-container")||(i="pendo-designer-embedded__"+nh.windowCommunicationId,(n=l("pendo-designer-iframe",e+"/"+n+"/"+t+"/designer.html")).setAttribute("name",i),t=function(e){var t=document.createElement("div");return t.setAttribute("id","pendo-designer-container"),t.appendChild(e),t}(n),document.body.appendChild(t))}function l(e,t,n){var i=document.createElement("iframe");return i.setAttribute("id",e),n&&so(i,n),i.setAttribute("sandbox","allow-scripts allow-same-origin allow-top-navigation allow-forms allow-pointer-lock allow-popups"),i.src=t,i}function p(e,t){var n;document.getElementById(e)||((n=document.createElement("style")).setAttribute("id",e),n.type="text/css",e=document.createTextNode(t),n.appendChild(e),document.getElementsByTagName("head")[0].appendChild(n))}function f(e,t,n){var i;document.getElementById(e)||((i=document.createElement("script")).setAttribute("charset","utf-8"),i.setAttribute("id",e),i.src=Te(C).createScriptURL(t),n&&K.forEach(n,function(e,t){i.setAttribute(t,e)}),document.body.appendChild(i))}function h(e){try{var t=JSON.parse(e);return/^pendo-/.test(t.frameName)||/^pendo-/.test(t.frame)}catch(e){return!1}}}(),ih=function(){var e={body:"pendo-launch-modal-body",closeButton:"pendo-launch-modal-close-button",container:"pendo-launch-modal",footer:"pendo-launch-modal-footer",header:"pendo-launch-modal-header",launchButton:"pendo-launch-modal-launch-button",title:"pendo-launch-modal-title",logoContainer:"pendo-launch-modal-logo-container",style:"pendo-launch-modal-style",commIframeId:"pendo-designer-communication-iframe"},t={GRAY_LIGHTER_6:"#EAECF1",GRAY_PRIMARY:"#2A2C35",PENDO_PINK:"#FF4876",TEAL_DARKER:"#036463",TEAL_PRIMARY:"#008180",WHITE:"#FFFFFF"},n={BUTTON_HEIGHT:35,HEADER_HEIGHT:60,MODAL_HEIGHT:235,MODAL_TOP_OFFSET:150,MODAL_WIDTH:370},i=(n.FOOTER_HEIGHT=1.25*n.HEADER_HEIGHT,n.BODY_HEIGHT="calc(100% - "+n.HEADER_HEIGHT+"px - "+n.FOOTER_HEIGHT+"px)",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 164.12 164.12"><defs><style>.cls-1{fill:#fff;}</style></defs><title>chevron</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><polygon class="cls-1" points="82.06 0 0 82.06 82.06 82.06 82.06 164.13 164.13 82.06 164.13 0 82.06 0"/></g></g></svg>'),r={},o=(r["#"+e.closeButton+":hover"]={"background-color":t.GRAY_LIGHTER_6},r["#"+e.launchButton+":hover"]={"background-color":t.TEAL_DARKER+" !important"},{PRIMARY_FONT:"Helvetica Neue"});return{listen:function(){return K.isFunction(document.addEventListener)?(document.addEventListener("keyup",a,!1),function(){document.removeEventListener("keyup",a,!1)}):function(){}},launchOnLocalStorageToken:f,ids:e,removeElement:c,attemptToLaunch:u,loadPluginJs:function(){var e;C.designerLaunched||(e=K.once(function(e){f(e,!0)}),ba(function(t){"pendo-designer-launch-modal"===t.data.destination&&t.data.token&&e(t.data.token)}))}};function a(e){e.shiftKey&&e.altKey&&"Digit7"===e.code&&u(!0),e.shiftKey&&e.altKey&&"Digit8"===e.code&&u(!1,!0)}function s(a,s){var u,l,p,h={"background-color":t.WHITE,height:n.MODAL_HEIGHT+"px","min-height":n.MODAL_HEIGHT+"px",width:n.MODAL_WIDTH+"px",position:"fixed",top:n.MODAL_TOP_OFFSET+"px",left:"50%","margin-left":-n.MODAL_WIDTH/2+"px","border-radius":"4px","box-shadow":"0px 13px 28px rgba(0, 0, 0, 0.17)",overflow:"hidden","z-index":"300000","box-sizing":"border-box"},h=d("div",e.container,h);h.appendChild(((l=document.createElement("style")).setAttribute("id",e.style),l.type="text/css",p=document.createTextNode(function(e){return K.reduce(K.pairs(e),function(e,t){var n=t[0],t=t[1];return e+n+"{"+K.reduce(K.pairs(t),function(e,t){return e+t[0]+":"+t[1]+";"},"")+"} "},"")}(r)),l.appendChild(p),l)),h.appendChild((p=s,l=d("div",e.header,{"background-color":t.GRAY_PRIMARY,height:n.HEADER_HEIGHT+"px","min-height":n.HEADER_HEIGHT+"px",width:"100%",padding:"10px 20px",display:"flex","align-items":"center","box-sizing":"border-box"}),(s=d("div",e.logoContainer,{height:"38px",width:"44px","background-color":t.PENDO_PINK,padding:"8px","border-radius":"3px","box-sizing":"border-box"})).innerHTML=Te(C).createHTML(i),l.appendChild(s),(s=d("div",e.title,{width:"100%",display:"flex","align-items":"center","font-family":o.PRIMARY_FONT,"font-size":"18px",color:t.WHITE,"margin-left":"10px","box-sizing":"border-box"})).innerText=p?"VIA Designer":"Pendo Designer",l.appendChild(s),l)),h.appendChild(((p=d("div",e.body,{height:n.BODY_HEIGHT,"min-height":n.BODY_HEIGHT,width:"100%",display:"flex",padding:"32px 20px","font-family":o.PRIMARY_FONT,"font-size":"14px","box-sizing":"border-box"})).innerText="Thanks for letting us know you're here. We're ready to try this again. Launch Designer below to begin.",p)),h.appendChild((u=a,s=d("div",e.footer,{"align-items":"center","border-top":"1px solid"+t.GRAY_LIGHTER_6,display:"flex",height:n.FOOTER_HEIGHT+"px","justify-content":"flex-end","min-height":n.FOOTER_HEIGHT+"px",padding:"10px",width:"100%","box-sizing":"border-box"}),(l=d("button",e.closeButton,{"border-radius":"3px",border:"none",height:n.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":o.PRIMARY_FONT,"font-size":"14px",display:"flex","line-height":"120%","margin-right":"10px","min-width":"90px","justify-content":"center","box-sizing":"border-box"})).textContent="Close",l.onclick=function(){c(e.container),c(e.commIframeId)},(p=d("button",e.launchButton,{"background-color":t.TEAL_PRIMARY,"border-radius":"3px",color:t.WHITE,border:"none",height:n.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":o.PRIMARY_FONT,"font-size":"14px",display:"flex","line-height":"120%","min-width":"90px","justify-content":"center","box-sizing":"border-box"})).textContent="Launch Designer",p.onclick=function(){f(u)},s.appendChild(l),s.appendChild(p),s)),document.body.appendChild(h)}function d(e,t,n){return(e=document.createElement(e)).setAttribute("id",t),K.extend(e.style,n),e}function u(t,n){var i,r,o;C.designerLaunched||(o=K.once(function(e){t||!n?f(e):s(e,t),l()}),ba(function(t){"pendo-designer-launch-modal"===t.data.destination&&(clearInterval(i),t.data.viaconfirmed?clearInterval(r):t.data.token?(o(t.data.token),t=JSON.parse(t.data.token),K.contains(t.host,"via")&&!t.visitorId&&(r=r||setInterval(function(){document.getElementById(e.commIframeId)&&p()},100))):l())}),nh.addCommunicationIframe({defaultBucket:"in-app-designer"},function(){p(),i=window.setInterval(p,50)}))}function c(e){document.getElementById(e)&&document.getElementById(e).remove()}function l(){var t=document.querySelector("#"+e.commIframeId+'[src*="pendo"]');t&&t.remove()}function p(){var t=document.getElementById(e.commIframeId);t&&t.contentWindow&&K.isFunction(t.contentWindow.postMessage)&&t.contentWindow.postMessage({destination:"pendo-designer-ls",source:"pendo-designer-launch-modal",visitorId:C.visitorId},K.get(C,"designerv2.hostConfig.host",nt))}function f(t,n){var i={},t=JSON.parse(t);i.target=t.target||"latest",t.host&&(i.host=t.host),t.lookaside&&(i.lookaside=t.lookaside),n&&(i.selectionOnly=n),t.forceNativeDesigner&&(i.forceNativeDesigner=t.forceNativeDesigner),t.sidebarDesigner&&(i.sidebarDesigner=t.sidebarDesigner),c(e.container),nh.launchInAppDesigner(i)}}();function rh(e){var t=J.defer();return Vo(e,function(){t.resolve()}),t.promise}function oh(e,t){return 0<K.size(Tu._handlers.validateGlobalScript)?p.get(t).then(function(e){return Tu.validateGlobalScript(e.data)}).then(function(){return e(t)}):e(t)}function ah(e,t){return t?e(t):J.resolve()}var sh=K.wrap(K.once(K.wrap(rh,oh)),ah),dh={initializeWatermark:function(e){return dh.watermarkGuides=e=K.filter(e,function(e){return e&&e.attributes&&e.attributes.isWatermark}),e=K.map(e,function(e){return e.fetchContent()}),J.all(e)},buildWatermark:function(e,t){if((e=e||{}).isTraining){var n=e.targetAccount?function(e){return K.find(dh.watermarkGuides,function(t){return e===t.targetAccount})}(e.targetAccount):function(e){return K.find(dh.watermarkGuides,function(t){return e===t.appId})}(e.appId);if(n&&n.steps){var i,n=n.steps[0];if(n&&n.domJson)return(i=t(i=n.domJson,n)).css({position:"absolute",left:"auto",top:e.isBottomAligned?"auto":"100%",bottom:e.isBottomAligned?"100%":"auto",right:"0"}),i}}}},uh=1e4;function ch(e,t){var n=!1,i=[];return e.addEventListener("message",function(e){a(e.data),t.state.guideUpdate.useObserver&&t.dispatch("guideUpdate/documentChanged")}),{postMessage:r,postMessageAsPromise:o,postMessageOrTimeout:function(e,t){void 0===t&&(t=uh);var n=J.defer(),r=Ot(32),a=(e=K.extend(e,{promiseId:r}),Dt(function(){i[r]&&(n.reject(JSON.stringify({message:"request timed out"})),delete i[r])},t));return o(e).then(function(e){clearTimeout(a),n.resolve(e)}),n.promise},close:function(){n=!0,K.isFunction(e.close)&&e.close()}};function r(t){var i;n||(i=K.extend({apiKey:C.apiKey,allowMixedApiKeyFrames:m.get("allowMixedApiKeyFrames"),agentInstallType:_e()},t),e.postMessage(i),Dt(function(){a(i)},0))}function o(e){e.promiseId||(n=Ot(32),e=K.extend(e,{promiseId:n}));var n=J.defer();return i[e.promiseId]=n,r(K.extend(e,{sourceFrame:t.state.frames.frameId})),n.promise}function a(e){try{var r;n||e.apiKey!==C.apiKey&&(!1===e.allowMixedApiKeyFrames||!1===m.get("allowMixedApiKeyFrames"))||e.targetFrame&&e.targetFrame!==t.state.frames.frameId||(e.resolveId?(r=i[e.resolveId])&&(delete i[e.resolveId],r.resolve(JSON.stringify(e))):/^frames\/|^debugger\//.test(e.action)&&t.dispatch(e.action,e))}catch(e){X.critical("ERROR in cross frame channel",{error:e})}}}var lh="frames/removeFrame";function ph(e){if(!K.isString(e))return e;try{return JSON.parse(e)}catch(t){return e}}function hh(e,t){return new(K.isFunction(e.MessageChannel)?yh:bh)(e,t)}function fh(e,t,n){return new gh(e,t,n,hh(t,n))}function gh(e,t,n,i){this.init(e,t,n,i)}K.extend(gh.prototype,{init:function(e,t,n,i){this._store=e,this._window=t,this._singletonMessageHandler=n,this._listeners=[],this._targetOrigin=n.targetOrigin(),this._impl=i,this._impl.onconnect=K.bind(this._frameConnectHandler,this),this._impl.onmessage=K.bind(this._fireMessageListeners,this),this._impl.onrelay=K.bind(this._topMessageHandler,this),this._connectToTop(10,0,function(){this._addControlMessageHandler(),this._connectToTop(250,21,function(){this.close(),this._store.commit("frames/setConnectFailed")})})},_fireMessageListeners:function(e){K.each(this._listeners,function(t){t(e)})},_controlMessageHandler:function(e){(e=this._impl._parseMessage(e)).data&&("pendo::connect"===e.data.action&&this._impl.frameConnect(e),e.data.action===lh)&&this._topMessageHandler(e)},_topMessageHandler:function(e){!e.data||/^pendo::/.test(e.data.action)||this._closed||(e.data.action===lh&&this._impl.frameDisconnect(e),this._impl.broadcast(e))},_connectToTop:function(e,t,n){this._impl.connectToTop({action:"pendo::connect",frameId:this._store.state.frames.frameId},this._targetOrigin),Dt(K.bind(function(){this._connected||(0===t?K.isFunction(n)&&n.call(this):0<t&&this._connectToTop(Math.min(2*e,1e4),t-1,n))},this),e)},_addControlMessageHandler:function(){this._singletonMessageHandler.addEventListener(K.bind(this._controlMessageHandler,this))},_frameConnectHandler:function(e){e.data&&"pendo::connectSuccess"===e.data.action&&(this._connected=!0,this._impl.connectSuccess(e),this._store.dispatch("frames/join"))},addEventListener:function(e,t){"message"===e&&this._listeners.push(t)},postMessage:function(e){this._closed||this._impl.postMessage(e)},close:function(){this._closed=!0,this._listeners.length=0,this._impl.close()}});var mh={_frameConnectHandler:function(e){K.isFunction(this.onconnect)&&this.onconnect(this._parseMessage(e))},_messageReceived:function(e){K.isFunction(this.onmessage)&&this.onmessage(this._parseMessage(e))},_relayMessage:function(e){K.isFunction(this.onrelay)&&this.onrelay(this._parseMessage(e))},_parseMessage:function(e){var t;return K.isString(e.data)?((t=K.pick(e,"type","origin","source","ports","lastEventId","target")).data=ph(e.data),t):e}};function vh(e){return e&&K.all(["addEventListener","start"],function(t){return K.isFunction(e[t])})}function yh(e,t){this._window=e,this._ports={},this._singletonMessageHandler=t,this._targetOrigin=t.targetOrigin()}function bh(e,t){this._window=e,this._frames={},this._isTop=e==e.top,this._singletonMessageHandler=t,this._boundMessageReceived=K.bind(this._messageReceived,this),this._isTop||(this._boundFrameConnectHandler=K.bind(this._frameConnectHandler,this),t.addEventListener(this._boundFrameConnectHandler))}function Ih(e,t){var n=[],i=!1;return{targetOrigin:function(){return i?location.origin:"*"},secure:function(e){i=e},addEventListener:function(t){0===n.length&&e.addEventListener("message",r),n.push(t)},removeEventListener:function(t){0<=(t=n.indexOf(t))&&n.splice(t,1),0===n.length&&e.removeEventListener("message",r)},close:function(){e.removeEventListener("message",r),n.length=0}};function r(e){i&&!t(e.origin)||K.each(n,function(t){K.isFunction(t)&&t(e)})}}K.extend(yh.prototype,mh,{connectToTop:function(e,t){this._closeChannel(),this._openChannel();var n=[];this._channel.port2&&n.push(this._channel.port2),this._window.top.postMessage(e,t,n)},frameConnect:function(e){var t=e.ports[0];vh(t)&&((this._ports[e.data.frameId]=t).addEventListener("message",K.bind(this._relayMessage,this)),t.start(),t.postMessage({action:"pendo::connectSuccess"}),t.postMessage({action:"frames/receiveFrame",frame:q.state.frames.frames[q.state.frames.frameId],"pendo-preview":q.state.preview.preview}))},frameDisconnect:function(e){delete this._ports[e.data.frameId]},connectSuccess:function(){this._port.removeEventListener("message",this._boundFrameConnectHandler),this._port.addEventListener("message",K.bind(this._messageReceived,this))},broadcast:function(e){K.each(this._ports,function(t){e.target!==t&&t.postMessage(e.data)})},postMessage:function(e){this._port&&this._port.postMessage(e),e.action===lh&&this._window.top.postMessage(e,this._targetOrigin)},close:function(){K.each(this._ports,function(e){e.close()}),this._ports={},this._closeChannel()},_openChannel:function(){this._channel=new this._window.MessageChannel,this._port=this._channel.port1,this._boundFrameConnectHandler=K.bind(this._frameConnectHandler,this),this._port.addEventListener("message",this._boundFrameConnectHandler),this._port.start()},_closeChannel:function(){this._port&&K.isFunction(this._port.close)&&(this._port.close(),this._port=null,this._channel=null)}}),K.extend(bh.prototype,mh,{connectToTop:function(e,t){this._isTop||this._window.top.postMessage(JSON.stringify(e),t)},frameConnect:function(e){this._frames[e.data.frameId]=e.source,this._relayHandlerAdded||(this._relayHandlerAdded=!0,this._boundRelayMessage=K.bind(this._relayMessage,this),this._singletonMessageHandler.addEventListener(this._boundRelayMessage)),e.source.postMessage(JSON.stringify({action:"pendo::connectSuccess"}))},frameDisconnect:function(e){delete this._frames[e.data.frameId]},connectSuccess:function(){this._singletonMessageHandler.removeEventListener(this._boundFrameConnectHandler),this._singletonMessageHandler.addEventListener(this._boundMessageReceived)},broadcast:function(e){var t=this._singletonMessageHandler.targetOrigin();K.each(this._frames,function(n){e.source!=n&&n.postMessage(JSON.stringify(e.data),t)}),e.source!=this._window&&this._messageReceived(e)},postMessage:function(e){this._isTop?this._relayMessage({data:e,source:this._window}):this._window.top.postMessage(JSON.stringify(e),this._singletonMessageHandler.targetOrigin())},close:function(){var e=this._singletonMessageHandler;e.removeEventListener(this._boundFrameConnectHandler),e.removeEventListener(this._boundMessageReceived),e.removeEventListener(this._boundRelayMessage)}});var wh=Ih(window,Wo);function Ch(e,t){var n=[];return e.removeEventListener=K.wrap(e.removeEventListener,function(e,t,i){var r,o=K.toArray(arguments).slice(1);return"message"===t&&0<=(r=K.findIndex(n,function(e){return e[0]===i}))&&(o[1]=n[r][1],n.splice(r,1)),e.apply(this,o)}),e.addEventListener=K.wrap(e.addEventListener,function(e,i,r){var o,a=K.toArray(arguments).slice(1);return"message"===i&&(a[1]=o=function(e){if(e.data.tabId===t.getTabId())return r.apply(this,arguments)},n.push([r,o])),e.apply(this,a)}),e.postMessage=K.wrap(e.postMessage,function(e,n){return n.tabId=t.getTabId(),e.apply(this,K.toArray(arguments).slice(1))}),e}function Sh(e){if(!l.addEventListener)return{addEventListener:K.noop,postMessage:K.noop,close:K.noop};var t=!!window.__pendoExtensions;return m.get("preferBroadcastChannel")&&!t&&K.isFunction(window.BroadcastChannel)&&(e.commit("frames/setChannelType","BroadcastChannel"),(t=Ch(new BroadcastChannel("pendo"),Dn))&&K.isFunction(t.postMessage))?t:(e.commit("frames/setChannelType","TopFrameRelay"),fh(e,window,wh))}function Ah(e,t){if("undefined"!=typeof Turbolinks){var n=Turbolinks&&Turbolinks.EVENTS&&Turbolinks.EVENTS.LOAD;if(n)return te(e,n,t)}return function(){}}var Th="eJwFwIEIAAAAwDDQd3-N1QABFQC5",_h="guides_blocked",Eh=18e5,xh=144e5,Rh="1",kh="0",Oh="Guides disabled: unreachable endpoint guide.gif";function Nh(){return h.read(_h)===Rh}function Mh(e){e.cached||(e.success?h.write(_h,kh,xh):(X.info(Oh),h.write(_h,Rh,Eh)))}function Lh(e,t){var n=h.read(_h);return n===Rh?(X.info(Oh),J.resolve({success:!1,cached:!0})):n===kh?J.resolve({success:!0,cached:!0}):(n=jr("guide.gif",t,{jzb:Th,ct:v(),v:at}),(e.usesXhr()?p.get(n):Yr(n)).then(function(){return{success:!0}},function(e){return e&&e.status?{success:!0}:{success:!1}}))}var Fh=h.getLocal(),Ph=[],Gh="Guide was not shown because this visitor is in a control group of an active experiment for the guide",Dh=[];function Bh(){return m.get("guideCssAssetPath")||Ar("guide.css")}function Wh(){return m.get("previewModeAssetPath")||Ar("pendo.preview.min.js")}var Uh="_pendo-guide_",$h="_pendo_g_",jh=0;function zh(e){jh=e}function Zh(){return jh}var Vh=function(){return K.any(A(),function(e){return e.isShown()})},Yh=function(e,t){var n=ee("._pendo-close-guide_",e);return n.length||(n=ee(document.createElement("button")).attr("id","_pendo-close-guide_").attr("aria-label","close").addClass("_pendo-close-guide_").text("×"),Qe()?9<d&&n.css({top:3}):8===d?n.css({top:9,right:2}):9===d?n.css({right:2,top:3}):9<d&&n.css({top:3}),e=ee("._pendo-guide-container_",e)[0]||e,n.appendTo(e),n[0].onclick=function(){t()}),n[0]},Hh=function(e){return K.reduce(A(),function(t,n){return e(n)&&t.push(n),t},[])},Kh=function(e,t,n,i,r){(e=ru(T(e),t))&&(e.seenState=n,e.lastSeenAt=i,void 0!==r)&&(e.dismissCount=r)},Xh=function(e){for(var t=RegExp("^"+$h);e;){if(K.isString(e.id)&&t.test(e.id))return e.id.replace(t,"");e=e.parentNode}return null};function Jh(e){K.each(A(),function(t){K.isFunction(t.isShown)&&t.isShown()&&t.hide(e)})}var qh=function(e){return e&&e.guideId};function Qh(e){return e&&K.isFunction(e.render)}var ef=function(e,t){var n,i;return qh(e)&&(t=e,e=null),Qh(t)?t:t?(n=T(t.guideId))&&n.findStepById(t.id):(n=K.find(A(),function(e){return e.isShown()}))?((i=e?Xh(e.target||e.srcElement||e):i)?(t=n.findStepById(i))||Zr("findStepForGuideEvent: step with id "+i):(t=K.find(n.steps,function(e){return e.isShown()}))||Zr("findStepForGuideEvent: no step shown"),t):void 0},tf=function(e){var t="element"===e.advanceMethod?"click":"mouseover",n=mu(e);"tooltip"===e.type&&K.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):w(n,t,hf,!0)};function nf(e){return e.isLocked()&&(!e.elements||!e.elements.length||void Vr('guide "'+e.guideId+'", step "'+e.id+'" locked and rendered'))}var rf=function(e){var e=ee("#_pendo-badge_"+e.id),t=e.find("input"),t=0<t.length?t:e;t.length<1||t[0].focus()},of=function(e){(e=s(e=K.get(e,"attributes.activation.selector",""))).length<1||e[0].focus()},af=function(){var e=se.getResourceCenterBadge();e?e.element().focus():of(e=se.getResourceCenter())},sf=function(e){if(!C.designer&&e&&"building-block"===K.get(e,"attributes.type","")){var t=e.steps[0],n=t.seenReason,i=K.get(e,"launchMethod","").split("-"),r=K.contains(i,"dom"),o=K.contains(i,"badge"),i=_f(e);if(K.get(t,"attributes.isAutoFocus")||i)switch(n){case"badge":o&&rf(t);break;case"dom":r&&of(e);break;case"launcher":af();break;default:return}}};function df(e,t){return!e.isMultiApp&&("auto"===t||"repeatGuide"===t)}var uf=function(e,t){var n,i,r,o,a,s=null;e&&e instanceof Object&&e.until&&(s=e.until),(t=ef(e,t))&&t.id?nf(t)||("dismissed"===t.seenState?X.info("step already dismissed. can't dismiss again",{contexts:["guides","error"]}):(X.info("onGuideDismissed called",{contexts:["guides"]}),y.beforeDismiss.trigger(t).cancel?X.info("Guide dismiss canceled during runtime in step: "+t.id):s?t.hide({stayHidden:!0}):(tf(t),e=t.id,n=T(s=t.guideId),i=(i=K.first(n&&n.steps))&&i.seenReason,o=n&&n.language,r=K.get(t,"dismissCount",0)+1,Nf(s,e,Q(),i,o),Kh(s,e,"dismissed",o=v(),r),(a=K.isFunction(t.getGuide)&&t.getGuide())&&a.attributes&&a.attributes.doNotResume||hl({guideId:s,guideStepId:e,time:o,state:"dismissed",seenReason:i,visitorId:Q(),dismissCount:r}),df(n,i)&&Df(o,Gf.DISMISSED),t.hide(),sf(a),Vh()||(El(),xl())))):El()},cf=function(e,t,n){var i,r,o,a,s,d,u;X.info("onGuideSnoozed called",{contexts:["guides"]}),(t=ef(e,t))?"snoozed"===t.seenState?X.info("step already snoozed. can't snooze again",{contexts:["guides","error"]}):y.beforeSnooze.trigger(t).cancel?X.info("Guide snooze canceled during runtime in step: "+t.id):(n||(n=864e5,X.info("no snooze duration provided, defaulting to 1 day")),nf(t)||(tf(t),e=t.id,i=t.guideId,r=Q(),a=(o=T(i))&&o.language,s=(s=K.first(o&&o.steps))&&s.seenReason,d=v(),X.info("snoozing guide for "+n+" ms"),t.snoozeEndTime=u=d+n,Mf(i,e,r,s,a,n),Kh(i,e,"snoozed",d),o&&o.attributes&&o.attributes.doNotResume||hl({guideId:i,guideStepId:e,time:d,state:"snoozed",seenReason:s,visitorId:Q(),snoozeEndTime:u}),df(o,s)&&Df(d,Gf.SNOOZED),t.hide(),sf(o),Vh())||(El(),xl())):(X.info("missing step. can't snooze",{contexts:["guides","error"]}),El(),Zr("onGuideSnoozed: missing step"))},lf=function(){var e=dm();e&&K.each(e.steps,function(e){var t="element"==e.advanceMethod?"click":"mouseover",n=mu(e);"tooltip"===e.type&&K.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):w(n,t,hf,!0)})},pf=function(e){var t,n,i,r=(r=e&&e.step)||ef(e);r?(i=e&&e.params,t=(i=K.find(i,function(e){return"goToStepId"===e.name}))&&i.value,(t=e&&e.destinationStepId?e.destinationStepId:t)?t===r.id?X.info("[goToStep] step id matches the current step",{contexts:["guides","error"]}):(i=T(r.guideId),(n=K.find(i.steps,function(e){return e.id===t}))?(e.steps=Math.abs((n=K.indexOf(i.steps,n))-(i=K.indexOf(i.steps,r))),e.action=e.action||"goToStep",e.destinationStepId=t,i<n?hf(e,r,!1):ff(e,r)):X.info("[goToStep] guide has no step matching the step id",{contexts:["guides","error"]})):X.info("[goToStep] missing step id to go to",{contexts:["guides","error"]})):X.info("[goToStep] missing current step",{contexts:["guides","error"]})},hf=function(e,t,n){if(lf(),1==arguments.length&&qh(e)&&(s=nu(e.guideId),i=ef(),s)&&i&&K.first(s.steps).id===i.id&&K.last(s.steps).id===e.id&&(X.info("Cannot skip to last step from first step"),e=null),X.info("onGuideAdvanced called",{contexts:["guides"]}),(t=ef(e,t))===e&&(e=null),t){if(!nf(t))if("advanced"!==t.seenState||n)if(y.beforeAdvance.trigger(t).cancel)X.info("Guide advance canceled during runtime in step: "+t.id);else{var i=e&&e.action&&"goToStep"===e.action||!1,r=T(t.guideId),o=r&&r.language,a=r&&r.steps&&K.findIndex(r.steps,function(e){return t.id==e.id});if(e&&K.isNumber(e.steps)&&1<e.steps&&!i){var s=a+(e.steps-1),d=s=s>=r.steps.length?r.steps.length-1:s;!0===e.skip&&(d=a+1);for(var u=a;u<d;++u){t=r.steps[u],Lf(r.id,t.id,Q(),t.seenReason,o,u!==a);var c=v();hl({guideId:t.guideId,guideStepId:t.id,time:c,state:"advanced",seenReason:t.seenReason,visitorId:Q()}),Kh(r.id,t.id,"advanced",c)}return hf(r.steps[s],t,!0)}var l,i=t.id,s=t.guideId,p=K.first(r&&r.steps),p=p&&p.seenReason,f=e&&e.destinationStepId,h=(f||(h=e&&K.isNumber(e.steps)&&1<e.steps?e.steps:1,f=(h=K.isNumber(a)&&r&&r.steps&&r.steps[a+h])&&h.id||null),f||X.info("missing destination step id"),X.info("advancing guide"),Lf(s,i,Q(),p,o,n,f),X.info("update guide status"),r&&K.last(r.steps).id===i&&(l=K.get(t,"dismissCount",0)+1),(new Date).getTime()),g=(Kh(s,i,"advanced",h,l),K.isFunction(t.getGuide)&&t.getGuide());g&&g.attributes&&g.attributes.doNotResume||hl({guideId:s,guideStepId:i,time:h,state:"advanced",seenReason:p,visitorId:Q(),destinationStepId:f,dismissCount:l}),df(r,p)&&Df(h,Gf.ADVANCED),X.info("stop guide"),El(),X.info("start guides"),xl()}else X.info("step already advanced. can't advance again",{contexts:["guides","error"]})}else X.info("missing step. can't advance",{contexts:["guides","error"]}),El(),Zr("onGuideAdvanced: missing step")},ff=function(e,t){var n,i,r,o,a,s;X.info("onGuidePrevious called",{contexts:["guides"]}),(t=ef(e,t))?"advanced"===t.seenState?X.info("step already advanced. can't go to previous again",{contexts:["guides","error"]}):y.beforePrevious.trigger(t).cancel?X.info("Guide previous canceled during runtime in step: "+t.id):(o=T(n=t.guideId),s=e&&e.action&&"goToStep"===e.action||!1,0!==(i=K.indexOf(o.steps,t))&&(r="element"==t.advanceMethod?"click":"mouseover",a=mu(t),"tooltip"===t.type&&K.isFunction(t.teardownElementEvent)?t.teardownElementEvent(a,r):w(a,r,hf,!0),a=e&&K.isNumber(e.steps)?e.steps:1,r=K.first(o&&o.steps),a=0<=(i-=a)?o.steps[i]:r,i=r&&r.seenReason,r=o&&o.language,o=a.id,(o=s&&e&&e.destinationStepId?e.destinationStepId:o)||X.info("missing destination step id"),X.info("advancing guide"),Lf(n,t.id,Q(),i,r,!1,o),X.info("update guide status"),a=(new Date).getTime(),Kh(t.guideId,t.id,"advanced",a),(s=K.isFunction(t.getGuide)&&t.getGuide())&&s.attributes&&s.attributes.doNotResume||hl({guideId:t.guideId,guideStepId:t.id,time:a,state:"advanced",seenReason:i,visitorId:Q(),destinationStepId:o}),El(),xl())):(El(),Zr("onGuidePrevious: missing step"))},gf=function(e){var t;ee("._pendo-credits_",e).length||((t=document.createElement("img")).setAttribute("src",Sr()+"/img/tiny-logo.png"),t=ee(document.createElement("div")).addClass("_pendo-credits_").css({bottom:0,right:C.TOOLTIP_ARROW_SIZE}).append(t),Hd.push(t[0]),t.appendTo(e))};function mf(e){return e&&e.attributes&&e.attributes.stayHidden}function vf(e){return s(e.triggerElementPathRule)[0]}var yf=function(e,t,n){var i;return Hl()&&(i=e.id,e=e.guideId,y.stepEligibility.trigger({stepId:i,guideId:e,eligible:t,reason:n})),t},bf=function(e){var t,n,i=K.partial(yf,e);return mf(e)?i(!1,"dismissed"):e.elementPathRule||"lightbox"!==e.type&&"whatsnew"!==e.type?e.triggerElementPathRule&&!b(vf(e))?i(!1,"trigger_element"):(t=mu(e),(n=e.targetElement)&&e.elementContainsRulesList&&!wf(n,e.elementContainsRulesList)?i(!1,"contains_rules"):(n="tooltip"===e.type||wc.isBuildingBlockGuideRelativeToElement(e),e=b(t),n?e?i(e,"target_element_tooltip"):i(Go(t),"target_element_tooltip_scroll"):i(e,"target_element"))):i(!0,"")};function If(e){var t=(ee(e).text()||"").trim().toLowerCase(),e=e.value;return t||e}function wf(e,t){for(var n=If(e),i=0;i<t.length;i++)if(!Cf(n,t[i]))return!1;return!0}function Cf(e,t){var n=t.matchType,i=t.matchValue,t=t.dataType,e=e||"";if("number"===t){var r=Ut(e);if(null==r||(e=parseFloat(r),i=parseFloat(i),isNaN(e)||isNaN(i)))return!1}else"string"===t&&(e=e.toLowerCase(),i=i.toLowerCase());return"equal"===n?e===i:"notEqual"===n?e!==i:"contains"===n?-1<String(e).indexOf(i):"notContains"===n?-1===String(e).indexOf(i):"greaterThan"===n?i<e:"lessThan"===n&&e<i}var Sf=function(e){return $h+e.id},Af=function(e){var t=e.element,n=K.first(ee("#"+Sf(e)));t&&n?b(t)||ee.hasClass(n,"mouseover")?Dt(function(){Af(e)},Al):e.hide&&(e.hide(),Vh())||(El(),xl()):t||!n||e.hide&&(e.hide(),Vh())||(El(),xl())},Tf=function(){return!1},_f=K.partial(K.get,K,"attributes.resourceCenter"),Ef=function(e){var t;Vh()&&(tf(t=ef()),_f(e)?(t=Hh(_f),(t=K.filter(t,function(t){return t.id!==e.id})).length&&q.dispatch("frames/hideGuides",K.pluck(t,"id"))):(Jh(),q.dispatch("frames/hideGuides")))},xf=function(e,t){return!(!e||!e.guideId||!(e=T(e.guideId)))&&(Ef(e),e.launch(t),e.isShown())},Rf=function(e,t,n,i,r,o){e=Uf({type:"guideNotSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r}),o&&K.extend(e.props,{step_poll_types:o}),zf(e),y.guideNotSeen.trigger(e)};function kf(e){var t="auto";return e&&(e=(e.launchMethod||t).split("-"),!K.contains(e,t))&&e.length?K.first(e):t}var Of=function(e,t,n,i,r,o){i||(X.critical("pendo.io guideSeen exception",{guideId:e,stepId:t,error:Error("seenGuide called without seen reason")}),i=kf(T(e))),n=Uf({type:"guideSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r}),K.extend(n.props,o),zf(n),hl({guideId:e,guideStepId:t,time:r=v(),state:"active",seenReason:i,visitorId:Q()}),Kh(e,t,"active",r),y.guideSeen.trigger(n)};function Nf(e,t,n,i,r){zf(e=Uf({type:"guideDismissed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r})),y.guideDismissed.trigger(e)}function Mf(e,t,n,i,r,o){zf(e=Uf({type:"guideSnoozed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r,snooze_duration:o})),y.guideSnoozed.trigger(e)}function Lf(e,t,n,i,r,o,a){e={type:"guideAdvanced",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r},a&&(e.destination_step_id=a),zf(t=Uf(e),null,o),y.guideAdvanced.trigger(t)}function Ff(e,t,n,i,r,o){zf(e=Uf({type:"guideTimeout",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r,guideSeenTimeoutLength:o})),y.guideTimeout.trigger(e)}function Pf(e,t,n,i,r){zf(e=Uf({type:"guideSnoozeCanceled",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r}),null,!0),y.guideSnoozeCancelled.trigger(e)}var Gf={DISMISSED:"latestDismissedAutoAt",SNOOZED:"latestSnoozedAutoAt",ADVANCED:"finalAdvancedAutoAt"};function Df(e,t){Bf(e,t);var n={};n[t]=e,q.dispatch("frames/changeThrottlingState",n)}function Bf(e,t){K.contains(K.values(Gf),t)&&(K.isFunction(e.getTime)&&(e=e.getTime()),C[t]=e,h.write(t,e,ll),q.dispatch("guideState/updateThrottlingState",{name:t,value:e}))}function Wf(e){var t=m.get("crossAppGuideStorageSuffix");return h.read(e,!1,t)}function Uf(e,t,n,i,r,o){var a=e,e=("object"!=typeof a&&(a={type:e,guideId:t,stepId:n,visitorId:i,language:o}),r&&(a.reason=r),K.isString(a.language)||delete a.language,K.extend({guide_id:a.guideId,guide_step_id:a.stepId},K.omit(a,"type","guideId","stepId","visitorId"))),t=Dn.addTracerIds({type:a.type,visitor_id:a.visitorId,account_id:fi(),browser_time:(new Date).getTime(),url:f.externalizeURL(),props:e});return y.eventCaptured.trigger(t),t}var $f=null,jf=function(e){window.clearTimeout($f),$f=Dt(Og,e)},zf=function(e,t,n){t=t||500,e.props.duration=n?0:(new Date).getTime()-Zh(),Wg(),Mg.push(e),jf(t)},Zf=function(e,t){return"dismissed"===e.state?null:T(e.guideId).nextStep(e,t||Vf())},Vf=function(){return C.normalizedUrl||Yf(f.externalizeURL())},Yf=function(e){try{var t=new Si(e),n=K.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(t){return X.error("Invalid URL provided to normalize"),e}},Hf=function(e,t){return!S(e)||new RegExp(e).test(t)},Kf=function(e,t){return!!(e=iu(e))&&((t=xf(K.first(e.steps),t||"api"))||!e.control||X.info(Gh),t)},Xf=function(e,t){return!!(e=T(e))&&((t=xf(K.first(e.steps),t||"api"))||!e.control||X.info(Gh),t)};function Jf(e,t){return isNaN(t=parseInt(t,10))||!K.isNumber(t)||!(K.isNumber(e)&&e<t)&&K.isNumber(e)?e:t}var Qf,qf=function(){El(),_l(),se.removeNotificationBubble(),cp(),Fa()};function eg(){El(),Jr(),C.segmentFlags=[],C.doNotProcess=!0,X.info("not tracking visitor due to 451 response")}function tg(e){var t;Qf&&(451===e.statusCode&&(eg(),Qf.deferred.reject(e)),K.isString(e.id)&&e.id!==Qf.id||(t=K.indexBy(C.guides,"id"),K.extend(C,e),C.guides=K.map(C.guides,function(e){return 1==K.keys(e).length&&e.id?t[e.id]:e}),Qf.deferred&&Qf.deferred.resolve(),Qf=null))}function ng(){return rm.pending||!(!Qf||!C.id||C.id===Qf.id)}var ig=function(e,t){var n=Tr(),i=K.uniqueId(),r=J.defer(),o=(Qf={id:i,deferred:r},il()||((o=rl())?(X.info("sending metadata: "+JSON.stringify(o),{contexts:["guides","metadata"]}),t.metadata=o):X.info("no metadata to send",{contexts:["guides","metadata"]})),Ct(t)),i={id:i,jzb:o,v:at,ct:(new Date).getTime()},n=(n&&t.accountId&&"ACCOUNT-UNIQUE-ID"!==t.accountId&&(i.acc=xt(t.accountId)),Hl()&&(i.debug=!0),jr(rg.endpoint(),e,i)),t=za.get();return o=n.length>fs||!K.isEmpty(t)?(delete i.jzb,n=jr("guide.json",e,i),i=K.extend({events:o},t),rg.post(n,i,K.noop)):rg.load(n,K.noop),J.all([o.catch(function(e){return 451===e.status&&eg(),J.reject(e)}),r.promise,Lh(rg,e)]).then(function(e){if(Mh(e=e[2]),!e.success)return J.reject()})},rg=Eu;function og(e){rg=e}function ag(){rg=Eu}function sg(e){return!(e=K.find(e.steps,function(e){return e.pageId&&!e.regexUrlRule}))||(X.critical("pendo.io guide validation exception",{guideId:e.guideId,stepId:e.id,error:Error("missing regexUrlRule for page "+e.pageId+'"')}),!1)}function dg(e){return K.every(Dh,function(t){try{return t(e)}catch(n){return console.debug("Error in guide processor",t,e.id),!1}})}function ug(e){K.sortBy(e,cg)}function cg(e,t){return e.attributes||(e.attributes={}),!isNaN(e.attributes.priority)&&K.isNumber(e.attributes.priority)||(e.attributes.priority=t),-e.attributes.priority}function lg(e){return K.chain(e).map(Nu).filter(sg).filter(dg).sortBy(cg).value()}function pg(e){var t,n=K.find(e,function(e){return K.isFunction(e.isRendered)&&e.isRendered()&&!e.isTopLevel});return n?(t=K.chain(n.steps).filter(function(e){return e.isRendered()}).indexBy("id").value(),function(e){(e=K.findWhere(e,{id:n.id}))&&!K.get(e,"attributes.doNotResume")&&K.each(e.steps,function(e){var n=t[e.id];!n||e.seenState&&"active"!==e.seenState||e.show(n.seenReason)})}):function(){}}var fg,hg=function(){return!m.get("disableGlobalCSS")};function gg(){rm.reset(),yg.reqId=null}function mg(e,t){var n=m.get("dropAnonymous");if(Xn(e)&&n)X.info("loading guides blocked for anonymous visitors due to dropAnonymous config setting being set to true"),K.isFunction(t)&&t("error: guides are blocked");else if(Nh())X.info("guide events are blocked, load guides cancelled"),K.isFunction(t)&&t("error: guides are blocked");else{if(Ea(xa()))return 1;X.info("bad url: probably local file system",{contexts:["guides","error"]}),K.isFunction(t)&&t("error: invalid url")}}function vg(e,t,n){void 0===n&&(n=v());var i=[];return m.get("cacheGuides")&&!(i=n-(t.lastUncached||0)<m.get("cacheGuidesTimeout")?K.map(e.guides,function(e){return K.pick(e,"id","lastUpdatedAt")}):i).length&&(t.lastUncached=n),i}var yg=function(e,t,n,i){var r,o,a,s,d,u=J.defer(),c=!1;return e=e||C.apiKey,mg(t=t||Q(),i)?(X.info("loading guides for "+n+"...",{context:["guides"]}),n=f.externalizeURL(n),r=(d=yg.lastVisitorId!==t)?K.noop:pg(A()),yg.lastVisitorId=t,_l(),q.commit("guideState/setLastGuideRequestAt",v()),o={visitorId:t,accountId:fi(),url:n,oldVisitorId:ci()},(a=vg(C,yg)).length&&!d&&(o.cachedGuides=a),yg.reqId=s=K.uniqueId(),ig(e,o).then(function(){var e,o;c||C.designer||(yg.reqId!==s?u.resolve():(y.deliverablesLoaded.trigger(),X.info("successfully loaded guides for "+n,{contexts:["guides"]}),C.designerEnabled&&"true"!==Fh.getItem("pendo-designer-mode")&&ih.loadPluginJs(),qf(),(e=C.lastGuideStepSeen)?(q.dispatch("guideState/receiveLastGuideStepSeen",e),e.visitorId=t,q.dispatch("guideState/updateLastGuideStepSeen",e),q.commit("guideState/setLastGuideRequestAt",v()),au(),eu(e=lg(C.guides)),o=ou(),q.dispatch("guideState/load",Wf(pl)),q.dispatch("guideState/apply"),C.latestDismissedAutoAt=Jf(C.latestDismissedAutoAt,h.read("latestDismissedAutoAt")),q.dispatch("guideState/updateThrottlingState",{name:"latestDismissedAutoAt",value:C.latestDismissedAutoAt}),C.finalAdvancedAutoAt=Jf(C.finalAdvancedAutoAt,h.read("finalAdvancedAutoAt")),q.dispatch("guideState/updateThrottlingState",{name:"finalAdvancedAutoAt",value:C.finalAdvancedAutoAt}),C.latestSnoozedAutoAt=Jf(C.latestSnoozedAutoAt,h.read("latestSnoozedAutoAt")),q.dispatch("guideState/updateThrottlingState",{name:"latestSnoozedAutoAt",value:C.latestSnoozedAutoAt}),q.dispatch("healthCheck/init",e),q.dispatch("frames/changeGuideList",o),C.eventProperties=Yg(C.features),o.length?J.all([kg(),sh(Fu(C.globalJsUrl)),Pg(e),dh.initializeWatermark(e),Tg(5e3)].concat(wg(e))).then(function(){yg.reqId===s&&(q.getters["frames/isLeader"]()&&r(A()),y.guidesLoaded.trigger(),xl(),clearTimeout(fg)),K.isFunction(i)&&i(),u.resolve()},function(e){X.error("Post loadGuide request failed: ",e),y.guidesFailed.trigger(),u.reject()}):(y.guidesLoaded.trigger(),u.resolve())):X.info("lastGuideStepSeen is not set, shutting down guides")))}).catch(function(e){y.guidesFailed.trigger(),u.reject(e)}),d=m.get("guideTimeout")||m.get("guides.timeout"),K.isNumber(d)&&(clearTimeout(fg),fg=Dt(function(){bg(u),c=!0},d))):u.reject(),u.promise};function bg(e){qf(),e.reject()}var Ig=[];function wg(e){return K.map(Ig,function(t){return t(e)})}function Cg(e){Ig.push(e)}function Sg(e){0<=(e=K.indexOf(Ig,e))&&Ig.splice(e,1)}function Ag(e,t){var n,i=document.getElementById(e);return i&&i.href&&0<=i.href.indexOf(t)?J.resolve():(n=J.defer(),ee(i).remove(),C.loadResource(t,function(){n.resolve()}).id=e,n.promise)}var Tg=K.memoize(_g);function _g(e,t,n){if(!hg()||!Eg(A()))return J.resolve();t=t||v,n=n||"_pendo-hidden_";var i=ee(document.createElement("div")).addClass(n).css({position:"absolute",bottom:"0px",right:"0px",width:"0px",height:"0px",visibility:"hidden"}).appendTo(ee.getBody()),r=t(),o=J.defer();return function n(s){Dt(function(){a(i[0])?(i.remove(),o.resolve()):t()-r>e?(i.remove(),o.reject("Unable to find global css after delay")):n(100)},s)}(0),o.promise;function a(e){if(e=ne(e))return"none"===e.display}}function Eg(e,t){return t&&t.designer||K.any(e,function(e){return K.any(e.steps,function(e){return!(e.domUrl||e.domJsonpUrl||e.domJson)})})}var xg="_pendo-default-css_",Rg="_pendo-css_";function kg(){var e=[];if(!hg())return J.resolve();Eg(A(),C)&&e.push(Ag(xg,Bh()));var t=((C.guideWidget||{}).data||{}).guideCssUrl;return t?e.push(Ag(Rg,Fu(t))):ee("#"+Rg).remove(),J.all(e)}var Mg,Lg,Og=function(e){Mg&&Mg.flush(e)},Ng=function(){return Ph};function Fg(e){var t=ns(vs,ds("visitor_id"),ds("props.guide_id"),ds("props.source"),ms,ys(),Cs(e),Ss,As),n=ns(rs,as(e.cache),K.noop);return new $s(K.extend({processSilos:t,packageSilos:n},e))}var Pg=function(e){return se.initializeResourceCenter(e)},E={postMessage:K.noop,close:K.noop},Gg=E,Dg=function(){var e=K.filter(A(),function(e){return K.isFunction(e.outsideTimebox)&&e.outsideTimebox()});tu.addGuide(e)};function Bg(){return Dn.tabIdChanged(function(){var e=Dn.getTabId();q.commit("frames/setTabId",e),q.dispatch("frames/join")})}function Wg(){return Mg=Mg||Fg({cache:Ph,apiKey:function(){return C.apiKey},beacon:"guide",allowPost:!0,preferFetch:l.safari}),Lg=Lg||Fg({cache:[],apiKey:function(){return C.apiKey},beacon:"poll",allowPost:!0,preferFetch:l.safari}),function(){Mg.clear(),Lg.clear()}}function Ug(e){var e=e.blockedURI;e&&-1!==e.indexOf("/data/guide.json")&&m.get("cacheGuides")&&((e=m.getLocalConfig()).cacheGuides=!1,m.setLocalConfig(e),Wi(window,"securitypolicyviolation",Ug),om())}var $g=function(){var e,t=[],n=(t.push(Wg()),Xl.run(),t.push(Xl.stop),y.appHidden.on(function(){Og({hidden:!0})}),y.appUnloaded.on(function(){Og({unload:!0}),q.dispatch("frames/leave")}),y.metadata.on(function(e){e.data[0].storeChanged&&!il()&&rm()}),y.identify.on(function(){rm()}),y.urlChanged.on(function(){rm(f.get())}),y.guideUpdateComplete.on(function(){Dg(),Wu.processPrefetch(),ql(A(),Kd)}),y.guidesLoaded.on(function(){se.fetchAnnouncementGuidesContent(A(),q)}),y.guideListChanged.on(function(e){gp(e.data[0].guideIds)}),t.push(Ah(document,function(){f.get()===im.lastUrl&&om()})),m.get("guides.tooltip.arrowSize"));return K.isNumber(n)&&(C.TOOLTIP_ARROW_SIZE=n),E=ch(Gg=Sh(q),q),t.push(function(){return E.close()}),t.push(Bg()),q.dispatch("frames/init"),q.dispatch("frames/join"),t.push(fl()),t.push(function(){qg.cancel(),fp.cancel()}),t.push(te(window,"resize",qg)),t.push(te(window,"scroll",fp,!0)),t.push(te(window,"gestureend",Qg,!0)),t.push(te(window,"securitypolicyviolation",Ug)),t.push(em()),m.get("preferMutationObserver")&&l.MutationObserver&&(e=K.debounce(function(e){q.dispatch("guideUpdate/documentChanged")},50),t.push(function(){e.cancel()}),t.push(I(window,"animationend",e)),t.push(I(window,"transitionend",e)),t.push(I(window,"mouseover",e)),q.commit("guideUpdate/setUseObserver"),m.get("observeShadowRoots")&&q.commit("guideUpdate/setObserveShadowRoots"),t.push(function(){return q.dispatch("guideUpdate/stopObserver")})),h.registry.addLocal(Gf.ADVANCED),h.registry.addLocal(Gf.DISMISSED),h.registry.addLocal(Gf.SNOOZED),h.registry.addLocal(_h),Uu.initialize(),function(){im.reset(),qf(),gg(),K.each(t,function(e){e()}),ee("#"+xg).remove(),ee("#"+Rg).remove(),Uu.teardown()}},jg=function(){return m.get("guides.disabled",!1)||m.get("disableGuides",!1)||!$r},zg=function(){return m.get("guides.delay",!1)||m.get("delayGuides",!1)},Zg=function(e){var t=m.getLocalConfig();t.disableGuides=e,m.setLocalConfig(t)},Vg=function(e){var t=m.getLocalConfig();t.delayGuides=e,m.setLocalConfig(t)},Yg=wi(function(e){if(e&&e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n].featureRule,r=K.map(e[n].eventProperties,function(e){return e.selector?e:JSON&&JSON.parse&&e.rule?JSON.parse(e.rule):void 0});t.push({featureRules:i,eventPropertyRules:r,featureId:e[n].featureId})}return t}}),Hg=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement},Kg=function(){X.debug("adjustActiveGuideOnResize firing");var e=dm();e&&e.step&&!C.ignoreResize&&e.step.redraw()},Xg=function(){var e;-1<K.get(document,"activeElement.id","").indexOf("pendo-video-")?(!(e=Hg())||0>e.id.indexOf("pendo-video-"))&&Dt(function(){Kg()},150):Kg()},Jg=function(){Xg(),fp()},qg=K.debounce(Jg,50),Qg=function(e){1!==e.scale&&qg()},em=function(){for(var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],t=[],n=0;n<e.length;n++)t.push(te(document,e[n],tm));return function(){K.each(t,function(e){e()})}},tm=function(e){var t=K.get(document,"activeElement.id",""),e=K.get(e,"target.id","");K.filter([t,e],function(e){return -1<e.indexOf("pendo-video-")}).length&&(Hg()?C.ignoreResize=!0:Dt(function(){C.ignoreResize=!1},1e3))};function nm(e,t,n,i){return!(!e||!C.apiKey||jg()&&"true"!==Fh.getItem("pendo-designer-mode")||e===im.lastUrl&&t===im.lastVisitorId&&n===im.lastAccountId&&i===im.lastMetadataHash)}function im(e){var t=Q(),n=fi();nm(e=e||f.get(),t,n,Lc)&&(im.lastUrl=e,im.lastVisitorId=t,im.lastAccountId=n,im.lastMetadataHash=Lc,yg(C.apiKey,t,e).catch(K.noop))}im.reset=function(){K.each(["lastUrl","lastVisitorId","lastAccountId","lastMetadataHash"],function(e){im[e]=null})};var rm=function(e){$r&&(rm.reset(),rm.pending=Dt(function(){delete rm.pending,im(e)},0))};function om(){im.lastUrl=null,rm()}function am(e){return Dh.push(e),K.partial(sm,e)}function sm(e){-1!==(e=Dh.indexOf(e))&&Dh.splice(e,1)}function dm(){var e,t,n=K.find(A(),function(e){return e.isShown()});return!n||K.get(n,"attributes.resourceCenter.isModule")&&!(n=se.getResourceCenter())?null:(e=K.find(n.steps,function(e,n){return t=n,e.isShown()}),{guide:n,steps:K.filter(n.steps,function(e,t){return e.isShown()}),step:e,stepIndex:t})}function um(e){return h.registry.addLocal(vp),h.registry.addLocal(yp),K.find([K.partial(nh.launchOnToken,window.location),K.partial(bp,window),K.partial(nh.localStorageNavigation,e)],function(e){return e()}),e.enableDesignerKeyboardShortcut||!m.get("disableDesignerKeyboardShortcut")?ih.listen():function(){}}function cm(e){var t,n=K.get(e,"value","");-1!==K.get(e,"parentElement.className","").indexOf("_pendo-nps-poll-"+n+"-wrapper")&&(e=ee("._pendo-nps-open-text-poll-question"),t=ee("._pendo-nps-open-text-poll-input")[0],K.forEach(e,function(e){"none"!==K.get(e,"style.display","none")&&t&&t.setAttribute("aria-labelledby",e.id)}))}function lm(e){if(e.confirmationElementPathRule)return s(e.confirmationElementPathRule)[0]}rm.reset=function(){rm.pending&&clearTimeout(rm.pending)};var pm=function(){var e=this,t=(this.eventable=Bn.call({}),this.eventable.on("pendoEvent",function(t){try{e.eventHandler(t)}catch(e){t=t&&t.action||"NO ACTION DEFINED",X.critical("Error in Action "+t,{error:e})}}),this.eventHandler=function(e){if(!e.ignore&&!C.designer){var i=e.step.guideElement;switch(e.action){case t.advanceGuide:hf(e,e.step);break;case t.previousStep:ff(e,e.step);break;case t.goToStep:pf(e);break;case t.submitPoll:this.submitPoll(e);break;case t.guideSnoozed:var r=e&&e.params&&e.params[0]&&e.params[0].value;cf(e,e.step,r);break;case t.dismissGuide:se.attemptToPreserveIntegrationIframes(e),function(e){if(!e||!e.step)return uf();var t=e.step.getGuide();if(t&&t.attributes&&t.attributes.resourceCenter)return se.dismissResourceCenter(t);uf(e,e.step)}(e);break;case t.showElements:this.setElementDisplay(e,"block"),e.srcElement&&cm(e.srcElement),Tc((o=$u(e.step.domJson)).props.id,i),_c(o.props.id,i),ae.flexAllThings(o.props.id,i),Ac(o.props.id,i);break;case t.hideElements:this.setElementDisplay(e,"none"),Tc((o=$u(e.step.domJson)).props.id,i),_c(o.props.id,i),ae.flexAllThings(o.props.id,i),Ac(o.props.id,i);break;case t.slideElement:this.setElementAnimation(e);break;case t.showGuide:r=K.find(e.params,function(e){return"reason"===e.name}),Xf(e.params[0].value,r&&r.value);break;case t.launchGuide:this.launchGuide(e);break;case t.renderResourceCenterModule:var o=n(e);se.replaceResourceCenterContent(e.params[0].value,o);break;case t.returnToResourceCenterHome:if(!(r=se.findResourceCenterHomeView(qd())))return;se.attemptToPreserveIntegrationIframes(e),se.replaceResourceCenterContent(r.id,e.params);break;case t.openLink:this.openLink(e);break;case t.searchGuides:this.searchGuides(e);break;case t.submitPollAndGoToStep:this.submitPoll(e),pf(e);break;case t.confirmation:this.confirmGuide(e)}var a=pm.prototype.registeredActions,a=a&&a[e.action];"function"==typeof a&&a(e)}},this.submitPoll=function(e){var n=e&&e.action,i=e.step,r=[];e.srcElement&&e.srcElement.getAttribute("data-pendo-poll-type")&&"yesNo"===e.srcElement.getAttribute("data-pendo-poll-type")&&(o=e.srcElement.getAttribute("data-pendo-poll-id"),e=e.srcElement.value,r.push({pollId:o,value:parseInt(e,10)}));var o=ee("[data-pendo-poll-id]",i.guideElement[0]);r=r.concat(K.map(o,function(e){var t,n=ee("textarea,input:text,select,input:radio:checked",e);if(n&&n.length&&n[0].value)return t=e.getAttribute("data-pendo-poll-id"),e=K.find(i.guide.polls,function(e){return e.id===t}),n=n[0].value,e&&e.numericResponses&&(n=parseInt(n,10)),{pollId:t,value:n}})),i.response&&r?i.response(K.compact(r)):X.info("[Agent] Error! Trying to submit a poll response but step does not have response function!"),n!==t.submitPollAndGoToStep&&i.advance()},this.setElementDisplay=function(e,t){var n=e.step,e=ee(K.find(e.params,function(e){return"selectors"===e.name}).value,n.guideElement[0]);K.each(e,function(e){e.style.display=t})},this.setElementAnimation=function(e){var t=ee(K.find(e.params,function(e){return"selector"===e.name}).value,e.step.guideElement[0])[0],n=K.find(e.params,function(e){return"transition"===e.name}).value,e=K.find(e.params,function(e){return"left"===e.name}).value;t.style.transition=n,t.style.left=e},this.openLink=function(e){var t=K.find(e.params,function(e){return"url"===e.name}).value,e=K.find(e.params,function(e){return"target"===e.name}).value;"_self"===e&&ma()&&(e="_top"),window.open(t,e)},this.goToStep=pf,this.searchGuides=function(e){var t,n,i="",r=e.srcElement.value,e=ee("#pendo-resource-center-container"),o=e.find('[id^="pendo-list-item-"]'),a=e.find('[id^="pendo-results-count-container"]'),e=e.find('[id^="pendo-no-matches-container"]'),s=[],d=!0,u=0;if(o)for(var c in o)c&&o[c]&&(t=!1,ee(o[c]).text()&&(-1!==ee(o[c]).text().toLowerCase().indexOf(r.toLowerCase())?(ee(o[c]).css({display:"list-item"}),d=!1,t=!0):ee(o[c]).css({display:"none"})),K.isFunction(o[c].getAttribute)&&(i=o[c].getAttribute("data-_pendo-text-list-item-1").split(","),K.forEach(i,function(e){K.contains(s,e)||s.push(e)})),this.searchAllTerms(s,i,r)&&o[c]&&(ee(o[c]).css({display:"list-item"}),d=!1,t=!0),i="",t)&&u++;d?ee(e[0]).css({display:"block"}):ee(e[0]).css({display:"none"}),a&&a.length&&(a[0].innerHTML="",r)&&(n="",0===u?(n=e[0].innerText,this.debounceAnnounceResults(a[0],n)):(e=1===u?"data-pendo-aria-label-alert-singular":"data-pendo-aria-label-alert-plural",(n=a[0].getAttribute(e))&&(n=n.replace("{RESULT_COUNT}",u),this.debounceAnnounceResults(a[0],n))))},this.searchAllTerms=function(e,t,n){return!!t&&t.some(function(t){return K.contains(e,t)&&t===n})},this.confirmGuide=function(e){var e=e.step,t=lm(e);e.advance(),t?t.click():X.critical("pendo.io confirmationElement exception",{stepId:e.id,confirmationElementPathRule:e.confirmationElementPathRule,error:Error("confirmation action called but confirmationElement was not found")})},this.getTransitionParams=n,this.launchGuide=function(e){K.get(e,"params.2.value.doNotDismiss")||uf(e,e.step);var t,n,i=e&&e.params&&e.params[0]&&e.params[0].value,r=e&&e.params&&e.params[1]&&e.params[1].value;i&&r?(r=T(e.params[0].value),t=e.params[1].value,n=(n=K.find(r.steps,function(e){return e.id===t}))||r.steps[0],Ef(r),n.show("api")):i&&Xf(e.params[0].value)},this.debounceAnnounceResults=K.debounce(function(e,t){e.innerHTML=t},300),{advanceGuide:"advanceGuide",previousStep:"previousStep",goToStep:"goToStep",submitPoll:"submitPoll",guideSnoozed:"guideSnoozed",dismissGuide:"dismissGuide",showElements:"showElements",hideElements:"hideElements",slideElement:"slideElement",showGuide:"showGuide",launchGuide:"launchGuide",renderResourceCenterModule:"renderResourceCenterModule",returnToResourceCenterHome:"returnToResourceCenterHome",openLink:"openLink",searchGuides:"searchGuides",submitPollAndGoToStep:"submitPollAndGoToStep",confirmation:"confirmation"});function n(e){return e.params.find(function(e){return"transitionDirection"===e.name})?[{name:"transitionCss",type:"string",value:"left 200ms"},{name:"transitionDirection",type:"string",value:"right"}]:[]}return this},hm=(pm.registerAction=function(e,t){e&&"string"==typeof e&&t&&"function"==typeof t&&(pm.prototype.registeredActions||(pm.prototype.registeredActions={}),pm.prototype.registeredActions[e]=t)},pm.deregisterAction=function(e){e&&"string"==typeof e&&(pm.prototype.registeredActions||(pm.prototype.registeredActions={}),delete pm.prototype.registeredActions[e])},function(){var e="guideActivity",t=function(){return(new Date).getTime()-Zh()},n=K.isObject,i=K.findWhere,r=[];return{type:e,handler:function(d){var u,c=d.data[0],d=d.data[1];n(u=c)&&function(e){return e&&"click"===e.type}(d)&&function e(t){return!!K.isString(t.id)&&0===t.id.indexOf("pendo-base")||!!n(t.parentElem)&&e(t.parentElem)}(u)&&(function(e){return o(e)}(u)||function(e){return s(e)}(u)||function(e){return a(e)}(u))&&(d=function(n){var d=function(e){for(var t=0,n=r;t<n.length;t++){var i=(0,n[t])(e);if(i)return i}return dm()}(n);if(d&&(!function(e){return(e=e.guide.activeModule)&&e.attributes&&e.attributes.resourceCenter&&"AnnouncementsModule"===e.attributes.resourceCenter.moduleId}(d)||(d=function(e){var t=ee("#"+e).closest("[data-pendo-announcement-guide-id]").attr("data-pendo-announcement-guide-id"),e=K.find(qd(),function(e){return e.id===t});return e?{guide:e,step:e.steps[0]}:void 0}(n.id)))&&d.step&&d.step.domJson){var u,c,l,n=s(n)||o(n)||a(n)||{type:n.tag,id:n.id},p=function e(t,n){if(n.props&&n.props.id&&n.props.id===t)return n;if(void 0!==n.children)for(var i=0;i<n.children.length;i++){var r=e(t,n.children[i]);if(void 0!==r)return r}}(n.id,d.step.domJson);if(p)return u=n.id,c=(l=void 0===(l=(p=function(e,t){if(void 0!==e){if("a"===e.type)return[{action:"openLink",url:lr(e.props.href),target:e.props.target}];if(void 0!==e.actions)return K.map(e.actions,function(e){switch(e.action){case"automation":var t=i(e.parameters,{name:"automationIds"});return{action:e.action,automationIds:t};case"openLink":var t=i(e.parameters,{name:"url"}),n=i(e.parameters,{name:"target"});return{action:e.action,url:lr(t.value),target:n.value};case"submitPollAndGoToStep":case"goToStep":return t=i(e.parameters,{name:"goToStepId"}),{action:e.action,guideStepId:t.value};case"guideSnoozed":return n=i(e.parameters,{name:"snooze_duration"}),t=i(e.parameters,{name:"time_unit"}),{action:e.action,duration:n.value,timeUnit:t.value};case"showGuide":case"launchGuide":return n=e.parameters[0],t=e.parameters[1]||{},{action:e.action,guideId:n.value,stepId:t.value};case"advanceGuide":case"previousStep":case"submitPoll":case"dismissGuide":case"confirmation":return{action:e.action};default:return{}}});if("pendo_task_list_item"===t.templateName&&K.isArray(e.templateChildren)&&e.templateChildren[t.templateChildIndex])return[{action:"showGuide",guideId:e.templateChildren[t.templateChildIndex].id}]}return[]}(p,n))[0])?{}:l).action,l=l.guideId,"showGuide"===c&&l&&(u+="-"+l),Uf({type:e,visitorId:Q(),ui_element_id:u,ui_element_type:n.type,ui_element_actions:p,guideId:d.guide.id,stepId:d.step.id,duration:t(),language:d.guide.language})}}(c))&&zf(d)},registerGuideResolver:function(e){r.push(e)},removeGuideResolver:function(e){-1!==(e=r.indexOf(e))&&r.splice(e,1)}};function o(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-button/.test(e.id))?{type:e.tag,id:e.id}:d(e)||!n(e.parentElem)?null:o(e.parentElem)}function a(e){var t,i;return"LI"===e.tag&&/pendo-task-list-item/.test(e.cls)?(t=(i=e.id.split("-")).pop(),i=i.join("-"),{type:e.tag,id:i,templateName:"pendo_task_list_item",templateChildIndex:t}):d(e)||!n(e.parentElem)?null:a(e.parentElem)}function s(e){return"A"===e.tag?{type:e.tag,id:e.id}:d(e)||!n(e.parentElem)?null:s(e.parentElem)}function d(e){return K.isString(e.id)&&0===e.id.indexOf("pendo-guide-container")}}()),fm=[],gm=!1,mm={agent:{getJwtInfoCopy:za.get,treatAsAdoptPartner:Tr},agentStorage:h,analytics:{ptm:function(){return Zs}},attachEvent:I,ConfigReader:m,Events:y,EventTracer:Dn,EventRouter:pm,Extensions:{API:{addTopic:dl}},frames:{getChannel:function(){return Gg}},getAssetUrl:Ar,getEventable:function(){return Bn.call({})},GlobalRuntime:{addGlobalScript:Uu.addGlobalScript,removeGlobalScript:Uu.removeGlobalScript},GuideActivity:hm,GuideLoop:{addUpdatePhase:jl,removeUpdatePhase:zl},guides:{addProcessor:am,removeProcessor:sm,registerDisplayableGuides:su,removeDisplayableGuides:du},hosts:{SERVER:nt},NodeSerializer:yd,q:J,sessionStorage:h.getSession(),sizeElements:Cc,store:q,Tombstone:tu,transmit:{buildBaseDataUrl:jr,fetchKeepalive:Hr,sendBeacon:Kr},log:X,util:{trim:gt,base64EncodeString:xt,parseUrl:Uo},constants:{URL_MAX_LENGTH:fs}};function vm(e){K.find(fm,function(t){return t.name===e.name})?X.warn("Plugin with name ".concat(e.name," already exists. Skipping registration.")):(fm.push(e),gm&&e.initialize(C,mm))}function ym(){return K.each(fm,function(e){e.initialize(C,mm)}),gm=!0,bm}function bm(){K.each(fm,function(e){K.isFunction(e.teardown)&&e.teardown(C,mm)}),gm=!1}function Im(e){return K.map(fm,function(t){return t.validate&&!e&&t.validate(C,mm),t.name})}function wm(e){return K.extend(e.uri,K.pick(e,"name")),vm(e.uri),e}function Cm(e){return!!e.uri.initialize&&!!e.uri.teardown}ul.registerExtensionsByUse("plugin",wm,Cm);var Sm=!1,Am=function(e){var t=e.old_visitor_id,e=e.visitor_id;return Xn(t)?Kn(e)?Xn(e)?(X.info("Visitor is anonymous: "+e),!1):ei(e)?(X.info("Visitor id is the default: "+e),!1):(X.info("Re-mapping visitor identity from "+t+" to "+e),!0):(X.info("Not valid visitor id: "+e),!1):(X.info("Visitor is already identified: "+t),!1)},Tm=function(e){var t=e.old_account_id,e=e.account_id;return Kn(e)?t!==e&&(X.info("Re-mapping account identity from "+t+" to "+e),!0):(X.info("Not valid account id: "+e),!1)};function _m(){Sm||(y.identify.on(function(e){(Am(e=e.data[0])||Tm(e))&&(qa("identify",e),Fa())}),y.metadata.on(function(e){var t;il()||(t=(e=e.data[0]).options,e.hashChanged&&(qa("meta",t),Fa()))}),Sm=!0)}var Em=function(){var e="guideActivity",t=function(){return(new Date).getTime()-Zh()},n=K.isObject;return{type:e,handler:function(a){var s,d=a.data[0],a=a.data[1];n(s=d)&&function(e){return e&&"click"===e.type}(a)&&function e(t){return"pendo-resource-center-container"==t.id||!!n(t.parentElem)&&e(t.parentElem)}(s)&&(function(e){return o(e)}(s)||function(e){return i(e)}(s)||function(e){return r(e)}(s))&&(a=function(n){var a=se.getResourceCenter();if(a){var s=a.activeModule,d=o(n);if(d?(d={elementId:d.id},/^pendo-close-guide/.test(d.id)?d.actions=[{action:"dismissGuide"}]:/^pendo-left-caret/.test(d.id)&&(d.actions=[{action:"showGuide",guideId:a.id}])):d=i(n)||r(n),d)return d.guideId||(d.guideId=(s||a).id),d.stepId||(d.stepId=(s||a).steps[0].id),d.actions||(d.actions=[{action:"showGuide",guideId:d.elementId}]),d.language||(d.language=(s||a).language),Uf({type:e,visitorId:Q(),ui_element_id:d.elementId,ui_element_type:d.type,ui_element_actions:d.actions,guideId:d.guideId,stepId:d.stepId,duration:t(),language:d.language})}}(d))&&zf(a)}};function i(e){return -1!==e.cls.split(" ").indexOf("_pendo-resource-center-module-list-item")?{type:"BUTTON",elementId:ee("#"+e.id).closest("[data-pendo-module-guide-id]").attr("data-pendo-module-guide-id")}:"pendo-resource-center-container"!==e.id&&n(e.parentElem)?i(e.parentElem):null}function r(e){var t=e.cls.split(" ");return -1===t.indexOf("_pendo-resource-center-guidelist-module-listed-guide")&&-1===t.indexOf("_pendo-resource-center-onboarding-module-listed-guide")?"pendo-resource-center-container"!==e.id&&n(e.parentElem)?r(e.parentElem):null:(t=se.getResourceCenter())&&(e=e.id.split("-").pop(),(t=t.activeModule)&&t.attributes&&t.attributes.resourceCenter)?{type:"BUTTON",elementId:t.attributes.resourceCenter.children[e]}:null}function o(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-left-caret/.test(e.id))?{type:e.tag,id:e.id}:"pendo-guide-container"!==e.id&&n(e.parentElem)?o(e.parentElem):null}}(),xm=function(e){return(e=e||C).doesExist(e.apiKey)};function Rm(e){e=e.events,K.each(void 0===e?[]:e,function(e,t){Tu[t]&&Tu[t](e)})}var km=0,Om="initializeImmediately",Nm=[],Mm=wi(function(e){if("complete"===document.readyState||K.get(e,Om)||m.get(Om))if(X.info("pendo.initialize called with "+JSON.stringify(e)),C.apiKey)1==km++&&X.info(["pendo.initialize only needs to be called once",Mt()?" per namespace":"",". Use pendo.updateOptions to update metadata after the agent has initialized."].join(""));else{if(e=e||{},K.isEmpty(za.get())&&(t=za.getJwtOptions(e,"initialize"))&&(za.set(K.pick(e,"jwt","signingKeyName")),K.extend(e,t,{forceAnonymous:!0})),K.isString(e))return p.get(e).then(function(e){return pe(i=e.data),Mm()});q.dispatch("location/init",e.location||{}),m.setLocalConfig(e),wr(),Cr(C);var t=m.get("cookieDomain");t&&wn(t,location.host),eh.discoverKeys(e),eh.getApiKey()?(q.commit("metadata/setMetadata",{selfHosted:tl()}),e.logStackTraces&&(C.logStackTraces=e.logStackTraces),m.get("preferBroadcastChannel")&&wh.secure(!0),Nm.push(Hs()),$r&&(h.registry.addLocal(zn),h.registry.addLocal(Zn),h.registry.addLocal(Vn),h.registry.addLocal(Yc),h.registry.addLocal(Vl),C.disableGuideCenterContentSearch=e.disableGuideCenterContentSearch,Rm(e),Nm.push($g()),_m(),Nm.push(Bd()),Nm.push(ym()),Nm.push(um(e)),y.appUsage.on(hm.handler),y.appUsage.on(Em.handler),Nm.push(Pa(Sa))),Jn()||qn(),C.updateOptions(e),e.visitorId&&e.visitorId!=Qn&&C.identify(e.visitorId),Nm.push(f.watch(function(){C.pageLoad()})),$r&&y.ready.trigger(),Ks(f.get()),km++,Lm(),Gm()):X.debug("API key is not set, Pendo will not initialize.")}else V(C,"initialize",arguments)});function Lm(){window.parent&&window.parent.postMessage&&"function"==typeof window.parent.postMessage&&window.parent.postMessage({type:"announce-frame-initialized",destination:"pendo-designer-agent",source:"pendo-designer-agent",localStorageRouter:!0},wh.targetOrigin())}function Fm(e){return!K.isArray(e)||K.isEmpty(e)}function Pm(e){if(!Fm(e))return K.find(e,function(e){return"initialize"===e[0]})}function Gm(e){var t;return!Fm((e=e||C)._q)&&(t=!!Pm(e._q),xm(e)||t)?(t=e._q.splice(0,e._q.length),K.reduce(t,function(t,n){var i;return K.isArray(n)&&(i=e[n.shift()],K.isFunction(i))?t.then(function(){return i.apply(e,n)}):t},J.resolve()).then(Gm)):J.resolve()}function Dm(){xm()?X.info("already running"):(window.pendo_options&&Mm(window.pendo_options),Gm())}function Bm(e,t,n){m.get("disableAutoInitialize")||(e=(e=Pm(e))&&1<e.length?e[1]:{},K.get(e,Om)||m.get(Om)?t():Nm.push(n(t)))}function Wm(){y.appHidden.trigger(),y.appUnloaded.trigger(),K.each(Nm,function(e){e()}),Ks.reset(),Nm.length=0,wh.close(),Bn.clear(y),Bn.clear(Tu),delete C.apiKey,km=0}var Vm,Ym,Um=function(e){var t,n=dm();n&&(t=n.guide.steps[n.stepIndex+1],Dt(function(){var e=s(t.elementPathRule);0!==e.length&&K.some(e,b)?hf(n.step):hf(t)},e=e||0))},$m=function(e,t){var n=dm(),i=ee(t=t||n.step.elementPathRule)[0],r=function(){hf(),w(i,e,r,!0)};I(i,e,r,!0)},jm=function(){ee("._pendo-guide_").css("display:none;");var e=Vf(),t=dm().guide.steps,n=K.filter(K.rest(t),function(e){return!!e.pageId}),n=K.indexOf(t,K.find(n,function(t){return Hf(t.regexUrlRule,e)}));X.info("startingPoint is "+n),-1==n?ee("._pendo-guide_").css("display:block;"):(n=t[Math.max(0,n-1)],X.info("found starting step to be "+n.id),hf(n))},zm=function(e,t,n){if(t)n||(i=[].concat(t.steps).reverse(),n=K.findWhere(i,{seenState:"active"}));else{var i=dm();if(!i)return;t=i.guide,n=i.step}return(e=K.template(e=e||"Step <%= currPos %> of <%= total %>"))({currPos:t.getPositionOfStep(n),total:t.getTotalSteps()})},Zm={getActiveGuide:dm,smartNextStep:Um,smartFirstStep:jm,advanceOn:$m,renderStepPosition:zm},x=function(){return{renderGuideFromJSON:function(e,t,n,i){var r,o,a,s,d=t.getGuide(),u=$u(e),c=K.get(d,"attributes.resourceCenter");c&&(se.revertRtlChanges(d,e.props),e=se.updatePseudoStyleSelectors(e));var l=c&&se.isFullyCustom(d),p="AnnouncementsModule"===K.get(d,"attributes.resourceCenter.moduleId"),u=(t.hasEscapeListener=!1,t.containerId=u&&u.props&&u.props.id,t.element=mu(t),x.buildNodeFromJSON(e,t,n)),n=(t.guideElement=u).find("#"+t.containerId),f="data-vertical-alignment",h="Relative to Element"===n.attr(f);h&&!c&&ee(t.guideElement).css({overflow:"hidden",height:"0",width:"0"}),n.css({visibility:"hidden"}),u.css({visibility:"hidden"}),(f=dh.buildWatermark({appId:d.appId,targetAccount:d.targetAccount,isTraining:d.isTraining,isBottomAligned:"Bottom Aligned"===n.attr(f)},x.buildNodeFromJSON))&&n.append(f);var f=t&&t.attributes&&t.attributes.imgCount,g=oe(),m=K.get(d,"attributes.embedConfig",null);return m?(o="pendo-guide-container",(r=(a=u[0]).querySelector("#".concat(o)))&&(r.id="".concat(o,"-").concat(t.id),a.id="".concat("pendo-base","-").concat(t.id)),r=m.selector,o=m.method,g=ee(r)[0],"replace"===o&&g?(g.innerHTML="",u.appendTo(g)):"prepend"===o?u.prependTo(g):u.appendTo(g)):u.appendTo(g),function(e,t,n){t=ee.getRootNode(t),(e=ee.getRootNode(e))!==t&&(n=ee(".pendo-style-".concat(n),e)).length&&(n.remove(),n.appendTo(t))}(oe(),u[0],t.id),Cc(u),l||p||(x.recalculateGuideWidth(t.containerId,t.guideElement),x.adjustGuideContentWidth(t.containerId,t.guideElement)),f||c||x.flexAllThings(t.containerId,t.guideElement),l||x.recalculateGuideHeight(t.containerId,t.guideElement),h?t.attributes.calculatedType="tooltip":wc.attachBBAdvanceActions(t),h&&!f&&wc.positionStepForTooltip(t,e,n[0]),c&&(se.showHomeViewOrEmptyState(d),a=[],p?a=[d.attributes.resourceCenter]:x.flexAllThings(t.containerId,t.guideElement),a.length)&&K.forEach(a,function(e){e=K.get(e,"children",[]),K.forEach(e,function(e){var n;e&&(n=e.steps[0],K.isUndefined(n.attributes.imgCount))&&(n=K.get(n,"id",t.id),e=K.get(e,"id",d.id),n=ee("#pendo-g-"+n).length?n:e,x.flexAllThings("pendo-g-"+n,t.guideElement))})}),f?(s=J.defer(),u.rendered=s.promise,n.on("imagesLoaded",function(){s.resolve()})):(n.css({visibility:"visible"}),u.rendered=J.resolve()),u.css({visibility:"visible"}),t.elements.push(t.guideElement[0]),C.designer||(K.get(t,"attributes.isAutoFocus")&&(x.autofocusStep(t,n),x.trapFocusStep(t,n),t.hiddenElements=x.addAriaHiddenOutsideGuide(u[0])),c&&(x.attachRCFocusHandlers(),d.skipResourceCenterHomeView?(m=d.activeModule.steps[0],x.autofocusStep(m,m.guideElement)):x.autofocusStep(t,n))),ee(".pendo-video-wrapper",u).each(function(e){ee("iframe",e).each(function(t){e.setAttribute("data-pendo-video-loading",""),x.addVideoLoadListener(e,t)})}),u},autofocusStep:function(e,t){var n="autofocus for guide id: "+e.getGuide().id+" step id: "+e.id+" ",i={maxRetries:100,delay:50,exponentialBackoff:!1};Wt(function(){var e=ee(t).find("#pendo-guide-container");return(e=e[0]||e)&&b(e)&&ko(e)&&Oo(e)?e:null},i,function(e){Wt(function(){var t;return!!(t=e)&&(t.focus(),t===ee.getRootNode(t).activeElement)},i,function(){},function(){X.warn(n+"#pendo-guide-container is available on page but could not capture focus")})},function(){X.warn(n+"#pendo-guide-container did not render or become visible in time to focus")})},trapFocusStep:function(t,r){!function(t){var r,o,a,s,d,u,c,l=t[0];l&&(s='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled]), [tabindex], iframe',(r=K.toArray(t.find(s))).length)&&(o=r[0],a=r[r.length-1],d=(s=i(t))[0],u=s[1],c=function(t){var i,s,c=e(t),p=t.shiftKey;c&&(i=(c=ee.getRootNode(l).activeElement)===l,s=document.activeElement===document.body,p?(c===d||i||s)&&(n(r,a).focus(),t.preventDefault()):(i||c===u||s)&&(n(r,o).focus(),t.preventDefault()))},I(document,"keyup",c),I(document,"keydown",c),y.one("unmounted",function(){w(document,"keyup",c),w(document,"keydown",c)}))}(r.find("#pendo-guide-container"))},attachRCFocusHandlers:function(){var n,r,o,a,s,d,u,c=se.getResourceCenter(),l=se.getResourceCenterContainer();"dom"===c.launchMethod&&l&&(n=ee(c.attributes.activation.selector)[0])&&(o=(r=i(ee(l)))[0],a=r[1],s=function(n){var i,r,s,d=e(n),u=n.shiftKey;function p(e){return Object.values(s).findIndex(function(t){return t===e})}d&&(d=ee.getRootNode(l).activeElement,i=ee(c.attributes.activation.selector)[0])&&(r=d===o,d=d===a,s=ee(Lo),u?r?(i.focus(),n.preventDefault()):d&&t(0===(u=p(o))?s.length-1:u-1,s,n):d?t(p(i)+1,s,n):r&&t((u=p(a))>=s.length-1?0:u+1,s,n))},d=function(n){var i=e(n),r=n.shiftKey;i&&!r&&t(0,ee('[id^="pendo-g-"]').find(Lo),n)},u=function(e){var n=e.target,i=e.relatedTarget,n=n.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING;i!=o&&n&&t((i=ee('[id^="pendo-g-"]').find(Lo)).length-1,i,e)},I(document,"keyup",s),I(document,"keydown",s),I(n,"keydown",d),I(n,"focus",u),y.one("unmounted",function(){w(document,"keyup",s),w(document,"keydown",s),w(n,"keydown",d),w(n,"focus",u)}))},addAriaHiddenOutsideGuide:function e(t,n){if(void 0===n&&(n=[]),!t||t===bo())return n;var i=wo(t);return K.each(i,function(e){var t;-1===n.indexOf(e)&&"true"!==e.getAttribute("aria-hidden")&&"script"!==(t=e.tagName.toLowerCase())&&"style"!==t&&(e.setAttribute("aria-hidden","true"),n.push(e))}),t.parentNode&&e(t.parentNode,n),n},renderResourceCenterModule:se.renderResourceCenterModule,buildNodeFromJSON:Bc,attachImgLoadHandlers:Wc,recalculateGuideHeightOnImgLoad:Uc,buildStyleString:function(e){var t="";return K.each(e,function(e,n){t=t+n+":"+e+";"}),t},buildStyleTagContent:zc,bindActionToNode:$c,recalculateGuideHeight:Ac,recalculateGuideWidth:Tc,adjustGuideContentWidth:_c,findDomBlockInDomJson:ju,isElementHiddenInGuide:ae.isElementHiddenInGuide,positionStepForTooltip:wc.positionStepForTooltip,flexAllThings:ae.flexAllThings,flexElement:ae.flexElement,findTopLevelContainer:function(e){for(var t=["pendo-base","pendo-resource-center-container"],n=0;n<20;n++){if(K.find(t,function(t){return e.id===t}))return e;if(e===document.body)break;e.parentNode&&(e=e.parentNode)}return document.body},updateBackdrop:uc,buildNodesFromJSON:Pc,findGuideContainerJSON:$u,maintainAspectRatios:ae.maintainAspectRatios,sizeElement:Sc,sizeElements:Cc,getAllowedAttributes:Dc,repositionFlexElementsInFullWidthGuides:function(){},isBuildingBlockGuideRelativeToElement:wc.isBuildingBlockGuideRelativeToElement,updateAriaLabelledbyForActiveFollowupQuestion:cm,addVideoLoadListener:function(e,t){I(t,"load",function(){e.removeAttribute("data-pendo-video-loading")})}};function e(e){return"Tab"===e.key||9===e.keyCode}function t(e,t,n){(e=t[e])&&(e.focus(),n.preventDefault())}function n(e,t){var n,i;return"radio"===t.getAttribute("type")&&(n=t.getAttribute("data-pendo-poll-id"),i=K.find(e,function(e){return n===e.getAttribute("data-pendo-poll-id")&&e.checked})),i||t}function i(e){var t={margin:0,padding:0,outline:"none",border:"none","box-shadow":"none",shadow:"none"},t={type:"style",props:{type:"text/css",scoped:"scoped",id:"pendo-focus-bumper-styles"+Date.now()},css:[{selector:".pendo-start-focus-bumper",styles:K.extend({},t,{tabIndex:0})},{selector:".pendo-start-focus-bumper:hover",styles:t},{selector:".pendo-start-focus-bumper:focus",styles:t},{selector:".pendo-end-focus-bumper",styles:K.extend({},t,{tabIndex:0})},{selector:".pendo-end-focus-bumper:hover",styles:t},{selector:".pendo-end-focus-bumper:focus",styles:t}]},t=x.buildNodeFromJSON(t),t=(e.prepend(t),document.createElement("div")),n=(t.setAttribute("id","pendo-start-focus-bumper-"+Date.now()),t.setAttribute("class","pendo-start-focus-bumper"),t.setAttribute("tabIndex",0),e.prepend(t),document.createElement("div"));return n.setAttribute("id","pendo-end-focus-bumper-"+Date.now()),n.setAttribute("class","pendo-end-focus-bumper"),n.setAttribute("tabIndex",0),e.append(n),[t,n]}}();function Hm(e,t){var n="",i=e.nodeType;if(t=t||128,i===_r||i===kr)return e.nodeValue;if(!Km(e)&&(i===Er||i===xr||i===Rr)){if(!e.childNodes)return n;for(var r,o=0;o<e.childNodes.length;++o){if(t<=(n+(r=Hm(e.childNodes[o],t-n.length))).length)return n+qm(r.substring(0,t-n.length));n+=r}}return n}function Km(e){return!e.tagName||"textarea"==e.tagName.toLowerCase()}function Xm(e){return 55296<=e&&e<=56319}function Jm(e){return 56320<=e&&e<=57343}function qm(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if((Xm(t)||Jm(t))&&(1===e.length||Xm(t)||Jm(t)&&!Xm(e.slice(-2).charCodeAt(0))))return e.slice(0,-1)}return e}var Qm=100,ev=[],tv=[],nv="log-enabled",iv="active-contexts",rv=function(e){var t=h.read(nv,!0);return null!==t?"true"==t:!K.contains(["prod","prod-eu","prod-us1","prod-jp","prod-hsbc","prod-au","rc"],e)},ov=function(){var e=h.read(iv,!0);return e?e.split(","):[]},av=function(){return cv()?Ym?"logging already enabled":(h.write(nv,"true",null,!0),Ym=!0,"logging enabled"):"logging unavailable"},sv=function(){return Ym?(h.write(nv,"false",null,!0),Ym=!1,"logging disabled"):"logging already disabled"};function dv(){Vm=ov(),Ym=rv(tt),X.addEventListener("log",hv),h.registry.addLocal(nv),h.registry.addLocal(iv)}var uv=function(e,t){return K.compact([].concat(e,t))},cv=function(e){return e=e||"log","undefined"!=typeof console&&K.isFunction(console[e])},lv=function(e){return e=uv(e),0<Vm.length?0<K.intersection(Vm,e).length:!!Ym||!!Hl()},pv=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];X.info(e,{contexts:t})};function hv(e){var t;e.level!==tn.Debug&&e.level!==tn.Info||(t=e.attributes?uv(e.attributes.contexts):[],cv()&&lv(t)&&wv(e.message),mv(ev,e.message,t))}function fv(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];cv("error")&&console.error.apply(console,e),mv(tv,e.join(" "))}function gv(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];cv("warn")&&console.warn.apply(console,e)}var mv=function(e,t,n){K.contains(n,"debug")||(e.length==Qm&&e.shift(),e.push([t,n]))},vv=function(e){e=uv(e),K.each(K.map(K.filter(ev,function(t){return 0===e.length||0<K.intersection(e,t[1]).length}),function(e){return e[0]}),function(e){wv(e,"[Pendo-History] ")})},yv=function(){return K.union.apply(K,K.map(ev,function(e){return e[1]}))},bv=function(){return Vm},Iv=function(e){Vm=uv(e),h.write(iv,Vm.join(","),null,!0)},wv=function(e,t){var n;cv()&&(t=t||"[Agent] ",e&&e.length?((n=1e3<e.length?e.length-1e3:0)&&(t+="..."),console.log(t+e.substring(n))):console.log(t+e))};function Cv(e){X.debug(e,{contexts:["debug"]})}function Sv(){return 0<tv.length}function Av(){return[].concat(tv)}function Tv(e,t){var n;e&&K.isString(e)?(K.isObject(n=t)||(n={__err__:t}),qa("track",n,t=f.get(),e)):X.error("Must provide valid name string for event tracking")}pv.init=dv,pv.enableLogging=av,pv.disableLogging=sv,pv.getActiveContexts=bv,pv.setActiveContexts=Iv,pv.showLogHistory=vv,pv.getLoggedContexts=yv;var _v=function(e){var t=[];function n(n,i,r,o){e?t.push({type:r,message:i,value:o}):S(o)?console[n](i,o):console[n](i)}if("undefined"==typeof console||!console.group)return"Please run this test in the latest version of Chrome, Firefox, Safari, or Internet Explorer";e||console.group("Pendo Install Validation"),C.apiKey||n("error","No Pendo API key configured. Make sure to call pendo.initialize() with a valid Pendo API key.","apiKey");var i=Q(),i=(Xn(i)&&n("warn",'The current visitor is not identified and will be treated as "anonymous". Is this expected? (You might have used "VISITOR-UNIQUE-ID" as the visitor ID)',"isAnonymousVisitor"),ei(i)&&n("error","The current visitor ID matches the example visitor ID from the Pendo installation instructions.","isDefaultVisitor"),fi()),r=(i||n("warn","The current visitor is not associated with an account. Is this expected?","noVisitorInAccount"),"ACCOUNT-UNIQUE-ID"===i&&n("error","The current account ID matches the example account ID from the Pendo installation instructions.","exampleAccountId"),m.get("disableCookies")&&n("warn","Cookies are disabled in Pendo config. Is this expected?","disableCookies"),rl());if(K.each(["visitor","account","parentAccount"],function(t){var i=r&&r[t],o=K.chain(i).keys().value();0<o.length?(e||console.group(t+" metadata (does this look right?):"),0<(o=K.chain(o).map(function(e){return e.toLowerCase()}).countBy().pick(function(e){return 1<e}).keys().value()).length&&K.each(o,function(e){n("warn","Keys will be lowercased and any duplicates overwritten. Please choose unique key names for:",t+"MetadataConflict",e)}),K.each(K.keys(i),function(e){var r=i[e];K.isObject(r)&&!K.isArray(r)?n("warn",e+" is an object and will be ignored.",t+"Metadata",r):K.isArray(r)&&K.any(r,K.isObject)?n("warn",e+" contains object values. The objects will be ignored.",t+"Metadata",r):n("log",e+":",t+"Metadata",r)}),e||console.groupEnd()):"parentAccount"!==t&&n("warn","No "+t+" metadata found. Learn more about metadata here: http://help.pendo.io/resources/support-library/installation/metadata.html",t+"MetaData")}),e)return t;console.groupEnd()},Ev=function(e){var t=[{nativeType:Object.prototype,displayName:"Object | Prototype "},{nativeType:Object,displayName:"Object ",propsToCheck:["create","getOwnPropertyNames"]},{nativeType:Number.prototype,displayName:"Number | Prototype"},{nativeType:String.prototype,displayName:"String | Prototype"},{nativeType:Function.prototype,displayName:"Function | Prototype"},{nativeType:Boolean.prototype,displayName:"Boolean | Prototype"},{nativeType:Array.prototype,displayName:"Array | Prototype"},{nativeType:Date.prototype,displayName:"Date | Prototype"},{nativeType:RegExp.prototype,displayName:"RegExp | Prototype"},{nativeType:JSON,displayName:"JSON ",propsToCheck:["parse","stringify"]},{nativeType:Math,displayName:"Math "},{nativeType:Vt.prototype,displayName:"Promise | Prototype"},{nativeType:window,displayName:"Window ",propsToCheck:["alert","asap","atob","btoa","cancelAnimationFrame","clearImmediate","clearInterval","clearTimeout","close","confirm","getComputedStyle","getSelection","open","postMessage","prompt","requestAnimationFrame","scroll","scrollBy","scrollTo","setImmediate","setInterval","setTimeout","stop","XMLHttpRequest","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent"]}],n=!1,i=(K.each(t,function(e){var t=e.nativeType,i=[],r=e.propsToCheck||Object.getOwnPropertyNames(t);K.each(r,function(e){try{e&&t[e]&&"function"==typeof t[e]&&(t[e].toString().includes("[native code]")||i.push(e))}catch(e){}}),i.length&&(e.nonNativeImplementations=i,n=!0)}),{hasNonNativeMethods:n,implementations:[]});return e||console.group("Native javascript method check:"),n?(e||console.warn("Pendo has detected that your application may be changing native javascript functionality. We suggest consulting an engineer or your CSM to better understand if these changes will negatively impact Pendo's ability to function properly"),K.each(t,function(t){var n;t.nonNativeImplementations&&(n=t.displayName.trim(),e?i.implementations.push({nativeType:n,nonNativeImplementations:t.nonNativeImplementations}):console.warn(n+" | Contains the following non-native implementations:",t.nonNativeImplementations.sort().join(", ")))}),e?i:void console.groupEnd()):e?i:(console.log("Environment uses native javascript implementations"),console.groupEnd())},xv=function(e){var t=[];if(K.isNumber(window.frames.length)&&K.isFinite(window.frames.length)&&ee("iframe").length+ee("frame").length===window.frames.length||t.push("Pendo has detected that window.frames.length has been modified"),window.Event&&window.Event.prototype||t.push("Pendo has detected that window.Event has been modified"),t.length){if(e)return t;console.group("Global variables:"),K.each(t,function(e){console.warn(e)}),console.groupEnd()}},Rv=function(e){var t,n=window.location.href,i=[];try{(t=Ji())!==n&&i.push({type:"customizedUrl",msg:"URL has been customized. This will affect data collection, guide requests, and reload tests.",value:t})}catch(e){i.push({method:"error",msg:"Error getting Custom URL",value:e})}try{var r=f.externalizeURL();r!==t&&i.push({type:"sanitizedUrl",msg:"URL has been sanitized. This will affect sending data and guides requests.",value:r})}catch(e){i.push({method:"error",msg:"Error getting Externalized URL",value:e})}if(e)return i;console.group("URL Validation"),console.log("Browser URL:",n),K.each(i,function(e){e.method?console[e.method](e.msg+"\n"+e.value):console.warn(e.msg+"\n"+e.value)}),console.groupEnd()},kv=function(e){if(Sv()){var t=Av();if(e)return t;console.group("Agent Error History"),K.each(t,function(e,t){console.log("Error History ",t,e)}),console.groupEnd()}},Ov=function(e){var t=Im(e);if(e)return t;console.group("Active Plugins"),K.each(t,function(e){return console.log(e)}),console.groupEnd()},Nv=function(e){var t={install:_v(e),plugins:Ov(e),globals:xv(e),url:Rv(e),errors:kv(e)};if(e)return t.methods=Ev(e),t;m.validate(console)},Mv={BuildingBlockGuides:x,BuildingBlockResourceCenter:se,BuildingBlockTemplates:Vu,BuildingBlockTooltips:wc,BuildingBlockSvgs:Yu};function Lv(e,t){this.state={duration:e,isStopped:!0,handle:null,cb:t,hasRun:!1,errors:[],options:{}},this.shouldJobRun=function(){return!(!this.state.hasRun&&this.state.options.skipFirstRun||this.state.isStopped)},this.doJob=function(e){if(e)try{this.state.cb(this)}catch(e){this.state.errors.push(e)}},this.afterJobRun=function(){this.state.hasRun=!0,this.state.handle=Dt(this.run,this.state.duration)},this.run=K.compose(K.bind(this.afterJobRun,this),K.bind(this.doJob,this),K.bind(this.shouldJobRun,this))}Lv.prototype.start=function(e){this.state.isStopped&&(this.state.isStopped=!1,this.state.options.skipFirstRun=e,this.run())},Lv.prototype.stop=function(){clearTimeout(this.state.handle),this.state.isStopped=!0,this.state.hasRun=!1};var Fv=p.urlFor;function Pv(e,t,n){var i={search:["AllowOnlyKeys","ExcludeKeys","AddTo","Replace","Clear"],hash:["Replace","Clear"],pathname:["Replace"],hostname:["Replace"],href:["Replace","ForceSecure"],protocol:["ForceSecure"]};if(K.isObject(e)&&(t=e.action,n=e.data,e=e.attr),!i[e])throw Error("Invalid URL attribute type: "+e);if(!K.contains(i[e],t))throw Error("Invalid transform ("+t+") for attribute ("+e+")");this.attr=e,this.action=t,this.data=n}function Gv(e){return e instanceof Si||e instanceof HTMLAnchorElement}Pv.prototype.applyToURL=function(e){return({AllowOnlyKeys:function(e,t,n){return K.isFunction(n)&&(n=n(e[t],e)),new Si(fr(t=e.href,null,n,!1))},ExcludeKeys:function(e,t,n){return K.isFunction(n)&&(n=n(e[t],e)),new Si(fr(t=e.href,null,n,!0))},AddTo:function(e,t,n){return K.isFunction(n)&&(n=n(e[t],e)),new Si(Fv(t=e.href,n))},Clear:function(e,t){return e[t]="",e},Replace:function(e,t,n){return K.isFunction(n)&&(n=n(e[t],e)),"href"===t?new Si(n):(e[t]=n,e)},ForceSecure:function(e,t){return"protocol"===t?e.protocol="https":e.href=e.href.replace(/^(.*:\/\/\/)/,"https://"),e}})[this.action](e,this.attr,this.data)},Pv.prototype.toString=function(){return this.attr+" - "+this.action+" - "+JSON.stringify(this.data)},Pv.fromJSON=function(e){return e instanceof Pv?e:new Pv(e.attr,e.action,e.data)};var Dv=function(){var e=function(e,t,n,i){return[new Pv("pathname","Replace",function(r){return r=(r=(r=r.replace(t,e)).replace(n,e)).replace(i,"")}),new Pv("href","ForceSecure")]},t=function(){var t=Xi();return a([].concat(f.isElectron()?e(f.electronAppName(),f.electronResourcesPath(),f.electronUserDirectory(),f.electronUserHomeDirectory()):[]),t)},n={transforms:[],internalTransforms:[],electronTransforms:[],currentSrcFn:t},i=new Lv(500,function(e){!xm()||Xs(document)||Ks()}),r=function(e){if("string"==typeof e)return new Si(e);if(Gv(e))return e;throw Error("Invalid type from custom URL source. Must be either an URL or a String of a valid url.")},o=function(e){return e||window.location},a=function(e,t){return K.reduce(e,function(e,t){return t.applyToURL(e)},t)},s=function(e){try{var t=function(e){return n=e},n=K.reduce([e.currentSrcFn,r,t,K.partial(a,e.transforms),r,t,K.partial(a,e.internalTransforms),r],function(e,t){return t(e)},null)}catch(e){X.critical(e),n=o(n)}return n};return{state:n,actions:{init:function(e,t){e.commit("clearTransforms"),e.commit("clearInternalTransforms"),e.commit("changeUrlSource"),t.transforms&&e.dispatch("addTransforms",t.transforms),t.setUrl&&e.commit("changeUrlSource",t.setUrl)},addTransforms:function(e,t){K.each(t,function(t){e.commit("addTransform",Pv.fromJSON(t))})},addInternalTransforms:function(e,t){K.each(t,function(t){e.commit("addInternalTransform",Pv.fromJSON(t))})},removeInternalTransforms:function(e,t){K.each(t,function(t){e.commit("removeInternalTransform",Pv.fromJSON(t))})},startPolling:function(e){i.start()},stopPolling:function(e){e.state.currentSrcFn===t&&i.stop()}},mutations:{addTransform:function(e,t){e.transforms.push(t)},addInternalTransform:function(e,t){e.internalTransforms.push(t)},removeInternalTransform:function(e,t){0<=(t=K.indexOf(e.internalTransforms,t))&&e.internalTransforms.splice(t,1)},clearTransforms:function(e){e.transforms=[]},clearInternalTransforms:function(e){e.internalTransforms=[]},changeUrlSource:function(e,n){if(n){if("string"==typeof n)var r=new Si(n),r=K.partial(K.identity,r);else if(Gv(n))r=K.partial(K.identity,n);else{if("function"!=typeof n)throw Error("URL Source must be either a Function that returns a URL or String that is a valid URL. Or, it may be a static URL or String.");r=n}e.currentSrcFn=r,i.start(!xm())}else e.currentSrcFn=t,i.stop()}},getters:{url:s,href:function(e){return s(e).href}}}}();function Bv(e){var t;if("function"==typeof Bv[e])return t=K.toArray(arguments).slice(1),Bv[e].apply(Bv,t)}K.extend(Bv,{getHref:function(){return q.getters["location/href"]()},clearTransforms:function(){q.commit("location/clearTransforms"),Ks()},addTransforms:function(e){q.dispatch("location/addTransforms",e),Ks()},setUrl:function(e){q.commit("location/changeUrlSource",e)},useBrowserUrl:function(){q.commit("location/changeUrlSource"),Ks()}});var Wv=1e4;function Uv(){return m.get("guideSeenTimeoutLength")||Wv}var $v=function(){var e=[];return{name:"StepTimeoutMonitor",initialize:function(){this._beforeGuideShow=K.bind($v.beforeGuideShow,$v),this._stop=K.bind($v.stop,$v),y.beforeGuideShow.on(this._beforeGuideShow),y.guideSeen.on(this._stop),y.guideNotSeen.on(this._stop)},teardown:function(){$v.stop(),y.beforeGuideShow.off(this._beforeGuideShow),y.guideSeen.off(this._stop),y.guideNotSeen.off(this._stop)},beforeGuideShow:function(e){var t=e.data[0],e=e.data[1],n=t.guide;m.get("enableGuideTimeout")&&(e=-1<K.indexOf(["dom","launcher","badge","api"],e),"active"===t.seenState||t.hasBeenControlled()||t.isTimedOut()||(n=n&&n.steps)&&(0!==K.indexOf(n,t)||e)&&$v.start(t))},start:function(t){var n,i,r=e[0];r&&r===t.id||(r&&r!==t.id&&(r=e[1],K.isFunction(r))&&r(),t.shouldStartTimer()&&(n=Uv(),i=Dt(r=K.partial(function(e,t){var i,r,o=T(t);o&&(i=o.findStepById(e))&&!o.isShown()&&(r=i.canShowOnPage(Vf())?bf(i)?"other":"element":"page",Ff(t,e,Q(),r,o.language,n),X.info("Guide "+t+" timed out showing Step "+e),i.timeout()),$v.stop()},t.id,t.guide.id),n),e=[t.id,r,i]))},stop:function(){var t=e[2];t&&clearTimeout(t),e=[]},getGuideSeenTimeoutLength:Uv}}();function jv(){console.warn("This functionality is not supported by your subscription.")}function n(e){return $r?e:jv}function zv(e){e.getVersion=ut,e.isReady=xm,e.pageLoad=Ks,e.getVisitorId=li,e.getAccountId=fi,e.clearSession=bi,e.VERSION=at,e.LOADER=dt,e.flushNow=n(function(e){return La(!0,e)}),e.teardown=wi(Wm),e.initGuides=n($g),e.loadGuides=n(yg),e.findGuideByName=n(iu),e.hideGuides=n(Jh),e.onGuideDismissed=n(uf),e.goToStep=pf,e.onGuideAdvanced=n(hf),e.onGuidePrevious=n(ff),e.onGuideSnoozed=cf,e.startGuides=n(kl),e.stopGuides=n(Ol),e.defaultCssUrl=n(Bh()),e.getActiveGuides=A,e.getActiveGuide=dm,e.guideSeenTimeoutLength=$v.getGuideSeenTimeoutLength(),e.guidesPayload=tg,e.areGuidesDisabled=n(jg),e.setGuidesDisabled=n(Zg),e.buildNodeFromJSON=x.buildNodeFromJSON,e.flexElement=n(x.flexElement),e.GuideFactory=n(Nu),e.dom=ee,e.getText=Hm,e.attachEvent=n(I),e.detactEvent=n(w),e.frames={setFrameVisibility:Au},e.log=pv,e.enableLogging=av,e.disableLogging=sv,e.setActiveContexts=Iv,e.showLogHistory=vv,e.getLoggedContexts=yv,e.isDebuggingEnabled=K.noop,e.enableDebugging=K.noop,e.disableDebugging=K.noop,e.addDebuggingFunctions=K.noop,e.stopSendingEvents=n(Ra.lock),e.startSendingEvents=n(Ra.unlock),e.isSendingEvents=n(Qr),e.fromByteArray=u.uint8ToBase64,e.events=n(Tu),e.track=n(Tv),e.validateInstall=_v,e.validateNativeMethods=Ev,e.validateBuiltInGlobals=xv,e.validateUrl=Rv,e.validateEnvironment=Nv,e.doesExist=S,e.generate_unique_id=Yn,e.TEMP_PREFIX=$n,e.SIZE_UNIQUE_ID=jn,e.defaultLauncher=K.noop,e.toggleLauncher=K.noop,e.showLauncher=K.noop,e.hideLauncher=K.noop,e.removeLauncher=K.noop,e.identify=el,e.get_visitor_id=li,e.set_visitor_id=function(e){el(e)},e.get_account_id=fi,e.set_account_id=function(e){el(Q(),e)},e.getSerializedMetadata=ol,e.compress=Ct,e.squeezeAndCompress=Ct,e.randomElement=kt,e.randomString=Ot,e.toUTF8Array=mt,e.getNumberFromText=Ut,e._addCredits=n(gf),e.getCurrentUrl=Vf,e.getNormalizedUrl=Vf,e.testUrlForStep=n(Hf),e.showGuideByName=n(Kf),e.showGuideById=n(Xf),e.designerv2=nh,e.P2AutoLaunch=n(ih),e.BuildingBlocks=n(Mv),e.onConnectMessage=K.noop,e.buffers=Ra,e.guideDev=n(Zm),e.badgesShown=n(Kd),e.get_pendo_cookie=Tn,e.DEFAULT_EXPIRE_LEN=En,e.set_pendo_cookie=Rn,e.loadResource=Vo,e.loadWatcher=Yo,e.messageLogger=Ho,e.messageReceiver=Ko,e.messageValidator=Xo,e.MESSAGE_TYPES=na,e.messageDispatcher=oa,e.moduleRegistry=aa,e.addModule=sa,e.hasModule=n(da),e.findModuleByName=n(ua),e.modulesWaiting=ca,e.loadModules=la,e.moduleLoader=fa,e.TOOLTIP_DEFAULT_WIDTH=430,e.TOOLTIP_DEFAULT_HEIGHT=200,e.TOOLTIP_ARROW_SIZE=15,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e.sniffer=l,e.url=f,e.location=Bv,e.Sizzle=s,e._=K,e.ajax=p,e.Zlib=_t,e.guideContent=n(Bu.guideContent),e.receiveDomStructureJson=n(Bu.receiveDomStructureJson),e.addExtension=cl}var Zv="is going away",Vv="is gone",Yv=K.memoize(function(e,t){return e=(e=e||"Function")+" deprecated"+(t=t?" and "+t:""),X.info(e),e});function Hv(e,t,n){return function(){return Yv("pendo."+t,n),(e||K.noop).apply(null,arguments)}}function Kv(e){e.SHADOW_STYLE="",K.extend(e,{_showElementGuide:K.noop,flushEventCache:Hv(null,"flushEventCache",Vv),HOST:br,MAX_LENGTH:Ta,MAX_NUM_EVENTS:Aa,_createToolTip:K.noop,_get_tooltip_dimensions:K.noop,_isOldIE:n(Hv(ke,"_isOldIE",Zv)),_logMessage:Hv(Zr,"_logMessage",Zv),_sendEvent:Hv(null,"_sendEvent",Vv),_sendGuideEvent:Hv(null,"_sendGuideEvent",Vv),_stopEvents:!1,_storeInCache:Hv(null,"_storeInCache",Vv),_writeEventImgTag:Hv(null,"_writeEventImgTag",Vv),_writeImgTag:n(Hv(Yr,"_writeImgTag",Zv)),getUA:Hv(Fe,"getUA",Zv),ifDebugThen:Hv(null,"ifDebugThen",Vv),send_event:n(Hv(qa,"send_event","has changed to pendo.cache.createEvent")),wire_page:Hv(Bd,"wire_page",Zv),messageOriginTester:Hv(null,"messageOriginTester",Vv),findGuideBy:n(nu),findGuideById:n(T),findStepInGuide:n(ru),_updateGuideStepStatus:n(Kh),_addCloseButton:n(Yh),initialize:Mm,getEventCache:n(Ng),processEventCache:n(Og),isGuideShown:n(Vh),_getNextStepInMultistep:n(Zf),attachEvent:I,detachEvent:w,updateOptions:Qc,createLauncher:K.constant({}),initLauncher:K.noop,_addGuideToLauncher:K.noop,launcherToolTipDiv:null,isAnonymousVisitor:function(t){return void 0===t&&(t=e.get_visitor_id()),Xn(t)},DEFAULT_VISITOR_ID:Qn,shouldIdentityChange:K.constant(!1),read:h.read,write:h.write,_delete_cookie:h.clear,_set_cookie:In,_get_cookie:bn,get_cookie_key:An,ENV:tt,eventCache:n(wa),_getOpacityStyles:Hv(null,"_getOpacityStyles",Zv),setStyle:so,_createGuideEvent:n(Uf),seenGuide:n(Of),dismissedGuide:n(Nf),advancedGuide:n(Lf),seenTime:0,placeBadge:n(up),isBadge:n(lu),showPreview:n(Hv(Tf,"showPreview",Zv)),removeAllBadges:n(cp),tellMaster:ga,DEFAULT_TIMER_LENGTH:Al,registerMessageHandler:ia,_get_offset:n(ie),_shouldAutoDisplayGuide:K.constant(!1),removeBadge:lp,_showLightboxGuide:K.noop,_showGuide:n(xf),getElementForGuideStep:n(mu),isElementVisible:b,getTooltipDivId:n(Sf),setupWatchOnTooltip:n(Af),letters:"",charset:"",detectMaster:ma,listenToMaster:Hv(null,"listenToMaster",Vv),start:Vd,SEND_INTERVAL:Sa,stageGuideEvent:n(zf),startStagedTimer:jf,isURLValid:Ea,getURL:xa,_get_screen_dim:n(lo),_isInViewport:n(po),_getCss3Prop:oo,waitThenStartGuides:n(Tl),guidesProcessingThreadHandle:Sl,getMode:K.constant("default")})}function Xv(e){return e&&1===e.length?e[0]:K.any(e,$t)?J.all(e).then(function(e){return K.any(e)}):void 0}function Jv(){var e,t=this,n=(this.elements=[],this.attributes=this.attributes||{},this.attributes.device&&this.attributes.device.type?"all"==this.attributes.device.type?this.attributes.device={desktop:!0,mobile:!0}:(e=this.attributes.device.type,this.attributes.device={mobile:!1,desktop:!1},this.attributes.device[e]=!0):this.attributes.device=this.attributes.device||{},K.each(this.steps,function(e){"mobile-lightbox"===e.type&&(this.attributes.device.desktop=!1,this.attributes.device.mobile=!0),Mu(e,this)},this),this.isActivatedByEvent=function(e){return!!(this.hasLaunchMethod("dom")&&this.attributes&&this.attributes.activation&&K.contains(this.attributes.activation.event,e)&&this.canEventActivatedGuideBeShown())},this.isContinuation=function(e){return!1},this.isGuideWidget=function(){return this.attributes&&"launcher"===this.attributes.type},this.isOnboarding=function(){return this.attributes&&!!this.attributes.isOnboarding},this.isWhatsNew=function(){var e=K.first(this.steps);return e&&"whatsnew"===e.type},this.isAnnouncement=function(){return K.get(this,"attributes.isAnnouncement")},this.isHelpGuide=function(){return!this.isOnboarding()&&!this.isWhatsNew()&&!this.isGuideWidget()},this.nextStep=function(e){return null},this.hasLaunchMethod=function(e){return this.launchMethod&&0<=this.launchMethod.indexOf(e)},this.shouldAutoDisplay=function(){return!this.outsideTimebox()&&this.hasLaunchMethod("auto")&&K.any(this.steps,function(e){return e.shouldAutoDisplay()})},this.autoDisplay=function(){if(this.shouldAutoDisplay())return Xv(K.map(this.steps,function(e){return e.autoDisplay()}))},this.isRendered=function(){return K.any(this.steps,function(e){return e.isRendered()})},this.isShown=function(){return K.any(this.steps,function(e){return e.isShown()})},this.canShowOnDevice=function(){if(!hu()){var e=fu(),t=this.attributes&&this.attributes.device||{};if(!e&&!1===t.desktop||e&&!0!==t.mobile)return!1}return!0},this.canShow=function(){return this.canShowOnDevice()&&K.any(this.steps,function(e){return e.canShow()})},this.launch=function(e){var t;return this.hasGuideBeenControlled()||(t=this.show(e)),this.isShown()?K.each(this.steps,function(e){e.seenState="active"}):!this.isShown()&&this.isControlGroup()&&K.each(this.steps,function(e){e.seenState="notSeen"}),t},this.show=function(e){return Xv(K.map(this.steps,function(t){return t.show(e)}))},this.checkForHiddenGroupSteps=function(){},this.hide=function(e){K.each(this.steps,function(t){t.hide(e)})},this.hasBeenSeen=function(){return K.all(this.steps,function(e){return e.hasBeenSeen()})},this.canBadgeBeShown=function(){var e=this.attributes.badge;return!(e&&e.isOnlyShowOnce&&this.steps[0].hasBeenSeen())},this.placeBadge=function(){var e;this.canShowOnDevice()&&this.hasLaunchMethod("badge")&&this.canBadgeBeShown()&&!this.outsideTimebox()?(e=K.get(this,"attributes.resourceCenter"),this.isControlGroup()&&!e?this.hasGuideBeenControlled()||this.steps[0].onControlGuide("control"):(e=K.first(this.steps))&&K.isFunction(e.canShowOnPage)&&e.canShowOnPage(Vf())&&up(this)):pp(this)},this.findStepById=function(e){return K.find(this.steps,function(t){return t.id===e})},this.isPoweredByEnabled=function(){return!!K.find(this.steps,function(e){return e.isPoweredByEnabled()})},this.searchFor=function(e){var t,n,i=null;return Nt(this.name,e,!0)?i="name":(n=[],t=!1,(t=0<(n=this.attributes&&this.attributes.launcher&&this.attributes.launcher.keywords?this.attributes.launcher.keywords:n).length?K.find(n,function(t){return Nt(t.text,e,!0)}):t)?i="tag":(n=K.map(this.steps,function(t){return t.searchFor(e)}),0<K.compact(n).length&&(i="content"))),!!i&&{guide:this,field:i}},this.shouldBeAddedToResourceCenter=function(){var e,t=this;return!(!t.steps||!t.steps.length||t.control||!t.eligibleInFrame&&(!t.steps[0].content&&!K.isFunction(t.steps[0].fetchContent)||(e=t.steps[0],!t.hasLaunchMethod("launcher")&&!t.isWhatsNew())||!e.canShowOnPage(Vf())||!t.canShowOnDevice()||!bf(e)||t.outsideTimebox()))},this.shouldBeAddedToLauncher=function(){var e;return!(!this.steps||!this.steps.length||(e=this.steps[0],!this.hasLaunchMethod("launcher")&&!this.isWhatsNew())||!e.canShowOnPage(Vf())||!this.canShowOnDevice()||!bf(e)||this.outsideTimebox())},"PENDO_HELPER_STEP");return this.getPositionOfStep=function(e){var t=K.reject(this.steps,function(e){return Nt(e.content,n)});return K.indexOf(t,e)+1},this.getTotalSteps=function(){return K.reject(this.steps,function(e){return Nt(e.content,n)}).length},this.getSeenSteps=function(){return K.size(K.filter(this.steps,function(e){return e.hasBeenSeen()}))},this.isComplete=function(){var e=["advanced","dismissed"];return K.all(this.steps,function(t){return K.contains(e,t.seenState)})},this.isInProgress=function(){var e=["active","advanced","dismissed"];return!this.isComplete()&&K.any(this.steps,function(t){return K.contains(e,t.seenState)})},this.isNotStarted=function(){return!this.isInProgress()&&!this.isComplete()},this.fetchContent=function(){return J.all(K.map(this.steps,function(e){if(K.isFunction(e.fetchContent))return e.fetchContent()}))},this.canEventActivatedGuideBeShown=function(){return!(this.attributes.dom&&this.attributes.dom.isOnlyShowOnce&&this.steps[0].hasBeenSeen())},this.isGuideSnoozed=function(){return K.any(this.steps,function(e){return e.isSnoozed()})},this.hasGuideBeenControlled=function(){return K.any(this.steps,function(e){return e.hasBeenControlled()})},this.isControlGroup=function(){return this.control},this.shouldShowSnoozedGuide=function(){var e=!1;return!this.outsideTimebox()&&K.any(this.steps,function(t){return!(e="dismissed"===t.seenState||e)&&"snoozed"===t.seenState&&t.snoozeEndTime&&(new Date).getTime()>t.snoozeEndTime})},this.shouldRepeatGuide=function(){var e;return!(!this.redisplay||this.outsideTimebox()||this.isGuideSnoozed()||this.hasReachedMaxDismissals()||(e=0,K.forEach(this.steps,function(t){e=Math.max(e,t.lastSeenAt||0)}),!e))&&v()-e>=this.redisplay.interval},this.isExpired=function(){return!!this.expiresAfter&&v()>this.expiresAfter},this.isBeforeStartTime=function(){return!!t.showsAfter&&v()<t.showsAfter},this.outsideTimebox=function(){return t.isExpired()||t.isBeforeStartTime()},this.calculateDismissCountFromSteps=function(){var e=0;return K.forEach(this.steps,function(t){t.dismissCount&&(e+=t.dismissCount)}),e},this.hasReachedMaxDismissals=function(){return this.redisplay&&0!==this.redisplay.maxDismissals&&this.calculateDismissCountFromSteps()>=this.redisplay.maxDismissals},this}function qv(){var e=this;return e.attributes&&"group"==e.attributes.type&&(e.checkForHiddenGroupSteps=function(){K.each(e.steps,function(e){e.isShown()||e.autoDisplay()})}),e}var Qv=function(e){return e&&e.attributes&&!!e.attributes.isOnboarding};function ey(){var e,t=!1;return(this.isMultiStep||this.isModule||this.isTopLevel)&&(K.each(this.steps,function(e){e.after("render",function(){K.each(e.elements,function(e){ee(e).addClass("_pendo-guide-walkthrough_")})})}),e=null,this.sections=K.reduce(this.steps,function(t,n){var i,r;return r=n,(i=e)&&((i=K.last(i)).attributes.isRequired==r.attributes.isRequired||!i.attributes.isRequired)?e.push(n):(t.push(e),e=[n]),t},[]),this.sections=K.compact(this.sections.concat([e])),this.findSectionForStep=function(e){return K.find(this.sections,function(t){return K.contains(t,e)})},this.getSubSection=function(e,t){return t=K.indexOf(e,t),e.slice(t+1)},this.isContinuation=function(e){var t=this.isTopLevel||this.isModule,n=this.hasResourceCenterContent;return(!t||n)&&!!this.nextStep(e)},this.nextStep=function(e){var n=null;if(this.isGuideSnoozed())return null;e=e||{};for(var i,r,o=0;o<this.steps.length;o++)if(this.steps[o].id===e.guideStepId){if("dismissed"===e.state)break;if("active"===e.state||"snoozed"===e.state){n=this.steps[o];break}if("advanced"===e.state&&e.destinationStepId){n=K.find(this.steps,function(t){return t.id===e.destinationStepId});break}if(o+1<this.steps.length){n=this.steps[o+1];break}}return n?(i=(new Date).getTime(),(r=e.time)&&432e5<i-r&&!Qv(this)?(t||(X.info("Multi-step continuation has expired",{contexts:["guides","info"]}),t=!0),null):n):null},this.shouldAutoDisplay=function(){return this.hasLaunchMethod("auto")&&(this.shouldShowSnoozedGuide()||this.shouldRepeatGuide()||K.all(this.steps,function(e){return e.shouldAutoDisplay()}))},this.autoDisplay=function(){var e,t,n;if(this.shouldAutoDisplay())return e=this.shouldRepeatGuide(),t=K.first(this.steps),n=this.nextStep(ml())||t,this.shouldShowSnoozedGuide()||e?n.show(e?"repeatGuide":"auto"):t.autoDisplay()},this.launch=function(e){return K.first(this.steps).show(e)},this.show=function(e){var t=ml(),n=K.first(this.steps),t=this.nextStep(t)||n;return t.show("continue"===e&&t===n&&"auto"===n.seenReason?"auto":e)},this.isComplete=function(){var e=K.last(this.steps);return!!e&&K.contains(["advanced","dismissed"],e.seenState)},this.activeStep=function(){var e=[].concat(this.steps).reverse();return K.findWhere(e,{seenState:"active"})}),this}function ty(){var e=this;function t(t){var n=[];return function(i){try{return i.apply(e,K.toArray(arguments).slice(1))}catch(i){var r,o="ERROR in guide "+t+' (ID="'+e.id+'")';throw n.push(v()),5<=n.length&&((0<(r=K.last(n)-K.first(n))?(n.length-1)/(r/6e4):1/0)>=ty.MAX_ERRORS_PER_MINUTE&&(o="Exceeded error rate limit, dropping guide.\n"+o,tu.addGuide(e),y.trigger("renderFail",e)),n.shift()),X.critical(o,{error:i}),i}}}return K.each(["canShow","placeBadge","show"],function(n){e[n]=K.wrap(e[n],t(n))}),e}function ny(){return K.isFunction(this.isAnnouncement)&&this.isAnnouncement()||(this.shouldBeAddedToLauncher=K.wrap(this.shouldBeAddedToLauncher,function(e){return q.getters["frames/hasFrames"]()?!(!q.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!q.getters["frames/isGuideInDifferentFrame"]()(this)&&q.getters["frames/shouldBeAddedToLauncher"]()(this):e.apply(this,arguments)}),this.shouldBeAddedToResourceCenter=K.wrap(this.shouldBeAddedToResourceCenter,function(e){return q.getters["frames/hasFrames"]()?!(!q.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!q.getters["frames/isGuideInDifferentFrame"]()(this)&&q.getters["frames/shouldBeAddedToResourceCenter"]()(this):e.apply(this,arguments)})),this}function iy(e){var t=this;return"whatsnew"===t.type||K.isFunction(e.isAnnouncement)&&e.isAnnouncement()||(t.isShown=K.wrap(t.isShown,function(e){return e.apply(this,arguments)||q.getters["frames/isShownInAnotherFrame"]()(t)})),t}function ry(e){var t,n,i,r,o,a,s,d=this;return d.pollIds&&d.pollIds.length&&(t="_pendo-poll-selected_",n=K.indexBy(e.polls,"id"),i=K.map(d.pollIds,function(e){return n[e]}),o=function(e,t){if(e&&void 0!==t)return e.numericResponses?parseInt(t,10):t},a=function(){var t=e.id,n=d.id,i=v();Lf(t,n,Q(),d.seenReason,e.language),Kh(t,n,"advanced",i),hl({guideId:t,guideStepId:n,time:i,state:"advanced"})},s=function(){var e=ee("._pendo-poll_"),t=ee("._pendo-poll-message_");t.length?(e.addClass("_pendo-poll-submitted_"),t.css("margin-top:-"+t.height()/2+"px"),a()):d.advance()},d.after("render",function(){var e=ee("._pendo-poll_")[0],t=ee("._pendo-poll-submit_",e)[0];t?d.attachEvent(t,"click",function(t){var n=ee("._pendo-poll-question_",e),n=K.map(n,function(e,t){if((e=ee("textarea,input:text,select,input:radio:checked",e))&&e.length&&e[0].value)return{pollId:(t=i[t]).id,value:o(t,e[0].value)}});d.response(K.compact(n)),s()}):d.attachEvent(e,"click",function(e){var t,e=ee(Ui(e)).closest("._pendo-poll-question_ :button,._pendo-poll-question_ :radio");e.length&&(e=o(t=i[0],e.attr("data-pendo-poll-value")||e.attr("value")),d.response([{pollId:t.id,value:e}]),s())})}),d.after("render",function(){var e=ee("._pendo-poll_ ._pendo-poll-npsrating_")[0],n=ee("._pendo-poll_ ._pendo-poll-submit_"),i="_pendo-poll-npsrating-selected_";e&&(n.css({display:"none"}),d.attachEvent(e,"click",function(r){var o=ee(":radio:checked",e)[0],a=ee("._pendo-poll_");ee("label",e).removeClass(t),a.removeClass(i),o&&(ee('label[for="'+o.id+'"]').addClass(t),a.addClass(i),n.css({display:""})),K.isFunction(d.resize)&&d.resize()}))}),d.after("show",function(){r=(new Date).getTime()}),d.response=function(t,n){t&&t.length&&(Wg(),K.each(t,function(t,i){var o=function(e,t){if(t&&t.polls&&t.polls.length)return K.find(t.polls,function(t){return t.id===e})}(t.pollId,e),a=Uf("pollResponse",d.guideId,d.id,Q(),void 0,e.language);K.extend(a.props,{poll_id:t.pollId,poll_response:t.value,duration:(new Date).getTime()-r},n),o&&o.attributes&&o.attributes.type&&K.extend(a.props,{poll_type:o.attributes.type}),Lg.push(a)}),Lg.flush())}),d}ty.MAX_ERRORS_PER_MINUTE=30;var oy=function(){return{show:function(n,i){if(hu()&&K.isFunction(n._show))return n._show(i),n.isShown();var r=n.getGuide();if("whatsnew"===n.type)return e(n,i);if(!q.getters["frames/hasFrames"]()||q.getters["frames/isGuideInThisFrame"]()(r)){if($t(r=function(t,n){if(t.getGuide().isModule&&(t=se.getResourceCenter()))return e(t.steps[0],n)}(n,i)))return r.then(function(){return e(n,i)}).then(function(e){return!!e||t(n,i)});if($t(r=e(n,i)))return r.then(function(e){return!!e||t(n,i)});if(r)return!0}return t(n,i)},showLocal:e};function e(e,t){return Wu.hasContent(e)&&ku.valid(e)?(e._show(t),e.isShown()):!(Wu.hasContent(e)&&ku.invalid(e)||!e.getGuide().canShowOnDevice()||!e.canShowOnPage(Vf()))&&(e.lock(),Wu.fetchContent(e).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&ku.validate(e.getGuide())}).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&(e.unlock(),e._show(t),e.isShown())}))}function t(e,t){var n=e.getGuide();return!(!q.getters["frames/hasFrames"]()||!q.getters["frames/isGuideInDifferentFrame"]()(n))&&(e.lock(),q.dispatch("frames/showGuideStep",{guideId:e.guideId,stepId:e.id,reason:t}).then(function(t){return e.unlock(),t.isShown},function(){return e.unlock(),!1}).then(function(t){return t&&(clearInterval(e.timeoutTimer),delete e.timeoutTimer),t}))}}();function ay(e){var t=!1,n=!1;return this.guide=e,this.elements=[],this.handlers=[],this.attributes=this.attributes||{},(this.domUrl||this.domJson)&&(this.eventRouter=new pm),this.getGuide=function(){return this.guide},this.getContent=function(){var e=this.getGuide(),t=e&&e.steps||[],n=K.indexOf(t,this),i=rl();try{var r=this.attributes.variables||{},o={step:{id:this.id,isFirst:0===n,isLast:n===t.length-1,index:n,number:n+1},guide:{id:e.id,name:e.name,publishedAt:e.publishedAt,showsAfter:e.showsAfter,percentComplete:t.length?Math.round((n+1)/t.length*100):0,stepCount:t.length},metadata:Et(i),template:r};return this.template||(this.template=K.template(this.content||"")),Fu(this.template(o).replace(/#_pendo_g_undefined/g,"#_pendo_g_"+this.id).replace(/pendo-src="([^"]+)"/g,function(e,t){return/<%=[^>]+>/.test(t)?e:'src="'+t+'"'}))}catch(e){return this.content}},this.isLocked=function(){return t},this.lock=function(){t=!0},this.unlock=function(){t=!1},this.isTimedOut=function(){return n},this.timeout=function(){n=!0},this.isRendered=function(){return this.elements&&0<this.elements.length},this.isShown=function(){return this.isRendered()||this.isLocked()},this.canShow=function(){return!K.get(this,"guide.attributes.isAnnouncement")&&!!e.canShowOnDevice()&&!this.isShown()&&!K.get(this,"stepIneligibleForApp")&&this.canShowOnPage(Vf())&&bf(this)},this.canShowOnPage=function(e){return e=Hf(this.regexUrlRule,e),Hl()&&y.stepEligibility.trigger({stepId:this.id,guideId:this.guideId,eligible:e,reason:"page_match"}),e},this.shouldAutoDisplay=function(){return this.shouldRepeat()||!this.hasBeenControlled()&&!this.isSnoozed()&&!K.contains(["dismissed","advanced"],this.seenState)},this.autoDisplay=function(){var e;if(this.shouldAutoDisplay())return e=this.shouldRepeat()?"repeatGuide":"auto",this.show(e)},this._preRenderHealthCheck=function(){var t,n;return!(!(C.designer||hu()||_p())&&(t=Vf(),n={guideId:this.guideId,stepId:this.id},this.regexUrlRule&&!Hf(this.regexUrlRule,t)?(tu.addGuide(e),n.error=Error('attempted display on page "'+t+'"'),X.critical("pendo.io page rule exception",n),1):q.getters["healthCheck/isMissingPageRule"]()(this)?(tu.addGuide(e),n.error=Error('missing regexUrlRule"'),X.critical("pendo.io page rule exception",n),1):this.pageId&&!this.regexUrlRule&&(tu.addGuide(e),n.error=Error("missing regexUrlRule for page "+this.pageId+'"'),X.critical("pendo.io page rule exception",n),1)))},this.render=function(){var t=this;if(this._preRenderHealthCheck()){if(t.domJson)return e.skipResourceCenterHomeView&&e.moduleIdToReplaceHomeViewWith&&e.hasEligibleNativeIntegrationModule?(n=K.find(qd(),function(t){return t.id===e.moduleIdToReplaceHomeViewWith}),i=K.get(n,"attributes.resourceCenter.integrationProvider"),se.renderNativeIntegration(i,n)):e.continueToNativeModule?se.handleNativeIntegrationContinuation(e):(K.get(e,"attributes.resourceCenter")&&Pl(se.getResourceCenter(),Dl),e.isModule?x.renderResourceCenterModule(e,!1):(i=x.renderGuideFromJSON(t.domJson,t),K.get(e,"attributes.resourceCenter")&&(n=e.activeModule?e.activeModule.activeStep().domJson.props.id:t.containerId,n=t.guideElement.find("#"+n),se.adjustResourceCenterWidth(n)),i));var n=t.attributes.width,i=t.attributes.height,r=C.TOOLTIP_ARROW_SIZE,o="_pendo-group-id-"+e.id+"_",o=ee(document.createElement("div")).attr("id",Sf(t)).addClass(Uh+" "+o),a=ee(document.createElement("div")).addClass("_pendo-guide-content_").html(t.getContent()),s=ee(document.createElement("div")).addClass("_pendo-guide-container_"),d=ee(document.createElement("div")).addClass("_pendo-backdrop_");o.width(n),o.height(i),s.css({left:r,top:r}),t.isEditable&&a.attr("contenteditable","true"),a.appendTo(s),s.appendTo(o),e&&K.isFunction(e.isOnboarding)&&e.isOnboarding()&&o.addClass("_pendo-onboarding_"),t.overlayDiv=d,t.guideElement=o}},this.teardown=function(){X.info("guide step teardown",{contexts:["guide","render"]}),K.each(this.handlers,function(e){w(e.element,e.type,e.fn,!0)}),this.hasBeenScrolledTo=!1,this.handlers.length=0,K.has(this.attributes,"imgCount")&&(this.attributes.imgCount=0),this.hiddenElements&&(K.each(this.hiddenElements,function(e){try{e&&"function"==typeof e.removeAttribute&&e.removeAttribute("aria-hidden")}catch(e){X.error("unable to remove aria-hidden from element",{error:e})}}),this.hiddenElements.length=0,this.hiddenElements=null),Zc(this.id)},this.show=function(e){var t;if(!K.contains(["auto","continue"],e)||!q.getters["healthCheck/isRedisplay"]()(this))return(t=oy.show(this,e))&&t.catch&&t.catch(K.noop),t;q.dispatch("healthCheck/fixSeenStateAndLogError",{step:this,reason:e})},this.redraw=function(){var t,n,i,r,o,a=this;a.guideElement&&!C.designer&&(n=(t=K.get(e,"attributes.resourceCenter"))&&se.isFullyCustom(e),i=e.activeModule?e.activeModule.activeStep().domJson.props.id:a.containerId,r=a.guideElement.find("#"+i),o=e.activeModule&&"AnnouncementsModule"===K.get(e.activeModule,"attributes.resourceCenter.moduleId"),y.beforeUpdate.trigger(a),n||o||(x.recalculateGuideWidth(i,a.guideElement),x.adjustGuideContentWidth(i,a.guideElement)),t?(se.adjustResourceCenterWidth(r),o&&e.activeModule.guidesInModule?K.forEach(e.activeModule.guidesInModule,function(e){var t;(K.isUndefined(e.steps[0].attributes.imgCount)||0===K.get(e.steps[0],"attributes.imgCount"))&&(t=e.steps[0].id,t=ee(r).find("#pendo-g-"+t)[0]?t:e.id,x.adjustGuideContentWidth("pendo-g-"+t,a.guideElement),x.flexAllThings("pendo-g-"+t,a.guideElement))}):x.flexAllThings("pendo-resource-center-container")):x.flexAllThings(i,a.guideElement),n||x.recalculateGuideHeight(i,a.guideElement),y.updated.trigger(a))},this._show=function(t){y.beforeGuideShow.trigger(this,t),this.canShow()&&(!hu()&&e.control?this.hasBeenControlled()||this.onControlGuide("control"):y.beforeMount.trigger(this).cancel||(this.render(),this.isShown()&&this.onShown(t)))},this.shouldStartTimer=function(){return e.canShowOnDevice()&&!e.attributes.isAnnouncement&&!mf(this)},this.getStepPollTypes=function(e,t){var n;if(t.pollIds&&t.pollIds.length)return n=[],K.forEach(t.pollIds,function(t){var i=K.find(e.polls,function(e){return e.id===t});i&&i.attributes&&i.attributes.type&&n.push(i.attributes.type)}),n},this.onControlGuide=function(t){var n;hu()||(this.seenReason=t,zh(v()),n=this.getStepPollTypes(e,this),this.hasBeenControlled())||(Rf(this.guideId,this.id,Q(),t,e.language,n),K.each(e.steps,function(e){e.seenState="notSeen"}))},this.onShown=function(t,n){void 0===n&&(n=!0);var i,r,o=this;o.overrideElement&&(ee.addClass(o.overrideElement,"triggered"),o.overrideElement.checkAriaExpanded)&&o.overrideElement.checkAriaExpanded(),hu()||(o.seenReason=t,o.seenState="active",zh(v()),i={last_updated_at:o.lastUpdatedAt},(r=this.getStepPollTypes(e,o))&&(i.step_poll_types=r),n&&Of(o.guideId,o.id,Q(),t,e.language,i),q.dispatch("guideState/updateLastGuideStepSeen",{guideId:e.id,guideStepId:o.id,time:Zh(),state:o.seenState,seenReason:t,visitorId:Q()}),K.each(e.steps,function(n){"snoozed"===n.seenState&&(n.snoozeEndTime=0,Pf(e.id,n.id,Q(),t,e.language))}),Uu.runCustomScripts(o,e)),q.dispatch("frames/guideStepShownInFrame",{guideId:e.id,stepId:o.id,isShown:o.isShown()}),o.guideElement&&o.guideElement[0]&&o.attachEvent(o.guideElement[0],"focusin",function(e){"TEXTAREA"!==e.target.tagName&&"INPUT"!==e.target.tagName||(C.ignoreResize=!0,Dt(function(){C.ignoreResize=!1},1e3))})},this.hide=function(t){var n=this;n.unlock(),y.beforeUnmount.trigger(n),n.teardown(),K.each(n.elements,function(e){mo(e)}),y.unmounted.trigger(n),n.attributes&&t&&t.stayHidden&&(n.attributes.stayHidden=t.stayHidden),n.elements.length=0,n.element=null,n.guideElement=null,n.overrideElement&&(ee.removeClass(n.overrideElement,"triggered"),n.overrideElement.checkAriaExpanded)&&n.overrideElement.checkAriaExpanded(),q.dispatch("frames/guideStepHiddenInFrame",{guideId:e.id,stepId:n.id})},this.advance=function(){("advanced"!==this.seenState||this.isRendered())&&hf(this)},this.dismiss=function(){("dismissed"!==this.seenState||this.isRendered())&&uf(this)},this.isPoweredByEnabled=function(){return!0!==this.hideCredits},this.isSnoozed=function(){var e="snoozed"===this.seenState,t=!this.snoozeEndTime||(new Date).getTime()>this.snoozeEndTime;return e&&!t},this.shouldRepeat=function(){return!!this.lastSeenAt&&e.redisplay&&!e.outsideTimebox()&&!this.isSnoozed()&&v()-this.lastSeenAt>=e.redisplay.interval&&!e.hasReachedMaxDismissals()},this.hasBeenControlled=function(){return e.isControlGroup()&&"notSeen"===this.seenState},this.attachEvent=function(e,t,n){var i={element:e,type:t,fn:n};I(e,t,n,!0),this.handlers.push(i)},this.searchFor=function(e){return!(e.length<3)&&Nt(this.content,e,!0)},this.hasBeenSeen=function(){return"advanced"==this.seenState||"dismissed"==this.seenState},this.reposition=function(){},this.checkPlacement=function(){"tooltip"===this.getType()&&wc.placeBBTooltip(this),this.attributes.blockOutUI&&this.attributes.blockOutUI.enabled&&uc(this)},this.getType=function(){return this.domJson?K.get(this,"attributes.calculatedType"):this.type},this}function sy(){return this.after("render",function(){Wp()}),this}function dy(){Nu.behaviors=[Zl,Jv,ku.Guide,qv,ey,ty,ny],Mu.behaviors=[Zl,ay,iy,Wu,ku.Step,ry,sy]}ay.isGuideStep=function(e){return!!e&&K.isFunction(e.render)};var uy={state:{errorCount:0,errors:{}},actions:{write:function(e,t){var n=t.error;if(n&&!t.logged){var i=e.getters.hasLogged()(t);if(e.dispatch("update",t),!i){try{t.logged=!0}catch(e){}e="[".concat(t,"]"),t.level===tn.Critical?(i=window.pendo_options||{},fv(e),!1!==C.logStackTraces&&!1!==i.logStackTraces&&n.stack?Vr("".concat(e,"\n").concat(n.stack)):Zr(e)):t.level===tn.Error?fv(e):t.level===tn.Warn&&gv(e)}}},update:function(e,t){t&&(e.getters.hasLogged()(t)||e.commit("addError",t),e.commit("incrementError",t))}},mutations:{addError:function(e,t){var n=t.message,i=t.level,r=t.hashCode();e.errors[r]={count:0,stack:t.error.stack,message:n,level:i,hash:r}},incrementError:function(e,t){e.errors[t.hashCode()].count++,e.errorCount++}},getters:{hasLogged:function(e){return function(t){return!!e.errors[t.hashCode()]}}}},cy=h.getSession(),ly="pendo_cd",py=function(){function e(){this.name="CloneDetection"}return e.prototype.initialize=function(){var e=this;if(K.isFunction(window.BroadcastChannel))return h.registry.addSession(ly),this.tabId=Dn.getTabId(),this.id=Ot(16),this.channel=new BroadcastChannel("pendo-clone-detection-".concat(C.apiKey)),this.channel.onmessage=function(t){var n=K.get(t,"data.type"),i=K.get(t,"data.tabId"),r=K.get(t,"data.id");if(i===e.tabId)switch(n){case"pendo-clone-test":r!==e.id&&e.isClonedSession(r)&&e.sendMessage("pendo-change-tab-id",{tabId:i,id:r});break;case"pendo-change-tab-id":r===e.id&&e.clearClonedStorage()}},this.detectClonedSession(this.id),this.teardown},e.prototype.detectClonedSession=function(e){var t=cy.getItem(ly)||"";-1===t.indexOf(e)&&(t+="-"+e),cy.setItem(ly,t),this.sendMessage("pendo-clone-test",{tabId:this.tabId,id:this.id}),this.startCloneDetectionTimer()},e.prototype.isClonedSession=function(e){return this.startCloneDetectionTimer(),-1===(cy.getItem(ly)||"").indexOf(e)},e.prototype.clearCloneDetectionValue=function(){cy.removeItem(ly),this.cloneDetectionTimer=null},e.prototype.startCloneDetectionTimer=function(){this.stopCloneDetectionTimer(),this.cloneDetectionTimer=Dt(this.clearCloneDetectionValue.bind(this),1e4)},e.prototype.stopCloneDetectionTimer=function(){this.cloneDetectionTimer&&(clearTimeout(this.cloneDetectionTimer),this.cloneDetectionTimer=null)},e.prototype.clearClonedStorage=function(){cy.clearPendo(),Dn.setParentTabId(this.tabId),this.tabId=Dn.newTabId(),q.dispatch("frames/setTabId",this.tabId)},e.prototype.sendMessage=function(e,t){this.channel.postMessage(Kt({type:e},t))},e}(),hy=new py;function fy(e){q.dispatch("frames/setReady",{isReady:!0})}var gy=["unknown","hidden","visible"];function my(e){return"visible"===e.visibility||"unknown"===e.visibility}var vy=function(){var e={};return{actions:{init:function(e){var t,n,i=e.state;i.initialized||(h.registry.addSession(Fn),h.registry.addSession(Pn),t=Dn.addTracerIds({}),n=_e(),e.commit("setFrameId",t.frameId),e.commit("setTabId",t.tabId),e.commit("setAgentInstallType",n),e.commit("setLeadershipMode",n),y.ready.on(fy),y.guideSeen.on(function(e){(e=e.data[0])&&e.frameId===i.frameId&&E.postMessage({action:"frames/receiveGuideSeen",frameId:i.frameId,guideSeen:e})}),hy.initialize(),e.commit("setInitialized",!0))},changeGuideList:function(e,t){e=e.state,t=n(t),E.postMessage({action:"frames/receiveGuideList",frameId:e.frameId,guides:t,autoOrdering:C.autoOrdering||[]})},receiveGuideList:function(e,t){e.commit("setGuideList",t),t.frameId===e.state.frameId&&e.commit("setGuidesLoaded"),yy(e.state)},join:function(e){var t,i,r,o;e.state.disabled||(El(),t=e.state,i=window.top==window,r=t.frames[t.frameId],e.commit("removeFrame",t.frameId),e.commit("setGuideList",{frameId:t.frameId,guides:n(ou())}),(o=[].concat(m.get("leaderKey"))).length||t.agentInstallType!==Se||(o=[C.apiKey]),e.dispatch("receiveFrame",{frame:K.extend({agentInstallType:t.agentInstallType,id:t.frameId,joinedAt:v(),isTop:i,visibility:i?"visible":"unknown",apiKey:C.apiKey,leaderKey:o},r)}))},receiveFrame:function(e,t){var n,i=e.state;if(C.designerv2.launched&&(n=Object.assign({},nh.hostConfig,{selectionOnly:!0}),E.postMessage({action:"frames/addSelectionModeToFrames",options:n})),!i.frames[t.frame.id]||!i.frames[t.frame.id].id){if(e.commit("addFrame",t.frame),e.commit("setGuideList",{frameId:t.frame.id,guides:K.toArray(K.get(t,"frame.guides",[]))}),t.frame.isTop){for(var r=e.getters.leaderKeyPreference(),o=K.filter(i.frames,function(e){return e.isTop});r.length;){var a=r.shift(),d=K.filter(o,function(e){return e.apiKey===a});if(d.length){o=d;break}}e.commit("setTopId",o[0].id)}e.commit("setLeadershipMode",t.frame.agentInstallType),t[vp]&&e.dispatch("receiveStartPreview",t),E.postMessage({action:"frames/receiveFrame",frame:i.frames[i.frameId],"pendo-preview":e.rootState.preview.preview}),e.dispatch("waitThenElectLeader")}},leave:function(e){var t=e.state;E.postMessage({action:"frames/removeFrame",frameId:t.frameId}),K.each(t.frames,function(t){e.commit("removeFrame",t.id)}),E.close()},removeFrame:function(t,n){t.getters.hasFrame()(n.frameId)&&(t.commit("removeFrame",n.frameId),K.each(e,function(t,i){0===i.indexOf(n.frameId+"/")&&(t.reject(),delete e[i])}),t.dispatch("electLeader"))},waitThenElectLeader:K.debounce(function(e){e.dispatch("electLeader")},50),electLeader:function(e){var t=e.state,n=t.frames,i=e.getters.leaderKeyPreference();if(i.length)for(;i.length;){var r=i.shift(),o=K.filter(t.frames,function(e){return e.apiKey===r});if(o.length){n=o;break}}var a=K.find(n,function(e){return e.isTop});a||(a=K.min(n,"joinedAt")),e.dispatch("followLeader",{leaderId:a.id}),yy(e.state),e.getters.isLeader()&&y.childFrameJoined.trigger()},followLeader:function(e,t){var n=e.state,i=n.leaderId,r=t.leaderId;e.commit("setLeaderId",t.leaderId),i!==r&&y.leaderChanged.trigger({frameId:n.frameId,oldLeaderId:i,newLeaderId:r})},showGuideStep:function(e,t){var n=K.filter(e.state.frames,function(n){return n.id!==e.state.frameId&&"hidden"!==n.visibility&&n.guides&&n.guides[t.guideId]});return function i(){var r=n.shift();return r?e.dispatch("requestShowGuideStepInFrame",K.extend({frameId:r.id},t)).then(function(e){return e.error?J.reject(e.error):e.isShown?e:i()}):J.resolve({isShown:!1})}()},requestShowGuideStepInFrame:function(t,n){var i=n.frameId+"/"+Ot(32),r=J.defer();return e[i]=r,E.postMessage(K.extend({action:"frames/showGuideStepInFrame",requestId:i},n)),r.promise},showGuideStepInFrame:function(e,t){var n;function i(n){e.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:t.requestId,guideId:t.guideId,stepId:t.stepId,isShown:n})}e.state.frameId===t.frameId&&((n=(n=T(t.guideId))&&n.findStepById(t.stepId))?$t(n=oy.showLocal(n,t.reason))?n.then(i).catch(K.noop):i(n):e.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:t.requestId,guideId:t.guideId,stepId:t.stepId,isShown:!1}))},guideStepShownInFrame:function(e,t){e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:t.isShown}),E.postMessage(K.extend({action:"frames/receiveGuideStepShownInFrame",frameId:e.state.frameId},t))},receiveGuideStepShownInFrame:function(t,n){var i=e[n.requestId];i&&(i.resolve(n),delete e[n.requestId]),t.getters.isShownInFrame()(n.frameId,{id:n.stepId})!==n.isShown&&t.commit("setStepShown",{frameId:n.frameId,stepId:n.stepId,shown:n.isShown})},hideGuides:function(e,t){t=K.isArray(t)?t:[],E.postMessage({action:"frames/receiveHideGuides",frameId:e.state.frameId,guideIds:t}),e.commit("hideGuides")},receiveHideGuides:function(e,t){e.state.frameId!==t.frameId&&(t.guideIds.length?K.each(K.compact(K.map(t.guideIds,T)),function(e){e.hide()}):Jh(),e.commit("hideGuides"))},guideStepHiddenInFrame:function(e,t){var n=e.getters.isShownInFrame()(e.state.frameId,{id:t.stepId});e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:!1}),E.postMessage(K.extend({action:"frames/receiveGuideStepHiddenInFrame",frameId:e.state.frameId},t)),n&&e.dispatch("fixDoubleDisplay",t)},receiveGuideStepHiddenInFrame:function(e,t){e.state.frameId!==t.frameId&&e.getters.isShownInFrame()(t.frameId,{id:t.stepId})&&e.commit("setStepShown",{frameId:t.frameId,stepId:t.stepId,shown:!1})},fixDoubleDisplay:function(e,t){K.each(e.state.frames,function(n,i){i!==e.state.frameId&&e.getters.isShownInFrame()(i,{id:t.stepId})&&E.postMessage(K.extend({action:"frames/receiveHideGuideInFrame",frameId:i,guideId:t.guideId,stepId:t.stepId},t))})},receiveHideGuideInFrame:function(e,t){e.state.frameId===t.frameId&&(t=(e=T(t.guideId))&&e.findStepById(t.stepId))&&t.hide()},changeLastGuideStepSeen:function(e,t){E.postMessage({action:"frames/receiveLastGuideStepSeen",frameId:e.state.frameId,lastGuideStepSeen:t}),e.commit("updateLastGuideStepSeen",t),e.commit("healthCheck/updateStepState",{id:t.guideStepId,seenState:t.state},{root:!0})},receiveLastGuideStepSeen:function(e,t){var n;t.frameId!==e.state.frameId&&(n=e.state.frames[t.frameId],(n=K.get(n,"agentInstallType"))&&n!==e.state.agentInstallType&&delete t.lastGuideStepSeen.visitorId,e.dispatch("guideState/updateLastGuideStepSeen",t.lastGuideStepSeen,{root:!0}),e.dispatch("guideState/write",null,{root:!0}),t=(t=T((n=t.lastGuideStepSeen).guideId))&&t.findStepById(n.guideStepId))&&(t.seenState=n.state,t.seenReason=n.seenReason,t.lastSeenAt=n.time,n.dismissCount&&(t.dismissCount=n.dismissCount),n.snoozeEndTime&&(t.snoozeEndTime=n.snoozeEndTime),e.commit("updateLastGuideStepSeen",n),e.commit("healthCheck/updateStepState",t,{root:!0}))},changeThrottlingState:function(e,t){E.postMessage(K.extend({action:"frames/receiveThrottlingState",frameId:e.state.frameId},t))},receiveThrottlingState:function(e,t){t.frameId!==e.state.frameId&&K.each(Gf,function(e){t[e]&&Bf(t[e],e)})},startPreview:function(e){E.postMessage({action:"frames/receiveStartPreview","pendo-preview":e.rootState.preview.preview})},restartPreview:function(e){E.postMessage({action:"frames/receiveRestartPreview","pendo-preview":e.rootState.preview.preview})},stopPreview:function(e,t){E.postMessage(K.extend({action:"frames/receiveStopPreview"},t))},receiveStartPreview:function(e,t){e.dispatch("preview/start",t[vp],{root:!0}),Ip(window),om()},receiveRestartPreview:function(e){var t=Sp(A(),ml());e.dispatch("guideState/updateLastGuideStepSeen",t,{root:!0})},receiveStopPreview:function(e,t){$p({preventWindowClose:!!t.preventWindowClose})},checkFrameVisibility:function(e,t){if(!e.getters.isTop()&&!e.state.disableFrameVisibilityCheck)try{var n="unknown",i=(t=null==t?window:t).frameElement;i?(n=b(i)?"visible":"hidden",e.dispatch("updateFrameVisibility",{visibility:n})):e.commit("disableFrameVisibilityCheck")}catch(t){e.commit("disableFrameVisibilityCheck")}},updateFrameVisibility:function(e,t){var n;K.find(gy,function(e){return e===t.visibility})&&(n=t.visibility,e.getters.frameVisibility()!==n)&&(e.commit("setFrameVisibility",{frameId:e.state.frameId,visibility:n}),E.postMessage({action:"frames/receiveFrameVisibility",frameId:e.state.frameId,visibility:n}))},receiveFrameVisibility:function(e,t){e.commit("setFrameVisibility",t)},addSelectionModeToFrames:function(e,t){t=t.options,nh.launchInAppDesigner(t)},syncOptions:function(e,t){t.options&&E.postMessage({action:"frames/receiveOptions",frameId:e.state.frameId,options:t.options})},receiveOptions:function(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&t.options&&qc(t.options)},syncIdentity:function(e,t){var n;(t.visitorId||t.accountId)&&(n=t.visitorId,t=t.accountId,E.postMessage({action:"frames/receiveIdentity",frameId:e.state.frameId,visitorId:n,accountId:t}))},receiveIdentity:function(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&(t.visitorId||t.accountId)&&oi(t.visitorId,t.accountId)},setReady:function(e,t){e.commit("setReady",t.isReady)},receiveGuideSeen:function(e,t){t.frameId!==e.state.frameId&&y.guideSeen.trigger(t.guideSeen)},checkGuideEligibility:function(e,t){var n=t.guideId,i=t.stepId,r=t.currentStepIndex,o=t.sourceFrame,t=t.promiseId,n=T(n),i=n&&n.findStepById(i),a={};return n&&i?(0===r&&(r=yu(n))&&((r=K.first(s(r)))?b(r)||(a.ACTIVATION="notVisible"):a.ACTIVATION="notFound"),K.isFunction(i.canShowOnPage)&&!i.canShowOnPage(Vf())&&(a.PAGE="mismatch"),i.elementPathRule&&((r=K.first(s(i.elementPathRule)))?b(r)?i.elementContainsRulesList&&!wf(r,i.elementContainsRulesList)&&(a.ELEMENT="containsRuleMismatch"):a.ELEMENT="notVisible":a.ELEMENT="notFound"),i.triggerElementPathRule&&((r=K.first(s(i.triggerElementPathRule)))?b(r)||(a.TRIGGER_ELEMENT="notVisible"):a.TRIGGER_ELEMENT="notFound"),K.get(n,"attributes.embedConfig")&&(i=K.get(n,"attributes.embedConfig.selector"),(r=K.first(s(i)))?b(r)||(a.EMBED_CONTAINER="notVisible"):a.EMBED_CONTAINER="notFound")):a.GUIDE="notFound",t&&o&&E.postMessage({errors:a,action:"frameEligibilityResponse",targetFrame:o,resolveId:t}),a},setTabId:function(e,t){e.commit("setTabId",t)}},mutations:{addFrame:function(e,t){var n=t.id;e.frames[n]=K.extend({},e.frames[n],t)},removeFrame:function(e,t){delete e.frames[t]},setGuideList:function(e,t){var i=t.frameId;e.frames[i]=K.extend({},e.frames[i],{guides:K.indexBy(n(t.guides),"id"),autoOrdering:t.autoOrdering})},setStepShown:function(e,t){var n=t.frameId,n=e.frames[n]=K.extend({},e.frames[n]);n.shown=K.extend({},n.shown),n.shown[t.stepId]=t.shown},setInitialized:function(e,t){e.initialized=t},setLeaderId:function(e,t){e.leaderId=t},setFrameId:function(e,t){e.frameId=t},setTabId:function(e,t){e.tabId=t},setTopId:function(e,t){e.topId=t},setAgentInstallType:function(e,t){e.agentInstallType=t},setLeadershipMode:function(e,t){e.leadershipMode!==Se&&(e.leadershipMode=t)},setFrameVisibility:function(e,t){var n=t.frameId;e.frames[n]=K.extend({},e.frames[n],{visibility:t.visibility})},setReady:function(e,t){e.isReady=t},disableFrameVisibilityCheck:function(e){e.disableFrameVisibilityCheck=!0},hideGuides:function(e){K.each(e.frames,function(e){K.each(e.shown,function(t,n){e.shown[n]=!1})})},setChannelType:function(e,t){e.channelType=t},setGuidesLoaded:function(e){e.guidesLoaded=!0},setConnectFailed:function(e){e.connectFailed=!0},updateLastGuideStepSeen:function(e,t){t&&K.each(e.frames,function(e){e.guides&&(e=e.guides[t.guideId])&&(e=K.findWhere(e.steps,{id:t.guideStepId}))&&(e.seenState=t.state,e.lastSeenAt=t.time,e.seenReason=t.seenReason,t.dismissCount&&(e.dismissCount=t.dismissCount),t.snoozeEndTime)&&(e.snoozeEndTime=t.snoozeEndTime)})}},getters:{allFrames:function(e){return e.frames},autoOrdering:function(e){return K.reduce(e.frames,function(e,t){return e[t.apiKey]=t.autoOrdering,e},{})},leaderExists:function(e){return!!e.leaderId},isLeader:function(e){return e.leaderId===e.frameId},leaderKey:function(e,t){if(t.leaderExists()&&(t=e.frames[e.leaderId]))return t.apiKey},isFollower:function(e){return!!e.leaderId&&e.leaderId!==e.frameId},isTop:function(e){return e.topId===e.frameId||window==window.top},frameVisibility:function(e){return(e.frames?e.frames[e.frameId]:{}).visibility||"unknown"},isGuideInThisFrame:function(e){return function(t){var n=e.frames&&e.frames[e.frameId];return!!(n&&n.guides||{})[t.id]}},isGuideInDifferentFrame:function(e){return function(t){return K.any(e.frames,function(n,i){return i!==e.frameId&&n.guides&&n.guides[t.id]})}},isReady:function(e){return e.isReady},isShownInAnotherFrame:function(e){return function(t){return K.any(e.frames,function(n,i){return i!==e.frameId&&n.shown&&n.shown[t.id]})}},isShownInFrame:function(e){return function(t,n){return t=(t=e.frames&&e.frames[t])&&t.shown||{},!!t[n.id]}},hasFrame:function(e){return function(t){return e.frames&&e.frames[t]}},hasFrames:function(e){return 1<K.size(e.frames)},shouldBeAddedToLauncher:function(e,t){return function(n){return t.canShowRCBadge()&&K.any(e.frames,function(t,i){return i!==e.frameId&&!!my(t)&&(i=t.guides&&t.guides[n.id])&&i._shouldBeAddedToLauncher})}},shouldBeAddedToResourceCenter:function(e,t){return function(n){return t.canShowRCBadge()&&K.any(e.frames,function(t,i){return i!==e.frameId&&t.apiKey===C.apiKey&&!!my(t)&&(i=t.guides&&t.guides[n.id])&&i._shouldBeAddedToResourceCenter})}},isBroadcastChannel:function(e){return"BroadcastChannel"===e.channelType},channelType:function(e){return e.channelType},canShowRCBadge:function(e,t){var n,i;return t.leaderKey()!==C.apiKey?(n=K.filter(e.frames,function(e){return e.apiKey===C.apiKey}),(i=K.find(n,function(e){return e.isTop}))||(i=K.min(n,function(e){return e.joinedAt})),e.frameId===i.id):K.any(e.frames,function(e){return e.isTop})?t.isTop():t.isLeader()},leaderKeyPreference:function(e){return e=K.filter(e.frames,function(e){return e.leaderKey&&e.leaderKey.length}),1===K.unique(K.map(e,function(e){return e.leaderKey.join(",")})).length?[].concat(e[0].leaderKey):[]},getMyApiKey:function(e,t){return t.getMyFrame().apiKey},getMyFrame:function(e){return e.frames[e.frameId]}},state:{initialized:!1,frameId:null,leaderId:null,tabId:null,agentInstallType:null,leadershipMode:null,topId:null,frames:{},guidesLoaded:!1,channelType:null,ready:!1},requests:e};function t(e){var t=K.pick(e,"id","name","launchMethod","isMultiStep","steps","control","lastUpdatedAt","language","state","polls","redisplay");return t.attributes=K.pick(e.attributes,"overrideAutoThrottling","priority","isAnnouncement","resourceCenter","device","sharedServiceVersion","embedConfig"),t._shouldBeAddedToLauncher=K.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e._shouldBeAddedToLauncher||!1,t._shouldBeAddedToResourceCenter=K.isFunction(e.shouldBeAddedToResourceCenter)?e.shouldBeAddedToResourceCenter():e._shouldBeAddedToResourceCenter||!1,t.steps=K.map(e.steps,function(e){return K.pick(e,"id","guideId","type","seenReason","seenState","lastSeenAt","lastUpdatedAt","dismissCount","snoozeEndTime","regexUrlRule","pageId","elementPathRule","triggerElementPathRule","elementContainsRulesList")}),t}function n(e){return K.map(e,t)}}();function yy(e){var t=K.indexBy(K.filter(ou(),function(e){return!e.isFrameProxy}),"id"),n=K.chain(e.frames).filter(function(t){return t.id!==e.frameId}).map(function(e){return K.toArray(K.get(e,"guides",[]))}).flatten(!0).unique("id").filter(function(e){return!t[e.id]}).map(function(e){return K.extend(JSON.parse(JSON.stringify(e)),{isFrameProxy:!0})}).map(Nu).value(),n=K.toArray(t).concat(n).filter(dg);ug(n),Pg(n),eu(n),e.guidesLoaded&&0===K.size(K.get(e,"frames."+e.frameId+".guides",[]))&&xl()}function by(e,t){new(Lt("MutationObserver"))(t).observe(e,{subtree:!0,attributes:!0,childList:!0,characterData:!0})}function Iy(e){var t=Element.prototype.attachShadow;Element.prototype.attachShadow=function(n){return n=t.call(this,n),this.shadowRoot&&by(this.shadowRoot,e),n},Element.prototype.attachShadow.toString=function(){return t.toString()}}function wy(e){var t,n,i;Iy(e),K.isFunction(document.createNodeIterator)&&(t=0,n=[bo()],function r(o){do{if(!(o=o||document.createNodeIterator(n.pop(),NodeFilter.SHOW_ELEMENT))||!o.nextNode)break;for(;(i=o.nextNode())&&(t++,i&&i.shadowRoot&&(by(i.shadowRoot,e),n.push(i.shadowRoot),Cy.foundShadowRoots=!0),t%5e3!=0););}while(!i&&(o=null,n.length))i&&Cy.foundShadowRoots&&Dt(function(){r(o)},50),5e3!==t||Cy.foundShadowRoots||(Cy.stoppedSearchEarly=!0)}())}var Cy={startObserver:wy,foundShadowRoots:!1,stoppedSearchEarly:!1},Sy=function(){var e;function t(){q.dispatch("guideUpdate/documentChanged")}function n(){q.dispatch("guideUpdate/handleScheduledUpdate")}return{actions:{documentChanged:function(e){var t;e.state.updateId?e.commit("setNeedsUpdate"):e.state.scheduledUpdate||(t=Dt(n,t=Math.min(Math.max(0,Al-(t=e.getters.now()-e.state.updateCompleteTime)),Al)),e.commit("setScheduledUpdate",t))},handleScheduledUpdate:function(e){e.dispatch("stopScheduledUpdate"),xl()},stopScheduledUpdate:function(e){e.state.scheduledUpdate&&(clearTimeout(e.state.scheduledUpdate),e.commit("setScheduledUpdate",null))},startObserverIfNeeded:function(n,i){var r;n.state.useObserver&&((r=n.getters.observer())||(e=r=new(i||Lt("MutationObserver"))(t)),n.state.observing||(r.observe(document.documentElement,{subtree:!0,attributes:!0,childList:!0,characterData:!0}),n.state.observeShadowRoots&&Cy.startObserver(t),n.commit("setObserving",!0)))},stopObserver:function(e){var t=e.getters.observer();t&&K.isFunction(t.disconnect)&&t.disconnect(),e.commit("setObserving",!1),e.dispatch("stopScheduledUpdate")}},mutations:{setUseObserver:function(e){e.useObserver=!0},setObserveShadowRoots:function(e){e.observeShadowRoots=!0},setObserving:function(e,t){e.observing=t},setNeedsUpdate:function(e){e.needsUpdate=!0},setScheduledUpdate:function(e,t){e.scheduledUpdate=t},startUpdate:function(e,t){e.needsUpdate=!1,e.updateId=t},completeUpdate:function(e,t){e.updateId=null,e.updateCompleteTime=t}},getters:{now:function(){return v()},observer:function(){return e}},state:{useObserver:!1,observeShadowRoots:!1,observing:!1,needsUpdate:!1,scheduledUpdate:null,updateId:null,updateCompleteTime:0,iterationTimeLimit:50}}}(),Ay=function(){var e=["advanced","dismissed","snoozed"];return{actions:{init:function(e,t){K.each(t,function(t){K.each(t.steps,function(t){e.commit("updateStepState",t)})})},fixSeenStateAndLogError:function(e,t){var n,i,r=t.step,t=t.reason;e.state.exceptions[r.id]||(n=r.seenState,(i=e.state.steps[r.id])&&i.seenState&&(r.seenState=i.seenState),e.state.exceptions[r.id]=!0,e.dispatch("logRedisplayError",{id:r.id,guideId:r.guideId,reason:t,seenState:i.seenState,previousSeenState:n}))},logRedisplayError:function(e,t){Vr(['Attempted redisplay of guide="',t.guideId,'" step="',t.id,'" reason="',t.reason,'" seenState="',t.seenState,'" previousSeenState="',t.previousSeenState,'"'].join())}},mutations:{updateStepState:function(e,t){var n=v();e.steps[t.id]=K.extend({},e.steps[t.id],{pageId:t.pageId,regexUrlRule:t.regexUrlRule,seenState:t.seenState,updatedAt:n,allowedAt:n+6e4})},resetStepStatus:function(e){e.steps={}}},getters:{isRedisplay:function(t){return function(n){var i=t.steps[n.id];return!!i&&!(n.resetAt>i.updatedAt)&&!(v()>=i.allowedAt)&&K.contains(e,i.seenState)&&!K.contains(e,n.seenState)}},isMissingPageRule:function(e){return function(t){var n=e.steps[t.id];return!!n&&!(!n.regexUrlRule||t.regexUrlRule)}}},state:{steps:{},exceptions:{}}}}(),Ty={state:{lastFlush:v(),flushInterval:3e5,counters:{ptmGifFailures:0,guideGifFailures:0},timers:{}},actions:{flush:function(e){K.each(e.state.counters,function(t,n){e.commit("resetCounter",n)}),K.each(e.state.timers,function(t,n){e.commit("resetTimer",n)}),e.commit("setLastFlush",e.getters.now())}},mutations:{setLastFlush:function(e,t){e.lastFlush=t},incrementCounter:function(e,t){void 0!==e.counters[t]&&e.counters[t]++},resetCounter:function(e,t){void 0!==e.counters[t]&&(e.counters[t]=0)},setTimer:function(e,t){var t=void 0===t?{}:t,n=t.name,t=t.time;n&&null!=t&&(e.timers[n]=t)},resetTimer:function(e,t){delete e.timers[t]}},getters:{shouldFlush:function(e,t){return t.now()-e.lastFlush>=e.flushInterval},payload:function(e){var t=K.reduce(e.counters,function(e,t,n){return 0<t&&(e[n]=t),e},{});return K.extend({},t,e.timers)},now:function(){return v()}}},_y={state:{visitor:{},account:{},parentAccount:{},date:null,version:null,selfHosted:null},actions:{},mutations:{setMetadata:function(e,t){t&&(t.visitor&&(e.visitor=t.visitor),t.account&&(e.account=t.account),t.parentAccount&&(e.parentAccount=t.parentAccount),t.date&&(e.date=t.date),t.version&&(e.version=t.version),null!==t.selfHosted)&&(e.selfHosted=t.selfHosted)},clearAccount:function(e){e.account={}},reset:function(e,t){e.visitor={id:t.visitor_id},e.account={},e.parentAccount={},e.date=null,e.version=null,e.selfHosted=null}},getters:{metadata:function(e){return e},selfHosted:function(e){return e.selfHosted}}},Ey=h.getLocal(),xy="pendo-preview",Ry="current-guide-preview",ky={state:{preview:null,designerPreview:null},actions:{start:function(e,t){e.commit("setPreview",t),e.dispatch("write")},restart:function(e,t){e.commit("updatePreview",{state:null}),e.commit("updatePreview",t)},update:function(e,t){e.commit("updatePreview",{state:t}),e.dispatch("write")},load:function(e){try{var t=e.getters.storage(),n=JSON.parse(t.getItem(xy)),i=(n.apiKey===C.apiKey&&e.commit("setPreview",n),t.getItem(Ry));i&&e.commit("setDesignerPreview",JSON.parse(i))}catch(e){}},write:function(e){try{var t=e.getters.storage();e.state.preview?t.setItem(xy,JSON.stringify(e.state.preview)):t.removeItem(xy)}catch(e){}},exit:function(e){e.commit("setPreview",null),e.dispatch("write")},exitDesignerPreview:function(e){e.commit("setDesignerPreview",null),e.getters.storage().removeItem(Ry)},launchInAppDesigner:function(e,t){nh.launchInAppDesigner(t)}},mutations:{updatePreview:function(e,t){e.preview&&K.extend(e.preview,t)},setPreview:function(e,t){e.preview=t},setDesignerPreview:function(e,t){e.designerPreview=t}},getters:{isInPreviewMode:function(e){return!!e.preview},isInDesignerPreviewMode:function(e,t){return!!e.designerPreview&&t.isInPreviewMode()},storage:function(){return Ey}}},Oy=function(){var e={isTop:void 0,isLeader:void 0,frameId:null,tabId:null,frames:{},autoOrdering:[],excludedGuides:[],throttling:{},enableEventLogging:!1,eventsCaptured:[],cspErrors:[],installType:null},t="top-down",n="bottom-up",i={debuggingEnabled:{type:t,defaultValue:!1},guideLoopRunning:{type:n,defaultValue:!1},stepEligibilitySet:{type:n,defaultValue:{}},identity:{type:n,defaultValue:{}},location:{type:n,defaultValue:{}}},r={init:function(t){t.commit("setFrameId",Dn.getFrameId()),t.commit("setTabId",Dn.getTabId()),t.commit("setInstallType",_e());var n=Cu()&&window.top===window;e.isTop,t.commit("setIsTop",n),t.commit("isLeader",Cu()),n?(n=Yl(),t.commit("debuggingEnabled",!0===n.enabled),n.enableEventLogging&&t.commit("enableEventLogging",!0)):E.postMessage({action:"debugger/join",frameId:t.state.frameId})},join:function(e,n){e.state.frameId!==n.frameId&&K.each(i,function(n,i){n.type===t&&E.postMessage({action:"debugger/sync",frameId:e.state.frameId,fields:((n={})[i]=e.state[i],n)})})},sync:function(e,r){var o;e.state.frameId!==r.frameId&&(o=r.frameId,r=r.fields,K.each(r,function(r,a){var s;i[a]&&((s=i[a].type)!==t||!e.state.isTop)&&(s!==n||e.state.isTop)&&e.commit("_sync_".concat(a),{value:r,frameId:o})}))},enableEventLogging:function(e,t){e.commit("enableEventLogging",t)},eventCaptured:function(e,t){e.state.isTop?e.commit("eventsCaptured",t):E.postMessage({action:"debugger/receiveEventCaptured",frameId:e.state.frameId,event:t})},receiveEventCaptured:function(e,t){e.state.isTop&&e.commit("eventsCaptured",t.event)},clearEventsCaptured:function(e){e.commit("eventsCaptured",[])},onCspError:function(e,t){e.state.isTop?e.commit("cspError",t):E.postMessage({action:"debugger/recieveCspError",frameId:e.state.frameId,data:t})},recieveCspError:function(e,t){e.state.isTop&&e.commit("cspError",t.data)},checkGuideEligibility:function(e,t){var n=t.guideId,i=t.response,t=K.filter(q.state.frames.frames,function(e){return e.guides&&e.guides[n]});t.length&&(t=K.map(t,function(e){var t=K.map(e.guides[n].steps,function(t,i){return E.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:e.id,stepId:t.id,currentStepIndex:i,guideId:n})});return J.all(t).then(function(t){return{frameId:e.id,frameVisibility:e.visibility,errors:K.map(t,function(e){return JSON.parse(e).errors})}})}),J.all(t).then(function(e){return e}).then(function(e){return i(e)}).catch(function(e){return i({error:e})}))}},o={},a={setFrameId:function(e,t){e.frameId=t},setTabId:function(e,t){e.tabId=t},setIsTop:function(e,t){e.isTop=t},isLeader:function(e,t){e.isLeader=t},setInstallType:function(e,t){e.installType=t},stepEligibilitySet:function(e,t){var n=t.stepId;e.stepEligibilitySet[n]=t},guideLoopRunning:function(e,t){e.guideLoopRunning!==t&&(e.guideLoopRunning=t)},identity:function(e,t){e.identity=t},location:function(e,t){e.location=t},debuggingEnabled:function(t,n){t.debuggingEnabled=n,t=t.isTop,e.debuggingEnabled!==n&&(n?(c(),l(),y.on("stepEligibility",s),y.on("guideUpdateComplete",f),y.on("guideLoopStopped",h),y.on("eventCaptured",u),y.on("identify",c),y.on("urlChanged",l),t&&(d(),y.on("guidesLoaded",d))):(y.off("stepEligibility",s),y.off("guideUpdateComplete",f),y.off("guideLoopStopped",h),y.off("eventCaptured",u),y.off("identify",c),y.off("urlChanged",l),t&&y.off("guidesLoaded",d)))},excludedGuides:function(e,t){e.excludedGuides=t},autoOrdering:function(e,t){e.autoOrdering=t},throttling:function(e,t){e.throttling=t},eventsCaptured:function(e,t){K.isArray(t)&&0===t.length?e.eventsCaptured=[]:e.debuggingEnabled&&e.enableEventLogging&&e.eventsCaptured.unshift(t)},enableEventLogging:function(e,t){e.enableEventLogging=t},cspError:function(e,t){e.cspErrors.unshift(t),10<e.cspErrors.length&&e.cspErrors.pop()}};function s(e){e=e.data[0],q.commit("debugger/stepEligibilitySet",e)}function d(e){var t=K.map(yl.sortAndFilter(A(),C.autoOrdering),function(e){return e.id});q.commit("debugger/autoOrdering",t||[]),q.commit("debugger/excludedGuides",C.excludedGuides||[]),q.commit("debugger/throttling",C.throttling||{})}function u(e){q.dispatch("debugger/eventCaptured",e.data[0])}function c(e){q.commit("debugger/identity",{visitorId:K.get(e,"data.0.visitor_id")||C.get_visitor_id(),accountId:K.get(e,"data.0.account_id")||C.get_account_id(),apiKey:C.apiKey})}function l(){q.commit("debugger/location",{href:Ji(),browserUrl:window.location.href})}function p(e){q.commit("debugger/guideLoopRunning",e)}var f=K.partial(p,!0),h=K.partial(p,!1);return K.each(i,function(r,s){var d=r.type,r=r.defaultValue,u=(e[s]=r,o[s]=function(e){return e[s]},a[s]||function(e,t){e[s]=t});a[s]=K.wrap(u,function(e,i,r){!i.isTop&&d===t||(e(i,r),i.isTop&&d===n)||E.postMessage({action:"debugger/sync",frameId:i.frameId,fields:((e={})[s]=r,e)})}),u=a["_sync_".concat(s)]||u,a["_sync_".concat(s)]=function(e,n){var r=n.value,n=n.frameId;e.frames[n]||(e.frames[n]={}),e.frames[n][s]||(e.frames[n][s]=i[s].defaultValue),u(e.frames[n],r),e.isTop||d!==t||u(e,r)}}),{state:e,actions:r,getters:o,mutations:a}}();function Ny(e){e.registerModule("debugger",Oy),e.registerModule("errorLog",uy),e.registerModule("frames",vy),e.registerModule("guideUpdate",Sy),e.registerModule("guideState",vl),e.registerModule("healthCheck",Ay),e.registerModule("location",Dv),e.registerModule("monitoring",Ty),e.registerModule("metadata",_y),e.registerModule("preview",ky)}var My=function(){var e,t,n,i="pendo-loader";return{name:"IFrameMonitor",initialize:function(i,o){e=i,t=o,function(){t.ConfigReader.get("autoFrameInstall")&&t.Events.ready.on(c),t.ConfigReader.get("frameIdentitySync")&&(t.Events.metadata.on(p),t.Events.identify.on(f),t.Events.childFrameJoined.on(r))}(),n=t.ConfigReader.get("frameIdentityTopDownOnly")},teardown:function(){t.Events.ready.off(c),t.Events.metadata.off(p),t.Events.identify.off(f),t.Events.childFrameJoined.off(r)}};function r(){h()}function o(e){return e.ignoreIframeMonitor||e.pendo&&(e.pendo.initialize||e.pendo.iframeWaiting)||!!e.document.getElementById(i)}function a(n,r){var a;o(n)||((a=t.ConfigReader.getLocalConfig()).apiKey||(a.apiKey=e.apiKey),n.pendo={_q:[["initialize",a]]},(a=n.document.createElement("script")).src=r,a.async=!0,a.id=i,(r=n.document.getElementsByTagName("script")[0])&&r.parentNode?r.parentNode.insertBefore(a,r):(n.document.head||n.document.body).appendChild(a))}function s(e,t){e.pendo.iframeWaiting=!1,a(e,t)}function d(n){try{if(o(n))return}catch(e){return}var i,r=(r=t.ConfigReader.get("selfHostedAgentUrl"))||(r=e.dom("script"),i=/\/pendo(\.\w+)?\.js$/,(r=e._.find(r,function(e){return i.test(e.src)}))&&r.src);r?"complete"===n.document.readyState?a(n,r):(n.pendo={iframeWaiting:!0},n.document.addEventListener("DOMContentLoaded",e._.partial(s,n,r))):e.log("Unable to find agent url to install agent in frames","debug")}function u(){for(var t=e.dom("iframe").length,n=0;n<t;n++)d(window.frames[n]);Dt(u,250)}function c(){u()}function l(){return!n||t.store.getters["frames/isLeader"]()}function p(e){l()&&(e=null==(e=e.data)?void 0:e[0]).storeChanged&&t.store.dispatch("frames/syncOptions",{options:e.options})}function f(e){var t;h(null==(t=e.data)?void 0:t[0].visitor_id,null==(t=e.data)?void 0:t[0].account_id)}function h(e,n){void 0===e&&(e=Q()),void 0===n&&(n=fi()),l()&&t.store.dispatch("frames/syncIdentity",{visitorId:e,accountId:n})}}();function Ly(e,t){return e.length==t.length&&K.all(e,function(e,n){return e===t[n]})}var Gy,Fy=function(){function e(e){this.maxTargets=50,this.domActivation=e,this.name="dom",this.queue=[]}return e.prototype.markDirty=function(){this.queue.push.apply(this.queue,this.domActivation.guides)},e.prototype.process=function(e){var t,n=this.queue.shift();if(n){e.saveContext(n);try{t=s(n.selector)}catch(e){t=[]}t.length>this.maxTargets&&(t.length=this.maxTargets),Ly(t,n.targets)||(n.targets=t,this.domActivation.detach(n,this.domActivation.targets),K.each(t,function(e){this.domActivation.attach(e,n,this.domActivation.targets)},this))}},e.prototype.handleProcessTimeExceeded=function(e){(e=e.getContext())&&X.warn("Element activated guide ("+e.id+") timeout exceeded")},e.prototype.cancel=function(){this.queue.length=0},e.prototype.isComplete=function(){return!this.queue.length},e}(),Py=function(){var e,t,n="pendoTargetId",i=[],r={};return{name:"DOMActivation",key:n,guides:i,targets:r,reset:u,init:l,attach:function(e,t,i){var r=e[n],o=r?i[r]:null;o||(r=r||"target"+K.uniqueId(),o={target:e,events:{}},i[r]=o,e[n]=r);var a=i[t.id]||[];a.push(r),i[t.id]=a,K.each(t.events,function(n){var i=o.events[n];i||((i={guideIds:{}}).fn=K.partial(d,K,i.guideIds),I(e,n="mouseover"===n?"mouseenter":n,i.fn),o.events[n]=i),i.guideIds[t.id]=1})},detach:s,handler:d,activates:c,prefetch:p,initialize:function(n,i){(e=i).Events.on("deliverablesLoaded",u),i.Events.on("guideListChanged",o),i.Events.on("guidesLoaded",a),jl(t=new Fy(Py))},teardown:function(){zl(t),e.Events.off("deliverablesLoaded",u),e.Events.off("guideListChanged",o),e.Events.off("guidesLoaded",a)}};function o(){u(),l(qd())}function a(){p(qd())}function s(e,t){K.each(t[e.id],function(i){var r=i?t[i]:null;r&&(K.each(r.events,function(t,n){t&&t.guideIds&&(delete t.guideIds[e.id],0>=K.size(t.guideIds))&&(w(r.target,n="mouseover"===n?"mouseenter":n,t.fn),delete r.events[n])}),0>=K.size(r.events))&&(delete r.target[n],r.target=null,delete t[i])}),delete t[e.id]}function d(e,t){var n;!e.pendoActivatedGuide&&!ee.data.get(e,"advanced")&&(n=m.get("adoptPrioritizeAdoptGuides"),t=K.compact(K.map(K.keys(t),function(e){return T(e)})),t=K.filter(t,function(e){return!(!e.steps||!e.steps.length||K.get(e,"attributes.dom.isOnlyShowOnce")&&e.steps[0].hasBeenSeen())}),t=K(t).chain().sortBy(function(e){return+("staged"!==e.state)}).sortBy(function(e){return e=e.isTraining,n?+!e:+!!e}).value(),t=K.find(t,function(e){var t=K.first(e.steps);return K.get(e,"attributes.resourceCenter",!1)&&e.isShown()?se.dismissResourceCenter():!!t.canShow()&&(!!e.isShown()||xf(t,"dom"))}))&&(e.pendoActivatedGuide=t.id)}function u(){K.each(i,function(e){s(e,r),e.targets=[]}),i.length=0}function c(e){if(e.id&&e.steps&&e.steps.length&&e.hasLaunchMethod("dom")&&e.steps[0].canShowOnPage(Vf())){var t=K.get(e,"attributes.activation.event",[]);if(t&&t.length){var n=yu(e);if(n)return{id:e.id,events:t,selector:n,targets:[]}}}}function l(e){K.each(e,function(e){(e=c(e))&&i.push(e)})}function p(e){m.get("disablePrefetch")||K.each(e,function(e){K.isFunction(e.hasLaunchMethod)&&e.hasLaunchMethod("dom")&&e.steps&&e.steps.length&&K.isFunction(e.steps[0].fetchContent)&&e.steps[0].fetchContent(!0)})}}();function Dy(){return{dom:ee,placeBadge:up,showPreview:Tf,stopGuides:El,removeAllBadges:cp,_:K,sizzle:s,tellMaster:ga,tell:ga,log:pv,attachEvent:I,createLauncher:K.constant({}),removeLauncher:K.noop,addGuideToLauncher:K.noop,updateLauncherContent:K.noop,DEFAULT_TIMER_LENGTH:Al,getOffsetPosition:ie,getScreenDimensions:lo,registerMessageHandler:ia,whenLoadedCall:Vd,loadResource:Vo,loadGuideCss:kg,GuideFactory:Nu,GuideStep:Mu,extractElementTreeContext:Cd,previewGuideFromJSON:x.previewGuideFromJSON,hidePreviewedGuide:x.hidePreviewedGuide,shadowAPI:c,getTarget:Ui,pullContentsFromTargetElement:If,doesElementMatchContainsRules:wf,doesElementContentMatchRule:Cf,getGuideAttachPoint:oe}}var By=function(){(Gy=Gy||Dy()).areGuidesEnabled=!jg(),C.designer||(C.designer=Gy)},Wy=function(){C.designer&&(C.designer=null,delete C.designer)},Uy=function(){var e,t,n,i;return{name:"DesignerConnect",initialize:function(n,i){e=n,t=i,Ia()||ia("connect",r),ia("pendo-designer-launch::launch",s),ia("pendo-preview::launch",d),n.app_name=document.title,(ma()||window.opener)&&window.addEventListener&&(e.log(n.app_name+": listening to messages"),window.addEventListener("message",Ko,!1)),window.opener&&e._.isFunction(window.opener.postMessage)&&window.opener.postMessage({type:"pendo::ready"},"*"),e.onConnectMessage=r},teardown:function(){window.removeEventListener&&window.removeEventListener("message",Ko,!1),o(),ra("connect"),ra("pendo-designer-launch::launch"),ra("pendo-preview::launch"),i&&(t.Events.appUnloaded.off(i),i=void 0)},onConnectMessage:r,disconnectDesigner:o,launchDesignerListener:s,launchPreviewListener:d,sendToken:a};function r(n,r){var a,s;e.isSendingEvents()&&(a=r.origin,e.stopGuides(),e.buffers.lock(),Qo(s=r.source),e.designerv2.hostConfig||(t.store.dispatch("frames/leave"),i=e._.partial(o,s,a),t.Events.appUnloaded.on(i)),By(),ga(r.source,{status:"success",type:"connect"},a),ua("selection.js")&&(e.log("Designer Modules already loaded."),ga({type:"ready"},a)),t.Events.designerLaunched.trigger())}function o(t,n){e.buffers.unlock(),Wy(),t&&ga(t,{type:"unload"},n)}function a(e,t){var i;n&&(i={token:n,type:"pendo-designer-launch::set-token"},t.source.postMessage(i,t.origin),n=void 0)}function s(t,i){var r,i=i.data.token;i&&(n=i,ia("pendo-designer-launch::get-token",a),r=i.DADesigner?"da-designer":"in-app-designer",r={lookaside:i.baseUrl,host:i.host,target:i.target||"latest",DADesigner:!!i.DADesigner,gcsBucket:i.gcsBucket||r,forceNativeDesigner:!!i.forceNativeDesigner,sidebarDesigner:!!i.sidebarDesigner},e.designerv2.launchInAppDesigner(r))}function d(n,i){var r=i.data.config.preferredAgentInstallType;r&&r!==_e()?e.log("Skipping preview launch due to agent install type mismatch."):(r=e._.extend({},i.data.config,{origin:i.origin}),Tr()&&(r.apiKey=e.apiKey),t.store.dispatch("preview/exitDesignerPreview"),t.store.dispatch("preview/start",r),Ip(window)&&(i.source.postMessage({type:"pendo-preview::ready",apiKey:e.apiKey,accountId:e.accountId},i.origin),om(),t.store.dispatch("frames/startPreview")))}}(),$y="__sg__",jy=function(){var e,t="promotedAgentMetadataConfigurations",n=[],i={},r={};return{name:"PromoteMetadata",initialize:function(o,a){if(n=(e=a).ConfigReader.get(t),r={},h.registry.addLocal($y),Jn())try{i=JSON.parse(h.read($y))||{}}catch(e){i={}}n&&n.length&&(e.Events.on("metadata",s),e.Events.on("eventCaptured",l),e.Events.on("identify",d))},teardown:function(){e.Events.off("metadata",s),e.Events.off("eventCaptured",l),e.Events.off("identify",d)},getPromotedMetadata:function(){return n},hasPromotedMetadataKind:o,setSchemaGroup:s,getSchemaGroup:a,resetSchemaGroup:u};function o(e){return K.some(n,function(t){return t.kind===e})}function a(){return r}function s(e){var t;e?(e=e.data[0].options)&&(t=e):t=rl(),r=function(e){Jn()&&(i=function(e){return K.mapObject(e,function(e,t){var n={};return Object.keys(e).forEach(function(t){n[t.replace("agent__","")]=e[t]}),n})}(i=JSON.parse(h.read($y))||{}));var t=r;return K.each(["visitor","account","parentAccount"],function(n){var r=o(n),a=!K.isEmpty(e[n]),s=n.toLowerCase()+"metadata";r&&(!K.isEmpty(i)&&K.isEmpty(za.get())&&(t[s]=c(i[s],n)),a)&&(r=c(e[n],n),K.isEmpty(r)||(t[s]=Kt(Kt({},t[s]),r)))}),Jn()&&h.write($y,JSON.stringify(t),void 0,!1,!0),t}(t)}function d(e){e=e.data[0],K.get(e,"wasCleared")&&(h.clear($y),u())}function u(){r={}}function c(e,t){var i={};return e&&K.each(e,function(e,r){var o=r.toLowerCase();K.find(n,function(e){return e.fieldName===o&&e.kind===t})&&(i["agent__"+o]=e)}),i}function l(e){(e=e.data[0])&&(K.isEmpty(r)&&s(),K.isEmpty(r)||("track"===e.type?e.props.__sg__=r:(e.hasOwnProperty("eventProperties")||(e.eventProperties={}),e.eventProperties.__sg__=r)))}}();function zy(e,t,n){this.element=e,this.method="element"==t?"click":"hover"==t?"mouseover":t,this.step=n,this.guide=n.getGuide()}zy.prototype.add=function(){0===K.indexOf(this.guide.steps,this.step)&&!zy.shouldAttachHandler(this.guide,this.method)||lu(this.guide)&&!pu(this.guide)||this.setupElementEvent(this.element,this.method)},zy.prototype.remove=function(){this.teardownElementEvent(this.element,this.method)},zy.prototype.setupElementEvent=function(e,t){this.advanceFn||(this.advanceFn=K.compose(K.bind(this.teardownElementEvent,this,e,t),K.bind(this.step.advance,this.step))),zy.attach(this.step,e,t,this.advanceFn)},zy.prototype.teardownElementEvent=function(e,t){X.info("detach onGuideAdvanced",{contexts:["guide"]}),w(e,t,this.advanceFn,!0),this.step.removeTrigger(this)},zy.shouldAttachHandler=function(e,t){return!e.isActivatedByEvent(t)||Py.activates(e)||e.attributes.activation.selector!==e.steps[0].elementPathRule&&!!e.attributes.activation.selector},zy.attach=function(e,t,n,i){if(e){for(var r=zy.handlers=zy.handlers||{},o=r[e.id]=r[e.id]||[],a=0;a<o.length;++a){var s=o[a];t===s[0]&&n===s[1]&&(w(t,n,s[2],!0),o.splice(K.indexOf(o,s),1),a--)}o.push([t,n,i]),w(t,n,i,!0),I(t,n,i,!0)}};var Zy=430,Vy=200,Yy=15,Hy=null,Ky=function(){return fu()?cu:uu},Xy=function(e){return"#_pendo_g_"+e.id},Jy=function(e,t){Hy=null;var n,i,r,o,e=ie(e);return 0===e.height&&0===e.width?null:(n=t.guideElement,o=t.attributes.height,i=t.attributes.width,r=t.attributes.layoutDir,n.addClass(Ky()),o=hb(e,o,i,r),t&&(t.dim=o),n.css({width:o.width,height:o.height,left:o.left,top:o.top}),e.fixed&&n.css({position:"fixed"}),ee("._pendo-guide-container_",n).addClass(o.arrowPosition).css({top:o.content.top,left:o.content.left,width:o.content.width,height:o.content.height}),qy(n[0],o),n[0])},qy=function(e,t){var n=["top","right","bottom","left"],i="_pendo-guide-arrow-",r=i+"border-",o=t.arrowPosition,a=K.chain(n).filter(function(e){return e!==o}).map(function(e){return"border-"+e+"-width:"+C.TOOLTIP_ARROW_SIZE+"px;"}).value().join(""),s=ee("div._pendo-guide-arrow_",e).remove().findOrCreate("<div class='_pendo-guide-arrow_'></div>"),d=ee("div._pendo-guide-arrow-border_ ",e).remove().findOrCreate("<div class='_pendo-guide-arrow-border_'></div>");K.each(n,function(e){s.removeClass(i+e+"_").removeClass(e),d.removeClass(r+e+"_").removeClass(e)}),s.addClass(i+o+"_").addClass(o).css(a+"top:"+t.arrow.top+"px;left:"+t.arrow.left+"px;"),d.addClass(r+o+"_").addClass(o).css(a+"top:"+t.arrow.border.top+"px;left:"+t.arrow.border.left+"px;"),ee(e).append(s).append(d)},Qy=function(e,t){void 0===t&&(t=Hd),e.element=mu(e);var n=e.element;if(!n)return X.info("No element found for step: "+e.id),null;Do(n);var i=Jy(n,e);return null===i?null:(i.id=C.getTooltipDivId(e),ee(i).appendTo(oe()),t.push(i),I(i,"mouseover",K.partial(ee.addClass,i,"mouseover")),I(i,"mouseout",K.partial(ee.removeClass,i,"mouseover")),bu(n,i),db(e),n)},eb=null,tb=function(e){var t=!K.isEqual(e,eb);return eb=e,t},nb=null,ib=function(e){var t=!K.isEqual(e,nb);return nb=e,t};function rb(){ob=nb=eb=null}var ob=null,ab=function(e){var t=!K.isEqual(e,ob);return ob=e,t},sb={top:"north",left:"east",bottom:"south",right:"west"},db=function(e){try{var t,n,i,r,o,a,s,d;e.attributes&&e.attributes.blockOutUI&&e.attributes.blockOutUI.enabled&&(t=e.attributes.blockOutUI,(n=[]).push(e.element),i=Qu(n=n.concat(K.compact(K.flatten(K.map(t.additionalElements,function(e){return K.toArray(ee(e))}))))),o={top:r=t.padding||0,left:r,bottom:r,right:r},s=qu(a=Ju(),i,o),tb(i)||ib(a)||ab(s))&&(d={"z-index":t.zindex||1e4,position:"fixed"},t.bgColor&&(d["background-color"]=t.bgColor),t.opacity&&(d.opacity=t.opacity),K.each(s,function(e,t){ub(sb[t],K.extend({},e,d))}))}catch(e){X.info("Failed to add BlockOut ui",{contexts:["error"]})}},ub=function(e,t){e=ee("div._pendo-guide-tt-region-block_._pendo-region-"+e+"_")[0]||cb(e),ee(e).css(t)},cb=function(e){e=ee(document.createElement("div")).addClass("_pendo-guide-tt-region-block_").addClass("_pendo-region-"+e+"_"),ee("body").append(e)},lb=function(e){var t=K.isEqual(e,Hy);return Hy=e,!t},pb=function(e){var t,n,i=ie(e.element||mu(e));db(e),lb(i)&&(t=e.attributes.height,t=hb(i,t,n=e.attributes.width,e.attributes.layoutDir),(n=ee(Xy(e))).css({top:t.top,left:t.left,position:i.fixed?"fixed":""}),qy(n,t))},hb=function(e,t,n,i){var r=C.TOOLTIP_ARROW_SIZE,o={arrow:{border:{}},content:{top:r,left:r}},a=lo();return o.width=Math.min(n,a.width),o.height=t,o.content.width=o.width-2*r,o.content.height=o.height-2*r,o=mb(o=gb(o=fb(o,e,a,i=i||"auto"),e,a,i),e,a)},fb=function(e,t,n,i){return e.arrow.hbias=bc(t,n,i),e},gb=function(e,t,n,i){var r;return i&&"DEFAULT"!=i&&"auto"!=i&&(e.arrowPosition=i),e.arrowPosition||(i=t.top-Mr(),t=(r=t.left-Lr())+t.width,i<n.height/3?e.arrowPosition="top":i>2*n.height/3||"center"==e.arrow.hbias?e.arrowPosition="bottom":r<e.width&&n.width-t<e.width?e.arrowPosition="top":e.arrowPosition=e.arrow.hbias),e},mb=function(e,t,n){var i,r,o,a=e.height,s=e.width;return Qe()?et(e,t):("top"==e.arrowPosition||"bottom"==e.arrowPosition?(i=0,"top"==e.arrowPosition?(e.top=t.top+t.height,e.arrow.top=ke(9,6)?6:2,i=-1):"bottom"==e.arrowPosition&&(e.top=t.top-a,e.arrow.top=a-C.TOOLTIP_ARROW_SIZE-1,e.arrow.top+=6*!!ke(9,6),e.arrow.top+=8==d?-1:0,i=1),r=10+C.TOOLTIP_ARROW_SIZE,o=s-3*C.TOOLTIP_ARROW_SIZE-10,e.arrow.hbias==mc?(e.left=t.left+t.width/2-(10+2*C.TOOLTIP_ARROW_SIZE),e.arrow.left=r):e.arrow.hbias==vc?(e.left=t.left-s+t.width/2+(10+2*C.TOOLTIP_ARROW_SIZE),e.arrow.left=o):(e.left=t.left+t.width/2-s/2,e.arrow.left=s/2-C.TOOLTIP_ARROW_SIZE),!1!==e.arrow.floating&&(n=e.left+s-n.width,0<(n-=Math.max(0,e.arrow.left+n-o))&&(e.left-=n,e.arrow.left+=n),o=-e.left,0<(o-=Math.max(0,r-(e.arrow.left-o))))&&(e.left+=o,e.arrow.left-=o),e.arrow.border.top=e.arrow.top+i,e.arrow.border.left=e.arrow.left):(e.arrow.hbias==mc?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=5*!!ke(10,6),e.arrow.border.left=e.arrow.left-1):e.arrow.hbias==vc&&(e.left=Math.max(0,t.left-s),e.arrow.left=s-C.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=5*!!ke(10,6),e.arrow.left+=+(7==d&&6<=Oe),e.arrow.border.left=e.arrow.left+1),e.top=t.top-a/2+t.height/2,e.arrow.top=a/2-C.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e)},vb=function(){return C.TOOLTIP_ARROW_SIZE},yb={width:Zy,height:Vy,arrowSize:Yy};function bb(e){var t;return"tooltip"===this.type&&((t=this).attributes.height=t.attributes.height||C.TOOLTIP_DEFAULT_HEIGHT,t.attributes.width=t.attributes.width||C.TOOLTIP_DEFAULT_WIDTH,t.attributes.layoutDir=t.attributes.layoutDir||"DEFAULT",this.getTriggers=function(e){var t=this,n=t.element||mu(t);return!n&&e?[]:(e=(t.advanceMethod||"").split(","),this.triggers=K.map(e,function(e){return new zy(n,e,t)}),this.triggers)},this.removeTrigger=function(e){this.triggers=K.without(this.triggers,e),0===this.triggers.length&&(this.triggers=null)},this.canShow=function(){return!mf(t)&&!!e.canShowOnDevice()&&!t.isShown()&&t.canShowOnPage(Vf())&&bf(t)},this.after("render",function(){Qy(this,this.elements)&&(K.each(this.getTriggers(),function(e){e.add()}),wc.attachScrollHandlers(this,this.onscroll))}),this.reposition=function(){var e=this.attributes.width,t=this.attributes.height,n=this.attributes.layoutDir,i=this.guideElement,r=ee("._pendo-guide-container_",i),o=ie(this.element),t=hb(o,t,e,n);r.removeClass("top right bottom left").removeClass("_pendo-guide-container-top_ _pendo-guide-container-right_ _pendo-guide-container-bottom_ _pendo-guide-container-left_").addClass(t.arrowPosition).addClass("_pendo-guide-container-"+t.arrowPosition+"_"),ee("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),qy(i,t),i.css({top:t.top,left:t.left,height:t.height,width:t.width,position:o.fixed?"fixed":""}),this.dim=t,db(this)},this.onscroll=function(e){b(e.element)?(e.reposition(),so(e.elements[0],"display:block")):so(e.elements[0],"display:none")},this.teardownElementEvent=function(){K.each(this.triggers,function(e){e.remove()})},this.after("hide",function(){ee("._pendo-guide-tt-region-block_").remove(),rb()})),this}var Ib=500,wb=500,Cb="_pendo-guide-lb_",Sb=function(e,t){var n=!!ee("._pendo-backdrop_")[0];return K.get(t,"overlayDiv[0]")||(t.overlayDiv=ee(document.createElement("div")).addClass("_pendo-backdrop_")),!1==n&&(t.elements.push(t.overlayDiv[0]),t.overlayDiv.appendTo(oe())),Qe()&&t.overlayDiv.css({height:"100%",width:"100%",position:"absolute"}),e&&ee(t.overlayDiv).addClass("_pendo-onboarding_"),t.overlayDiv},Ab=function(e){var t=e.guideElement,n=C.TOOLTIP_ARROW_SIZE,i=e.attributes.height,e=e.attributes.width,e=Math.floor(e/2),i=Math.floor(i/2);t.addClass(Cb).css({top:"50%",left:"50%","margin-top":-i,"margin-left":-e}),ee("._pendo-guide-container_",t).css({bottom:n,right:n}),Qe()&&t.css({position:"absolute"})},Tb=function(e,t){void 0===t&&(t=Hd),e.element=mu(e),Ab(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=(Sb(n,e),e.guideElement);t.push(n[0]),n.appendTo(oe())},_b="_pendo-guide-mobile-lb_",Eb=function(e){e.guideElement.addClass(_b)},xb=function(e,t){void 0===t&&(t=Hd),e.element=mu(e),Eb(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=Sb(n,e),e=e.guideElement,i=C.TOOLTIP_ARROW_SIZE,i=(e.css({width:"",height:""}),ee("._pendo-guide-container_",e).css({bottom:i,right:i}));function r(e){e.preventDefault()}ee("._pendo-close-guide_",e).remove().prependTo(i),e.appendTo(oe()),t.push(e[0]),I(n[0],"touchmove",r),I(e[0],"touchmove",r)};function Rb(){var e=this;return/lightbox/i.test(e.type)&&(e.attributes.height=e.attributes.height||C.LB_DEFAULT_HEIGHT,e.attributes.width=e.attributes.width||C.LB_DEFAULT_WIDTH,e.after("render",function(){(fu()?xb:Tb)(e,e.elements)}),e.reposition=function(){fu()||e.guideElement.css({"margin-left":-Math.floor(e.attributes.width/2),"margin-top":-Math.floor(e.attributes.height/2)})}),e}var kb=500,Ob="_pendo-guide-banner_";function Nb(){var e=this;return"banner"===e.type&&(e.attributes.height=e.attributes.height||kb,e.attributes.position=e.attributes.position||"top",e.after("render",function(){var t=e.guideElement,n=C.TOOLTIP_ARROW_SIZE;t.css({width:""}).addClass(Ob).addClass("_pendo-guide-banner-"+e.attributes.position+"_"),hu()||t.addClass("_pendo-in_"),ee("._pendo-guide-container_",t).css({bottom:n,right:n}),e.element=mu(e),e.elements.push(t[0]),t.appendTo(oe())})),e}function Mb(e){var t=this,n="whatsnew",i="_pendo-guide-whatsnew-seen_",r="active",o=1e3;return t.type===n&&(K.extend(t,{isShown:K.constant(!1),launch:d,onShown:d,render:function(){var e=t.guideElement,n=t.attributes.height;e&&e.html()||(e=ee(document.createElement("div")).attr("id",Sf(t)).addClass("_pendo-guide-whatsnew_").html(t.getContent()),K.isNumber(n)&&!t.attributes.autoHeight&&e.height(n),t.seenState===r&&e.addClass(i),t.guideElement=e)},seen:s}),K.extend(e,{addToLauncher:function(){var n=t.guideElement;n&&!Co(n[0])&&(ee("._pendo-launcher_ #launcher-"+t.guideId).html("").append(n),Uu.runCustomScripts(t,e))},isReady:a}),t.after("show",s)),t;function a(){return!!t.guideElement}function s(){hu()||a()&&t.seenState!==r&&function(e){var t,n;if(b(e,/(auto|scroll|hidden)/))return(t=_o(e))?(t=re(t),e=re(e),n=t.top+Math.floor(t.height/3),e.bottom<=t.bottom||e.top<=n):1}(t.guideElement[0])&&(Of(t.guideId,t.id,Q(),n,e.language,{last_updated_at:t.lastUpdatedAt}),t.seenState=r,K.delay(function(){t.guideElement.addClass(i+" out")},K.isNumber(t.attributes.seenDelay)?t.attributes.seenDelay:o))}function d(){}}var Lb="_pendo-launcher-searching_",Fb="._pendo-launcher-search-box_ input";function Pb(){var e={text:"",highlight:function(t){return e.text?(t||"").replace(RegExp(e.text,"gi"),"<strong>$&</strong>"):t},clear:function(){ee(Fb).each(function(){this.value=""})}};return this.data&&this.data.enableSearch&&this.data.enableSearch&&(this.data.search=e,C.disableGuideCenterContentSearch||this.before("update",$b),this.before("update",function(){e.text=Ub().join(" ");var t=ee("._pendo-launcher_");e.text?t.addClass(Lb):t.removeClass(Lb)})),this}function Gb(){var e;if(C.guideWidget)return(e=C.guideWidget.data)&&e.enableSearch}var Bb,Db=function(e){return e&&K.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e&&e.launchMethod&&0<=e.launchMethod.indexOf("launcher")};function Wb(){return 0<Ub().length}function Ub(){var e;return Gb()&&(e=ee(Fb)[0])&&0<(e=e.value).length?(e=gt.call(e),[].concat(K.compact(e.split(" ")))):[]}function $b(e){if(!m.get("disablePrefetch"))return J.all(K.map(e,function(e){return e.fetchContent()}))}function jb(e){var t=Ub();return 0===t.length?e:(t=K.map(t,K.partial(zb,e)),K.union.apply(K,t))}function zb(e,t){return X.info("doing search on "+t,{contexts:["launcher","search","guides"]}),e=e||A(),t&&0!==t.length?K.chain(e).filter(Db).map(function(e){return e.searchFor(t)}).compact().sortBy(function(e){return K.indexOf(["tag","name","content"],e.field)}).pluck("guide").value():e}var Zb=function(){var e,t=ou();Cu()?C.guideWidget&&C.guideWidget.enabled&&b0(e=n0(t),!0):(v0(),(t=i0(n0(e=Qd(t))))!==Bb&&q.dispatch("frames/changeGuideList",e),Bb=t)},Vb=330,Yb=310,Hb="launcher-closed",Kb=null,Xb=null,Jb=!1,qb="_pendo-launcher-active_",Qb=null,e0=function(){return""};function t0(e,t){e0=t}function n0(e){return jb(K.filter(e||A(),Db))}function i0(e){return Rt(K.map(e,function(e){var t=e.isWhatsNew()?[]:K.pluck(e.steps,"seenState");return{id:e.id,seenState:t}}))}function r0(e){var t=this,n=e.launchType||"badge",i=(K.extend(t,{show:function(){"badge"===n&&ee(t.element).css("display: ;")},hide:function(){ee(t.element).css("display: none;")},wrap:function(){var e,n=t.element;n&&/^img$/i.test(n.nodeName)&&(e=ee(document.createElement("div")).addClass(n.className).append(n).appendTo(oe()),n.className="",t.element=e[0])},dispose:function(){ee.removeNode(t.element)},setActive:function(e){e?ee(t.element).addClass(qb):ee(t.element).removeClass(qb)}}),e),e=i.position||"bottom-right",r=document.createElement("img");ee(t.element=r).addClass("_pendo-launcher-badge_").addClass("_pendo-launcher-badge-"+e+"_"),i.launcherBadgeUrl&&(r.src=Fu(i.launcherBadgeUrl)),r.onerror=function(e){X.info("[Agent] Error! Unable to load guide center image "+i.launcherBadgeUrl),X.critical("ERROR in when attempting to render guide center badge image",{imgSrc:i.launcherBadgeUrl})},Qe()&&(I(r,"mouseover",function(e){ee(r).addClass("_pendo-launcher-badge-active_")}),I(r,"mouseout",function(e){ee(r).removeClass("_pendo-launcher-badge-active_")}),ee(r).css({position:"absolute"})),oe().appendChild(r)}function o0(e){function t(){return"element"===e.launchType&&e.launchElement?e.launchElement:"._pendo-launcher-badge_"}function n(e){var e=Ui(e),n=t();ee(e).closest(n).length&&(T0()?h.write(Hb,"yes",864e6):C.guideWidget.position(e),R0())}C.guideWidget.removeCountBadge=function(){ee("._pendo-launcher-whatsnew-count_").remove()},e&&e.elementMatch&&(e.launchElement=e.elementMatch.selection),K.extend(this,{getLauncherTarget:function(){return ee(t())[0]},dispose:function(){w(document,"click",n),e&&e.whatsnew&&e.whatsnew.enabled&&k0()}}),I(document,"click",n)}function a0(){var e,t="bottom-right",n="bottom-left";return this.update=function(t,n){return(t=i0(n=n?t:n0(t))+Rt(Ub()))!==e&&(e=t,this.updateLauncherContent(n)),g0(),0<n.length},this.updateLauncherContent=w0,this.guideStatus=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":"not-started"},this.render=function(){var e=this.data||{},t=(Kb=new r0(e),e.height||Yb),n=(e.enableSearch&&(t+=Qe()?50:39),this&&!this.hidePoweredBy&&(t+=40),e.addHeight&&(t+=e.addHeight),this.height=t,e.width||Vb),i=(e.addWidth&&(n+=e.addWidth),this.width=n,ee(document.createElement("div")).addClass("_pendo-launcher_")),r=(Xb=i[0],ie(Kb.element)),r=hb(r,t,n),o=(i.css({width:n,height:t}),C.TOOLTIP_ARROW_SIZE),n=ee(document.createElement("div")).addClass("_pendo-guide-container_ "+r.arrowPosition).addClass("_pendo-guide-container-"+r.arrowPosition+"_").css({top:o,left:o,width:n-2*o,height:t-2*o}).appendTo(i),t=I0(),o=Fu(u0(this.template(t))),t=ee(document.createElement("div")).addClass("_pendo-guide-content_").html(o).appendTo(n);e.addUISection&&e.addUISection(i[0]),Yh(i[0],function(){E0(),h.write(Hb,"yes",288e5)}),t.on("click",function(e){var t=ee(Ui(e)).closest("._pendo-launcher-item_");t&&t.length&&(t=T((t=/^launcher-(.+)$/.exec(gt.call(t.attr("id"))))&&t[1]))&&!t.isWhatsNew()&&(xf(t.steps[0],"launcher"),E0(),Zd(e))}),Qe()&&(ee("._pendo-launcher-header_",i).css({padding:"10px","margin-right":"10px","margin-left":"10px"}),ee("._pendo-launcher-footer_",i).css({"border-top":"1px solid #bbb"}),i.css({position:"absolute"})),i.find("[pendo-style]").each(function(){var e=this.getAttribute("pendo-style");ee(this).css(e)}),i.appendTo(oe()),K.isFunction(this.script)&&this.script(this),e.autoHeight&&e.autoHeight.enabled&&!ke(9,6)&&(o=e.autoHeight.offset||100,i.css({height:"calc(100% - "+o+"px)",maxHeight:e.height,minHeight:e.height/2}),ee("._pendo-guide-container_."+r.arrowPosition).css({maxHeight:e.height-30,minHeight:e.height/2-30,height:"calc(100% - 30px)"}))},this.position=function(e){var i,r,o,a,s,d;e&&(i=this.data,r=hb(e=ie(e),this.height,this.width),o=ee(Xb),"badge"===(a=i.launchType||"badge")?(s=i.position,0>K.indexOf(d=[t,n,"top-left","top-right"],i.position)&&(s=t),K.each(d,function(e){o.removeClass("_pendo-launcher-"+e+"_")}),o.addClass("_pendo-launcher-"+s+"_"),r.arrow=r.arrow||{},r.arrowPosition=K.contains([t,n],s)?"bottom":"top",r.arrow.hbias=K.contains([n,"top-left"],s)?"left":"right",r.arrow.floating=!1):"element"===a&&o.css({top:r.top,left:r.left,height:r.height,width:r.width,position:e.fixed?"fixed":"absolute"}),ee("._pendo-guide-arrow_,._pendo-guide-arrow-border_",o).remove(),mb(r,e,{width:1/0,height:1/0}),qy(o[0],r),o.find("._pendo-guide-container_").removeClass("top left bottom right").addClass(r.arrowPosition))},this.toggle=R0,this}function s0(){var e,t=this;return t.data&&t.data.onboarding&&(e=t.onboarding=t.onboarding||{},t.before("update",function(n){var n=K.filter(n,Qv),i=K.filter(n,function(e){return"complete"==t.guideStatus(e)}),n=e.total=n.length,i=(e.percentComplete=0<n?Math.round(i.length/n*100):0,ee("._pendo-launcher_,._pendo-launcher-badge_"));n?(i.addClass("onboarding"),i.addClass("_pendo-launcher-onboarding_")):(i.removeClass("onboarding"),i.removeClass("_pendo-launcher-onboarding_"))}),t.getOnboardingState=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":e.isNotStarted()?"not-started":null}),t}function d0(){var e=this,t=ee(document.createElement("div")).addClass("_pendo-launcher-whatsnew-count_");return e.data&&e.data.whatsnew&&e.data.whatsnew.enabled&&(e.before("updateLauncherContent",function(t){(t=K.filter(t,function(e){return e.isWhatsNew()})).sort(n),e.data.whatsnew.total=t.length,e.data.whatsnew.guides=t}),e.after("update",function(n){var i=e.data.whatsnew.guides,i=(K.each(i,function(e){e.show()}),K.find(i,function(e){if(!e.isReady())return!0;e.addToLauncher()}),K.filter(i,function(e){return"active"!==e.steps[0].seenState}).length);i!==e.data.whatsnew.unseenCount&&(t.html(i).css({display:i?"":"none"}),e.data.whatsnew.unseenCount=i,ee("span._pendo-launcher-whatsnew-count_").text(e.data.whatsnew.unseenCount))}),e.after("render",function(){y0()?t.appendTo(this.data.launchElement):(Kb.wrap(),t.appendTo(Kb.element))})),e;function n(e,t){var n=function(e,t){return e=e.showsAfter||e.publishedAt||0,(t.showsAfter||t.publishedAt||0)-e}(e,t);return 0===n?(e=e.name.toLowerCase(),(t=t.name.toLowerCase())<e?1:e<t?-1:0):n}}function u0(e){return e=K.isString(e)?e.replace(/\s+(style)=/gi," pendo-style="):e}function c0(e,t){var n=e&&e.data,t=K.filter(t,function(e){return(e=K.first(e.steps))&&"launcher"===e.type}),t=K.first(K.sortBy(t,function(e){return-e.lastUpdatedAt}));return t&&n&&(t=K.first(t.steps),K.extend(n,K.pick(t,"contentUrl","contentUrlCss","contentUrlJs"),t.attributes),K.defaults(n,{whatsnew:{},knowledgebase:{}}),n.id=t.guideId+t.id),e}function l0(e){var t=e&&e.data||{};return!0!==m.get("preventCodeInjection")&&(t.contentUrlJs||t.contentUrl)?Ru.verify(t).then(function(){return Bu.load(t)}).then(function(n){return t.template=n.content,K.extend(e,n)}):J.resolve()}function p0(e,t){var n=m.getLocalConfig("contentHost");return n&&(e=(e=e.replace(/^pendo-static-\d+\.storage\.googleapis\.com$/,n).replace(/^pendo-\w+-static\.storage\.googleapis\.com$/,n).replace(/^cdn\.pendo\.io$/,n)).replace(/^https?:/,"").replace(/^\/\//,""),!/\./.test(e))&&!/^localhost/.test(e)&&/^\//.test(e)?t.host+e:e}function h0(e,t){e.contentHostUrl&&(e.contentHostUrl=p0(e.contentHostUrl,location)),Qb=new o0(e);var n=a0.create(C.guideWidget);return K.isFunction(n.template)||(n.template=e.template?K.template(e.template):e0),n.render(),n.position(Qb.getLauncherTarget()),t&&n.toggle(),n}a0.create=function(e){return K.reduce(a0.behaviors,function(e,t){return t.call(e)},e)},a0.behaviors=[Zl,a0,ku.Launcher,Pb,s0,d0];var f0=function(){Xb&&(ee.removeNode(Xb),Xb=null),Qb&&(Qb.dispose(),Qb=null),Kb&&(Kb.dispose(),Kb=null)},g0=function(){(!y0()&&(_0()||Wb())?m0:v0)()},m0=function(){Kb&&Kb.show()},v0=function(){y0()||E0(),Kb&&Kb.hide()},y0=function(){return!(!C.guideWidget||!C.guideWidget.data||"element"!==C.guideWidget.data.launchType)},b0=function(e,t){if(C.guideWidget&&K.isFunction(C.guideWidget.update))return C.guideWidget.update(e,t)},I0=function(e){var t=rl(),t=K.extend({hidePoweredBy:!1,guides:[],guide:{},step:{},metadata:Et(t)},C.guideWidget);return t.data=K.extend({},t.data),e&&(t.guides=e),t};function w0(e){var t=C.guideWidget.template||e0,e=I0(e),e=ee(document.createElement("div")).html(u0(t(e))),n=e.find("._pendo-launcher-guide-listing_"),t=e.find("._pendo-launcher-footer_").html(),e=e.find("._pendo-launcher-search-results_").html();ee("._pendo-launcher_ ._pendo-launcher-guide-listing_").each(function(e,t){ee(e).html(n.eq(t).html())}),ee("._pendo-launcher_ ._pendo-launcher-footer_").html(t),ee("._pendo-launcher_ ._pendo-launcher-search-results_").html(e)}var C0=function(e){var t=document.createElement("div"),n=(ee(t).addClass("_pendo-launcher-item_"),ee(t).attr("id","launcher-"+e.id),document.createElement("a"));return n.href="#",n.innerHTML=e.name,t.appendChild(n),t},S0=K.compose(g0,function(e,t){var n,i;Db(e)&&(n=ee("._pendo-launcher_ ._pendo-launcher-guide-listing_")[0])&&(e=(i=ee("#launcher-"+e.id)).length?i[0]:C0(e),i=0<i.length,K.isNumber(t)&&(i=ee("._pendo-launcher-item_"))[t]?e.id!=i[t].id&&n.insertBefore(e,i[t]):n.appendChild(e))}),A0=function(){return!!Xb&&!Jb},T0=function(){return ee(Xb).hasClass(qb)},_0=function(){return 0<ee("._pendo-launcher-item_").length},E0=function(){var e;Xb&&(e=ee(Xb))&&e.hasClass(qb)&&(e.removeClass(qb),Kb)&&Kb.setActive(!1)},x0=function(){var e;Xb&&(e=ee(Xb))&&!e.hasClass(qb)&&(e.addClass(qb),Kb)&&Kb.setActive(!0)},R0=function(){A0()&&(T0()?E0:x0)()};function k0(){ee("._pendo-launcher-whatsnew-count_").remove()}var O0=function(){try{var e=C.guideWidget||{},t=e.data||{},n=t.device||{desktop:!0,mobile:!1,iframe:!1};f0(),!fu()&&!n.desktop||fu()&&!n.mobile||ma()&&!n.iframe||e.enabled&&(h0(t),v0())}catch(e){X.critical("ERROR while initializing launcher",{error:e})}},N0=function(e){e.defaultLauncher=t0,e.toggleLauncher=R0,e.showLauncher=x0,e.hideLauncher=E0,e.removeLauncher=f0,e.initLauncher=O0,e.createLauncher=h0,e._addGuideToLauncher=S0,e.launcherToolTipDiv=Xb},M0=function(e){e.designer&&(e.designer.createLauncher=h0,e.designer.removeLauncher=f0,e.designer.addGuideToLauncher=S0,e.designer.updateLauncherContent=w0)},L0=function(e){e.debugging&&(e.debugging.getLauncherGuides=n0)},F0=function(){O0()},P0=function(){M0(C)},G0=function(){L0(C)},D0=function(e){return l0(c0(C.guideWidget,e))},B0=function(e,t){N0(e),t.Events.on("guidesLoaded",F0),t.Events.on("designerLaunched",P0),t.Events.on("debuggerLaunched",G0),t.GuideLoop.addUpdatePhase(Zb),Cg(D0),t.agentStorage.registry.addLocal(Hb)},W0=function(e,t){Sg(D0),t.GuideLoop.removeUpdatePhase(Zb),t.Events.off("guidesLoaded",F0),t.Events.off("designerLaunched",P0),t.Events.off("debuggerLaunched",G0)};function U0(){return -1<K.indexOf(Mu.behaviors,bb)}var $0=function(){var e,t,n,i;return mm.Extensions.API.addTopic("Launcher",{addBehavior:function(e){a0.behaviors.push(e)}}),{name:"P1Guides",initialize:function(d,u){var c;n=u,e=(t=d).dom,i=[bb,Rb,Nb,Mb,a,s,o,r],U0()||(c=K.indexOf(Mu.behaviors,ry),Mu.behaviors.splice.apply(Mu.behaviors,[c,0].concat(i)),u.Events.guideLoopStopped.on(v0),d.TOOLTIP_DEFAULT_WIDTH=yb.width,d.TOOLTIP_DEFAULT_HEIGHT=yb.height,d.TOOLTIP_ARROW_SIZE=yb.arrowSize,d._showElementGuide=Qy,d._createTooltip=Jy,d._get_tooltip_dimensions=hb,d.LB_DEFAULT_WIDTH=Ib,d.LB_DEFAULT_HEIGHT=wb,d._showLightboxGuide=Tb,B0(d,u))},teardown:function(){W0(t,n),n.Events.guideLoopStopped.off(v0),i.forEach(function(e){0<=(e=K.indexOf(Mu.behaviors,e))&&Mu.behaviors.splice(e,1)}),i=[]}};function r(){var e=this;return"tooltip"!==e.type||e.domJson||(e.checkPlacement=function(){pb(e)}),e}function o(){var t=this;return t.attributes&&t.attributes.autoHeight&&(t.after("render",function(){t.guideElement&&t.guideElement.length&&(t.resize(),t.attachEvent(t.guideElement[0],"load",function(){t.resize()}))}),t.resize=function(){var n,i=vb(),r=t.guideElement;r&&(n=e("._pendo-guide-container_",r),"tooltip"==t.type||Qe()&&"lightbox"==t.type?n.css({width:t.attributes.width-2*i,height:""}):n.css({right:i,bottom:""}),t.attributes.height=n.height()+2*i,r.height(t.attributes.height),t.reposition())}),t}function a(e){var t=this;return t.domJson||t.domJsonpUrl||t.after("render",function(){t.guideElement&&t.guideElement.length&&Yh(t.guideElement[0],function(){e.isOnboarding()&&!confirm("Are you sure you want to stop this tutorial?")||uf(t)})}),t}function s(){var e=this;return e.hideCredits||e.domJson||e.domJsonpUrl||e.after("render",function(){gf(e.guideElement[0])}),e}}(),j0=function(){var e,t;return{name:"Branding",initialize:function(i,r){e=i,(t=r).ConfigReader.get("isPendoFree")&&t.Events.on("guideSeen",n)},teardown:function(){t.Events.off("guideSeen",n)},addBranding:i};function n(t){i(e,t)}function i(e,t){var n,i,r,t=t.data[0].props;t.step_poll_types&&-1<t.step_poll_types.indexOf("NPSRating")&&(e=-1<(t=e.findGuideById(t.guide_id).steps[0].guideElement[0].lastElementChild).dataset.verticalAlignment.indexOf("Bottom"),n=""!==t.style.width,(i=document.createElement("a")).href="https://www.pendo.io/pendo-free/nps?utm_source=pendo_app&utm_medium=branded-nps&utm_campaign=free-branded-nps",i.target="_blank",(r=document.createElement("img")).setAttribute("src",Sr()+"/img/nps-branding.png"),i.appendChild(r),i.style.display="inline-block",(r=document.createElement("div")).style.lineHeight=0,r.style.padding="8px",e&&(r.style.position="absolute",r.style.bottom="100%"),n&&(r.style.paddingLeft=0),r.append(i),t.append(r))}}(),z0=function(){var e,t,n,i,r="automation",o=250,a=500,s=0,d=10;return{name:"ActionAutomation",automationQueue:void 0,initialize:function(i,o){n=o,e=(t=i)._,this.automationQueue=[],o.EventRouter.registerAction(r,i._.bind(u,this))},teardown:function(){n.EventRouter.deregisterAction(r),this.automationQueue=[]},guideActivity:u,getAutomationFromGuide:function(n,i){return e.reduce(i,function(i,r){var o=e.find(n,function(e){return e.id===r});return o?i.push(o):t.log("could not find automation for "+r,"debug"),i},[])},getAutomationConfigs:function(e){if(!e||e.length<=0||!i)return[];var n=i.guide,r=i.step;return n&&r&&(r=n.automations)&&r.length?(e=(r=this.getAutomationFromGuide(r,e))[r.length-1],this.isAutomationInQueue(e))?(t.log("Automation is already in queue autoId: "+e.id+", guideId: "+n.id,"debug"),[]):r:[]},getTarget:function(e){return e=e.target.elementPathRules,(e=t.Sizzle(e,document))&&e[0]},getElement:function(e,t){return void 0===t&&(t=d),new Vt((function(n){return Dt((function(){var i=this.getTarget(e);i&&!i.disabled||t<1?n(i):this.getElement(e,t-1).then(function(e){n(e)})}).bind(this),o)}).bind(this))},getValue:function(e){return e.value},injectText:function(e,t){"INPUT"===e.tagName&&(n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value")),"TEXTAREA"===e.tagName&&(n=Object.getOwnPropertyDescriptor(window.HTMLTextAreaElement.prototype,"value")),n&&"function"==typeof n.set&&n.set.call(e,t),e.value=t;var n=new InputEvent("input",{bubbles:!0,data:t[t.length-1]}),t=(n.simulated=!0,e.dispatchEvent(n),new InputEvent("change",{bubbles:!0}));t.simulated=!0,e.dispatchEvent(t)},isAutomationInQueue:function(t){return!!e.find(this.automationQueue,function(e){return t.id===e.id})},popQueue:function(){var e=s,n=this.automationQueue[0];return"autoclick"===n.type&&(e=a),Dt((function(){return this.getElement(n,d).then((function(e){if(e)if(e.disabled)this.automationQueue=[],t.log("automation target found but disabled. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug");else{switch(n.type){case"autofill":var i=this.getValue(n);this.injectText(e,i);break;case"autoclick":e.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0,cancelable:!0})),e.click()}this.automationQueue.shift(),this.automationQueue.length&&this.popQueue()}else this.automationQueue=[],t.log("automation target element not found. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug")}).bind(this))}).bind(this),e)},setActive:function(e){i=e}};function u(n){var i;n.step&&(this.setActive({guide:n.step.guide,step:n.step}),n.params)&&((n=e.find(n.params,function(t){return"automationIds"===t.name&&e.isArray(t.value)&&t.value.length}))?(n=this.getAutomationConfigs(n.value),i=!this.automationQueue.length,this.automationQueue=this.automationQueue.concat(n),i&&this.popQueue()):t.log("no automation ids were found","debug"))}}();function Z0(e,t){return"undefined"!=typeof Proxy&&K.isFunction(t)?new Proxy(e,{get:function(e,n){if("textContent"===n)return t(e);if("parentNode"===n){var i=e[n];if(e.ownerDocument!==i)return Z0(e[n],t)}return K.isFunction(e[n])?function(){return e[n].apply(e,arguments)}:e[n]}}):e}var Y0,V0=function(){var e,t,n,i,r,o=wi(function(e){var r;n.eventProperties&&n.eventProperties.length&&(r=function e(r){for(var o,a=i.ConfigReader.get("eventPropertyMatchParents"),d=v(),u={},f=0;f<n.eventProperties.length&&v()-d<50;f++)if(o=n.eventProperties[f],n._.any(o.featureRules,function(e){try{return s(a,t)(r,e)}catch(e){return!1}}))for(var h=0;h<o.eventPropertyRules.length&&v()-d<50;h++){var g=o.eventPropertyRules[h];if(!g.name)return;u[g.name]=p(g,r)}if(50<v()-d){if(a&&t===n._.identity&&n._.isFunction(n.getText))return n.log("switching event property collection to fast text implementation"),t=function(e){return Z0(e,function(e){return n.getText(e,128)})},e(r);l(50,o)}return u}(e.target),K.pairs(r).forEach(function(t){var n=t[0],t=t[1];e.addEventProperty(n,t)}))}),a=wi(function(){var t={};if(e)return{};var r=i.ConfigReader.get("eventPropertyConfigurations");return!r||n._.isEmpty(r)||(t=function(e){for(var t,n=v(),i={},r=0;r<e.length&&v()-n<50;r++){if(!(t=e[r]).name)return;var o=p(t);o&&(i["_pendo_"+t.name]=o)}return 50<v()-n&&l(50,t),i}(r),n._.isEmpty(t))?{}:t});return{name:"EventProperties",initialize:function(r,o){i=o,t=(n=r)._.identity,e=!1,n.getEventPropertyTarget=f,n.previewEventProperty=p,i.Events.onClickCaptured.off(d),i.Events.onClickCaptured.on(d),i.Events.ready.on(u)},teardown:function(){i.Events.onClickCaptured.off(d),i.Events.ready.off(u),i.store.dispatch("location/removeInternalTransforms",r),r=[],i.store.dispatch("location/stopPolling")},collectClickEventProperties:o,collectEventProperty:p,collectPageEventProperties:a,getEventPropertyTarget:f,addPageEventProperties:u};function s(e,t){return e?function(e,i){return 0<n.dom(t(e)).closest(i).length}:function(e,t){return n.Sizzle.matchesSelector(e,t)}}function d(e){o(e.data[0])}function u(){var e;r=(e=i.ConfigReader.get("eventPropertyConfigurations"))&&!n._.isEmpty(e)?[new Pv("search","AddTo",function(){return a()})]:[],i.store.dispatch("location/addInternalTransforms",r),0<r.length&&i.store.dispatch("location/startPolling")}function l(t,i){n.log("event property collection disabled; collection took greater than "+t+" milliseconds."),t="ERROR event property collection exceeded time limit.",i.featureId?t+="\n For feature with id: "+i.featureId:t+="\n For page event with name: "+i.name,X.critical(t),i.featureId?n.eventProperties=[]:e=!0}function p(e,t){if(e.path)return t=f(e,t),n._.get(t,e.path,void 0)}function f(e,t){if((e=e.source||e.selector)&&t){for(var i,r=e,o=t;!i&&o;){try{if((i=n.Sizzle.matchesSelector(o,r)?o:n.Sizzle(r,o)[0])&&("password"===i.type||"hidden"===i.type))return}catch(e){return}o=c.getParent(o)}return i}return e?(t=n.Sizzle(e)[0])&&("password"===t.type||"hidden"===t.type)?void 0:t:window}}();function H0(){return{store:q,ConfigReader:m,getState:function(){return JSON.stringify(q.state)},getEventCache:function(){return[].concat(wa)},getAllGuides:function(){return[].concat(A())},getAutoGuides:function(){return yl.sortAndFilter(A(),C.autoOrdering)},getBadgeGuides:function(){return K.filter(A(),lu)},getLauncherGuides:function(){return[]},getEventHistory:function(){return[]},getAllFrames:function(){return q.getters["frames/allFrames"]()},getChannelType:function(){return q.getters["frames/channelType"]()},isStepShownInFrame:function(e,t){return q.getters["frames/isShownInFrame"]()(e,t)},setActiveGuides:eu,getBody:ee.getBody,isMobileUserAgent:l.isMobileUserAgent,areGuidesDelayed:zg,doesElementMatchContainsRules:wf,getMetadata:rl,isStagingServer:U,AutoDisplay:yl,isLeader:Cu,Events:y}}function K0(){var e;Yl().enabled&&(q.commit("debugger/debuggingEnabled",!0),X0(),ee("#pendo-client-debugger").length||(e=m.get("agentDebuggerPluginLoader"),mm.restartDebugger?mm.restartDebugger():"function"==typeof e?e():((e=document.createElement("script")).src=Te(C).createScriptURL(Ar("debugger-plugin.min.js")),ee.getBody().appendChild(e)),y.debuggerLaunched.trigger()))}function X0(){Y0=Y0||H0(),C.debugging=Y0}function J0(e){var t;return Hl()?e?t:"debugging already enabled":Cu()?((t=Yl()).enabled=!0,h.write(Vl,JSON.stringify(t),null,!0),K0(),e?t:"debugging enabled"):void 0}function q0(){if(!Hl())return"debugging already disabled";q.commit("debugger/debuggingEnabled",!1);var e=Yl();return e.enabled=!1,h.write(Vl,JSON.stringify(e),null,!0),C.debugging=null,delete C.debugging,ee("#pendo-client-debugger").remove(),"debugging disabled"}K.extend(Cv,Y0);var Q0=function(e,t,n){var i;return t.getters["frames/leaderExists"]()?n.resolve():(i=n.defer(),e.on("leaderChanged",function(){i.resolve()}),i.promise)},eI=function(){var e,t;return{name:"DebuggerLauncher",initialize:function(i,r){var o=r.Events,a=r.q;Q0(o,t=r.store,a).then(function(){t.dispatch("debugger/init"),t.getters["frames/isLeader"]()&&K0(),ia("pendo-debugger::launch",function(e,t){e.config.apiKey!==i.apiKey||(t.source.postMessage({type:"pendo-debugger::ready",apiKey:i.apiKey},t.origin),Hl())||J0(!1)})}),window.addEventListener&&window.addEventListener("securitypolicyviolation",n),(e=i).isDebuggingEnabled=function(e){return Hl(e=void 0!==e&&e)},i.enableDebugging=J0,i.disableDebugging=q0,i.addDebuggingFunctions=X0},teardown:function(){ra("pendo-debugger::launch"),window.removeEventListener("securitypolicyviolation",n),e.debugging&&e.debugging.teardown&&e.debugging.teardown(),q0()}};function n(e){var n=e.blockedURI,i=e.documentURI,r=e.originalPolicy,e=e.violatedDirective;n&&-1!==n.indexOf("pendo")&&t.dispatch("debugger/onCspError",{blockedURI:n,documentURI:i,originalPolicy:r,violatedDirective:e})}}(),tI=function(){var e,t,n,i,r,o,a,s,d,u,c=0,l=[],p=100,f=4,h=500,g=["TEXTAREA","INPUT"],m=!0,v={},y="previous_page_loads",b="errorClickLogging",I=1500,w=!1;return{name:"FrustrationEvent",initialize:function(t,n){r=(u=t)._,c=0,l=[],o=[],v={},w=(e=n).ConfigReader.get(b),this.detachErrorEvent=e.attachEvent(window,"error",N,!0),this.detachDocumentEvents=function(){for(var t=qt(qt([],["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],!0),["visibilitychange","selectionchange","scroll"],!1),n=[],i=0;i<t.length;i++)switch(t[i]){case"selectionchange":n.push(e.attachEvent(window,t[i],x,!0));break;case"visibilitychange":n.push(e.attachEvent(window,t[i],function(){S(250)},!0));break;default:n.push(e.attachEvent(window,t[i],S,!0))}return n}(),e.Events.on("eventCaptured",L),e.agentStorage.registry.addSession(y),u.sniffer.MutationObserver&&(a=new(t=Lt("MutationObserver"))(A)).observe(u.dom.getBody(),{childList:!0,attributes:!0,subtree:!0})},teardown:function(){if(e.Events.off("eventCaptured",L),this.detachErrorEvent&&(this.detachErrorEvent(),this.detachErrorEvent=null),this.detachDocumentEvents){for(var t=0;t<this.detachDocumentEvents.length;t++)this.detachDocumentEvents[t]();this.detachDocumentEvents=null}a&&a.disconnect()},addErrorClickLog:_,getErrorEventTarget:O,checkErrorEvent:N,observeDOMMutation:A};function C(e){void 0===e&&(e="undefined"==typeof performance||"function"!=typeof performance.now?1/0:performance.now()),(l=r.filter(l,function(t){return e-t.timestamp<=p})).length&&Dt(C,p)}function S(e){void 0===e&&(e=h),m=!1,r.each(v,function(e){clearTimeout(e)}),v={},Dt(function(){m=!0},e)}function x(){var e=document.getSelection().toString();(s||e.length)&&(S(),s=!!e.length)}function A(e){e.length&&S()}function E(e){return e&&!(e instanceof HTMLScriptElement&&e instanceof HTMLLinkElement&&e instanceof HTMLBodyElement)}function T(e){return e&&E(e.element)}function k(e,t){var n=e.frustrationTypes,n=void 0===n?[]:n;n.includes(t)||(n.push(t),e.frustrationTypes=n)}function _(e,t){var n=t.detail,n=void 0===n?{}:n,n=(T(n)&&n.error?n.error:t).message;n&&n.length>I&&(n=n.substring(0,I)),e.errorClickLog=n}function R(e,a){var d,u,f=a.target&&"A"===a.target.tagName&&a.target.hasAttribute("href"),y=a.target&&!g.includes(a.target.tagName);m&&!s&&y&&!f&&(d=e,v[u=Dt(function(){delete v[u],k(d,"deadClick")},h)]=u),9<l.length&&l.pop(),l.unshift({target:a.target,activeElement:document.activeElement,browser_time:e.browser_time,timestamp:a.timeStamp}),Dt(C,p),r.each(o,function(e){N(e)}),t?(y=a,e.browser_time-t<=1e3&&30>=Math.abs(n-y.x)&&30>=Math.abs(i-y.y)?c++:(c=1,n=a.x,i=a.y),t=e.browser_time,4===c&&(t=null,k(e,"rageClick"))):(t=e.browser_time,n=a.x,i=a.y,c=1)}function O(e){if(E(e.target))return T(e=void 0===(e=e.detail)?{}:e)?e.element:E(document.activeElement)?document.activeElement:void 0}function N(e){var t,n,i,a=O(e);a&&((t=r.find(l,function(t){return(t.target===a||t.activeElement===a)&&e.timeStamp-t.timestamp<p}))?(i=r.find(u.buffers.events,n=function(e){return e.browser_time===t.browser_time&&"click"===e.type})||r.find(u.buffers.silos,function(e){return r.find(e,n)}))&&(k(i,"errorClick"),w)&&_(i,e):(r.contains(o,e)||o.push(e),o.length>f&&o.pop()))}function M(t){var n;null!=(n=e.sessionStorage.getItem(y))&&0<n.length&&(n=JSON.parse(n)),d=r.isArray(n)?n:[],function(e){var t,n;if(!(d.length<2))return t=d[0],n=d[1],t&&n&&t.url&&n.url&&t.browser_time&&n.browser_time?t.url===e.url&&e.browser_time-n.browser_time<=7e3&&n.url!==e.url:void 0}(t)&&k(t,"uTurn"),2===d.length&&d.shift(),d.push({url:t.url,browser_time:t.browser_time}),n=d,e.sessionStorage.setItem(y,JSON.stringify(n))}function L(e){var t=e.data[0],e=e.data[1],e=("click"===t.type&&e&&R(t,e),"load"===t.type&&M(t),"submit"!==t.type&&"change"!==t.type||S(),r.has(e,"target")&&g.includes(e.target.tagName));"focus"===t.type&&e&&S()}}(),nI=function(e){var t=e._,n=e.store;return{show:function(e){var i=t.first(this.steps),r=t.map(this.steps,function(e){return e.id}),r=t.pick(n.state.guideState.steps,r),o=null;return t.isEmpty(r)||(o=t.max(r,function(e){return e.time||0})),(this.nextStep(o)||i).show(e)},isShownInThisFrame:function(){return t.any(this.steps,function(e){return e.isRendered()||e.isLocked()})}}},iI=function(e){var t=e.pluginApi;return e._,this._onShown||Object.defineProperty(this,"_onShown",{value:this.onShown,writable:!1,configurable:!1}),this._onShown?{onShown:function(e){var n=!this.lastSeenAt||!!t.ConfigReader.get("enableAllEmbeddedGuideEvents");return this._onShown(e,n)}}:null},rI=function(){var e,t,n,i,r=[],o=[];return{name:"EmbeddedGuides",activeEmbeddedGuides:r,initialize:function(r,o){e=o,i=(t=r)._,function(e){e.getEmbeddedGuides=oI,e.getActiveEmbeddedGuides=aI}(r),n=nI({_:i,store:e.store,globalPendo:t}),e.Events.on("deliverablesLoaded",d),e.Events.on("guideLoopStopped",s),e.Events.on("guideListChanged",f),e.GuideLoop.addUpdatePhase(a),e.guides.addProcessor(u),e.GuideActivity.registerGuideResolver(p),this.removeResizeEvent=r.attachEvent(window,"resize",l)},teardown:function(){d(),e.Events.off("deliverablesLoaded",d),e.Events.off("guideLoopStopped",s),e.Events.off("guideListChanged",f),e.GuideLoop.removeUpdatePhase(a),e.guides.removeProcessor(u),e.GuideActivity.removeGuideResolver(p),this.removeResizeEvent&&this.removeResizeEvent()}};function a(){var e=t.Sizzle;i.forEach(r,function(t){var n,r=null,o=i.get(t,"attributes.embedConfig.selector"),o=i.first(e(o)),a=t.isShownInThisFrame();o&&a&&(n="#pendo-guide-container-".concat(i.get(c(t),"id")),r=i.first(e(n,o))),!a&&o&&((n=t).shouldShowSnoozedGuide()||n.shouldRepeatGuide()||i.all(n.steps,function(e){return e.shouldRepeat()||!e.isSnoozed()&&"dismissed"!==e.seenState}))?t.show("embed"):!a||o&&r||t.hide()})}function s(){i.forEach(r,function(e){e.isShownInThisFrame()&&e.hide()})}function d(){o=i.toArray(r),e.guides.removeDisplayableGuides("embeddedGuides"),r.length=0}function u(t){var n;return!(n=t)||!n.launchMethod||"embed"!==n.launchMethod||(i.some(r,function(e){return e.id===t.id})||r.push(t),e.store.getters["preview/isInPreviewMode"]())}function c(e){return e?i.find(e.steps,function(e){return e.isShown()}):null}function l(){i.forEach(r,function(e){(e=c(e))&&!t.ignoreResize&&e.redraw()})}function p(e){if(r.length){var t,n="pendo-base-";if(!i.isString(e.id)||0!==e.id.indexOf(n))return i.isObject(e.parentElem)?p(e.parentElem):null;var o=e.id.substring(n.length);return(n=i.find(r,function(e){return!!(t=i.find(e.steps,function(e){if(e.id===o)return e}))}))&&t?{guide:n,step:t}:void 0}return null}function f(){i.each(o,function(e){var t=i.findIndex(r,function(t){return t.id===e.id});-1===t&&e.isShownInThisFrame()?e.hide():e.isFrameProxy||(r[t]=e)}),o.length=0,e.guides.registerDisplayableGuides("embeddedGuides",r),i.map(r,function(t){Object.assign(t,n),i.map(t.steps,function(t){var n=iI.call(t,{pluginApi:e,_:i});Object.assign(t,n)})})}}();function oI(){return rI.activeEmbeddedGuides}function aI(){return rI.activeEmbeddedGuides.filter(function(e){return e.isShown()})}var sI="sessionId",dI="sessionLastUserInteractionEvent",uI=18e5,cI=function(){function e(){this.name="SessionManager"}return e.prototype.initialize=function(e,t){this.api=t,this.pendo=e,this.subscriptions=[this.api.attachEvent(this.api.Events,"ready",K.bind(this.ready,this)),this.api.attachEvent(this.api.Events,"eventCaptured",K.bind(this.eventCaptured,this))],this.inactivityDuration=this.api.ConfigReader.get("inactivityDuration",uI),this.api.agentStorage.registry.addLocal(sI),this.api.agentStorage.registry.addLocal(dI),this.api.store.getters["frames/isReady"]()&&this.ready()},e.prototype.teardown=function(){K.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0},e.prototype.ready=function(){this.isReady||(this.sessionId(),this.isReady=!0)},e.prototype.isExpired=function(e){var t=K.get(this._sessionInfo,"timestamp");return!!(t&&e-t>this.inactivityDuration)},e.prototype.eventCaptured=function(e){e&&e.data&&e.data.length&&(e=e.data[0],this.ready(),this.isExpired(e.browser_time)&&(this.clearSessionInfo(),this.api.Events.sessionChanged.trigger()),this.storeLastInteractionEventInformation(e.browser_time),e.sessionId=this.sessionId())},e.prototype.sessionId=function(e){var t;return void 0===e&&(e=this.pendo.randomString(16)),this._sessionInfo||((t=this.api.agentStorage.read(sI))||(t=JSON.stringify({sessionId:e,timestamp:(new Date).getTime()}),this.api.agentStorage.write(sI,t)),this._sessionInfo=JSON.parse(t)),this._sessionInfo.sessionId},e.prototype.clearSessionInfo=function(){delete this._sessionInfo,this.api.agentStorage.clear(sI),this.sessionId()},e.prototype.storeLastInteractionEventInformation=function(e){this._sessionInfo.timestamp=e,this.api.agentStorage.write(sI,JSON.stringify(this._sessionInfo))},e}(),lI=new cI,pI=function(){function e(){this.name="SegmentFlags"}return e.prototype.initialize=function(e,t){var n="requestSegmentFlags",e=(this.pendo=e,(this.api=t).ConfigReader);e.addOption(n,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],!1),this.segmentFlagsEnabled=e.get(n),this.segmentFlagsEnabled&&(this.mostRecentSegmentsRequest=null,this.pendo.segmentsPayload=this.pendo._.bind(this.segmentsPayload,this),this.handleMetadataChange=this.pendo._.debounce(this.pendo._.bind(this.requestSegmentFlags,this),50),this.handleReadyBound=this.pendo._.bind(this.handleReady,this),this.api.Events.ready.on(this.handleReadyBound),this.api.Events.metadata.on(this.handleMetadataChange),this.api.Events.identify.on(this.handleMetadataChange))},e.prototype.teardown=function(){this.segmentFlagsEnabled&&(this.pendo.segmentsPayload=this.pendo._.noop,this.handleMetadataChange.cancel(),this.api.Events.ready.off(this.handleReadyBound),this.api.Events.metadata.off(this.handleMetadataChange),this.api.Events.identify.off(this.handleMetadataChange))},e.prototype.handleReady=function(){this.ready=!0,this.requestSegmentFlags()},e.prototype.requestSegmentFlags=function(){if(this.ready){var e,t=this.pendo._.uniqueId(),n=(this.mostRecentSegmentsRequest=t,{visitorId:this.pendo.get_visitor_id(),accountId:this.pendo.get_account_id(),metadata:this.pendo.getSerializedMetadata(),url:this.pendo.url.get()}),i=this.pendo.compress(n),t={id:t,jzb:i,v:this.pendo.VERSION,ct:(new Date).getTime()},n=(this.api.agent.treatAsAdoptPartner()&&n.accountId&&"ACCOUNT-UNIQUE-ID"!==n.accountId&&(t.acc=this.api.util.base64EncodeString(n.accountId)),"script"===this.pendo.LOADER?"segmentflag.js":"segmentflag.json"),n=this.api.transmit.buildBaseDataUrl(n,this.pendo.apiKey,t),r=this.api.agent.getJwtInfoCopy();try{n.length>this.api.constants.URL_MAX_LENGTH||!this.pendo._.isEmpty(r)?(delete t.jzb,n=this.api.transmit.buildBaseDataUrl("segmentflag.json",this.pendo.apiKey,t),e=this.pendo._.extend({events:i},r),this.postLoad(n,e)):"script"===this.pendo.LOADER?this.scriptLoad(n):this.getLoad(n)}catch(e){this.api.log.error("Failed to load segment flags",{error:e})}}},e.prototype.segmentsPayload=function(e){!this.mostRecentSegmentsRequest||this.pendo._.isString(e.id)&&e.id!==this.mostRecentSegmentsRequest||(this.pendo.segmentFlags=e.segmentFlags,this.api.log.info("successfully loaded segment flags"),this.mostRecentSegmentsRequest=null)},e.prototype.scriptLoad=function(e){this.pendo.loadResource(e,this.pendo._.noop)},e.prototype.getLoad=function(e){return Xt(this,void 0,void 0,function(){var t;return Jt(this,function(n){switch(n.label){case 0:return[4,this.pendo.ajax.get(e)];case 1:return t=n.sent(),this.segmentsPayload(t.data),[2]}})})},e.prototype.postLoad=function(e,t){return Xt(this,void 0,void 0,function(){var n;return Jt(this,function(i){switch(i.label){case 0:return[4,this.pendo.ajax.postJSON(e,t)];case 1:return n=i.sent(),this.segmentsPayload(n.data),[2]}})})},e}(),hI=new pI,fI=["google","bing","yahoo","duckduckgo","baidu","yandex","aol","ask","excite","lycos","webcrawler","infoseek","dogpile","altavista","netscape","hotbot","looksmart","gigablast","teoma","alltheweb","search.com","mamma","metacrawler","ixquick","searchy","searchalot","searchengine","searchenginez","searchengineland","searchenginewatch","searchengineworld","searchenginejournal","searchengineguide","searchengineforums"],gI=RegExp("(".concat(fI.join("|"),")"),"i"),mI=["facebook","twitter","linkedin","instagram","pinterest","tiktok","snapchat"],vI=RegExp("(".concat(mI.join("|"),")"),"i"),yI=["youtube","vimeo","dailymotion","twitch","bilibili","youku","tencent","iqiyi","peertube","rutube","metacafe","veoh","break","vidyard","wistia","brightcove","jwplayer","kaltura","sproutvideo"];function bI(e){return"self"!==e&&"direct"!==e&&null!==e.match(gI)}function II(e){return"self"!==e&&"direct"!==e&&null!==e.match(vI)}function wI(e){var t,n=e.referrer,e=e.currentHost;return n&&""!==n?(t="self",(n=new Si(n).hostname)!==e?null==n?void 0:n.toLowerCase():t):"direct"}function CI(e){var t=e.referrerValue,n=e.utm,e=e.gclid,i="Direct",r=RegExp("^(.*cp.*|ppc|retargeting|paid.*)$"),o=RegExp("(.*email.*|.*e_mail.*|.*e mail.*|.*e-mail.*)","i"),a=(null==(a=n.medium)?void 0:a.toLowerCase())||"",s=(null==(s=n.source)?void 0:s.toLowerCase())||"",d=s&&fI.includes(s),u=s&&mI.includes(s),c=s&&yI.includes(s);if(null===a.match(o)&&null===s.match(o)||"direct"!==t){if("organic"===a&&d||bI(t))i="Organic Search";else if(e||null!=a&&a.match(r)&&d)i="Paid Search";else if("display"===a||"cpm"===a||"banner"===a||"interstitial"===a||"expandable"===a)i="Display";else if("paidsocial"===a||"paidsocial"===s||null!=a&&a.match(r)&&u)i="Paid Social";else if(-1<a.indexOf("social")||u||II(t))i="Organic Social";else if(null!=a&&a.match(r)&&c)i="Paid Social";else if("referral"===a)i="Referral";else if("affiliate"===a)i="Referral";else if("cpv"===a||"cpa"===a)i="Other Advertising";else if("sms"===s||"sms"===a)i="SMS";else if(a.endsWith("push")||-1<a.indexOf("mobile")||-1<a.indexOf("notification")||"firebase"===s)i="Mobile Push";else if(a)i="Other";else if(!n.medium&&!n.source)return"Direct"}else i="Email";return i}var SI="utm",AI=function(){function e(){this.name="WebAnalytics"}return e.prototype.initialize=function(e,t){this.pendo=e,this.api=t;var n=e._.bind,n=(this.subscriptions=[t.attachEvent(t.Events,"eventCaptured",n(this.addUtmToEvent,this)),t.attachEvent(t.Events,"sessionChanged",n(this.sessionChanged,this))],this.loadParameters(t.agentStorage));n&&!e._.isEmpty(n)||(n=this.extractParameters(window.location.href,document.referrer)),this.api.agentStorage.registry.addLocal(SI),this.storeParameters(n,t.agentStorage)},e.prototype.extractParameters=function(e,t){if("self"!==(t=wI({referrer:t,currentHost:new Si(e).hostname}))){var e=this.api.util.parseUrl(e).query,n=e.utm_source,i=e.utm_medium,r=e.utm_campaign,o=e.utm_term,a=e.utm_content,e=e.gclid;if(this.pendo._.compact([n,i,r,o,a,e]).length)return(n={source:n,medium:i,campaign:r,term:o,content:a}).channel=CI({referrerValue:t,utm:n,gclid:e}),n}return{}},e.prototype.storeParameters=function(e,t){0<this.pendo._.size(e)&&(this.utm=e,t.write(SI,JSON.stringify(e)))},e.prototype.loadParameters=function(e){return(e=e.read(SI))?JSON.parse(e):null},e.prototype.teardown=function(){for(var e=0,t=this.subscriptions;e<t.length;e++)(0,t[e])();this.subscriptions.length=0,this.utm=null},e.prototype.addUtmToEvent=function(e){this.utm&&(e.data[0].utm=this.utm)},e.prototype.sessionChanged=function(){this.utm=null;var e=this.api.agentStorage,t=(e.clear(SI),this.extractParameters(window.location.href,document.referrer));this.storeParameters(t,e)},e}(),TI=new AI;function _I(){vm(My),vm(Py),vm(Uy),vm(jy),vm($0),vm(j0),vm(z0),vm(V0),vm($v),vm(eI),vm(tI),vm(rI),vm(lI),vm(hI),vm(TI)}function EI(e){zv(e),Kv(e),K.each(["identify","updateOptions","pageLoad","track"],function(t){var n=e[t];e[t]=function(){try{xm()?n.apply(this,arguments):V(e,t,arguments)}catch(e){X.critical(e)}}})}function xI(e){K.each(["initialize","identify","updateOptions","pageLoad","track"],function(t){e[t]=function(){console.log("Pendo is currently disabled.")}})}function RI(e,t){pe(t),ct(),!N(t)&&ce(t,e,Hl())||e&&e.VERSION||(m.get("disablePendo")?xI(e):(Ny(q),wr(),dy(),Wu.reset(),q.dispatch("frames/init"),pv.init(),c.wrapSizzle(s),s.intercept(wu),EI(e),X.addEventListener("log",K.partial(q.dispatch,"errorLog/write")),_I(),Bm(e._q,Dm,Vd)))}var kI=fe(),OI=M(kI);return RI(OI,kI),OI}var TextCapture=function(){var e,t,n,i={};return{name:"TextCapture",initialize:function(a,s){t=s,(e=a).excludeAllText=t.ConfigReader.get("excludeAllText"),s=t.ConfigReader.get("allowedText"),i=e._.reduce(s,function(t,n){return e._.isString(n)&&(t[n]=!0),t},{}),t.NodeSerializer.add(r),n=e._.partial(o,a),t.Events.on("eventCaptured",n)},teardown:function(){t.NodeSerializer.remove(r),t.Events.off("eventCaptured",n)},isEnabled:a,isTextCapturable:function(n){var r=t.util.trim.call(n);return a()||e._.has(i,r)||e._.has(i,n)},hasWhitelist:function(){return 0<e._.size(i)},serializer:r};function r(n,i,r){return i===r&&(TextCapture.isEnabled()||!TextCapture.isEnabled()&&TextCapture.hasWhitelist())&&(i=e.getText(r,128),TextCapture.isTextCapturable(i))&&(n.txt=TextCapture.hasWhitelist()?t.util.trim.call(i):i),n}function o(e,t){var n;a()&&(n=t.data[0])&&"guideActivity"===n.type&&(t=e.getActiveGuide())&&(e=(0,e.BuildingBlocks.BuildingBlockGuides.findDomBlockInDomJson)(t.step.domJson,function(e){return e.props&&e.props.id&&e.props.id===n.props.ui_element_id}))&&(n.props.ui_element_text=e.content)}function a(){return!e.excludeAllText}}(),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==$parcel$global?$parcel$global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var substitutionRegex="\\{(?:\\s?)([^.\\s]?visitor|account|parentAccount)\\.([^|\\s/]*)(?:\\s?\\|\\s?([^}]+|[\\/s]+))?(?:\\s?\\/\\s?){1}\\}",skipStepString="{skipStep:* *(auto|\\d+)\\/}",goToMiddleString="(?!0)(\\d+)",goToString="({goto-".concat(goToMiddleString,"\\/})");function lookupGuideButtons(e,t){return void 0===t&&(t=[]),"button"===e.type&&e.actions&&t.push(e),e.children&&e.children.forEach(function(e){lookupGuideButtons(e,t)}),t}function removeMarkdownSyntax(e,t,n){var i;window.pendo.dom(e).hasClass("_pendo-nps-open-text-poll-question")&&(e.innerHTML=null==(i=e.innerHTML)?void 0:i.replace(t,n)),"div"===e.localName||("button"!==e.localName&&"label"!==e.localName&&"a"!==e.localName||(e.textContent=e.textContent.replace(t,n)),0<e.children.length)||(window.pendo.dom(e).hasClass("_pendo-simple-text")||window.pendo.dom(e).hasClass("_pendo-text-plain")||window.pendo.dom(e).hasClass("_pendo-text-list-item")||window.pendo.dom(e).hasClass("_pendo-text-link"))&&(e.textContent=e.textContent.replace(t,n))}var guideMarkdownUtil={substitutionRegex:substitutionRegex,skipStepString:skipStepString,goToString:goToString,lookupGuideButtons:lookupGuideButtons,removeMarkdownSyntax:removeMarkdownSyntax},goToRegex=new RegExp(guideMarkdownUtil.goToString),PollBranching={name:"PollBranching",script:function(e,t){var n=!1,i=initialBranchingSetup(e);!i||1<window.pendo._.size(i)||this.on("beforeAdvance",function(i){var r,o=0===e.guideElement.find("[branching] .pendo-radio:checked").length,a=e.guideElement.find("[branching] .pendo-radio:checked + label")[0];a&&(r=window.pendo._.isNull(a.getAttribute("goToStep"))),n||o||r||(n=!0,branchingGoToStep(i,e,t))})},test:function(e){return e=null==(e=e.guideElement)?void 0:e.find('._pendo-multi-choice-poll-question:contains("{branching/}")'),!window.pendo._.isUndefined(e)&&window.pendo._.size(e)},designerListener:function(){var e=window.pendo.dom.getBody();function t(e,t){return'<svg id="pendo-ps-branching-svg" viewBox="0 0 24 24" fill="none"\n style="margin-left: 5px;\n height:'.concat(t,"; width:").concat(t,'; display:inline; vertical-align:middle;" xmlns="http://www.w3.org/2000/svg">\n <g stroke-width="0"></g>\n <g stroke-linecap="round" stroke-linejoin="round"></g>\n <g> <circle cx="4" cy="7" r="2" stroke="').concat(e,'"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></circle>\n <circle cx="20" cy="7" r="2" stroke="').concat(e,'"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></circle>\n <circle cx="20" cy="17" r="2" stroke="').concat(e,'" stroke-width="2"\n stroke-linecap="round" stroke-linejoin="round"></circle>\n <path d="M18 7H6" stroke="').concat(e,'" stroke-width="2"\n stroke-linecap="round" stroke-linejoin="round"></path>\n <path d="M7 7V7C8.65685 7 10 8.34315 10 10V15C10 16.1046 10.8954 17 12 17H18"\n stroke="').concat(e,'" stroke-width="2" stroke-linecap="round"\n stroke-linejoin="round"></path> </g></svg>')}new MutationObserver(function(e){e.forEach(function(e){var n=window.pendo._.isFunction(null==(n=e.addedNodes[0])?void 0:n.querySelector);e.addedNodes.length&&n&&e.addedNodes[0].querySelector("._pendo-multi-choice-poll-select-border")&&window.pendo._.size(window.pendo.dom('._pendo-multi-choice-poll-question:contains("{branching/}")'))&&window.pendo.dom('._pendo-multi-choice-poll-question:contains("{branching/}")').each(function(e,n){window.pendo._.each(window.pendo.dom("#".concat(e.id," *")),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{branching/}","")}),window.pendo.dom("#".concat(e.id," p")).css({display:"inline-block !important"}).append(t("#999","20px")).attr({title:"Custom Branching Added"});var i=e.getAttribute("data-pendo-poll-id"),i=(window.pendo.dom("._pendo-multi-choice-poll-question[data-pendo-poll-id=".concat(i,"]"))[0]&&window.pendo.dom("._pendo-multi-choice-poll-question[data-pendo-poll-id=".concat(i,"]"))[0].textContent.trim(),window.pendo.dom("label[for*=".concat(i,"]")));window.pendo._.size(i)&&window.pendo._.forEach(i,function(e){var n;goToRegex.test(e.textContent)&&(n=goToRegex.exec(e.textContent)[2],guideMarkdownUtil.removeMarkdownSyntax(e,goToRegex,""),window.pendo.dom(e).append(t("#999","14px")).attr({title:"Branching to step ".concat(n)}))}),0<n&&(window.pendo.dom(e).append('<div style="text-align:lrft; font-size: 14px; color: red;\n font-style: italic; margin-top: 0px;" class="branching-wrapper"\n name="'.concat(e.dataset.pendoPollId,'">\n * Branching Error: Multiple branching polls not supported</div>')),window.pendo.dom("#".concat(e.id," #pendo-ps-branching-svg")).remove(),window.pendo.dom("#".concat(e.id," p")).css({display:"inline-block !important"}).append(t("red","20px")).attr({title:"Unsupported Branching configuration"}))})})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}};function initialBranchingSetup(e){var t=e.guideElement.find('._pendo-multi-choice-poll-question:contains("{branching/}")');return window.pendo._.forEach(t,function(t){var n=t.getAttribute("data-pendo-poll-id"),t=(window.pendo._.each(e.guideElement.find("#".concat(t.id," *")),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{branching/}","")}),e.guideElement.find("label[for*=".concat(n,"]"))),t=(window.pendo._.forEach(t,function(e){var t,n;window.pendo._.isNull(goToRegex.exec(e.textContent))||(t=goToRegex.exec(e.textContent)[1],n=goToRegex.exec(e.textContent)[2],e.setAttribute("goToStep",n),guideMarkdownUtil.removeMarkdownSyntax(e,t,""))}),e.guideElement.find("[data-pendo-poll-id=".concat(n,"]._pendo-multi-choice-poll-select-border")));t&&t[0].setAttribute("branching","")}),t}function branchingGoToStep(e,t,n){var i=null==(i=t.guideElement.find("[branching] input.pendo-radio[data-pendo-poll-id]:checked")[0])?void 0:i.id,i=t.guideElement.find('label[for="'.concat(i,'"]'))[0],t=(null==i?void 0:i.getAttribute("goToStep"))-1;t<0||(i={destinationStepId:n.steps[t].id},window.pendo.goToStep(i),e.cancel=!0)}var containerSelector='[id^="pendo-guide-container"]',MetadataSubstitution={name:"MetadataSubstitution",script:function(e,t){var n=findSubstitutableElements();e.domJson&&findSubstitutableUrlsInJson(e.domJson,n),window.pendo._.size(n)&&(window.pendo._.each(n,function(e){processPlaceholder(e)}),updateGuideContainer("pendo-g-".concat(e.id),e.guideElement))},designerListener:function(){var e=window.pendo.dom.getBody();new MutationObserver(function(e){e.forEach(function(e){var t,n;e.addedNodes.length&&document.querySelector(containerSelector)&&(e=findSubstitutableElements(),t=null==(t=window.pendo.designerv2.currentlyPreviewedGuide)?void 0:t.steps[0])&&(n=t.buildingBlocks,window.pendo._.isUndefined(n)||findSubstitutableUrlsInJson(n,e),window.pendo._.size(e))&&(window.pendo._.each(e,function(e){window.pendo._.isUndefined(e)||processPlaceholder(e)}),updateGuideContainer("pendo-g-".concat(t.id),t.guideElement))})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}};function processPlaceholder(e){for(var t=e.data,n=e.target,i=new RegExp(guideMarkdownUtil.substitutionRegex);r=matchPlaceholder(e,i);){var r=i.exec(r);substituteMetadataByTarget(t,n,getSubstitueValue(r),r)}}function matchPlaceholder(e,t){return("textContent"===e.target?e.data[e.target]:decodeURI(e.data[e.target])).match(t)}function getSubstitueValue(e){if(!window.pendo._.isUndefined(e[1])&&!window.pendo._.isUndefined(e[2])){var t=e[1],n=e[2],e=e[3];if(!window.pendo._.isUndefined(t)&&!window.pendo._.isUndefined(n))return window.pendo._.get(window.pendo.getSerializedMetadata(),"".concat(t,".").concat(n))||e||""}}function substituteMetadataByTarget(e,t,n,i){e[t]="href"===t||"value"===t?decodeURI(e[t]).replace(i[0],window.encodeURI(n)):e[t].replace(i[0],n)}function updateGuideContainer(e,t){window.pendo.designer&&!window.pendo._.size(window.pendo.dom("#pendo-ps-substitution-icon"))&&window.pendo.dom(containerSelector).append(substitutionIcon("#999","30px")),window.pendo.flexElement(window.pendo.dom(containerSelector)),window.pendo.BuildingBlocks.BuildingBlockGuides.recalculateGuideHeight(e,t)}function findSubstitutableUrlsInJson(e,t){void 0===t&&(t=[]);var n=new RegExp(guideMarkdownUtil.substitutionRegex);return"url"!==e.name&&"href"!==e.name||!e.value||n.test(e.value)&&t.push({data:e,target:"value"}),e.properties&&"href_link_block"===e.id&&window.pendo._.each(e.properties,function(e){findSubstitutableUrlsInJson(e,t)}),e.views&&window.pendo._.each(e.views,function(e){findSubstitutableUrlsInJson(e,t)}),e.parameters&&window.pendo._.each(e.parameters,function(e){findSubstitutableUrlsInJson(e,t)}),e.actions&&window.pendo._.each(e.actions,function(e){findSubstitutableUrlsInJson(e,t)}),e.children&&window.pendo._.each(e.children,function(e){findSubstitutableUrlsInJson(e,t)}),t}function findSubstitutableElements(){var e=window.pendo.dom("".concat(containerSelector," *:not(.pendo-inline-ui)"));return window.pendo._.chain(e).filter(function(e){var t=new RegExp(guideMarkdownUtil.substitutionRegex);return"a"===e.localName?t.test(decodeURI(e.href))||t.test(e.textContent):"div"!==e.localName?"button"===e.localName||"label"===e.localName?t.test(e.textContent):0<e.children.length?void 0:window.pendo.dom(e).hasClass("_pendo-simple-text")||window.pendo.dom(e).hasClass("_pendo-text-plain")||window.pendo.dom(e).hasClass("_pendo-text-list-item")||window.pendo.dom(e).hasClass("_pendo-text-link")?t.test(e.textContent):t.test(e.textContent)||t.test(decodeURI(e.href)):void 0}).map(function(e){return"a"===e.localName&&window.pendo.dom(e).hasClass("_pendo-text-link")?[{data:e,target:"href"},{data:e,target:"textContent"}]:"a"===e.localName?{data:e,target:"href"}:"button"===e.localName||window.pendo.dom(e).hasClass("_pendo-simple-text")||window.pendo.dom(e).hasClass("_pendo-text-plain")||window.pendo.dom(e).hasClass("_pendo-text-list-item")||window.pendo.dom(e).hasClass("_pendo-text-link")?{data:e,target:"textContent"}:void 0}).flatten().value()}function substitutionIcon(e,t){return'<div title="Metadata Substitution added">\n <svg id="pendo-ps-substitution-icon" viewBox="0 0 24 24"\n preserveAspectRatio="xMidYMid meet"\n height='.concat(t," width=").concat(t,' title="Metadata Substitution"\n style="bottom:5px; right:10px; position: absolute;"\n fill="none" xmlns="http://www.w3.org/2000/svg" stroke="').concat(e,'"\n transform="matrix(1, 0, 0, 1, 0, 0)rotate(0)">\n <g stroke-width="0"></g>\n <g stroke-linecap="round" stroke-linejoin="round"\n stroke="').concat(e,'" stroke-width="0.528"></g>\n <g><path fill-rule="evenodd" clip-rule="evenodd"\n d="M5 5.5C4.17157 5.5 3.5 6.17157 3.5 7V10C3.5 10.8284\n 4.17157 11.5 5 11.5H8C8.82843 11.5 9.5 10.8284 9.5\n 10V9H17V11C17 11.2761 17.2239 11.5 17.5 11.5C17.7761\n 11.5 18 11.2761 18 11V8.5C18 8.22386 17.7761 8 17.5\n 8H9.5V7C9.5 6.17157 8.82843 5.5 8 5.5H5ZM8.5 7C8.5\n 6.72386 8.27614 6.5 8 6.5H5C4.72386 6.5 4.5 6.72386\n 4.5 7V10C4.5 10.2761 4.72386 10.5 5 10.5H8C8.27614\n 10.5 8.5 10.2761 8.5 10V7Z" fill="').concat(e,'"></path>\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M7 13C7 12.7239 6.77614 12.5 6.5 12.5C6.22386 12.5\n 6 12.7239 6 13V15.5C6 15.7761 6.22386 16 6.5\n 16H14.5V17C14.5 17.8284 15.1716 18.5 16 18.5H19C19.8284\n 18.5 20.5 17.8284 20.5 17V14C20.5 13.1716 19.8284 12.5\n 19 12.5H16C15.1716 12.5 14.5 13.1716 14.5\n 14V15H7V13ZM15.5 17C15.5 17.2761 15.7239 17.5 16\n 17.5H19C19.2761 17.5 19.5 17.2761 19.5 17V14C19.5\n 13.7239 19.2761 13.5 19 13.5H16C15.7239 13.5 15.5\n 13.7239 15.5 14V17Z" fill="').concat(e,'"></path> </g></svg></div>')}var requiredElement='<span class="_pendo-required-indicator" style="color:red; font-style:italic;" title="Question is required"> *</span>',RequiredQuestions={name:"RequiredQuestions",script:function(e,t){var n,i=[],r=null==(n=guideMarkdownUtil.lookupGuideButtons(e.domJson))?void 0:n.filter(function(e){return e.actions.find(function(e){return"submitPoll"===e.action||"submitPollAndGoToStep"===e.action})}),o=function(){var t=e.guideElement.find("[class*=-poll-question]:contains({required/})");return t&&window.pendo._.forEach(t,function(t){var n=t.getAttribute("data-pendo-poll-id");i.push(n),window.pendo._.each(e.guideElement.find("#".concat(t.id," *, #").concat(t.id)),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{required/}","")}),e.guideElement.find("#".concat(t.id," p")).append(requiredElement)}),window.pendo._.size(i)&&(0===window.pendo.dom("#_pendo-guide-required-disabled").length&&window.pendo.dom("head").append("<style type=text/css\n id=_pendo-guide-required-disabled>\n ._pendo-button:disabled, ._pendo-buttons[disabled] {\n border: 1px solid #999999 !important;\n background-color: #cccccc !important;\n color: #666666 !important;\n pointer-events: none !important;\n }\n </style>"),s(r)),t}();function a(t){var n,i;0!==t.length&&(n=!0,(n=!((i=(i=[]).concat(window.pendo._.map(t,function(t){if(t=t.getAttribute("data-pendo-poll-id"),(t=e.guideElement.find("\n [data-pendo-poll-id=".concat(t,"] textarea,\n [data-pendo-poll-id=").concat(t,"] input:text,\n [data-pendo-poll-id=").concat(t,"] select,\n [data-pendo-poll-id=").concat(t,"] input:radio:checked")))&&t.length&&t[0].value)return t[0].value}))).includes(void 0)||window.pendo._.isEmpty(i))&&n)?r.forEach(function(t){e.guideElement.find("#".concat(t.props.id))[0]&&(e.guideElement.find("#".concat(t.props.id))[0].disabled=!1,e.guideElement.find("#".concat(t.props.id))[0].parentElement.title="")}):s(r))}function s(t){t.forEach(function(t){e.guideElement.find("#".concat(t.props.id))[0]&&(e.guideElement.find("#".concat(t.props.id))[0].disabled=!0,e.guideElement.find("#".concat(t.props.id))[0].parentElement.title="Please complete all required questions.")})}o&&(window.pendo._.forEach(o,function(t){t.classList.contains("_pendo-open-text-poll-question")&&(t=t.dataset.pendoPollId,e.attachEvent(e.guideElement.find("[data-pendo-poll-id=".concat(t,"]._pendo-open-text-poll-input"))[0],"input",function(){a(o)}))}),e.attachEvent(e.guideElement.find("#pendo-guide-container")[0],"click",function(e){e.target.classList.contains("_pendo-button")||a(o)}))},test:function(e){return e=null==(e=e.guideElement)?void 0:e.find("[class*=-poll-question]:contains({required/})"),!window.pendo._.isUndefined(e)&&window.pendo._.size(e)},designerListener:function(){var e=window.pendo.dom.getBody();new MutationObserver(function(e){e.forEach(function(e){var t=window.pendo._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelectorAll);e.addedNodes.length&&t&&(t=e.addedNodes[0].querySelectorAll("[class*=-poll-wrapper], [class*=-poll-select-border]"))&&t.forEach(function(e){var t,e=e.classList.contains("_pendo-open-text-poll-wrapper")||e.classList.contains("_pendo-number-scale-poll-wrapper")?e.getAttribute("name"):e.getAttribute("data-pendo-poll-id");(t=window.pendo.dom('[class*="-poll-question"][data-pendo-poll-id='.concat(e,"]"))[0]?window.pendo.dom('[class*="-poll-question"][data-pendo-poll-id='.concat(e,"]"))[0].textContent:t).includes("{required/}")&&(window.pendo._.each(window.pendo.dom("[data-pendo-poll-id=".concat(e,"]:not(.pendo-radio)")),function(e){window.pendo._.each(window.pendo.dom("#".concat(e.id,' *:not(".pendo-radio"), #').concat(e.id,':not(".pendo-radio")')),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{required/}","")})}),(0!==window.pendo.dom(".bb-text[data-pendo-poll-id=".concat(e,"] p")).length||0!==window.pendo.dom(".bb-text[data-pendo-poll-id=".concat(e,"] li")).length?(window.pendo.dom(".bb-text[data-pendo-poll-id=".concat(e,"] p")).append(requiredElement),window.pendo.dom(".bb-text[data-pendo-poll-id=".concat(e,"] li"))):window.pendo.dom(".bb-text[data-pendo-poll-id=".concat(e,"]"))).append(requiredElement))})})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}},skipStepRegex=new RegExp(guideMarkdownUtil.skipStepString),SkipToEligibleStep={script:function(e,t){var n=!1,i=!1,r=e.guideElement.find("#pendo-guide-container"),o=r.attr("aria-label"),a=skipStepRegex.exec(o)[1];function s(n,i){var r=d(t.getPositionOfStep(e),"next",n),n=d(t.getPositionOfStep(e)-2,"previous",n);return r&&"next"==i&&window.pendo.goToStep({destinationStepId:r}),n&&"previous"==i&&window.pendo.goToStep({destinationStepId:n}),"next"===i?r:n}function d(e,n,i){var r;if(!window.pendo._.isNaN(e))return(r=t.steps[e])&&!r.canShow()?"auto"!==i?t.steps[i-1]:"next"===n?d(e+1,"next",i):d(e-1,"previous",i):r}r&&r.attr({"aria-label":r.attr("aria-label").replace(skipStepRegex,"")}),this.on("beforeAdvance",function(i){var r;t.getPositionOfStep(e)===t.steps.length||window.pendo._.isUndefined(a)||(r=s(a,"next"),!n&&a&&(n=!0,window.pendo.goToStep({destinationStepId:r.id}),i.cancel=!0))}),this.on("beforePrevious",function(e){var t;window.pendo._.isUndefined(a)||(t=s(a,"previous"),!i&&a&&(i=!0,window.pendo.goToStep({destinationStepId:t.id}),e.cancel=!0))})},test:function(e){return e=null==(e=e.guideElement)?void 0:e.find("#pendo-guide-container").attr("aria-label"),!window.pendo._.isUndefined(e)&&(null==e?void 0:e.includes("{skipStep"))},designerListener:function(){var e=window.pendo.dom.getBody();new MutationObserver(function(e){e.forEach(function(e){var t=window.pendo._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelectorAll);e.addedNodes.length&&t&&(e=null==(t=e.addedNodes[0].querySelectorAll("#pendo-guide-container")[0])?void 0:t.getAttribute("aria-label"))&&e.match(skipStepRegex)&&(t=e.match(skipStepRegex)[0],e.replace(t,""),window.pendo.dom("#_pendoSkipIcon").length||window.pendo.dom("#pendo-guide-container").append((t="#999",'<div title="Skip step added"><svg id="_pendoSkipIcon" version="1.0" xmlns="http://www.w3.org/2000/svg"\n width="'.concat(e="30px",'" height="').concat(e,'" viewBox="0 0 512.000000 512.000000"\n preserveAspectRatio="xMidYMid meet" style="bottom:5px; right:10px; position: absolute;">\n <g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)"\n fill="').concat(t,'" stroke="none">\n <path d="M2185 4469 c-363 -38 -739 -186 -1034 -407 -95 -71 -273 -243 -357\n -343 -205 -246 -364 -577 -429 -897 -25 -121 -45 -288 -45 -373 l0 -49 160 0\n 160 0 0 48 c0 26 5 88 10 137 68 593 417 1103 940 1374 1100 570 2418 -137\n 2560 -1374 5 -49 10 -111 10 -137 l0 -47 -155 -3 -155 -3 235 -235 235 -236\n 235 236 235 235 -155 3 -155 3 0 48 c0 27 -5 95 -10 152 -100 989 -878 1767\n -1869 1868 -117 12 -298 12 -416 0z"/>\n <path d="M320 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M960 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M1600 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M2240 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M2880 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M3840 1440 l0 -160 480 0 480 0 0 160 0 160 -480 0 -480 0 0 -160z"/>\n </g></svg></div>\n ').trim())))})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}},GuideMarkdown=function(){var e,t;return{name:"GuideMarkdown",initialize:function(i,r){var o=(t=r).ConfigReader,a="guideMarkdown";o.addOption(a,[o.sources.SNIPPET_SRC,o.sources.PENDO_CONFIG_SRC],!1),o.get(a)&&(e=[PollBranching,MetadataSubstitution,RequiredQuestions,SkipToEligibleStep],i.designer||e.forEach(function(e){r.GlobalRuntime.addGlobalScript(e)}),r.Events.on("designerLaunched",n))},teardown:function(){t.Events.off("designerLaunched",n),e.forEach(function(e){t.GlobalRuntime.removeGlobalScript(e)})}};function n(){e.forEach(function(e){e.designerListener&&e.designerListener()})}}();function isObject$8(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var isObject_1=isObject$8,freeGlobal$1="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root$9=freeGlobal||freeSelf||Function("return this")(),_root=root$9,root$8=_root,now$1=function(){return root$8.Date.now()},now_1=now$1,reWhitespace=/\s/;function trimmedEndIndex$1(e){for(var t=e.length;t--&&reWhitespace.test(e.charAt(t)););return t}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(e){return e&&e.slice(0,trimmedEndIndex(e)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,root$7=_root,Symbol$6=root$7.Symbol,_Symbol=Symbol$6,Symbol$5=_Symbol,objectProto$d=Object.prototype,hasOwnProperty$a=objectProto$d.hasOwnProperty,nativeObjectToString$1=objectProto$d.toString,symToStringTag$1=Symbol$5?Symbol$5.toStringTag:void 0;function getRawTag$1(e){var t=hasOwnProperty$a.call(e,symToStringTag$1),n=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var i=!0}catch(e){}var r=nativeObjectToString$1.call(e);return i&&(t?e[symToStringTag$1]=n:delete e[symToStringTag$1]),r}var _getRawTag=getRawTag$1,objectProto$c=Object.prototype,nativeObjectToString=objectProto$c.toString;function objectToString$1(e){return nativeObjectToString.call(e)}var _objectToString=objectToString$1,Symbol$4=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$4?Symbol$4.toStringTag:void 0;function baseGetTag$6(e){return null==e?void 0===e?undefinedTag:nullTag:(symToStringTag&&symToStringTag in Object(e)?getRawTag:objectToString)(e)}var _baseGetTag=baseGetTag$6;function isObjectLike$7(e){return null!=e&&"object"==typeof e}var isObjectLike_1=isObjectLike$7,baseGetTag$5=_baseGetTag,isObjectLike$6=isObjectLike_1,symbolTag$2="[object Symbol]";function isSymbol$4(e){return"symbol"==typeof e||isObjectLike$6(e)&&baseGetTag$5(e)==symbolTag$2}var isSymbol_1=isSymbol$4,baseTrim=_baseTrim,isObject$7=isObject_1,isSymbol$3=isSymbol_1,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(e){if("number"==typeof e)return e;if(isSymbol$3(e))return NAN;if(isObject$7(e)&&(e=isObject$7(t="function"==typeof e.valueOf?e.valueOf():e)?t+"":t),"string"!=typeof e)return 0===e?e:+e;e=baseTrim(e);var t=reIsBinary.test(e);return t||reIsOctal.test(e)?freeParseInt(e.slice(2),t?2:8):reIsBadHex.test(e)?NAN:+e}var toNumber_1=toNumber$1,isObject$6=isObject_1,now=now_1,toNumber=toNumber_1,FUNC_ERROR_TEXT$2="Expected a function",nativeMax$1=Math.max,nativeMin=Math.min;function debounce$1(e,t,n){var i,r,o,a,s,d,u=0,c=!1,l=!1,p=!0;if("function"!=typeof e)throw TypeError(FUNC_ERROR_TEXT$2);function f(t){var n=i,o=r;return i=r=void 0,u=t,a=e.apply(o,n)}function h(e){var n=e-d;return void 0===d||t<=n||n<0||l&&o<=e-u}function g(){var e,n=now();if(h(n))return m(n);s=setTimeout$1(g,(e=t-(n-d),l?nativeMin(e,o-(n-u)):e))}function m(e){return s=void 0,p&&i?f(e):(i=r=void 0,a)}function v(){var e=now(),n=h(e);if(i=arguments,r=this,d=e,n){if(void 0===s)return u=e=d,s=setTimeout$1(g,t),c?f(e):a;if(l)return clearTimeout(s),s=setTimeout$1(g,t),f(d)}return void 0===s&&(s=setTimeout$1(g,t)),a}return t=toNumber(t)||0,isObject$6(n)&&(c=!!n.leading,o=(l="maxWait"in n)?nativeMax$1(toNumber(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==s&&clearTimeout(s),u=0,i=d=r=s=void 0},v.flush=function(){return void 0===s?a:m(now())},v}var debounce_1=debounce$1,debounce=debounce_1,isObject$5=isObject_1,FUNC_ERROR_TEXT$1="Expected a function";function throttle(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw TypeError(FUNC_ERROR_TEXT$1);return isObject$5(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),debounce(e,t,{leading:i,maxWait:t,trailing:r})}var throttle_1=throttle,throttle$1=getDefaultExportFromCjs(throttle_1),isArray$8=Array.isArray,isArray_1=isArray$8,isArray$7=isArray_1,isSymbol$2=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$1(e,t){var n;return!isArray$7(e)&&(!("number"!=(n=typeof e)&&"symbol"!=n&&"boolean"!=n&&null!=e&&!isSymbol$2(e))||reIsPlainProp.test(e)||!reIsDeepProp.test(e)||null!=t&&e in Object(t))}var _isKey=isKey$1,baseGetTag$4=_baseGetTag,isObject$4=isObject_1,asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(e){return!!isObject$4(e)&&((e=baseGetTag$4(e))==funcTag$2||e==genTag$1||e==asyncTag||e==proxyTag)}var isFunction_1=isFunction$2,isFunction$3=getDefaultExportFromCjs(isFunction_1),root$6=_root,coreJsData$1=root$6["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked$1(e){return!!maskSrcKey&&maskSrcKey in e}var _isMasked=isMasked$1,funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource$2(e){if(null!=e){try{return funcToString$2.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject$3=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$b=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$9=objectProto$b.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$9).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(e){return!(!isObject$3(e)||isMasked(e))&&(isFunction$1(e)?reIsNative:reIsHostCtor).test(toSource$1(e))}var _baseIsNative=baseIsNative$1;function getValue$1(e,t){return null==e?void 0:e[t]}var _getValue=getValue$1,baseIsNative=_baseIsNative,getValue=_getValue;function getNative$7(e,t){return baseIsNative(e=getValue(e,t))?e:void 0}var _getNative=getNative$7,getNative$6=_getNative,nativeCreate$4=getNative$6(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(e){return e=this.has(e)&&delete this.__data__[e],this.size-=!!e,e}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__",objectProto$a=Object.prototype,hasOwnProperty$8=objectProto$a.hasOwnProperty;function hashGet$1(e){var t,n=this.__data__;return nativeCreate$2?(t=n[e])===HASH_UNDEFINED$1?void 0:t:hasOwnProperty$8.call(n,e)?n[e]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$9=Object.prototype,hasOwnProperty$7=objectProto$9.hasOwnProperty;function hashHas$1(e){var t=this.__data__;return nativeCreate$1?void 0!==t[e]:hasOwnProperty$7.call(t,e)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED="__lodash_hash_undefined__";function hashSet$1(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=nativeCreate&&void 0===t?HASH_UNDEFINED:t,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Hash$1.prototype.clear=hashClear,Hash$1.prototype.delete=hashDelete,Hash$1.prototype.get=hashGet,Hash$1.prototype.has=hashHas,Hash$1.prototype.set=hashSet;var _Hash=Hash$1;function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$2(e,t){return e===t||e!=e&&t!=t}var eq_1=eq$2,eq$1=eq_1;function assocIndexOf$4(e,t){for(var n=e.length;n--;)if(eq$1(e[n][0],t))return n;return -1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(e){var t=this.__data__,e=assocIndexOf$3(t,e);return!(e<0||(e==t.length-1?t.pop():splice.call(t,e,1),--this.size,0))}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(e){var t=this.__data__,e=assocIndexOf$2(t,e);return e<0?void 0:t[e][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(e){return -1<assocIndexOf$1(this.__data__,e)}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(e,t){var n=this.__data__,i=assocIndexOf(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}ListCache$4.prototype.clear=listCacheClear,ListCache$4.prototype.delete=listCacheDelete,ListCache$4.prototype.get=listCacheGet,ListCache$4.prototype.has=listCacheHas,ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,getNative$5=_getNative,root$5=_root,Map$4=getNative$5(root$5,"Map"),_Map=Map$4,Hash=_Hash,ListCache$3=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$3),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(e,t){return e=e.__data__,isKeyable(t)?e["string"==typeof t?"string":"hash"]:e.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(e){return e=getMapData$3(this,e).delete(e),this.size-=!!e,e}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(e){return getMapData$2(this,e).get(e)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(e){return getMapData$1(this,e).has(e)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(e,t){var n=getMapData(this,e),i=n.size;return n.set(e,t),this.size+=+(n.size!=i),this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$2(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}MapCache$2.prototype.clear=mapCacheClear,MapCache$2.prototype.delete=mapCacheDelete,MapCache$2.prototype.get=mapCacheGet,MapCache$2.prototype.has=mapCacheHas,MapCache$2.prototype.set=mapCacheSet;var _MapCache=MapCache$2,MapCache$1=_MapCache,FUNC_ERROR_TEXT="Expected a function";function memoize$1(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError(FUNC_ERROR_TEXT);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;return o.has(r)?o.get(r):(i=e.apply(this,i),n.cache=o.set(r,i)||o,i)};return n.cache=new(memoize$1.Cache||MapCache$1),n}memoize$1.Cache=MapCache$1;var memoize_1=memoize$1,memoize=memoize_1,MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(e){var e=memoize(e,function(e){return t.size===MAX_MEMOIZE_SIZE&&t.clear(),e}),t=e.cache;return e}var _memoizeCapped=memoizeCapped$1,memoizeCapped=_memoizeCapped,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=memoizeCapped(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(rePropName,function(e,n,i,r){t.push(i?r.replace(reEscapeChar,"$1"):n||e)}),t}),_stringToPath=stringToPath$1;function arrayMap$2(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}var _arrayMap=arrayMap$2,Symbol$3=_Symbol,arrayMap$1=_arrayMap,isArray$6=isArray_1,isSymbol$1=isSymbol_1,INFINITY$1=1/0,symbolProto$1=Symbol$3?Symbol$3.prototype:void 0,symbolToString=symbolProto$1?symbolProto$1.toString:void 0;function baseToString$1(e){var t;return"string"==typeof e?e:isArray$6(e)?arrayMap$1(e,baseToString$1)+"":isSymbol$1(e)?symbolToString?symbolToString.call(e):"":"0"==(t=e+"")&&1/e==-INFINITY$1?"-0":t}var _baseToString=baseToString$1,baseToString=_baseToString;function toString$2(e){return null==e?"":baseToString(e)}var toString_1=toString$2,isArray$5=isArray_1,isKey=_isKey,stringToPath=_stringToPath,toString$1=toString_1;function castPath$3(e,t){return isArray$5(e)?e:isKey(e,t)?[e]:stringToPath(toString$1(e))}var _castPath=castPath$3,isSymbol=isSymbol_1,INFINITY=1/0;function toKey$2(e){var t;return"string"==typeof e||isSymbol(e)?e:"0"==(t=e+"")&&1/e==-INFINITY?"-0":t}var _toKey=toKey$2,castPath$2=_castPath,toKey$1=_toKey;function baseGet$2(e,t){for(var n=0,i=(t=castPath$2(t,e)).length;null!=e&&n<i;)e=e[toKey$1(t[n++])];return n&&n==i?e:void 0}var _baseGet=baseGet$2,baseGet$1=_baseGet;function get(e,t,n){return void 0===(e=null==e?void 0:baseGet$1(e,t))?n:e}var get_1=get,get$1=getDefaultExportFromCjs(get_1),toString=toString_1,idCounter=0;function uniqueId(e){var t=++idCounter;return toString(e)+t}var uniqueId_1=uniqueId,uniqueId$1=getDefaultExportFromCjs(uniqueId_1),ListCache$2=_ListCache;function stackClear$1(){this.__data__=new ListCache$2,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(e){var t=this.__data__,e=t.delete(e);return this.size=t.size,e}var _stackDelete=stackDelete$1;function stackGet$1(e){return this.__data__.get(e)}var _stackGet=stackGet$1;function stackHas$1(e){return this.__data__.has(e)}var _stackHas=stackHas$1,ListCache$1=_ListCache,Map$2=_Map,MapCache=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(e,t){var n=this.__data__;if(n instanceof ListCache$1){var i=n.__data__;if(!Map$2||i.length<LARGE_ARRAY_SIZE-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new MapCache(i)}return n.set(e,t),this.size=n.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$1(e){e=this.__data__=new ListCache(e),this.size=e.size}Stack$1.prototype.clear=stackClear,Stack$1.prototype.delete=stackDelete,Stack$1.prototype.get=stackGet,Stack$1.prototype.has=stackHas,Stack$1.prototype.set=stackSet;var _Stack=Stack$1;function arrayEach$2(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}var _arrayEach=arrayEach$2,getNative$4=_getNative,defineProperty$2=function(){try{var e=getNative$4(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),_defineProperty=defineProperty$2,defineProperty$1=_defineProperty;function baseAssignValue$2(e,t,n){"__proto__"==t&&defineProperty$1?defineProperty$1(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var _baseAssignValue=baseAssignValue$2,baseAssignValue$1=_baseAssignValue,eq=eq_1,objectProto$8=Object.prototype,hasOwnProperty$6=objectProto$8.hasOwnProperty;function assignValue$2(e,t,n){var i=e[t];hasOwnProperty$6.call(e,t)&&eq(i,n)&&(void 0!==n||t in e)||baseAssignValue$1(e,t,n)}var _assignValue=assignValue$2,assignValue$1=_assignValue,baseAssignValue=_baseAssignValue;function copyObject$5(e,t,n,i){for(var r=!n,o=(n=n||{},-1),a=t.length;++o<a;){var s=t[o],d=i?i(n[s],e[s],s,n,e):void 0;void 0===d&&(d=e[s]),(r?baseAssignValue:assignValue$1)(n,s,d)}return n}var _copyObject=copyObject$5;function baseTimes$1(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}var _baseTimes=baseTimes$1,baseGetTag$3=_baseGetTag,isObjectLike$5=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(e){return isObjectLike$5(e)&&baseGetTag$3(e)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$4=isObjectLike_1,objectProto$7=Object.prototype,hasOwnProperty$5=objectProto$7.hasOwnProperty,propertyIsEnumerable$1=objectProto$7.propertyIsEnumerable,isArguments$2=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike$4(e)&&hasOwnProperty$5.call(e,"callee")&&!propertyIsEnumerable$1.call(e,"callee")},isArguments_1=isArguments$2,isBuffer$2={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse,isBufferExports=(isBuffer$2.exports,!function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,n=n&&n.exports===t?_root.Buffer:void 0,t=n?n.isBuffer:void 0;e.exports=t||stubFalse_1}(isBuffer$2,isBuffer$2.exports),isBuffer$2.exports),MAX_SAFE_INTEGER$1=0x1fffffffffffff,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$1(e,t){var n=typeof e;return!!(t=null==t?MAX_SAFE_INTEGER$1:t)&&("number"==n||"symbol"!=n&&reIsUint.test(e))&&-1<e&&e%1==0&&e<t}var _isIndex=isIndex$1,MAX_SAFE_INTEGER=0x1fffffffffffff;function isLength$2(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=MAX_SAFE_INTEGER}var isLength_1=isLength$2,baseGetTag$2=_baseGetTag,isLength$1=isLength_1,isObjectLike$3=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$1="[object Error]",funcTag$1="[object Function]",mapTag$4="[object Map]",numberTag$2="[object Number]",objectTag$3="[object Object]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$2="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};function baseIsTypedArray$1(e){return isObjectLike$3(e)&&isLength$1(e.length)&&!!typedArrayTags[baseGetTag$2(e)]}typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0,typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$4]=typedArrayTags[numberTag$2]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$2]=typedArrayTags[setTag$4]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$2]=!1;var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$3(e){return function(t){return e(t)}}var _baseUnary=baseUnary$3,_nodeUtil={exports:{}},_nodeUtilExports=(_nodeUtil.exports,!function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,i=n&&n.exports===t&&_freeGlobal.process,t=function(){try{return n&&n.require&&n.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=t}(_nodeUtil,_nodeUtil.exports),_nodeUtil.exports),baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$1=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$1,baseTimes=_baseTimes,isArguments$1=isArguments_1,isArray$4=isArray_1,isBuffer$1=isBufferExports,isIndex=_isIndex,isTypedArray=isTypedArray_1,objectProto$6=Object.prototype,hasOwnProperty$4=objectProto$6.hasOwnProperty;function arrayLikeKeys$2(e,t){var n,i=isArray$4(e),r=!i&&isArguments$1(e),o=!i&&!r&&isBuffer$1(e),a=!i&&!r&&!o&&isTypedArray(e),s=i||r||o||a,d=s?baseTimes(e.length,String):[],u=d.length;for(n in e)!t&&!hasOwnProperty$4.call(e,n)||s&&("length"==n||o&&("offset"==n||"parent"==n)||a&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||isIndex(n,u))||d.push(n);return d}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$5=Object.prototype;function isPrototype$3(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||objectProto$5)}var _isPrototype=isPrototype$3;function overArg$2(e,t){return function(n){return e(t(n))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=_nativeKeys,objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty;function baseKeys$1(e){if(!isPrototype$2(e))return nativeKeys(e);var t,n=[];for(t in Object(e))hasOwnProperty$3.call(e,t)&&"constructor"!=t&&n.push(t);return n}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength=isLength_1;function isArrayLike$3(e){return null!=e&&isLength(e.length)&&!isFunction(e)}var isArrayLike_1=isArrayLike$3,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$2=isArrayLike_1;function keys$4(e){return(isArrayLike$2(e)?arrayLikeKeys$1:baseKeys)(e)}var keys_1=keys$4,copyObject$4=_copyObject,keys$3=keys_1;function baseAssign$1(e,t){return e&©Object$4(t,keys$3(t),e)}var _baseAssign=baseAssign$1;function nativeKeysIn$1(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}var _nativeKeysIn=nativeKeysIn$1,isObject$2=isObject_1,isPrototype$1=_isPrototype,nativeKeysIn=_nativeKeysIn,objectProto$3=Object.prototype,hasOwnProperty$2=objectProto$3.hasOwnProperty;function baseKeysIn$1(e){if(!isObject$2(e))return nativeKeysIn(e);var t,n=isPrototype$1(e),i=[];for(t in e)("constructor"!=t||!n&&hasOwnProperty$2.call(e,t))&&i.push(t);return i}var _baseKeysIn=baseKeysIn$1,arrayLikeKeys=_arrayLikeKeys,baseKeysIn=_baseKeysIn,isArrayLike$1=isArrayLike_1;function keysIn$3(e){return isArrayLike$1(e)?arrayLikeKeys(e,!0):baseKeysIn(e)}var keysIn_1=keysIn$3,copyObject$3=_copyObject,keysIn$2=keysIn_1;function baseAssignIn$1(e,t){return e&©Object$3(t,keysIn$2(t),e)}var _baseAssignIn=baseAssignIn$1,_cloneBuffer={exports:{}},_cloneBufferExports=(_cloneBuffer.exports,!function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,n=n&&n.exports===t?_root.Buffer:void 0,i=n?n.allocUnsafe:void 0;e.exports=function(e,t){return t?e.slice():(t=e.length,t=i?i(t):new e.constructor(t),e.copy(t),t)}}(_cloneBuffer,_cloneBuffer.exports),_cloneBuffer.exports);function copyArray$1(e,t){var n=-1,i=e.length;for(t=t||Array(i);++n<i;)t[n]=e[n];return t}var _copyArray=copyArray$1;function arrayFilter$1(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var a=e[n];t(a,n,e)&&(o[r++]=a)}return o}var _arrayFilter=arrayFilter$1;function stubArray$2(){return[]}var stubArray_1=stubArray$2,arrayFilter=_arrayFilter,stubArray$1=stubArray_1,objectProto$2=Object.prototype,propertyIsEnumerable=objectProto$2.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols$3=nativeGetSymbols$1?function(e){return null==e?[]:arrayFilter(nativeGetSymbols$1(e=Object(e)),function(t){return propertyIsEnumerable.call(e,t)})}:stubArray$1,_getSymbols=getSymbols$3,copyObject$2=_copyObject,getSymbols$2=_getSymbols;function copySymbols$1(e,t){return copyObject$2(e,getSymbols$2(e),t)}var _copySymbols=copySymbols$1;function arrayPush$3(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}var _arrayPush=arrayPush$3,overArg=_overArg,getPrototype$3=overArg(Object.getPrototypeOf,Object),_getPrototype=getPrototype$3,arrayPush$2=_arrayPush,getPrototype$2=_getPrototype,getSymbols$1=_getSymbols,stubArray=stubArray_1,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn$2=nativeGetSymbols?function(e){for(var t=[];e;)arrayPush$2(t,getSymbols$1(e)),e=getPrototype$2(e);return t}:stubArray,_getSymbolsIn=getSymbolsIn$2,copyObject$1=_copyObject,getSymbolsIn$1=_getSymbolsIn;function copySymbolsIn$1(e,t){return copyObject$1(e,getSymbolsIn$1(e),t)}var _copySymbolsIn=copySymbolsIn$1,arrayPush$1=_arrayPush,isArray$3=isArray_1;function baseGetAllKeys$2(e,t,n){return t=t(e),isArray$3(e)?t:arrayPush$1(t,n(e))}var _baseGetAllKeys=baseGetAllKeys$2,baseGetAllKeys$1=_baseGetAllKeys,getSymbols=_getSymbols,keys$2=keys_1;function getAllKeys$1(e){return baseGetAllKeys$1(e,keys$2,getSymbols)}var _getAllKeys=getAllKeys$1,baseGetAllKeys=_baseGetAllKeys,getSymbolsIn=_getSymbolsIn,keysIn$1=keysIn_1;function getAllKeysIn$2(e){return baseGetAllKeys(e,keysIn$1,getSymbolsIn)}var _getAllKeysIn=getAllKeysIn$2,getNative$3=_getNative,root$4=_root,DataView$2=getNative$3(root$4,"DataView"),_DataView=DataView$2,getNative$2=_getNative,root$3=_root,Promise$2=getNative$2(root$3,"Promise"),_Promise=Promise$2,getNative$1=_getNative,root$2=_root,Set$2=getNative$1(root$2,"Set"),_Set=Set$2,getNative=_getNative,root$1=_root,WeakMap$2=getNative(root$1,"WeakMap"),_WeakMap=WeakMap$2,DataView$1=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=_WeakMap,baseGetTag$1=_baseGetTag,toSource=_toSource,mapTag$3="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$3="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$2="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag$3=baseGetTag$1,_getTag=((DataView$1&&getTag$3(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$2||Map$1&&getTag$3(new Map$1)!=mapTag$3||Promise$1&&getTag$3(Promise$1.resolve())!=promiseTag||Set$1&&getTag$3(new Set$1)!=setTag$3||WeakMap$1&&getTag$3(new WeakMap$1)!=weakMapTag$1)&&(getTag$3=function(e){var t=baseGetTag$1(e),e=t==objectTag$2?e.constructor:void 0,e=e?toSource(e):"";if(e)switch(e){case dataViewCtorString:return dataViewTag$2;case mapCtorString:return mapTag$3;case promiseCtorString:return promiseTag;case setCtorString:return setTag$3;case weakMapCtorString:return weakMapTag$1}return t}),getTag$3),objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function initCloneArray$1(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&hasOwnProperty$1.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var _initCloneArray=initCloneArray$1,root=_root,Uint8Array$2=root.Uint8Array,_Uint8Array=Uint8Array$2,Uint8Array$1=_Uint8Array;function cloneArrayBuffer$3(e){var t=new e.constructor(e.byteLength);return new Uint8Array$1(t).set(new Uint8Array$1(e)),t}var _cloneArrayBuffer=cloneArrayBuffer$3,cloneArrayBuffer$2=_cloneArrayBuffer;function cloneDataView$1(e,t){return t=t?cloneArrayBuffer$2(e.buffer):e.buffer,new e.constructor(t,e.byteOffset,e.byteLength)}var _cloneDataView=cloneDataView$1,reFlags=/\w*$/;function cloneRegExp$1(e){var t=new e.constructor(e.source,reFlags.exec(e));return t.lastIndex=e.lastIndex,t}var _cloneRegExp=cloneRegExp$1,Symbol$2=_Symbol,symbolProto=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function cloneSymbol$1(e){return symbolValueOf?Object(symbolValueOf.call(e)):{}}var _cloneSymbol=cloneSymbol$1,cloneArrayBuffer$1=_cloneArrayBuffer;function cloneTypedArray$1(e,t){return t=t?cloneArrayBuffer$1(e.buffer):e.buffer,new e.constructor(t,e.byteOffset,e.length)}var _cloneTypedArray=cloneTypedArray$1,cloneArrayBuffer=_cloneArrayBuffer,cloneDataView=_cloneDataView,cloneRegExp=_cloneRegExp,cloneSymbol=_cloneSymbol,cloneTypedArray=_cloneTypedArray,boolTag$1="[object Boolean]",dateTag$1="[object Date]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag$1(e,t,n){var i=e.constructor;switch(t){case arrayBufferTag$1:return cloneArrayBuffer(e);case boolTag$1:case dateTag$1:return new i(+e);case dataViewTag$1:return cloneDataView(e,n);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(e,n);case mapTag$2:return new i;case numberTag$1:case stringTag$1:return new i(e);case regexpTag$1:return cloneRegExp(e);case setTag$2:return new i;case symbolTag$1:return cloneSymbol(e)}}var _initCloneByTag=initCloneByTag$1,isObject$1=isObject_1,objectCreate=Object.create,baseCreate$1=function(){function e(){}return function(t){return isObject$1(t)?objectCreate?objectCreate(t):(e.prototype=t,t=new e,e.prototype=void 0,t):{}}}(),_baseCreate=baseCreate$1,baseCreate=_baseCreate,getPrototype$1=_getPrototype,isPrototype=_isPrototype;function initCloneObject$1(e){return"function"!=typeof e.constructor||isPrototype(e)?{}:baseCreate(getPrototype$1(e))}var _initCloneObject=initCloneObject$1,getTag$2=_getTag,isObjectLike$2=isObjectLike_1,mapTag$1="[object Map]";function baseIsMap$1(e){return isObjectLike$2(e)&&getTag$2(e)==mapTag$1}var _baseIsMap=baseIsMap$1,baseIsMap=_baseIsMap,baseUnary$1=_baseUnary,nodeUtil$1=_nodeUtilExports,nodeIsMap=nodeUtil$1&&nodeUtil$1.isMap,isMap$1=nodeIsMap?baseUnary$1(nodeIsMap):baseIsMap,isMap_1=isMap$1,getTag$1=_getTag,isObjectLike$1=isObjectLike_1,setTag$1="[object Set]";function baseIsSet$1(e){return isObjectLike$1(e)&&getTag$1(e)==setTag$1}var _baseIsSet=baseIsSet$1,baseIsSet=_baseIsSet,baseUnary=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsSet=nodeUtil&&nodeUtil.isSet,isSet$1=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,isSet_1=isSet$1,Stack=_Stack,arrayEach$1=_arrayEach,assignValue=_assignValue,baseAssign=_baseAssign,baseAssignIn=_baseAssignIn,cloneBuffer=_cloneBufferExports,copyArray=_copyArray,copySymbols=_copySymbols,copySymbolsIn=_copySymbolsIn,getAllKeys=_getAllKeys,getAllKeysIn$1=_getAllKeysIn,getTag=_getTag,initCloneArray=_initCloneArray,initCloneByTag=_initCloneByTag,initCloneObject=_initCloneObject,isArray$2=isArray_1,isBuffer=isBufferExports,isMap=isMap_1,isObject=isObject_1,isSet=isSet_1,keys$1=keys_1,keysIn=keysIn_1,CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG$1=2,CLONE_SYMBOLS_FLAG$1=4,argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag="[object Map]",numberTag="[object Number]",objectTag$1="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};function baseClone$1(e,t,n,i,r,o){var a,s=t&CLONE_DEEP_FLAG$1,d=t&CLONE_FLAT_FLAG$1,u=t&CLONE_SYMBOLS_FLAG$1;if(void 0===(a=n?r?n(e,i,r,o):n(e):a)){if(!isObject(e))return e;if(i=isArray$2(e)){if(a=initCloneArray(e),!s)return copyArray(e,a)}else{var c=getTag(e),l=c==funcTag||c==genTag;if(isBuffer(e))return cloneBuffer(e,s);if(c==objectTag$1||c==argsTag||l&&!r){if(a=d||l?{}:initCloneObject(e),!s)return d?copySymbolsIn(e,baseAssignIn(a,e)):copySymbols(e,baseAssign(a,e))}else{if(!cloneableTags[c])return r?e:{};a=initCloneByTag(e,c,s)}}if(l=(o=o||new Stack).get(e))return l;o.set(e,a),isSet(e)?e.forEach(function(i){a.add(baseClone$1(i,t,n,i,e,o))}):isMap(e)&&e.forEach(function(i,r){a.set(r,baseClone$1(i,t,n,r,e,o))});var p=i?void 0:(u?d?getAllKeysIn$1:getAllKeys:d?keysIn:keys$1)(e);arrayEach$1(p||e,function(i,r){p&&(i=e[r=i]),assignValue(a,r,baseClone$1(i,t,n,r,e,o))})}return a}cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[dataViewTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag]=cloneableTags[numberTag]=cloneableTags[objectTag$1]=cloneableTags[regexpTag]=cloneableTags[setTag]=cloneableTags[stringTag]=cloneableTags[symbolTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;var _baseClone=baseClone$1;function last$1(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var last_1=last$1;function baseSlice$1(e,t,n){for(var i=-1,r=e.length,o=((n=r<n?r:n)<0&&(n+=r),r=n<(t=t<0?r<-t?0:r+t:t)?0:n-t>>>0,t>>>=0,Array(r));++i<r;)o[i]=e[i+t];return o}var _baseSlice=baseSlice$1,baseGet=_baseGet,baseSlice=_baseSlice;function parent$1(e,t){return t.length<2?e:baseGet(e,baseSlice(t,0,-1))}var _parent=parent$1,castPath$1=_castPath,last=last_1,parent=_parent,toKey=_toKey;function baseUnset$1(e,t){return t=castPath$1(t,e),null==(e=parent(e,t))||delete e[toKey(last(t))]}var _baseUnset=baseUnset$1,baseGetTag=_baseGetTag,getPrototype=_getPrototype,isObjectLike=isObjectLike_1,objectTag="[object Object]",funcProto=Function.prototype,objectProto=Object.prototype,funcToString=funcProto.toString,hasOwnProperty=objectProto.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject$1(e){return!(!isObjectLike(e)||baseGetTag(e)!=objectTag)&&(null===(e=getPrototype(e))||"function"==typeof(e=hasOwnProperty.call(e,"constructor")&&e.constructor)&&e instanceof e&&funcToString.call(e)==objectCtorString)}var isPlainObject_1=isPlainObject$1,isPlainObject=isPlainObject_1;function customOmitClone$1(e){return isPlainObject(e)?void 0:e}var _customOmitClone=customOmitClone$1,Symbol$1=_Symbol,isArguments=isArguments_1,isArray$1=isArray_1,spreadableSymbol=Symbol$1?Symbol$1.isConcatSpreadable:void 0;function isFlattenable$1(e){return isArray$1(e)||isArguments(e)||!!(spreadableSymbol&&e&&e[spreadableSymbol])}var _isFlattenable=isFlattenable$1,arrayPush=_arrayPush,isFlattenable=_isFlattenable;function baseFlatten$1(e,t,n,i,r){var o=-1,a=e.length;for(n=n||isFlattenable,r=r||[];++o<a;){var s=e[o];0<t&&n(s)?1<t?baseFlatten$1(s,t-1,n,i,r):arrayPush(r,s):i||(r[r.length]=s)}return r}var _baseFlatten=baseFlatten$1,baseFlatten=_baseFlatten;function flatten$1(e){return(null==e?0:e.length)?baseFlatten(e,1):[]}var flatten_1=flatten$1;function apply$1(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var _apply=apply$1,apply=_apply,nativeMax=Math.max;function overRest$1(e,t,n){return t=nativeMax(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,o=nativeMax(i.length-t,0),a=Array(o);++r<o;)a[r]=i[t+r];for(var r=-1,s=Array(t+1);++r<t;)s[r]=i[r];return s[t]=n(a),apply(e,this,s)}}var _overRest=overRest$1;function constant$1(e){return function(){return e}}var constant_1=constant$1;function identity$2(e){return e}var identity_1=identity$2,constant=constant_1,defineProperty=_defineProperty,identity$1=identity_1,baseSetToString$1=defineProperty?function(e,t){return defineProperty(e,"toString",{configurable:!0,enumerable:!1,value:constant(t),writable:!0})}:identity$1,_baseSetToString=baseSetToString$1,HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut$1(e){var t=0,n=0;return function(){var i=nativeNow(),r=HOT_SPAN-(i-n);if(n=i,0<r){if(++t>=HOT_COUNT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var _shortOut=shortOut$1,baseSetToString=_baseSetToString,shortOut=_shortOut,setToString$1=shortOut(baseSetToString),_setToString=setToString$1,flatten=flatten_1,overRest=_overRest,setToString=_setToString;function flatRest$1(e){return setToString(overRest(e,void 0,flatten),e+"")}var _flatRest=flatRest$1,arrayMap=_arrayMap,baseClone=_baseClone,baseUnset=_baseUnset,castPath=_castPath,copyObject=_copyObject,customOmitClone=_customOmitClone,flatRest=_flatRest,getAllKeysIn=_getAllKeysIn,CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4,omit=flatRest(function(e,t){var n={};if(null!=e)for(var i=!1,r=(t=arrayMap(t,function(t){return t=castPath(t,e),i=i||1<t.length,t}),copyObject(e,getAllKeysIn(e),n),i&&(n=baseClone(n,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone)),t.length);r--;)baseUnset(n,t[r]);return n}),omit_1=omit,omit$1=getDefaultExportFromCjs(omit_1);function doesExist(e){return null!=e}let MESSAGE_PROMISE="promise";function Message(e,t,n){this.name=e,this.type=t,this.data=n}Message.prototype.toString=function(){return`Message.${this.type} - `+this.name};let createMessage=(e,t,n)=>(e=new Message(e,t,n),t===MESSAGE_PROMISE&&(e.requestId=uniqueId$1()),e),fromEvent=e=>{try{var{name:t,type:n,isResponse:i,data:r,requestId:o,sender:a}=e.data||{},s=new Message(t,n,doesExist(r)?JSON.parse(r):void 0);return s.requestId=o,s.sender=a,s.destination=e.source,s.isResponse=i,s}catch(e){return!1}},serialize=e=>{var t=omit$1(e,["destination","toString","data"]);return t.data=JSON.stringify(e.data,(e,t)=>"function"==typeof t||t instanceof RegExp?t.toString?t.toString():void 0:t),t},asResponse=e=>(e.isResponse=!0,e),pipe=(...e)=>t=>[].concat(e).reduce((e,n,i,r)=>((e=n(e,t))||r.splice(i,r.length-i),e),t),tap=e=>(t,...n)=>(e(t,...n),t);function createBaseFor$1(e){return function(t,n,i){for(var r=-1,o=Object(t),a=i(t),s=a.length;s--;){var d=a[e?s:++r];if(!1===n(o[d],d,o))break}return t}}var _createBaseFor=createBaseFor$1,createBaseFor=_createBaseFor,baseFor$1=createBaseFor(),_baseFor=baseFor$1,baseFor=_baseFor,keys=keys_1;function baseForOwn$1(e,t){return e&&baseFor(e,t,keys)}var _baseForOwn=baseForOwn$1,isArrayLike=isArrayLike_1;function createBaseEach$1(e,t){return function(n,i){if(null!=n){if(!isArrayLike(n))return e(n,i);for(var r=n.length,o=t?r:-1,a=Object(n);(t?o--:++o<r)&&!1!==i(a[o],o,a););}return n}}var _createBaseEach=createBaseEach$1,baseForOwn=_baseForOwn,createBaseEach=_createBaseEach,baseEach$1=createBaseEach(baseForOwn),_baseEach=baseEach$1,identity=identity_1;function castFunction$1(e){return"function"==typeof e?e:identity}var _castFunction=castFunction$1,arrayEach=_arrayEach,baseEach=_baseEach,castFunction=_castFunction,isArray=isArray_1;function forEach(e,t){return(isArray(e)?arrayEach:baseEach)(e,castFunction(t))}var forEach_1=forEach,each=forEach_1,each$1=getDefaultExportFromCjs(each);let dead="dead_connection",disconnected="disconnected",connected="connected",isConnected=e=>e<1e4,isDisconnected=e=>1e4<e,isDead=e=>3e4<e,state$1={lastMessageReceivedAt:0,currentConnectionQuality:disconnected,changeCallbacks:{},evalCallbacks:{}},triggerConnectionStatusChanged=()=>{each$1(state$1.changeCallbacks,e=>{e(state$1.currentConnectionQuality)})},triggerEval=()=>{each$1(state$1.evalCallbacks,e=>{e(state$1.currentConnectionQuality)})},setConnectionStatus=e=>{e!==state$1.currentConnectionQuality&&(state$1.currentConnectionQuality=e,triggerConnectionStatusChanged())},evaluateConnectionQuality=()=>{var e;0===state$1.lastMessageReceivedAt?setConnectionStatus(disconnected):(isConnected(e=Date.now()-state$1.lastMessageReceivedAt)?setConnectionStatus(connected):isDisconnected(e)&&(isDead(e)?setConnectionStatus(dead):setConnectionStatus(disconnected)),triggerEval())},start=(e=0)=>{let t=setInterval(evaluateConnectionQuality,100);stopFn=()=>clearInterval(t)},stop=()=>{stopFn&&stopFn(),resetMonitor()},_listenerId=0,onStatusEval=e=>{if(isFunction$3(e)){let t=_listenerId++;return state$1.evalCallbacks[t]=e,()=>{delete state$1.evalCallbacks[t]}}},markTime=(e=Date.now())=>{state$1.lastMessageReceivedAt=e},resetMonitor=()=>{state$1.currentConnectionQuality=disconnected,state$1.lastMessageReceivedAt=0},state={appName:void 0,connectionName:void 0,frameId:void 0,pendingRequests:{},topics:{},senderIds:{},originProvider:void 0,destinationProvider:void 0},getListener=()=>""+state.appName+state.connectionName+`(${state.frameId})`,_send=e=>{e.sender||(e.sender=getListener());var t=e.destination||state.destinationProvider(),n=serialize(e),i=getPortForSender(e.sender),r=hasSenderTriedToUpgradeToMessageChannel(e.sender);i||r?i?i.postMessage(n):t.postMessage(n,state.originProvider()):(addPort((r=new MessageChannel).port1,e.sender),t.postMessage(n,state.originProvider(),[r.port2]))},promise=(e,t,n=1e3)=>new Promise$4((i,r)=>{let o=createMessage(e,MESSAGE_PROMISE,t),a=setTimeout$1(()=>{r(e+" timeout"),clearPendingRequest(o),downgradeToPostMessage(o)},n);addPendingRequest(o,()=>clearTimeout(a),i,r),_send(o)}),addSenderId=e=>{state.senderIds[e]||(state.senderIds[e]={port:void 0,hasTriedToUpgradeToMessageChannel:!1})},getSenderInfo=e=>(state.senderIds[e]||addSenderId(e),state.senderIds[e]),getPortForSender=e=>getSenderInfo(e).port,hasSenderTriedToUpgradeToMessageChannel=e=>getSenderInfo(e).hasTriedToUpgradeToMessageChannel,addPendingRequest=(e,t,n,i)=>{state.pendingRequests[e.requestId]={message:e,clearTimeoutfn:t,resolve:n,reject:i}},resolveRequest=e=>{var t=state.pendingRequests[e.requestId];return t&&(t.resolve(e.data),clearPendingRequest(e)),e},clearPendingRequest=e=>{var t=e.requestId;return state.pendingRequests[t].clearTimeoutfn(),delete state.pendingRequests[t],e},updateSubscriptions=e=>{var t=state.topics[e.name];return t&&t.forEach(t=>t(e.data)),e},PING_MSG="message::ping",sendPing=()=>{promise(PING_MSG).catch(()=>{console.log("message::ping timedout")})},dispatchMessage=e=>{var t;return e&&!e.isResponse&&(e.name===PING_MSG?_send(asResponse(e)):(t=state.routeHandlerLookup(e.name))?t(e,t=>{e.data=t,_send(asResponse(e))}):console.log(getListener(),"No route handler for "+e.name,e)),e},commonFns=pipe(resolveRequest,updateSubscriptions,dispatchMessage,tap(()=>{markTime()})),filterWrongOrigin=e=>("*"===state.originProvider()||e.origin===state.originProvider())&&e,filterWrongSender=e=>{var t=get$1(e,"data.sender");return!(!t||"string"!=typeof t||!t.includes(state.appName))&&e},addPort=(e,t)=>{(t=getSenderInfo(t)).port=e,t.hasTriedToUpgradeToMessageChannel=!0,t.port.onmessage=pipe(fromEvent,commonFns)},removePort=e=>{(e=getSenderInfo(e)).port=void 0,e.hasTriedToUpgradeToMessageChannel=!1},upgradeToChannel=(e,t)=>(!getSenderInfo(e.sender).hasTriedToUpgradeToMessageChannel&&t.ports&&t.ports[0]&&addPort(t.ports[0],e.sender),e),downgradeToPostMessage=e=>{removePort(e.sender)},_stopListening=()=>{},stopListening=()=>{_stopListening(),_stopListening=()=>{},stop()},notConnectedListener=throttle$1(e=>{"connected"!==e&&state.usePingAutoReconnect&&sendPing()},1e3),startListening=(e,t,n,i,r,o=!1,a)=>{if(window.addEventListener){state.appName=e,state.frameId=t,state.routeHandlerLookup=n,state.usePingAutoReconnect=o,state.connectionName=a||"",state.originProvider=i||(()=>window.location.origin||"*"),state.destinationProvider=r||(()=>window.parent||window.top),start(),onStatusEval(notConnectedListener);let s=pipe(filterWrongOrigin,filterWrongSender,fromEvent,upgradeToChannel,commonFns);window.addEventListener("message",s),_stopListening=()=>window.removeEventListener("message",s)}};var VocPortal=function(){var e,t;return{name:"VocPortal",initialize:function(r,o){e=r,r=(t=o).EventTracer.addTracerIds({}).frameId,this.removeResizeEvent=e.attachEvent(window,"resize",i),startListening("VocPortal",r,n,function(){return"*"})},routeHandlerLookup:n,queryMessageHandler:r,resizeMessageHandler:o,teardown:function(){this.removeResizeEvent&&this.removeResizeEvent(),stopListening()}};function n(e){switch(e){case"pendo-voc::query":return r;case"pendo-voc::resize":return o;default:return}}function i(){var n=document.getElementById("pendo-resource-center-container"),n=e.dom(n);t.sizeElements(n)}function r(n,i){var r=e.getSerializedMetadata(),o=!!e.designer||t.store.getters["preview/isInPreviewMode"]();i({apiKey:e.apiKey,url:e.url.externalizeURL(),visitor:r.visitor,account:r.account,parentAccount:r.parentAccount,sandboxMode:o})}function o(e){try{var n,r,o,a=e.data.width,s=a.value,d=a.unit,u=a.isImportant,c=e.data.height,l=c.value,p=c.unit,f=c.isImportant;"number"==typeof s&&"number"==typeof l&&(n=["px","%","vh","vw"]).includes(d)&&n.includes(p)&&(r="".concat(s).concat(d).concat(u?" !important":""),o="".concat(l).concat(p).concat(f?" !important":""),document.getElementById("pendo-resource-center-container").appendChild(document.createElement("style")).innerHTML='#pendo-resource-center-container:has(iframe[src*="portal"][src*="mode=rc"]) {\n width: '.concat(r,";\n height: ").concat(o,";\n ._pendo-step-container-size {\n width: ").concat(r,";\n height: ").concat(o,";\n }\n }"),i())}catch(e){t.log.error("Error while adjusting RC module",e)}}}();function isFeedbackOn(e){return e.ConfigReader.get("pendoFeedback")}function isUnsupportedIE(e){return!e.sniffer.isMinimumIEVersion(10)}var Feedback=function(){var e,t,n="feedback_notification_count",i="",r="",o="",a="",s=!1,d="",u=!1,c="feedback_ping_sent",l=36e5,p={feedbackIframe:"feedback-widget_iframe",feedbackTrigger:"feedback-trigger",feedbackWidget:"feedback-widget",feedbackOverlay:"feedback-overlay",feedbackTriggerButton:"feedback-trigger-button",feedbackStyles:"pendo-feedback-styles",feedbackFrameStyles:"pendo-feedback-visible-buttons-styles"};return{name:"Feedback",initialize:function(i,r){t=r;var o={ping:I,init:B,initialized:z,loginAndRedirect:x,openFeedback:R,initializeFeedbackOnce:S,isFeedbackLoaded:P,convertPendoToFeedbackOptions:Z,isUnsupportedIE:(e=i)._.partial(isUnsupportedIE,r),removeFeedbackWidget:U};return i.feedback=o,i.getFeedbackSettings=j,r.Events.identify.on(g),r.Events.metadata.on(g),r.Events.ready.on(m),r.agentStorage.registry.addLocal(n),r.agentStorage.registry.addLocal(c),{validate:f}},teardown:function(){U(),t.Events.identify.off(g),t.Events.metadata.off(g),t.Events.ready.off(m),delete e.feedback,delete e.getFeedbackSettings},validate:f};function f(e,t){return(t=isFeedbackOn(t))&&isUnsupportedIE(e)?(console.warn("The current version of IE is not supported by Pendo Feedback"),!1):t}function h(){var n=D();u?I(Z(n)):!isFeedbackOn(t)||t.ConfigReader.get("disableFeedbackAutoInit")||t.ConfigReader.get("disableFeedback",!1)||e._.isEmpty(n)||B(n,t.ConfigReader.get("feedbackSettings")).catch(e._.noop)}function g(t){t=e._.get(t,"data.0.visitor_id")||e._.get(t,"data.0.options.visitor.id"),e.isAnonymousVisitor(t)||h()}function m(){h()}function v(){return o+"/html/widget/notLoaded.html"}function y(e){return e=e||Z(D()),t.agentStorage.read(c)===b(e)}function b(e){return JSON.stringify(e)}function I(r){return!y(r)&&(t.agentStorage.write(c,b(r),l),(r=w(r)).data&&"{}"!==r.data&&"null"!==r.data)?e.ajax.postJSON(i+"/widget/pendo_ping",r).then(function(e){e=e.data.notifications,t.agentStorage.write(n,e),C()}).catch(function(){t.agentStorage.clear(c)}):t.q.resolve()}function w(e){return{data:JSON.stringify(e=e||Z(D()))}}function C(){var i=e.dom("#feedback-trigger-notification");0!==i.length&&(0<parseInt(t.agentStorage.read(n)||0,10)?e._.each(i,function(t){e.dom(t).css({visibility:"visible"})}):e._.each(i,function(t){e.dom(t).css({visibility:"hidden"})}))}function S(){return u&&y()?t.q.resolve():B(D(),t.ConfigReader.get("feedbackSettings"))}function x(t){return S().then(function(){var n;if(e._.isUndefined(t)&&(t={}),"A"===e._.get(t,"anchor.nodeName","").toUpperCase())return n=window.open(v(),Math.random().toString(36).substring(7)),E().then(function(e){n.location=e}),!1;E().then(function(e){window.location.href=e})},function(){})}function A(e){var t=document.createElement("a");return t.href=e,t.host}function E(){var t=w();if(t.data&&"{}"!==t.data&&"null"!==t.data)return e.ajax.postJSON(i+"/widget/token",t).then(function(e){return a=A(e.data.login_url),e.data.login_url})}function T(){return document.getElementById(p.feedbackWidget)}function k(){return document.getElementById(p.feedbackIframe)}function _(){var e=k();return e||(G(),e=k()),e}function R(t){var n,i;W()&&(t&&t.preventDefault&&t.preventDefault(),(n=_()).src&&n.src!==v()||E().then(function(e){n.src=e+"&inWidget=true"}),(t=e.dom("#".concat(p.feedbackWidget)))&&((i=e.dom(document.createElement("div"))).attr("id","feedback-overlay"),i.css({position:"fixed",top:"0",right:"0",bottom:"0",left:"0",background:"rgba(0, 0, 0, 0.4)","z-index":"9000",opacity:"0",animation:"pendoFeedbackFadeIn 0.5s 0s 1 alternate both","-webkit-animation":"pendoFeedbackFadeIn 0.5s 0s 1 alternate both"}),i.appendTo(t.getParent())),e.dom.addClass(T(),"visible"),N("user.widget.opened"))}function O(){var t,n;t=document.getElementById(p.feedbackWidget),n=document.getElementById(p.feedbackOverlay),t&&n&&(t=document.getElementById(p.feedbackOverlay)).parentNode.removeChild(t),e.dom.removeClass(T(),"visible"),N("user.widget.closed")}function N(t){var n=w();n.event=t,e.ajax.postJSON(i+"/analytics",n)}function M(){window.addEventListener("message",function(e){var i=e.origin||e.originalEvent.origin;if(a?A(i)===a:A(i)===A(o)){var i=e.data.message,r=e.data.data;switch(i){case"close-receptive-widget":O();break;case"open-receptive":x();break;case"update-receptive-notification-count":t.agentStorage.write(n,r.count),C();break;case"handle-logout":_().src=v(),O();break;case"loaded-receptive-widget":s=!0}}},!1)}function L(t,n){var i;e.dom("#".concat(t))[0]||((i=e.dom(document.createElement("style"))).attr("id",t),i.html(n),i.appendTo(document.head))}function F(n){var i,r,o=e._.extend(n,{triggerColor:"#"+n.triggerColor,triggerPosition:n.triggerPosition.toLowerCase()}),a=("undefined"!=typeof Turbolinks&&document.addEventListener("turbolinks:before-visit",function(e){var t=document.getElementById(p.feedbackIframe);t&&(t.src=v())}),function(e){return{horizontalPosition:(e=e.triggerPosition.split("_"))[1],verticalPosition:e[0]}}(o));L(p.feedbackStyles,(r="left"===(r=a.horizontalPosition)?(i="@-webkit-keyframes pendoFeedbackSlideFrom-left{from{opacity:0;transform:translate(-460px,0)}to{opacity:1;transform:translate(0,0)}}@keyframes pendoFeedbackSlideFrom-left{from{opacity:0;transform:translate(-460px,0)}to{opacity:1;transform:translate(0,0)}}","@media only screen and (max-width:470px){#feedback-widget.buttonIs-left.visible{width:100%}}"):(i="@-webkit-keyframes pendoFeedbackSlideFrom-right{from{transform:translate(-460px,0)}to{transform:translate(0,0)}}@keyframes pendoFeedbackSlideFrom-right{from{opacity:0;transform:translate(460px,0)}to{opacity:1;transform:translate(0,0)}}","@media only screen and (max-width:470px){#feedback-widget.buttonIs-right.visible{width:100%;right:2%}}"),"@media only screen and (max-device-width:1112px){#feedback-widget{overflow-y:scroll}}@-webkit-keyframes pendoFeedbackSlideIn{from{opacity:0;transform:translate(145px,0) rotate(270deg) translateY(-50%)}to{opacity:1;transform:translate(50%,0) rotate(270deg) translateY(-50%)}}@keyframes pendoFeedbackSlideIn{from{opacity:0;transform:translate(145px,0) rotate(270deg) translateY(-50%)}to{opacity:1;transform:translate(50%,0) rotate(270deg) translateY(-50%)}}@-webkit-keyframes pendoFeedbackSlideIn-left{from{opacity:0;transform:rotate(270deg) translateX(-55%) translateY(-55%)}to{opacity:1;transform:rotate(270deg) translateX(-55%) translateY(0)}}@keyframes pendoFeedbackSlideIn-left{from{opacity:0;transform:rotate(270deg) translateX(-55%) translateY(-55%)}to{opacity:1;transform:rotate(270deg) translateX(-55%) translateY(0)}}"+i+"@-webkit-keyframes pendoFeedbackPulse{from{-webkit-transform:scale(1,1);transform:scale(1,1)}50%{-webkit-transform:scale(1.15,1.15);transform:scale(1.15,1.15)}to{-webkit-transform:scale(1,1);transform:scale(1,1)}}@keyframes pendoFeedbackPulse{from{-webkit-transform:scale(1,1);transform:scale(1,1)}50%{-webkit-transform:scale(1.15,1.15);transform:scale(1.15,1.15)}to{-webkit-transform:scale(1,1);transform:scale(1,1)}}@-webkit-keyframes pendoFeedbackFadeIn{from{opacity:0}to{opacity:1}}@keyframes pendoFeedbackFadeIn{from{opacity:0}to{opacity:1}}"+r+"#feedback-trigger button:focus,#feedback-trigger button:hover{box-shadow:0 -5px 20px rgba(0,0,0,.19);outline:0;background:#3e566f}")),n.customTrigger||(i=o,r=a,L("pendo-feedback-trigger-styles","\n #feedback-trigger button:hover {\n box-shadow: 0 -5px 20px rgba(0,0,0,.19) !important;\n outline: none !important;\n background: #3e566f !important;\n }\n #feedback-trigger button:focus {\n box-shadow: 0 -5px 20px rgba(0,0,0,.19) !important;\n outline: none !important;\n background: #3e566f !important;\n }\n "),n=function(t){var n=function(e){return"left"===e.horizontalPosition?{"transform-origin":"center left",left:"23px",animation:"pendoFeedbackSlideIn-left 0.2s 0s 1 alternate forwards","-webkit-animation":"pendoFeedbackSlideIn-left 0.2s 0s 1 alternate forwards"}:{right:"0px",animation:"pendoFeedbackSlideIn 0.2s 0s 1 alternate forwards","-webkit-animation":"pendoFeedbackSlideIn 0.2s 0s 1 alternate forwards"}}(t),t=function(e){switch(e.verticalPosition){case"top":return{top:" 10%"};case"middle":return{top:" 45%"};case"bottom":return{bottom:" 20%"}}}(t),n=e._.extend({position:"fixed",height:"43px",opacity:"1 !important","z-index":"9001"},n,t),t=e.dom(document.createElement("div"));return t.attr("id",p.feedbackTrigger),t.css(n),t.attr("data-turbolinks-permanent",""),t}(r),o=function(){var t=e.dom(document.createElement("span"));return t.attr("id","feedback-trigger-notification"),t.css({"background-color":"#D85039",color:"#fff","border-radius":"50%",height:"17px",width:"17px",position:"absolute",right:"-6px",top:"-8px",visibility:"hidden","z-index":"1",animation:"pendoFeedbackPulse","animation-fill-mode":"both","animation-duration":"1s","animation-delay":"1s","animation-iteration-count":"1"}),t}(),i=function(t,n){n="left"===n.horizontalPosition?"0 0 5px 5px":"3px 3px 0 0";var n={border:"none",padding:"11px 18px 14px 18px","background-color":t.triggerColor,"border-radius":n,"font-size":"15px",color:"#fff","box-shadow":"0 -5px 9px rgba(0,0,0,.16)",cursor:"pointer","text-align":"left"},i=e.dom(document.createElement("button"));return i.attr("id",p.feedbackTriggerButton),i.css(n),i.text(t.triggerText),i}(i,r),n.append(o),n.append(i),n.appendTo(e.dom.getBody()),t.attachEvent(i[0],"click",R)),G(a.horizontalPosition)}function G(t){n="\n .buttonIs-".concat(n="left"===(n=t)?"left":"right",".visible {\n ").concat(n,": 0 !important;\n width: 470px !important;\n animation-direction: alternate-reverse !important;\n animation: pendoFeedbackSlideFrom-").concat(n," 0.5s 0s 1 alternate both !important;\n -webkit-animation: pendoFeedbackSlideFrom-").concat(n," 0.5s 0s 1 alternate both !important;\n z-index: 9002 !important;\n }\n "),L(p.feedbackFrameStyles,n),n=t,(t=e.dom(document.createElement("div"))).css({height:"100%",position:"fixed",right:"0",top:"0",width:"0","background-color":"#f7f7f7",transition:"animation 0.4s ease-in-out","box-shadow":"0 5px 40px rgba(0,0,0,.46)",display:"block !important","-webkit-overflow-scrolling":"touch","overflow-y":"hidden"}),t.attr("id",p.feedbackWidget),t.attr("data-turbolinks-permanent","true"),t.addClass("buttonIs-".concat(n));var n=t;n.append(((t=e.dom(document.createElement("iframe"))).css({width:"100%",height:"99.6%",border:"0 none"}),t.attr("id",p.feedbackIframe),t.attr("src",v()),t)),n.appendTo(e.dom.getBody()),M()}function P(){return s}function D(){var n=t.ConfigReader.getLocalConfig();return e._.isObject(n)||(n={}),e._.isObject(n.visitor)||(n.visitor={}),e._.isObject(n.account)||(n.account={}),n}function W(t){if(t=t||D(),!isUnsupportedIE(e)&&r&&i&&o&&d)if(e._.get(t.visitor,"id")){if(!e.isAnonymousVisitor(t.visitor.id)){if(e._.get(t.account,"id"))return 1;e.log("The current visitor is not associated with an account.")}}else e.log("Not valid visitor id")}function B(n,a){if(r=a.vendorId,i=a.apiUrl,o=a.siteUrl,d=a.productId,u||!W(n))return t.q.reject();var s,c,n=Z(n);try{s=e.url.get(),c="fdbkDst";var l=null!=(c=RegExp("[?&]"+c+"=([^&#]*)").exec(s))&&decodeURI(c[1])||null;if(l&&l.startsWith("case"))return u=!0,void E().then(function(e){window.location.href=e+"&fdbkDst="+l})}catch(t){u=!1,e.log(t,"unhandled error while checking feedback destination")}try{return u=!0,"WIDGET"===a.type&&F(a),C(),I(n)}catch(n){return u=!1,e.log(n,"unhandled error while initializing feedback"),t.q.reject(n)}}function Z(n){var i,o,a=t.agent.getJwtInfoCopy();return e._.isEmpty(a)?((i={}).user=e._.pick(n.visitor,"id","full_name","firstName","lastName","email","tags","custom_allowed_products"),e._.extend(i.user,{allowed_products:[{id:d}]}),i.account=e._.pick(n.account,"id","name","monthly_value","is_paying","tags"),e._.extend(i,{vendor:{id:r}}),e._.isUndefined(i.account.is_paying)&&(i.account.is_paying=!0),null!=i.user.email&&""!=i.user.email||(i.user.email=(n=i,e._.isUndefined(n.user)||e._.isUndefined(n.user.id)?"noemail+"+e.randomString(32)+"@pendo.io":"noemail+"+n.user.id+"@pendo.io")),null!=i.user.full_name&&""!=i.user.full_name||(i.user.full_name=(n=i,e._.isUndefined(n.user.firstName)&&e._.isUndefined(n.user.lastName)?e._.isUndefined(n.user)||e._.isUndefined(n.user.id)?"No Name Provided"+e.randomString(32):"No Name Provided"+n.user.id:(o=[],e._.isUndefined(n.user.firstName)||o.push(n.user.firstName),e._.isUndefined(n.user.lastName)||o.push(n.user.lastName),o.join(" ")))),i):(n=JSON.parse(JSON.stringify(a)),e._.extend(n,{vendor:{id:r}}),e._.extend(n,{allowed_products:[{id:d}]}),n)}function z(){return u}function U(){e._.each(e._.values(p),function(t){e.dom("#"+t).remove()}),d=a=o=r=i="",u=s=!1}function j(){return JSON.parse(JSON.stringify(t.ConfigReader.get("feedbackSettings",{})))}}(),replay=errorLogger(new SessionRecorder(record,WorkerFactory))});var $3IN8j=parcelRequire("3IN8j"),$23f52de032092d67$exports={};$23f52de032092d67$exports=JSON.parse('{"name":"@pendo/agent","main":"index.js","author":"pendo.io <[email protected]>","dependencies":{"minimist":"^1.2.8"},"type":"module","bin":{"pendo":"bin/cli.js"},"engines":{"node":">=12"},"version":"2.271.0"}');var $0f309d712151a66f$exports={};async function $d8162e83d236fdf7$export$af20572415020373(e,t={}){t.apiKey||$d8162e83d236fdf7$var$exit('Missing required option "apiKey"');let n=await $d8162e83d236fdf7$export$d2c3e43bcc79cf6f(t);delete t.config;let i=e(n),r=t.globalKey||"pendo";return window[r]=i,delete t.globalKey,$d8162e83d236fdf7$var$addPlugins(i,t),delete t.plugins,i.initialize(t),i}async function $d8162e83d236fdf7$export$d2c3e43bcc79cf6f(e){let t;if(e.env||$d8162e83d236fdf7$var$exit('Missing option "env", please specify an environment for your Pendo subscription.'),e.config&&Object.keys(e.config).length)t={...e.config,...$d8162e83d236fdf7$var$generateBaseAgentConfig(e.env)};else{let n=$d8162e83d236fdf7$var$generateBaseAgentConfig(e.env),i=new URL(`agent/static/${e.apiKey}/config.json`,`https://${n.assetHost}`).toString();t={...await fetch(i).then(e=>(e.ok||$d8162e83d236fdf7$var$exit("could not load config.json"),e.json())),...n}}return e.assets?(e.assetHost=e.assets.host,t.assetPath=e.assets.path,delete t.assetHost,e.recording={...e.recording,workerUrl:`${e.assetHost?e.assetHost:""}${t.assetPath?"/"+t.assetPath:""}/replay.worker.min.js`},e.assets.localOnly&&(t.preventCodeInjection=!0,t.disableDesigner=!0),delete e.assets):t.assetPath=`agent/releases/${$parcel$interopDefault($23f52de032092d67$exports).version}`,t.loadAsModule=!0,delete t.stagingAgentUrl,delete t.stagingServerHashes,delete t.stagingServers,t}function $d8162e83d236fdf7$var$exit(e,t){throw Error(`Failed to load Pendo agent: ${e}`,{cause:t})}function $d8162e83d236fdf7$var$addPlugins(e,t){[].concat(t.plugins).forEach(t=>{t&&e.addExtension({name:t.name,version:"1.0.0",type:"agent",use:"plugin",uri:t})})}function $d8162e83d236fdf7$var$generateBaseAgentConfig(e){return $parcel$interopDefault($0f309d712151a66f$exports).ENV[e]||$d8162e83d236fdf7$var$exit(`Unknown environment "${e}", please specify a valid environment for your subscription.`),{env:$parcel$interopDefault($0f309d712151a66f$exports).ENV[e],designerEnv:$parcel$interopDefault($0f309d712151a66f$exports).ENV[e],server:$parcel$interopDefault($0f309d712151a66f$exports).data[e],assetHost:$parcel$interopDefault($0f309d712151a66f$exports).assetHost[e]}}async function $0b2cb87367598ddd$export$2a47f398eeff8b01(e={}){return $d8162e83d236fdf7$export$af20572415020373($3IN8j.loadAgent,e)}$0f309d712151a66f$exports=JSON.parse('{"data":{"io":"https://app.pendo.io","eu":"https://app.eu.pendo.io","us1":"https://us1.app.pendo.io","jp":"https://app.jpn.pendo.io","hsbc":"https://app.hsbc.pendo.io","au":"https://app.au.pendo.io"},"assetHost":{"io":"cdn.pendo.io","eu":"cdn.eu.pendo.io","us1":"us1.cdn.pendo.io","jp":"cdn.jpn.pendo.io","hsbc":"cdn.hsbc.pendo.io","au":"cdn.au.pendo.io"},"ENV":{"io":"prod","eu":"prod-eu","us1":"prod-us1","jp":"prod-jp","hsbc":"prod-hsbc","au":"prod-au"}}'),$0b2cb87367598ddd$export$2a47f398eeff8b01(window.MY_INIT_DATA)}(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { initialize } from '@pendo/agent'; | |
initialize( window.MY_INIT_DATA ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment