@pendo/agent 2.282.1 → 2.284.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/debugger-plugin.min.js +1 -1
- package/dist/dom.esm.js +1 -1
- package/dist/pendo.debugger.min.js +1 -1
- package/dist/pendo.module.js +400 -4610
- package/dist/pendo.module.min.js +11 -11
- package/package.json +1 -1
package/dist/pendo.module.min.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license https://agent.pendo.io/licenses
|
|
3
3
|
*/
|
|
4
|
-
function loadAgent(d){u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");var u,c={uint8ToBase64:function(e){var t,n,i,r=e.length%3,o="";for(t=0,i=e.length-r;t<i;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],o+=function(e){return u[e>>18&63]+u[e>>12&63]+u[e>>6&63]+u[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=u[n>>2])+u[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=u[n>>10])+u[n>>4&63])+u[n<<2&63]}return o}},Ut="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var U,o,G,j,B,z,H,e={exports:{}};function W(e){e?(z[0]=z[16]=z[1]=z[2]=z[3]=z[4]=z[5]=z[6]=z[7]=z[8]=z[9]=z[10]=z[11]=z[12]=z[13]=z[14]=z[15]=0,this.blocks=z):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}n=e,U="object"==typeof window?window:{},t=!U.JS_SHA1_NO_COMMON_JS&&n.exports,o="0123456789abcdef".split(""),G=[-2147483648,8388608,32768,128],j=[24,16,8,0],B=["hex","array","digest","arrayBuffer"],z=[],H=function(t){return function(e){return new W(!0).update(e)[t]()}},W.prototype.update=function(e){if(!this.finalized){for(var t,n,i="string"!=typeof e,r=0,o=(e=i&&e.constructor===U.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]<<j[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<j[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<j[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<j[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<j[3&n++],a[n>>2]|=(128|t>>12&63)<<j[3&n++]),a[n>>2]|=(128|t>>6&63)<<j[3&n++]),a[n>>2]|=(128|63&t)<<j[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 4294967295<this.bytes&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},W.prototype.finalize=function(){var e,t;this.finalized||(this.finalized=!0,e=this.blocks,t=this.lastByteIndex,e[16]=this.block,e[t>>2]|=G[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())},W.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+1518500249+a[s]<<0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|~t&i)+r+1518500249+a[s+1]<<0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|~o&n)+i+1518500249+a[s+2]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|~r&t)+n+1518500249+a[s+3]<<0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|~i&o)+t+1518500249+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+1859775393+a[s]<<0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r+1859775393+a[s+1]<<0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i+1859775393+a[s+2]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n+1859775393+a[s+3]<<0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t+1859775393+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-1894007588+a[s]<<0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|t&i|n&i)+r-1894007588+a[s+1]<<0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|o&n|t&n)+i-1894007588+a[s+2]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|r&t|o&t)+n-1894007588+a[s+3]<<0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|i&o|r&o)+t-1894007588+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-899497514+a[s]<<0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r-899497514+a[s+1]<<0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i-899497514+a[s+2]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n-899497514+a[s+3]<<0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t-899497514+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},W.prototype.toString=W.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]},W.prototype.array=W.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]},W.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},Pe=function(){var t=H("hex");t.create=function(){return new W},t.update=function(e){return t.create().update(e)};for(var e=0;e<B.length;++e){var n=B[e];t[n]=H(n)}return t}(),t?n.exports=Pe:U.sha1=Pe;var q=p(e.exports);let V;const K={createScriptURL:e=>e,createHTML:e=>e};function J(e){return V||(V=e.trustedTypesPolicy||(window.trustedTypes&&"function"==typeof window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("pendo",K):K),e.trustedTypesPolicy=V),V}var I,Z="stagingServerHashes",Y={};function X(e){return e.loadAsModule}function Q(e){return"staging"===e.environmentName}function ee(e){return"extension"===e.installType}function te(t=[],n){var i=/^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;for(let e=0;e<t.length;e++){var r=t[e];if(i.test(r.src)||r.id==="pendo-"+n)return r}}function ne(e,t,n){e=function(e=[]){if(e=te(e))return e.src.replace(/\.js$/,"-staging.js")}(document.getElementsByTagName("script"))||e.stagingAgentUrl;return n&&(n="unminified.js",t&&(n="staging-"+n),e=e&&e.replace(/staging\.js$/,n)),e}function ie(e,t){if(Q(e=e||Y))return!0;if(t=t||window.location,(o=e)&&o.stagingAgentUrl&&o[Z]){o=t.host;for(var n=c.uint8ToBase64(q.create().update(o).digest()),i=0,r=e[Z].length;i<r;++i)if(e[Z][i]===n)return!0}var o;if((o=e)&&o.stagingAgentUrl&&o.stagingServers)for(var a=0,s=e.stagingServers.length;a<s;++a){var d=e.stagingServers[a];if((d="string"==typeof d?new RegExp("^"+d+"$"):d)instanceof RegExp&&d.test(t.host))return!0}return!1}var re=["initialize","identify","updateOptions","pageLoad","track","clearSession"];function oe(e,t,n){(e._q=e._q||[])["initialize"===t?"unshift":"push"]([].concat.apply([t],n))}function ae(e){if(!e._q)for(var t=re,n=0,i=t.length;n<i;++n)!function(e,t){t[e]=t[e]||function(){oe(t,e,arguments)}}(t[n],e)}function se(e,t,n){if(!ee(i=e)&&!Q(i)&&ie(i)){i=ne(e,!0,n);if(i)return ae(t),ue(i,t),!0}var i;return!1}function de(e,t,n){if(r=n,!ee(i=e)&&!i.unminified&&r){i=ne(e,!1,n);if(i)return ae(t),ue(i,t),!0}var i,r;return!1}function ue(e,t){var n=document.createElement("script"),t=(n["async"]=!0,n.src=J(t).createScriptURL(e),document.getElementsByTagName("script")[0]);t&&t.parentNode?t.parentNode.insertBefore(n,t):(document.head||document.body).appendChild(n)}function ce(e){Y=e}function le(){return void 0===d?{}:d}function pe(e){return Y[e]}he(window.setTimeout,window);function he(e,t){return"function"==typeof e.bind?e.bind(t):e}var fe,Dt=function(e){var t="setTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return he(e[t],e)}(window),E=p(function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof Ut&&Ut.global===Ut&&Ut||Function("return this")()||{},i=Array.prototype,F=Object.prototype,$="undefined"!=typeof Symbol?Symbol.prototype:null,D=i.push,d=i.slice,l=F.toString,U=F.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),G=Array.isArray,j=Object.keys,B=Object.create,z=t&&ArrayBuffer.isView,H=isNaN,W=isFinite,q=!{toString:null}.propertyIsEnumerable("toString"),V=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],K=Math.pow(2,53)-1;function c(r,o){return o=null==o?r.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),n=0;n<e;n++)t[n]=arguments[n+o];switch(o){case 0:return r.call(this,t);case 1:return r.call(this,arguments[0],t);case 2:return r.call(this,arguments[0],arguments[1],t)}for(var i=Array(o+1),n=0;n<o;n++)i[n]=arguments[n];return i[o]=t,r.apply(this,i)}}function o(e){var t=typeof e;return"function"==t||"object"==t&&!!e}function J(e){return void 0===e}function Z(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)}function r(e){var t="[object "+e+"]";return function(e){return l.call(e)===t}}var Y=r("String"),X=r("Number"),Q=r("Date"),ee=r("RegExp"),te=r("Error"),ne=r("Symbol"),ie=r("ArrayBuffer"),a=r("Function"),e=e.document&&e.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof e?function(e){return"function"==typeof e||!1}:a,e=r("Object"),re=n&&e(new DataView(new ArrayBuffer(8))),a="undefined"!=typeof Map&&e(new Map),n=r("DataView");var h=re?function(e){return null!=e&&p(e.getInt8)&&ie(e.buffer)}:n,f=G||r("Array");function g(e,t){return null!=e&&U.call(e,t)}var oe=r("Arguments"),ae=(!function(){oe(arguments)||(oe=function(e){return g(e,"callee")})}(),oe);function se(e){return X(e)&&H(e)}function de(e){return function(){return e}}function ue(t){return function(e){e=t(e);return"number"==typeof e&&0<=e&&e<=K}}function ce(t){return function(e){return null==e?void 0:e[t]}}var m=ce("byteLength"),le=ue(m),pe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var he=t?function(e){return z?z(e)&&!h(e):le(e)&&pe.test(l.call(e))}:de(!1),v=ce("length");function fe(e,t){t=function(t){for(var n={},e=t.length,i=0;i<e;++i)n[t[i]]=!0;return{contains:function(e){return!0===n[e]},push:function(e){return n[e]=!0,t.push(e)}}}(t);var n=V.length,i=e.constructor,r=p(i)&&i.prototype||F,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=V[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if(j)return j(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return q&&fe(e,n),n}function ge(e,t){var n=y(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 b(e){return e instanceof b?e:this instanceof b?void(this._wrapped=e):new b(e)}function me(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,m(e))}b.VERSION="1.13.6",b.prototype.valueOf=b.prototype.toJSON=b.prototype.value=function(){return this._wrapped},b.prototype.toString=function(){return String(this._wrapped)};var ve="[object DataView]";function ye(e,t,n,i){var r;return e===t?0!==e||1/e==1/t:null!=e&&null!=t&&(e!=e?t!=t:("function"==(r=typeof e)||"object"==r||"object"==typeof t)&&function c(e,t,n,i){e instanceof b&&(e=e._wrapped);t instanceof b&&(t=t._wrapped);var r=l.call(e);if(r!==l.call(t))return!1;if(re&&"[object Object]"==r&&h(e)){if(!h(t))return!1;r=ve}switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return $.valueOf.call(e)===$.valueOf.call(t);case"[object ArrayBuffer]":case ve:return c(me(e),me(t),n,i)}r="[object Array]"===r;if(!r&&he(e)){var o=m(e);if(o!==m(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;r=!0}if(!r){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,a=t.constructor;if(o!==a&&!(p(o)&&o instanceof o&&p(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];i=i||[];var s=n.length;for(;s--;)if(n[s]===e)return i[s]===t;n.push(e);i.push(t);if(r){if((s=e.length)!==t.length)return!1;for(;s--;)if(!ye(e[s],t[s],n,i))return!1}else{var d,u=y(e);if(s=u.length,y(t).length!==s)return!1;for(;s--;)if(d=u[s],!g(t,d)||!ye(e[d],t[d],n,i))return!1}n.pop();i.pop();return!0}(e,t,n,i))}function u(e){if(!o(e))return[];var t,n=[];for(t in e)n.push(t);return q&&fe(e,n),n}function be(i){var r=v(i);return function(e){if(null==e)return!1;var t=u(e);if(v(t))return!1;for(var n=0;n<r;n++)if(!p(e[i[n]]))return!1;return i!==Se||!p(e[we])}}var we="forEach",e=["clear","delete"],n=["get","has","set"],G=e.concat(we,n),Se=e.concat(n),t=["add"].concat(e,we,"has"),n=a?be(G):r("Map"),e=a?be(Se):r("WeakMap"),G=a?be(t):r("Set"),a=r("WeakSet");function w(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function Ie(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function _e(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function Ee(d,u){return function(e){var t=arguments.length;if(u&&(e=Object(e)),!(t<2||null==e))for(var n=1;n<t;n++)for(var i=arguments[n],r=d(i),o=r.length,a=0;a<o;a++){var s=r[a];u&&void 0!==e[s]||(e[s]=i[s])}return e}}var Ce=Ee(u),s=Ee(y),Te=Ee(u,!0);function xe(e){var t;return o(e)?B?B(e):((t=function(){}).prototype=e,e=new t,t.prototype=null,e):{}}function ke(e){return f(e)?e:[e]}function S(e){return b.toPath(e)}function Ae(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 Oe(e,t,n){e=Ae(e,S(t));return J(e)?n:e}function Re(e){return e}function I(t){return t=s({},t),function(e){return ge(e,t)}}function Me(t){return t=S(t),function(e){return Ae(e,t)}}function _(r,o,e){if(void 0===o)return r;switch(null==e?3:e){case 1:return function(e){return r.call(o,e)};case 3:return function(e,t,n){return r.call(o,e,t,n)};case 4:return function(e,t,n,i){return r.call(o,e,t,n,i)}}return function(){return r.apply(o,arguments)}}function Ne(e,t,n){return null==e?Re:p(e)?_(e,t,n):(o(e)&&!f(e)?I:Me)(e)}function Le(e,t){return Ne(e,t,Infinity)}function E(e,t,n){return b.iteratee!==Le?b.iteratee(e,t):Ne(e,t,n)}function Pe(){}function Fe(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}b.toPath=ke,b.iteratee=Le;var C=Date.now||function(){return(new Date).getTime()};function $e(t){var n=function(e){return t[e]},e="(?:"+y(t).join("|")+")",i=RegExp(e),r=RegExp(e,"g");return function(e){return i.test(e=null==e?"":""+e)?e.replace(r,n):e}}var t={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},De=$e(t),t=$e(Ie(t)),Ue=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Ge=/(.)^/,je={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Be=/\\|'|\r|\n|\u2028|\u2029/g;function ze(e){return"\\"+je[e]}var He=/^\s*(\w|\$)+\s*$/;var We=0;function qe(e,t,n,i,r){return i instanceof t?(i=xe(e.prototype),o(t=e.apply(i,r))?t:i):e.apply(n,r)}var T=c(function(r,o){var a=T.placeholder,s=function(){for(var e=0,t=o.length,n=Array(t),i=0;i<t;i++)n[i]=o[i]===a?arguments[e++]:o[i];for(;e<arguments.length;)n.push(arguments[e++]);return qe(r,s,this,this,n)};return s}),Ve=(T.placeholder=b,c(function(t,n,i){var r;if(p(t))return r=c(function(e){return qe(t,r,n,this,i.concat(e))});throw new TypeError("Bind must be called on a function")})),x=ue(v);function k(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=Infinity;for(var r=i.length,o=0,a=v(e);o<a;o++){var s=e[o];if(x(s)&&(f(s)||ae(s)))if(1<t)k(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 Ke=c(function(e,t){var n=(t=k(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Ve(e[i],e)}return e});var Je=c(function(e,t,n){return Dt(function(){return e.apply(null,n)},t)}),Ze=T(Je,b,1);function Ye(e){return function(){return!e.apply(this,arguments)}}function Xe(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=T(Xe,2);function et(e,t,n){t=E(t,n);for(var i,r=y(e),o=0,a=r.length;o<a;o++)if(t(e[i=r[o]],i,e))return i}function tt(o){return function(e,t,n){t=E(t,n);for(var i=v(e),r=0<o?0:i-1;0<=r&&r<i;r+=o)if(t(e[r],r,e))return r;return-1}}var nt=tt(1),it=tt(-1);function rt(e,t,n,i){for(var r=(n=E(n,i,1))(t),o=0,a=v(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<r?o=s+1:a=s}return o}function ot(o,a,s){return function(e,t,n){var i=0,r=v(e);if("number"==typeof n)0<o?i=0<=n?n:Math.max(n+r,i):r=0<=n?Math.min(n+1,r):n+r+1;else if(s&&n&&r)return e[n=s(e,t)]===t?n:-1;if(t!=t)return 0<=(n=a(d.call(e,i,r),se))?n+i:-1;for(n=0<o?i:r-1;0<=n&&n<r;n+=o)if(e[n]===t)return n;return-1}}var at=ot(1,nt,rt),st=ot(-1,it);function dt(e,t,n){t=(x(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function A(e,t,n){if(t=_(t,n),x(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else for(var i=y(e),r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e);return e}function O(e,t,n){t=E(t,n);for(var i=!x(e)&&y(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 ut(p){return function(e,t,n,i){var r=3<=arguments.length,o=e,a=_(t,i,4),s=n,d=!x(o)&&y(o),u=(d||o).length,c=0<p?0:u-1;for(r||(s=o[d?d[c]:c],c+=p);0<=c&&c<u;c+=p){var l=d?d[c]:c;s=a(s,o[l],l,o)}return s}}var ct=ut(1),lt=ut(-1);function R(e,i,t){var r=[];return i=E(i,t),A(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=E(t,n);for(var i=!x(e)&&y(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 ht(e,t,n){t=E(t,n);for(var i=!x(e)&&y(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 M(e,t,n,i){return x(e)||(e=w(e)),0<=at(e,t,n="number"==typeof n&&!i?n:0)}var ft=c(function(e,n,i){var r,o;return p(n)?o=n:(n=S(n),r=n.slice(0,-1),n=n[n.length-1]),O(e,function(e){var t=o;if(!t){if(null==(e=r&&r.length?Ae(e,r):e))return;t=e[n]}return null==t?t:t.apply(e,i)})});function gt(e,t){return O(e,Me(t))}function mt(e,i,t){var n,r,o=-Infinity,a=-Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=x(e)?e:w(e)).length;s<d;s++)null!=(n=e[s])&&o<n&&(o=n);else i=E(i,t),A(e,function(e,t,n){r=i(e,t,n),(a<r||r===-Infinity&&o===-Infinity)&&(o=e,a=r)});return o}var vt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function yt(e){return e?f(e)?d.call(e):Y(e)?e.match(vt):x(e)?O(e,Re):w(e):[]}function bt(e,t,n){if(null==t||n)return(e=x(e)?e:w(e))[Fe(e.length-1)];for(var i=yt(e),n=v(i),r=(t=Math.max(Math.min(t,n),0),n-1),o=0;o<t;o++){var a=Fe(o,r),s=i[o];i[o]=i[a],i[a]=s}return i.slice(0,t)}function N(o,t){return function(n,i,e){var r=t?[[],[]]:{};return i=E(i,e),A(n,function(e,t){t=i(e,t,n);o(r,e,t)}),r}}var wt=N(function(e,t,n){g(e,n)?e[n].push(t):e[n]=[t]}),St=N(function(e,t,n){e[n]=t}),It=N(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),_t=N(function(e,t,n){e[n?0:1].push(t)},!0);function Et(e,t,n){return t in n}var Ct=c(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=_(i,t[1])),t=u(e)):(i=Et,t=k(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}),Tt=c(function(e,n){var t,i=n[0];return p(i)?(i=Ye(i),1<n.length&&(t=n[1])):(n=O(k(n,!1,!1),String),i=function(e,t){return!M(n,t)}),Ct(e,i,t)});function xt(e,t,n){return d.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function kt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:xt(e,e.length-t)}function L(e,t,n){return d.call(e,null==t||n?1:t)}var At=c(function(e,t){return t=k(t,!0,!0),R(e,function(e){return!M(t,e)})}),Ot=c(function(e,t){return At(e,t)});function Rt(e,t,n,i){Z(t)||(i=n,n=t,t=!1),null!=n&&(n=E(n,i));for(var r=[],o=[],a=0,s=v(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?M(o,u)||(o.push(u),r.push(d)):M(r,d)||r.push(d)}return r}var Mt=c(function(e){return Rt(k(e,!0,!0))});function Nt(e){for(var t=e&&mt(e,v).length||0,n=Array(t),i=0;i<t;i++)n[i]=gt(e,i);return n}var Lt=c(Nt);function Pt(e,t){return e._chain?b(t).chain():t}function Ft(n){return A(_e(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return D.apply(e,arguments),Pt(this,t.apply(b,e))}}),b}A(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=i[t];b.prototype[t]=function(){var e=this._wrapped;return null!=e&&(n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0]),Pt(this,e)}}),A(["concat","join","slice"],function(e){var t=i[e];b.prototype[e]=function(){var e=this._wrapped;return Pt(this,e=null!=e?t.apply(e,arguments):e)}});var P=Ft({__proto__:null,VERSION:"1.13.6",restArguments:c,isObject:o,isNull:function(e){return null===e},isUndefined:J,isBoolean:Z,isElement:function(e){return!(!e||1!==e.nodeType)},isString:Y,isNumber:X,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&W(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||Y(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:G,isWeakSet:a,keys:y,allKeys:u,values:w,pairs:function(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i},invert:Ie,functions:_e,methods:_e,extend:Ce,extendOwn:s,assign:s,defaults:Te,create:function(e,t){return e=xe(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():Ce({},e):e},tap:function(e,t){return t(e),e},get:Oe,has:function(e,t){for(var n=(t=S(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=E(t,n);for(var i=y(e),r=i.length,o={},a=0;a<r;a++){var s=i[a];o[s]=t(e[s],s,e)}return o},identity:Re,constant:de,noop:Pe,toPath:ke,property:Me,propertyOf:function(t){return null==t?Pe:function(e){return Oe(t,e)}},matcher:I,matches:I,times:function(e,t,n){var i=Array(Math.max(0,e));t=_(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:Fe,now:C,escape:De,unescape:t,templateSettings:Ue,template:function(o,e,t){e=Te({},e=!e&&t?t:e,b.templateSettings);var t=RegExp([(e.escape||Ge).source,(e.interpolate||Ge).source,(e.evaluate||Ge).source].join("|")+"|$","g"),a=0,s="__p+='";if(o.replace(t,function(e,t,n,i,r){return s+=o.slice(a,r).replace(Be,ze),a=r+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":i&&(s+="';\n"+i+"\n__p+='"),e}),s+="';\n",t=e.variable){if(!He.test(t))throw new Error("variable is not a bare identifier: "+t)}else s="with(obj||{}){\n"+s+"}\n",t="obj";s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{throw new Error("Function constructor not supported")}catch(n){throw n.source=s,n}return(e=function(e){return(void 0).call(this,e,b)}).source="function("+t+"){\n"+s+"}",e},result:function(e,t,n){var i=(t=S(t)).length;if(!i)return p(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=p(o)?o.call(e):o}return e},uniqueId:function(e){var t=++We+"";return e?e+t:t},chain:function(e){return(e=b(e))._chain=!0,e},iteratee:Le,partial:T,bind:Ve,bindAll:Ke,memoize:function(i,r){var o=function(e){var t=o.cache,n=""+(r?r.apply(this,arguments):e);return g(t,n)||(t[n]=i.apply(this,arguments)),t[n]};return o.cache={},o},delay:Je,defer:Ze,throttle:function(n,i,r){var o,a,s,d,u=0,c=(r=r||{},function(){u=!1===r.leading?0:C(),o=null,d=n.apply(a,s),o||(a=s=null)}),e=function(){var e=C(),t=(u||!1!==r.leading||(u=e),i-(e-u));return a=this,s=arguments,t<=0||i<t?(o&&(clearTimeout(o),o=null),u=e,d=n.apply(a,s),o||(a=s=null)):o||!1===r.trailing||(o=Dt(c,t)),d};return e.cancel=function(){clearTimeout(o),u=0,o=a=s=null},e},debounce:function(t,n,i){var r,o,a,s,d,u=function(){var e=C()-o;e<n?r=Dt(u,n-e):(r=null,i||(s=t.apply(d,a)),r||(a=d=null))},e=c(function(e){return d=this,a=e,o=C(),r||(r=Dt(u,n),i&&(s=t.apply(d,a))),s});return e.cancel=function(){clearTimeout(r),r=a=d=null},e},wrap:function(e,t){return T(t,e)},negate:Ye,compose:function(){var n=arguments,i=n.length-1;return function(){for(var e=i,t=n[i].apply(this,arguments);e--;)t=n[e].call(this,t);return t}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:Xe,once:Qe,findKey:et,findIndex:nt,findLastIndex:it,sortedIndex:rt,indexOf:at,lastIndexOf:st,find:dt,detect:dt,findWhere:function(e,t){return dt(e,I(t))},each:A,forEach:A,map:O,collect:O,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:R,select:R,reject:function(e,t,n){return R(e,Ye(E(t)),n)},every:pt,all:pt,some:ht,any:ht,contains:M,includes:M,include:M,invoke:ft,pluck:gt,where:function(e,t){return R(e,I(t))},max:mt,min:function(e,i,t){var n,r,o=Infinity,a=Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=x(e)?e:w(e)).length;s<d;s++)null!=(n=e[s])&&n<o&&(o=n);else i=E(i,t),A(e,function(e,t,n){((r=i(e,t,n))<a||r===Infinity&&o===Infinity)&&(o=e,a=r)});return o},shuffle:function(e){return bt(e,Infinity)},sample:bt,sortBy:function(e,i,t){var r=0;return i=E(i,t),gt(O(e,function(e,t,n){return{value:e,index:r++,criteria:i(e,t,n)}}).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:wt,indexBy:St,countBy:It,partition:_t,toArray:yt,size:function(e){return null==e?0:(x(e)?e:y(e)).length},pick:Ct,omit:Tt,first:kt,head:kt,take:kt,initial:xt,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:L(e,Math.max(0,e.length-t))},rest:L,tail:L,drop:L,compact:function(e){return R(e,Boolean)},flatten:function(e,t){return k(e,t,!1)},without:Ot,uniq:Rt,unique:Rt,union:Mt,intersection:function(e){for(var t=[],n=arguments.length,i=0,r=v(e);i<r;i++){var o=e[i];if(!M(t,o)){for(var a=1;a<n&&M(arguments[a],o);a++);a===n&&t.push(o)}}return t},difference:At,unzip:Nt,transpose:Nt,zip:Lt,object:function(e,t){for(var n={},i=0,r=v(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(d.call(e,i,i+=t));return n},mixin:Ft,"default":b}),$t=P.toPath;return P.mixin({toPath:function(e){return P.isString(e)?e.split("."):$t(e)}}),P._=P}());function ge(e){return!(null==e)}function me(e){return E.isFunction(e)||E.isRegExp(e)?e:E.isArray(e)?E.map(e,me):E.isObject(e)?E.reduce(e,function(e,t,n){return e[n]=me(t),e},{}):e}var f=function(){var i=E.all,r=E.each,o=E.filter,a=E.first,s=E.find,n=E.map,d=E.pluck,u="snippet",c="pendoconfig",l="global",p="default";const h={};function e(e,t=[c],n,i){e&&!h[e]&&(n={name:e,defaultValue:n,supportedSources:t},null!=i&&(n.useAnySource=i),h[e]=n)}e("additionalApiKeys",[c,u]),e("allowedOriginServers"),e("allowMixedApiKeyFrames",[u,c],!0),e("annotateUrl",[u]),e("apiKey",[c,u]),e("assetHost",[u,c]),e("autoFrameInstall",[u,c],!1),e("blockAgentMetadata",[c],!1),e("contentHost",[u,c]),e("cookieDomain",[u,c]),e("dataHost",[u,c]),e("disableAutoInitialize"),e("disableCookies",[u,c]),e("disablePendo",[u,c],!1),e("disablePersistence",[u,c]),e("enableSignedMetadata",[c],!1),e("frameIdentitySync",[u,c],!1),e("frameIdentityTopDownOnly",[u,c],!0),e("forceAnonymous",[u,c],!1),e("identityStorageLifetime",[u,c]),e("identityStorageSuffix",[u,c]),e("ignoreHashRouting",[u,c]),e("initializeImmediately",[u,c],!1),e("installType"),e("localStorageOnly",[u,c]),e("location.pushState",[u,c],!0),e("maxCookieTTLDays",[u,c],Infinity),e("observeShadowRoots",[u,c],!1),e("pendoCore",[c],!0),e("pendoGlobalKey",[c]),e("preferBroadcastChannel",[u,c],!1),e("preferMutationObserver",[u,c],!1),e("preventCookieRefresh"),e("preventUnloadListener",[u,c],!1),e("promotedAgentMetadataConfigurations",[c]),e("queryStringWhitelist",[u]),e("requireSignedMetadata",[c],!1),e("sanitizeUrl",[u]),e("selfHosted"),e("selfHostedAgentUrl",[u,c]),e("sendEventsWithPostOnly",[u,c],!1),e("siblingSelectors"),e("dropAnonymous"),e("allowedText",[u,c],[]),e("analytics.excludeEvents",[u,c],[]),e("analytics.localStorageUnload",[u,c],!1),e("enableDebugEvents",[u,c]),e("freeNPSData"),e("eventPropertyConfigurations"),e("eventPropertyMatchParents",[u,c],!0),e("excludeAllText",[c,u],!1,!0),e("excludeNonGuideAnalytics",[u,c],!1),e("htmlAttributeBlacklist"),e("htmlAttributes"),e("interceptElementRemoval",[u,c],!1),e("interceptPreventDefault",[u,c],!0),e("interceptStopPropagation",[u,c],!0),e("syntheticClicks.elementRemoval",[u,c],!1),e("syntheticClicks.targetChanged",[u,c],!0),e("xhrWhitelist"),e("appAutoOrdering",[u,c]),e("cacheGuides",[u,c],!1),e("cacheGuidesTimeout",[c],6e5),e("delayGuides",[u]),e("disableDesigner",[c,u],!1),e("disableDesignerKeyboardShortcut",[c],!1),e("disableGlobalCSS",[u,c],!1),e("disableGuidePseudoStyles",[u,c],!1),e("disableGuides",[u]),e("disablePrefetch",[u,c]),e("enableDesignerKeyboardShortcut",[u]),e("enableGuideTimeout",[c,u],!1),e("guideCssAssetPath"),e("guideSeenTimeoutLength",[c,u],1e4),e("guideTimeout",[u]),e("guideValidation",[u,c],!1),e("guides.attachPoint",[u]),e("guides.delay",[u]),e("guides.disabled",[u]),e("guides.ejectOnTimeout",[u,c],!1),e("guides.globalScripts",[u,c],[]),e("guides.timeout",[u]),e("guides.tooltip.arrowSize",[u]),e("inlineStyleNonce",[u]),e("leaderKey",[u,c],[]),e("preventCodeInjection",[c,u,l],!1),e("previewModeAssetPath"),e("useAssetHostForDesigner",[u,c],!1),e("storage.allowKeys",[u],"*"),e("disableFeedback",[u]),e("disableFeedbackAutoInit"),e("feedbackSettings",[c],{}),e("pendoFeedback",[c],!1),e("crossAppGuideStorageSuffix",[u,c]),e("enableCrossOriginIsolation",[u,c],!1),e("adoptHost"),e("adoptAnalyticsForwarding"),e("agentDebuggerPluginLoader"),e("allowPartnerAnalyticsForwarding",[u],!1),e("adoptPrioritizeAdoptGuides",[c],!1),e("designerAgentPluginsLoader",[c,u]),e("trainingPartner"),e("errorClickLogging",[c],!1),e("forceParentDesigner",[u]),e("enableAllEmbeddedGuideEvents",[c],!1),e("formValidation",[c],!1);var f={};function g(e){return h[e]||{name:e}}function m(e,t){if(t)return t=t(),ge(e=E.get(t.lookup,(t=e,E.get(t,"key")||E.get(t,"name"))))?e:undefined}function v(e,t){var n=m(e,f[t]);return new w(e.name,n,t)}function y(e,t){return t=t||E.get(e,"supportedSources",[u,c,l]),o(n(t,E.partial(v,e)),function(e){return ge(e.value)})}function b(e,t,n){var i=g(e),e=new w(e,t=t||E.get(i,"defaultValue",null),p),n=y(i,n);return i.useAnySource&&ge(t)?s(n,function(e){return e.value!==t})||e:a(n)||e}function w(e,t,n){this.name=e,this.value=t,this.source=n}function S(){var n=[];return r(h,function(e){var t;n.push({name:e.name,active:b(e.name),conflicts:(e=g(e=e.name),(t=o(y(e),function(e){return e.source!==p})).length<2||i(d(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}return f[u]=function(){return{lookup:fe||window.pendo_options,name:u}},f[c]=function(){return{lookup:Y,name:c}},f[l]=function(){return{lookup:I,name:l}},w.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"},{audit:S,get(e,t){return b(e,t).value},getLocalConfig(e,t){return arguments.length?b(e,t,[u]).value:me(fe)},getHostedConfig(e,t){return b(e,t,[c]).value},addOption:e,setLocalConfig(e){fe=e},options:()=>d(h,"name"),sources:{SNIPPET_SRC:u,PENDO_CONFIG_SRC:c,GLOBAL_SRC:l,DEFAULT_SRC:p},validate(t){t.groupCollapsed("Validate Config options"),r(S(),function(e){t.log(String(e.active)),0<e.conflicts.length&&(t.warn("Multiple sources found with values for "+e.name),r(e.conflicts,function(e){t.warn(String(e))}))}),t.groupEnd()}}}(),ve="prod",ye="extension",be="native";function we(){return f.get("installType")||be}function Se(e){var t;return e===ve?"pendo-io-static":"prod-jp"===e?"pendo-jp-prod-static":"pendo-"+((t=/^prod-(.+)$/.exec(e))&&1<t.length?t[1]:e)+"-static"}var Ie,_e=function(e,t){return e=e||10,(t=!isNaN(ke)&&(!t||ke<t))&&Ie<e};function Ee(e){return parseInt(e,10)}var Ce=function(e){return E.isString(e)?e.toLowerCase():e};function Te(){return(window.navigator||{}).userAgent}t=Te(),n=Ee((/msie (\d+)/.exec(Ce(t))||[])[1]),Ie=n=isNaN(n)?Ee((/trident\/.*; rv:(\d+)/.exec(Ce(t))||[])[1]):n;var xe,ke=function(e,t){e=Ee((/trident\/(\d+)/.exec(Ce(e))||[])[1]);return e=isNaN(e)&&7==t?3:e}(Te(),Ie),Ae={},Oe=Ee((/android (\d+)/.exec(Ce(Te()))||[])[1]),Re=/Boxee/i.test(Te()),Me=window.document||{},Ne=Me.documentMode,Le=/^(Moz|webkit|O|ms)(?=[A-Z])/,Pe=Me.body&&Me.body.style,e=!1,t=!1;if(Pe){for(var Fe in Pe)if(Fe=Le.exec(Fe)){xe=(xe=Fe[0]).substr(0,1).toUpperCase()+xe.substr(1);break}xe=xe||"WebkitOpacity"in Pe&&"webkit",e=!!("transition"in Pe||xe+"Transition"in Pe),t=!!("animation"in Pe||xe+"Animation"in Pe),!Oe||e&&t||(e=E.isString(Me.body.style.webkitTransition),t=E.isString(Me.body.style.webkitAnimation))}var $e={supportsHistoryApi:E.memoize(function(){var e=window.history&&window.history.pushState&&window.history.replaceState,t=window.history&&E.isFunction(Object.isFrozen)&&Object.isFrozen(window.history),n=window.history&&E.isFunction(Object.getOwnPropertyDescriptors)&&Object.getOwnPropertyDescriptors(window.history),n=n&&E.get(n,"pushState.writable",!0)&&E.get(n,"replaceState.writable",!0),i=!(Oe<4),r=we()===ye;return!(!e||t||!n||!i||Re||r)}),supportsHashChange:function(){var e="onhashchange"in window,t=!Ne||7<Ne,n=we()===ye;return!(!e||!t||n)},hasEvent(e){var t;return("input"!=e||9!=Ie)&&(E.isUndefined(Ae[e])&&(t=Me.createElement("div"),Ae[e]="on"+e in t),Ae[e])},vendorPrefix:xe,transitions:e,animations:t,android:Oe,msie:Ie,msieDocumentMode:Ne,safari:/apple/i.test(navigator.vendor),sri:"integrity"in document.createElement("script"),addEventListener:E.isFunction(window.addEventListener),MutationObserver:/native/.test(window.MutationObserver),isMinimumIEVersion:function(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e},isMobileUserAgent:E.memoize(function(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Te())})},De=function(){return!isNaN(Ie)&&11!=Ie&&"CSS1Compat"!==document.compatMode},Ue=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,Ie<=9&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(i+I.TOOLTIP_ARROW_SIZE),e.arrow.top=i-I.TOOLTIP_ARROW_SIZE,10==Ie?e.arrow.top--:Ie<=9&&(e.arrow.top+=4),n=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(10+2*I.TOOLTIP_ARROW_SIZE),e.arrow.left=10+I.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-r+t.width/2+(10+2*I.TOOLTIP_ARROW_SIZE),e.arrow.left=r-3*I.TOOLTIP_ARROW_SIZE-10):(e.left=t.left+t.width/2-r/2,e.arrow.left=r/2-I.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-I.TOOLTIP_ARROW_SIZE),e.arrow.left=r-I.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-I.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e},Ge="",je="",Be="",ze="",n="",He="2.282.1_",Pe="2.282.1",We="xhr",qe=function(){return De()?He+"+quirksmode":He};function Ve(){return(pe("installType")||le().installType)===ye}function Ke(){return-1!==Ge.indexOf("prod")}var Je=/^\s+|\s+$/g;function Ze(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 Ye=(Ye=String.prototype.trim)||function(){return this.replace(Je,"")},e={exports:{}};!function(){var X=void 0,Q=!0,o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||t===X?r=r[n]||(r[n]={}):r[n]=t}var ee="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function te(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(ee?Uint8Array:Array)?e:new(ee?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&d(this)}function d(e){var t,n=e.buffer,i=n.length,r=new(ee?Uint8Array:Array)(i<<1);if(ee)r.set(n);else for(t=0;t<i;++t)r[t]=n[t];return e.buffer=r}te.prototype.b=function(e,t,n){var i,r=this.buffer,o=this.index,a=this.e,s=r[o];if(n&&1<t&&(e=8<t?(u[255&e]<<24|u[e>>>8&255]<<16|u[e>>>16&255]<<8|u[e>>>24&255])>>32-t:u[e]>>8-t),t+a<8)s=s<<t|e,a+=t;else for(i=0;i<t;++i)s=s<<1|e>>t-i-1&1,8==++a&&(a=0,r[o++]=u[s],s=0,o===r.length)&&(r=d(this));r[o]=s,this.buffer=r,this.e=a,this.index=o},te.prototype.finish=function(){var e=this.buffer,t=this.index;return 0<this.e&&(e[t]<<=8-this.e,e[t]=u[e[t]],t++),ee?e.subarray(0,t):(e.length=t,e)};for(var t=new(ee?Uint8Array:Array)(256),n=0;n<256;++n){for(var i=a=n,r=7,a=a>>>1;a;a>>>=1)i=i<<1|1&a,--r;t[n]=(i<<r&255)>>>0}var u=t;function c(e){this.buffer=new(ee?Uint16Array:Array)(2*e),this.length=0}function s(e,t){this.d=ne,this.i=0,this.input=ee&&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=ee&&t.outputBuffer instanceof Array?new Uint8Array(t.outputBuffer):t.outputBuffer),"number"==typeof t.outputIndex)&&(this.c=t.outputIndex),this.a||(this.a=new(ee?Uint8Array:Array)(32768))}c.prototype.getParent=function(e){return 2*((e-2)/4|0)},c.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},c.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 ne=2,l={NONE:0,h:1,g:ne,n:3},ie=[],p=0;p<288;p++)switch(Q){case p<=143:ie.push([p+48,8]);break;case p<=255:ie.push([p-144+400,9]);break;case p<=279:ie.push([p-256,7]);break;case p<=287:ie.push([p-280+192,8]);break;default:throw"invalid literal: "+p}function b(e,t){this.length=e,this.k=t}s.prototype.f=function(){var e,t,F,n=this.input;switch(this.d){case 0:for(t=0,F=n.length;t<F;){var $,D,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===F,o=X,a=this.a,s=this.c;if(ee){for(a=new Uint8Array(this.a.buffer);a.length<=s+i.length+5;)a=new Uint8Array(a.length<<1);a.set(this.a)}if(a[s++]=0|(r?1:0),$=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&$,a[s++]=$>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,D=i.length;o<D;++o)a[s++]=i[o];a.length=s}this.c=s,this.a=a}break;case 1:for(var d,u=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),c=(u.b(1,1,Q),u.b(1,2,Q),re(this,n)),l=0,U=c.length;l<U;l++)if(d=c[l],te.prototype.b.apply(u,ie[d]),256<d)u.b(c[++l],c[++l],Q),u.b(c[++l],5),u.b(c[++l],c[++l],Q);else if(256===d)break;this.a=u.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,G,b,w,S,j,I=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],z=Array(19),_=ne;for(I.b(1,1,Q),I.b(_,2,Q),p=re(this,n),_=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var E,C,T,x,k,H=h,W=f,A=new(ee?Uint32Array:Array)(H+W),O=new(ee?Uint32Array:Array)(316),R=new(ee?Uint8Array:Array)(19),M=E=0;M<H;M++)A[E++]=m[M];for(M=0;M<W;M++)A[E++]=v[M];if(!ee)for(M=0,T=R.length;M<T;++M)R[M]=0;for(M=x=0,T=A.length;M<T;M+=E){for(E=1;M+E<T&&A[M+E]===A[M];++E);if(C=E,0===A[M])if(C<3)for(;0<C--;)R[O[x++]=0]++;else for(;0<C;)(k=C-3<(k=C<138?C:138)&&k<C?C-3:k)<=10?(O[x++]=17,O[x++]=k-3,R[17]++):(O[x++]=18,O[x++]=k-11,R[18]++),C-=k;else if(O[x++]=A[M],R[A[M]]++,--C<3)for(;0<C--;)O[x++]=A[M],R[A[M]]++;else for(;0<C;)C-3<(k=C<6?C:6)&&k<C&&(k=C-3),O[x++]=16,O[x++]=k-3,R[16]++,C-=k}for(e=ee?O.subarray(0,x):O.slice(0,x),y=oe(R,7),S=0;S<19;S++)z[S]=y[B[S]];for(g=19;4<g&&0===z[g-1];g--);for(G=ae(y),I.b(h-257,5,Q),I.b(f-1,5,Q),I.b(g-4,4,Q),S=0;S<g;S++)I.b(z[S],3,Q);for(S=0,j=e.length;S<j;S++)if(b=e[S],I.b(G[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}I.b(e[S],w,Q)}for(var N,q,_=[_,m],L=[L,v],V=_[0],K=_[1],J=L[0],Z=L[1],P=0,Y=p.length;P<Y;++P)if(N=p[P],I.b(V[N],K[N],Q),256<N)I.b(p[++P],p[++P],Q),q=p[++P],I.b(J[q],Z[q],Q),I.b(p[++P],p[++P],Q);else if(256===N)break;this.a=I.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){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}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,d=w[e.length];switch(a[s++]=65535&d,a[s++]=d>>16&255,a[s++]=d>>24,Q){case 1===o:n=[0,o-1,0];break;case 2===o:n=[1,o-2,0];break;case 3===o:n=[2,o-3,0];break;case 4===o:n=[3,o-4,0];break;case o<=6:n=[4,o-5,1];break;case o<=8:n=[5,o-7,1];break;case o<=12:n=[6,o-9,2];break;case o<=16:n=[7,o-13,2];break;case o<=24:n=[8,o-17,3];break;case o<=32:n=[9,o-25,3];break;case o<=48:n=[10,o-33,4];break;case o<=64:n=[11,o-49,4];break;case o<=96:n=[12,o-65,5];break;case o<=128:n=[13,o-97,5];break;case o<=192:n=[14,o-129,6];break;case o<=256:n=[15,o-193,6];break;case o<=384:n=[16,o-257,7];break;case o<=512:n=[17,o-385,7];break;case o<=768:n=[18,o-513,8];break;case o<=1024:n=[19,o-769,8];break;case o<=1536:n=[20,o-1025,9];break;case o<=2048:n=[21,o-1537,9];break;case o<=3072:n=[22,o-2049,10];break;case o<=4096:n=[23,o-3073,10];break;case o<=6144:n=[24,o-4097,11];break;case o<=8192:n=[25,o-6145,11];break;case o<=12288:n=[26,o-8193,12];break;case o<=16384:n=[27,o-12289,12];break;case o<=24576:n=[28,o-16385,13];break;case o<=32768:n=[29,o-24577,13];break;default:throw"invalid distance"}for(d=n,a[s++]=d[0],a[+s]=d[1],a[5]=d[2],i=0,r=a.length;i<r;++i)h[f++]=a[i];m[a[0]]++,v[a[3]]++,g=e.length+t-1,c=null}var i,r,o,a,s,d,u,c,l,p={},h=ee?new Uint16Array(2*t.length):[],f=0,g=0,m=new(ee?Uint32Array:Array)(286),v=new(ee?Uint32Array:Array)(30),y=e.i;if(!ee){for(o=0;o<=285;)m[o++]=0;for(o=0;o<=29;)v[o++]=0}for(m[256]=1,i=0,r=t.length;i<r;++i){for(o=s=0,a=3;o<a&&i+o!==r;++o)s=s<<8|t[i+o];if(p[s]===X&&(p[s]=[]),d=p[s],!(0<g--)){for(;0<d.length&&32768<i-d[0];)d.shift();if(r<=i+3){for(c&&n(c,-1),o=0,a=r-i;o<a;++o)l=t[i+o],h[f++]=l,++m[l];break}0<d.length?(u=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)}(t,i,d),c?c.length<u.length?(l=t[i-1],h[f++]=l,++m[l],n(u,0)):n(c,-1):u.length<y?c=u:n(u,0)):c?n(c,-1):(l=t[i],h[f++]=l,++m[l])}d.push(i)}return h[f++]=256,m[256]++,e.m=m,e.l=v,ee?h.subarray(0,f):h}function oe(e,t){var n,i,r,o,a,s=e.length,d=new c(572),u=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)u[o]=0;for(o=0;o<s;++o)0<e[o]&&d.push(o,e[o]);if(n=Array(d.length/2),i=new(ee?Uint32Array:Array)(d.length/2),1===n.length)u[d.pop().index]=1;else{for(o=0,a=d.length/2;o<a;++o)n[o]=d.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,d=new(ee?Uint16Array:Array)(t),u=new(ee?Uint8Array:Array)(t),c=new(ee?Uint8Array:Array)(n),l=Array(t),p=Array(t),h=Array(t),f=(1<<t)-n,g=1<<t-1;for(d[t-1]=n,r=0;r<t;++r)f<g?u[r]=0:(u[r]=1,f-=g),f<<=1,d[t-2-r]=(d[t-1-r]/2|0)+n;for(d[0]=u[0],l[0]=Array(d[0]),p[0]=Array(d[0]),r=1;r<t;++r)d[r]>2*d[r-1]+u[r]&&(d[r]=2*d[r-1]+u[r]),l[r]=Array(d[r]),p[r]=Array(d[r]);for(i=0;i<n;++i)c[i]=t;for(o=0;o<d[t-1];++o)l[t-1][o]=e[o],p[t-1][o]=o;for(i=0;i<t;++i)h[i]=0;for(1===u[t-1]&&(--c[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<d[r];o++)(a=l[r+1][s]+l[r+1][s+1])>e[i]?(l[r][o]=a,p[r][o]=n,s+=2):(l[r][o]=e[i],p[r][o]=i,++i);h[r]=0,1===u[r]&&function m(e){var t=p[e][h[e]];t===n?(m(e+1),m(e+1)):--c[t],++h[e]}(r)}return c}(i,i.length,t),o=0,a=n.length;o<a;++o)u[n[o].index]=r[o]}return u}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,d=e.length;s<d;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,d=16;s<=d;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,d=e.length;s<d;s++)for(a=o[e[s]],o[e[s]]+=1,t=i[s]=0,n=e[s];t<n;t++)i[s]=i[s]<<1|1&a,a>>>=1;return i}function f(e,t){this.input=e,this.a=new(ee?Uint8Array:Array)(32768),this.d=S.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 s(this.input,i)}var g,m,v,y,S=l,I=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,d=a.length;s<d;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var u,c=1,l=0,p=o.length,h=0;0<p;){for(p-=u=1024<p?1024:p;l+=c+=o[h++],--u;);c%=65521,l%=65521}return r=(l<<16|c)>>>0,this.j.c=2,n=(i=this.j.f()).length,ee&&((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++]=r>>24&255,i[n++]=r>>16&255,i[n++]=r>>8&255,i[+n]=255&r,i},e("Zlib.Deflate",f),e("Zlib.Deflate.compress",function(e,t){return new f(e,t).f()}),e("Zlib.Deflate.prototype.compress",f.prototype.f),{NONE:S.NONE,FIXED:S.h,DYNAMIC:S.g});if(Object.keys)g=Object.keys(I);else for(m in g=[],v=0,I)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),I[m])}.call(e.exports);var Xe={Deflate:p(e.exports).Zlib.Deflate},Qe="base64url";function et(e,t){t=t||Qe;e=Ze("string"==typeof e?e:JSON.stringify(e)),e=new Xe.Deflate(e).compress();return t===Qe?c.uint8ToBase64(e):e}t={exports:{}};!function(){var o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||void 0===t?r=r[n]||(r[n]={}):r[n]=t}var a={c:function(e,t,n){return a.update(e,0,t,n)},update:function(e,t,n,i){var r=a.a,o="number"==typeof n?n:n=0,i="number"==typeof i?i:e.length;for(t^=4294967295,o=7&i;o--;++n)t=t>>>8^r[255&(t^e[n])];for(o=i>>3;o--;n+=8)t=(t=(t=(t=(t=(t=(t=(t=t>>>8^r[255&(t^e[n])])>>>8^r[255&(t^e[n+1])])>>>8^r[255&(t^e[n+2])])>>>8^r[255&(t^e[n+3])])>>>8^r[255&(t^e[n+4])])>>>8^r[255&(t^e[n+5])])>>>8^r[255&(t^e[n+6])])>>>8^r[255&(t^e[n+7])];return(4294967295^t)>>>0},d:function(e,t){return(a.a[255&(e^t)]^e>>>8)>>>0},b:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]};a.a="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array?new Uint32Array(a.b):a.b,e("Zlib.CRC32",a),e("Zlib.CRC32.calc",a.c),e("Zlib.CRC32.update",a.update)}.call(t.exports);var tt={CRC32:p(t.exports).Zlib.CRC32},nt=function(e,n){var i;return 200<=(n=n||0)?e:E.isArray(e)?E.map(e,function(e){return nt(e,n+1)}):!E.isObject(e)||E.isDate(e)||E.isRegExp(e)||E.isElement(e)?E.isString(e)?E.escape(e):e:(i={},E.each(e,function(e,t){i[t]=nt(e,n+1)}),i)},it=function(e){e=Ze(e);return c.uint8ToBase64(e)},rt=function(e){if(void 0!==e)return e=Ze(e=E.isString(e)?e:JSON.stringify(e)),tt.CRC32.calc(e,0,e.length)};function ot(e){return e[Math.floor(Math.random()*e.length)]}function at(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",i=(t+t.toUpperCase()+"1234567890").split(""),r=0;r<e;r++)n+=ot(i);return n}var st=function(e,t,n){return!(!ge(e)||!ge(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<e.indexOf(t))};function v(){return(new Date).getTime()}function dt(){return"undefined"!=typeof $A&&E.isFunction($A.get)&&E.isString($A.get("$Browser.formFactor"))}function ut(e,t=window){var[e,t,n=window]=[E,e,t],i="__symbol__";if("undefined"!=typeof Zone&&e.isFunction(Zone[i])){i=n[Zone[i](t)];if(e.isFunction(i))return i}return n[t]}e=window;var ct=E.isFunction(e.isFinite)?e.isFinite:e.Number&&E.isFunction(e.Number.isFinite)?e.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)};function lt(e){return"number"==typeof e&&ct(e)&&Math.floor(e)===e}function pt(e,t,n,i){(t=t||{}).maxRetries=lt(t.maxRetries)?t.maxRetries:10,t.delay=lt(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,pt(e,t,o,a)},t.delay):(a||function(){})()}var ht=function(e){e=e.match(/-?[\d,]+\.?([\d,]+)*/);return e?parseFloat(e[0].replace(/,/g,"")):null};function ft(e){return E.isObject(e)&&E.isFunction(e.then)}var gt,mt=E.isFunction(window.decodeURIComponent)?window.decodeURIComponent:E.identity,vt=E.isFunction(window.encodeURIComponent)?window.encodeURIComponent:E.identity;class yt{constructor(e,t,n){this.type="log",this.logged=!1,this.level=e,this.message=t,this.attributes=n}toString(){let e=this.message;return this.error&&e!==this.error.message&&(e=e+":"+this.error.message),this.attributes&&(e+=": "+E.map(this.attributes,(e,t)=>t+"="+e)),e}hashCode(){return this.toString()}}(t=gt=gt||{}).Debug="debug",t.Info="info",t.Warn="warn",t.Error="error",t.Critical="critical";class bt extends class{constructor(){this.listeners={}}addEventListener(e,t){let n=this.listeners[e];n||(n=[],this.listeners[e]=n),E.findIndex(n,e=>t===e)<0&&n.push(t)}removeEventListener(e,t){var n,i=this.listeners[e];i&&0<=(n=E.findIndex(i,e=>t===e))&&(i.splice(n,1),i.length||delete this.listeners[e])}dispatchEvent(t){var e=this.listeners[t.type];e&&E.each(e,e=>{e(t)})}}{write(e,t,n){this.dispatchEvent(new yt(t,e,n))}writeError(e,t,n){let i,r;E.isString(e)?(i=e,r={message:i}):(r=e,i=r.message),n&&n.error&&(r=n.error,delete n.error);e=new yt(t,i,n);e.error=r,this.dispatchEvent(e)}debug(e,t){this.write(e,gt.Debug,t)}info(e,t){this.write(e,gt.Info,t)}warn(e,t){this.writeError(e,gt.Warn,t)}error(e,t){this.writeError(e,gt.Error,t)}critical(e,t){this.writeError(e,gt.Critical,t)}}const C=new bt;function wt(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const St=function(){var e=f.get("storage.allowKeys")||"*";return E.isArray(e)?E.indexBy(e):e};function It(t,n,i){return function(){try{return n.apply(t,arguments)}catch(e){return i}}}function _t(n){E.forEach(E.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function Et(e){var t=E.noop,t={getItem:()=>null,setItem:t,removeItem:t,clearPendo:t};try{var n=e();return n?{getItem:It(n,n.getItem,null),setItem:It(n,n.setItem),removeItem:It(n,n.removeItem),clearPendo:E.partial(_t,n)}:t}catch(i){return t}}var Ct,Tt=Et(function(){return window.localStorage}),xt=Et(function(){return window.sessionStorage}),kt={},At=!0,Ot=function(){return f.get("localStorageOnly")},Rt=function(){return!!f.get("disableCookies")};function Mt(e){At=e}var Nt=function(e){var t=Rt()||Ot()?kt[e]:document.cookie;return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(t))?mt(e[2]):null},Lt=function(e,t,n,i){var r,o;!At||f.get("preventCookieRefresh")&&Nt(e)===t||(o=Bt(n),(r=new Date).setTime(r.getTime()+o),o=e+"="+vt(t)+(n?";expires="+r.toUTCString():"")+"; path=/"+("https:"===document.location.protocol||i?";secure":"")+"; SameSite=Strict",Ct&&(o+=";domain="+Ct),Rt()||Ot()?kt[e]=o:document.cookie=o)};function Pt(e){Ct?Lt(e,""):document.cookie=e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"}var Ft=function(e,t){return`_pendo_${e}.`+(t||I.apiKey)},$t=function(e,t){return Nt(Ft(e,t))};const Gt=864e5,jt=100*Gt,Bt=(e=jt)=>{var t=f.get("maxCookieTTLDays"),t=t<Infinity?t*Gt:Infinity;return Math.min(e,t)};var zt=function(e,t,n,i,r){n=n||jt,Lt(Ft(e,r),t,n,i)};class Ht{constructor(){this.keys={}}addLocal(e){this._add(e,"local")}addSession(e){this._add(e,"session")}hasLocal(e){return this._has(e,"local")}hasSession(e){return this._has(e,"session")}_add(e,t){this.keys[e]||(this.keys[e]=t)}_has(e,t){return this.keys[e]===t}}var Wt,qt,Vt,Kt,y,h=function(){const o=new Ht;function e(i,r){return function(e){var t,n;if(t=e,"*"===(n=St())||n[t])return o[r](e)||C.warn(`storage key ${e} is not registered`),i.apply(this,arguments);C.debug(`writing storage key ${e} is not allowed`)}}function d(){return!Rt()&&!Ct&&u("localStorage")}var u=E.memoize(function(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(i){return i instanceof DOMException&&(22===i.code||1014===i.code||"QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&t&&0!==t.length}});function c(e){e.cache&&(e.cache={})}function r(e,t,n){t=t?e:Ft(e,n);if(d())return localStorage.removeItem(t);Pt(t)}const t=E.extend({},xt),n=(t.setItem=e(t.setItem,"hasSession"),E.extend({},Tt));return n.setItem=e(n.setItem,"hasLocal"),{read:function(e,t,n){var i;return d()?(i=t?e:Ft(e,n),null===(i=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(n){return e}}(localStorage.getItem(i)))&&r(e,t,n),i):t?Nt(e):$t(e,n)},write:e(function(e,t,n,i,r,o){if(c(u),d())try{var a=i?e:Ft(e,o);return localStorage.setItem(a,function(e,t){if(null===t)return e;t=(new Date).getTime()+Bt(t);return JSON.stringify({ttl:t,value:e})}(t,n)),void c(u)}catch(s){}if(!i)return zt(e,t,n,r,o);Lt(e,t,n,r)},"hasLocal"),clear:r,registry:o,getLocal:()=>n,getSession:()=>t}}(),Jt=(window.Promise,e=function(){var t=Dt;function u(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new c(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!u(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function d(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){d(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)d(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!u(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a},"function"==typeof(t=window.Promise)&&/native/.test(t)?t:e()),t=(qt=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},Vt=function(n,i){var r=Wt.defer(),o=function(n,i){Dt(function(){var e;try{e=n(i)}catch(t){return void r.reject(t)}e===r.promise?r.reject(new TypeError("Cannot resolve promise with itself")):r.resolve(e)},1)};return{promise:r.promise,handle:function(e,t){e===Kt?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},Kt=1,(Wt={}).defer=function(){var n,i=0,r=[],t=function(e,t){i=e,n=t,E.each(r,function(e){e.handle(i,n)}),r=null},o=function(e){t(Kt,e)},a=function(e){t(2,e)},s=function(e,t){e=Vt(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},d=function(e){var t=qt();try{e(t(u),t(a))}catch(n){t(a)(n)}},u=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(n){return void a(n)}t?d(t):o(e)},e=qt();return{resolve:e(u),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}},Wt);function Zt(e){var n,i=y.defer(),r=E.isArray(e)?[]:{},o=E.size(e);return o?(n=!1,E.each(e,function(e,t){y.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):y.resolve(e)}!Ve()&&$e.isMinimumIEVersion(11)?y={all:function(e){return E.isArray(e)?Jt.all.apply(Jt,arguments):Zt(e)},reject:function(){return Jt.reject.apply(Jt,arguments)},resolve:function(){return Jt.resolve.apply(Jt,arguments)},defer:function(){var n={};return n.promise=new Jt(function(e,t){n.resolve=e,n.reject=t}),n}}:((y=t).all=Zt,y.reject=function(e){var t=y.defer();return t.reject(e),t.promise},y.resolve=function(e){var t=y.defer();return t.resolve(e),t.promise});const Yt=h.getSession(),Xt="pendo_tabId",Qt="pendo_parentTabId";en=window,e=E.partial,tn=E.extend,nn=E.omit,rn={data:{},getItem(e){return rn.data[e]},setItem(e,t){rn.data[e]=t},removeItem(e){rn.data[e]=null,delete rn.data[e]}},on=e(cn,Xt,ln),an=e(cn,"pendo_frameId",rn);var en,tn,nn,rn,on,an,sn={addTracerIds(e){return nn(tn(e,{parentTabId:dn(Qt,ln),tabId:on(),frameId:an()}),function(e){return e===undefined})},setParentTabId:function(e){un(Qt,e,ln)},newTabId:function(){var e=at(16);return un(Xt,e,ln),e},getTabId:on,getFrameId:an,tabIdChanged:function(t){var e;if($e.addEventListener)return en.addEventListener("storage",e=function(e){e.key===Xt&&(rn.removeItem(Xt),t())}),function(){en.removeEventListener("storage",e)}}};function dn(e,t){return(E.isFunction(t)?t():t).getItem(e)}function un(e,t,n){(E.isFunction(n)?n():n).setItem(e,t)}function cn(e,t){var n=dn(e,t);return n||un(e,n=at(16),t),n}function ln(){return n=rn,i=Yt,{getItem(e){var t=n.getItem(e);return t===undefined&&(t=i.getItem(e),n.setItem(e,t)),t},setItem(e,t){n.setItem(e,t),i.setItem(e,t)},removeItem(e){n.removeItem(e),i.removeItem(e)}};var n,i}function pn(){var i=this._handlers={};return this.addEventListener=function(){this.on.apply(this,arguments)},this.removeEventListener=function(){this.off.apply(this,arguments)},this.on=function(e,t){var n;return(E.isString(e)||E.isFunction(t))&&(n=(n=i[e])||(i[e]=[]),E.indexOf(n,t)<0)&&n.push(t),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(e,t){var n,e=i[e];return E.isFunction(t)?(n=E.indexOf(e,t),e&&0<=n&&e.splice(n,1)):e&&t===undefined&&(e.length=0),this},this.trigger=function(e){var t=i[e]?i[e].slice():[],n=E.toArray(arguments).slice(1);return E.map(t,function(e){return e.apply(I,n)})},this.triggerCancelable=function(e,t){e=i[e]?i[e].slice():[];return E.map(e,function(e){if(!t.cancel)return e.apply(I,[t])})},this.triggerAsync=function(){var e=E.map(this.trigger.apply(this,arguments),function(e){return!1===e?y.reject():e});return y.all(e)},this}pn.clear=function(t){t&&E.each(E.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};Ti={DEBUG:t="debug",FRAMES:e="frames",LIFECYCLE:r="lifecycle",RUNTIME:Ni="runtime"},hn=[new i("ready",[t,r]),new i("deliverablesLoaded",[t,r]),new i("guidesFailed",[t,r]),new i("guidesLoaded",[t,r]),new i("guideListChanged",[t,r]),new i("guideSeen",[t,r]),new i("guideNotSeen",[t,r]),new i("guideAdvanced",[t,r]),new i("guideDismissed",[t,r]),new i("guideSnoozed",[t,r]),new i("beforeGuideShow",[r]),new i("beforeMount",[Ni]),new i("beforeAdvance",[Ni]),new i("beforePrevious",[Ni]),new i("beforeSnooze",[Ni]),new i("beforeDismiss",[Ni]),new i("beforeUnmount",[Ni]),new i("unmounted",[Ni]),new i("beforeUpdate",[Ni]),new i("updated",[Ni]),new i("guideSnoozeCancelled",[t,r]),new i("guideTimeout",[t,r]),new i("guideLoopStopped",[t,r]),new i("guideUpdateComplete",[r]),new i("designerLaunched",[t,r]),new i("debuggerLaunched",[t,r]),new i("stepEligibility",[t]),new i("identify",[t,r]),new i("metadata",[t,r]),new i("appUnloaded",[t,r]),new i("appHidden",[t,r]),new i("startPreview",[t]),new i("resourceFetchFail",[t]),new i("contentVerificationFail",[t]),new i("contentValidationFail",[t]),new i("renderFail",[t]),new i("appUsage",[r]),new i("eventCaptured",[t]),new i("error",[t,r]),new i("onClickCaptured",[t]),new i("urlChanged",[r]),new i("leaderChanged",[r,e]),new i("transmit:locked",[r]),new i("transmit:unlocked",[r]),new i("sessionChanged",[r]),new i("childFrameJoined",[e]),new i("tabIdChanged:self",[t,r])],fn=pn.call({}),gn={debug(){return sn.addTracerIds(vn.apply(null,arguments))},lifecycle:vn,runtime:vn,frames:vn},mn=fn.trigger,fn.trigger=yn,E.each(E.values(Ti),function(e){fn[e]={on:E.partial(fn.on,e),one:E.partial(fn.one,e),off:E.partial(fn.off,e)}}),E.each(hn,function(e){e=e.name,fn[e]={on:E.partial(fn.on,e),one:E.partial(fn.one,e),off:E.partial(fn.off,e),trigger:E.partial(yn,e)}});var hn,fn,gn,mn,m=fn;function i(e,t){this.name=e,this.groups=t||[]}function vn(e,t){e={type:e,ts:v()};return ge(t)&&E.isObject(t)&&(e.data=t),e}function yn(t){var e=E.findWhere(hn,{name:t}),n=E.toArray(arguments).slice(1),i={};return E.each(e.groups,function(e){i.cancel||(i=gn[e](t,n),mn.apply(fn,[e].concat(i)))}),i.cancel||(i=vn(t,n),mn.apply(fn,[t].concat(i))),i}function bn(e){var i=[],r=[],o={},a={},s={state:{},commit:function(t,n){var e=o[t];if(!e)throw new Error("mutation "+t+" not found");e(n),E.each(i,function(e){e({type:t,payload:n},s.state)})},dispatch:function(t,n){var e=a[t];if(e)return e=e(n),E.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:E.partial(t,i),subscribeAction:E.partial(t,r),registerModule:function h(n,e){E.isString(n)&&(n=[n]);var t=u(s.state,e,n);E.extend(s.getters,p(e,t,s,n));E.extend(o,c(e,t,n));E.extend(a,l(e,t,s,n));E.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return E.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):E.noop;var n,i}function d(e,t){return(e=t?e.concat([t]):e).join("/")}function u(e,t,n){var i=e;return E.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),E.extend(i,me(t.state||{}))}function c(e,n,i){var r={};return E.each(e.mutations,function(e,t){r[d(i,t)]=E.partial(e,n)}),r}function l(e,t,i,r){var n={},o={state:t,rootState:i.state,commit:function(e,t,n){n=n&&n.root?e:d(r,e);i.commit(n,t)},dispatch:function(e,t,n){n=n&&n.root?e:d(r,e);return i.dispatch(n,t)},getters:function(e,t){var i=d(t);i&&(i+="/");return E.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return E.each(e.actions,function(e,t){n[d(r,t)]=E.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return E.each(e.getters,function(e,t){a[t]=o[d(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}var g=bn(),wn=(g.subscribe(function(e,t){}),"_PENDO_T_"),Sn=11;const In="visitorId",_n="oldVisitorId",En="accountId";var Cn=function(e=""){return e+at(Sn)};var Tn=function(e){return ge(e)&&""!==e&&e!==Mn&&"boolean"!=typeof e&&"object"!=typeof e&&!((e=e)&&"string"==typeof e&&0===Ye.call(e).length)},xn=function(e){return!(!e||"number"==typeof e)&&e.substring(0,wn.length)===wn},kn=function(){return!f.get("disablePersistence")},An=function(e){e=e||[In,En,_n];const t=f.get("identityStorageSuffix")||I.apiKey;E.each(e,function(e){Pt(Ft(e,t)),h.clear(e,!1,t)})},On="VISITOR-UNIQUE-ID",Rn=function(e){return On===e},Mn="::",Nn=function(e){return new RegExp(Mn).test(e)};function Ln(e){return e.old_visitor_id!==e.visitor_id}var Pn,Fn=function(e,t){var n,i={old_visitor_id:b(),old_account_id:Gn()};Tn(e)?(Tn(n=e)?Dn(""+n):C.info("Invalid visitor id "+n),n=t,E.isUndefined(n)?C.info("No account id provided"):Tn(n)?(I.accountId=""+n,kn()&&jn(En,I.accountId)):(delete I.accountId,delete(t=f.getLocalConfig()).account,f.setLocalConfig(t),g.commit("metadata/clearAccount"),kn()&&h.clear(En),C.info("Invalid account id: "+n+". Account cleared")),i.visitor_id=b({generate:!0}),i.account_id=Gn(),!Ln(t=i)&&t.old_account_id===t.account_id||(Ln(i)&&(n=i.old_visitor_id)&&(Pn=n,jn(_n,Pn)),m.identify.trigger(i))):C.info("Invalid visitor id "+e)};function $n(){return Cn(wn)}function Dn(e){I.visitorId!==e&&(kn()&&jn(In,e),I.visitorId=e)}function b(e={}){var t=function(){if(Tn(I.visitorId))return I.visitorId;var e=f.get("forceAnonymous");if(kn()){var t=Bn(In);if(Tn(t)&&(!e||xn(t)))return t}return undefined}();return Dn(t=!t&&e.generate?$n():t),t}function Un(){return b()||$n()}var Gn=function(){var e=f.get("forceAnonymous");return Tn(I.accountId)||!kn()||e||(e=Bn(En),I.accountId=e),I.accountId};function jn(e,t){var n=f.get("identityStorageLifetime")||jt,i=f.get("identityStorageSuffix")||I.apiKey;h.write(e,t,n,!1,!0,i)}function Bn(e){var t=f.get("identityStorageSuffix"),n=t||I.apiKey,n=h.read(e,!1,n)||h.read(e,!1,I.apiKey);return t&&h.clear(e,!1,I.apiKey),n}function zn(){var e={old_visitor_id:b({generate:!1}),old_account_id:Gn(),wasCleared:!0};An(),delete I.visitorId,delete I.accountId,b({generate:!0}),E.extend(e,{visitor_id:b(),account_id:Gn()}),m.identify.trigger(e)}function Hn(e){e=e.data[0];return E.get(e,"wasCleared")}var Wn=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||C.critical(e)}}};Ni=function(n){return function qn(e){var t=n.createElement("a");if(t.href=e,":"===t.protocol)throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");if(t.href!==e&&t.href!==encodeURI(e))throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");return t.toString||(t.toString=function(){return t.href}),null==t.origin&&(t.origin=t.protocol+"//"+t.hostname,"80"!==t.port)&&"443"!==t.port&&(t.origin+=":"+t.port),t}};var qn="function"==typeof(e=window.URL)&&/native/.test(e)?e:Ni(document);function Vn(e){if((t=e)&&E.isFunction(t.composedPath))try{return e.composedPath()}catch(n){return e.path}var t;return null}function Kn(e){return e.shadowRoot}function Jn(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function Zn(e,t){return Jn(e,t)?e.host:e.parentNode}var Yn={PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:Vn,getShadowRoot:Kn,isElementShadowRoot:Jn,getParent:Zn,isShadowSelector:Xn,wrapSizzle(i){i.intercept(function(a,e,n,i,r){var t,o;return Xn(e)?E.isFunction(document.documentElement.attachShadow)?(o=a,t=(t=e).replace(Yn.PSEUDO_REGEX,Yn.PSEUDO_SAFE),t=E.map(o.tokenize(t),Qn),E.reduce(t,function(e,t){return e.concat(s(t,n,i,r))},[])):a(e.replace(Yn.PSEUDO_REGEX,""),n,i,r):a(e,n,i,r);function s(e,t,n,i){var r,o;return Xn(e)?(o=s((r={baseCss:(o=(o=e).split(Yn.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(Yn.PSEUDO_ELEMENT)}).baseCss,t),E.reduce(o,function(e,t){return Yn.getShadowRoot(t)?e.concat(s(r.shadowCss,Yn.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!Yn.isElementShadowRoot(t)&&(Xn(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}};function Xn(e){return!!e&&-1<e.indexOf(Yn.PSEUDO_ELEMENT)}function Qn(e){return E.reduce(e,function(e,t){return t.value===Yn.PSEUDO_SAFE?e+Yn.PSEUDO_ELEMENT:e+t.value},"")}var ei,w,S,ti,ni,ii,ri,oi,ai,si,di,ui,_,ci,li,pi,hi,fi,gi,t={exports:{}},r=t,mi=window,T="sizzle"+ +new Date,vi=mi.document,yi=0,bi=0,wi=tr(),Si=tr(),Ii=tr(),_i=tr(),Ei=function(e,t){return e===t&&(di=!0),0},Ci={}.hasOwnProperty,Ti=[],xi=Ti.pop,ki=Ti.push,Ai=Ti.push,Oi=Ti.slice,Ri=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},Mi="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",a="[\\x20\\t\\r\\n\\f]",e="(?:\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Ni="\\["+a+"*("+e+")(?:"+a+"*([*^$|!~]?=)"+a+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+e+"))|)"+a+"*\\]",Li=":("+e+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Ni+")*)|.*)\\)|)",Pi=new RegExp(a+"+","g"),Fi=new RegExp("^"+a+"+|((?:^|[^\\\\])(?:\\\\.)*)"+a+"+$","g"),$i=new RegExp("^"+a+"*,"+a+"*"),Di=new RegExp("^"+a+"*([>+~]|"+a+")"+a+"*"),Ui=new RegExp(a+"|>"),Gi=new RegExp(Li),ji=new RegExp("^"+e+"$"),Bi={ID:new RegExp("^#("+e+")"),CLASS:new RegExp("^\\.("+e+")"),TAG:new RegExp("^("+e+"|[*])"),ATTR:new RegExp("^"+Ni),PSEUDO:new RegExp("^"+Li),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+Mi+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},zi=/HTML$/i,Hi=/^(?:input|select|textarea|button)$/i,Wi=/^h\d$/i,qi=/^[^{]+\{\s*\[native \w/,Vi=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ki=/[+~]/,Ji=new RegExp("\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\([^\\r\\n\\f])","g"),Zi=function(e,t){e="0x"+e.slice(1)-65536;return t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))},Yi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Xi=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Qi=function(){ui()},er=lr(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Ai.apply(Ti=Oi.call(vi.childNodes),vi.childNodes),Ti[vi.childNodes.length].nodeType}catch(Aw){Ai={apply:Ti.length?function(e,t){ki.apply(e,Oi.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function x(e,t,n,i){var r,o,a,s,d,u,c=t&&t.ownerDocument,l=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==l&&9!==l&&11!==l)return n;if(!i&&(ui(t),t=t||_,li)){if(11!==l&&(s=Vi.exec(e)))if(r=s[1]){if(9===l){if(!(u=t.getElementById(r)))return n;if(u.id===r)return n.push(u),n}else if(c&&(u=c.getElementById(r))&&gi(t,u)&&u.id===r)return n.push(u),n}else{if(s[2])return Ai.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&w.getElementsByClassName&&t.getElementsByClassName)return Ai.apply(n,t.getElementsByClassName(r)),n}if(w.qsa&&!_i[e+" "]&&(!pi||!pi.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(u=e,c=t,1===l&&(Ui.test(e)||Di.test(e))){for((c=Ki.test(e)&&dr(t.parentNode)||t)===t&&w.scope||((a=t.getAttribute("id"))?a=a.replace(Yi,Xi):t.setAttribute("id",a=T)),o=(d=ii(e)).length;o--;)d[o]=(a?"#"+a:":scope")+" "+cr(d[o]);u=d.join(",")}try{return Ai.apply(n,c.querySelectorAll(u)),n}catch(p){_i(e,!0)}finally{a===T&&t.removeAttribute("id")}}}return oi(e.replace(Fi,"$1"),t,n,i)}function tr(){var n=[];function i(e,t){return n.push(e+" ")>S.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function nr(e){return e[T]=!0,e}function ir(e){var t=_.createElement("fieldset");try{return!!e(t)}catch(Aw){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function rr(e,t){for(var n=e.split("|"),i=n.length;i--;)S.attrHandle[n[i]]=t}function or(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 ar(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&er(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function sr(a){return nr(function(o){return o=+o,nr(function(e,t){for(var n,i=a([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function dr(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(ei in w=x.support={},ni=x.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!zi.test(t||e&&e.nodeName||"HTML")},ui=x.setDocument=function(e){var e=e?e.ownerDocument||e:vi;return e!=_&&9===e.nodeType&&e.documentElement&&(ci=(_=e).documentElement,li=!ni(_),vi!=_&&(e=_.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",Qi,!1):e.attachEvent&&e.attachEvent("onunload",Qi)),w.scope=ir(function(e){return ci.appendChild(e).appendChild(_.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),w.attributes=ir(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=ir(function(e){return e.appendChild(_.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=!!_.getElementsByClassName,w.getById=ir(function(e){return ci.appendChild(e).id=T,!_.getElementsByName||!_.getElementsByName(T).length}),w.getById?(S.filter.ID=function(e){var t=e.replace(Ji,Zi);return function(e){return e.getAttribute("id")===t}},S.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&li)return(e=t.getElementById(e))?[e]:[]}):(S.filter.ID=function(e){var t=e.replace(Ji,Zi);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},S.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&li){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[]}}),S.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):w.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},S.find.CLASS=w.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&li?t.getElementsByClassName(e):w.qsa&&li?t.querySelectorAll("."+e):void 0},hi=[],pi=[],(w.qsa=!!_.querySelectorAll)&&(ir(function(e){var t;ci.appendChild(e).innerHTML=J().createHTML("<a id='"+T+"'></a><select id='"+T+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&pi.push("[*^$]="+a+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||pi.push("\\["+a+"*(?:value|"+Mi+")"),e.querySelectorAll("[id~="+T+"-]").length||pi.push("~="),(t=_.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||pi.push("\\["+a+"*name"+a+"*="+a+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||pi.push(":checked"),e.querySelectorAll("a#"+T+"+*").length||pi.push(".#.+[+~]"),e.querySelectorAll("\\\f"),pi.push("[\\r\\n\\f]")}),ir(function(e){e.innerHTML=J().createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=_.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&pi.push("name"+a+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&pi.push(":enabled",":disabled"),ci.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&pi.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),pi.push(",.*:")})),(w.matchesSelector=qi.test(fi=ci.matches||ci.webkitMatchesSelector||ci.mozMatchesSelector||ci.oMatchesSelector||ci.msMatchesSelector))&&ir(function(e){w.disconnectedMatch=fi.call(e,"*"),fi.call(e,"[s!='']:x"),hi.push("!=",Li)}),pi=pi.length&&new RegExp(pi.join("|")),hi=hi.length&&new RegExp(hi.join("|")),e=!!ci.compareDocumentPosition,gi=e||ci.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},Ei=e?function(e,t){var n;return e===t?(di=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!w.sortDetached&&t.compareDocumentPosition(e)===n?e==_||e.ownerDocument==vi&&gi(vi,e)?-1:t==_||t.ownerDocument==vi&&gi(vi,t)?1:si?Ri(si,e)-Ri(si,t):0:4&n?-1:1)}:function(e,t){if(e===t)return di=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==_?-1:t==_?1:r?-1:o?1:si?Ri(si,e)-Ri(si,t):0;if(r===o)return or(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?or(a[i],s[i]):a[i]==vi?-1:s[i]==vi?1:0}),_},x.matches=function(e,t){return x(e,null,null,t)},x.matchesSelector=function(e,t){if(ui(e),w.matchesSelector&&li&&!_i[t+" "]&&(!hi||!hi.test(t))&&(!pi||!pi.test(t)))try{var n=fi.call(e,t);if(n||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(Aw){_i(t,!0)}return 0<x(t,_,null,[e]).length},x.contains=function(e,t){return(e.ownerDocument||e)!=_&&ui(e),gi(e,t)},x.attr=function(e,t){(e.ownerDocument||e)!=_&&ui(e);var n=S.attrHandle[t.toLowerCase()],n=n&&Ci.call(S.attrHandle,t.toLowerCase())?n(e,t,!li):undefined;return n!==undefined?n:w.attributes||!li?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},x.escape=function(e){return(e+"").replace(Yi,Xi)},x.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},x.uniqueSort=function(e){var t,n=[],i=0,r=0;if(di=!w.detectDuplicates,si=!w.sortStable&&e.slice(0),e.sort(Ei),di){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return si=null,e},ti=x.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=ti(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=ti(t);return n},(S=x.selectors={cacheLength:50,createPseudo:nr,match:Bi,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(Ji,Zi),e[3]=(e[3]||e[4]||e[5]||"").replace(Ji,Zi),"~="===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]||x.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]&&x.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Bi.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Gi.test(n)&&(t=(t=ii(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(Ji,Zi).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=wi[e+" "];return t||(t=new RegExp("(^|"+a+")"+e+"("+a+"|$)"))&&wi(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){e=x.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexOf(i):"*="===n?i&&-1<e.indexOf(i):"$="===n?i&&e.slice(-i.length)===i:"~="===n?-1<(" "+e.replace(Pi," ")+" ").indexOf(i):"|="===n&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(f,e,t,g,m){var v="nth"!==f.slice(0,3),y="last"!==f.slice(-4),b="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var i,r,o,a,s,d,u=v!=y?"nextSibling":"previousSibling",c=e.parentNode,l=b&&e.nodeName.toLowerCase(),p=!n&&!b,h=!1;if(c){if(v){for(;u;){for(a=e;a=a[u];)if(b?a.nodeName.toLowerCase()===l:1===a.nodeType)return!1;d=u="only"===f&&!d&&"nextSibling"}return!0}if(d=[y?c.firstChild:c.lastChild],y&&p){for(h=(s=(i=(r=(o=(a=c)[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===yi&&i[1])&&i[2],a=s&&c.childNodes[s];a=++s&&a&&a[u]||(h=s=0,d.pop());)if(1===a.nodeType&&++h&&a===e){r[f]=[yi,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===yi&&i[1]:h))for(;(a=++s&&a&&a[u]||(h=s=0,d.pop()))&&((b?a.nodeName.toLowerCase()!==l:1!==a.nodeType)||!++h||(p&&((r=(o=a[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[yi,h]),a!==e)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(e,o){var t,a=S.pseudos[e]||S.setFilters[e.toLowerCase()]||x.error("unsupported pseudo: "+e);return a[T]?a(o):1<a.length?(t=[e,e,"",o],S.setFilters.hasOwnProperty(e.toLowerCase())?nr(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=Ri(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:nr(function(e){var i=[],r=[],s=ri(e.replace(Fi,"$1"));return s[T]?nr(function(e,t,n,i){for(var r,o=s(e,null,i,[]),a=e.length;a--;)(r=o[a])&&(e[a]=!(t[a]=r))}):function(e,t,n){return i[0]=e,s(i,null,n,r),i[0]=null,!r.pop()}}),has:nr(function(t){return function(e){return 0<x(t,e).length}}),contains:nr(function(t){return t=t.replace(Ji,Zi),function(e){return-1<(e.textContent||ti(e)).indexOf(t)}}),lang:nr(function(n){return ji.test(n||"")||x.error("unsupported lang: "+n),n=n.replace(Ji,Zi).toLowerCase(),function(e){var t;do{if(t=li?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=mi.location&&mi.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===ci},focus:function(e){return e===_.activeElement&&(!_.hasFocus||_.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ar(!1),disabled:ar(!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!S.pseudos.empty(e)},header:function(e){return Wi.test(e.nodeName)},input:function(e){return Hi.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:sr(function(){return[0]}),last:sr(function(e,t){return[t-1]}),eq:sr(function(e,t,n){return[n<0?n+t:n]}),even:sr(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:sr(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:sr(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:sr(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=S.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})S.pseudos[ei]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(ei);for(ei in{submit:!0,reset:!0})S.pseudos[ei]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(ei);function ur(){}function cr(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function lr(a,e,t){var s=e.dir,d=e.next,u=d||s,c=t&&"parentNode"===u,l=bi++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var i,r,o=[yi,l];if(n){for(;e=e[s];)if((1===e.nodeType||c)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||c)if(r=(r=e[T]||(e[T]={}))[e.uniqueID]||(r[e.uniqueID]={}),d&&d===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[u])&&i[0]===yi&&i[1]===l)return o[2]=i[2];if((r[u]=o)[2]=a(e,t,n))return!0}return!1}}function pr(r){return 1<r.length?function(e,t,n){for(var i=r.length;i--;)if(!r[i](e,t,n))return!1;return!0}:r[0]}function hr(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 fr(h,f,g,m,v,e){return m&&!m[T]&&(m=fr(m)),v&&!v[T]&&(v=fr(v,e)),nr(function(e,t,n,i){var r,o,a,s=[],d=[],u=t.length,c=e||function(e,t,n){for(var i=0,r=t.length;i<r;i++)x(e,t[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),l=!h||!e&&f?c:hr(c,s,h,n,i),p=g?v||(e?h:u||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=hr(p,d),m(r,[],n,i),o=r.length;o--;)(a=r[o])&&(p[d[o]]=!(l[d[o]]=a));if(e){if(v||h){if(v){for(r=[],o=p.length;o--;)(a=p[o])&&r.push(l[o]=a);v(null,p=[],r,i)}for(o=p.length;o--;)(a=p[o])&&-1<(r=v?Ri(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=hr(p===t?p.splice(u,p.length):p),v?v(null,t,p,i):Ai.apply(t,p)})}ur.prototype=S.filters=S.pseudos,S.setFilters=new ur,ii=x.tokenize=function(e,t){var n,i,r,o,a,s,d,u=Si[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],d=S.preFilter;a;){for(o in n&&!(i=$i.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=Di.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(Fi," ")}),a=a.slice(n.length)),S.filter)S.filter.hasOwnProperty(o)&&(i=Bi[o].exec(a))&&(!d[o]||(i=d[o](i)))&&(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?x.error(e):Si(e,s).slice(0)},ri=x.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=Ii[e+" "];if(!a){for(n=(t=t||ii(e)).length;n--;)((a=function l(e){for(var i,t,n,r=e.length,o=S.relative[e[0].type],a=o||S.relative[" "],s=o?1:0,d=lr(function(e){return e===i},a,!0),u=lr(function(e){return-1<Ri(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==ai)||((i=t).nodeType?d:u)(e,t,n),i=null,e}];s<r;s++)if(t=S.relative[e[s].type])c=[lr(pr(c),t)];else{if((t=S.filter[e[s].type].apply(null,e[s].matches))[T]){for(n=++s;n<r&&!S.relative[e[n].type];n++);return fr(1<s&&pr(c),1<s&&cr(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Fi,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&cr(e))}c.push(t)}return pr(c)}(t[n]))[T]?r:o).push(a);(a=Ii(e,(m=o,y=0<(v=r).length,b=0<m.length,i=function(e,t,n,i,r){var o,a,s,d=0,u="0",c=e&&[],l=[],p=ai,h=e||b&&S.find.TAG("*",r),f=yi+=null==p?1:Math.random()||.1,g=h.length;for(r&&(ai=t==_||t||r);u!==g&&null!=(o=h[u]);u++){if(b&&o){for(a=0,t||o.ownerDocument==_||(ui(o),n=!li);s=m[a++];)if(s(o,t||_,n)){i.push(o);break}r&&(yi=f)}y&&((o=!s&&o)&&d--,e)&&c.push(o)}if(d+=u,y&&u!==d){for(a=0;s=v[a++];)s(c,l,t,n);if(e){if(0<d)for(;u--;)c[u]||l[u]||(l[u]=xi.call(i));l=hr(l)}Ai.apply(i,l),r&&!e&&0<l.length&&1<d+v.length&&x.uniqueSort(i)}return r&&(yi=f,ai=p),c},y?nr(i):i))).selector=e}return a},oi=x.select=function(e,t,n,i){var r,o,a,s,d,u="function"==typeof e&&e,c=!i&&ii(e=u.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&li&&S.relative[o[1].type]){if(!(t=(S.find.ID(a.matches[0].replace(Ji,Zi),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=Bi.needsContext.test(e)?0:o.length;r--&&(a=o[r],!S.relative[s=a.type]);)if((d=S.find[s])&&(i=d(a.matches[0].replace(Ji,Zi),Ki.test(o[0].type)&&dr(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&cr(o))break;return Ai.apply(n,i),n}}return(u||ri(e,c))(i,t,!li,n,!t||Ki.test(e)&&dr(t.parentNode)||t),n},w.sortStable=T.split("").sort(Ei).join("")===T,w.detectDuplicates=!!di,ui(),w.sortDetached=ir(function(e){return 1&e.compareDocumentPosition(_.createElement("fieldset"))}),ir(function(e){return e.innerHTML=J().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||rr("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&ir(function(e){return e.innerHTML=J().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||rr("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ir(function(e){return null==e.getAttribute("disabled")})||rr(Mi,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var gr=mi.Sizzle;x.noConflict=function(){return mi.Sizzle===x&&(mi.Sizzle=gr),x},r.exports?r.exports=x:mi.Sizzle=x;mr=p(t.exports),(vr=E.extend(function(){return vr.Sizzle.apply(this,arguments)},mr)).reset=function(){vr.Sizzle=mr,vr.matchesSelector=mr.matchesSelector,vr.matches=mr.matches},vr.intercept=function(e,t="Sizzle"){vr[t]=E.wrap(vr[t],e)},vr.reset();var mr,vr,yr=vr;function k(e,t){var n,i=this;if(e&&e instanceof k)return e;if(!(i instanceof k))return new k(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=E.toArray(r.childNodes)}else if(E.isString(e)){t instanceof k&&(t=0<t.length?t[0]:null);try{n=yr(e,t)}catch(o){n=[]}}else n=[e];else n=[];return E.each(n,function(e,t){i[t]=e}),i.context=t,i.length=n.length,"undefined"!=typeof Symbol&&Symbol.iterator&&(i[Symbol.iterator]=function*(){for(const e of n)yield e}),i}function br(){this.ownerKey="_pendo_"+at(8)}E.extend(br.prototype,{cache(e){var t;return E.isObject(e)?((t=e[this.ownerKey])||(e[this.ownerKey]=t={}),t):{}},set(e,t,n){e=this.cache(e);return e[t]=n,e},get(e,t){return t===undefined?this.cache(e):e[this.ownerKey]&&e[this.ownerKey][t]},remove(e,t){var n=this.cache(e);delete n[t],t!==undefined&&!E.isEmpty(n)||(e[this.ownerKey]=undefined)}});var wr=new br,Sr=1;function Ir(e){return E.isNumber(e.eventPhase)&&e.eventPhase===Sr}function _r(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?ut("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),()=>{Er(e,t,n,i)}):E.noop}function Er(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?ut("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var Cr=function(e){var t=Yn.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},Tr={add(t,e){var n=wr.get(t),i=(n.handle||(n.handle=function(e){Tr.dispatch(t,e)}),e.id=E.uniqueId(),e.capture?"captureEvents":"bubbleEvents"),i=n[i]=n[i]||{},i=i[e.type]=i[e.type]||[];return i.length||_r(t,e.type,n.handle,e.capture),i.push(e),()=>{k.event.remove(t,e.type,e.handler,e.capture)}},dispatch(r,o){var e,t,a;r&&(e=(wr.get(r,"captureEvents")||{})[o.type]||[],t=(wr.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=wr.get(o)).ignore&&(a.handled=a.handled||{},E.each(t.slice(),function(e){var t=!!e.capture===Ir(o),n=(n=o,E.isNumber(n.eventPhase)&&2===n.eventPhase),t=!t&&!n;if(!(Cr(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!ge(e.selector)||0<k(Cr(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){C.error(i)}}}))},remove(e,t,n,i){var r=wr.get(e);if(r){if(E.isFunction(n)){var o=i?r.captureEvents:r.bubbleEvents;if(!o)return;var a=o[t];if(!a)return;var s=E.findIndex(a,function(e){return e.handler===n});0<=s&&a.splice(s,1),a.length||(delete o[t],Er(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],Er(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],Er(e,t,r.handle));E.isEmpty(r.captureEvents)&&E.isEmpty(r.bubbleEvents)&&(wr.remove(e,"captureEvents"),wr.remove(e,"bubbleEvents"),wr.remove(e,"handle"))}},trigger(e){var t=wr.get(e);if(!t.pendoStopped)if(e.bubbles){var n=Cr(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=Yn.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),Ir(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)Tr.dispatch(o[i],e);(e=Tr.clone(e)).eventPhase=2}for(2!==e.eventPhase||t.pendoStopped||(Tr.dispatch(n,e),(e=Tr.clone(e)).eventPhase=3),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)Tr.dispatch(o[i],e)}}else Tr.dispatch(Cr(e),e)},clone(e){var t=E.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",wr.ownerKey]),e=Yn.getComposedPath(e);return e&&(t.composedPath=E.constant(e)),t},$:{on(e,n,i,r){return E.isFunction(n)&&(r=i,i=n,n=null),e=e.split(" "),this.each(function(t){E.each(e,function(e){Tr.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},xr=E.extend(Ar,{get:function(e,t){return Ar({method:"GET",url:e,headers:t})},post:Or,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",Or(e,t=JSON.stringify(t),n)},urlFor:function(e,t,n){if(E.isArray(t))i=t;else{if(!E.isObject(t))return e||"";i=E.keys(t)}var i=E.map(i,function(e){return E.isArray(t)?vt(e):vt(e)+"="+vt(t[e])}).join("&"),r=(e=e.split("#",2))[0],o=E.contains(r,"?");return[r,i?(o?"&":"?")+i:"",(n=void 0!==n?n:e[1])?"#"+n:""].join("")},supported(){return void 0!==kr()}});function kr(){return window.XMLHttpRequest||ActiveXObject}function Ar(e){var t=y.defer(),n=new(kr())("MSXML2.XMLHTTP.3.0");return n.open(e.method||"GET",e.url,!e.sync),E.each(e.headers,function(e,t){n.setRequestHeader(t.toLowerCase(),e)}),n.onreadystatechange=function(){var e;4===n.readyState&&(e=function(e){var t={status:e.status};try{t.data=JSON.parse(e.responseText)}catch(n){t.data=e.responseText}return t}(n),200<=n.status&&n.status<300?t.resolve(e):t.reject(e))},e.withCredentials&&(n.withCredentials=!0),e.data?n.send(e.data):n.send(),t.promise}function Or(e,t,n){return Ar({method:"POST",url:e,data:t,headers:n})}var Rr,Mr=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},Nr=function(){return f.get("annotateUrl")||Dr()||f.get("sanitizeUrl")||f.get(qr)||f.get("xhrWhitelist")},Lr=function(){return Dr()?{href:$r(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},Pr=function(){return new qn(window.location.href)},Fr=function(){var e,t,n,i;return Nr()?(e=Pr(),Dr()&&(e.href=$r(e.href)),Mr()?(t=A.electronResourcesPath(),n=A.electronUserDirectory(),i=A.electronAppName(),("https://"+e.href.replace(t,i)).replace(e.origin+n,i).replace(A.electronUserHomeDirectory(),"").replace("file:///","")):Kr(e.href)):g.getters["location/href"]()},$r=function(e){return e.match(/(.+?)(?:#|$)/)[1]},Dr=function(){return!0===f.get("ignoreHashRouting")},Ur=500;function Gr(){return E.isUndefined(Rr)&&function e(){Wr(),Rr=Dt(e,Ur)}(),()=>{clearTimeout(Rr)}}var jr=function(e){var t;try{t=Fr()}catch(n){}return t},Br=[],zr=!1,Hr=null;function Wr(){var t=Lr().href;Hr!=t&&(Hr=t,E.map(Br,function(e){e(t)}))}var qr="queryStringWhitelist";function Vr(e){var t=f.get("sanitizeUrl");return E.isFunction(t)?t(e):e}function Kr(e){e=e||Lr().href;var t=f.get("annotateUrl");if(t)if(E.isFunction(t))try{var n,i,r,o=t();return o&&(E.isObject(o)||E.isArray(o))?(n=o.exclude,i=o.include,r=o.fragment,delete o.fragment,(n&&E.isArray(n)||i&&(E.isArray(i)||E.isObject(i)))&&(n&&(e=Zr(e,null,n,!0)),o=i||{}),xr.urlFor(e,o,r)):e}catch(a){C.error("customer-provided `annotateUrl` function threw an exception",{error:a})}else C.error("customer-provided `annotateUrl` must be of type: function");return e}function Jr(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function Zr(e,t,n,i){e=e||jr(),t=t||Jr(e).substring(1),o=(r=e.indexOf(t))+t.length;var r=e.substring(0,r),o=e.substring(o);return(r=(t=E.isArray(n)?Xr(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var Yr,Xr=function(e,t,n){return n&&E.contains(t,"*")?"":(e=Qr(e),e=n?E.omit(e,t):E.pick(e,t),eo(e))},Qr=function(e){e=e.split("&");return E.reduce(e,function(e,t){return(t=t.split("="))[0]&&(e[t[0]]=t[1]&&mt(t[1])),e},{})},eo=function(e){return E.reduce(e,function(e,t,n){return t&&(n+="="+t),e&&(e+="&"),e+n},"")},A={watch:function(e){const n=[];C.info("Initializing Pendo URL Watcher");var i,t=f.get("location.pushState")&&$e.supportsHistoryApi();return zr||(t&&(i=window.history,E.each(["pushState","replaceState"],function(e){var t=i[e];i[e]=E.wrap(i[e],function(e){var t=e.apply(i,E.toArray(arguments).slice(1));return Dt(Wr,0),t}),n.push(()=>{i[e]=t})}),n.push(_r(window,"popstate",Wr))),$e.supportsHashChange()&&n.push(_r(window,"hashchange",Wr)),!1!==t&&$e.supportsHashChange()||n.push(Gr()),zr=!0),Br.push(e),()=>{E.each(n,function(e){e()}),Br.length=0,zr=!1}},get:jr,externalizeURL:function(e,t,n){n=n||f.get(qr);return Vr(Zr(e,t,n=E.isFunction(n)?n():n,!1))},startPoller:Gr,getWindowLocation:Lr,clear:function(){Br=[]},isElectron:Mr,electronUserDirectory:function(){return window.process.env.PWD||""},electronAppName:function(){return window.process.env.npm_package_name||""},electronUserHomeDirectory:function(){return window.process.env.HOME||""},electronResourcesPath:function(){return window.process.resourcesPath||""}};function to(){var e=f.getLocalConfig("dataHost");return e||((e=f.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:je)}function no(){Yr=to()}function io(){var e=f.get("contentHost")||f.get("assetHost")||Be;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function ro(e){return io()+"/"+(ze?ze+"/":"")+e}function oo(){var e=f.get("allowPartnerAnalyticsForwarding",!1)&&f.get("adoptAnalyticsForwarding",!1);return f.get("trainingPartner",!1)||e}var ao=3,so=1,uo=9,co=11,lo=4;function O(e){var t;if((t=e)&&t.nodeType===so)try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(n){}}function po(e,t){var n;return!(!e||!E.isFunction(e.getPropertyValue))&&(n=[e.getPropertyValue("transform")],void 0!==t&&E.isString(t)&&n.push(e.getPropertyValue("-"+t.toLowerCase()+"-transform")),E.any(n,function(e){return e&&"none"!==e}))}function ho(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function fo(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function go(e){return E.isNumber(e)?e:0}function mo(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!yo(e)?null:e}function vo(e){return po(O(e),xe)&&isNaN(Ie)}function yo(e){if(e)return(e=O(e))&&(E.contains(["relative","absolute","fixed"],e.position)||po(e,xe))}function bo(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=yo(t)?t:mo(t,n),i=t?wo(t):{top:0,left:0},e=wo(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+=go(t.scrollTop),i.left+=go(t.scrollLeft)),i.top-=go(t.clientTop),i.left-=go(t.clientLeft)):(i.top+=ho(n),i.left+=fo(n)),i.bottom=i.top+i.height,i.right=i.left+i.width,i}function wo(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}}var So=void 0===(e=f.get("pendoCore"))||e,Io=function(e,t,n){e=Yr+"/data/"+e+"/"+t,t=E.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function _o(){return E.compact([I.apiKey].concat(I.additionalApiKeys))}var Eo=function(e){return e+="v"+He,To(Io("log.gif",I.apiKey,{msg:e,version:He}))};function Co(e){try{var t=Yr+"/data/errorlog?apiKey="+I.apiKey,n={error:e,version:"v"+He,visitorId:b()},i=xo.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):xr.postJSON(t,n);return i.then(function(){C.info("successfully wrote error")},function(e){C.info("error writing error:"+e)})}catch(r){return C.info("Failed to write error to server using POST endpoint: "+r),Eo("Failed to write error to server using POST endpoint: "+r)}}function To(e){var t,n;return Ro()?(t=y.defer(),_r(n=new Image,"load",t.resolve),_r(n,"error",t.reject),n.src=e,t.promise):y.resolve()}function xo(e,t={}){t=E.extend({},{method:"GET",keepalive:!0},t);return fetch(e,t)}function ko(e,t){return navigator.sendBeacon(e,t)}xo.supported=function(){try{return E.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(e){return!1}};var Ao=!(ko.supported=function(){return E.isFunction(navigator.sendBeacon)}),Oo=function(){var e=Ro();return Ao=!0,e&&m["transmit:locked"].trigger(),"Pendo Agent locked. No more events will be written."},Ro=function(){return!Ao&&So},Mo=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test(Fo(e))}catch(n){return!1}},No=function(e,t){try{var n;Mo(e,t)||(n=Ye.call(Fo(e))+" "+t,Po(e,n))}catch(i){}},Lo=function(e,t){try{var n,i;Mo(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=Fo(e).replace(n," "),Po(e,i))}catch(r){}},Po=function(e,t){E.isString(e.className)?e.className=t:e.setAttribute("class",t)},Fo=function(e){try{var t=e.className;return(E.isString(t)||!ge(t)?t:e.getAttribute("class"))||""}catch(n){return""}},$o=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},Do={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},Uo=function(e,t){t=function(e){if(E.isString(e)){var t=e.split(";");var n;var i;var r;var o;e={};for(r=0;r<t.length;r++){n=t[r];o=n.indexOf(":");i=n.substring(0,o);e[i]=n.substring(o+1)}}return e}(t);Go(e,t)},Go=function(a,e){E.each(e,function(e,t){if(""!==(t=Ye.call(t))){var n=$o(t),i=(!E.isNumber(e)||isNaN(e)||Do[n]?E.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=Ye.call(r.substring(0,i));a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=Ye.call(e)}catch(o){C.info("failed to set style: "+t+" with value "+e)}}})},jo=function(){return De()?{width:document.documentElement.offsetWidth||0,height:document.documentElement.offsetHeight||0}:{width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}},Bo=function(e){var t=jo(),n=ho(),i=fo();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function zo(t){return E.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function Ho(e,t=window){var n;return function(e){var t,n=e;for(;n;){if(!(t=O(n)))return;if("fixed"===t.position)return!isNaN(Ie)||!Qo(n);n=n.parentNode}return}(e)?((n=wo(e)).fixed=!0,zo(n)):zo(bo(e,Ko(t.document),t))}var Wo=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},qo=E.compose(function(e){return Array.prototype.slice.call(e)},function(e,t){try{return yr(e,t)}catch(n){return Eo("error using sizzle: "+n),t.getElementsByTagName(e)}}),Vo=function(e,t){try{return t.children.length+t.offsetHeight+t.offsetWidth-(e.children.length+e.offsetHeight+e.offsetWidth)}catch(n){return C.info("error interrogating body elements: "+n),Eo("error picking best body:"+n),0}},Ko=function(e){e=e||document;try{var t=qo("body",e);return t&&1<t.length?(t.sort(Vo),t[0]||e.body):e.body&&e.body.tagName&&"body"!==e.body.tagName.toLowerCase()?e.documentElement:e.body}catch(n){return Eo("Error getting body element: "+n),e.body}};function Jo(e){if(e&&e.parentNode){var t=e.parentNode,n=e;if(!t)return[];var i=[];if(t.childNodes)for(let e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];1===r.nodeType&&r!==n&&i.push(r)}return i}return[]}function Zo(e){if(yr.contains(document,e))return!0;for(;e&&e.parentNode||Yn.isElementShadowRoot(e);)e=Yn.getParent(e);return e===document}var Yo=function(e){var t=Ko();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.bottom=t.top+t.height,t):((t=Ho(e)).right=t.left+t.width,t.bottom=t.top+t.height,t)},Xo=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function Qo(e){for(var t=e&&e.parentNode;t;){if(po(O(t),xe))return 1;t=t.parentNode}}var ea=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if(Zo(e))for(i=e;i;)if(Yn.isElementShadowRoot(i))i=i.host;else{if(i===r)return null;if(!(o=O(i)))return null;var o,a=o.position;if(i!==e&&t.test(o.overflow+o.overflowY+o.overflowX))return i.parentNode!==r||(o=O(r))&&!E.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&Qo(i))i=mo(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function ta(e,t){e=O(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?na.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?na.BOTH:t.test(e.overflowY)?na.Y:t.test(e.overflowX)?na.X:t.test(e.overflow)?na.BOTH:na.NONE}var na={X:"x",Y:"y",BOTH:"both",NONE:"none"};function ia(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&Zo(e)}function ra(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 oa(e){if(e){if(E.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function aa(e,t,n){const i=[];var r=oa(document.documentElement);let o=oa(ea(t)),a=0;for(;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=oa(ea(o)),a++;return()=>{E.each(E.compact(i),function(e){e()}),i.length=0}}const sa=['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"].join(", ");function da(e,t,n){var i=Yo(t),t=ta(t,n);if(t!==na.BOTH||Xo(e,i)){if(t===na.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===na.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function ua(e){if(e){if(ia(e))return 1;var t=Yo(e);if(0!==t.width&&0!==t.height){var n=O(e);if(!n||"hidden"!==n.visibility){for(var i=e;i&&n;){if("none"===n.display)return;if(parseFloat(n.opacity)<=0)return;n=O(i=i.parentNode)}return 1}}}}function ca(e,t){if(!ua(e))return!1;if(!ia(e)){for(var n=Yo(e),i=ea(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!da(n,i,t))return!1;i=ea(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=fo(),e+=ho()),o<=0||e<=0)return!1}}return!0}function la(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,d=Yo(e),u=ea(e,s);if(!ua(e))return!1;for(;u;){if(t=Yo(u),(o=ta(u,a))!==na.NONE&&(i=n=0,o!==na.Y&&o!==na.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!==na.X&&o!==na.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))),!da(d,u,s))return!1;u=ea(u,s)}return!0}function pa(e){for(var t,n,i,r,o,a=/(auto|scroll)/,s=Ko(),d=ea(e,a);d&&d!==s;)t=Yo(e),n=Yo(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),E.isFunction(d.scrollBy)?d.scrollBy(r,i):(d.scrollTop+=i,d.scrollLeft+=r),d=ea(d,a)}Ni={$:{findOrCreate(e){return 0<this.length?this:k(e)},find(e){var t=k();return t.context=this.context,this.each(function(){k(e,this).each(function(){t[t.length++]=this})}),t},each(e){for(var t=0,n=this.length;t<n;++t)e.call(this[t],this[t],t);return this},html(e){return e===undefined?this.length?this[0].innerHTML:this:this.each(function(){this.innerHTML=e})},text(e){var t="innerText"in document.body;return e===undefined?t?this.length?this[0].innerText:this:this.length?this[0].textContent:this:this.each(function(){Uo(this,{"white-space":"pre-wrap"}),t?this.innerText=e:this.textContent=e})},addClass(e){return e=e.split(/\s+/),this.each(function(t){E.each(e,function(e){No(t,e)})})},removeClass(e){return e=e.split(/\s+/),this.each(function(t){E.each(e,function(e){Lo(t,e)})})},hasClass(e){e=e.split(/\s+/);var n=!0;return 0!==this.length&&(this.each(function(t){E.each(e,function(e){n=n&&Mo(t,e)})}),n)},toggleClass(e){return e=e.split(/\s+/),this.each(function(t){E.each(e,function(e){(Mo(t,e)?Lo:No)(t,e)})})},css(e){return this.each(function(){Uo(this,e)}),this},appendTo(e){return k(e).append(this),this},append(e){var t=this;return k(e).each(function(){t.length&&t[0].appendChild(this),Zo(this)&&E.each(yr("script",this),ra)}),t},prependTo(e){return k(e).prepend(this),this},prepend(e){var t,n;return this.length&&(t=this[0],n=t.childNodes[0],k(e).each(function(){n?k(this).insertBefore(n):k(this).appendTo(t)})),this},getParent(){var e=k(this)[0];if(e&&e.parentNode)return k(e.parentNode)},insertBefore(e){e=k(e)[0];e&&e.parentNode&&(e.parentNode.insertBefore(this[0],e),Zo(document))&&E.each(yr("script",this[0]),ra)},remove(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),this},attr(e,t){return E.isObject(e)?(this.each(function(){E.each(e,function(e,t){this.setAttribute(t,e)},this)}),this):t!==undefined?(this.each(function(){this.setAttribute(e,t)}),this):0<this.length?this[0].getAttribute(e):void 0},closest(e,t){for(var n=this[0];n&&!yr.matchesSelector(n,e);)if((n=Zn(n))===document||t&&yr.matchesSelector(n,t))return k();return k(n)},eq(e){return k(this[e])},height(e){if(this.length)return e===undefined?this[0].offsetHeight:(this[0].style.height=e+"px",this)},width(e){if(this.length)return e===undefined?this[0].offsetWidth:(this[0].style.width=e+"px",this)},focus(){return this.each(function(){E.isFunction(this.focus)&&this.focus()})}}};class ha{constructor(e=Ko(),t={attributes:!0,childList:!0,subtree:!0}){if(this.listeners=[],this._teardown=()=>{},$e.MutationObserver){const n=new(ut("MutationObserver"))((e,t)=>{this.signal()});n.observe(e,t),this._teardown=()=>n.disconnect}else{const i=Dt(()=>{this.signal()},500);this._teardown=()=>{clearTimeout(i)}}}signal(){E.each(this.listeners,e=>{e.get()})}addObservers(...e){this.listeners=[].concat(this.listeners,e)}teardown(){this._teardown()}}Ti=function(){function e(e){this._object=e}return e.prototype.deref=function(){return this._object},e};var fa="function"==typeof(r=window.WeakRef)&&/native/.test(r)?r:Ti();function ga(e,t){var n,i;return e.tagName&&-1<["textarea","input"].indexOf(e.tagName.toLowerCase())?(n=e.value,i=t,n.length<=i?n:ba(n.substring(0,i))):ma(e,t)}function ma(e,t=128){var n,i="",r=e.nodeType;if(r===ao||r===lo)return e.nodeValue;if((n=e).tagName&&"textarea"!=n.tagName.toLowerCase()&&(r===so||r===uo||r===co)){if(!e.childNodes)return i;for(var o,a=0;a<e.childNodes.length;++a){if(t<=(i+(o=ma(e.childNodes[a],t-i.length))).length)return i+ba(o.substring(0,t-i.length));i+=o}}return i}function va(e){return 55296<=e&&e<=56319}function ya(e){return 56320<=e&&e<=57343}function ba(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(va(t)||ya(t)){if(1===e.length)return e.slice(0,-1);if(va(t))return e.slice(0,-1);if(ya(t))if(!va(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}class wa{constructor(e){this.listeners={},this.events=[],this.cssSelector=e}get(){let t=this.elRef&&this.elRef.deref();var e=Zo(t);if(!t||!e){if(t&&!e&&this.teardown(t),!(t=k(this.cssSelector)[0]))return undefined;E.each(this.events,e=>{t.addEventListener(e,e=>this.onEvent(e))}),this.elRef=new fa(t)}return t}getText(e=1024){return ga(this.get(),e)}addEventListener(e,t){var n=this.get();this.events.indexOf(e)<0&&(this.events.push(e),n)&&n.addEventListener(e,e=>this.onEvent(e)),this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t)}onEvent(t){var e=t.type;E.each(this.listeners[e],e=>e(t))}teardown(t=this.get()){t&&E.each(this.events,e=>t.removeEventListener(e,this.onEvent))}}function Sa(t){if(!t)return!1;if(t===window.location.origin)return!0;if(t===to())return!0;if(t===io())return!0;var e=[/^https:\/\/(app|via|adopt)(\.eu|\.us|\.gov|\.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|govramp|jp-prod|hsbc|au)\.appspot\.com$/,/^https:\/\/hotfix-(ops|app)-([0-9]+-dot-)pendo-(io|eu|us1|govramp|jp-prod|hsbc|au)\.appspot\.com$/,/^https:\/\/pendo-(io|eu|us1|govramp|jp-prod|hsbc|au)-static\.storage\.googleapis\.com$/,/^https:\/\/(us1\.)?cdn(\.eu|\.jpn|\.gov|\.hsbc|\.au)?\.pendo\.io$/],n=(Ke()||(e=e.concat([/^https:\/\/([a-zA-Z0-9-]+\.)*pendo-dev\.com$/,/^https:\/\/([a-zA-Z0-9-]+-dot-)?pendo-(dev|test|io|us1|govramp|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}$/,new RegExp("^https://pendo-"+Ge+"-static\\.storage\\.googleapis\\.com$")])),f.get("adoptHost"));if(n&&t==="https://"+n)return!0;return!!E.contains(f.get("allowedOriginServers",[]),t)||E.any(e,function(e){return e.test(t)})}function Ia(e){var t;if(E.isString(e))return t=(t=Jr(e).substring(1))&&t.length?Qr(t):{},e=E.last(E.first(e.split("?")).split("/")).split("."),{filename:E.first(e),extension:e.slice(1).join("."),query:t}}function _a(e,t){var n;f.get("guideValidation")&&$e.sri&&(n=Ia(t),t=E.find(["sha512","sha384","sha256"],function(e){return!!n.query[e]}))&&(e.integrity=t+"-"+(t=n.query[t],E.isString?t.replace(/-/g,"+").replace(/_/g,"/"):t),e.setAttribute("crossorigin","anonymous"))}E.extend(k,{data:wr,event:Tr,removeNode:Wo,getClass:Fo,hasClass:Mo,addClass:function(e,t){var n;"string"==typeof e?(n=k(e),E.map(n,function(e){No(e,t)})):No(e,t)},removeClass:function(e,t){var n;"string"==typeof e?(n=k(e),E.map(n,function(e){Lo(e,t)})):Lo(e,t)},getBody:Ko,getComputedStyle:O,getClientRect:Yo,intersectRect:Xo,getScrollParent:ea,isElementVisible:ca,Observer:ha,Element:wa,scrollIntoView:pa,getRootNode:oa}),E.extend(k.prototype,Tr.$,Ni.$);var Ea,Ca=function(e){var t=0===f.get("allowedOriginServers",[]).length,n=oo();return!(!t&&!n&&(t=Ge,n=Y,!/prod/.test(t)||ie(n)))||Sa(e)},Ta=function(e,t,n=!1){try{var i,r="text/css",o="text/javascript";if(E.isString(e)&&(e={url:e}),!Ca((u=e.url,new qn(u).origin)))throw new 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,_a(d,e.url),a=d}else{if(dt())return(i=document.createElement("script")).addEventListener("load",function(){t(),Wo(i)}),i.type=o,i.src=J(I).createScriptURL(e.url),_a(i,e.url),document.body.appendChild(i),{};(i=document.createElement("script")).type=o,i["async"]=!0,i.src=J(I).createScriptURL(e.url),_a(i,e.url),a=i,t=E.wrap(t,function(e,t){k.removeNode(i),t?n&&e(t):e.apply(this,E.toArray(arguments).slice(1))})}return s.appendChild(a),xa(a,e.url,t),a}catch(c){return{}}var u},xa=function(e,t,n){var i=!1;ge(n)&&(e.onload=function(){!0!==i&&(i=!0,n(null,t))},e.onerror=function(){!0!==i&&(i=!0,n(new 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||Eo("Failed to load "+t+" within 10 seconds")},1e4))},ka=function(e){var t=JSON.parse(e.data),n=e.origin;C.debug(I.app_name+": Message: "+JSON.stringify(t)+" from "+n),za(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},Aa=function(e){Ra(Pa)(Oa(e))},Oa=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};C.debug("Invalid Message: Missing 'type' in data format")}}catch(r){}};function Ra(t){return function(e){if(e&&Sa(e.origin))return t.apply(this,arguments)}}var Ma={disconnect(e){},module:function(e){Ba(e.moduleURL)},debug:function(e){qa(ka)}},Na=function(e,t){Ma[e]=t},La=function(e){delete Ma[e]},Pa=function(e){var t;e&&(t=e.data)&&ge(Ma[t.type])&&Ma[t.type](t,e)},Fa={},$a=function(e){if(Fa[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},Da=function(e){return ge(Fa[e])},Ua=function(e){if(Fa)for(var t in Fa)if(0<=t.indexOf(e))return t;return null},Ga=[],ja=function(){var e;Ga.length<1||(e=Ga.shift(),Da(e))||Ta(e,function(){$a(e),ja()})};var Ba=function(e){!function(e){var t={"/js/lib/ckeditor/ckeditor.js":1};E.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});try{var n=new qn(e);return Sa(n.origin)&&t[n.pathname]}catch(i){C.debug("Invalid module URL: "+e)}}(e)||(Ga.push(e),1<Ga.length)||ja()},za=function(e,t,n){var i,r=E.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=Ea||Wa(),n="*"),t.guid=r,e&&E.isFunction(e.postMessage)&&(i=JSON.stringify(t),e.postMessage(i,n))}catch(o){t=o&&o.message||"";C.info("Failed to postMessage: "+t)}return r},Ha=function(){return window!=window.top},Wa=function(){var e=new RegExp("^"+wt(Yr).replace(/^https?:/,"https?:")),t=f.get("forceParentDesigner");return!Ke()&&t||e.test(location.href)?window.parent:window.top},qa=function(e){var t;return ge(window.addEventListener)&&E.isFunction(window.addEventListener)&&(t=Ra(e),window.addEventListener("message",t,!1)),function(){ge(window.removeEventListener)&&E.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},Va=E.memoize(function(){return f.get("restrictP1Access")}),Ka=[],Ja=[],Za=12e4,Ya=16,Xa=1900,Qa=65536,es=function(e){return!(!e||""===e)},ts=function(){return A.get()},ns={flush:E.noop,flushBy:E.noop,flushEvents:as,flushTrackEvents:as,flushSilos:as,flushTrackEventSilos:as,flushBeacons:as,flushNow:as,flushLater:ss,flushEvery:ds,flushStop:us,beacons:[],silos:[],trackEventSilos:[],lock:Oo,unlock:function(){if(!Ro())return cs(),function(){var e=!Ro();return Ao=!1,e&&m["transmit:unlocked"].trigger(),"Pendo Agent unlocked. Events will be written."}()}},is=[];function rs(e){is.push(e)}function os(e){e=is.indexOf(e);0<=e&&is.splice(e,1)}function as(e,t){try{E.each(is,function(e){e.flush&&e.flush(t)})}catch(n){C.critical("unhandled error while flushing event cache",{error:n})}}function ss(e){return t=E.partial(as,!0),n=e,n=parseInt(n,10)||0,t[n]||(i=Dt(function(){t(),t[n]()},n),t[n]=function(){window.clearTimeout(i),delete t[n]});var t,n,i}function ds(e){var t;if(e=parseInt(e,10)||0,E.isObject(ds.intervals)||(ds.intervals={}),!ds.intervals[e])return t=window.setInterval(as,e),ds.intervals[e]=function(){clearInterval(t),delete ds.intervals[e]}}function us(){var e=E.values(ds.intervals).concat([as]);E.map(e,function(e){E.isFunction(e)&&e()})}function cs(){E.each(is,function(e){e.clear&&e.clear()}),us()}function ls(e){try{return window.TextDecoder?JSON.parse((new TextDecoder).decode((t=e.split(".")[1],t=atob(t),Uint8Array.from(t,e=>e.codePointAt(0))))):JSON.parse(atob(e.split(".")[1]))}catch(n){return null}var t}function ps(e,t){return t=t?t+": ":"",e.jwt||e.signingKeyName?e.jwt&&!e.signingKeyName?(C.debug(t+"The jwt is supplied but missing signingKeyName."),!1):e.signingKeyName&&!e.jwt?(C.debug(t+"The signingKeyName is supplied but missing jwt."),!1):(e=e.jwt,!(!E.isString(e)||!/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/.test(e))||(C.debug(t+"The jwt is invalid."),!1)):(C.debug(t+"Missing jwt and signingKeyName."),!1)}hs=null;var hs,fs={set:function(e){hs=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==hs?hs:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!f.get("enableSignedMetadata")&&(n=ps(e,t),f.get("requireSignedMetadata")&&!n?(C.debug("Pendo will not "+t+"."),!1):n?ls(e.jwt):void C.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}};class gs{constructor(e,t=100){this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}isEmpty(){return this.queue.length<=0}stop(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer}start(){this.stopped=!1}push(...e){this.queue.push(...e),this.next()}next(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)}incrementFailure(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t}pass(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e),this.failures.clear();e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()}fail(e,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,6))))}retryLater(e){this.timer=Dt(()=>{delete this.timer,this.next()},e)}failed(){return 0<this.failures.get(this.queue[0])&&null!=this.timer}send(e,t,n){return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(()=>this.pass(e,n),()=>this.fail(e,n))}drain(e,t=!0){if(this.queue.push(...e),this.failed())return Jt.reject();var n=[];for(const i of this.queue)this.pending.has(i)?this.retryPending&&t&&!this.unloads.has(i)&&(this.incrementFailure(i),n.push(this.send(i,t,!1))):n.push(this.send(i,t,!1));return Jt.all(n)}}const ms="unsentEvents";class vs{constructor(){this.events={}}send(t,n){var i=this.events[t];if(i){let e=i.shift();for(;e;)n.push(e),e=i.shift();delete this.events[t]}}push(e,t){var n=this.events[e]||[];n.push(t),this.events[e]=n}read(e){e.registry.addLocal(ms),this.events=JSON.parse(e.read(ms)||"{}"),e.clear(ms)}write(e){0<E.size(this.events)?e.write(ms,JSON.stringify(this.events),5184e5):e.clear(ms)}}var ys=new vs,bs="_PENDO_UNNAMED_",ws=5;function Ss(e,t,n,i,r,o){var a,s;a=f.get("dropAnonymous"),s=xn(b()),!So||a&&s||(a=t,s=n,t=i,n=r,i=o,s={type:r=e,browser_time:v(),visitor_id:b({generate:!0}),account_id:Gn(),url:A.externalizeURL(s),props:a||{},eventProperties:n},s=sn.addTracerIds(s),"track"===r&&(s.track_event_name=t||bs),m.eventCaptured.trigger(s,i),es((o=s).url)&&function(e){if(f.get("freeNPSData"))return E.contains(Is,e.type);return 1}(o)&&("track"===e?Fs.push(o):Ps.push(function(e,t){try{if(!e.getters["monitoring/shouldFlush"]())return t;var n=e.getters["monitoring/payload"]();e.dispatch("monitoring/flush"),E.isEmpty(n)||(t.ops=n)}catch(i){}return t}(g,o))))}var Is=["load","meta","identify"];function _s(){var r=E.toArray(arguments);return function(e,t){var n=r.concat([t]);!function i(t,e){t<n.length&&n[t](e,function(e){i(t+1,e)})}(0,e)}}let Es=0;function Cs(e,t){e.sequence=Es++,t(e)}function Ts(e){return n=function(e,t){return e.push(t),e},i=e,function(e,t){t(i=n(i,e))};var n,i}function xs(e,t){return oo()?ks("account_id")(e,t):t(e)}function ks(s){return function(e,t){if(!e.length)return t(e);for(var n=E.get(e[0],s),i=!0,r=1;r<e.length;r++)if(n!==E.get(e[r],s)){i=!1;break}if(i)return t(e);var o=e.slice(0,r),a=e.slice(r);t(o),t(a)}}function As(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function Os(e,t,n){t=n[t-1]||E.last(n);return Math.ceil(e/t)}function Rs(e,t){for(var n,i=0,r=(E.isFunction(t.overhead)?t.overhead:E.constant(0))(),o=0;o<e.length;++o){if(Os(n=As(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(Os(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(Os(i+(n=As(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function Ms(){var e=fs.get();return E.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}var Ns,Ls,Ps,Fs;function $s(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=I.squeezeAndCompress(e.slice()),e.JZB.length<=Qa)||1===e.length?t(e):(n=e.length/2,$s(e.slice(0,n),t),void $s(e.slice(n),t))}function Ds(e,t){Ro()&&t(e)}function Us(){return function(e,t){1===e.length&&e.JZB.length>Qa?(C.debug("Couldn't write event"),Eo("Single item is: "+e.JZB.length+". Dropping."),Co(e.JZB)):t(e)}}function Gs(e,t){return Io(t.beacon+".gif",e,E.extend({v:He,ct:v(),jzb:t.JZB},t.params,t.auth))}function js(e,t){return Io(t.beacon+".gif",e,E.extend({v:He,ct:v(),s:t.JZB.length},t.params))}function Bs(i){return function(e,t){e.params=E.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length;var n=fs.get();E.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function zs(e,t){var n=oo(),i=E.first(e),i=E.get(i,"account_id");n&&i&&(e.params=E.extend({},e.params,{acc:it(i)})),t(e)}function Hs(e,t){var n=E.first(e),n=E.get(n,"props.source");n&&(e.params=E.extend({},e.params,{source:n})),t(e)}function Ws(e){return JSON.stringify(E.extend({events:e.JZB},e.auth))}function qs(e){return e.status<200||300<=e.status?y.reject(new Error(`received status code ${e.status}: `+e.statusText)):y.resolve()}function Vs(e,t){return xo(Gs(e,t)).then(qs)}function Ks(e,t){return fetch(js(e,t),{method:"POST",keepalive:!0,body:Ws(t),headers:{"Content-Type":"application/json"}}).then(qs)}function Js(e,t){var n=Ws(t);return ko(js(e,t),n)?y.resolve():y.reject()}function Zs(n){return function(e,t){return t.JZB?t.eventLength<=Xa&&!f.get("sendEventsWithPostOnly")?n.preferFetch&&!t.auth&&xo.supported()?Vs(e,t):t.auth?xr({method:"GET",url:Gs(e,t)}):To(Gs(e,t)):n.allowPost&&t.eventLength<=Qa?xo.supported()?Ks(e,t):ko.supported()?Js(e,t):xr({method:"POST",url:js(e,e=t),data:Ws(e),headers:{"Content-Type":"application/json"}}):y.resolve():y.resolve()}}function Ys(n){return function(e,t){if(t.JZB){if(t.eventLength<=Xa&&!f.get("sendEventsWithPostOnly",!1)){if(!t.auth&&xo.supported())return Vs(e,t);if($e.msie<=11)return xr({method:"GET",url:Gs(e,t),sync:!0})}if(t.eventLength<=Qa&&n.allowPost){if(xo.supported())return Ks(e,t);if(ko.supported())return Js(e,t);if($e.msie<=11)return xr({method:"POST",url:js(e,e=t),data:Ws(e),sync:!0,headers:{"Content-Type":"application/json"}})}}return y.resolve()}}function Xs(e,t){e.length=0;var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);t(i)}function Qs(e){return _s(Ds,xs,$s,(t=e.shorten,t=E.defaults(t||{},{fields:[],siloMaxLength:Qa}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],C.debug("Max length exceeded for an event"),E.each(t.fields,function(e){var t=i[e];t&&2e3<t.length&&(C.debug("shortening "+t+" and retrying"),i[e]=t.substring(0,2e3),delete n.JZB)})),e(n)}),$s,Us(),Bs(e),zs,Hs,Xs);var t}class ed{constructor(e){this.queues=e}isEmpty(){return E.all(this.queues,e=>e.isEmpty())}stop(){E.each(this.queues,e=>e.stop())}push(){const t=E.toArray(arguments);E.each(this.queues,e=>e.push.apply(e,t))}drain(){const t=E.toArray(arguments);return y.all(E.map(this.queues,e=>e.drain.apply(e,t)))}}function td(o,a,s){a=a||Zs(o),s=s||Ys(o);e=o;var e=E.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey),e=E.map(e,(i,r)=>{var e=new gs(function(e,t,n){return n&&(e.params=E.extend({},e.params,{rt:n})),o.localStorageUnload&&t?(0===r&&ys.push(o.beacon,e),y.resolve()):(t?s:a)(i,e)});return e.onTimeout=function(){g.commit("monitoring/incrementCounter",o.beacon+"GifFailures")},e.retryPending=!0,e}),e=new ed(e);return ys.send(o.beacon,e),e}function nd(e,t){var n=f.get("analytics.excludeEvents");0<=E.indexOf(n,e.type)||t(e)}class id{constructor(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=td(e)}pause(e=1e4){var t=E.uniqueId();const n=this["locks"];n[t]=1;var i=()=>{n[t]&&(clearTimeout(r),delete n[t],this.flush())},r=Dt(i,e);return i}push(e){this.packageSilos(e,e=>{this.silos.push(e)})}clear(){this.cache.length=0,this.silos.length=0,this.sendQueue.stop()}flush({unload:e=!1,hidden:t=!1}={}){var{cache:n,silos:i}=this;if((0!==n.length||0!==i.length||!this.sendQueue.isEmpty())&&E.isEmpty(this.locks)){i.push(n.slice()),n.length=0;n=i.slice();i.length=0;const r=[];E.each(n,function(e){this.processSilos(e,function(e){r.push(e)})},this),e||t?this.sendQueue.drain(r,e):this.sendQueue.push(...r)}}}function rd(e){var i,r,t=Qs(e),n=_s((r=e.beacon,function(e,t){var n=f.get("excludeNonGuideAnalytics");"ptm"===r&&n||t(e)}),nd,Cs,Ts(e.cache),(i={overhead:Ms,lower:f.get("sendEventsWithPostOnly")?Qa:Xa,upper:Qa,compressionRatio:[.5*ws,.75*ws,ws]},function(e,t){for(var n=Rs(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=Rs(e,i)}));return new id(E.extend({processSilos:t,packageSilos:n},e))}var od=Wn(function(e){var t,n,i;if((e=e||A.get())&&e!==od.lastUrl)return od.lastUrl=e,t=-1,Va()||Ha()&&(i=Wa(),za(i,{type:"load",url:location.toString()},"*")),C.debug("sending load event for url "+e),t={load_time:t="undefined"!=typeof performance&&E.isFunction(performance.getEntriesByType)&&!E.isEmpty(performance.getEntriesByType("navigation"))?(i=performance.getEntriesByType("navigation")[0]).loadEventStart-i.fetchStart:t},Ha()&&(t.is_frame=!0),"*"!==(n=St())&&(t.allowed_storage_keys=E.keys(n)),Ss("load",t,e),ss(),m.urlChanged.trigger(),!0});function ad(e){return"hidden"===e.visibilityState}od.reset=function(){od.lastUrl=null};const sd="visibilitychange",dd="pagehide",ud="unload";function cd(){this.serializers=E.toArray(arguments)}function ld(e,t){return e.tag=Yn.isElementShadowRoot(t)?"#shadow-root":t.nodeName||"",e}function pd(e){return ge(e)?""+e:""}function hd(e,t){return e.id=pd(t.id),e}function fd(e,t){return e.cls=pd(k.getClass(t)),e}E.extend(cd.prototype,{add(e){this.serializers.push(e)},remove(e){e=E.indexOf(this.serializers,e);0<=e&&this.serializers.splice(e,1)},serialize(n,i){return n?(i=i||n,E.reduce(this.serializers,function(e,t){return t.call(this,e,n,i)},{},this)):{}}});var gd=256,md=64,vd={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"]}};var yd=function(e,t,n){var i;return e&&e.nodeName?"img"==(i=e.nodeName.toLowerCase())&&"src"==t||"a"==i&&"href"==t?(i=e.getAttribute(t),Vr((i=i)&&0===i.indexOf("data:")?(C.debug("Embedded data provided in URI."),i.substring(0,i.indexOf(","))):i+"")):(i=t,e=(t=e).getAttribute?t.getAttribute(i):t[i],(!n||typeof e===n)&&e?E.isString(e)?Ye.call(e).substring(0,gd):e:null):null};function bd(t){var e,n,i;return E.isRegExp(t)&&E.isFunction(t.test)?function(e){return t.test(e)}:E.isArray(t)?(e=E.map(E.filter(t,E.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)):new RegExp("^"+e.value+"$","i")}),function(t){return E.any(e,function(e){return e.test(t)})}):E.isObject(t)&&t.regexp?(n=(n=/\/([a-z]*)$/.exec(t.value))&&n[1]||"",i=new RegExp(t.value.replace(/^\//,"").replace(/\/[a-z]*$/,""),n),function(e){return i.test(e)}):E.constant(!1)}function wd(e,t,n,i){try{var r,o=E.indexBy(t),a=E.filter(E.filter(e,function(e){return n(e.nodeName)||o[e.nodeName]}),function(e){return!i(e.nodeName)});return a.length<=md?E.pluck(a,"nodeName"):(r=E.groupBy(e,function(e){return o[e.nodeName]?"defaults":E.isString(e.value)&&e.value.length>gd?"large":"small"}),E.pluck([].concat(E.sortBy(r.defaults,"nodeName")).concat(E.sortBy(r.small,"nodeName")).concat(E.sortBy(r.large,"nodeName")).slice(0,md),"nodeName"))}catch(s){return C.error("Error collecting DOM Node attributes: "+s),[]}}function Sd(t,n){var e=bd(f.get("htmlAttributes")),i=bd(f.get("htmlAttributeBlacklist")),r=(i("title")||(t.title=yd(n,"title","string")),(t.tag||"").toLowerCase()),r=("input"===r&&(r+='[type="'+n.type+'"]'),t.attrs={},wd(n.attributes,vd[r]&&vd[r].attr,e,i));return E.each(r,function(e){t.attrs[e.toLowerCase()]=yd(n,e)}),t}function Id(e,t){var n;return t.parentNode&&t.parentNode.childNodes&&(n=E.chain(t.parentNode.childNodes),e.myIndex=n.indexOf(t).value(),e.childIndex=n.filter(function(e){return e.nodeType==so}).indexOf(t).value()),e}function _d(i,e){var r;return f.get("siblingSelectors")&&e.previousElementSibling&&(r="_pendo_sibling_",this.remove(_d),e=this.serialize(e.previousElementSibling),this.add(_d),i.attrs=i.attrs||{},E.each(e,function(e,t){var n={cls:"class",txt:"pendo_text"}[t]||t;E.isEmpty(e)||(E.isObject(e)?E.each(e,function(e,t){e&&!E.isEmpty(e)&&(i.attrs[r+n+"_"+t]=e)}):i.attrs[r+n]=e)})),i}var Ed=new cd(ld,hd,fd,Sd,Id,_d),Cd=function(e){return"BODY"===e.nodeName&&e===Ko()||null===e.parentNode&&!Yn.isElementShadowRoot(e)},Td="pendo-ignore",xd="pendo-analytics-ignore",kd=function(e){var t={},n=t,i=e,r=!1;if(!e)return t;do{var o=i,a=Ed.serialize(o,e)}while(r||!st(a.cls,Td)&&!st(a.cls,xd)||(r=!0),n.parentElem=a,n=a,(i=Yn.getParent(o))&&!Cd(o));return r&&(t.parentElem.ignore=!0),t.parentElem},Ad=["","left","right","middle"],t=function(e){return e},e=function(e,t){return e[t]},Od=[["button",function(e){return e.which||e.button},function(){return!0},function(e,t){return Ad[t]}],["altKey",e,t,t],["ctrlKey",e,t,t],["metaKey",e,t,t],["shiftKey",e,t,t]],Rd={click:function(e,t){for(var n=[],i=0;i<Od.length;i++){var r=Od[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}},Md=function(t){try{if(!k.data.get(t,"counted")){k.data.set(t,"counted",!0);var n=Cr(t),i=t.type,e={},r=Rd[i];if(r&&(e=r(t,e)),k.data.get(t,"stopped")&&(e.stopped=!0),t.from&&E.isString(t.from)&&(e.from=t.from),n=(s=n).nodeType===ao?s.parentNode:s.nodeType===lo?null:s.correspondingUseElement||s){var o=kd(n),a=(E.extend(o,e),od());if(a&&A.startPoller(),!o.ignore){let e;"click"===i&&(e=function(e){e=function(e){const n={};return{getEventProperties(){return n},addEventProperty(e,t){E.isString(e)&&!E.isUndefined(t)?n[e]=t:C.error("Failed to add click event property")},target:e}}(e),m.onClickCaptured.trigger(e),e=e.getEventProperties();if(!E.isEmpty(e))return e}(n)),Ss(i,{target:o},undefined,undefined,e,t),m.trigger("appUsage",o,t)}}else C.info("Invalid HTML target",{contexts:["event","dom","processing"]})}}catch(d){C.critical("pendo.io while handling event",{error:d})}var s};var Nd=E.debounce(Md,5e3,!0),Ld=function(e){const t=[];E.contains(e=e||["click","focus","submit","change"],"change")&&(e=E.without(e,"change"),t.push(()=>{Nd.cancel()}),t.push(_r(document,"change",Nd,!0)));var n,i=f.get("interceptElementRemoval")||f.get("syntheticClicks.elementRemoval"),r=f.get("syntheticClicks.targetChanged"),r=(t.push(function(t,e,n,i){var r,o,a=[],s=$e.hasEvent("pointerdown"),d=s?"pointerdown":"mousedown",s=s?"pointerup":"mouseup",u=[],c={cloneEvent:function(e){e=k.event.clone(e);return 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(e){o=!1,e&&r&&i&&Cr(r)!==Cr(e)&&(o=!0,t(r))},click:function(e){r=null,o&&k.data.set(e,"ignore",!0),o=!1,n&&c.unwrap()},intercept:function(e){e=function(e){var t=[];for(;e&&!Cd(e);)t.push(e),e=e.parentNode;return t}(Cr(e));E.each(e,function(e){e=Pd(e,c.remove);a.push(e)})},remove:function(){r&&(t(r),r=null),c.unwrap()},unwrap:function(){0<a.length&&(E.each(a,function(e){e()}),a=[])},teardown:function mv(){c.unwrap(),E.each(u,function(e){e()})}};e&&(u.push(_r(document,d,c.down,!0)),u.push(_r(document,s,c.up,!0)),u.push(_r(document,"click",c.click,!0)));return c}(k.event.trigger,$e.addEventListener,i,r).teardown),t.push((i=e,n=E.map(i,function(e){return l(document,e,Md,!0)}),()=>{E.each(n,function(e){e()})})),t.push(function(e,t){if(t){const n=[];return n.push(_r(document,sd,()=>{ad(document)&&e(!0,!1)})),n.push(_r(window,dd,E.partial(e,!1,!0))),()=>E.each(n,function(e){e()})}return _r(window,ud,E.partial(e,!0,!0))}(function(e,t){t&&m.appUnloaded.trigger(),e&&m.appHidden.trigger()},f.get("preventUnloadListener"))),f.get("interceptStopPropagation",!0)),i=f.get("interceptPreventDefault",!0);return r&&t.push(Fd(window.Event,e)),i&&t.push($d(window.Event,["touchend"])),()=>{E.each(t,function(e){e()})}};function Pd(n,i){var e=["remove","removeChild"];try{if(!n)return E.noop;E.each(e,function(e){var t=n[e];if(!t)return E.noop;n[e]=E.wrap(t,function(e){return i&&i(),e.apply(this,E.toArray(arguments).slice(1))}),n[e]._pendoUnwrap=function(){if(!n)return E.noop;n[e]=t,delete n[e]._pendoUnwrap}})}catch(t){C.critical("ERROR in interceptRemove",{error:t})}return function(){E.each(e,function(e){if(!n[e])return E.noop;e=n[e]._pendoUnwrap;E.isFunction(e)&&e()})}}function Fd(n,e){var t=["stopPropagation","stopImmediatePropagation"];try{if(!n||!n.prototype)return E.noop;var i=E.indexBy(e);E.each(t,function(e){var t=n.prototype[e];t&&(n.prototype[e]=E.wrap(t,function(e){var t=e.apply(this,arguments);return i[this.type]&&(k.data.set(this,"stopped",!0),k.event.trigger(this)),t}),n.prototype[e]._pendoUnwrap=function(){n.prototype[e]=t,delete n.prototype[e]._pendoUnwrap})})}catch(r){C.critical("ERROR in interceptStopPropagation",{error:r})}return function(){E.each(t,function(e){e=n.prototype[e]._pendoUnwrap;E.isFunction(e)&&e()})}}function $d(t,e){try{if(!t||!t.prototype)return E.noop;var i=E.indexBy(e),n=t.prototype.preventDefault;if(!n)return E.noop;t.prototype.preventDefault=E.wrap(n,function(e){var t,n=e.apply(this,arguments);return i[this.type]&&((t=k.event.clone(this)).type="click",t.from=this.type,t.bubbles=!0,t.eventPhase=Sr,k.event.trigger(t)),n}),t.prototype.preventDefault._pendoUnwrap=function(){t.prototype.preventDefault=n,delete t.prototype.preventDefault._pendoUnwrap}}catch(r){C.critical("ERROR in interceptPreventDefault",{error:r})}return function(){var e=t.prototype.preventDefault._pendoUnwrap;E.isFunction(e)&&e()}}function l(e,t,n,i){return e&&t&&n?(i&&!$e.addEventListener&&(i=!1),k.event.add(e,{type:t,handler:n,capture:i})):E.noop}function Dd(e,t,n,i){e&&t&&n&&(i&&!$e.addEventListener&&(i=!1),k.event.remove(e,t,n,i))}var Ud=function(e){k.data.set(e,"pendoStopped",!0),e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1},Gd=function(e,t){return"complete"!==(t=t||window).document.readyState?_r(t,"load",e):(e(),E.noop)},R=[],jd=[],Bd={};let zd={};function Hd(){return R}function Wd(){return qd(R)}function qd(e){return E.filter(e,function(e){return!e.isFrameProxy})}function Vd(e){E.isArray(e)?(R=e,m.guideListChanged.trigger({guideIds:E.pluck(e,"id")})):C.info("bad guide array input to `setActiveGuides`")}var Kd=function(){let n=[];return{addGuide:e=>{var t;E.isEmpty(e)||(n=n.concat(e),E.each(n,e=>e.hide&&e.hide()),e=R,(t=E.difference(e,n)).length<e.length&&(Vd(t),g.dispatch("frames/changeGuideList",t)))}}}();function Jd(t,n){return E.find(Xd(),function(e){return E.get(e,t)===n})||null}function M(e){return Jd("id",e)}function Zd(e){return Jd("name",e)}function Yd(e,t){return e&&e.id?(e=M(e.id)).findStepById(t):null}function Xd(){var e=E.values(zd);return e.length?R.concat(E.flatten(e)):R}var Qd="_pendo-guide-tt_",eu="_pendo-guide-mobile-tt_",tu=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},nu=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)},iu=function(e){return!!E.get(e,"attributes.form")};function ru(){return"undefined"!=typeof selmo&&selmo.isPreviewing}function ou(){return!!(ru()&&jo().width<=320)||$e.isMobileUserAgent()}function au(){var e=au.attachPoint;if(null==e){var t=f.get("guides.attachPoint");if(E.isString(t)){try{e=yr(t)[0]}catch(n){C.info('Error finding guide attach point "'+t+'"')}e=e||document.createElement("div")}else e=!!E.isFunction(t)&&t();au.attachPoint=e}return e||Ko()}var su=function(e){var t=Bd[e.guideId];if(t){t=t.element();if(Zo(t)&&t.id==="_pendo-badge_"+e.id)return t}},du=function(e){var t;return e?(t=e.getGuide(),t="building-block"===E.get(t,"attributes.type")||!nu(t),!e.overrideElement&&t&&(e.overrideElement=su(e)),e.targetElement=uu(e),e.overrideElement||e.targetElement):(C.info("Can't get element for null step"),null)},uu=function(e){e=e.elementPathRule||null,e=e?yr(e):[Ko()];return 0===e.length?null:E.first(e)};function cu(e){var t=E.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function lu(e,t,n){var i,r,o,e=Ho(e),t=Ho(t),a=(e=e,a=t,i=Math.min(e.top,a.top),r=Math.min(e.left,a.left),o=Math.max(e.top+e.height,a.top+a.height),e=Math.max(e.left+e.width,a.left+a.width),{height:Math.abs(o-i),width:Math.abs(e-r),top:i,left:r});!1!==Bo(a)||t.fixed||(o=function(e,t,n,i){var r={x:e.left+e.width-t.width,y:0};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),E.contains([na.X,na.BOTH],i)&&(r.x=0);E.contains([na.Y,na.BOTH],i)&&(r.y=0);return r}(a,jo(),n,ta(Ko(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}function pu(e,t,n,i,r){var o,a=E.toArray(arguments).slice(1),s=e.apply(this,a);return n||oa(o=au())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function hu(){return g.getters["frames/isLeader"]()}function fu(e){return g.dispatch("frames/updateFrameVisibility",{visibility:e})}gu=pn.call({}),mu={validateGuide:1,validateLauncher:1,validateGlobalScript:1},vu={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1},E.each(["ready","onClickCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","validateGuide","validateLauncher","validateGlobalScript"],function(t){vu[t]&&m[t].on(function(e){return yu[t].apply(yu[t],e.data)}),gu[t]=function(e){return E.isFunction(e)?gu.on(t,e):gu[mu[t]?"triggerAsync":"trigger"].apply(gu,[t].concat(E.toArray(arguments)))}});var gu,mu,vu,yu=gu;var bu={post:function(e,t,n,i){return n.ajax.postJSON(e.replace(/\/guides\.js\//,"/guides.json/"),t).then(function(e){n.guidesPayload(e.data),i()})},load(e,t,n){return t.ajax.get(e).then(function(e){t.guidesPayload(e.data),n()})},endpoint(){return"guide.json"},usesXhr(){return!0}};function wu(e){e=Ia(e);if(e){e=e.filename;if(e)return 54<e.length?e.substring(28,55):e}}Iu=Tu={failed:{},verified:{}},Eu=Co,Cu=function(e){try{var t=[];return!bu.usesXhr()&&e.domJsonpUrl?t.push(Au(e,"domJsonpUrl")):bu.usesXhr()&&e.domUrl&&t.push(ku(e,"domUrl")),e.contentUrlJs?t.push(Au(e,"contentUrlJs")):e.contentUrl&&t.push(Au(e,"contentUrl")),y.all(t)}catch(n){throw m.contentVerificationFail.trigger(e,n),n}},_u=function(e){return Cu(e).then(E.noop,function(e){return/verify/.test(e)&&Eu(e),y.reject(e)})},Su=function(t){return Iu.failed[t.id]?y.reject():Iu.verified[t.id]?y.resolve():_u(t).then(function(){Iu.verified[t.id]=!0},function(e){return Iu.failed[t.id]=!0,y.reject(e)})};var Su,Iu,_u,Eu,Cu,Tu,xu={verify:function(e){return f.get("guideValidation")?Su(e):y.resolve()},reset:function(){Tu.failed={},Tu.verified={}}};function ku(e,t){var n,i=e[t];return E.isString(i)?(n=(e=e)[{domUrl:"domHash",domJsonpUrl:"domJsonpHash",contentUrl:"contentHash",contentUrlJs:"contentJsHash"}[t=t]]||wu(e[t]),xr.get(i).then(function(e){var t;if("object"==typeof(e=e.data)&&(e=JSON.stringify(e)),(t=q.create()).update(e),c.uint8ToBase64(t.digest())!==n)return y.reject('Unable to verify content at "'+i+'"')})):y.reject('unable to parse "'+i+'"')}function Au(e,t){var n=e[t];return $e.sri&&/[?&]sha(256|384|512)=/.test(n)?y.resolve():ku(e,t)}Ou="allow",Ru="deny",Mu="pending",Lu=function(){return 0<E.size(yu._handlers.validateGuide)},Pu=function(e,n){var i=[];return E.each(e,function(e,t){n&&(t=n+"."+t),E.isObject(e)?E.each(Pu(e,t),function(e){i.push(e)}):i.push([t,e])}),i};var Ou,Ru,Mu,Nu,Lu,Pu,Fu={state:Nu={},Step:function(e){var n=this;function i(e){return E.filter([["content",wu(e.contentUrl)],["contentCss",wu(e.contentUrlCss)],["contentJs",wu(e.contentUrlJs)],["dom",wu(e.domUrl)],["domJsonp",wu(e.domJsonpUrl)]],function(e){return e[1]})}return this.signature=function(){var e,t;return this.domUrl?this.guide.authoredLanguage===this.language?i(this):i({contentUrl:n.contentUrl,contentUrlCss:n.contentUrlCss,contentUrlJs:n.contentUrlJs,domUrl:n.domUrl,domJsonpUrl:n.domJsonpUrl}):(e=[["content",this.content]],(t=this.attributes&&this.attributes.variables)&&(t=Pu(t)).length&&(t=E.sortBy(t,function(e){return e[0]}),e.push(["variables",t])),e)},n},Guide:function(){return this.signature=function(){return E.map(this.steps,function(e){return e.signature()})},this},Launcher:function(){var n=this,i=!1,r=function(){return 0<E.size(yu._handlers.validateLauncher)&&n.data.template};return n.before("update",function(){if(r()&&i)return!1}),n.before("render",function(){var e,t;if(r())return!i&&(t="launcher-"+rt(n.signature()),(t=Nu[t])!==Ru)&&(t!==Ou?(i=!0,t=JSON.stringify(n.signature()),e="launcher-"+rt(t),yu.validateLauncher(t).then(function(){Nu[e]=Ou},function(){Nu[e]=Ru}).then(function(){i=!1,n.render(),n.update(R)},function(){i=!1}),!1):void 0)}),n.signature=function(){var e=[],t=Pu(this.data);return t.length&&(t=E.chain(t).filter(function(e){return!/^contentUrl/.test(e[0])}).sortBy(function(e){return e[0]}).value(),e.push(["variables",t])),e},n},validate:function(e){if(!Lu())return y.resolve();try{return E.get(e,"attributes.resourceCenter.isTopLevel",!1)?(t=e,n=P.findResourceCenterModules(t,R),t=[t].concat(n),y.all(E.map(t,$u))):$u(e)}catch(i){throw m.contentValidationFail.trigger(e,i),i}var t,n},valid:function(e){return!Lu()||!!(e=Nu[e.guideId])&&e.status===Ou},invalid:function(e){return!!Lu()&&!!(e=Nu[e.guideId])&&e.status===Ru},reset(){Nu={}}};function $u(i){var r=Nu[i.id];return r||(r={},Nu[i.id]=r),r.contentPromise||(r.contentPromise=i.fetchContent()),r.contentPromise.then(function(){var e=JSON.stringify(i.signature()),t=i.id+"-"+rt(e),n=(r[t]||(r[t]={status:Mu},r.status=Mu),r[t].promise);return n||(n=yu.validateGuide(e,i).then(function(){r[t].status=Ou,r.status=Ou},function(e){return r[t].status=Ru,r.status=Ru,y.reject(e)}),r[t].promise=n),n})}function Du(e,t){var n=E.toArray(arguments).slice(2);return E.reduce(e,function(e,t){return t.apply(e,n)},t)}function Uu(e){return E.isFunction(e.before)?e:Du(Uu.behaviors,e)}function Gu(e,t){return Du(Gu.behaviors,e,t)}function ju(e){var t,n,i=f.getLocalConfig("contentHost");return i&&e?(t=new RegExp("(https:)?\\/\\/"+((t=Ge)===ve?"pendo-static":Se(t))+"-\\d+\\.storage\\.googleapis\\.com","g"),n=new RegExp("(https:)?\\/\\/"+Se(Ge)+"\\.storage\\.googleapis\\.com","g"),e.replace(t,i).replace(n,i).replace(new RegExp("(https:)?\\/\\/"+wt(Be),"g"),i)):e}function Bu(e){return f.getLocalConfig("contentHost")?JSON.parse(ju(JSON.stringify(e))):e}Uu.behaviors=[],Gu.behaviors=[];var zu=function(){var u={},c=E.compose(function(e){var t=function(){var e=wt(f.getHostedConfig("contentHost"));if(e)return e+"*"}();return t&&!new RegExp(t).test(e)&&C.debug("Failed to verify URL: "+e+" vs "+t),e},ju);const d=[function(e,t,n){return e.replace(`<% if (typeof guide !== 'undefined') { %>
|
|
4
|
+
function loadAgent(d){u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");var u,l={uint8ToBase64:function(e){var t,n,i,r=e.length%3,o="";for(t=0,i=e.length-r;t<i;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],o+=function(e){return u[e>>18&63]+u[e>>12&63]+u[e>>6&63]+u[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=u[n>>2])+u[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=u[n>>10])+u[n>>4&63])+u[n<<2&63]}return o}},Gt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var G,o,B,z,H,j,W,e={exports:{}};function q(e){e?(j[0]=j[16]=j[1]=j[2]=j[3]=j[4]=j[5]=j[6]=j[7]=j[8]=j[9]=j[10]=j[11]=j[12]=j[13]=j[14]=j[15]=0,this.blocks=j):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}n=e,G="object"==typeof window?window:{},t=!G.JS_SHA1_NO_COMMON_JS&&n.exports,o="0123456789abcdef".split(""),B=[-2147483648,8388608,32768,128],z=[24,16,8,0],H=["hex","array","digest","arrayBuffer"],j=[],W=function(t){return function(e){return new q(!0).update(e)[t]()}},q.prototype.update=function(e){if(!this.finalized){for(var t,n,i="string"!=typeof e,r=0,o=(e=i&&e.constructor===G.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]<<z[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<z[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<z[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<z[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<z[3&n++],a[n>>2]|=(128|t>>12&63)<<z[3&n++]),a[n>>2]|=(128|t>>6&63)<<z[3&n++]),a[n>>2]|=(128|63&t)<<z[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 4294967295<this.bytes&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},q.prototype.finalize=function(){var e,t;this.finalized||(this.finalized=!0,e=this.blocks,t=this.lastByteIndex,e[16]=this.block,e[t>>2]|=B[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())},q.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+1518500249+a[s]<<0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|~t&i)+r+1518500249+a[s+1]<<0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|~o&n)+i+1518500249+a[s+2]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|~r&t)+n+1518500249+a[s+3]<<0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|~i&o)+t+1518500249+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+1859775393+a[s]<<0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r+1859775393+a[s+1]<<0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i+1859775393+a[s+2]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n+1859775393+a[s+3]<<0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t+1859775393+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-1894007588+a[s]<<0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|t&i|n&i)+r-1894007588+a[s+1]<<0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|o&n|t&n)+i-1894007588+a[s+2]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|r&t|o&t)+n-1894007588+a[s+3]<<0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|i&o|r&o)+t-1894007588+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-899497514+a[s]<<0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r-899497514+a[s+1]<<0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i-899497514+a[s+2]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n-899497514+a[s+3]<<0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t-899497514+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},q.prototype.toString=q.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]},q.prototype.array=q.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]},q.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},Fe=function(){var t=W("hex");t.create=function(){return new q},t.update=function(e){return t.create().update(e)};for(var e=0;e<H.length;++e){var n=H[e];t[n]=W(n)}return t}(),t?n.exports=Fe:G.sha1=Fe;var J=p(e.exports);let V;const K={createScriptURL:e=>e,createHTML:e=>e};function $(e){return V||(V=e.trustedTypesPolicy||(window.trustedTypes&&"function"==typeof window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("pendo",K):K),e.trustedTypesPolicy=V),V}var I,Z="stagingServerHashes",Y={};function X(e){return e.loadAsModule}function Q(e){return"staging"===e.environmentName}function ee(e){return"extension"===e.installType}function te(t=[],n){var i=/^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;for(let e=0;e<t.length;e++){var r=t[e];if(i.test(r.src)||r.id==="pendo-"+n)return r}}function ne(e,t,n){e=function(e=[]){if(e=te(e))return e.src.replace(/\.js$/,"-staging.js")}(document.getElementsByTagName("script"))||e.stagingAgentUrl;return n&&(n="unminified.js",t&&(n="staging-"+n),e=e&&e.replace(/staging\.js$/,n)),e}function ie(e,t){if(Q(e=e||Y))return!0;if(t=t||window.location,(o=e)&&o.stagingAgentUrl&&o[Z]){o=t.host;for(var n=l.uint8ToBase64(J.create().update(o).digest()),i=0,r=e[Z].length;i<r;++i)if(e[Z][i]===n)return!0}var o;if((o=e)&&o.stagingAgentUrl&&o.stagingServers)for(var a=0,s=e.stagingServers.length;a<s;++a){var d=e.stagingServers[a];if((d="string"==typeof d?new RegExp("^"+d+"$"):d)instanceof RegExp&&d.test(t.host))return!0}return!1}var re=["initialize","identify","updateOptions","pageLoad","track","clearSession"];function oe(e,t,n){(e._q=e._q||[])["initialize"===t?"unshift":"push"]([].concat.apply([t],n))}function ae(e){if(!e._q)for(var t=re,n=0,i=t.length;n<i;++n)!function(e,t){t[e]=t[e]||function(){oe(t,e,arguments)}}(t[n],e)}function se(e,t,n){if(!ee(i=e)&&!Q(i)&&ie(i)){i=ne(e,!0,n);if(i)return ae(t),ue(i,t),!0}var i;return!1}function de(e,t,n){if(r=n,!ee(i=e)&&!i.unminified&&r){i=ne(e,!1,n);if(i)return ae(t),ue(i,t),!0}var i,r;return!1}function ue(e,t){var n=document.createElement("script"),t=(n["async"]=!0,n.src=$(t).createScriptURL(e),document.getElementsByTagName("script")[0]);t&&t.parentNode?t.parentNode.insertBefore(n,t):(document.head||document.body).appendChild(n)}function le(e){Y=e}function ce(){return void 0===d?{}:d}function pe(e){return Y[e]}he(window.setTimeout,window);function he(e,t){return"function"==typeof e.bind?e.bind(t):e}var fe,Ut=function(e){var t="setTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return he(e[t],e)}(window),C=p(function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof Gt&&Gt.global===Gt&&Gt||Function("return this")()||{},i=Array.prototype,P=Object.prototype,D="undefined"!=typeof Symbol?Symbol.prototype:null,U=i.push,d=i.slice,c=P.toString,G=P.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),B=Array.isArray,z=Object.keys,H=Object.create,j=t&&ArrayBuffer.isView,W=isNaN,q=isFinite,J=!{toString:null}.propertyIsEnumerable("toString"),V=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],K=Math.pow(2,53)-1;function l(r,o){return o=null==o?r.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),n=0;n<e;n++)t[n]=arguments[n+o];switch(o){case 0:return r.call(this,t);case 1:return r.call(this,arguments[0],t);case 2:return r.call(this,arguments[0],arguments[1],t)}for(var i=Array(o+1),n=0;n<o;n++)i[n]=arguments[n];return i[o]=t,r.apply(this,i)}}function o(e){var t=typeof e;return"function"==t||"object"==t&&!!e}function $(e){return void 0===e}function Z(e){return!0===e||!1===e||"[object Boolean]"===c.call(e)}function r(e){var t="[object "+e+"]";return function(e){return c.call(e)===t}}var Y=r("String"),X=r("Number"),Q=r("Date"),ee=r("RegExp"),te=r("Error"),ne=r("Symbol"),ie=r("ArrayBuffer"),a=r("Function"),e=e.document&&e.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof e?function(e){return"function"==typeof e||!1}:a,e=r("Object"),re=n&&e(new DataView(new ArrayBuffer(8))),a="undefined"!=typeof Map&&e(new Map),n=r("DataView");var h=re?function(e){return null!=e&&p(e.getInt8)&&ie(e.buffer)}:n,f=B||r("Array");function g(e,t){return null!=e&&G.call(e,t)}var oe=r("Arguments"),ae=(!function(){oe(arguments)||(oe=function(e){return g(e,"callee")})}(),oe);function se(e){return X(e)&&W(e)}function de(e){return function(){return e}}function ue(t){return function(e){e=t(e);return"number"==typeof e&&0<=e&&e<=K}}function le(t){return function(e){return null==e?void 0:e[t]}}var m=le("byteLength"),ce=ue(m),pe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var he=t?function(e){return j?j(e)&&!h(e):ce(e)&&pe.test(c.call(e))}:de(!1),v=le("length");function fe(e,t){t=function(t){for(var n={},e=t.length,i=0;i<e;++i)n[t[i]]=!0;return{contains:function(e){return!0===n[e]},push:function(e){return n[e]=!0,t.push(e)}}}(t);var n=V.length,i=e.constructor,r=p(i)&&i.prototype||P,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=V[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if(z)return z(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return J&&fe(e,n),n}function ge(e,t){var n=y(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 b(e){return e instanceof b?e:this instanceof b?void(this._wrapped=e):new b(e)}function me(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,m(e))}b.VERSION="1.13.6",b.prototype.valueOf=b.prototype.toJSON=b.prototype.value=function(){return this._wrapped},b.prototype.toString=function(){return String(this._wrapped)};var ve="[object DataView]";function ye(e,t,n,i){var r;return e===t?0!==e||1/e==1/t:null!=e&&null!=t&&(e!=e?t!=t:("function"==(r=typeof e)||"object"==r||"object"==typeof t)&&function l(e,t,n,i){e instanceof b&&(e=e._wrapped);t instanceof b&&(t=t._wrapped);var r=c.call(e);if(r!==c.call(t))return!1;if(re&&"[object Object]"==r&&h(e)){if(!h(t))return!1;r=ve}switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return D.valueOf.call(e)===D.valueOf.call(t);case"[object ArrayBuffer]":case ve:return l(me(e),me(t),n,i)}r="[object Array]"===r;if(!r&&he(e)){var o=m(e);if(o!==m(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;r=!0}if(!r){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,a=t.constructor;if(o!==a&&!(p(o)&&o instanceof o&&p(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];i=i||[];var s=n.length;for(;s--;)if(n[s]===e)return i[s]===t;n.push(e);i.push(t);if(r){if((s=e.length)!==t.length)return!1;for(;s--;)if(!ye(e[s],t[s],n,i))return!1}else{var d,u=y(e);if(s=u.length,y(t).length!==s)return!1;for(;s--;)if(d=u[s],!g(t,d)||!ye(e[d],t[d],n,i))return!1}n.pop();i.pop();return!0}(e,t,n,i))}function u(e){if(!o(e))return[];var t,n=[];for(t in e)n.push(t);return J&&fe(e,n),n}function be(i){var r=v(i);return function(e){if(null==e)return!1;var t=u(e);if(v(t))return!1;for(var n=0;n<r;n++)if(!p(e[i[n]]))return!1;return i!==Se||!p(e[we])}}var we="forEach",e=["clear","delete"],n=["get","has","set"],B=e.concat(we,n),Se=e.concat(n),t=["add"].concat(e,we,"has"),n=a?be(B):r("Map"),e=a?be(Se):r("WeakMap"),B=a?be(t):r("Set"),a=r("WeakSet");function w(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function Ie(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Ee(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function Ce(d,u){return function(e){var t=arguments.length;if(u&&(e=Object(e)),!(t<2||null==e))for(var n=1;n<t;n++)for(var i=arguments[n],r=d(i),o=r.length,a=0;a<o;a++){var s=r[a];u&&void 0!==e[s]||(e[s]=i[s])}return e}}var xe=Ce(u),s=Ce(y),_e=Ce(u,!0);function Te(e){var t;return o(e)?H?H(e):((t=function(){}).prototype=e,e=new t,t.prototype=null,e):{}}function ke(e){return f(e)?e:[e]}function S(e){return b.toPath(e)}function Re(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 Ae(e,t,n){e=Re(e,S(t));return $(e)?n:e}function Oe(e){return e}function I(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=S(t),function(e){return Re(e,t)}}function E(r,o,e){if(void 0===o)return r;switch(null==e?3:e){case 1:return function(e){return r.call(o,e)};case 3:return function(e,t,n){return r.call(o,e,t,n)};case 4:return function(e,t,n,i){return r.call(o,e,t,n,i)}}return function(){return r.apply(o,arguments)}}function Me(e,t,n){return null==e?Oe:p(e)?E(e,t,n):(o(e)&&!f(e)?I:Ne)(e)}function Le(e,t){return Me(e,t,Infinity)}function C(e,t,n){return b.iteratee!==Le?b.iteratee(e,t):Me(e,t,n)}function Fe(){}function Pe(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}b.toPath=ke,b.iteratee=Le;var x=Date.now||function(){return(new Date).getTime()};function De(t){var n=function(e){return t[e]},e="(?:"+y(t).join("|")+")",i=RegExp(e),r=RegExp(e,"g");return function(e){return i.test(e=null==e?"":""+e)?e.replace(r,n):e}}var t={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Ue=De(t),t=De(Ie(t)),Ge=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Be=/(.)^/,ze={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},He=/\\|'|\r|\n|\u2028|\u2029/g;function je(e){return"\\"+ze[e]}var We=/^\s*(\w|\$)+\s*$/;var qe=0;function Je(e,t,n,i,r){return i instanceof t?(i=Te(e.prototype),o(t=e.apply(i,r))?t:i):e.apply(n,r)}var _=l(function(r,o){var a=_.placeholder,s=function(){for(var e=0,t=o.length,n=Array(t),i=0;i<t;i++)n[i]=o[i]===a?arguments[e++]:o[i];for(;e<arguments.length;)n.push(arguments[e++]);return Je(r,s,this,this,n)};return s}),Ve=(_.placeholder=b,l(function(t,n,i){var r;if(p(t))return r=l(function(e){return Je(t,r,n,this,i.concat(e))});throw new TypeError("Bind must be called on a function")})),T=ue(v);function k(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=Infinity;for(var r=i.length,o=0,a=v(e);o<a;o++){var s=e[o];if(T(s)&&(f(s)||ae(s)))if(1<t)k(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 Ke=l(function(e,t){var n=(t=k(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Ve(e[i],e)}return e});var $e=l(function(e,t,n){return Ut(function(){return e.apply(null,n)},t)}),Ze=_($e,b,1);function Ye(e){return function(){return!e.apply(this,arguments)}}function Xe(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=_(Xe,2);function et(e,t,n){t=C(t,n);for(var i,r=y(e),o=0,a=r.length;o<a;o++)if(t(e[i=r[o]],i,e))return i}function tt(o){return function(e,t,n){t=C(t,n);for(var i=v(e),r=0<o?0:i-1;0<=r&&r<i;r+=o)if(t(e[r],r,e))return r;return-1}}var nt=tt(1),it=tt(-1);function rt(e,t,n,i){for(var r=(n=C(n,i,1))(t),o=0,a=v(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<r?o=s+1:a=s}return o}function ot(o,a,s){return function(e,t,n){var i=0,r=v(e);if("number"==typeof n)0<o?i=0<=n?n:Math.max(n+r,i):r=0<=n?Math.min(n+1,r):n+r+1;else if(s&&n&&r)return e[n=s(e,t)]===t?n:-1;if(t!=t)return 0<=(n=a(d.call(e,i,r),se))?n+i:-1;for(n=0<o?i:r-1;0<=n&&n<r;n+=o)if(e[n]===t)return n;return-1}}var at=ot(1,nt,rt),st=ot(-1,it);function dt(e,t,n){t=(T(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function R(e,t,n){if(t=E(t,n),T(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else for(var i=y(e),r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e);return e}function A(e,t,n){t=C(t,n);for(var i=!T(e)&&y(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 ut(p){return function(e,t,n,i){var r=3<=arguments.length,o=e,a=E(t,i,4),s=n,d=!T(o)&&y(o),u=(d||o).length,l=0<p?0:u-1;for(r||(s=o[d?d[l]:l],l+=p);0<=l&&l<u;l+=p){var c=d?d[l]:l;s=a(s,o[c],c,o)}return s}}var lt=ut(1),ct=ut(-1);function O(e,i,t){var r=[];return i=C(i,t),R(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=C(t,n);for(var i=!T(e)&&y(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 ht(e,t,n){t=C(t,n);for(var i=!T(e)&&y(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 N(e,t,n,i){return T(e)||(e=w(e)),0<=at(e,t,n="number"==typeof n&&!i?n:0)}var ft=l(function(e,n,i){var r,o;return p(n)?o=n:(n=S(n),r=n.slice(0,-1),n=n[n.length-1]),A(e,function(e){var t=o;if(!t){if(null==(e=r&&r.length?Re(e,r):e))return;t=e[n]}return null==t?t:t.apply(e,i)})});function gt(e,t){return A(e,Ne(t))}function mt(e,i,t){var n,r,o=-Infinity,a=-Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=T(e)?e:w(e)).length;s<d;s++)null!=(n=e[s])&&o<n&&(o=n);else i=C(i,t),R(e,function(e,t,n){r=i(e,t,n),(a<r||r===-Infinity&&o===-Infinity)&&(o=e,a=r)});return o}var vt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function yt(e){return e?f(e)?d.call(e):Y(e)?e.match(vt):T(e)?A(e,Oe):w(e):[]}function bt(e,t,n){if(null==t||n)return(e=T(e)?e:w(e))[Pe(e.length-1)];for(var i=yt(e),n=v(i),r=(t=Math.max(Math.min(t,n),0),n-1),o=0;o<t;o++){var a=Pe(o,r),s=i[o];i[o]=i[a],i[a]=s}return i.slice(0,t)}function M(o,t){return function(n,i,e){var r=t?[[],[]]:{};return i=C(i,e),R(n,function(e,t){t=i(e,t,n);o(r,e,t)}),r}}var wt=M(function(e,t,n){g(e,n)?e[n].push(t):e[n]=[t]}),St=M(function(e,t,n){e[n]=t}),It=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),Et=M(function(e,t,n){e[n?0:1].push(t)},!0);function Ct(e,t,n){return t in n}var xt=l(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=E(i,t[1])),t=u(e)):(i=Ct,t=k(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}),_t=l(function(e,n){var t,i=n[0];return p(i)?(i=Ye(i),1<n.length&&(t=n[1])):(n=A(k(n,!1,!1),String),i=function(e,t){return!N(n,t)}),xt(e,i,t)});function Tt(e,t,n){return d.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function kt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Tt(e,e.length-t)}function L(e,t,n){return d.call(e,null==t||n?1:t)}var Rt=l(function(e,t){return t=k(t,!0,!0),O(e,function(e){return!N(t,e)})}),At=l(function(e,t){return Rt(e,t)});function Ot(e,t,n,i){Z(t)||(i=n,n=t,t=!1),null!=n&&(n=C(n,i));for(var r=[],o=[],a=0,s=v(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?N(o,u)||(o.push(u),r.push(d)):N(r,d)||r.push(d)}return r}var Nt=l(function(e){return Ot(k(e,!0,!0))});function Mt(e){for(var t=e&&mt(e,v).length||0,n=Array(t),i=0;i<t;i++)n[i]=gt(e,i);return n}var Lt=l(Mt);function Ft(e,t){return e._chain?b(t).chain():t}function Pt(n){return R(Ee(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return U.apply(e,arguments),Ft(this,t.apply(b,e))}}),b}R(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=i[t];b.prototype[t]=function(){var e=this._wrapped;return null!=e&&(n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0]),Ft(this,e)}}),R(["concat","join","slice"],function(e){var t=i[e];b.prototype[e]=function(){var e=this._wrapped;return Ft(this,e=null!=e?t.apply(e,arguments):e)}});var F=Pt({__proto__:null,VERSION:"1.13.6",restArguments:l,isObject:o,isNull:function(e){return null===e},isUndefined:$,isBoolean:Z,isElement:function(e){return!(!e||1!==e.nodeType)},isString:Y,isNumber:X,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&q(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||Y(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:B,isWeakSet:a,keys:y,allKeys:u,values:w,pairs:function(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i},invert:Ie,functions:Ee,methods:Ee,extend:xe,extendOwn:s,assign:s,defaults:_e,create:function(e,t){return e=Te(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():xe({},e):e},tap:function(e,t){return t(e),e},get:Ae,has:function(e,t){for(var n=(t=S(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=C(t,n);for(var i=y(e),r=i.length,o={},a=0;a<r;a++){var s=i[a];o[s]=t(e[s],s,e)}return o},identity:Oe,constant:de,noop:Fe,toPath:ke,property:Ne,propertyOf:function(t){return null==t?Fe:function(e){return Ae(t,e)}},matcher:I,matches:I,times:function(e,t,n){var i=Array(Math.max(0,e));t=E(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:Pe,now:x,escape:Ue,unescape:t,templateSettings:Ge,template:function(o,e,t){e=_e({},e=!e&&t?t:e,b.templateSettings);var t=RegExp([(e.escape||Be).source,(e.interpolate||Be).source,(e.evaluate||Be).source].join("|")+"|$","g"),a=0,s="__p+='";if(o.replace(t,function(e,t,n,i,r){return s+=o.slice(a,r).replace(He,je),a=r+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":i&&(s+="';\n"+i+"\n__p+='"),e}),s+="';\n",t=e.variable){if(!We.test(t))throw new Error("variable is not a bare identifier: "+t)}else s="with(obj||{}){\n"+s+"}\n",t="obj";s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{throw new Error("Function constructor not supported")}catch(n){throw n.source=s,n}return(e=function(e){return(void 0).call(this,e,b)}).source="function("+t+"){\n"+s+"}",e},result:function(e,t,n){var i=(t=S(t)).length;if(!i)return p(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=p(o)?o.call(e):o}return e},uniqueId:function(e){var t=++qe+"";return e?e+t:t},chain:function(e){return(e=b(e))._chain=!0,e},iteratee:Le,partial:_,bind:Ve,bindAll:Ke,memoize:function(i,r){var o=function(e){var t=o.cache,n=""+(r?r.apply(this,arguments):e);return g(t,n)||(t[n]=i.apply(this,arguments)),t[n]};return o.cache={},o},delay:$e,defer:Ze,throttle:function(n,i,r){var o,a,s,d,u=0,l=(r=r||{},function(){u=!1===r.leading?0:x(),o=null,d=n.apply(a,s),o||(a=s=null)}),e=function(){var e=x(),t=(u||!1!==r.leading||(u=e),i-(e-u));return a=this,s=arguments,t<=0||i<t?(o&&(clearTimeout(o),o=null),u=e,d=n.apply(a,s),o||(a=s=null)):o||!1===r.trailing||(o=Ut(l,t)),d};return e.cancel=function(){clearTimeout(o),u=0,o=a=s=null},e},debounce:function(t,n,i){var r,o,a,s,d,u=function(){var e=x()-o;e<n?r=Ut(u,n-e):(r=null,i||(s=t.apply(d,a)),r||(a=d=null))},e=l(function(e){return d=this,a=e,o=x(),r||(r=Ut(u,n),i&&(s=t.apply(d,a))),s});return e.cancel=function(){clearTimeout(r),r=a=d=null},e},wrap:function(e,t){return _(t,e)},negate:Ye,compose:function(){var n=arguments,i=n.length-1;return function(){for(var e=i,t=n[i].apply(this,arguments);e--;)t=n[e].call(this,t);return t}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:Xe,once:Qe,findKey:et,findIndex:nt,findLastIndex:it,sortedIndex:rt,indexOf:at,lastIndexOf:st,find:dt,detect:dt,findWhere:function(e,t){return dt(e,I(t))},each:R,forEach:R,map:A,collect:A,reduce:lt,foldl:lt,inject:lt,reduceRight:ct,foldr:ct,filter:O,select:O,reject:function(e,t,n){return O(e,Ye(C(t)),n)},every:pt,all:pt,some:ht,any:ht,contains:N,includes:N,include:N,invoke:ft,pluck:gt,where:function(e,t){return O(e,I(t))},max:mt,min:function(e,i,t){var n,r,o=Infinity,a=Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=T(e)?e:w(e)).length;s<d;s++)null!=(n=e[s])&&n<o&&(o=n);else i=C(i,t),R(e,function(e,t,n){((r=i(e,t,n))<a||r===Infinity&&o===Infinity)&&(o=e,a=r)});return o},shuffle:function(e){return bt(e,Infinity)},sample:bt,sortBy:function(e,i,t){var r=0;return i=C(i,t),gt(A(e,function(e,t,n){return{value:e,index:r++,criteria:i(e,t,n)}}).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:wt,indexBy:St,countBy:It,partition:Et,toArray:yt,size:function(e){return null==e?0:(T(e)?e:y(e)).length},pick:xt,omit:_t,first:kt,head:kt,take:kt,initial:Tt,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:L(e,Math.max(0,e.length-t))},rest:L,tail:L,drop:L,compact:function(e){return O(e,Boolean)},flatten:function(e,t){return k(e,t,!1)},without:At,uniq:Ot,unique:Ot,union:Nt,intersection:function(e){for(var t=[],n=arguments.length,i=0,r=v(e);i<r;i++){var o=e[i];if(!N(t,o)){for(var a=1;a<n&&N(arguments[a],o);a++);a===n&&t.push(o)}}return t},difference:Rt,unzip:Mt,transpose:Mt,zip:Lt,object:function(e,t){for(var n={},i=0,r=v(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(d.call(e,i,i+=t));return n},mixin:Pt,"default":b}),Dt=F.toPath;return F.mixin({toPath:function(e){return F.isString(e)?e.split("."):Dt(e)}}),F._=F}());function ge(e){return!(null==e)}function me(e){return C.isFunction(e)||C.isRegExp(e)?e:C.isArray(e)?C.map(e,me):C.isObject(e)?C.reduce(e,function(e,t,n){return e[n]=me(t),e},{}):e}var f=function(){var i=C.all,r=C.each,o=C.filter,a=C.first,s=C.find,n=C.map,d=C.pluck,u="snippet",l="pendoconfig",c="global",p="default";const h={};function e(e,t=[l],n,i){e&&!h[e]&&(n={name:e,defaultValue:n,supportedSources:t},null!=i&&(n.useAnySource=i),h[e]=n)}e("additionalApiKeys",[l,u]),e("allowedOriginServers"),e("allowMixedApiKeyFrames",[u,l],!0),e("annotateUrl",[u]),e("apiKey",[l,u]),e("assetHost",[u,l]),e("autoFrameInstall",[u,l],!1),e("blockAgentMetadata",[l],!1),e("contentHost",[u,l]),e("cookieDomain",[u,l]),e("dataHost",[u,l]),e("disableAutoInitialize"),e("disableCookies",[u,l]),e("disablePendo",[u,l],!1),e("disablePersistence",[u,l]),e("enableSignedMetadata",[l],!1),e("frameIdentitySync",[u,l],!1),e("frameIdentityTopDownOnly",[u,l],!0),e("forceAnonymous",[u,l],!1),e("identityStorageLifetime",[u,l]),e("identityStorageSuffix",[u,l]),e("ignoreHashRouting",[u,l]),e("initializeImmediately",[u,l],!1),e("installType"),e("localStorageOnly",[u,l]),e("location.pushState",[u,l],!0),e("maxCookieTTLDays",[u,l],Infinity),e("observeShadowRoots",[u,l],!1),e("pendoCore",[l],!0),e("pendoGlobalKey",[l]),e("preferBroadcastChannel",[u,l],!1),e("preferMutationObserver",[u,l],!1),e("preventCookieRefresh"),e("preventUnloadListener",[u,l],!1),e("promotedAgentMetadataConfigurations",[l]),e("queryStringWhitelist",[u]),e("requireSignedMetadata",[l],!1),e("sanitizeUrl",[u]),e("selfHosted"),e("selfHostedAgentUrl",[u,l]),e("sendEventsWithPostOnly",[u,l],!1),e("siblingSelectors"),e("dropAnonymous"),e("allowedText",[u,l],[]),e("analytics.excludeEvents",[u,l],[]),e("analytics.localStorageUnload",[u,l],!1),e("enableDebugEvents",[u,l]),e("freeNPSData"),e("eventPropertyConfigurations"),e("eventPropertyMatchParents",[u,l],!0),e("excludeAllText",[l,u],!1,!0),e("excludeNonGuideAnalytics",[u,l],!1),e("htmlAttributeBlacklist"),e("htmlAttributes"),e("interceptElementRemoval",[u,l],!1),e("interceptPreventDefault",[u,l],!0),e("interceptStopPropagation",[u,l],!0),e("syntheticClicks.elementRemoval",[u,l],!1),e("syntheticClicks.targetChanged",[u,l],!0),e("xhrWhitelist"),e("appAutoOrdering",[u,l]),e("cacheGuides",[u,l],!1),e("cacheGuidesTimeout",[l],6e5),e("delayGuides",[u]),e("disableDesigner",[l,u],!1),e("disableDesignerKeyboardShortcut",[l],!1),e("disableGlobalCSS",[u,l],!1),e("disableGuidePseudoStyles",[u,l],!1),e("disableGuides",[u]),e("disablePrefetch",[u,l]),e("enableDesignerKeyboardShortcut",[u]),e("enableGuideTimeout",[l,u],!1),e("guideCssAssetPath"),e("guideSeenTimeoutLength",[l,u],1e4),e("guideTimeout",[u]),e("guideValidation",[u,l],!1),e("guides.attachPoint",[u]),e("guides.delay",[u]),e("guides.disabled",[u]),e("guides.ejectOnTimeout",[u,l],!1),e("guides.globalScripts",[u,l],[]),e("guides.timeout",[u]),e("guides.tooltip.arrowSize",[u]),e("inlineStyleNonce",[u]),e("leaderKey",[u,l],[]),e("preventCodeInjection",[l,u,c],!1),e("previewModeAssetPath"),e("useAssetHostForDesigner",[u,l],!1),e("storage.allowKeys",[u],"*"),e("disableFeedback",[u]),e("disableFeedbackAutoInit"),e("feedbackSettings",[l],{}),e("pendoFeedback",[l],!1),e("crossAppGuideStorageSuffix",[u,l]),e("enableCrossOriginIsolation",[u,l],!1),e("adoptHost"),e("adoptAnalyticsForwarding"),e("agentDebuggerPluginLoader"),e("allowPartnerAnalyticsForwarding",[u],!1),e("adoptPrioritizeAdoptGuides",[l],!1),e("designerAgentPluginsLoader",[l,u]),e("trainingPartner"),e("errorClickLogging",[l],!1),e("forceParentDesigner",[u]),e("enableAllEmbeddedGuideEvents",[l],!1),e("formValidation",[l],!1);var f={};function g(e){return h[e]||{name:e}}function m(e,t){if(t)return t=t(),ge(e=C.get(t.lookup,(t=e,C.get(t,"key")||C.get(t,"name"))))?e:undefined}function v(e,t){var n=m(e,f[t]);return new w(e.name,n,t)}function y(e,t){return t=t||C.get(e,"supportedSources",[u,l,c]),o(n(t,C.partial(v,e)),function(e){return ge(e.value)})}function b(e,t,n){var i=g(e),e=new w(e,t=t||C.get(i,"defaultValue",null),p),n=y(i,n);return i.useAnySource&&ge(t)?s(n,function(e){return e.value!==t})||e:a(n)||e}function w(e,t,n){this.name=e,this.value=t,this.source=n}function S(){var n=[];return r(h,function(e){var t;n.push({name:e.name,active:b(e.name),conflicts:(e=g(e=e.name),(t=o(y(e),function(e){return e.source!==p})).length<2||i(d(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}return f[u]=function(){return{lookup:fe||window.pendo_options,name:u}},f[l]=function(){return{lookup:Y,name:l}},f[c]=function(){return{lookup:I,name:c}},w.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"},{audit:S,get(e,t){return b(e,t).value},getLocalConfig(e,t){return arguments.length?b(e,t,[u]).value:me(fe)},getHostedConfig(e,t){return b(e,t,[l]).value},addOption:e,setLocalConfig(e){fe=e},options:()=>d(h,"name"),sources:{SNIPPET_SRC:u,PENDO_CONFIG_SRC:l,GLOBAL_SRC:c,DEFAULT_SRC:p},validate(t){t.groupCollapsed("Validate Config options"),r(S(),function(e){t.log(String(e.active)),0<e.conflicts.length&&(t.warn("Multiple sources found with values for "+e.name),r(e.conflicts,function(e){t.warn(String(e))}))}),t.groupEnd()}}}(),ve="prod",ye="extension",be="native";function we(){return f.get("installType")||be}function Se(e){var t;return e===ve?"pendo-io-static":"prod-jp"===e?"pendo-jp-prod-static":"pendo-"+((t=/^prod-(.+)$/.exec(e))&&1<t.length?t[1]:e)+"-static"}var Ie,Ee=function(e,t){return e=e||10,(t=!isNaN(ke)&&(!t||ke<t))&&Ie<e};function Ce(e){return parseInt(e,10)}var xe=function(e){return C.isString(e)?e.toLowerCase():e};function _e(){return(window.navigator||{}).userAgent}t=_e(),n=Ce((/msie (\d+)/.exec(xe(t))||[])[1]),Ie=n=isNaN(n)?Ce((/trident\/.*; rv:(\d+)/.exec(xe(t))||[])[1]):n;var Te,ke=function(e,t){e=Ce((/trident\/(\d+)/.exec(xe(e))||[])[1]);return e=isNaN(e)&&7==t?3:e}(_e(),Ie),Re={},Ae=Ce((/android (\d+)/.exec(xe(_e()))||[])[1]),Oe=/Boxee/i.test(_e()),Ne=window.document||{},Me=Ne.documentMode,Le=/^(Moz|webkit|O|ms)(?=[A-Z])/,Fe=Ne.body&&Ne.body.style,e=!1,t=!1;if(Fe){for(var Pe in Fe)if(Pe=Le.exec(Pe)){Te=(Te=Pe[0]).substr(0,1).toUpperCase()+Te.substr(1);break}Te=Te||"WebkitOpacity"in Fe&&"webkit",e=!!("transition"in Fe||Te+"Transition"in Fe),t=!!("animation"in Fe||Te+"Animation"in Fe),!Ae||e&&t||(e=C.isString(Ne.body.style.webkitTransition),t=C.isString(Ne.body.style.webkitAnimation))}var De={supportsHistoryApi:C.memoize(function(){var e=window.history&&window.history.pushState&&window.history.replaceState,t=window.history&&C.isFunction(Object.isFrozen)&&Object.isFrozen(window.history),n=window.history&&C.isFunction(Object.getOwnPropertyDescriptors)&&Object.getOwnPropertyDescriptors(window.history),n=n&&C.get(n,"pushState.writable",!0)&&C.get(n,"replaceState.writable",!0),i=!(Ae<4),r=we()===ye;return!(!e||t||!n||!i||Oe||r)}),supportsHashChange:function(){var e="onhashchange"in window,t=!Me||7<Me,n=we()===ye;return!(!e||!t||n)},hasEvent(e){var t;return("input"!=e||9!=Ie)&&(C.isUndefined(Re[e])&&(t=Ne.createElement("div"),Re[e]="on"+e in t),Re[e])},vendorPrefix:Te,transitions:e,animations:t,android:Ae,msie:Ie,msieDocumentMode:Me,safari:/apple/i.test(navigator.vendor),sri:"integrity"in document.createElement("script"),addEventListener:C.isFunction(window.addEventListener),MutationObserver:/native/.test(window.MutationObserver),isMinimumIEVersion:function(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e},isMobileUserAgent:C.memoize(function(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(_e())})},Ue=function(){return!isNaN(Ie)&&11!=Ie&&"CSS1Compat"!==document.compatMode},Ge=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,Ie<=9&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(i+I.TOOLTIP_ARROW_SIZE),e.arrow.top=i-I.TOOLTIP_ARROW_SIZE,10==Ie?e.arrow.top--:Ie<=9&&(e.arrow.top+=4),n=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(10+2*I.TOOLTIP_ARROW_SIZE),e.arrow.left=10+I.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-r+t.width/2+(10+2*I.TOOLTIP_ARROW_SIZE),e.arrow.left=r-3*I.TOOLTIP_ARROW_SIZE-10):(e.left=t.left+t.width/2-r/2,e.arrow.left=r/2-I.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-I.TOOLTIP_ARROW_SIZE),e.arrow.left=r-I.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-I.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e},Be="",ze="",He="",je="",n="",We="2.284.0_",Fe="2.284.0",qe="xhr",Je=function(){return Ue()?We+"+quirksmode":We};function Ve(){return(pe("installType")||ce().installType)===ye}function Ke(){return-1!==Be.indexOf("prod")}var $e=/^\s+|\s+$/g;function Ze(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 Ye=(Ye=String.prototype.trim)||function(){return this.replace($e,"")},e={exports:{}};!function(){var X=void 0,Q=!0,o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||t===X?r=r[n]||(r[n]={}):r[n]=t}var ee="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function te(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(ee?Uint8Array:Array)?e:new(ee?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&d(this)}function d(e){var t,n=e.buffer,i=n.length,r=new(ee?Uint8Array:Array)(i<<1);if(ee)r.set(n);else for(t=0;t<i;++t)r[t]=n[t];return e.buffer=r}te.prototype.b=function(e,t,n){var i,r=this.buffer,o=this.index,a=this.e,s=r[o];if(n&&1<t&&(e=8<t?(u[255&e]<<24|u[e>>>8&255]<<16|u[e>>>16&255]<<8|u[e>>>24&255])>>32-t:u[e]>>8-t),t+a<8)s=s<<t|e,a+=t;else for(i=0;i<t;++i)s=s<<1|e>>t-i-1&1,8==++a&&(a=0,r[o++]=u[s],s=0,o===r.length)&&(r=d(this));r[o]=s,this.buffer=r,this.e=a,this.index=o},te.prototype.finish=function(){var e=this.buffer,t=this.index;return 0<this.e&&(e[t]<<=8-this.e,e[t]=u[e[t]],t++),ee?e.subarray(0,t):(e.length=t,e)};for(var t=new(ee?Uint8Array:Array)(256),n=0;n<256;++n){for(var i=a=n,r=7,a=a>>>1;a;a>>>=1)i=i<<1|1&a,--r;t[n]=(i<<r&255)>>>0}var u=t;function l(e){this.buffer=new(ee?Uint16Array:Array)(2*e),this.length=0}function s(e,t){this.d=ne,this.i=0,this.input=ee&&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=ee&&t.outputBuffer instanceof Array?new Uint8Array(t.outputBuffer):t.outputBuffer),"number"==typeof t.outputIndex)&&(this.c=t.outputIndex),this.a||(this.a=new(ee?Uint8Array:Array)(32768))}l.prototype.getParent=function(e){return 2*((e-2)/4|0)},l.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},l.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 ne=2,c={NONE:0,h:1,g:ne,n:3},ie=[],p=0;p<288;p++)switch(Q){case p<=143:ie.push([p+48,8]);break;case p<=255:ie.push([p-144+400,9]);break;case p<=279:ie.push([p-256,7]);break;case p<=287:ie.push([p-280+192,8]);break;default:throw"invalid literal: "+p}function b(e,t){this.length=e,this.k=t}s.prototype.f=function(){var e,t,P,n=this.input;switch(this.d){case 0:for(t=0,P=n.length;t<P;){var D,U,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===P,o=X,a=this.a,s=this.c;if(ee){for(a=new Uint8Array(this.a.buffer);a.length<=s+i.length+5;)a=new Uint8Array(a.length<<1);a.set(this.a)}if(a[s++]=0|(r?1:0),D=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&D,a[s++]=D>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,U=i.length;o<U;++o)a[s++]=i[o];a.length=s}this.c=s,this.a=a}break;case 1:for(var d,u=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),l=(u.b(1,1,Q),u.b(1,2,Q),re(this,n)),c=0,G=l.length;c<G;c++)if(d=l[c],te.prototype.b.apply(u,ie[d]),256<d)u.b(l[++c],l[++c],Q),u.b(l[++c],5),u.b(l[++c],l[++c],Q);else if(256===d)break;this.a=u.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,B,b,w,S,z,I=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=Array(19),E=ne;for(I.b(1,1,Q),I.b(E,2,Q),p=re(this,n),E=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var C,x,_,T,k,W=h,q=f,R=new(ee?Uint32Array:Array)(W+q),A=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=C=0;N<W;N++)R[C++]=m[N];for(N=0;N<q;N++)R[C++]=v[N];if(!ee)for(N=0,_=O.length;N<_;++N)O[N]=0;for(N=T=0,_=R.length;N<_;N+=C){for(C=1;N+C<_&&R[N+C]===R[N];++C);if(x=C,0===R[N])if(x<3)for(;0<x--;)O[A[T++]=0]++;else for(;0<x;)(k=x-3<(k=x<138?x:138)&&k<x?x-3:k)<=10?(A[T++]=17,A[T++]=k-3,O[17]++):(A[T++]=18,A[T++]=k-11,O[18]++),x-=k;else if(A[T++]=R[N],O[R[N]]++,--x<3)for(;0<x--;)A[T++]=R[N],O[R[N]]++;else for(;0<x;)x-3<(k=x<6?x:6)&&k<x&&(k=x-3),A[T++]=16,A[T++]=k-3,O[16]++,x-=k}for(e=ee?A.subarray(0,T):A.slice(0,T),y=oe(O,7),S=0;S<19;S++)j[S]=y[H[S]];for(g=19;4<g&&0===j[g-1];g--);for(B=ae(y),I.b(h-257,5,Q),I.b(f-1,5,Q),I.b(g-4,4,Q),S=0;S<g;S++)I.b(j[S],3,Q);for(S=0,z=e.length;S<z;S++)if(b=e[S],I.b(B[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}I.b(e[S],w,Q)}for(var M,J,E=[E,m],L=[L,v],V=E[0],K=E[1],$=L[0],Z=L[1],F=0,Y=p.length;F<Y;++F)if(M=p[F],I.b(V[M],K[M],Q),256<M)I.b(p[++F],p[++F],Q),J=p[++F],I.b($[J],Z[J],Q),I.b(p[++F],p[++F],Q);else if(256===M)break;this.a=I.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){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}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,d=w[e.length];switch(a[s++]=65535&d,a[s++]=d>>16&255,a[s++]=d>>24,Q){case 1===o:n=[0,o-1,0];break;case 2===o:n=[1,o-2,0];break;case 3===o:n=[2,o-3,0];break;case 4===o:n=[3,o-4,0];break;case o<=6:n=[4,o-5,1];break;case o<=8:n=[5,o-7,1];break;case o<=12:n=[6,o-9,2];break;case o<=16:n=[7,o-13,2];break;case o<=24:n=[8,o-17,3];break;case o<=32:n=[9,o-25,3];break;case o<=48:n=[10,o-33,4];break;case o<=64:n=[11,o-49,4];break;case o<=96:n=[12,o-65,5];break;case o<=128:n=[13,o-97,5];break;case o<=192:n=[14,o-129,6];break;case o<=256:n=[15,o-193,6];break;case o<=384:n=[16,o-257,7];break;case o<=512:n=[17,o-385,7];break;case o<=768:n=[18,o-513,8];break;case o<=1024:n=[19,o-769,8];break;case o<=1536:n=[20,o-1025,9];break;case o<=2048:n=[21,o-1537,9];break;case o<=3072:n=[22,o-2049,10];break;case o<=4096:n=[23,o-3073,10];break;case o<=6144:n=[24,o-4097,11];break;case o<=8192:n=[25,o-6145,11];break;case o<=12288:n=[26,o-8193,12];break;case o<=16384:n=[27,o-12289,12];break;case o<=24576:n=[28,o-16385,13];break;case o<=32768:n=[29,o-24577,13];break;default:throw"invalid distance"}for(d=n,a[s++]=d[0],a[+s]=d[1],a[5]=d[2],i=0,r=a.length;i<r;++i)h[f++]=a[i];m[a[0]]++,v[a[3]]++,g=e.length+t-1,l=null}var i,r,o,a,s,d,u,l,c,p={},h=ee?new Uint16Array(2*t.length):[],f=0,g=0,m=new(ee?Uint32Array:Array)(286),v=new(ee?Uint32Array:Array)(30),y=e.i;if(!ee){for(o=0;o<=285;)m[o++]=0;for(o=0;o<=29;)v[o++]=0}for(m[256]=1,i=0,r=t.length;i<r;++i){for(o=s=0,a=3;o<a&&i+o!==r;++o)s=s<<8|t[i+o];if(p[s]===X&&(p[s]=[]),d=p[s],!(0<g--)){for(;0<d.length&&32768<i-d[0];)d.shift();if(r<=i+3){for(l&&n(l,-1),o=0,a=r-i;o<a;++o)c=t[i+o],h[f++]=c,++m[c];break}0<d.length?(u=function(e,t,n){var i,r,o,a,s,d,u=0,l=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<l&&e[i+o]===e[t+o];)++o;if(u<o&&(r=i,u=o),258===o)break}return new b(u,t-r)}(t,i,d),l?l.length<u.length?(c=t[i-1],h[f++]=c,++m[c],n(u,0)):n(l,-1):u.length<y?l=u:n(u,0)):l?n(l,-1):(c=t[i],h[f++]=c,++m[c])}d.push(i)}return h[f++]=256,m[256]++,e.m=m,e.l=v,ee?h.subarray(0,f):h}function oe(e,t){var n,i,r,o,a,s=e.length,d=new l(572),u=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)u[o]=0;for(o=0;o<s;++o)0<e[o]&&d.push(o,e[o]);if(n=Array(d.length/2),i=new(ee?Uint32Array:Array)(d.length/2),1===n.length)u[d.pop().index]=1;else{for(o=0,a=d.length/2;o<a;++o)n[o]=d.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,d=new(ee?Uint16Array:Array)(t),u=new(ee?Uint8Array:Array)(t),l=new(ee?Uint8Array:Array)(n),c=Array(t),p=Array(t),h=Array(t),f=(1<<t)-n,g=1<<t-1;for(d[t-1]=n,r=0;r<t;++r)f<g?u[r]=0:(u[r]=1,f-=g),f<<=1,d[t-2-r]=(d[t-1-r]/2|0)+n;for(d[0]=u[0],c[0]=Array(d[0]),p[0]=Array(d[0]),r=1;r<t;++r)d[r]>2*d[r-1]+u[r]&&(d[r]=2*d[r-1]+u[r]),c[r]=Array(d[r]),p[r]=Array(d[r]);for(i=0;i<n;++i)l[i]=t;for(o=0;o<d[t-1];++o)c[t-1][o]=e[o],p[t-1][o]=o;for(i=0;i<t;++i)h[i]=0;for(1===u[t-1]&&(--l[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<d[r];o++)(a=c[r+1][s]+c[r+1][s+1])>e[i]?(c[r][o]=a,p[r][o]=n,s+=2):(c[r][o]=e[i],p[r][o]=i,++i);h[r]=0,1===u[r]&&function m(e){var t=p[e][h[e]];t===n?(m(e+1),m(e+1)):--l[t],++h[e]}(r)}return l}(i,i.length,t),o=0,a=n.length;o<a;++o)u[n[o].index]=r[o]}return u}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,d=e.length;s<d;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,d=16;s<=d;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,d=e.length;s<d;s++)for(a=o[e[s]],o[e[s]]+=1,t=i[s]=0,n=e[s];t<n;t++)i[s]=i[s]<<1|1&a,a>>>=1;return i}function f(e,t){this.input=e,this.a=new(ee?Uint8Array:Array)(32768),this.d=S.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 s(this.input,i)}var g,m,v,y,S=c,I=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,d=a.length;s<d;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var u,l=1,c=0,p=o.length,h=0;0<p;){for(p-=u=1024<p?1024:p;c+=l+=o[h++],--u;);l%=65521,c%=65521}return r=(c<<16|l)>>>0,this.j.c=2,n=(i=this.j.f()).length,ee&&((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++]=r>>24&255,i[n++]=r>>16&255,i[n++]=r>>8&255,i[+n]=255&r,i},e("Zlib.Deflate",f),e("Zlib.Deflate.compress",function(e,t){return new f(e,t).f()}),e("Zlib.Deflate.prototype.compress",f.prototype.f),{NONE:S.NONE,FIXED:S.h,DYNAMIC:S.g});if(Object.keys)g=Object.keys(I);else for(m in g=[],v=0,I)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),I[m])}.call(e.exports);var Xe={Deflate:p(e.exports).Zlib.Deflate},Qe="base64url";function et(e,t){t=t||Qe;e=Ze("string"==typeof e?e:JSON.stringify(e)),e=new Xe.Deflate(e).compress();return t===Qe?l.uint8ToBase64(e):e}t={exports:{}};!function(){var o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||void 0===t?r=r[n]||(r[n]={}):r[n]=t}var a={c:function(e,t,n){return a.update(e,0,t,n)},update:function(e,t,n,i){var r=a.a,o="number"==typeof n?n:n=0,i="number"==typeof i?i:e.length;for(t^=4294967295,o=7&i;o--;++n)t=t>>>8^r[255&(t^e[n])];for(o=i>>3;o--;n+=8)t=(t=(t=(t=(t=(t=(t=(t=t>>>8^r[255&(t^e[n])])>>>8^r[255&(t^e[n+1])])>>>8^r[255&(t^e[n+2])])>>>8^r[255&(t^e[n+3])])>>>8^r[255&(t^e[n+4])])>>>8^r[255&(t^e[n+5])])>>>8^r[255&(t^e[n+6])])>>>8^r[255&(t^e[n+7])];return(4294967295^t)>>>0},d:function(e,t){return(a.a[255&(e^t)]^e>>>8)>>>0},b:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]};a.a="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array?new Uint32Array(a.b):a.b,e("Zlib.CRC32",a),e("Zlib.CRC32.calc",a.c),e("Zlib.CRC32.update",a.update)}.call(t.exports);var tt={CRC32:p(t.exports).Zlib.CRC32},nt=function(e,n){var i;return 200<=(n=n||0)?e:C.isArray(e)?C.map(e,function(e){return nt(e,n+1)}):!C.isObject(e)||C.isDate(e)||C.isRegExp(e)||C.isElement(e)?C.isString(e)?C.escape(e):e:(i={},C.each(e,function(e,t){i[t]=nt(e,n+1)}),i)},it=function(e){e=Ze(e);return l.uint8ToBase64(e)},rt=function(e){if(void 0!==e)return e=Ze(e=C.isString(e)?e:JSON.stringify(e)),tt.CRC32.calc(e,0,e.length)};function ot(e){return e[Math.floor(Math.random()*e.length)]}function at(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",i=(t+t.toUpperCase()+"1234567890").split(""),r=0;r<e;r++)n+=ot(i);return n}var st=function(e,t,n){return!(!ge(e)||!ge(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<e.indexOf(t))};function v(){return(new Date).getTime()}function dt(){return"undefined"!=typeof $A&&C.isFunction($A.get)&&C.isString($A.get("$Browser.formFactor"))}function ut(e,t=window){var[e,t,n=window]=[C,e,t],i="__symbol__";if("undefined"!=typeof Zone&&e.isFunction(Zone[i])){i=n[Zone[i](t)];if(e.isFunction(i))return i}return n[t]}e=window;var lt=C.isFunction(e.isFinite)?e.isFinite:e.Number&&C.isFunction(e.Number.isFinite)?e.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)};function ct(e){return"number"==typeof e&<(e)&&Math.floor(e)===e}function pt(e,t,n,i){(t=t||{}).maxRetries=ct(t.maxRetries)?t.maxRetries:10,t.delay=ct(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?Ut(function(){t.maxRetries=--t.maxRetries,t.delay=t.exponentialBackoff?2*t.delay:t.delay,pt(e,t,o,a)},t.delay):(a||function(){})()}var ht=function(e){e=e.match(/-?[\d,]+\.?([\d,]+)*/);return e?parseFloat(e[0].replace(/,/g,"")):null};function ft(e){return C.isObject(e)&&C.isFunction(e.then)}var gt,mt=C.isFunction(window.decodeURIComponent)?window.decodeURIComponent:C.identity,vt=C.isFunction(window.encodeURIComponent)?window.encodeURIComponent:C.identity;class yt{constructor(e,t,n){this.type="log",this.logged=!1,this.level=e,this.message=t,this.attributes=n}toString(){let e=this.message;return this.error&&e!==this.error.message&&(e=e+":"+this.error.message),this.attributes&&(e+=": "+C.map(this.attributes,(e,t)=>t+"="+e)),e}hashCode(){return this.toString()}}(t=gt=gt||{}).Debug="debug",t.Info="info",t.Warn="warn",t.Error="error",t.Critical="critical";class bt extends class{constructor(){this.listeners={}}addEventListener(e,t){let n=this.listeners[e];n||(n=[],this.listeners[e]=n),C.findIndex(n,e=>t===e)<0&&n.push(t)}removeEventListener(e,t){var n,i=this.listeners[e];i&&0<=(n=C.findIndex(i,e=>t===e))&&(i.splice(n,1),i.length||delete this.listeners[e])}dispatchEvent(t){var e=this.listeners[t.type];e&&C.each(e,e=>{e(t)})}}{write(e,t,n){this.dispatchEvent(new yt(t,e,n))}writeError(e,t,n){let i,r;C.isString(e)?(i=e,r={message:i}):(r=e,i=r.message),n&&n.error&&(r=n.error,delete n.error);e=new yt(t,i,n);e.error=r,this.dispatchEvent(e)}debug(e,t){this.write(e,gt.Debug,t)}info(e,t){this.write(e,gt.Info,t)}warn(e,t){this.writeError(e,gt.Warn,t)}error(e,t){this.writeError(e,gt.Error,t)}critical(e,t){this.writeError(e,gt.Critical,t)}}const x=new bt;function wt(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const St=function(){var e=f.get("storage.allowKeys")||"*";return C.isArray(e)?C.indexBy(e):e};function It(t,n,i){return function(){try{return n.apply(t,arguments)}catch(e){return i}}}function Et(n){C.forEach(C.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function Ct(e){var t=C.noop,t={getItem:()=>null,setItem:t,removeItem:t,clearPendo:t};try{var n=e();return n?{getItem:It(n,n.getItem,null),setItem:It(n,n.setItem),removeItem:It(n,n.removeItem),clearPendo:C.partial(Et,n)}:t}catch(i){return t}}var xt,_t=Ct(function(){return window.localStorage}),Tt=Ct(function(){return window.sessionStorage}),kt={},Rt=!0,At=function(){return f.get("localStorageOnly")},Ot=function(){return!!f.get("disableCookies")};function Nt(e){Rt=e}var Mt=function(e){var t=Ot()||At()?kt[e]:document.cookie;return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(t))?mt(e[2]):null},Lt=function(e,t,n,i){var r,o;!Rt||f.get("preventCookieRefresh")&&Mt(e)===t||(o=Ht(n),(r=new Date).setTime(r.getTime()+o),o=e+"="+vt(t)+(n?";expires="+r.toUTCString():"")+"; path=/"+("https:"===document.location.protocol||i?";secure":"")+"; SameSite=Strict",xt&&(o+=";domain="+xt),Ot()||At()?kt[e]=o:document.cookie=o)};function Ft(e){xt?Lt(e,""):document.cookie=e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"}var Pt=function(e,t){return`_pendo_${e}.`+(t||I.apiKey)},Dt=function(e,t){return Mt(Pt(e,t))};const Bt=864e5,zt=100*Bt,Ht=(e=zt)=>{var t=f.get("maxCookieTTLDays"),t=t<Infinity?t*Bt:Infinity;return Math.min(e,t)};var jt=function(e,t,n,i,r){n=n||zt,Lt(Pt(e,r),t,n,i)};class Wt{constructor(){this.keys={}}addLocal(e){this._add(e,"local")}addSession(e){this._add(e,"session")}hasLocal(e){return this._has(e,"local")}hasSession(e){return this._has(e,"session")}_add(e,t){this.keys[e]||(this.keys[e]=t)}_has(e,t){return this.keys[e]===t}}var qt,Jt,Vt,Kt,y,h=function(){const o=new Wt;function e(i,r){return function(e){var t,n;if(t=e,"*"===(n=St())||n[t])return o[r](e)||x.warn(`storage key ${e} is not registered`),i.apply(this,arguments);x.debug(`writing storage key ${e} is not allowed`)}}function d(){return!Ot()&&!xt&&u("localStorage")}var u=C.memoize(function(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(i){return i instanceof DOMException&&(22===i.code||1014===i.code||"QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&t&&0!==t.length}});function l(e){e.cache&&(e.cache={})}function r(e,t,n){t=t?e:Pt(e,n);if(d())return localStorage.removeItem(t);Ft(t)}const t=C.extend({},Tt),n=(t.setItem=e(t.setItem,"hasSession"),C.extend({},_t));return n.setItem=e(n.setItem,"hasLocal"),{read:function(e,t,n){var i;return d()?(i=t?e:Pt(e,n),null===(i=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(n){return e}}(localStorage.getItem(i)))&&r(e,t,n),i):t?Mt(e):Dt(e,n)},write:e(function(e,t,n,i,r,o){if(l(u),d())try{var a=i?e:Pt(e,o);return localStorage.setItem(a,function(e,t){if(null===t)return e;t=(new Date).getTime()+Ht(t);return JSON.stringify({ttl:t,value:e})}(t,n)),void l(u)}catch(s){}if(!i)return jt(e,t,n,r,o);Lt(e,t,n,r)},"hasLocal"),clear:r,registry:o,getLocal:()=>n,getSession:()=>t}}(),$t=(window.Promise,e=function(){var t=Ut;function u(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],c(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void c((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function l(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function c(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new l(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!u(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function d(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){d(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)d(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!u(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a},"function"==typeof(t=window.Promise)&&/native/.test(t)?t:e()),t=(Jt=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},Vt=function(n,i){var r=qt.defer(),o=function(n,i){Ut(function(){var e;try{e=n(i)}catch(t){return void r.reject(t)}e===r.promise?r.reject(new TypeError("Cannot resolve promise with itself")):r.resolve(e)},1)};return{promise:r.promise,handle:function(e,t){e===Kt?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},Kt=1,(qt={}).defer=function(){var n,i=0,r=[],t=function(e,t){i=e,n=t,C.each(r,function(e){e.handle(i,n)}),r=null},o=function(e){t(Kt,e)},a=function(e){t(2,e)},s=function(e,t){e=Vt(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},d=function(e){var t=Jt();try{e(t(u),t(a))}catch(n){t(a)(n)}},u=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(n){return void a(n)}t?d(t):o(e)},e=Jt();return{resolve:e(u),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}},qt);function Zt(e){var n,i=y.defer(),r=C.isArray(e)?[]:{},o=C.size(e);return o?(n=!1,C.each(e,function(e,t){y.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):y.resolve(e)}!Ve()&&De.isMinimumIEVersion(11)?y={all:function(e){return C.isArray(e)?$t.all.apply($t,arguments):Zt(e)},reject:function(){return $t.reject.apply($t,arguments)},resolve:function(){return $t.resolve.apply($t,arguments)},defer:function(){var n={};return n.promise=new $t(function(e,t){n.resolve=e,n.reject=t}),n}}:((y=t).all=Zt,y.reject=function(e){var t=y.defer();return t.reject(e),t.promise},y.resolve=function(e){var t=y.defer();return t.resolve(e),t.promise});const Yt=h.getSession(),Xt="pendo_tabId",Qt="pendo_parentTabId";en=window,e=C.partial,tn=C.extend,nn=C.omit,rn={data:{},getItem(e){return rn.data[e]},setItem(e,t){rn.data[e]=t},removeItem(e){rn.data[e]=null,delete rn.data[e]}},on=e(ln,Xt,cn),an=e(ln,"pendo_frameId",rn);var en,tn,nn,rn,on,an,sn={addTracerIds(e){return nn(tn(e,{parentTabId:dn(Qt,cn),tabId:on(),frameId:an()}),function(e){return e===undefined})},setParentTabId:function(e){un(Qt,e,cn)},newTabId:function(){var e=at(16);return un(Xt,e,cn),e},getTabId:on,getFrameId:an,tabIdChanged:function(t){var e;if(De.addEventListener)return en.addEventListener("storage",e=function(e){e.key===Xt&&(rn.removeItem(Xt),t())}),function(){en.removeEventListener("storage",e)}}};function dn(e,t){return(C.isFunction(t)?t():t).getItem(e)}function un(e,t,n){(C.isFunction(n)?n():n).setItem(e,t)}function ln(e,t){var n=dn(e,t);return n||un(e,n=at(16),t),n}function cn(){return n=rn,i=Yt,{getItem(e){var t=n.getItem(e);return t===undefined&&(t=i.getItem(e),n.setItem(e,t)),t},setItem(e,t){n.setItem(e,t),i.setItem(e,t)},removeItem(e){n.removeItem(e),i.removeItem(e)}};var n,i}function pn(){var i=this._handlers={};return this.addEventListener=function(){this.on.apply(this,arguments)},this.removeEventListener=function(){this.off.apply(this,arguments)},this.on=function(e,t){var n;return(C.isString(e)||C.isFunction(t))&&(n=(n=i[e])||(i[e]=[]),C.indexOf(n,t)<0)&&n.push(t),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(e,t){var n,e=i[e];return C.isFunction(t)?(n=C.indexOf(e,t),e&&0<=n&&e.splice(n,1)):e&&t===undefined&&(e.length=0),this},this.trigger=function(e){var t=i[e]?i[e].slice():[],n=C.toArray(arguments).slice(1);return C.map(t,function(e){return e.apply(I,n)})},this.triggerCancelable=function(e,t){e=i[e]?i[e].slice():[];return C.map(e,function(e){if(!t.cancel)return e.apply(I,[t])})},this.triggerAsync=function(){var e=C.map(this.trigger.apply(this,arguments),function(e){return!1===e?y.reject():e});return y.all(e)},this}pn.clear=function(t){t&&C.each(C.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};_i={DEBUG:t="debug",FRAMES:e="frames",LIFECYCLE:r="lifecycle",RUNTIME:Mi="runtime"},hn=[new i("ready",[t,r]),new i("deliverablesLoaded",[t,r]),new i("guidesFailed",[t,r]),new i("guidesLoaded",[t,r]),new i("guideListChanged",[t,r]),new i("guideSeen",[t,r]),new i("guideNotSeen",[t,r]),new i("guideAdvanced",[t,r]),new i("guideDismissed",[t,r]),new i("guideSnoozed",[t,r]),new i("beforeGuideShow",[r]),new i("beforeMount",[Mi]),new i("beforeAdvance",[Mi]),new i("beforePrevious",[Mi]),new i("beforeSnooze",[Mi]),new i("beforeDismiss",[Mi]),new i("beforeUnmount",[Mi]),new i("unmounted",[Mi]),new i("beforeUpdate",[Mi]),new i("updated",[Mi]),new i("guideSnoozeCancelled",[t,r]),new i("guideTimeout",[t,r]),new i("guideLoopStopped",[t,r]),new i("guideUpdateComplete",[r]),new i("designerLaunched",[t,r]),new i("debuggerLaunched",[t,r]),new i("stepEligibility",[t]),new i("identify",[t,r]),new i("metadata",[t,r]),new i("appUnloaded",[t,r]),new i("appHidden",[t,r]),new i("startPreview",[t]),new i("resourceFetchFail",[t]),new i("contentVerificationFail",[t]),new i("contentValidationFail",[t]),new i("renderFail",[t]),new i("appUsage",[r]),new i("eventCaptured",[t]),new i("error",[t,r]),new i("onClickCaptured",[t]),new i("urlChanged",[r]),new i("leaderChanged",[r,e]),new i("transmit:locked",[r]),new i("transmit:unlocked",[r]),new i("sessionChanged",[r]),new i("childFrameJoined",[e]),new i("tabIdChanged:self",[t,r])],fn=pn.call({}),gn={debug(){return sn.addTracerIds(vn.apply(null,arguments))},lifecycle:vn,runtime:vn,frames:vn},mn=fn.trigger,fn.trigger=yn,C.each(C.values(_i),function(e){fn[e]={on:C.partial(fn.on,e),one:C.partial(fn.one,e),off:C.partial(fn.off,e)}}),C.each(hn,function(e){e=e.name,fn[e]={on:C.partial(fn.on,e),one:C.partial(fn.one,e),off:C.partial(fn.off,e),trigger:C.partial(yn,e)}});var hn,fn,gn,mn,m=fn;function i(e,t){this.name=e,this.groups=t||[]}function vn(e,t){e={type:e,ts:v()};return ge(t)&&C.isObject(t)&&(e.data=t),e}function yn(t){var e=C.findWhere(hn,{name:t}),n=C.toArray(arguments).slice(1),i={};return C.each(e.groups,function(e){i.cancel||(i=gn[e](t,n),mn.apply(fn,[e].concat(i)))}),i.cancel||(i=vn(t,n),mn.apply(fn,[t].concat(i))),i}function bn(e){var i=[],r=[],o={},a={},s={state:{},commit:function(t,n){var e=o[t];if(!e)throw new Error("mutation "+t+" not found");e(n),C.each(i,function(e){e({type:t,payload:n},s.state)})},dispatch:function(t,n){var e=a[t];if(e)return e=e(n),C.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:C.partial(t,i),subscribeAction:C.partial(t,r),registerModule:function h(n,e){C.isString(n)&&(n=[n]);var t=u(s.state,e,n);C.extend(s.getters,p(e,t,s,n));C.extend(o,l(e,t,n));C.extend(a,c(e,t,s,n));C.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return C.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):C.noop;var n,i}function d(e,t){return(e=t?e.concat([t]):e).join("/")}function u(e,t,n){var i=e;return C.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),C.extend(i,me(t.state||{}))}function l(e,n,i){var r={};return C.each(e.mutations,function(e,t){r[d(i,t)]=C.partial(e,n)}),r}function c(e,t,i,r){var n={},o={state:t,rootState:i.state,commit:function(e,t,n){n=n&&n.root?e:d(r,e);i.commit(n,t)},dispatch:function(e,t,n){n=n&&n.root?e:d(r,e);return i.dispatch(n,t)},getters:function(e,t){var i=d(t);i&&(i+="/");return C.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return C.each(e.actions,function(e,t){n[d(r,t)]=C.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return C.each(e.getters,function(e,t){a[t]=o[d(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}var g=bn(),wn=(g.subscribe(function(e,t){}),"_PENDO_T_"),Sn=11;const In="visitorId",En="oldVisitorId",Cn="accountId";var xn=function(e=""){return e+at(Sn)};var _n=function(e){return ge(e)&&""!==e&&e!==Nn&&"boolean"!=typeof e&&"object"!=typeof e&&!((e=e)&&"string"==typeof e&&0===Ye.call(e).length)},Tn=function(e){return!(!e||"number"==typeof e)&&e.substring(0,wn.length)===wn},kn=function(){return!f.get("disablePersistence")},Rn=function(e){e=e||[In,Cn,En];const t=f.get("identityStorageSuffix")||I.apiKey;C.each(e,function(e){Ft(Pt(e,t)),h.clear(e,!1,t)})},An="VISITOR-UNIQUE-ID",On=function(e){return An===e},Nn="::",Mn=function(e){return new RegExp(Nn).test(e)};function Ln(e){return e.old_visitor_id!==e.visitor_id}var Fn,Pn=function(e,t){var n,i={old_visitor_id:b(),old_account_id:Bn()};_n(e)?(_n(n=e)?Un(""+n):x.info("Invalid visitor id "+n),n=t,C.isUndefined(n)?x.info("No account id provided"):_n(n)?(I.accountId=""+n,kn()&&zn(Cn,I.accountId)):(delete I.accountId,delete(t=f.getLocalConfig()).account,f.setLocalConfig(t),g.commit("metadata/clearAccount"),kn()&&h.clear(Cn),x.info("Invalid account id: "+n+". Account cleared")),i.visitor_id=b({generate:!0}),i.account_id=Bn(),!Ln(t=i)&&t.old_account_id===t.account_id||(Ln(i)&&(n=i.old_visitor_id)&&(Fn=n,zn(En,Fn)),m.identify.trigger(i))):x.info("Invalid visitor id "+e)};function Dn(){return xn(wn)}function Un(e){I.visitorId!==e&&(kn()&&zn(In,e),I.visitorId=e)}function b(e={}){var t=function(){if(_n(I.visitorId))return I.visitorId;var e=f.get("forceAnonymous");if(kn()){var t=Hn(In);if(_n(t)&&(!e||Tn(t)))return t}return undefined}();return Un(t=!t&&e.generate?Dn():t),t}function Gn(){return b()||Dn()}var Bn=function(){var e=f.get("forceAnonymous");return _n(I.accountId)||!kn()||e||(e=Hn(Cn),I.accountId=e),I.accountId};function zn(e,t){var n=f.get("identityStorageLifetime")||zt,i=f.get("identityStorageSuffix")||I.apiKey;h.write(e,t,n,!1,!0,i)}function Hn(e){var t=f.get("identityStorageSuffix"),n=t||I.apiKey,n=h.read(e,!1,n)||h.read(e,!1,I.apiKey);return t&&h.clear(e,!1,I.apiKey),n}function jn(){var e={old_visitor_id:b({generate:!1}),old_account_id:Bn(),wasCleared:!0};Rn(),delete I.visitorId,delete I.accountId,b({generate:!0}),C.extend(e,{visitor_id:b(),account_id:Bn()}),m.identify.trigger(e)}function Wn(e){e=e.data[0];return C.get(e,"wasCleared")}var qn=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||x.critical(e)}}};Mi=function(n){return function Jn(e){var t=n.createElement("a");if(t.href=e,":"===t.protocol)throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");if(t.href!==e&&t.href!==encodeURI(e))throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");return t.toString||(t.toString=function(){return t.href}),null==t.origin&&(t.origin=t.protocol+"//"+t.hostname,"80"!==t.port)&&"443"!==t.port&&(t.origin+=":"+t.port),t}};var Jn="function"==typeof(e=window.URL)&&/native/.test(e)?e:Mi(document);function Vn(e){if((t=e)&&C.isFunction(t.composedPath))try{return e.composedPath()}catch(n){return e.path}var t;return null}function Kn(e){return e.shadowRoot}function $n(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function Zn(e,t){return $n(e,t)?e.host:e.parentNode}var Yn={PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:Vn,getShadowRoot:Kn,isElementShadowRoot:$n,getParent:Zn,isShadowSelector:Xn,wrapSizzle(i){i.intercept(function(a,e,n,i,r){var t,o;return Xn(e)?C.isFunction(document.documentElement.attachShadow)?(o=a,t=(t=e).replace(Yn.PSEUDO_REGEX,Yn.PSEUDO_SAFE),t=C.map(o.tokenize(t),Qn),C.reduce(t,function(e,t){return e.concat(s(t,n,i,r))},[])):a(e.replace(Yn.PSEUDO_REGEX,""),n,i,r):a(e,n,i,r);function s(e,t,n,i){var r,o;return Xn(e)?(o=s((r={baseCss:(o=(o=e).split(Yn.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(Yn.PSEUDO_ELEMENT)}).baseCss,t),C.reduce(o,function(e,t){return Yn.getShadowRoot(t)?e.concat(s(r.shadowCss,Yn.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!Yn.isElementShadowRoot(t)&&(Xn(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}};function Xn(e){return!!e&&-1<e.indexOf(Yn.PSEUDO_ELEMENT)}function Qn(e){return C.reduce(e,function(e,t){return t.value===Yn.PSEUDO_SAFE?e+Yn.PSEUDO_ELEMENT:e+t.value},"")}var ei,w,S,ti,ni,ii,ri,oi,ai,si,di,ui,E,li,ci,pi,hi,fi,gi,t={exports:{}},r=t,mi=window,_="sizzle"+ +new Date,vi=mi.document,yi=0,bi=0,wi=tr(),Si=tr(),Ii=tr(),Ei=tr(),Ci=function(e,t){return e===t&&(di=!0),0},xi={}.hasOwnProperty,_i=[],Ti=_i.pop,ki=_i.push,Ri=_i.push,Ai=_i.slice,Oi=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},Ni="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",a="[\\x20\\t\\r\\n\\f]",e="(?:\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Mi="\\["+a+"*("+e+")(?:"+a+"*([*^$|!~]?=)"+a+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+e+"))|)"+a+"*\\]",Li=":("+e+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Mi+")*)|.*)\\)|)",Fi=new RegExp(a+"+","g"),Pi=new RegExp("^"+a+"+|((?:^|[^\\\\])(?:\\\\.)*)"+a+"+$","g"),Di=new RegExp("^"+a+"*,"+a+"*"),Ui=new RegExp("^"+a+"*([>+~]|"+a+")"+a+"*"),Gi=new RegExp(a+"|>"),Bi=new RegExp(Li),zi=new RegExp("^"+e+"$"),Hi={ID:new RegExp("^#("+e+")"),CLASS:new RegExp("^\\.("+e+")"),TAG:new RegExp("^("+e+"|[*])"),ATTR:new RegExp("^"+Mi),PSEUDO:new RegExp("^"+Li),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+Ni+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},ji=/HTML$/i,Wi=/^(?:input|select|textarea|button)$/i,qi=/^h\d$/i,Ji=/^[^{]+\{\s*\[native \w/,Vi=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ki=/[+~]/,$i=new RegExp("\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\([^\\r\\n\\f])","g"),Zi=function(e,t){e="0x"+e.slice(1)-65536;return t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))},Yi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Xi=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Qi=function(){ui()},er=cr(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Ri.apply(_i=Ai.call(vi.childNodes),vi.childNodes),_i[vi.childNodes.length].nodeType}catch(R1){Ri={apply:_i.length?function(e,t){ki.apply(e,Ai.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function T(e,t,n,i){var r,o,a,s,d,u,l=t&&t.ownerDocument,c=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==c&&9!==c&&11!==c)return n;if(!i&&(ui(t),t=t||E,ci)){if(11!==c&&(s=Vi.exec(e)))if(r=s[1]){if(9===c){if(!(u=t.getElementById(r)))return n;if(u.id===r)return n.push(u),n}else if(l&&(u=l.getElementById(r))&&gi(t,u)&&u.id===r)return n.push(u),n}else{if(s[2])return Ri.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&w.getElementsByClassName&&t.getElementsByClassName)return Ri.apply(n,t.getElementsByClassName(r)),n}if(w.qsa&&!Ei[e+" "]&&(!pi||!pi.test(e))&&(1!==c||"object"!==t.nodeName.toLowerCase())){if(u=e,l=t,1===c&&(Gi.test(e)||Ui.test(e))){for((l=Ki.test(e)&&dr(t.parentNode)||t)===t&&w.scope||((a=t.getAttribute("id"))?a=a.replace(Yi,Xi):t.setAttribute("id",a=_)),o=(d=ii(e)).length;o--;)d[o]=(a?"#"+a:":scope")+" "+lr(d[o]);u=d.join(",")}try{return Ri.apply(n,l.querySelectorAll(u)),n}catch(p){Ei(e,!0)}finally{a===_&&t.removeAttribute("id")}}}return oi(e.replace(Pi,"$1"),t,n,i)}function tr(){var n=[];function i(e,t){return n.push(e+" ")>S.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function nr(e){return e[_]=!0,e}function ir(e){var t=E.createElement("fieldset");try{return!!e(t)}catch(R1){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function rr(e,t){for(var n=e.split("|"),i=n.length;i--;)S.attrHandle[n[i]]=t}function or(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 ar(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&er(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function sr(a){return nr(function(o){return o=+o,nr(function(e,t){for(var n,i=a([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function dr(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(ei in w=T.support={},ni=T.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!ji.test(t||e&&e.nodeName||"HTML")},ui=T.setDocument=function(e){var e=e?e.ownerDocument||e:vi;return e!=E&&9===e.nodeType&&e.documentElement&&(li=(E=e).documentElement,ci=!ni(E),vi!=E&&(e=E.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",Qi,!1):e.attachEvent&&e.attachEvent("onunload",Qi)),w.scope=ir(function(e){return li.appendChild(e).appendChild(E.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),w.attributes=ir(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=ir(function(e){return e.appendChild(E.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=!!E.getElementsByClassName,w.getById=ir(function(e){return li.appendChild(e).id=_,!E.getElementsByName||!E.getElementsByName(_).length}),w.getById?(S.filter.ID=function(e){var t=e.replace($i,Zi);return function(e){return e.getAttribute("id")===t}},S.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&ci)return(e=t.getElementById(e))?[e]:[]}):(S.filter.ID=function(e){var t=e.replace($i,Zi);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},S.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&ci){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[]}}),S.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):w.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},S.find.CLASS=w.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&ci?t.getElementsByClassName(e):w.qsa&&ci?t.querySelectorAll("."+e):void 0},hi=[],pi=[],(w.qsa=!!E.querySelectorAll)&&(ir(function(e){var t;li.appendChild(e).innerHTML=$().createHTML("<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&pi.push("[*^$]="+a+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||pi.push("\\["+a+"*(?:value|"+Ni+")"),e.querySelectorAll("[id~="+_+"-]").length||pi.push("~="),(t=E.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||pi.push("\\["+a+"*name"+a+"*="+a+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||pi.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||pi.push(".#.+[+~]"),e.querySelectorAll("\\\f"),pi.push("[\\r\\n\\f]")}),ir(function(e){e.innerHTML=$().createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=E.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&pi.push("name"+a+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&pi.push(":enabled",":disabled"),li.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&pi.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),pi.push(",.*:")})),(w.matchesSelector=Ji.test(fi=li.matches||li.webkitMatchesSelector||li.mozMatchesSelector||li.oMatchesSelector||li.msMatchesSelector))&&ir(function(e){w.disconnectedMatch=fi.call(e,"*"),fi.call(e,"[s!='']:x"),hi.push("!=",Li)}),pi=pi.length&&new RegExp(pi.join("|")),hi=hi.length&&new RegExp(hi.join("|")),e=!!li.compareDocumentPosition,gi=e||li.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},Ci=e?function(e,t){var n;return e===t?(di=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!w.sortDetached&&t.compareDocumentPosition(e)===n?e==E||e.ownerDocument==vi&&gi(vi,e)?-1:t==E||t.ownerDocument==vi&&gi(vi,t)?1:si?Oi(si,e)-Oi(si,t):0:4&n?-1:1)}:function(e,t){if(e===t)return di=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==E?-1:t==E?1:r?-1:o?1:si?Oi(si,e)-Oi(si,t):0;if(r===o)return or(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?or(a[i],s[i]):a[i]==vi?-1:s[i]==vi?1:0}),E},T.matches=function(e,t){return T(e,null,null,t)},T.matchesSelector=function(e,t){if(ui(e),w.matchesSelector&&ci&&!Ei[t+" "]&&(!hi||!hi.test(t))&&(!pi||!pi.test(t)))try{var n=fi.call(e,t);if(n||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(R1){Ei(t,!0)}return 0<T(t,E,null,[e]).length},T.contains=function(e,t){return(e.ownerDocument||e)!=E&&ui(e),gi(e,t)},T.attr=function(e,t){(e.ownerDocument||e)!=E&&ui(e);var n=S.attrHandle[t.toLowerCase()],n=n&&xi.call(S.attrHandle,t.toLowerCase())?n(e,t,!ci):undefined;return n!==undefined?n:w.attributes||!ci?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},T.escape=function(e){return(e+"").replace(Yi,Xi)},T.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},T.uniqueSort=function(e){var t,n=[],i=0,r=0;if(di=!w.detectDuplicates,si=!w.sortStable&&e.slice(0),e.sort(Ci),di){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return si=null,e},ti=T.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=ti(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=ti(t);return n},(S=T.selectors={cacheLength:50,createPseudo:nr,match:Hi,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($i,Zi),e[3]=(e[3]||e[4]||e[5]||"").replace($i,Zi),"~="===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]||T.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]&&T.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Hi.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Bi.test(n)&&(t=(t=ii(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($i,Zi).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=wi[e+" "];return t||(t=new RegExp("(^|"+a+")"+e+"("+a+"|$)"))&&wi(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){e=T.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexOf(i):"*="===n?i&&-1<e.indexOf(i):"$="===n?i&&e.slice(-i.length)===i:"~="===n?-1<(" "+e.replace(Fi," ")+" ").indexOf(i):"|="===n&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(f,e,t,g,m){var v="nth"!==f.slice(0,3),y="last"!==f.slice(-4),b="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var i,r,o,a,s,d,u=v!=y?"nextSibling":"previousSibling",l=e.parentNode,c=b&&e.nodeName.toLowerCase(),p=!n&&!b,h=!1;if(l){if(v){for(;u;){for(a=e;a=a[u];)if(b?a.nodeName.toLowerCase()===c:1===a.nodeType)return!1;d=u="only"===f&&!d&&"nextSibling"}return!0}if(d=[y?l.firstChild:l.lastChild],y&&p){for(h=(s=(i=(r=(o=(a=l)[_]||(a[_]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===yi&&i[1])&&i[2],a=s&&l.childNodes[s];a=++s&&a&&a[u]||(h=s=0,d.pop());)if(1===a.nodeType&&++h&&a===e){r[f]=[yi,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[_]||(a[_]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===yi&&i[1]:h))for(;(a=++s&&a&&a[u]||(h=s=0,d.pop()))&&((b?a.nodeName.toLowerCase()!==c:1!==a.nodeType)||!++h||(p&&((r=(o=a[_]||(a[_]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[yi,h]),a!==e)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(e,o){var t,a=S.pseudos[e]||S.setFilters[e.toLowerCase()]||T.error("unsupported pseudo: "+e);return a[_]?a(o):1<a.length?(t=[e,e,"",o],S.setFilters.hasOwnProperty(e.toLowerCase())?nr(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=Oi(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:nr(function(e){var i=[],r=[],s=ri(e.replace(Pi,"$1"));return s[_]?nr(function(e,t,n,i){for(var r,o=s(e,null,i,[]),a=e.length;a--;)(r=o[a])&&(e[a]=!(t[a]=r))}):function(e,t,n){return i[0]=e,s(i,null,n,r),i[0]=null,!r.pop()}}),has:nr(function(t){return function(e){return 0<T(t,e).length}}),contains:nr(function(t){return t=t.replace($i,Zi),function(e){return-1<(e.textContent||ti(e)).indexOf(t)}}),lang:nr(function(n){return zi.test(n||"")||T.error("unsupported lang: "+n),n=n.replace($i,Zi).toLowerCase(),function(e){var t;do{if(t=ci?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=mi.location&&mi.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===li},focus:function(e){return e===E.activeElement&&(!E.hasFocus||E.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ar(!1),disabled:ar(!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!S.pseudos.empty(e)},header:function(e){return qi.test(e.nodeName)},input:function(e){return Wi.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:sr(function(){return[0]}),last:sr(function(e,t){return[t-1]}),eq:sr(function(e,t,n){return[n<0?n+t:n]}),even:sr(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:sr(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:sr(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:sr(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=S.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})S.pseudos[ei]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(ei);for(ei in{submit:!0,reset:!0})S.pseudos[ei]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(ei);function ur(){}function lr(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function cr(a,e,t){var s=e.dir,d=e.next,u=d||s,l=t&&"parentNode"===u,c=bi++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||l)return a(e,t,n);return!1}:function(e,t,n){var i,r,o=[yi,c];if(n){for(;e=e[s];)if((1===e.nodeType||l)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||l)if(r=(r=e[_]||(e[_]={}))[e.uniqueID]||(r[e.uniqueID]={}),d&&d===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[u])&&i[0]===yi&&i[1]===c)return o[2]=i[2];if((r[u]=o)[2]=a(e,t,n))return!0}return!1}}function pr(r){return 1<r.length?function(e,t,n){for(var i=r.length;i--;)if(!r[i](e,t,n))return!1;return!0}:r[0]}function hr(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 fr(h,f,g,m,v,e){return m&&!m[_]&&(m=fr(m)),v&&!v[_]&&(v=fr(v,e)),nr(function(e,t,n,i){var r,o,a,s=[],d=[],u=t.length,l=e||function(e,t,n){for(var i=0,r=t.length;i<r;i++)T(e,t[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),c=!h||!e&&f?l:hr(l,s,h,n,i),p=g?v||(e?h:u||m)?[]:t:c;if(g&&g(c,p,n,i),m)for(r=hr(p,d),m(r,[],n,i),o=r.length;o--;)(a=r[o])&&(p[d[o]]=!(c[d[o]]=a));if(e){if(v||h){if(v){for(r=[],o=p.length;o--;)(a=p[o])&&r.push(c[o]=a);v(null,p=[],r,i)}for(o=p.length;o--;)(a=p[o])&&-1<(r=v?Oi(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=hr(p===t?p.splice(u,p.length):p),v?v(null,t,p,i):Ri.apply(t,p)})}ur.prototype=S.filters=S.pseudos,S.setFilters=new ur,ii=T.tokenize=function(e,t){var n,i,r,o,a,s,d,u=Si[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],d=S.preFilter;a;){for(o in n&&!(i=Di.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=Ui.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(Pi," ")}),a=a.slice(n.length)),S.filter)S.filter.hasOwnProperty(o)&&(i=Hi[o].exec(a))&&(!d[o]||(i=d[o](i)))&&(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?T.error(e):Si(e,s).slice(0)},ri=T.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=Ii[e+" "];if(!a){for(n=(t=t||ii(e)).length;n--;)((a=function c(e){for(var i,t,n,r=e.length,o=S.relative[e[0].type],a=o||S.relative[" "],s=o?1:0,d=cr(function(e){return e===i},a,!0),u=cr(function(e){return-1<Oi(i,e)},a,!0),l=[function(e,t,n){return e=!o&&(n||t!==ai)||((i=t).nodeType?d:u)(e,t,n),i=null,e}];s<r;s++)if(t=S.relative[e[s].type])l=[cr(pr(l),t)];else{if((t=S.filter[e[s].type].apply(null,e[s].matches))[_]){for(n=++s;n<r&&!S.relative[e[n].type];n++);return fr(1<s&&pr(l),1<s&&lr(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Pi,"$1"),t,s<n&&c(e.slice(s,n)),n<r&&c(e=e.slice(n)),n<r&&lr(e))}l.push(t)}return pr(l)}(t[n]))[_]?r:o).push(a);(a=Ii(e,(m=o,y=0<(v=r).length,b=0<m.length,i=function(e,t,n,i,r){var o,a,s,d=0,u="0",l=e&&[],c=[],p=ai,h=e||b&&S.find.TAG("*",r),f=yi+=null==p?1:Math.random()||.1,g=h.length;for(r&&(ai=t==E||t||r);u!==g&&null!=(o=h[u]);u++){if(b&&o){for(a=0,t||o.ownerDocument==E||(ui(o),n=!ci);s=m[a++];)if(s(o,t||E,n)){i.push(o);break}r&&(yi=f)}y&&((o=!s&&o)&&d--,e)&&l.push(o)}if(d+=u,y&&u!==d){for(a=0;s=v[a++];)s(l,c,t,n);if(e){if(0<d)for(;u--;)l[u]||c[u]||(c[u]=Ti.call(i));c=hr(c)}Ri.apply(i,c),r&&!e&&0<c.length&&1<d+v.length&&T.uniqueSort(i)}return r&&(yi=f,ai=p),l},y?nr(i):i))).selector=e}return a},oi=T.select=function(e,t,n,i){var r,o,a,s,d,u="function"==typeof e&&e,l=!i&&ii(e=u.selector||e);if(n=n||[],1===l.length){if(2<(o=l[0]=l[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&ci&&S.relative[o[1].type]){if(!(t=(S.find.ID(a.matches[0].replace($i,Zi),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=Hi.needsContext.test(e)?0:o.length;r--&&(a=o[r],!S.relative[s=a.type]);)if((d=S.find[s])&&(i=d(a.matches[0].replace($i,Zi),Ki.test(o[0].type)&&dr(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&lr(o))break;return Ri.apply(n,i),n}}return(u||ri(e,l))(i,t,!ci,n,!t||Ki.test(e)&&dr(t.parentNode)||t),n},w.sortStable=_.split("").sort(Ci).join("")===_,w.detectDuplicates=!!di,ui(),w.sortDetached=ir(function(e){return 1&e.compareDocumentPosition(E.createElement("fieldset"))}),ir(function(e){return e.innerHTML=$().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||rr("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&ir(function(e){return e.innerHTML=$().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||rr("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ir(function(e){return null==e.getAttribute("disabled")})||rr(Ni,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var gr=mi.Sizzle;T.noConflict=function(){return mi.Sizzle===T&&(mi.Sizzle=gr),T},r.exports?r.exports=T:mi.Sizzle=T;mr=p(t.exports),(vr=C.extend(function(){return vr.Sizzle.apply(this,arguments)},mr)).reset=function(){vr.Sizzle=mr,vr.matchesSelector=mr.matchesSelector,vr.matches=mr.matches},vr.intercept=function(e,t="Sizzle"){vr[t]=C.wrap(vr[t],e)},vr.reset();var mr,vr,yr=vr;function k(e,t){var n,i=this;if(e&&e instanceof k)return e;if(!(i instanceof k))return new k(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=C.toArray(r.childNodes)}else if(C.isString(e)){t instanceof k&&(t=0<t.length?t[0]:null);try{n=yr(e,t)}catch(o){n=[]}}else n=[e];else n=[];return C.each(n,function(e,t){i[t]=e}),i.context=t,i.length=n.length,"undefined"!=typeof Symbol&&Symbol.iterator&&(i[Symbol.iterator]=function*(){for(const e of n)yield e}),i}function br(){this.ownerKey="_pendo_"+at(8)}C.extend(br.prototype,{cache(e){var t;return C.isObject(e)?((t=e[this.ownerKey])||(e[this.ownerKey]=t={}),t):{}},set(e,t,n){e=this.cache(e);return e[t]=n,e},get(e,t){return t===undefined?this.cache(e):e[this.ownerKey]&&e[this.ownerKey][t]},remove(e,t){var n=this.cache(e);delete n[t],t!==undefined&&!C.isEmpty(n)||(e[this.ownerKey]=undefined)}});var wr=new br,Sr=1;function Ir(e){return C.isNumber(e.eventPhase)&&e.eventPhase===Sr}function Er(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?ut("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),()=>{Cr(e,t,n,i)}):C.noop}function Cr(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?ut("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var xr=function(e){var t=Yn.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},_r={add(t,e){var n=wr.get(t),i=(n.handle||(n.handle=function(e){_r.dispatch(t,e)}),e.id=C.uniqueId(),e.capture?"captureEvents":"bubbleEvents"),i=n[i]=n[i]||{},i=i[e.type]=i[e.type]||[];return i.length||Er(t,e.type,n.handle,e.capture),i.push(e),()=>{k.event.remove(t,e.type,e.handler,e.capture)}},dispatch(r,o){var e,t,a;r&&(e=(wr.get(r,"captureEvents")||{})[o.type]||[],t=(wr.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=wr.get(o)).ignore&&(a.handled=a.handled||{},C.each(t.slice(),function(e){var t=!!e.capture===Ir(o),n=(n=o,C.isNumber(n.eventPhase)&&2===n.eventPhase),t=!t&&!n;if(!(xr(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!ge(e.selector)||0<k(xr(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){x.error(i)}}}))},remove(e,t,n,i){var r=wr.get(e);if(r){if(C.isFunction(n)){var o=i?r.captureEvents:r.bubbleEvents;if(!o)return;var a=o[t];if(!a)return;var s=C.findIndex(a,function(e){return e.handler===n});0<=s&&a.splice(s,1),a.length||(delete o[t],Cr(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],Cr(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],Cr(e,t,r.handle));C.isEmpty(r.captureEvents)&&C.isEmpty(r.bubbleEvents)&&(wr.remove(e,"captureEvents"),wr.remove(e,"bubbleEvents"),wr.remove(e,"handle"))}},trigger(e){var t=wr.get(e);if(!t.pendoStopped)if(e.bubbles){var n=xr(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=Yn.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),Ir(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)_r.dispatch(o[i],e);(e=_r.clone(e)).eventPhase=2}for(2!==e.eventPhase||t.pendoStopped||(_r.dispatch(n,e),(e=_r.clone(e)).eventPhase=3),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)_r.dispatch(o[i],e)}}else _r.dispatch(xr(e),e)},clone(e){var t=C.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",wr.ownerKey]),e=Yn.getComposedPath(e);return e&&(t.composedPath=C.constant(e)),t},$:{on(e,n,i,r){return C.isFunction(n)&&(r=i,i=n,n=null),e=e.split(" "),this.each(function(t){C.each(e,function(e){_r.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},Tr=C.extend(Rr,{get:function(e,t){return Rr({method:"GET",url:e,headers:t})},post:Ar,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",Ar(e,t=JSON.stringify(t),n)},urlFor:function(e,t,n){if(C.isArray(t))i=t;else{if(!C.isObject(t))return e||"";i=C.keys(t)}var i=C.map(i,function(e){return C.isArray(t)?vt(e):vt(e)+"="+vt(t[e])}).join("&"),r=(e=e.split("#",2))[0],o=C.contains(r,"?");return[r,i?(o?"&":"?")+i:"",(n=void 0!==n?n:e[1])?"#"+n:""].join("")},supported(){return void 0!==kr()}});function kr(){return window.XMLHttpRequest||ActiveXObject}function Rr(e){var t=y.defer(),n=new(kr())("MSXML2.XMLHTTP.3.0");return n.open(e.method||"GET",e.url,!e.sync),C.each(e.headers,function(e,t){n.setRequestHeader(t.toLowerCase(),e)}),n.onreadystatechange=function(){var e;4===n.readyState&&(e=function(e){var t={status:e.status};try{t.data=JSON.parse(e.responseText)}catch(n){t.data=e.responseText}return t}(n),200<=n.status&&n.status<300?t.resolve(e):t.reject(e))},e.withCredentials&&(n.withCredentials=!0),e.data?n.send(e.data):n.send(),t.promise}function Ar(e,t,n){return Rr({method:"POST",url:e,data:t,headers:n})}var Or,Nr=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},Mr=function(){return f.get("annotateUrl")||Ur()||f.get("sanitizeUrl")||f.get(Jr)||f.get("xhrWhitelist")},Lr=function(){return Ur()?{href:Dr(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},Fr=function(){return new Jn(window.location.href)},Pr=function(){var e,t,n,i;return Mr()?(e=Fr(),Ur()&&(e.href=Dr(e.href)),Nr()?(t=R.electronResourcesPath(),n=R.electronUserDirectory(),i=R.electronAppName(),("https://"+e.href.replace(t,i)).replace(e.origin+n,i).replace(R.electronUserHomeDirectory(),"").replace("file:///","")):Kr(e.href)):g.getters["location/href"]()},Dr=function(e){return e.match(/(.+?)(?:#|$)/)[1]},Ur=function(){return!0===f.get("ignoreHashRouting")},Gr=500;function Br(){return C.isUndefined(Or)&&function e(){qr(),Or=Ut(e,Gr)}(),()=>{clearTimeout(Or)}}var zr=function(e){var t;try{t=Pr()}catch(n){}return t},Hr=[],jr=!1,Wr=null;function qr(){var t=Lr().href;Wr!=t&&(Wr=t,C.map(Hr,function(e){e(t)}))}var Jr="queryStringWhitelist";function Vr(e){var t=f.get("sanitizeUrl");return C.isFunction(t)?t(e):e}function Kr(e){e=e||Lr().href;var t=f.get("annotateUrl");if(t)if(C.isFunction(t))try{var n,i,r,o=t();return o&&(C.isObject(o)||C.isArray(o))?(n=o.exclude,i=o.include,r=o.fragment,delete o.fragment,(n&&C.isArray(n)||i&&(C.isArray(i)||C.isObject(i)))&&(n&&(e=Zr(e,null,n,!0)),o=i||{}),Tr.urlFor(e,o,r)):e}catch(a){x.error("customer-provided `annotateUrl` function threw an exception",{error:a})}else x.error("customer-provided `annotateUrl` must be of type: function");return e}function $r(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function Zr(e,t,n,i){e=e||zr(),t=t||$r(e).substring(1),o=(r=e.indexOf(t))+t.length;var r=e.substring(0,r),o=e.substring(o);return(r=(t=C.isArray(n)?Xr(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var Yr,Xr=function(e,t,n){return n&&C.contains(t,"*")?"":(e=Qr(e),e=n?C.omit(e,t):C.pick(e,t),eo(e))},Qr=function(e){e=e.split("&");return C.reduce(e,function(e,t){return(t=t.split("="))[0]&&(e[t[0]]=t[1]&&mt(t[1])),e},{})},eo=function(e){return C.reduce(e,function(e,t,n){return t&&(n+="="+t),e&&(e+="&"),e+n},"")},R={watch:function(e){const n=[];x.info("Initializing Pendo URL Watcher");var i,t=f.get("location.pushState")&&De.supportsHistoryApi();return jr||(t&&(i=window.history,C.each(["pushState","replaceState"],function(e){var t=i[e];i[e]=C.wrap(i[e],function(e){var t=e.apply(i,C.toArray(arguments).slice(1));return Ut(qr,0),t}),n.push(()=>{i[e]=t})}),n.push(Er(window,"popstate",qr))),De.supportsHashChange()&&n.push(Er(window,"hashchange",qr)),!1!==t&&De.supportsHashChange()||n.push(Br()),jr=!0),Hr.push(e),()=>{C.each(n,function(e){e()}),Hr.length=0,jr=!1}},get:zr,externalizeURL:function(e,t,n){n=n||f.get(Jr);return Vr(Zr(e,t,n=C.isFunction(n)?n():n,!1))},startPoller:Br,getWindowLocation:Lr,clear:function(){Hr=[]},isElectron:Nr,electronUserDirectory:function(){return window.process.env.PWD||""},electronAppName:function(){return window.process.env.npm_package_name||""},electronUserHomeDirectory:function(){return window.process.env.HOME||""},electronResourcesPath:function(){return window.process.resourcesPath||""}};function to(){var e=f.getLocalConfig("dataHost");return e||((e=f.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:ze)}function no(){Yr=to()}function io(){var e=f.get("contentHost")||f.get("assetHost")||He;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function ro(e){return io()+"/"+(je?je+"/":"")+e}function oo(){var e=f.get("allowPartnerAnalyticsForwarding",!1)&&f.get("adoptAnalyticsForwarding",!1);return f.get("trainingPartner",!1)||e}var ao=3,so=1,uo=9,lo=11,co=4;function A(e){var t;if((t=e)&&t.nodeType===so)try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(n){}}function po(e,t){var n;return!(!e||!C.isFunction(e.getPropertyValue))&&(n=[e.getPropertyValue("transform")],void 0!==t&&C.isString(t)&&n.push(e.getPropertyValue("-"+t.toLowerCase()+"-transform")),C.any(n,function(e){return e&&"none"!==e}))}function ho(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function fo(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function go(e){return C.isNumber(e)?e:0}function mo(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!yo(e)?null:e}function vo(e){return po(A(e),Te)&&isNaN(Ie)}function yo(e){if(e)return(e=A(e))&&(C.contains(["relative","absolute","fixed"],e.position)||po(e,Te))}function bo(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=yo(t)?t:mo(t,n),i=t?wo(t):{top:0,left:0},e=wo(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+=go(t.scrollTop),i.left+=go(t.scrollLeft)),i.top-=go(t.clientTop),i.left-=go(t.clientLeft)):(i.top+=ho(n),i.left+=fo(n)),i.bottom=i.top+i.height,i.right=i.left+i.width,i}function wo(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}}var So=void 0===(e=f.get("pendoCore"))||e,Io=function(e,t,n){e=Yr+"/data/"+e+"/"+t,t=C.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function Eo(){return C.compact([I.apiKey].concat(I.additionalApiKeys))}var Co=function(e){return e+="v"+We,_o(Io("log.gif",I.apiKey,{msg:e,version:We}))};function xo(e){try{var t=Yr+"/data/errorlog?apiKey="+I.apiKey,n={error:e,version:"v"+We,visitorId:b()},i=To.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):Tr.postJSON(t,n);return i.then(function(){x.info("successfully wrote error")},function(e){x.info("error writing error:"+e)})}catch(r){return x.info("Failed to write error to server using POST endpoint: "+r),Co("Failed to write error to server using POST endpoint: "+r)}}function _o(e){var t,n;return Oo()?(t=y.defer(),Er(n=new Image,"load",t.resolve),Er(n,"error",t.reject),n.src=e,t.promise):y.resolve()}function To(e,t={}){t=C.extend({},{method:"GET",keepalive:!0},t);return fetch(e,t)}function ko(e,t){return navigator.sendBeacon(e,t)}To.supported=function(){try{return C.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(e){return!1}};var Ro=!(ko.supported=function(){return C.isFunction(navigator.sendBeacon)}),Ao=function(){var e=Oo();return Ro=!0,e&&m["transmit:locked"].trigger(),"Pendo Agent locked. No more events will be written."},Oo=function(){return!Ro&&So},No=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test(Po(e))}catch(n){return!1}},Mo=function(e,t){try{var n;No(e,t)||(n=Ye.call(Po(e))+" "+t,Fo(e,n))}catch(i){}},Lo=function(e,t){try{var n,i;No(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=Po(e).replace(n," "),Fo(e,i))}catch(r){}},Fo=function(e,t){C.isString(e.className)?e.className=t:e.setAttribute("class",t)},Po=function(e){try{var t=e.className;return(C.isString(t)||!ge(t)?t:e.getAttribute("class"))||""}catch(n){return""}},Do=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},Uo={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},Go=function(e,t){t=function(e){if(C.isString(e)){var t=e.split(";");var n;var i;var r;var o;e={};for(r=0;r<t.length;r++){n=t[r];o=n.indexOf(":");i=n.substring(0,o);e[i]=n.substring(o+1)}}return e}(t);Bo(e,t)},Bo=function(a,e){C.each(e,function(e,t){if(""!==(t=Ye.call(t))){var n=Do(t),i=(!C.isNumber(e)||isNaN(e)||Uo[n]?C.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=Ye.call(r.substring(0,i));a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=Ye.call(e)}catch(o){x.info("failed to set style: "+t+" with value "+e)}}})},zo=function(){return Ue()?{width:document.documentElement.offsetWidth||0,height:document.documentElement.offsetHeight||0}:{width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}},Ho=function(e){var t=zo(),n=ho(),i=fo();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function jo(t){return C.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function Wo(e,t=window){var n;return function(e){var t,n=e;for(;n;){if(!(t=A(n)))return;if("fixed"===t.position)return!isNaN(Ie)||!Qo(n);n=n.parentNode}return}(e)?((n=wo(e)).fixed=!0,jo(n)):jo(bo(e,Ko(t.document),t))}var qo=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},Jo=C.compose(function(e){return Array.prototype.slice.call(e)},function(e,t){try{return yr(e,t)}catch(n){return Co("error using sizzle: "+n),t.getElementsByTagName(e)}}),Vo=function(e,t){try{return t.children.length+t.offsetHeight+t.offsetWidth-(e.children.length+e.offsetHeight+e.offsetWidth)}catch(n){return x.info("error interrogating body elements: "+n),Co("error picking best body:"+n),0}},Ko=function(e){e=e||document;try{var t=Jo("body",e);return t&&1<t.length?(t.sort(Vo),t[0]||e.body):e.body&&e.body.tagName&&"body"!==e.body.tagName.toLowerCase()?e.documentElement:e.body}catch(n){return Co("Error getting body element: "+n),e.body}};function $o(e){if(e&&e.parentNode){var t=e.parentNode,n=e;if(!t)return[];var i=[];if(t.childNodes)for(let e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];1===r.nodeType&&r!==n&&i.push(r)}return i}return[]}function Zo(e){if(yr.contains(document,e))return!0;for(;e&&e.parentNode||Yn.isElementShadowRoot(e);)e=Yn.getParent(e);return e===document}var Yo=function(e){var t=Ko();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.bottom=t.top+t.height,t):((t=Wo(e)).right=t.left+t.width,t.bottom=t.top+t.height,t)},Xo=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function Qo(e){for(var t=e&&e.parentNode;t;){if(po(A(t),Te))return 1;t=t.parentNode}}var ea=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if(Zo(e))for(i=e;i;)if(Yn.isElementShadowRoot(i))i=i.host;else{if(i===r)return null;if(!(o=A(i)))return null;var o,a=o.position;if(i!==e&&t.test(o.overflow+o.overflowY+o.overflowX))return i.parentNode!==r||(o=A(r))&&!C.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&Qo(i))i=mo(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function ta(e,t){e=A(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?na.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?na.BOTH:t.test(e.overflowY)?na.Y:t.test(e.overflowX)?na.X:t.test(e.overflow)?na.BOTH:na.NONE}var na={X:"x",Y:"y",BOTH:"both",NONE:"none"};function ia(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&Zo(e)}function ra(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 oa(e){if(e){if(C.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function aa(e,t,n){const i=[];var r=oa(document.documentElement);let o=oa(ea(t)),a=0;for(;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=oa(ea(o)),a++;return()=>{C.each(C.compact(i),function(e){e()}),i.length=0}}const sa=['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"].join(", ");function da(e,t,n){var i=Yo(t),t=ta(t,n);if(t!==na.BOTH||Xo(e,i)){if(t===na.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===na.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function ua(e){if(e){if(ia(e))return 1;var t=Yo(e);if(0!==t.width&&0!==t.height){var n=A(e);if(!n||"hidden"!==n.visibility){for(var i=e;i&&n;){if("none"===n.display)return;if(parseFloat(n.opacity)<=0)return;n=A(i=i.parentNode)}return 1}}}}function la(e,t){if(!ua(e))return!1;if(!ia(e)){for(var n=Yo(e),i=ea(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!da(n,i,t))return!1;i=ea(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=fo(),e+=ho()),o<=0||e<=0)return!1}}return!0}function ca(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,d=Yo(e),u=ea(e,s);if(!ua(e))return!1;for(;u;){if(t=Yo(u),(o=ta(u,a))!==na.NONE&&(i=n=0,o!==na.Y&&o!==na.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!==na.X&&o!==na.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))),!da(d,u,s))return!1;u=ea(u,s)}return!0}function pa(e){for(var t,n,i,r,o,a=/(auto|scroll)/,s=Ko(),d=ea(e,a);d&&d!==s;)t=Yo(e),n=Yo(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),C.isFunction(d.scrollBy)?d.scrollBy(r,i):(d.scrollTop+=i,d.scrollLeft+=r),d=ea(d,a)}Mi={$:{findOrCreate(e){return 0<this.length?this:k(e)},find(e){var t=k();return t.context=this.context,this.each(function(){k(e,this).each(function(){t[t.length++]=this})}),t},each(e){for(var t=0,n=this.length;t<n;++t)e.call(this[t],this[t],t);return this},html(e){return e===undefined?this.length?this[0].innerHTML:this:this.each(function(){this.innerHTML=e})},text(e){var t="innerText"in document.body;return e===undefined?t?this.length?this[0].innerText:this:this.length?this[0].textContent:this:this.each(function(){Go(this,{"white-space":"pre-wrap"}),t?this.innerText=e:this.textContent=e})},addClass(e){return e=e.split(/\s+/),this.each(function(t){C.each(e,function(e){Mo(t,e)})})},removeClass(e){return e=e.split(/\s+/),this.each(function(t){C.each(e,function(e){Lo(t,e)})})},hasClass(e){e=e.split(/\s+/);var n=!0;return 0!==this.length&&(this.each(function(t){C.each(e,function(e){n=n&&No(t,e)})}),n)},toggleClass(e){return e=e.split(/\s+/),this.each(function(t){C.each(e,function(e){(No(t,e)?Lo:Mo)(t,e)})})},css(e){return this.each(function(){Go(this,e)}),this},appendTo(e){return k(e).append(this),this},append(e){var t=this;return k(e).each(function(){t.length&&t[0].appendChild(this),Zo(this)&&C.each(yr("script",this),ra)}),t},prependTo(e){return k(e).prepend(this),this},prepend(e){var t,n;return this.length&&(t=this[0],n=t.childNodes[0],k(e).each(function(){n?k(this).insertBefore(n):k(this).appendTo(t)})),this},getParent(){var e=k(this)[0];if(e&&e.parentNode)return k(e.parentNode)},insertBefore(e){e=k(e)[0];e&&e.parentNode&&(e.parentNode.insertBefore(this[0],e),Zo(document))&&C.each(yr("script",this[0]),ra)},remove(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),this},attr(e,t){return C.isObject(e)?(this.each(function(){C.each(e,function(e,t){this.setAttribute(t,e)},this)}),this):t!==undefined?(this.each(function(){this.setAttribute(e,t)}),this):0<this.length?this[0].getAttribute(e):void 0},closest(e,t){for(var n=this[0];n&&!yr.matchesSelector(n,e);)if((n=Zn(n))===document||t&&yr.matchesSelector(n,t))return k();return k(n)},eq(e){return k(this[e])},height(e){if(this.length)return e===undefined?this[0].offsetHeight:(this[0].style.height=e+"px",this)},width(e){if(this.length)return e===undefined?this[0].offsetWidth:(this[0].style.width=e+"px",this)},focus(){return this.each(function(){C.isFunction(this.focus)&&this.focus()})}}};class ha{constructor(e=Ko(),t={attributes:!0,childList:!0,subtree:!0}){if(this.listeners=[],this._teardown=()=>{},De.MutationObserver){const n=new(ut("MutationObserver"))((e,t)=>{this.signal()});n.observe(e,t),this._teardown=()=>n.disconnect}else{const i=Ut(()=>{this.signal()},500);this._teardown=()=>{clearTimeout(i)}}}signal(){C.each(this.listeners,e=>{e.get()})}addObservers(...e){this.listeners=[].concat(this.listeners,e)}teardown(){this._teardown()}}_i=function(){function e(e){this._object=e}return e.prototype.deref=function(){return this._object},e};var fa="function"==typeof(r=window.WeakRef)&&/native/.test(r)?r:_i();function ga(e,t){var n,i;return e.tagName&&-1<["textarea","input"].indexOf(e.tagName.toLowerCase())?(n=e.value,i=t,n.length<=i?n:ba(n.substring(0,i))):ma(e,t)}function ma(e,t=128){var n,i="",r=e.nodeType;if(r===ao||r===co)return e.nodeValue;if((n=e).tagName&&"textarea"!=n.tagName.toLowerCase()&&(r===so||r===uo||r===lo)){if(!e.childNodes)return i;for(var o,a=0;a<e.childNodes.length;++a){if(t<=(i+(o=ma(e.childNodes[a],t-i.length))).length)return i+ba(o.substring(0,t-i.length));i+=o}}return i}function va(e){return 55296<=e&&e<=56319}function ya(e){return 56320<=e&&e<=57343}function ba(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(va(t)||ya(t)){if(1===e.length)return e.slice(0,-1);if(va(t))return e.slice(0,-1);if(ya(t))if(!va(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}class wa{constructor(e){this.listeners={},this.events=[],this.cssSelector=e}get(){let t=this.elRef&&this.elRef.deref();var e=Zo(t);if(!t||!e){if(t&&!e&&this.teardown(t),!(t=k(this.cssSelector)[0]))return undefined;C.each(this.events,e=>{t.addEventListener(e,e=>this.onEvent(e))}),this.elRef=new fa(t)}return t}getText(e=1024){return ga(this.get(),e)}addEventListener(e,t){var n=this.get();this.events.indexOf(e)<0&&(this.events.push(e),n)&&n.addEventListener(e,e=>this.onEvent(e)),this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t)}onEvent(t){var e=t.type;C.each(this.listeners[e],e=>e(t))}teardown(t=this.get()){t&&C.each(this.events,e=>t.removeEventListener(e,this.onEvent))}}function Sa(t){if(!t)return!1;if(t===window.location.origin)return!0;if(t===to())return!0;if(t===io())return!0;var e=[/^https:\/\/(app|via|adopt)(\.eu|\.us|\.gov|\.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|govramp|jp-prod|hsbc|au)\.appspot\.com$/,/^https:\/\/hotfix-(ops|app)-([0-9]+-dot-)pendo-(io|eu|us1|govramp|jp-prod|hsbc|au)\.appspot\.com$/,/^https:\/\/pendo-(io|eu|us1|govramp|jp-prod|hsbc|au)-static\.storage\.googleapis\.com$/,/^https:\/\/(us1\.)?cdn(\.eu|\.jpn|\.gov|\.hsbc|\.au)?\.pendo\.io$/],n=(Ke()||(e=e.concat([/^https:\/\/([a-zA-Z0-9-]+\.)*pendo-dev\.com$/,/^https:\/\/([a-zA-Z0-9-]+-dot-)?pendo-(dev|test|io|us1|govramp|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}$/,new RegExp("^https://pendo-"+Be+"-static\\.storage\\.googleapis\\.com$")])),f.get("adoptHost"));if(n&&t==="https://"+n)return!0;return!!C.contains(f.get("allowedOriginServers",[]),t)||C.any(e,function(e){return e.test(t)})}function Ia(e){var t;if(C.isString(e))return t=(t=$r(e).substring(1))&&t.length?Qr(t):{},e=C.last(C.first(e.split("?")).split("/")).split("."),{filename:C.first(e),extension:e.slice(1).join("."),query:t}}function Ea(e,t){var n;f.get("guideValidation")&&De.sri&&(n=Ia(t),t=C.find(["sha512","sha384","sha256"],function(e){return!!n.query[e]}))&&(e.integrity=t+"-"+(t=n.query[t],C.isString?t.replace(/-/g,"+").replace(/_/g,"/"):t),e.setAttribute("crossorigin","anonymous"))}C.extend(k,{data:wr,event:_r,removeNode:qo,getClass:Po,hasClass:No,addClass:function(e,t){var n;"string"==typeof e?(n=k(e),C.map(n,function(e){Mo(e,t)})):Mo(e,t)},removeClass:function(e,t){var n;"string"==typeof e?(n=k(e),C.map(n,function(e){Lo(e,t)})):Lo(e,t)},getBody:Ko,getComputedStyle:A,getClientRect:Yo,intersectRect:Xo,getScrollParent:ea,isElementVisible:la,Observer:ha,Element:wa,scrollIntoView:pa,getRootNode:oa}),C.extend(k.prototype,_r.$,Mi.$);var Ca,xa=function(e){var t=0===f.get("allowedOriginServers",[]).length,n=oo();return!(!t&&!n&&(t=Be,n=Y,!/prod/.test(t)||ie(n)))||Sa(e)},_a=function(e,t,n=!1){try{var i,r="text/css",o="text/javascript";if(C.isString(e)&&(e={url:e}),!xa((u=e.url,new Jn(u).origin)))throw new 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,Ea(d,e.url),a=d}else{if(dt())return(i=document.createElement("script")).addEventListener("load",function(){t(),qo(i)}),i.type=o,i.src=$(I).createScriptURL(e.url),Ea(i,e.url),document.body.appendChild(i),{};(i=document.createElement("script")).type=o,i["async"]=!0,i.src=$(I).createScriptURL(e.url),Ea(i,e.url),a=i,t=C.wrap(t,function(e,t){k.removeNode(i),t?n&&e(t):e.apply(this,C.toArray(arguments).slice(1))})}return s.appendChild(a),Ta(a,e.url,t),a}catch(l){return{}}var u},Ta=function(e,t,n){var i=!1;ge(n)&&(e.onload=function(){!0!==i&&(i=!0,n(null,t))},e.onerror=function(){!0!==i&&(i=!0,n(new 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())&&(Ut(function(){var e;i||((e=new Image).onload=e.onerror=function(){!0!==i&&(i=!0,n(null,t))},e.src=t)},500),Ut(function(){i||Co("Failed to load "+t+" within 10 seconds")},1e4))},ka=function(e){var t=JSON.parse(e.data),n=e.origin;x.debug(I.app_name+": Message: "+JSON.stringify(t)+" from "+n),ja(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},Ra=function(e){Oa(Fa)(Aa(e))},Aa=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(r){}};function Oa(t){return function(e){if(e&&Sa(e.origin))return t.apply(this,arguments)}}var Na={disconnect(e){},module:function(e){Ha(e.moduleURL)},debug:function(e){Ja(ka)}},Ma=function(e,t){Na[e]=t},La=function(e){delete Na[e]},Fa=function(e){var t;e&&(t=e.data)&&ge(Na[t.type])&&Na[t.type](t,e)},Pa={},Da=function(e){if(Pa[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},Ua=function(e){return ge(Pa[e])},Ga=function(e){if(Pa)for(var t in Pa)if(0<=t.indexOf(e))return t;return null},Ba=[],za=function(){var e;Ba.length<1||(e=Ba.shift(),Ua(e))||_a(e,function(){Da(e),za()})};var Ha=function(e){!function(e){var t={"/js/lib/ckeditor/ckeditor.js":1};C.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});try{var n=new Jn(e);return Sa(n.origin)&&t[n.pathname]}catch(i){x.debug("Invalid module URL: "+e)}}(e)||(Ba.push(e),1<Ba.length)||za()},ja=function(e,t,n){var i,r=C.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=Ca||qa(),n="*"),t.guid=r,e&&C.isFunction(e.postMessage)&&(i=JSON.stringify(t),e.postMessage(i,n))}catch(o){t=o&&o.message||"";x.info("Failed to postMessage: "+t)}return r},Wa=function(){return window!=window.top},qa=function(){var e=new RegExp("^"+wt(Yr).replace(/^https?:/,"https?:")),t=f.get("forceParentDesigner");return!Ke()&&t||e.test(location.href)?window.parent:window.top},Ja=function(e){var t;return ge(window.addEventListener)&&C.isFunction(window.addEventListener)&&(t=Oa(e),window.addEventListener("message",t,!1)),function(){ge(window.removeEventListener)&&C.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},Va=C.memoize(function(){return f.get("restrictP1Access")}),Ka=[],$a=[],Za=12e4,Ya=16,Xa=1900,Qa=65536,es=function(e){return!(!e||""===e)},ts=function(){return R.get()},ns={flush:C.noop,flushBy:C.noop,flushEvents:as,flushTrackEvents:as,flushSilos:as,flushTrackEventSilos:as,flushBeacons:as,flushNow:as,flushLater:ss,flushEvery:ds,flushStop:us,beacons:[],silos:[],trackEventSilos:[],lock:Ao,unlock:function(){if(!Oo())return ls(),function(){var e=!Oo();return Ro=!1,e&&m["transmit:unlocked"].trigger(),"Pendo Agent unlocked. Events will be written."}()}},is=[];function rs(e){is.push(e)}function os(e){e=is.indexOf(e);0<=e&&is.splice(e,1)}function as(e,t){try{C.each(is,function(e){e.flush&&e.flush(t)})}catch(n){x.critical("unhandled error while flushing event cache",{error:n})}}function ss(e){return t=C.partial(as,!0),n=e,n=parseInt(n,10)||0,t[n]||(i=Ut(function(){t(),t[n]()},n),t[n]=function(){window.clearTimeout(i),delete t[n]});var t,n,i}function ds(e){var t;if(e=parseInt(e,10)||0,C.isObject(ds.intervals)||(ds.intervals={}),!ds.intervals[e])return t=window.setInterval(as,e),ds.intervals[e]=function(){clearInterval(t),delete ds.intervals[e]}}function us(){var e=C.values(ds.intervals).concat([as]);C.map(e,function(e){C.isFunction(e)&&e()})}function ls(){C.each(is,function(e){e.clear&&e.clear()}),us()}function cs(e){try{return window.TextDecoder?JSON.parse((new TextDecoder).decode((t=e.split(".")[1],t=atob(t),Uint8Array.from(t,e=>e.codePointAt(0))))):JSON.parse(atob(e.split(".")[1]))}catch(n){return null}var t}function ps(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):(e=e.jwt,!(!C.isString(e)||!/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/.test(e))||(x.debug(t+"The jwt is invalid."),!1)):(x.debug(t+"Missing jwt and signingKeyName."),!1)}hs=null;var hs,fs={set:function(e){hs=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==hs?hs:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!f.get("enableSignedMetadata")&&(n=ps(e,t),f.get("requireSignedMetadata")&&!n?(x.debug("Pendo will not "+t+"."),!1):n?cs(e.jwt):void x.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}};class gs{constructor(e,t=100){this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}isEmpty(){return this.queue.length<=0}stop(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer}start(){this.stopped=!1}push(...e){this.queue.push(...e),this.next()}next(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)}incrementFailure(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t}pass(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e),this.failures.clear();e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()}fail(e,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,6))))}retryLater(e){this.timer=Ut(()=>{delete this.timer,this.next()},e)}failed(){return 0<this.failures.get(this.queue[0])&&null!=this.timer}send(e,t,n){return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(()=>this.pass(e,n),()=>this.fail(e,n))}drain(e,t=!0){if(this.queue.push(...e),this.failed())return $t.reject();var n=[];for(const i of this.queue)this.pending.has(i)?this.retryPending&&t&&!this.unloads.has(i)&&(this.incrementFailure(i),n.push(this.send(i,t,!1))):n.push(this.send(i,t,!1));return $t.all(n)}}const ms="unsentEvents";class vs{constructor(){this.events={}}send(t,n){var i=this.events[t];if(i){let e=i.shift();for(;e;)n.push(e),e=i.shift();delete this.events[t]}}push(e,t){var n=this.events[e]||[];n.push(t),this.events[e]=n}read(e){e.registry.addLocal(ms),this.events=JSON.parse(e.read(ms)||"{}"),e.clear(ms)}write(e){0<C.size(this.events)?e.write(ms,JSON.stringify(this.events),5184e5):e.clear(ms)}}var ys=new vs,bs="_PENDO_UNNAMED_",ws=5;function Ss(e,t,n,i,r,o){var a,s;a=f.get("dropAnonymous"),s=Tn(b()),!So||a&&s||(a=t,s=n,t=i,n=r,i=o,s={type:r=e,browser_time:v(),visitor_id:b({generate:!0}),account_id:Bn(),url:R.externalizeURL(s),props:a||{},eventProperties:n},s=sn.addTracerIds(s),"track"===r&&(s.track_event_name=t||bs),m.eventCaptured.trigger(s,i),es((o=s).url)&&function(e){if(f.get("freeNPSData"))return C.contains(Is,e.type);return 1}(o)&&("track"===e?Ps.push(o):Fs.push(function(e,t){try{if(!e.getters["monitoring/shouldFlush"]())return t;var n=e.getters["monitoring/payload"]();e.dispatch("monitoring/flush"),C.isEmpty(n)||(t.ops=n)}catch(i){}return t}(g,o))))}var Is=["load","meta","identify"];function Es(){var r=C.toArray(arguments);return function(e,t){var n=r.concat([t]);!function i(t,e){t<n.length&&n[t](e,function(e){i(t+1,e)})}(0,e)}}let Cs=0;function xs(e,t){e.sequence=Cs++,t(e)}function _s(e){return n=function(e,t){return e.push(t),e},i=e,function(e,t){t(i=n(i,e))};var n,i}function Ts(e,t){return oo()?ks("account_id")(e,t):t(e)}function ks(s){return function(e,t){if(!e.length)return t(e);for(var n=C.get(e[0],s),i=!0,r=1;r<e.length;r++)if(n!==C.get(e[r],s)){i=!1;break}if(i)return t(e);var o=e.slice(0,r),a=e.slice(r);t(o),t(a)}}function Rs(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function As(e,t,n){t=n[t-1]||C.last(n);return Math.ceil(e/t)}function Os(e,t){for(var n,i=0,r=(C.isFunction(t.overhead)?t.overhead:C.constant(0))(),o=0;o<e.length;++o){if(As(n=Rs(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(As(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(As(i+(n=Rs(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function Ns(){var e=fs.get();return C.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}var Ms,Ls,Fs,Ps;function Ds(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=I.squeezeAndCompress(e.slice()),e.JZB.length<=Qa)||1===e.length?t(e):(n=e.length/2,Ds(e.slice(0,n),t),void Ds(e.slice(n),t))}function Us(e,t){Oo()&&t(e)}function Gs(){return function(e,t){1===e.length&&e.JZB.length>Qa?(x.debug("Couldn't write event"),Co("Single item is: "+e.JZB.length+". Dropping."),xo(e.JZB)):t(e)}}function Bs(e,t){return Io(t.beacon+".gif",e,C.extend({v:We,ct:v(),jzb:t.JZB},t.params,t.auth))}function zs(e,t){return Io(t.beacon+".gif",e,C.extend({v:We,ct:v(),s:t.JZB.length},t.params))}function Hs(i){return function(e,t){e.params=C.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length;var n=fs.get();C.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function js(e,t){var n=oo(),i=C.first(e),i=C.get(i,"account_id");n&&i&&(e.params=C.extend({},e.params,{acc:it(i)})),t(e)}function Ws(e,t){var n=C.first(e),n=C.get(n,"props.source");n&&(e.params=C.extend({},e.params,{source:n})),t(e)}function qs(e){return JSON.stringify(C.extend({events:e.JZB},e.auth))}function Js(e){return e.status<200||300<=e.status?y.reject(new Error(`received status code ${e.status}: `+e.statusText)):y.resolve()}function Vs(e,t){return To(Bs(e,t)).then(Js)}function Ks(e,t){return fetch(zs(e,t),{method:"POST",keepalive:!0,body:qs(t),headers:{"Content-Type":"application/json"}}).then(Js)}function $s(e,t){var n=qs(t);return ko(zs(e,t),n)?y.resolve():y.reject()}function Zs(n){return function(e,t){return t.JZB?t.eventLength<=Xa&&!f.get("sendEventsWithPostOnly")?n.preferFetch&&!t.auth&&To.supported()?Vs(e,t):t.auth?Tr({method:"GET",url:Bs(e,t)}):_o(Bs(e,t)):n.allowPost&&t.eventLength<=Qa?To.supported()?Ks(e,t):ko.supported()?$s(e,t):Tr({method:"POST",url:zs(e,e=t),data:qs(e),headers:{"Content-Type":"application/json"}}):y.resolve():y.resolve()}}function Ys(n){return function(e,t){if(t.JZB){if(t.eventLength<=Xa&&!f.get("sendEventsWithPostOnly",!1)){if(!t.auth&&To.supported())return Vs(e,t);if(De.msie<=11)return Tr({method:"GET",url:Bs(e,t),sync:!0})}if(t.eventLength<=Qa&&n.allowPost){if(To.supported())return Ks(e,t);if(ko.supported())return $s(e,t);if(De.msie<=11)return Tr({method:"POST",url:zs(e,e=t),data:qs(e),sync:!0,headers:{"Content-Type":"application/json"}})}}return y.resolve()}}function Xs(e,t){e.length=0;var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);t(i)}function Qs(e){return Es(Us,Ts,Ds,(t=e.shorten,t=C.defaults(t||{},{fields:[],siloMaxLength:Qa}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],x.debug("Max length exceeded for an event"),C.each(t.fields,function(e){var t=i[e];t&&2e3<t.length&&(x.debug("shortening "+t+" and retrying"),i[e]=t.substring(0,2e3),delete n.JZB)})),e(n)}),Ds,Gs(),Hs(e),js,Ws,Xs);var t}class ed{constructor(e){this.queues=e}isEmpty(){return C.all(this.queues,e=>e.isEmpty())}stop(){C.each(this.queues,e=>e.stop())}push(){const t=C.toArray(arguments);C.each(this.queues,e=>e.push.apply(e,t))}drain(){const t=C.toArray(arguments);return y.all(C.map(this.queues,e=>e.drain.apply(e,t)))}}function td(o,a,s){a=a||Zs(o),s=s||Ys(o);e=o;var e=C.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey),e=C.map(e,(i,r)=>{var e=new gs(function(e,t,n){return n&&(e.params=C.extend({},e.params,{rt:n})),o.localStorageUnload&&t?(0===r&&ys.push(o.beacon,e),y.resolve()):(t?s:a)(i,e)});return e.onTimeout=function(){g.commit("monitoring/incrementCounter",o.beacon+"GifFailures")},e.retryPending=!0,e}),e=new ed(e);return ys.send(o.beacon,e),e}function nd(e,t){var n=f.get("analytics.excludeEvents");0<=C.indexOf(n,e.type)||t(e)}class id{constructor(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=td(e)}pause(e=1e4){var t=C.uniqueId();const n=this["locks"];n[t]=1;var i=()=>{n[t]&&(clearTimeout(r),delete n[t],this.flush())},r=Ut(i,e);return i}push(e){this.packageSilos(e,e=>{this.silos.push(e)})}clear(){this.cache.length=0,this.silos.length=0,this.sendQueue.stop()}flush({unload:e=!1,hidden:t=!1}={}){var{cache:n,silos:i}=this;if((0!==n.length||0!==i.length||!this.sendQueue.isEmpty())&&C.isEmpty(this.locks)){i.push(n.slice()),n.length=0;n=i.slice();i.length=0;const r=[];C.each(n,function(e){this.processSilos(e,function(e){r.push(e)})},this),e||t?this.sendQueue.drain(r,e):this.sendQueue.push(...r)}}}function rd(e){var i,r,t=Qs(e),n=Es((r=e.beacon,function(e,t){var n=f.get("excludeNonGuideAnalytics");"ptm"===r&&n||t(e)}),nd,xs,_s(e.cache),(i={overhead:Ns,lower:f.get("sendEventsWithPostOnly")?Qa:Xa,upper:Qa,compressionRatio:[.5*ws,.75*ws,ws]},function(e,t){for(var n=Os(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=Os(e,i)}));return new id(C.extend({processSilos:t,packageSilos:n},e))}var od=qn(function(e){var t,n,i;if((e=e||R.get())&&e!==od.lastUrl)return od.lastUrl=e,t=-1,Va()||Wa()&&(i=qa(),ja(i,{type:"load",url:location.toString()},"*")),x.debug("sending load event for url "+e),t={load_time:t="undefined"!=typeof performance&&C.isFunction(performance.getEntriesByType)&&!C.isEmpty(performance.getEntriesByType("navigation"))?(i=performance.getEntriesByType("navigation")[0]).loadEventStart-i.fetchStart:t},Wa()&&(t.is_frame=!0),"*"!==(n=St())&&(t.allowed_storage_keys=C.keys(n)),Ss("load",t,e),ss(),m.urlChanged.trigger(),!0});function ad(e){return"hidden"===e.visibilityState}od.reset=function(){od.lastUrl=null};const sd="visibilitychange",dd="pagehide",ud="unload";function ld(){this.serializers=C.toArray(arguments)}function cd(e,t){return e.tag=Yn.isElementShadowRoot(t)?"#shadow-root":t.nodeName||"",e}function pd(e){return ge(e)?""+e:""}function hd(e,t){return e.id=pd(t.id),e}function fd(e,t){return e.cls=pd(k.getClass(t)),e}C.extend(ld.prototype,{add(e){this.serializers.push(e)},remove(e){e=C.indexOf(this.serializers,e);0<=e&&this.serializers.splice(e,1)},serialize(n,i){return n?(i=i||n,C.reduce(this.serializers,function(e,t){return t.call(this,e,n,i)},{},this)):{}}});var gd=256,md=64,vd={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"]}};var yd=function(e,t,n){var i;return e&&e.nodeName?"img"==(i=e.nodeName.toLowerCase())&&"src"==t||"a"==i&&"href"==t?(i=e.getAttribute(t),Vr((i=i)&&0===i.indexOf("data:")?(x.debug("Embedded data provided in URI."),i.substring(0,i.indexOf(","))):i+"")):(i=t,e=(t=e).getAttribute?t.getAttribute(i):t[i],(!n||typeof e===n)&&e?C.isString(e)?Ye.call(e).substring(0,gd):e:null):null};function bd(t){var e,n,i;return C.isRegExp(t)&&C.isFunction(t.test)?function(e){return t.test(e)}:C.isArray(t)?(e=C.map(C.filter(t,C.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)):new RegExp("^"+e.value+"$","i")}),function(t){return C.any(e,function(e){return e.test(t)})}):C.isObject(t)&&t.regexp?(n=(n=/\/([a-z]*)$/.exec(t.value))&&n[1]||"",i=new RegExp(t.value.replace(/^\//,"").replace(/\/[a-z]*$/,""),n),function(e){return i.test(e)}):C.constant(!1)}function wd(e,t,n,i){try{var r,o=C.indexBy(t),a=C.filter(C.filter(e,function(e){return n(e.nodeName)||o[e.nodeName]}),function(e){return!i(e.nodeName)});return a.length<=md?C.pluck(a,"nodeName"):(r=C.groupBy(e,function(e){return o[e.nodeName]?"defaults":C.isString(e.value)&&e.value.length>gd?"large":"small"}),C.pluck([].concat(C.sortBy(r.defaults,"nodeName")).concat(C.sortBy(r.small,"nodeName")).concat(C.sortBy(r.large,"nodeName")).slice(0,md),"nodeName"))}catch(s){return x.error("Error collecting DOM Node attributes: "+s),[]}}function Sd(t,n){var e=bd(f.get("htmlAttributes")),i=bd(f.get("htmlAttributeBlacklist")),r=(i("title")||(t.title=yd(n,"title","string")),(t.tag||"").toLowerCase()),r=("input"===r&&(r+='[type="'+n.type+'"]'),t.attrs={},wd(n.attributes,vd[r]&&vd[r].attr,e,i));return C.each(r,function(e){t.attrs[e.toLowerCase()]=yd(n,e)}),t}function Id(e,t){var n;return t.parentNode&&t.parentNode.childNodes&&(n=C.chain(t.parentNode.childNodes),e.myIndex=n.indexOf(t).value(),e.childIndex=n.filter(function(e){return e.nodeType==so}).indexOf(t).value()),e}function Ed(i,e){var r;return f.get("siblingSelectors")&&e.previousElementSibling&&(r="_pendo_sibling_",this.remove(Ed),e=this.serialize(e.previousElementSibling),this.add(Ed),i.attrs=i.attrs||{},C.each(e,function(e,t){var n={cls:"class",txt:"pendo_text"}[t]||t;C.isEmpty(e)||(C.isObject(e)?C.each(e,function(e,t){e&&!C.isEmpty(e)&&(i.attrs[r+n+"_"+t]=e)}):i.attrs[r+n]=e)})),i}var Cd=new ld(cd,hd,fd,Sd,Id,Ed),xd=function(e){return"BODY"===e.nodeName&&e===Ko()||null===e.parentNode&&!Yn.isElementShadowRoot(e)},_d="pendo-ignore",Td="pendo-analytics-ignore",kd=function(e){var t={},n=t,i=e,r=!1;if(!e)return t;do{var o=i,a=Cd.serialize(o,e)}while(r||!st(a.cls,_d)&&!st(a.cls,Td)||(r=!0),n.parentElem=a,n=a,(i=Yn.getParent(o))&&!xd(o));return r&&(t.parentElem.ignore=!0),t.parentElem},Rd=["","left","right","middle"],t=function(e){return e},e=function(e,t){return e[t]},Ad=[["button",function(e){return e.which||e.button},function(){return!0},function(e,t){return Rd[t]}],["altKey",e,t,t],["ctrlKey",e,t,t],["metaKey",e,t,t],["shiftKey",e,t,t]],Od={click:function(e,t){for(var n=[],i=0;i<Ad.length;i++){var r=Ad[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}},Nd=function(t){try{if(!k.data.get(t,"counted")){k.data.set(t,"counted",!0);var n=xr(t),i=t.type,e={},r=Od[i];if(r&&(e=r(t,e)),k.data.get(t,"stopped")&&(e.stopped=!0),t.from&&C.isString(t.from)&&(e.from=t.from),n=(s=n).nodeType===ao?s.parentNode:s.nodeType===co?null:s.correspondingUseElement||s){var o=kd(n),a=(C.extend(o,e),od());if(a&&R.startPoller(),!o.ignore){let e;"click"===i&&(e=function(e){e=function(e){const n={};return{getEventProperties(){return n},addEventProperty(e,t){C.isString(e)&&!C.isUndefined(t)?n[e]=t:x.error("Failed to add click event property")},target:e}}(e),m.onClickCaptured.trigger(e),e=e.getEventProperties();if(!C.isEmpty(e))return e}(n)),Ss(i,{target:o},undefined,undefined,e,t),m.trigger("appUsage",o,t)}}else x.info("Invalid HTML target",{contexts:["event","dom","processing"]})}}catch(d){x.critical("pendo.io while handling event",{error:d})}var s};var Md=C.debounce(Nd,5e3,!0),Ld=function(e){const t=[];C.contains(e=e||["click","focus","submit","change"],"change")&&(e=C.without(e,"change"),t.push(()=>{Md.cancel()}),t.push(Er(document,"change",Md,!0)));var n,i=f.get("interceptElementRemoval")||f.get("syntheticClicks.elementRemoval"),r=f.get("syntheticClicks.targetChanged"),r=(t.push(function(t,e,n,i){var r,o,a=[],s=De.hasEvent("pointerdown"),d=s?"pointerdown":"mousedown",s=s?"pointerup":"mouseup",u=[],l={cloneEvent:function(e){e=k.event.clone(e);return e.type="click",e.from=d,e.bubbles=!0,e},down:function(e){o=!1,e&&(r=l.cloneEvent(e),n)&&l.intercept(e)},up:function(e){o=!1,e&&r&&i&&xr(r)!==xr(e)&&(o=!0,t(r))},click:function(e){r=null,o&&k.data.set(e,"ignore",!0),o=!1,n&&l.unwrap()},intercept:function(e){e=function(e){var t=[];for(;e&&!xd(e);)t.push(e),e=e.parentNode;return t}(xr(e));C.each(e,function(e){e=Fd(e,l.remove);a.push(e)})},remove:function(){r&&(t(r),r=null),l.unwrap()},unwrap:function(){0<a.length&&(C.each(a,function(e){e()}),a=[])},teardown:function mv(){l.unwrap(),C.each(u,function(e){e()})}};e&&(u.push(Er(document,d,l.down,!0)),u.push(Er(document,s,l.up,!0)),u.push(Er(document,"click",l.click,!0)));return l}(k.event.trigger,De.addEventListener,i,r).teardown),t.push((i=e,n=C.map(i,function(e){return c(document,e,Nd,!0)}),()=>{C.each(n,function(e){e()})})),t.push(function(e,t){if(t){const n=[];return n.push(Er(document,sd,()=>{ad(document)&&e(!0,!1)})),n.push(Er(window,dd,C.partial(e,!1,!0))),()=>C.each(n,function(e){e()})}return Er(window,ud,C.partial(e,!0,!0))}(function(e,t){t&&m.appUnloaded.trigger(),e&&m.appHidden.trigger()},f.get("preventUnloadListener"))),f.get("interceptStopPropagation",!0)),i=f.get("interceptPreventDefault",!0);return r&&t.push(Pd(window.Event,e)),i&&t.push(Dd(window.Event,["touchend"])),()=>{C.each(t,function(e){e()})}};function Fd(n,i){var e=["remove","removeChild"];try{if(!n)return C.noop;C.each(e,function(e){var t=n[e];if(!t)return C.noop;n[e]=C.wrap(t,function(e){return i&&i(),e.apply(this,C.toArray(arguments).slice(1))}),n[e]._pendoUnwrap=function(){if(!n)return C.noop;n[e]=t,delete n[e]._pendoUnwrap}})}catch(t){x.critical("ERROR in interceptRemove",{error:t})}return function(){C.each(e,function(e){if(!n[e])return C.noop;e=n[e]._pendoUnwrap;C.isFunction(e)&&e()})}}function Pd(n,e){var t=["stopPropagation","stopImmediatePropagation"];try{if(!n||!n.prototype)return C.noop;var i=C.indexBy(e);C.each(t,function(e){var t=n.prototype[e];t&&(n.prototype[e]=C.wrap(t,function(e){var t=e.apply(this,arguments);return i[this.type]&&(k.data.set(this,"stopped",!0),k.event.trigger(this)),t}),n.prototype[e]._pendoUnwrap=function(){n.prototype[e]=t,delete n.prototype[e]._pendoUnwrap})})}catch(r){x.critical("ERROR in interceptStopPropagation",{error:r})}return function(){C.each(t,function(e){e=n.prototype[e]._pendoUnwrap;C.isFunction(e)&&e()})}}function Dd(t,e){try{if(!t||!t.prototype)return C.noop;var i=C.indexBy(e),n=t.prototype.preventDefault;if(!n)return C.noop;t.prototype.preventDefault=C.wrap(n,function(e){var t,n=e.apply(this,arguments);return i[this.type]&&((t=k.event.clone(this)).type="click",t.from=this.type,t.bubbles=!0,t.eventPhase=Sr,k.event.trigger(t)),n}),t.prototype.preventDefault._pendoUnwrap=function(){t.prototype.preventDefault=n,delete t.prototype.preventDefault._pendoUnwrap}}catch(r){x.critical("ERROR in interceptPreventDefault",{error:r})}return function(){var e=t.prototype.preventDefault._pendoUnwrap;C.isFunction(e)&&e()}}function c(e,t,n,i){return e&&t&&n?(i&&!De.addEventListener&&(i=!1),k.event.add(e,{type:t,handler:n,capture:i})):C.noop}function Ud(e,t,n,i){e&&t&&n&&(i&&!De.addEventListener&&(i=!1),k.event.remove(e,t,n,i))}var Gd=function(e){k.data.set(e,"pendoStopped",!0),e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1},Bd=function(e,t){return"complete"!==(t=t||window).document.readyState?Er(t,"load",e):(e(),C.noop)},O=[],zd=[],Hd={};let jd={};function Wd(){return O}function qd(){return Jd(O)}function Jd(e){return C.filter(e,function(e){return!e.isFrameProxy})}function Vd(e){C.isArray(e)?(O=e,m.guideListChanged.trigger({guideIds:C.pluck(e,"id")})):x.info("bad guide array input to `setActiveGuides`")}var Kd=function(){let n=[];return{addGuide:e=>{var t;C.isEmpty(e)||(n=n.concat(e),C.each(n,e=>e.hide&&e.hide()),e=O,(t=C.difference(e,n)).length<e.length&&(Vd(t),g.dispatch("frames/changeGuideList",t)))}}}();function $d(t,n){return C.find(Xd(),function(e){return C.get(e,t)===n})||null}function N(e){return $d("id",e)}function Zd(e){return $d("name",e)}function Yd(e,t){return e&&e.id?(e=N(e.id)).findStepById(t):null}function Xd(){var e=C.values(jd);return e.length?O.concat(C.flatten(e)):O}var Qd="_pendo-guide-tt_",eu="_pendo-guide-mobile-tt_",tu=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},nu=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)},iu=function(e){return!!C.get(e,"attributes.form")};function ru(){return"undefined"!=typeof selmo&&selmo.isPreviewing}function ou(){return!!(ru()&&zo().width<=320)||De.isMobileUserAgent()}function au(){var e=au.attachPoint;if(null==e){var t=f.get("guides.attachPoint");if(C.isString(t)){try{e=yr(t)[0]}catch(n){x.info('Error finding guide attach point "'+t+'"')}e=e||document.createElement("div")}else e=!!C.isFunction(t)&&t();au.attachPoint=e}return e||Ko()}var su=function(e){var t=Hd[e.guideId];if(t){t=t.element();if(Zo(t)&&t.id==="_pendo-badge_"+e.id)return t}},du=function(e){var t;return e?(t=e.getGuide(),t="building-block"===C.get(t,"attributes.type")||!nu(t),!e.overrideElement&&t&&(e.overrideElement=su(e)),e.targetElement=uu(e),e.overrideElement||e.targetElement):(x.info("Can't get element for null step"),null)},uu=function(e){e=e.elementPathRule||null,e=e?yr(e):[Ko()];return 0===e.length?null:C.first(e)};function lu(e){var t=C.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function cu(e,t,n){var i,r,o,e=Wo(e),t=Wo(t),a=(e=e,a=t,i=Math.min(e.top,a.top),r=Math.min(e.left,a.left),o=Math.max(e.top+e.height,a.top+a.height),e=Math.max(e.left+e.width,a.left+a.width),{height:Math.abs(o-i),width:Math.abs(e-r),top:i,left:r});!1!==Ho(a)||t.fixed||(o=function(e,t,n,i){var r={x:e.left+e.width-t.width,y:0};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),C.contains([na.X,na.BOTH],i)&&(r.x=0);C.contains([na.Y,na.BOTH],i)&&(r.y=0);return r}(a,zo(),n,ta(Ko(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}function pu(e,t,n,i,r){var o,a=C.toArray(arguments).slice(1),s=e.apply(this,a);return n||oa(o=au())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function hu(){return g.getters["frames/isLeader"]()}function fu(e){return g.dispatch("frames/updateFrameVisibility",{visibility:e})}gu=pn.call({}),mu={validateGuide:1,validateLauncher:1,validateGlobalScript:1},vu={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1},C.each(["ready","onClickCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","validateGuide","validateLauncher","validateGlobalScript"],function(t){vu[t]&&m[t].on(function(e){return yu[t].apply(yu[t],e.data)}),gu[t]=function(e){return C.isFunction(e)?gu.on(t,e):gu[mu[t]?"triggerAsync":"trigger"].apply(gu,[t].concat(C.toArray(arguments)))}});var gu,mu,vu,yu=gu;var bu={post:function(e,t,n,i){return n.ajax.postJSON(e.replace(/\/guides\.js\//,"/guides.json/"),t).then(function(e){n.guidesPayload(e.data),i()})},load(e,t,n){return t.ajax.get(e).then(function(e){t.guidesPayload(e.data),n()})},endpoint(){return"guide.json"},usesXhr(){return!0}};function wu(e){e=Ia(e);if(e){e=e.filename;if(e)return 54<e.length?e.substring(28,55):e}}Iu=_u={failed:{},verified:{}},Cu=xo,xu=function(e){try{var t=[];return!bu.usesXhr()&&e.domJsonpUrl?t.push(Ru(e,"domJsonpUrl")):bu.usesXhr()&&e.domUrl&&t.push(ku(e,"domUrl")),e.contentUrlJs?t.push(Ru(e,"contentUrlJs")):e.contentUrl&&t.push(Ru(e,"contentUrl")),y.all(t)}catch(n){throw m.contentVerificationFail.trigger(e,n),n}},Eu=function(e){return xu(e).then(C.noop,function(e){return/verify/.test(e)&&Cu(e),y.reject(e)})},Su=function(t){return Iu.failed[t.id]?y.reject():Iu.verified[t.id]?y.resolve():Eu(t).then(function(){Iu.verified[t.id]=!0},function(e){return Iu.failed[t.id]=!0,y.reject(e)})};var Su,Iu,Eu,Cu,xu,_u,Tu={verify:function(e){return f.get("guideValidation")?Su(e):y.resolve()},reset:function(){_u.failed={},_u.verified={}}};function ku(e,t){var n,i=e[t];return C.isString(i)?(n=(e=e)[{domUrl:"domHash",domJsonpUrl:"domJsonpHash",contentUrl:"contentHash",contentUrlJs:"contentJsHash"}[t=t]]||wu(e[t]),Tr.get(i).then(function(e){var t;if("object"==typeof(e=e.data)&&(e=JSON.stringify(e)),(t=J.create()).update(e),l.uint8ToBase64(t.digest())!==n)return y.reject('Unable to verify content at "'+i+'"')})):y.reject('unable to parse "'+i+'"')}function Ru(e,t){var n=e[t];return De.sri&&/[?&]sha(256|384|512)=/.test(n)?y.resolve():ku(e,t)}Au="allow",Ou="deny",Nu="pending",Lu=function(){return 0<C.size(yu._handlers.validateGuide)},Fu=function(e,n){var i=[];return C.each(e,function(e,t){n&&(t=n+"."+t),C.isObject(e)?C.each(Fu(e,t),function(e){i.push(e)}):i.push([t,e])}),i};var Au,Ou,Nu,Mu,Lu,Fu,Pu={state:Mu={},Step:function(e){var n=this;function i(e){return C.filter([["content",wu(e.contentUrl)],["contentCss",wu(e.contentUrlCss)],["contentJs",wu(e.contentUrlJs)],["dom",wu(e.domUrl)],["domJsonp",wu(e.domJsonpUrl)]],function(e){return e[1]})}return this.signature=function(){var e,t;return this.domUrl?this.guide.authoredLanguage===this.language?i(this):i({contentUrl:n.contentUrl,contentUrlCss:n.contentUrlCss,contentUrlJs:n.contentUrlJs,domUrl:n.domUrl,domJsonpUrl:n.domJsonpUrl}):(e=[["content",this.content]],(t=this.attributes&&this.attributes.variables)&&(t=Fu(t)).length&&(t=C.sortBy(t,function(e){return e[0]}),e.push(["variables",t])),e)},n},Guide:function(){return this.signature=function(){return C.map(this.steps,function(e){return e.signature()})},this},Launcher:function(){var n=this,i=!1,r=function(){return 0<C.size(yu._handlers.validateLauncher)&&n.data.template};return n.before("update",function(){if(r()&&i)return!1}),n.before("render",function(){var e,t;if(r())return!i&&(t="launcher-"+rt(n.signature()),(t=Mu[t])!==Ou)&&(t!==Au?(i=!0,t=JSON.stringify(n.signature()),e="launcher-"+rt(t),yu.validateLauncher(t).then(function(){Mu[e]=Au},function(){Mu[e]=Ou}).then(function(){i=!1,n.render(),n.update(O)},function(){i=!1}),!1):void 0)}),n.signature=function(){var e=[],t=Fu(this.data);return t.length&&(t=C.chain(t).filter(function(e){return!/^contentUrl/.test(e[0])}).sortBy(function(e){return e[0]}).value(),e.push(["variables",t])),e},n},validate:function(e){if(!Lu())return y.resolve();try{return C.get(e,"attributes.resourceCenter.isTopLevel",!1)?(t=e,n=F.findResourceCenterModules(t,O),t=[t].concat(n),y.all(C.map(t,Du))):Du(e)}catch(i){throw m.contentValidationFail.trigger(e,i),i}var t,n},valid:function(e){return!Lu()||!!(e=Mu[e.guideId])&&e.status===Au},invalid:function(e){return!!Lu()&&!!(e=Mu[e.guideId])&&e.status===Ou},reset(){Mu={}}};function Du(i){var r=Mu[i.id];return r||(r={},Mu[i.id]=r),r.contentPromise||(r.contentPromise=i.fetchContent()),r.contentPromise.then(function(){var e=JSON.stringify(i.signature()),t=i.id+"-"+rt(e),n=(r[t]||(r[t]={status:Nu},r.status=Nu),r[t].promise);return n||(n=yu.validateGuide(e,i).then(function(){r[t].status=Au,r.status=Au},function(e){return r[t].status=Ou,r.status=Ou,y.reject(e)}),r[t].promise=n),n})}function Uu(e,t){var n=C.toArray(arguments).slice(2);return C.reduce(e,function(e,t){return t.apply(e,n)},t)}function Gu(e){return C.isFunction(e.before)?e:Uu(Gu.behaviors,e)}function Bu(e,t){return Uu(Bu.behaviors,e,t)}function zu(e){var t,n,i=f.getLocalConfig("contentHost");return i&&e?(t=new RegExp("(https:)?\\/\\/"+((t=Be)===ve?"pendo-static":Se(t))+"-\\d+\\.storage\\.googleapis\\.com","g"),n=new RegExp("(https:)?\\/\\/"+Se(Be)+"\\.storage\\.googleapis\\.com","g"),e.replace(t,i).replace(n,i).replace(new RegExp("(https:)?\\/\\/"+wt(He),"g"),i)):e}function Hu(e){return f.getLocalConfig("contentHost")?JSON.parse(zu(JSON.stringify(e))):e}Gu.behaviors=[],Bu.behaviors=[];var ju=function(){var u={},l=C.compose(function(e){var t=function(){var e=wt(f.getHostedConfig("contentHost"));if(e)return e+"*"}();return t&&!new RegExp(t).test(e)&&x.debug("Failed to verify URL: "+e+" vs "+t),e},zu);const d=[function(e,t,n){return e.replace(`<% if (typeof guide !== 'undefined') { %>
|
|
5
5
|
var guide = pendo.findGuideById('<%= guide.id %>');
|
|
6
6
|
var step = guide && guide.findStepById('<%= step.id %>');
|
|
7
7
|
<% } %>`,`var guide = pendo.findGuideById('${t}');
|
|
8
|
-
var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{var e=u[t.id];if(e&&e.language!==t.language&&delete u[t.id],!u[t.id]){var n,i=[],r={deferred:{},language:t.language},o=!1;if(u[t.id]=r,bu.usesXhr()&&t.domUrl?(r.deferred.domJson=y.defer(),xr.get(c(t.domUrl)).then(function(e){r.domJson=Bu(e.data);var e=e.data;e=e,E.isObject(e)&&e.hasOwnProperty("type")&&e.hasOwnProperty("children")&&e.hasOwnProperty("props")?r.deferred.domJson.resolve():(C.critical(new Error("Response from the guide was not in proper JSON format")),r.deferred.domJson.reject())})["catch"](function(e){C.critical(e),m.resourceFetchFail.trigger(t,e),r.deferred.domJson.reject("Failed to load content")}),i.push(r.deferred.domJson.promise),o=!0):t.domJsonpUrl&&(r.deferred.domJson=y.defer(),n=Ta(c(t.domJsonpUrl),function(e){k.removeNode(n),e&&m.resourceFetchFail.trigger(t,e)},!0),i.push(r.deferred.domJson.promise),o=!0),t.contentUrlJs&&!f.get("preventCodeInjection")){r.deferred.content=y.defer();var a=Ta(c(function(e){if(dt()){var t=e.replace(/^https?:\/\/[^/]+\/guide-content\//,"").split("/"),n=t[0],n=$A.get("$Resource.pendoGuide"+function(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}(Ze(n)));if(E.isString(n))return n+"/"+t.join("/")}return e}(t.contentUrlJs)),function(e){k.removeNode(a),e&&m.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise),t.contentUrlCss&&(r.deferred.css=y.defer(),Ta({url:c(t.contentUrlCss),type:"text/css"},function(){r.deferred.css.resolve()}),i.push(r.deferred.css.promise))}else if(t.contentUrl&&!f.get("preventCodeInjection")){r.deferred.content=y.defer();var s=Ta(function(e,t){if(!E.isString(e))return e;var n=E.indexOf(e,"?");return n<0?e+t:e.substring(0,n)+t+e.substring(n)}(c(t.contentUrl),".js"),function(e){k.removeNode(s),e&&m.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise)}else if(!o)return y.reject("fetchedDomContent is still false");r.deferred.promise=y.all(i).then(function(){return E.omit(r,"deferred")})}return u[t.id].deferred.promise}catch(d){throw m.resourceFetchFail.trigger(t,d),d}},reset:function(){u={}},guideContent:function(e,t,n,i,r){var o,a,s;E.isString(n)&&(o=n,a=e,s=t,n=E.reduce(d,(e,t)=>t(e,a,s),o),E.isFunction(i)||(o=n,i=/<%/.test(o)&&/%>/.test(o)?E.template(n):E.constant(n)),o=u[e+t])&&o.deferred.content&&(o.content=n,o.template=i,o.script=r,o.deferred.content.resolve())},receiveDomStructureJson:function(e,t,n){(e=u[e+t])&&e.deferred.domJson&&(e.domJson=Bu(n),e.deferred.domJson.resolve())}}}(),Hu=(Wu.state={},Wu.queue=[],Wu.pending=function(){return E.reduce(Wu.state,(e,t)=>e+(t.loaded?0:1),0)},Wu.reset=function(){zu.reset(),Wu.state={},Wu.queue=[]},Wu.prefetch=function(e){var t;return Wu.hasContent(e)?E.get(Wu.state[qu(e)],"promise"):(t=y.defer(),Wu.queue.push([t,e]),t.promise)},Wu.processPrefetch=function(e=10){return Wu.queue.length?(e=Wu.queue.splice(0,Math.max(e-Wu.pending(),0)),y.all(E.map(e,t=>Wu.fetchContent(t[1]).then(e=>{t[0].resolve(e)})["catch"](e=>{t[0].reject(e)})))):y.resolve()},Wu.fetchContent=function(t){var e=qu(t);if(!(i=Wu.state[e])){var n,i={},r=t.getGuide();if(r.control)return y.resolve();r&&r.language&&(n=r.language);var r=t.guideId+t.id,o=E.extend({id:r,language:n,guideId:t.guideId},E.pick(t,"contentUrl","contentUrlCss","contentUrlJs","domJsonpUrl","domUrl","domHash","contentHash","contentJsHash"));i.promise=xu.verify(o).then(function(){return i.verified=!0,zu.load(o)}).then(function(e){return i.loaded=!0,e}),Wu.state[e]=i}return i.promise.then(function(e){E.extend(t,e)})},Wu.hasContent=function(e){return ge(e.content)||ge(e.domJson)},Wu);function Wu(n){var i=this,t=1;return(i.contentUrl||i.domJsonpUrl)&&(E.extend(i,{fetchContent:function(e=!1){return e?Wu.prefetch(i):Wu.fetchContent(i)}}),i.after("render",function(e){!function(e){var t=E.indexOf(n.steps,i);E.chain(n.steps).rest(t+1).first(e).each(function(e){E.isFunction(e.fetchContent)&&e.fetchContent()}).value()}(t)})),i}function qu(e){var t=e.getGuide(),t=t&&t.language?t.language:"default";return e.id+"."+t}var Vu=function(){var e=m.runtime;const r=[];function o(e,n,i,r){return E.filter(e,function(e){if(E.isFunction(e[r])){if(E.isFunction(e.test))try{return e.test(n,i,I)}catch(t){return C.critical("Error in global script test code block",{error:t}),!1}return E.isRegExp(e.regex)?e.regex.test(i.name)||e.regex.test(n.name):!0}})}function t(e,t,n="script"){var i=[];return"script"===n&&E.isFunction(e.script)&&i.push(e.script),E.size(r)&&(e=o(r,e,t,n),E.each(e,function(e){i.push(e[n])})),i}function i(n,i,r){const o=r.guide;o&&E.all(t(r,o,"beforeMount"),function(e){try{return e.call(n,i),!i.cancel}catch(t){return C.critical("Exception thrown running beforeMount for: "+JSON.stringify({guideId:o.id,stepId:r.id}),{error:t}),!1}})}var a=pn.call({}),s={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 d(e){return s[e]}function n(n){this.step=n,E.each(["read","write","clear"],function(t){this[t]=h[t],this[t+"ByGuide"]=function(){var e=E.first(arguments)+":"+E.get(n,"guide.id");return h[t].apply(this,[e].concat(E.rest(arguments)))}},this);var e=E.bind(function(e){this.step.id!==e.step.id?C.debug("aborting afterUnmounted b/c step ids don't match"):this.purge()},this);this.purge=E.partial(a.off,"afterUnmounted",e),a.on("afterUnmounted",e)}return e.on(function(e){var t,n=e.data[0];if(e.step=n,delete e.data,d(e.type))return-1<E.indexOf(["beforeUnmount","unmounted"],e.type)&&(t="active"===(t=n).seenState?"hidden":t.seenState,e.reason=t,"unmounted"===e.type)&&a.trigger(t,e),t=s[e.type].type,a[t](e.type,e),"unmounted"===e.type?a.trigger("afterUnmounted",e):"beforeMount"===e.type&&i(this,e,n),"triggerCancelable"!==t&&e.cancel&&delete e.cancel,e}),n.prototype.on=function(e,t){var n,i;d(e)?(s[e].fromUnmount&&(t=E.once(t)),n=this.step,i=t,t=Wn(t=e=>{var t=e["step"];if(t.id===n.id)return i(e);C.debug("called guide runtime callback on wrong step")}),a.on(e,t),this.purge=E.compose(this.purge,E.partial(a.off,e,t))):C.info("GUIDE-RUNTIME: Warning! Unregisterable event type "+e)},{initialize:function(){var e=f.get("guides.globalScripts");E.each(e,Vu.addGlobalScript)},teardown:function(){E.each(r,Vu.removeGlobalScript)},addGlobalScript:function(e){var t;e=function(t){const e=E.without(E.keys(t),"script","test","regex","beforeMount");if(e.length){const n=t.script;t.script=function(){if(E.each(e,function(e){d(e)&&this.on(e,t[e])},this),E.isFunction(n))return n.apply(this,arguments)}}return t}(e),t=e,!E.isFunction(t.script)&&!E.isFunction(t.beforeMount)||t.test&&!E.isFunction(t.test)||t.regex&&!E.isRegExp(t.regex)?C.critical("Error adding invalid GlobalScript via API"):r.push(e)},removeGlobalScript:function(e){0<=(e=E.indexOf(r,e))&&r.splice(e,1)},getContext:function(e){return new n(e)},runCustomScripts:function(i,r){E.each(t(i,r),function(e){try{var t=Vu.getContext(i);e.call(t,i,r,I)}catch(n){C.critical("Exception thrown running code block for: "+JSON.stringify({guideId:r.id,stepId:i.id}),{error:n})}})}}}();function Ku(e){return e.props&&e.props.id&&0===e.props.id.indexOf("pendo-g-")?e:e.children?E.find(e.children,Ku):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){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}}function Yu(e,t,n,i=document.head){let r=document.getElementById(t);return r||((r=document.createElement("style")).setAttribute("id",t),e.get("inlineStyleNonce")&&r.setAttribute("nonce",e.get("inlineStyleNonce")),r.innerHTML=n,r=i.appendChild(r)),r}var Xu={buildNodesFromTemplate:function(e,t,n,i,r){var o=i||R,a=r||I.BuildingBlockGuides.buildNodeFromJSON;switch(e){case"pendo_resource_center_module_list_item":return function(p,h,f,g){var e=p.templateChildren;return E.reduce(e,function(e,t,n){var i=P.findResourceCenterHomeView(f),r=E.find(f,function(e){return e.id===t.id});if(I.designer)r=t,i=E.find(f,function(e){return E.get(e,"attributes.resourceCenter.isTopLevel")});else{if(!r)return e;if(!r.hasResourceCenterContent)return E.each(r.children,function(e){e=M(e);e&&e.control&&e.steps[0].onControlGuide("control")}),e}var o,a,s,d=JSON.parse(JSON.stringify(p)),u=(delete d.templateChildren,d.props.id=d.props.id+"-"+n,d.props["data-pendo-module-guide-id"]=r.id,d.actions||(d.actions=[]),{action:"renderResourceCenterModule",source:d.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:r.id}],uiMetadata:{},eventType:"click"}),u=(d.props["data-localization-direction"]&&u.parameters.push({name:"transitionDirection",type:"string",value:d.props["data-localization-direction"]}),I.designer||d.actions.push(u),E.get(i,"attributes.notificationBubble")),c=E.get(i,"attributes.notifications"),u=(u&&c&&("AnnouncementsModule"===E.get(r,"attributes.resourceCenter.moduleId")&&(o=r.id),o="chat"===E.get(r,"attributes.resourceCenter.integrationName")?"chat":o)&&(d.props["data-pendo-notification-id"]=o,c=d,r=u,u=o,o=(i=i).attributes.notifications.individualCounts[o],c=Ju(c,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-row")}))&&(s=E.find(c.children,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-text")}))&&s.props&&s.props.style&&(l=parseInt(s.props.style.width,10))&&!isNaN(l)&&(a=c.children.indexOf(s),l=l-40+"px","100%"!==s.props.style.width&&(s.props.style.width=l),(l="rtl"===s.props.dir)?s.props.style["padding-left"]="40px":s.props.style["padding-right"]="40px",s.props.style["box-sizing"]="content-box",s={type:"div",children:[{type:"div",content:String(i.attributes.notifications.individualCounts[u]),props:{style:{position:"relative",top:"50%","font-weight":r["font-weight"],"font-family":r["font-family"],color:r.color}}}],props:{id:"pendo-home-view-bubble","class":"_pendo-home-view-bubble",style:Object.assign(Object.assign(Object.assign({position:"absolute","border-radius":"20px",height:"26px","line-height":"0px",padding:"0px 10px"},!l&&{right:"20px"}),l&&{left:"20px"}),{top:"50%","margin-top":"-14px","box-sizing":"content-box","background-color":r["background-color"],display:o?"block":"none"}),"aria-hidden":!0}},c.children.splice(a+1,0,s)),Ju(d=ec(d,t,d.props.id,n),function(e){e=E.get(e,"props.class");return e&&0<=e.indexOf("_pendo-resource-center-module-list-item-text-container")})),i=Ju(d,function(e){e=E.get(e,"props.id");return e&&0<=e.indexOf("pendo-right-caret")}),l=Ju(d,function(e){e=E.get(e,"props.id");return e&&0<=e.indexOf("pendo-home-view-bubble-"+n)});return u&&(u.props["aria-hidden"]=!0,i)&&(i.props["aria-labelledby"]=u.props.id+" "+(l&&l.props.id)),e.concat(g(d,h,f))},[])}(t,n,o,a);case"pendo_resource_center_guide_list_item":return function(o,a,s,d){var e=o.templateChildren;return E.reduce(e,function(e,t,n){var i,r=tc(s,t);return r?(i=JSON.parse(JSON.stringify(o)),t.keywords&&(i.props["data-_pendo-text-list-item-1"]=t.keywords),delete i.templateChildren,i.props.id=i.props.id+"-"+n,i.actions||(i.actions=[]),r={action:"showGuide",source:i.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:r.id},{name:"reason",type:"string",value:"launcher"}],uiMetadata:{},eventType:"click"},I.designer||i.actions.push(r),i=ec(i,t,i.props.id,n),e.concat(d(i,a,s))):e},[])}(t,n,o,a);case"pendo_task_list":return function(e,t,n,i){var r=e.templateChildren;E.filter(r,function(e){return tc(n,e)}).length?(e.children=E.filter(e.children,function(e){return"pendo_task_list_fallback_text"!==e.templateName}),function o(t,n){t.templateName&&(t.templateChildren=n);if(!t.children||!t.children.length)return;for(let e=0;e<t.children.length;e++)o(t.children[e],n)}(e,r)):e.children=E.filter(e.children,function(e){return"pendo_task_list_item"!==e.templateName&&"pendo_task_list_progress_bar"!==e.templateName});P.updatePseudoStyleSelectors(e);r=i(e,t,n);return[r]}(t,n,o,a);case"pendo_resource_center_onboarding_item":case"pendo_task_list_item":return function(s,d,u,c){var e=s.templateChildren;return E.reduce(e,function(e,t,n){var i,r,o,a=tc(u,t);return a?(delete(i=JSON.parse(JSON.stringify(s))).templateChildren,i.props.id=i.props.id+"-"+n,i.props["data-pendo-show-guide-id"]=a.id,i.props["class"]+=" pendo-task-list-item",i.actions||(i.actions=[]),r={action:"showGuide",source:i.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:a.id},{name:"reason",type:"string",value:"launcher"}],uiMetadata:{},eventType:"click"},I.designer||i.actions.push(r),r=a.getTotalSteps(),o=a.getSeenSteps(),a.isComplete()&&(o=r),a=parseInt(o/r*100,10),Ju(i,function(e){return e.svgWidgetId}).svgAttributes.fillCircle.percentComplete=a,t.hasOwnProperty("subtitle")?t.stepProgress=Qu(t.subtitle,{currentStep:o,totalSteps:r}):t.stepProgress="Step "+o+" of "+r,i=ec(i,t,i.props.id,n),e.concat(c(i,d,u))):e},[])}(t,n,o,a);case"pendo_resource_center_onboarding_progress_bar":case"pendo_task_list_progress_bar":return function(e,t,n,i){var r=e.templateChildren||t.getGuide().attributes.resourceCenter.children,o=0,a=0,r=(E.forEach(r,function(e){e=tc(n,e);e&&(e.isComplete()?(o+=e.getTotalSteps(),a+=e.getTotalSteps()):(o+=e.getTotalSteps(),a+=e.getSeenSteps()))}),parseInt(a/o*100,10));isNaN(r)&&(r=0);r={totalPercentComplete:r+"%"};return Ju(e=ec(e=JSON.parse(JSON.stringify(e)),r),function(e){return e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-progress-bar-fill")}).props.style.width=r.totalPercentComplete,[i(e,t,n)]}(t,n,o,a);case"pendo_task_list_fallback_text":return[a(t,n,o)];case"pendo_resource_center_announcement_item":return function(l,e,n,p){e=e.getGuide().attributes.resourceCenter.children,e=E.reduce(e,function(e,t){t=tc(n,t);return t&&t.steps&&t.steps.length?e.concat(t):e},[]);if(!E.every(e,function(e){e=e.steps[0];return!!Hu.hasContent(e)}))return[];var t=P.getResourceCenter(),h=E.get(t,"attributes.notificationBubble");h&&(delete h.dir,"rtl"===l.props["data-localization-direction"])&&(h.dir="rtl");return E.map(e,function(e,t){var n,i,r,o,a,s,d,u="whatsnew"===E.get(e,"attributes.type"),c=JSON.parse(JSON.stringify(l));return c.props.id=c.props.id+"-"+t,c.props["data-pendo-announcement-guide-id"]=e.id,c.props["data-pendo-announcement-send-seen-event"]=!0,u?(t=c,u=h,s=p,n=Uu(r=e),(d=n.steps[0]).render(),Vu.runCustomScripts(d,n),i=(n=d.guideElement)[0].id,Yu(f,"pendo-whats-new-style-"+i,"#"+i+" h1::after { display:none; }",n[0]),u&&((o=nc(u)).props.style.top="20px"),!P.hasAnnouncementBeenSeen(r)&&o&&(t.props["class"]+=" pendo-unseen-announcement",t.children=[o]),i=s(t,d),n.appendTo(i),i):(u=c,r=h,o=p,d=Uu(t=e),s=t.steps[0],Vu.runCustomScripts(s,d),d=JSON.parse(JSON.stringify(s.domJson)),u.children=[d],r&&(a=nc(r),d=Ju(u,function(e){return"pendo-guide-container"===e.props.id}),r=parseInt(u.props.style["padding-top"],10),d=parseInt(d.props.style["padding-top"],10),a.props.style.top=d+r+5+"px"),!P.hasAnnouncementBeenSeen(t)&&a&&(u.props["class"]+=" pendo-unseen-announcement",u.children.unshift(a)),delete u.templateName,(d=Zu("pendo-guide-container",u))&&(d.props.id=d.props.id+"-"+s.id),o(u,s))})}(t,n,o,a);case"pendo_guide_data_text_block":return function(e,t,n,i){var r=t.getGuide?t.getGuide():E.find(n,function(e){return e.id===t.guideId}),o=E.get(r,"attributes.dates."+r.language,!1);o=o?{showsAfter:o}:(o=E.get(r,"currentFirstEligibleToBeSeenAt")||E.get(r,"showsAfter")||E.get(r,"publishedAt"),o=o?new Date(o):new Date,r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][o.getMonth()]+" "+o.getDate()+", "+o.getFullYear(),{showsAfter:r});return r=ec(r=JSON.parse(JSON.stringify(e)),o),[i(r,t,n)]}(t,n,o,a);default:return[]}},generateUnreadAnnouncementMiniBubble:nc,getGuidesInResourceCenterModule:function(e,i){e=e.attributes.resourceCenter.children;return E.reduce(e,function(e,t,n){t=tc(i,t);return t&&e.push(t),e},[])}};function Qu(e,n){return e.replace(/<%=\s*([A-Za-z_0-9$]+)\s*%>/gi,function(e,t){return E.isNull(n[t])||E.isUndefined(n[t])?e:n[t]})}function ec(e,t,n,i){if(e.content&&(e.content=Qu(e.content,t)),e.props&&(e.props["aria-label"]&&(e.props["aria-label"]=t.ariaLabel?Qu(e.props["aria-label"],t):""),e.props.id)&&i!==undefined&&e.props.id!==n&&(e.props.id=e.props.id+"-"+i),e.children)for(var r=0;r<e.children.length;r++)ec(e.children[r],t,n,i);return e}function tc(e,t){e=E.find(e,function(e){return e.id===(t.id||t)});if(I.designer)return t;if(e){if(!e.ineligibleForRC)return e;e.control&&e.steps[0].onControlGuide("control")}}function nc(e){var t={left:"0px"};return"rtl"===e.dir&&(t={right:"0px"}),{type:"div",children:[],props:{"class":"pendo-unread-announcement-mini-bubble",style:Object.assign(Object.assign({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"})}}}var ic={buildSvgNode:function(e,t){switch(e){case"onboardingProgressCircle":case"taskListProgressCircle":return rc(t)}},createProgressCircleSvg:rc};function rc(e){var t,n,i,r,o,a,s;return _e(9)?(n=(t=(t=e).svgAttributes).fillCircle.stroke,i=t.backgroundCircle.stroke,t=100<=(t.fillCircle.percentComplete||0),r=k(J(I).createHTML('<div aria-hidden="true" focusable="false" class="pendo-progress-circle-ie"><div class="pendo-progress-circle-fill"></div></div>')),o=r.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=k(J(I).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=k(J(I).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)}var oc=function(e,t){return e<t},ac=E.negate(oc);function sc(){var e=Ko();return vo(e)?Yo(e):((e=jo()).left=0,e.top=0,e.right=e.width,e.bottom=e.height,e)}function dc(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 uc(e){var t;if(e&&e.length)return t=vo(Ko())?Yo:wo,(e=E.reduce(e,function(n,e){var i;return ca(e)?(i=t(e))?(E.each([["top",oc],["right",ac],["bottom",ac],["left",oc]],function(e){var t=e[0],e=e[1];n[t]&&!e(i[t],n[t])||(n[t]=i[t])}),n):void 0:n},{})).height=e.bottom-e.top,e.width=e.right-e.left,e}function cc(e,t){var n=sc(),e=uc(e)||{top:0,left:0,right:n.width,bottom:n.height,width:0,height:0};return{viewport:n,box:e,overlays:dc(n,e,t)}}function lc(e){var t=[],n=E.get(e,"attributes.blockOutUI",{});if(n.additionalElements=n.additionalElements||"",n.enabled&&e.element!==Ko()){t.push(e.element);for(var i=n.additionalElements.replace(/\s/g,"").split(","),r=0;r<n.additionalElements.length;r++)try{var o=k(i[r]);o&&E.each(o,function(e){t.push(e)})}catch(a){C.info("Additional element for blockOutUI is invalid selector",{contexts:["error"]})}}return t}var pc=null,hc=function(e){var t=!E.isEqual(e,pc);return pc=e,t},fc=null,gc=function(e){var t=!E.isEqual(e,fc);return fc=e,t},mc=null,vc=function(e){var t=!E.isEqual(e,mc);return mc=e,t},yc=function(e){return gc(e.viewport)||hc(e.box)||vc(e.overlays)};function bc(e){try{var t=cc(lc(e),E.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0}));yc(t)&&E.each(e.backdrop.children,function(n){var e=n.getAttribute("pendo-region"),e=t.overlays[e];E.each(e,function(e,t){n.style[t]=e+"px"})})}catch(n){C.info("Failed to update BlockOut ui",{contexts:["error"]})}}function wc(e){try{var t,n,i,r;if(!(0<k("._pendo-guide-backdrop_").length))return t=cc(lc(e),E.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0})),yc(t),n={"z-index":1e4,position:"fixed"},i=[],E.each(t.overlays,function(e,t){t=function(e,t){var n=k("div.pendo-backdrop-region-"+e);n.length||(n=k(document.createElement("div")).addClass("pendo-backdrop-region-"+e));return k(n).css(t).attr("pendo-region",e),n}(t,E.extend({},e,n));i.push(t)}),o=i,a=Zu("pendo-backdrop",e.domJson),E.each(["left","right","width","height","bottom","top"],function(e){delete a.props.style[e]}),s=k(document.createElement("div")).attr("id","pendo-backdrop").addClass("_pendo-guide-backdrop_"),E.each(a.props,function(n,i){E.each(o,function(e,t){"style"===i?e.css(a.props.style):"class"===i?e.addClass(n):"id"===i?e.attr(i,n+"-"+t):e.attr(i,n),s.append(e)})}),r=s,e.backdrop=r[0],r}catch(d){C.info("Failed to add BlockOut ui",{contexts:["error"]})}var o,a,s}var Sc="top",Ic="bottom",_c="left",Ec="right",Cc="center";function Tc(e,t,n){return n===Ec||n===_c?n:(n=e.left,(t=(e=t.width)/3)<n&&n<2*t?Cc:n<e/2?Ec:_c)}var xc={createBBTooltip:kc,getBBTooltipDimensions:Mc,determineBBHorizontalBias:Tc,determineTooltipPosition:Nc,positionBBTooltipWithBias:Lc,calculateToolTipPositionForTopBottom:Pc,calculateToolTipPositionForLeftRight:Fc,buildTooltipCaret:$c,styleTopOrBottomCaret:Uc,styleLeftOrRightCaret:Gc,buildBorderCaret:jc,determineBorderCaretColor:zc,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=Ku(e.domJson),(t?e.guideElement:e.guideElement.find("#"+n.props.id))[0]}(e);t&&(i=e.element||du(e),n=Ho(i),"none"!==O(e.elements[0]).display)&&(i=wo(i),a=e.attributes.layoutDir,e=e.guideElement,r=k(t).find("#pendo-guide-container"),o=r[0].style,t=O(t),t={height:parseInt(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&&Dc(t,o,r),a)&&Bc(a,r,o.layoutDir,t),e.css({top:o.top,left:o.left,position:n.fixed?"fixed":"absolute"}))},attachBBAdvanceActions:Rc,attachScrollHandlers:Ac,isBuildingBlockGuideRelativeToElement:function(e){return!(!e.domJson||!E.isObject(e.domJson)||!(e=Ku(e.domJson))||"Relative to Element"!==e.props["data-vertical-alignment"])},positionStepForTooltip:function(e,t,n){kc(t,e.element,e,n),e.hasBeenScrolledTo||(pa(e.element),lu(e.element,n,e.attributes.layoutDir),e.hasBeenScrolledTo=!0)}};function kc(e,t,n,i){var r,o,a,s,d,u;if(n.guideElement)return(r=n.guideElement).addClass(ou()?eu:Qd),0===(o=Ho(t)).height&&0===o.width?null:(t=wo(t),(e=Ju(e,function(e){return"pendo-guide-container"===e.props.id}))?(u=n.attributes.layoutDir,d={height:i.offsetHeight,width:i.offsetWidth},a={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},Rc(n),e.props.style.border&&(e=e.props.style.border.split(" "),a.borderColor=e[2],a.borderWidth=parseInt(e[0],10)),e=Mc(o,d,a,u,t),n&&(n.dim=e),n&&E.isFunction(n.getGuide)&&(s=n.getGuide()),d=E.get(s,"attributes.resourceCenter"),o.fixed?(r.css({position:"fixed"}),i.style.position="absolute"):n&&d||(i.style.position="absolute"),a.height&&a.width&&$c(r,e,a),u="300000",i&&i.style&&i.style["z-index"]&&(u=i.style["z-index"]),r.css({"z-index":u}),d||r.css({height:"auto",width:"auto",overflow:"visible"}),n.elementPathRule&&r.css({left:e.left,top:e.top,position:o.fixed?"fixed":"absolute"}),"top"===e.layoutDir&&e.hbias===_c&&r.find("#pendo-watermark").css({top:"auto",bottom:"100%"}),Ac(n,Hc),r[0]):void 0)}function Ac(e,t){e&&E.isFunction(e.attachEvent)&&(ru()&&e.element===k.getBody()||(t=E.throttle(E.bind(t,e,e),10),e.attachEvent(window,"scroll",t,!0),aa(E.bind(e.attachEvent,e),e.targetElement,t)))}function Oc(t,n){var e=k(n.elementPathRule)[0];n.attachEvent(e,t,function(e){k.data.set(e,"advanced",!0),wg(t,n)})}function Rc(e){e.attributes&&e.attributes.advanceActions&&e.elementPathRule&&(e.attributes.advanceActions.elementHover?Oc("mouseover",e):e.attributes.advanceActions.elementClick&&Oc("click",e))}function Mc(e,t,n,i,r){var o,a,s=jo(),i=i||"auto",t={width:Math.min(t.width,s.width),height:t.height},d=(t.layoutDir=i,t.hbias=Tc(e,s,i),t.vbias=(o=e,d=s,(a=i)===Sc||a===Ic?a:(a=o.top,(d=(o=d.height)/3)<a&&a<2*d?Cc:a<o/2?Ic:Sc)),t.layoutDir=Nc(t,s,r,i),Lc(t,e,s));return t.top=d.top,t.left=d.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 Nc(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===Cc)&&(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!==Cc&&(c=e.hbias),d&&u||(u||(c="right"),d)||(c="left")),(c=c&&"bottom"!==c||!s||a?c:"top")||e.hbias)||"bottom")}function Lc(e,t,n){return"top"===e.layoutDir||"bottom"===e.layoutDir?Pc(e,n,t,e.layoutDir,e.hbias):Fc(e,n,t,e.vbias)}function Pc(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 Fc(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 $c(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,Dc(i,t,n),e.find("#pendo-guide-container")[0].parentNode);e.appendChild(i),n.borderWidth&&(i=jc(i,n,t.layoutDir),e.appendChild(i))}function Dc(e,t,n){"top"!==t.layoutDir&&"bottom"!==t.layoutDir||Uc(e,t,n),"left"!==t.layoutDir&&"right"!==t.layoutDir||Gc(e,t,n)}function Uc(e,t,n){var i,r=jo();return e.style["border-left"]=n.width+"px solid transparent",e.style["border-right"]=n.width+"px solid transparent",e.style.right="",t.hbias===_c?(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===Ec?(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 Gc(e,t,n){var i,r=jo();return e.style["border-top"]=n.width+"px solid transparent",e.style["border-bottom"]=n.width+"px solid transparent",e.style.bottom="",t.vbias===Sc?(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===Ic?(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 jc(e,t,n){var i=e.cloneNode();return i.setAttribute("class","pendo-tooltip-caret-border"),i.style.zIndex=10,Bc(i,t,n,e),i}function Bc(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]=zc(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"),E.extend(e.style,r)}function zc(e,t){return"transparent"===e?e:t}function Hc(e){ca(e.element)?(xc.placeBBTooltip(e),k(e.elements[0]).css({display:"block"})):k(e.elements[0]).css({display:"none"})}function Wc(t){var e=t.find('[data-pendo-grow-height="true"]');if(e.length){var n=Object.entries(e),i=[];for(let e=0;e<n.length;e++)if(Number.isInteger(Number.parseInt(n[e][0],10))){const o=n[e][1];var r=E.some(i,function(e){return e.parentNode===o.parentNode});if(!r){let e=t[0];r=o.parentNode.closest('[data-pendo-grow-height="true"]');if(r){if(!i.includes(r))continue;e=r}qc(o,e),i.push(o)}}}}function qc(t,e){let n=0;var i=t.parentNode.children;for(let e=0;e<i.length;e++){var r,o=i[e];o!==t&&(r=O(o),r=parseInt(r.marginTop,10)+parseInt(r.marginBottom,10),n+=o.offsetHeight+r)}var a=e.offsetHeight,e=O(e),e=parseInt(e.paddingTop,10)+parseInt(e.paddingBottom,10),s=O(t),s=parseInt(s.marginTop,10)+parseInt(s.marginBottom,10),a=Math.max(a-e-n-s,0);0<a&&(t.style.height=a+"px")}function Vc(e,t){var n,i,r,o,a,s,d,u,c,e=k("#"+e,t)[0];e&&(t=k(e),n=k(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(O(e).height,10),d=jo().height,u=parseInt(e.style.top,10),u=isNaN(u)?0:u,c=parseInt(e.style.bottom,10),(d=d-u-(c=isNaN(c)?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 Kc(e,t){e=k("#"+e,t)[0];if(e){t=e.getAttribute("data-pendo-mobile-layout");if(!t){var n=k(e),t=k(n.find("#pendo-guide-container")[0]),i=parseInt(e.style.width,10),r=(t.css({"max-width":"none"}),n.css({"margin-right":"0px"}),parseInt(O(e).width,10)),o=jo().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 Jc(e,i){var e=E.isArray(e)?e:[e],e=E.reduce(e,function(e,t){var t=k("#"+t,i),n=t[0];return n&&!n.getAttribute("data-pendo-mobile-layout")&&(n=t.find("#pendo-guide-container")[0],e.push(n)),e},[]),t=e;(t=E.reduce(t,function(e,t){return e.concat(E.toArray(k(['[class*="_pendo-text-"]:not([class*="_pendo-resource-center-"])','.pendo-mock-flexbox-element > [class*="_pendo-button-"]',"._pendo-multi-choice-poll-select"].join(","),t)))},[]))&&t.length&&Zc(E.reduce(t,function(e,t){var n,t=k(t),i=Qc(t[0]),i=i.marginLeft+i.marginRight,r=Xc(t);return r&&(n=r.paddingLeft+r.paddingRight,r=r.width-i-n,e.push({$blockElement:t,availableSpace:r})),e},[])),E.each(e,function(e){var t=e,t=((t=k("._pendo-open-text-poll-input",t))&&t.length&&E.each(t,function(e){var t,n=k(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)),Qc(n[0])),r=e.marginLeft+e.marginRight,o=Xc(n);o&&(t=o.paddingLeft+o.paddingRight,o=o.width-r-t,-1!==i.indexOf("%")&&Yc(n,e.width,i,o),-1===i.indexOf("%")&&(i=parseInt(i,10))<o&&n.css({width:i}),Zc({$blockElement:n,availableSpace:o}))}),e);(t=k(["._pendo-video","._pendo-image"].join(","),t))&&t.length&&E.each(t,function(e){var t=k(e),n=Qc(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=Xc(t);o&&(a=o.width-(o.paddingLeft+o.paddingRight)-n,e&&Yc(t,i,r,a),Zc({$blockElement:t,availableSpace:a}))})})}function Zc(e){E.isArray(e)||(e=[e]),E.each(e,function(e){e.$blockElement.css({"max-width":"none"})});var n=E.map(e,function(e){return Qc(e.$blockElement[0]).width});E.each(e,function(e,t){n[t]>=e.availableSpace&&e.$blockElement.css({"max-width":e.availableSpace})})}function Yc(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 Xc(e){e=e.closest("._pendo-row");if(e){e=O(e[0]);if(e)return{width:parseFloat(e.width),paddingLeft:parseInt(e.paddingLeft,10),paddingRight:parseInt(e.paddingRight,10)}}}function Qc(e){e=O(e);return{width:parseFloat(e.width),marginLeft:parseInt(e.marginLeft||0,10),marginRight:parseInt(e.marginRight||0,10)}}var el,N={calculateTotalOffsetWidth:il,center:function(e,t){for(var n=t/2,t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=il(e,r);e[r].style.left=n+o+"px"}1<e.length&&(i.style.right=n+"px");t.style.left=n+"px"},createFlexContainer:function(e,t){var n=document.createElement("div");n.style.display="inline-block",e||t||(n.style.position="absolute");return n.style["vertical-align"]="top",n.setAttribute("class","pendo-mock-flexbox-element"),n},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=0;i<e.length;i++){var r;t&&-1!==(e[i].children[0].children[0].getAttribute("class")||"").indexOf("pendo-block-wrapper")&&(r=e[i].children[0].offsetHeight+"px",e[i].style.height=r),n.push(e[i].offsetHeight)}return E.reduce(n,function(e,t){return Math.max(e,t)},20)},flexEnd:function(e,t){for(var n=t,t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=il(e,r);e[r].style.left=n+o+"px"}1<e.length&&(t.style.left=n+"px");i.style.right="0px"},flexStart:function(e){e[0].style.left="0px";for(var t=1;t<e.length;t++){var n=il(e,t);e[t].style.left=n+"px"}},getPendoInlineUIElements:function(e){return E.filter(e,nl)},getPendoVisualElements:function(e){return E.filter(e,function(e){return!nl(e)})},initializeFlexElements:function(e){var t=e.cloneNode(),n=tl(e),i=N.getPendoInlineUIElements(e.children);if(1===n.length&&0===n[0].id.indexOf("pendo-text"))return e;for(;t.childNodes.length;)t.removeChild(t.childNodes[0]);for(var r=0;r<n.length;r++)ol(n[r])?t.appendChild(n[r]):t.appendChild(N.wrapElementInMockFlexboxContainer(n[r],e,t));for(var o=0;o<i.length;o++)t.appendChild(i[o]);return e.parentNode.replaceChild(t,e),t},isPendoInlineUIElement:nl,setElementHorizontalAlignment:function(e,t,n){if(!(e.length<1))switch(n){case"space-between":N.spaceBetween(e,t);break;case"space-around":N.spaceAround(e,t);break;case"space-evenly":N.spaceEvenly(e,t);break;case"center":N.center(e,t);break;case"flex-start":N.flexStart(e);break;case"flex-end":N.flexEnd(e,t)}},setElementVerticalAlignment:function(e,t,n){switch(n){case"top":N.topAlignment(e);break;case"center":N.centerAlignment(e,t);break;case"bottom":N.bottomAlignment(e)}},spaceAround:function(e,t){for(var n=t/(2*e.length),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=il(e,r);e[r].style.left=2*n+o+"px"}t.style.left=n+"px",i.style.right=n+"px"},spaceBetween:function(e,t){for(var n=t/Math.max(e.length-1,1),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=il(e,r);e[r].style.left=r*n+o+"px"}t.style.left="0px",i.style.right="0px"},spaceEvenly:function(e,t){for(var n=t/(e.length+1),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=il(e,r);e[r].style.left=n+o+"px"}t.style.left=n+"px",i.style.right=n+"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=e.getAttribute("class")||"",r=-1!==i.indexOf("pendo-block-wrapper"),o=e.style&&"absolute"===e.style.position,a=E.get(e.style,"width",""),s=O(e).width,d=-1!==i.indexOf("_pendo-open-text-poll-wrapper")||-1!==i.indexOf("_pendo-image-wrapper")||-1!==i.indexOf("pendo-video-wrapper")||-1!==i.indexOf("_pendo-number-scale-poll-wrapper");r&&!d&&(a=(a?s:null)||O(e.children[0]).width);(0<=i.indexOf("_pendo-resource-center-onboarding-module-guide-complete-circle-container")||0<=i.indexOf("pendo-task-list-progress-circle"))&&(s=parseInt(O(t).width,10),u=parseInt(O(e).width,10)+parseInt(e.style.marginRight||0,10)+parseInt(e.style.marginLeft||0,10),t=(k(t).find("._pendo-simple-text").getParent()||k(n).find("._pendo-simple-text").getParent())[0],n=s-u,"border-box"!==E.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");{var u;if(!i||i.indexOf("pendo-mock-flexbox-element")<0)return(s=N.createFlexContainer(o)).appendChild(e),-1<e.id.indexOf("pendo-text")&&"rtl"===e.dir&&(s.style.right="0px"),u=E.get(e,"children")[0],r&&u&&-1!==(u.getAttribute("class")||"").indexOf("image-preview-placeholder")&&(s.children[0].style.width=a),!r||d||e.style.width||(s.children[0].children[0].style.width=a),s}return e},getVisualElementsWrappedInFlexElements:tl,initializeFlexRows:function(e,t,n,i=!1){{var r;i?(e.style.display="flex",e.style.flexWrap="wrap",e.style.justifyContent=t,e.style.alignItems={top:"flex-start",center:"center",bottom:"flex-end"}[n]||"flex-start"):0!==(i=function(e){return E.filter(e,function(e){e=e.getAttribute("class")||"";return e&&-1<e.indexOf("pendo-mock-flexbox-element")})}(e.children)).length&&(r=N.getRowWidth(e),i=N.wrapFlexElementsInFlexRows(i,e,r),N.formatFlexRows(i,e,t,n,r))}},getRowWidth:rl,wrapFlexElementsInFlexRows:function(e,t,n){for(var i=n||rl(t),r=N.createFlexRow(),o={row:r,rowWidthUsed:0},a=[o],s=0;s<e.length;s++){var d=e[s],u=wo(d)["width"],u=parseInt(u,10);o.rowWidthUsed+=u,o.rowWidthUsed>i&&0!==E.indexOf(e,d)&&(o.rowWidthUsed-=u,(r=N.createFlexRow()).appendChild(d),a.push(o={row:r,rowWidthUsed:u})),o.row.appendChild(d)}return a},formatFlexRows:function(e,t,n,i,r){for(var o=r||rl(t),a=0;a<e.length;a++){var s=e[a],d=(t.appendChild(s.row),N.findMaxChildHeight(s.row.children,!1)),u=(s.row.style["min-height"]=d+"px",o-parseInt(s.rowWidthUsed,10));N.setElementHorizontalAlignment(s.row.children,u,n),N.setElementVerticalAlignment(s.row.children,d,i)}},isElementHiddenInGuide:ol,flexAllThings:function(e,t){var n=null==(n=null==t?void 0:t.attributes)?void 0:n.useFlexbox,t=(null==t?void 0:t.guideElement)||document,e=k("#"+e,t)[0];e&&(sl(e),N.flexElement(e,n))},flexElement:function(e,i){e=k("[data-pendo-display-flex]",e);E.each(e,function(e){var t=i?e:N.initializeFlexElements(e),n=e.getAttribute("data-pendo-justify-content"),e=e.getAttribute("data-row-vertical-alignment");N.initializeFlexRows(t,n,e,i)})},maintainAspectRatios:sl};function tl(e){return k(["._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"].join(","),e)}function nl(e){e=e.getAttribute("class");return!!(e&&-1<e.indexOf("pendo-inline-ui"))}function il(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 rl(e){var t=wo(e)["width"],e=O(e);return parseInt(t,10)-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10)}function ol(e){al(e);var t=Yo(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-")&&(al(n),i=(n=n.parentNode).id||"",!(10<++r)););return!1}function al(e){e.style&&"none"===e.style.display||e.style&&"0"===e.style.opacity||e.style&&e.style.visibility}function sl(e){var n="data-aspect-ratio",e=k("["+n+"]",e);E.each(e,function(e){var t=e.getAttribute(n).split(":"),t=1<t.length?parseInt(t[0],10)/parseInt(t[1],10):parseFloat(t[0]);isNaN(t)||(e.style.height=e.offsetWidth/t+"px")})}function dl(){return!I.designer&&f.get("disableGuidePseudoStyles")}function ul(e,t,n){return e&&e.templateName?Xu.buildNodesFromTemplate(e.templateName,e,t,n,pl):"style"===e.type&&dl()?[]:[pl(e,t,n)]}function cl(e,t,n,i){e='illegal building block key "'+e+'" found on guide "'+t+'" step "'+n+'"';throw i&&(e+=' for node type "'+i+'"'),C.info(e),new Error(e)}function ll(n,i,r,o){var a={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},s={embed:{src:!0}},d=/^data-/,u=/^aria-/,e=E.keys(n);return E.reduce(e,function(e,t){return s[o]&&s[o][t]&&cl(t,r,i,o),a[t]||d.test(t)||u.test(t)||cl(t,r,i),e[t]=n[t],e},{})}function pl(n,i,e){i=i||{id:"unknown",guideId:"unknown"},n.props=ll(n.props,i.id,i.guideId,n.type);var t,r=k(document.createElement(n.type));if(document.createElement("div").appendChild(r[0]),"script"===r[0].tagName.toLowerCase())return k(document.createElement("noscript"));if("pendo-backdrop"===(n.props&&n.props.id))return i.attributes&&i.attributes.blockOutUI&&i.attributes.blockOutUI.enabled&&xc.attachScrollHandlers(i,bc),wc(i);if(E.each(n.props,function(e,t){"style"===t?r.css(n.props.style):"data-pendo-code-block"!==t||!0!==e||f.get("preventCodeInjection")?r.attr(t,e):(t=i.getContent(),0!==Ye.call(t).length&&r.addClass("pendo-code-block").html(t))}),n.content&&r.text(n.content),"style"===n.type&&(I.designer||(n.css=function(e){for(var t=["button:focus"],n=[],i=0;i<e.length;i++)E.contains(t,e[i].selector)||n.push(e[i]);return n}(n.css)),(t=f.get("inlineStyleNonce"))&&r.attr("nonce",t),r.styleSheet?r.styleSheet.cssText=ml(n.css):r.text(ml(n.css))),n.svgWidgetId&&ic.buildSvgNode(n.svgWidgetId,n).appendTo(r),n.actions&&n.actions.length)for(var o,a=0;a<n.actions.length;a++)gl(r,n.actions[a],i),"renderGuidesListItem"===n.actions[a].action&&((o=M(n.actions[a].parameters[0]))?r.text(o.name):r.attr("style","display: none;"));if(E.find(n.actions,function(e){return"dismissGuide"===e.action})&&!i.hasEscapeListener&&(i.hasEscapeListener=!0,i.attachEvent(window,"keyup",function(e){27===e.keyCode&&i.eventRouter.eventable.trigger("pendoEvent",{step:i,action:"dismissGuide"})},!0)),n.children)for(var s=oa(au()),d=s!==document,u=0;u<n.children.length;u++){var c=ul(n.children[u],i,e);E.each(c,function(e){var t;e&&("STYLE"!==e[0].tagName?e.appendTo(r):d?((t=new CSSStyleSheet).replaceSync(e[0].innerHTML),(s.hasOwnProperty("wrappedJSObject")?s.wrappedJSObject:s).adoptedStyleSheets.push(t)):(k.addClass(e[0],"pendo-style-"+(i.isBadge?i.guideId:i.id)),e.appendTo(document.head)))})}return r.hasClass("pendo-code-block")?r.find("img").each(function(e){hl(e,i)}):hl(r[0],i),r}function hl(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++,fl(k(e),t))}function fl(e,i){e.on("load",function(){var e,t={},t=(!i.containerId&&i.domJson&&(t=Ku(i.domJson)),i.containerId||t.props&&t.props.id||""),n=t&&k("#"+t,i.guideElement)[0];i&&i.attributes&&i.attributes.imgCount&&(i.attributes.imgCount--,n)&&i.attributes.imgCount<=0&&(Kc(t,i.guideElement),Jc(t,i.guideElement),N.flexAllThings(t,i),e=i.getGuide(),E.get(e,"attributes.isAnnouncement")||"AnnouncementsModule"===E.get(e,"attributes.resourceCenter.moduleId")||(Vc(t,i.guideElement),(e=n.children.item("pendo-guide-container"))&&e.style&&"auto"===e.style.overflow&&(Jc(t,i.guideElement),N.flexAllThings(i.containerId,i))),"tooltip"===i.attributes.calculatedType&&xc.positionStepForTooltip(i,i.domJson,n),n.style.visibility="visible",n.parentNode.style.visibility="visible",k.event.dispatch(n,{type:"imagesLoaded"}))}),e.on("error",function(){var e=k("#"+i.containerId,i.guideElement)[0];e?("tooltip"===i.attributes.calculatedType&&xc.positionStepForTooltip(i,i.domJson,e),e.style.visibility="visible",e.parentNode.style.visibility="visible",N.flexAllThings(i.containerId,i)):C.info("Failed to find guideContainer for id: "+i.containerId)})}function gl(n,i,r){n.on(i.eventType,function(e){var t;i.designerAction?I.designerv2&&I.designerv2.designerActions&&I.designerv2.designerActions[i.action](n,i.parameters):(t={action:i.action,params:i.parameters,step:r,ignore:!!i.ignore,srcElement:e.srcElement},("showElements"!==i.action&&"hideElements"!==i.action||e.srcElement&&e.srcElement.getAttribute("id")===i.source||e.target&&e.target.getAttribute("id")===i.source)&&r.eventRouter.eventable.trigger("pendoEvent",t))})}function ml(n){for(var i="",r=0;r<n.length;r++)i+=n[r].selector+"{",n[r].styles instanceof Array?i+=ml(n[r].styles):E.each(n[r].styles,function(e,t){i+=t+":"+e,n[r].selector.match(/\d+%/)||(i+="!important;")}),i+="}";return i}function vl(t){E.each(document.head.childNodes,function(e){e&&k.hasClass(e,"pendo-style-"+t)&&Wo(e)})}var yl=function(){var e=window.navigator;return((E.isArray(e.languages)?e.languages[0]:e.language||e.browserLanguage||e.systemLanguage||e.userLanguage)||"").split("-").join("_")},bl="meta",wl=E.compose(JSON.parse,JSON.stringify),Sl=function(){var e=new Date,t=e.getDate(),n=e.getMonth()+1;return e=(t=t<10?"0"+t:t)+"/"+(n=n<10?"0"+n:n)+"/"+e.getFullYear()},Il=function(e={}){(e=E.isObject(e)?e:{}).jwt&&e.signingKeyName&&(t=fs.getJwtOptions(e,"updateOptions"))&&(fs.set(E.pick(e,"jwt","signingKeyName")),e=t),t=e,n=E.extend({},t.visitor),i=E.extend({},t.account),t=E.extend({},t.parentAccount),n.id===On&&(C.info("Missing visitor id."),delete n.id),Tn(i.id)&&Tn(t.id)&&(Nn(i.id)?t.id=i.id.split(Mn)[0]:i.id=""+t.id+Mn+i.id),Tn(i.id)&&(i.id=""+i.id),Tn(n.id)?n.id=""+n.id:n.id=b({generate:!0}),n.language=yl(),e={visitor:wl(n),account:wl(i),parentAccount:wl(t),date:Sl(),version:I.VERSION},g.getters["metadata/selfHosted"]()&&(e.selfHosted=!0);var t,n=E.clone(xl()),i=(f.setLocalConfig(E.extend({},f.getLocalConfig(),e)),g.commit("metadata/setMetadata",e),xl()),r=(Tn(e.visitor.id)&&(I.identify(e.visitor.id,e.account.id),e.visitor.id=b(),e.account.id=Gn()),rt(e)),o=(void 0!==(o="object"==typeof(o=r)?rt(o):o)&&o.toString&&(o=o.toString()),""+(E.isNumber(el)?el:Bn(bl))!==o),r=(el=r,o&&jn(bl,r),!E.isEqual(n,i));return{options:e,hashChanged:o,storeChanged:r}},_l=Wn(function(e){e=Il(e);m.metadata.trigger(e)}),El=Wn(function(e,t){E.isObject(e)?_l(e):Fn(e,t)}),Cl=function(){var t,e=k("script");return e=e,t=new RegExp("/agent/static/"+I.apiKey+"/pendo\\.js$"),!E.any(e,function(e){return t.test(e.src)})&&"extension"!==we()},Tl=function(){var e=f.get("blockAgentMetadata");return e!==undefined&&e};function xl(){return g.getters["metadata/metadata"]()}function kl(){return JSON.parse(JSON.stringify(xl()))}m.identify.on(function(e){var t=e.data[0],n=f.getLocalConfig()||{};Hn(e)?(An([bl]),g.commit("metadata/reset",t)):(n.visitor=E.extend({},n.visitor,{id:t.visitor_id}),n.account=E.extend({},n.account,{id:t.account_id}),f.setLocalConfig(n),g.commit("metadata/setMetadata",n))});var Al={Launcher:{addBehavior:E.noop},Metadata:{getMetadata:xl},Util:{documentScrollTop:ho,documentScrollLeft:fo,getOffsetPosition:Ho},Events:m,JWT:{getJWT:fs.get}};var Ol,Rl,Ml,Nl,Ll={},Pl=(Rl=[],Ml=[],Nl={},(Ol=Ll).tagExtension=function(e,t){e=Ol.findExtensionByName(e);e.tags=[].concat(e.tags||[],t)},Ol.findExtensionByTag=function(t){return E.find(Ml,function(e){return E.contains(e.tags,t)})},Ol.findExtensionByName=function(e){return E.findWhere(Ml,{name:e})},Ol.filterExtensionsByUse=function(t){return E.filter(Ml,function(e){return e.use===t})},Ol.findExtensionByNameAndProvider=function(t,n){return E.find(Ml,function(e){e=e.data;return!!e&&e.name===t&&e.provider&&e.provider.name===n})},Ol.registerExtensionsByUse=function(e,t,n){n=n?[].concat(n):[],Nl[e]={handler:t,validators:n}},Ol.getExtensionFrames=function(){return E.reduce(Ml,function(e,t){return t.frame&&t.frame[0]&&e.push(t.frame[0]),e},[])},function(e){e=[].concat(e),(e=E.filter(e,Fl)).length&&(Rl=function n(e){if(!e.length)return e;var t=E.filter(e,$l);if(t.length)return n(E.difference(e,t));return e}(Rl.concat(e)))});function Fl(t){var e;return!!E.every(["name","version","use","type","uri"],E.partial(E.has,t))&&(e=t.use,e=Nl[e]?Nl[e].validators:[],E.every(E.map(e,function(e){return e(t)})))}function $l(e){var t;return"behavior"===e.use?!!e.uri(Ol,Al)&&(Ml.push(e),!0):(t=e.use,!!(t=Nl[t]?Nl[t].handler||E.identity:null)&&((e=t(e))&&Ml.push(e),!!e))}var L,Dl,Ul,Gl,jl,Bl,P={initializeResourceCenter:function(r){if(!(L=Hl(r)))return y.resolve();if(g.getters["frames/isShownInAnotherFrame"]()(L.steps[0]))return y.resolve();if(P.isFullyCustom(L))return L.hasResourceCenterContent=!0,y.resolve();var e=Wl(L,r),t=E.reduce(e,function(e,t){return zl(t)?e.concat(t.steps[0].fetchContent()):e},[]);return t.push(Fu.validate(L).then(E.noop,function(){L.launchMethod="api"})),L.attributes.notifications={totalUnseenCount:0,individualCounts:{chat:0}},E.forEach(Yl(),function(e){var t=Ll.findExtensionByNameAndProvider("chat",e),t=(t&&tp(e,t),Ll.findExtensionByNameAndProvider("helpcenter",e));t&&tp(e,t)}),E.forEach(e,function(t){var e=t.attributes.resourceCenter,n=e.children,i=e.moduleId,e=("IframeModule"===i&&(t.hasResourceCenterContent=!0),"SandboxModule"===i&&(t.hasResourceCenterContent=!0),"IntegrationModule"===i&&(t.integrationConfig=Jl(e.integrationName,e.integrationProvider),t.hasResourceCenterContent=!!t.integrationConfig,t.integrationConfig)&&"chat"===t.integrationConfig.name&&Zl(e.integrationName,e.integrationProvider),E.reduce(n,function(e,t){var n=E.find(r,function(e){return e.id===t});return n?e.concat(n):e},[]));"AnnouncementsModule"===i&&(L.attributes.notifications.individualCounts[t.id]=0,E.forEach(e,function(e){xp(e)||e.isControlGroup()||L.attributes.notifications.individualCounts[t.id]++}));-1<E.indexOf(["GuideListModule","OnboardingModule","AnnouncementsModule"],i)&&E.filter(e,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):!(e.ineligibleForRC=!0)}).length&&(t.hasResourceCenterContent=!0),t.guidesInModule=e}),L.modules=e,L.badgeHidden=!0,y.all(t)["catch"](()=>(L=null,C.error("Failed to load one or more Resource Center modules"),y.resolve()))},findResourceCenterHomeView:Hl,findResourceCenterModules:Wl,replaceResourceCenterContent:ql,renderResourceCenterModule:function(e,t){ql(e.id,undefined,!0,t)},showHomeViewOrEmptyState:function(e){k("#pendo-resource-center-container._pendo-guide-walkthrough_").remove(),delete e.activeModule,e.hasResourceCenterContent&&e.skipResourceCenterHomeView?P.replaceResourceCenterContent(e.moduleIdToReplaceHomeViewWith,[{value:"none"},{value:"left"}]):e.showEmptyState&&(P.showResourceCenterEmptyState(),E.each(e.controlGuidesInAllModules,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}))},showResourceCenterEmptyState:function(){var e=k("#pendo-resource-center-empty-state-container");e&&e.length&&k(e[0]).css({display:"block"})},launchIntegrationByNameAndProvider:function(e,t,n){var e=Ll.findExtensionByNameAndProvider(e,t);return e?(n=k(n))?((e=e.getFrame()).appendTo(n),void e.css({display:"block"})):C.info("could not find target element for "+t+" integration"):C.info(t+" integration has not been loaded into the agent")},appendIntegrationToBodyByNameAndProvider:Zl,attemptToPreserveIntegrationIframes:function(e){e.step&&(e=e.step.getGuide()).attributes&&e.attributes.resourceCenter&&(e=P.getResourceCenterContainer())&&(e=k(e).find('iframe[id^="_pendo-launcher-ext-frame-chat"]'))&&e.length&&e.each(function(e){e=k(e);e.css({display:"none"}),e.appendTo(au())})},getResourceCenter:dp,getResourceCenterContainer:up,getResourceCenterBadge:cp,addNotificationBubbleToResourceCenterBadge:bp,addNotificationBubbleToTargetElement:wp,updateNotificationBubbles:function(){var e=L,t=E.get(e,"attributes.notifications");if(t){var n=fp(t.individualCounts);if(n<=0)n!==t.totalUnseenCount&&Cp(),t.totalUnseenCount=n;else{gp();var i=n!==t.totalUnseenCount;if(i||!pp(Gl)){if("badge"===e.launchMethod){i=cp();if(!i)return;bp(i.element(),e.attributes.notificationBubble,n)}if("dom"===e.launchMethod&&E.get(e,"attributes.activation.selector")){i=k(e.attributes.activation.selector);if(!i.length)return;wp(i[0],e.attributes.notificationBubble,n),_r(window,"resize",E.debounce(hp,50))}t.totalUnseenCount=n}}}},removeNotificationBubble:Cp,updateNotificationBubbleCount:Tp,updateNotificationBubbleOnHomeView:mp,updateOrCreateNotificationBubble:Sp,hexToRgb:lp,doesIntegrationExist:Jl,calculateTotalNotificationCount:fp,updateNotificationBubblesOnHomeView:gp,createNotification:_p,appendNotificationBubble:Ep,hasAnnouncementBeenSeen:xp,clearAnnouncementUnseenInterval:Vl,createAnnouncementUnseenInterval:Kl,findShownResourceCenterModule:function(){var e=P.getResourceCenterContainer();if(e){e=k(e).find('[id^="pendo-g-"]');if(e){var t=e.attr("data-pendo-guide-id"),e=E.find(Wd(),function(e){return e.id===t});if(E.get(e,"attributes.resourceCenter.isModule",!1))return e}}},dismissResourceCenter:kp,repositionResourceCenter:function(){var e=P.getResourceCenterContainer();{var t,n,i;e&&(i=P.findResourceCenterHomeView(Wd()).steps[0],t=E.get(i,"domJson.props.style.height"),t=parseInt(t,10),t=isNaN(t)?0:t,n=parseInt(E.get(i,"domJson.props.style.bottom",0),10),i=parseInt(E.get(i,"domJson.props.style.top",0),10),n=isNaN(n)?0:n,i=isNaN(i)?0:i,(n=jo().height-n-i)<=t&&(e.style.height=(n-10).toString()+"px"),i=parseInt(e.style.height,10),i=isNaN(i)?0:i,t<n)&&t!==i&&(e.style.height=t.toString()+"px")}Wc(k(e))},repositionDoubleResourceCenterBadge:function(){var e,t,n;g.getters["frames/isLeader"]()&&1<(e=E.unique(E.compact([].concat(E.toArray(k("._pendo-resource-center-badge-container"))).concat(E.toArray(k("._pendo-resource-center-badge-container")))))).length&&function(e){var t=Yo(e[0]),e=Yo(e[1]);return Xo(t,e)}(e)&&(t=Ho(e[0]).width+5,n=Ho(e[1]).left-t<0?"":"-",e[1].style.transform="translateX("+n+t+"px)")},resourceCenterIgnoreRtl:function(){return E.get(this.getResourceCenterBadge(),"ignoreRTL",!1)},adjustResourceCenterWidth:function(e){var t=up();if(t){o=jo().width,r=k(t),e=k(e),r.css({"max-width":"none"}),e.css({"max-width":"none"}),i=parseInt(O(r[0]).width,10),o<i&&(i=parseInt(t.style.left,10),i=isNaN(i)?0:i,t=parseInt(t.style.right,10),t=isNaN(t)?0:t,o=o-t-i,r.css({"max-width":o+"px"}),e.css({"max-width":o+"px"}));var t=e,n=k('button[id^="pendo-a11y-list-item-button-block"]');if(n&&n.length)for(var i=k(t.find("ol._pendo-text-list-ordered"))[0],r=0,o=0,i=(i&&(i=O(i),o=parseInt(i.paddingLeft,10),r=parseInt(i.paddingRight,10)),k('[id^="pendo-onboarding-guide-progress-circle"]')[0]),e=0,a=0,s=0,d=(i&&(i=O(i),e=parseInt(i.width,10),a=parseInt(i.marginRight,10),s=parseInt(i.marginLeft,10)),o+r+e+s+a),u=parseInt(O(t[0]).width,10),c=0;c<n.length;c++){var l=n[c],p=k(l),l=(p.css({"max-width":"none"}),O(l)),h=parseInt(l.width,10),l=u-d-(parseInt(l.paddingLeft,10)+parseInt(l.paddingRight,10));l<=h&&p.css({"max-width":l})}}},setNativeIntegrationDefaults:tp,renderNativeIntegration:ap,isSupportedNativeIntegration:Xl,handleNativeIntegrationContinuation:sp,isProviderInstalled:Ql,adjustNotificationBubbleForResize:hp,getNotificationBubbleDefaultCss:Ip,getModuleId:Ap,isIframeModule:function(e){return"IframeModule"===Ap(e)&&e.hasResourceCenterContent},isSandboxModule:function(e){return"SandboxModule"===Ap(e)&&e.hasResourceCenterContent},isIntegrationModule:function(e){return"IntegrationModule"===Ap(e)&&e.hasResourceCenterContent},isFullyCustom:function(e){return"FullyCustomModule"===Ap(e)},integrationModuleHasContent:function(e){e=e.attributes.resourceCenter;return!P.isSupportedNativeIntegration(e.integrationProvider)||P.isProviderInstalled(e.integrationProvider)},fetchAnnouncementGuidesContent:function(e,t){var n=Hl(e);if(!n)return y.resolve();if(t.getters["frames/isShownInAnotherFrame"]()(n.steps[0]))return y.resolve();if(P.isFullyCustom(n))return y.resolve();var t=Wl(n,e),i=[],r=E.indexBy(e,"id");return E.each(t,function(e){var e=e.attributes.resourceCenter;"AnnouncementsModule"===e.moduleId&&(e=e.children,e=E.reduce(e,function(e,t){t=r[t];return t?e.concat(t):e},[]),E.each(e,function(e){zl(e)&&i.push(e.steps[0].fetchContent(!0))}))}),y.all(i)},setFocusForResourceCenterModule:function(e,t){var n;"HomeViewModule"===e[0].getAttribute("data-layout")?t&&(e=k('[data-pendo-module-guide-id="'+t+'"]'),n=e.find('button[id^="pendo-right-caret-"]')[0]):(t=k('[id="pendo-resource-center-module-title-container"]'),n=t.find('button[id^="pendo-left-caret-"')[0]);n&&n.focus()},revertRtlChanges:function(e,t){var n="rtl"===E.get(t,"data-localization-direction",!1),e=E.get(e,"attributes.badge.ignoreRTL",!1);n&&e&&!t["data-direction-changed"]&&(n=E.get(t,"style.left",!1),e=E.get(t,"style.right",!1),n)&&e&&(t.style.left=e,t.style.right=n,t["data-direction-changed"]=!0)},stashBadgeAriaLabel:vp,resetBadgeAriaLabel:function(){var e=P.getResourceCenterBadge();{var t;e&&(e=e.element(),t=e.getAttribute("data-pendo-stashed-aria-label"))&&e.setAttribute("aria-label",t)}},getNotificationBubbleAriaLabelAttribute:yp,updatePseudoStyleSelectors:Op,hideRCBadge:Rp};function zl(e){return e.steps&&e.steps.length&&E.isFunction(e.steps[0].fetchContent)}function Hl(e){var e=E.filter(e,function(e){return E.get(e,"attributes.resourceCenter.isTopLevel")&&!e.isFrameProxy}),t=E.find(e,function(e){return"staged"===e.state});return t||e[0]}function Wl(t,e){return E.filter(e,function(e){return e&&!e.isFrameProxy&&E.get(e,"attributes.resourceCenter.isModule",!1)&&e.state===t.state})}function ql(t,e,n,i=!0){if(!Ul){var r="left 200ms",o="left",e=(e&&2<=e.length&&(r=e[0].value,o=e[1].value),up());if(e){var a=k(e).find('[id^="pendo-g-"]')[0];if(a){var s,d=a.getAttribute("data-pendo-guide-id"),u=E.find(Wd(),function(e){return e.id===t}),c=(t!==L.id?(vl(E.get(L.activeModule||L,"steps.0.id")),L.activeModule=u):(s=L.activeModule,vl(E.get(s,"steps.0.id")),delete L.activeModule),E.get(u,"attributes.resourceCenter.integrationProvider")),l=(Xl(c)&&ap(c),u.steps[0]),c=Op(l.domJson),c=(c.props["data-pendo-guide-id"]=u.id,pl(c,l)),p=c[0],r=(-1===p.id.indexOf("pendo-g-")&&(p=c.find('[id^="pendo-g-"]')[0]),n||(p.style.transition=r,a.style.transition=r,"left"===o?p.style.left=e.offsetWidth+"px":"right"===o&&(p.style.left=-1*e.offsetWidth+"px")),n&&(k(a).remove(),s)&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),k(e).find('[id^="pendo-end-focus-bumper-"]')[0]);if(r?k(p).insertBefore(r):k(p).appendTo(e),l.guideElement=k(e),l.elements.push(l.guideElement[0]),P.adjustResourceCenterWidth(p),"AnnouncementsModule"===Ap(u)&&l.guide.guidesInModule?(Jc(r=E.reduce(l.guide.guidesInModule,function(e,t){var n;return E.isUndefined(t.steps[0].attributes.imgCount)&&(n=t.steps[0].id,n=k(p).find("#pendo-g-"+n)[0]?n:t.id,e.push("pendo-g-"+n)),e},[]),l.guideElement),E.each(r,function(e){N.flexAllThings(e,l)})):N.flexAllThings("pendo-resource-center-container"),Wc(k(e)),p.style.left="0px",!n){Ul=!0;try{"left"===o?a.style.left=-1*e.offsetWidth+"px":"right"===o&&(a.style.left=e.offsetWidth+"px"),Dt(function(){k(a).remove(),s&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),Ul=!1},200)}catch(h){throw Ul=!1,h}}return"AnnouncementsModule"===Ap(u)&&(Kl(),r=Xu.getGuidesInResourceCenterModule(u,Wd()),(n=E.reduce(r,function(e,t){return t.steps&&t.steps.length&&Hu.hasContent(t.steps[0])||e.push(t.fetchContent()),e},[])).length)&&((o=function(){var i,e,t;if(E.isFunction(document.createElementNS))return i="http://www.w3.org/2000/svg",e=function(e,t){var n=k(document.createElementNS(i,"circle")).attr({cx:e,cy:t,fill:"#9a9ca5",r:5});return E.each(E.toArray(arguments).slice(2),function(e){n.append(e)}),n},t=function(e){return k(document.createElementNS(i,"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:e})},t=k(document.createElementNS(i,"svg")).attr({viewBox:"0 0 70 20",xmlns:"http://www.w3.org/2000/svg",width:"70",height:"20"}).append(e(21,10,t("-0.32s"))).append(e(35,10,t("-0.16s"))).append(e(49,10,t("0s"))),k(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(t)}())&&c.find("ol").append(o),y.all(n).then(function(){var e=y.defer();return Dt(e.resolve,500),e.promise}).then(function(){L.activeModule===u&&P.renderResourceCenterModule(u,i)})),P.setFocusForResourceCenterModule(c,d),i&&l.onShown("launcher"),c}}}}function Vl(){window.clearInterval(Dl),Dl=null}function Kl(){Dl=Dl||window.setInterval(function(){var e=up();if(!e)return Vl();e=k(e).find('[data-layout="AnnouncementsModule"]');if(!e.length)return Vl();var t=k(e).find('ol[id^="pendo-list"]');if(!t.length)return Vl();var n=Yo(t[0]),i=k(t).find("li");if(!i.length)return Vl();for(var r=e.attr("data-pendo-guide-id"),o=L.attributes.notifications.individualCounts[r],a=n.height/3,s=Yo(i[i.length-1]).bottom-30<n.top+n.height,d=0;d<i.length;d++){var u=k(i[d]),c=u.hasClass("pendo-unseen-announcement"),l=u.attr("data-pendo-announcement-send-seen-event");if(c||l){if(Yo(i[d]).top-n.top>n.height-a&&!s)break;var p=u.attr("data-pendo-announcement-guide-id"),l=E.find(Wd(),function(e){return e.id===p});if(!l)break;c&&(u.removeClass("pendo-unseen-announcement"),c=u.find(".pendo-unread-announcement-mini-bubble"),_e(10)?u.find(".pendo-unread-announcement-mini-bubble").remove():(c[0].style.visibility="hidden",c[0].style.opacity="0",c[0].style.transition="visibility 0s 2s, opacity 2s linear"),xp(l)||o--,Tp(o,r)),l.steps[0].seenState="advanced",Fg(l.id,l.steps[0].id,b(),"whatsnew",l.language,{last_updated_at:l.steps[0].lastUpdatedAt}),u[0].removeAttribute("data-pendo-announcement-send-seen-event"),Dg(l.id,l.steps[0].id,b(),"advanced",l.language)}}},500)}function Jl(e,t){return Ll.findExtensionByNameAndProvider(e,t)}function Zl(e,t){e=Ll.findExtensionByNameAndProvider(e,t);if(!e)return C.info(t+" integration has not been loaded into the agent");Xl(t)&&Ql(t)?L.hasEligibleNativeIntegrationModule=!0:(Zo((t=e.getFrame())[0])||t.appendTo(au()),t.css({display:"none"}))}function Yl(){return["drift-native-chat","intercom-chat","zendesk-chat","zendesk-native-kb","zendesk-messaging"]}function Xl(e){return!!e&&0<=Yl().indexOf(e)}function Ql(e){return!!e&&null!==(e=ep(e))&&E.isFunction(window[e])}function ep(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 tp(e,t){if(e)if(Ql(e))np(e,t);else{var n;if("function"==typeof Object.defineProperty){const i=ep(e);null!==i&&(jl&&jl[i]?jl[i][e]||(jl[i][e]={installed:!1,integrationObj:t}):((jl=jl||{})[i]={[e]:{installed:!1,integrationObj:t}},Object.defineProperty(window,i,{get(){return n},set(e){n=e,E.forEach(jl[i],function(e,t){const n=e.integrationObj;!e.installed&&Ql(t)&&(e.installed=!0,np(t,n),Zl(n.name,t),E.forEach(L.modules,function(e){e.integrationConfig&&e.integrationConfig.data.name===n.name&&e.integrationConfig.data.provider.name===t&&(e.hasResourceCenterContent=!0)}))})},configurable:!0,enumerable:!0})))}}}function np(e,t){switch(e){case"zendesk-chat":case"zendesk-native-kb":var n=(i=t).data.provider.name,i=rp(i);ip(n,"webWidget","hide"),ip(n,"webWidget","updateSettings",{webWidget:{navigation:{popoutButton:{enabled:!1}},position:{vertical:i?i[0]:"bottom",horizontal:i?i[1]:"right"}}}),ip(n,"webWidget:on","close",function(){ip(n,"webWidget","hide"),op()}),L.isInProgress()&&sp(L.activeModule),ip(n,"webWidget:on","chat:unreadMessages",function(e){Tp(e,"chat")});break;case"zendesk-messaging":i=t;ip(i=i.data.provider.name,"messenger","hide"),ip(i,"messenger:on","close",function(){op()}),ip(i,"messenger:on","unreadMessages",function(e){Tp(e,"chat")});break;case"intercom-chat":var r=t;r=rp(r),window.intercomSettings||(window.intercomSettings={}),window.intercomSettings.hide_default_launcher=!0,window.intercomSettings.alignment=r?r[1]:"right",window.Intercom("update",{hide_default_launcher:!0,alignment:r?r[1]:"right"}),window.Intercom("onHide",function(){op()});break;case"drift-native-chat":window.drift.on("ready",function(e){window.drift.hide();var t=xl();window.drift.identify(t.visitor.id,function o(e){const t={};for(const n in e)if("object"!=typeof e[n]||Array.isArray(e[n]))t[n]=e[n];else{const i=o(e[n]);for(const r in i)i[r]&&(t[n+"."+r]=i[r])}return t}(t)),window.drift.on("message",function(e){if(!L.isNativeModuleActive)return Tp(1,"chat")})}),window.drift.on("chatClose",function(e){Tp(0,"chat"),window.drift.hide(),op()})}}function ip(e,...t){try{Bl&&Bl[e]||window.zE.apply(null,t)}catch(n){Bl?Bl[e]=!0:Bl={[e]:!0}}}function rp(e){e=E.get(e,"data.options.labels.position");return e=e&&e.split("-")}function op(){kp(L.activeModule),delete L.activeModule,L.continueToNativeModule=!1}function ap(e,t){if(e){var n=xl();if(L.isShown()&&L.hide(),Bl&&Bl[e])C.info(e+" integration failed to communicate with API, closing"),P.replaceResourceCenterContent(L.id,undefined,!0),op();else{var i=cp();switch(i&&Rp(i,L),e){case"zendesk-messaging":ip(e,"messenger","show"),ip(e,"messenger","open");break;case"zendesk-native-kb":ip(e,"webWidget","updateSettings",{webWidget:{helpCenter:{suppress:!1},chat:{suppress:!0}}}),ip(e,"webWidget","show"),ip(e,"webWidget","open");break;case"zendesk-chat":ip(e,"webWidget","updateSettings",{webWidget:{chat:{suppress:!1},helpCenter:{suppress:!0}}}),window.$zopim.livechat.window.show(),n&&n.visitor&&n.visitor.email&&ip(e,"webWidget","prefill",{email:{value:n.visitor.email}});break;case"intercom-chat":window.Intercom("show"),n&&n.visitor&&n.visitor.email&&window.Intercom("update",{email:n.visitor.email});break;case"drift-native-chat":window.drift.api.openChat(),n&&n.visitor&&n.visitor.email&&window.drift.config({email:n.visitor.email})}Tp(0,"chat"),!L.activeModule&&t&&(L.activeModule=t).steps[0].onShown("launcher")}}}function sp(e){e&&!e.isTopLevel&&(ap(E.get(e,"attributes.resourceCenter.integrationProvider")),L.activeModule||(L.activeModule=e),e.steps[0].onShown("continue"),e.attributes.doNotResume=!0)}function dp(){return L}function up(){return E.get(L,"steps.0.guideElement.0")}function cp(){if(L&&L.id)return Bd[L.id]}function lp(e){e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}function pp(e){return e&&E.all(e,function(e){return Zo(e&&e.length?e[0]:e)})}function hp(){var e,t=P.getResourceCenter(),n=E.get(t,"attributes.notifications");n&&(n=P.calculateTotalNotificationCount(n.individualCounts),"dom"===t.launchMethod)&&E.get(t,"attributes.activation.selector")&&(e=k(t.attributes.activation.selector)).length&&P.addNotificationBubbleToTargetElement(e[0],t.attributes.notificationBubble,n)}function fp(e){return E.reduce(e,function(e,t){return e+t},0)}function gp(){var e,t=L;t&&(t=E.get(t,"attributes.notifications"))&&(e=up())&&k(e).find("._pendo-resource-center-home-list").length&&E.each(t.individualCounts,function(e,t){mp(e,t)})}function mp(e,t){var n=P.getResourceCenterContainer();n&&(n=k(n).find('[data-pendo-notification-id="'+t+'"]')).length&&(t=k(n[0]).find("._pendo-home-view-bubble"),n=k(t[0].children[0]),e!==parseInt(n.text(),10))&&(0<e?(n.text(e),k(t[0]).css({display:"block","margin-right":"0"})):(n.text(""),k(t[0]).css({display:"none"})))}function vp(e){var t;e.getAttribute("data-pendo-stashed-aria-label")||(t=e.getAttribute("aria-label"),e.setAttribute("data-pendo-stashed-aria-label",t))}function yp(e){return 1!==e?"data-pendo-aria-label-alert-plural":"data-pendo-aria-label-alert-singular"}function bp(e,t,n){var i=yp(n);let r=e.getAttribute(i);r&&(vp(e),r=r.replace("{UNSEEN_COUNT}",n),e.setAttribute("aria-label",r));var i=E.get(t,"position","top-left"),o=O(e),o=(parseInt(o.width,10)||56)/2,a=o/Math.sqrt(2),o=Math.round(o-a)-10,s=o-10,a=Math.round(2*a),o={"top-left":{top:o+"px",left:s+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"top-right":{top:o+"px",left:s+a+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-left":{top:o+a,left:s+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-right":{top:o+a,left:s+a+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"}},s=e.attributes["data-localization-direction"]||!1,a=P.resourceCenterIgnoreRtl();Sp(e,t,n,o[i=s&&!a?{"top-left":"top-right","top-right":"top-left","bottom-left":"bottom-right","bottom-right":"bottom-left"}[i]:i])}function wp(e,t,n){var i=bo(e,e),r=bo(e,Ko());Sp(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 Sp(e,t,n,i,r){var o,a;pp(Gl)?(a=(o=Ip(t)).defaultBubbleCss,o=o.defaultUnseenCountCss,a=E.extend(a,i),o=E.extend(o,r),Gl.bubbleEle.css(a),Gl.unseenCountEle.css(o),Gl.unseenCountEle.text()!=""+n&&Gl.unseenCountEle.text(n)):(a=k(e).find(".pendo-resource-center-badge-notification-bubble")).length?a[0].getElementsByClassName("pendo-notification-bubble-unread-count")[0].textContent=n:n&&Ep(Gl=_p(t,n,i,r),e)}function Ip(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 _p(e,t,n,i){var r=Ip(e),o=r.defaultBubbleCss,r=r.defaultUnseenCountCss,a=(t=t||0,k(document.createElement("div")).addClass("pendo-resource-center-badge-notification-bubble")),s=k(document.createElement("div")).addClass("pendo-notification-bubble-unread-count"),o=E.extend(o,n),n=E.extend(r,i);return a.css(o),s.css(n),_e(10)||dl()||(i="rgb("+(r=lp(e["background-color"])).r+", "+r.g+", "+r.b+")",Yu(f,"pendo-resource-center-bubble-animation","@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: '+i+"; border-radius: 100%; z-index: -1; animation: pulse 2s infinite; will-change: transform; }"))),s.text(t),{bubbleEle:a,unseenCountEle:s}}function Ep(e,t){e.unseenCountEle.appendTo(e.bubbleEle),e.bubbleEle.appendTo(t)}function Cp(){var n=Gl?Gl.bubbleEle:k(".pendo-resource-center-badge-notification-bubble"),i=Gl?Gl.styleEle:k("#pendo-resource-center-bubble-animation");n&&E.each(n,function(e,t){n[t]&&(t=n[t])&&t.parentNode&&t.parentNode.removeChild(t)}),i&&E.each(i,function(e,t){i[t]&&(t=i[t])&&t.parentNode&&t.parentNode.removeChild(t)}),Gl=null,P.resetBadgeAriaLabel()}function Tp(e,t){var n=L;n&&(n=E.get(n,"attributes.notifications"))&&n.individualCounts[t]!==e&&(n.individualCounts[t]=e,P.updateNotificationBubbles())}function xp(e){return!(!E.isFunction(e.hasBeenSeen)||!e.hasBeenSeen())||"active"===e.steps[0].seenState}function kp(e){var t=E.get(e,"attributes.resourceCenter.isModule",!1)?e:P.findShownResourceCenterModule();t&&(t=E.first(t.steps),vg(t));t=(E.get(e,"attributes.resourceCenter.isTopLevel",!1)?e:P.findResourceCenterHomeView(Wd())).steps[0];return vg(t)}function Ap(e){return E.get(e,"attributes.resourceCenter.moduleId")}function Op(e){var t=["pendo-a11y-list-item-button-block","pendo-link-","pendo-right-caret-","pendo-row-","pendo-text-"].join("|");const n=new RegExp(`#((${t})[^:]*)`);t=function i(e,t){var n=[];return t(e)&&n.push(e),e.children?n.concat(...E.map(e.children,function(e){return i(e,t)})):n}(e,function(e){return e.css&&e.css.length});return E.forEach(t,function(e){E.forEach(e.css,function(e){e.selector=e.selector.replace(n,"[id^='$1']")})}),e}function Rp(e,t){e.hide(),t&&t.id&&(t.steps&&t.steps.length&&(t.steps[0].overrideElement=undefined),delete Bd[t.id])}var Mp=1e4,Np="lastStepAdvanced";function Lp(e){g.dispatch("guideState/updateLastGuideStepSeen",e),g.dispatch("guideState/write"),g.dispatch("frames/changeLastGuideStepSeen",e)}function Pp(){g.dispatch("guideState/regainFocus")}function Fp(){return g.state.guideState.lastGuideStepSeen}var r={actions:{init(e){e.getters.storage().registry.addLocal(Np),e.commit("setScopedStorageKey",Ft(e.state.storageKey)),m.identify.on(function(e){Hn(e)&&An([Np])})},load(t,e){if(e){var n;try{n=JSON.parse(e)}catch(i){}n&&E.each([].concat(n),function(e){t.commit("setStepState",e)})}},forceExpire(n){E.each(n.state.steps,function(e,t){n.commit("expireStepState",t)})},expire(n){var i=n.getters.now();E.each(n.state.steps,function(e,t){i-e.time>n.state.ttl&&n.commit("expireStepState",t)})},apply(o){var a,s=E.indexBy(o.getters.guideList(),"id");o.dispatch("expire"),E.each(o.state.steps,function(e){var t,n,i=e.guideId,r=e.guideStepId;e.visitorId&&e.visitorId!==o.getters.visitorId()||((!a||e.time>a.time)&&(a=e),(i=s[i])&&(t=E.findWhere(i.steps,{id:r}))&&(n=o.state.storageKey,t.seenState!=e.state&&(C.info("making sure that seenState = '"+e.state+"' for "+n+": "+r),t.seenState=e.state),t.snoozeEndTime!=e.snoozeEndTime&&(C.info("making sure that snoozeEndTime = '"+e.snoozeEndTime+"' for "+n+": "+r),t.snoozeEndTime=e.snoozeEndTime),t.seenReason!=e.seenReason&&(C.info("making sure that seenReason = '"+e.reason+"' for "+n+": "+r),t.seenReason=e.seenReason),e.dismissCount!==undefined&&t.dismissCount!=e.dismissCount&&(t.dismissCount===undefined?t.dismissCount=e.dismissCount:t.dismissCount=Math.max(e.dismissCount,t.dismissCount),C.info("making sure that dismissCount = '"+t.dismissCount+"' for "+n+": "+r)),e=E.indexOf(i.steps,t),E.each(i.steps.slice(0,e),function(e){E.contains(["advanced","dismissed"],e.seenState)||(e.seenState="advanced")})))}),a&&o.dispatch("updateLastGuideStepSeen",E.extend({},o.state.lastGuideStepSeen,a))},receiveLastGuideStepSeen(e,t){e.commit("setReceivedLastGuideStepSeen",t),e.commit("setLastGuideStepSeen",t)},updateLastGuideStepSeen(e,t){var n;t.visitorId&&t.visitorId!==e.getters.visitorId()||(n=E.some(e.getters.guideList(),function({id:e}){return e===t.guideId}),t.guideStepId&&e.commit("setStepState",t),n&&(e.commit("setLastGuideStepSeen",t),I.lastGuideStepSeen=t))},updateThrottlingState(e,t){e.commit("setThrottlingState",t)},write(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(E.map(e.state.steps,function(e){return E.extend({tabId:t},e)}));C.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(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(a){}e.getters.storageChangedInOtherTab()(o)&&(Kp(),e.dispatch("load",r),e.dispatch("apply"),e.state.receivedStateChangeAt||e.commit("setReceivedStateChange",e.getters.now()))}},regainFocus(e){var t=e.getters.tabLostFocus(),n=e.getters.isGuideRequestStale();t&&(e.commit("setReceivedStateChange",null),n||(Jp(),Zp())),n&&jm()}},mutations:{expireStepState(e,t){e.expired[t]=e.steps[t],delete e.steps[t]},setStepState(e,t){e.steps[t.guideStepId]=t},setScopedStorageKey(e,t){e.scopedStorageKey=t},setLastGuideStepSeen(e,t){e.lastGuideStepSeen=t},setReceivedLastGuideStepSeen(e,t){e.receivedLastGuideStepSeen=t},setReceivedStateChange(e,t){e.receivedStateChangeAt=t},setLastGuideRequestAt(e,t){e.lastGuideRequestAt=t},setThrottlingState(e,t){e[t.name]=t.value}},state:{steps:{},expired:{},ttl:Mp,storageKey:Np,guideRequestExpiration:36e5,scopedStorageKey:null,receivedStateChangeAt:null,receivedLastGuideStepSeen:null,lastGuideStepSeen:null,lastGuideRequestAt:null,latestDismissedAutoAt:null,latestSnoozedAutoAt:null,finalAdvancedAutoAt:null},getters:{now(){return v()},storage(){return h},guideList(){return R},tabLostFocus(e){return!!e.receivedStateChangeAt},isGuideRequestStale(e,t){return null!=e.lastGuideRequestAt&&t.now()-e.lastGuideRequestAt>e.guideRequestExpiration},storageChangedInOtherTab(n,e,i){return function(e){var t=E.get(i,"frames.tabId");return!!e&&!!((e=E.max(E.compact(e),"time"))&&e.tabId&&t&&e.tabId!==t)&&(!n.lastGuideStepSeen||!n.lastGuideStepSeen.time||e.time>n.lastGuideStepSeen.time)}},cookieSuffix(){return f.get("crossAppGuideStorageSuffix")},visitorId(){return b()}}},$p={canDisplay:function(e,t,n){if(n&&n.enabled&&E.isFinite(t)){t=Gp(t,n);if(E.isNumber(t)&&!isNaN(t))return t<=e}return!0},lastDismissedTime:function(e){return Math.max(e.latestDismissedAutoAt||-Infinity,e.finalAdvancedAutoAt||-Infinity,e.latestSnoozedAutoAt||-Infinity)},sortAndFilter:function(e,t){var n=f.get("appAutoOrdering")||[].concat(f.get("leaderKey"));{var i;n.length&&(i=g.getters["frames/autoOrdering"](),n=E.reduce(n,(e,t)=>e.concat(i[t]||[]),[]),t=E.uniq(n.concat(t)))}var r,o,n=function(e){e=E.defaults(E.groupBy(e,function(e){return Up(e)?"override":"auto"}),{override:[],auto:[]});return e.override.concat(e.auto)}(function(e,t){var n;return E.isArray(t)&&t.length?(n=E.indexBy(e,"id"),t=E.reduce(t,i,[]),E.chain(e).pluck("id").reduce(i,t).value()):e;function i(e,t){return n[t]&&(e.push(n[t]),delete n[t]),e}}(E.filter(e,Dp),t));return E.find(e,function(e){return e.isTraining})?(t=f.get("adoptPrioritizeAdoptGuides"),e=t,r=[],o=[],E.each(n,function(e){(e.isTraining?r:o).push(e)}),e?r.concat(o):o.concat(r)):n},tryDisplayGuide:function(e,t){var n=$p.lastDismissedTime(t),n=$p.canDisplay(v(),n,t.throttling);if((Up(e)||n)&&e.shouldAutoDisplay())return e.autoDisplay()},getNextAutoDisplayTime:Gp};function Dp(e){return e&&/auto/.test(e.launchMethod)}function Up(e){return(t=e).attributes&&t.attributes.overrideAutoThrottling||E.isFunction(e.shouldShowSnoozedGuide)&&e.shouldShowSnoozedGuide();var t}function Gp(e,t){var n=t.interval,t=(t.unit||"").toLowerCase();return E.isNumber(n)&&ct(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:E.isNumber(n)?(new Date).getTime():void 0}function jp(t){return m.guideSeen.on(function(e){var e=e.data[0].props||{};"permalink"===e.reason&&(e=t(e.guide_id))&&(e.shownFromPermalink=!0)}),{tryDisplay:function(){var t=r(window.location.href),e=this.getGuideFromUrl(t);{var n,i;if(e&&this.shouldShowPermalinkGuide(e))return n=this.getStepFromUrl(t,e),i=t.pendo_once,this.showPermalinkGuide(e,n).then(function(e){return e&&i&&(delete t.pendo_once,delete t.pendo,delete t.step,delete t.c__pendo,window.history.replaceState({},document.title,window.location.pathname+"?"+eo(t))),e})}},getQueryString:r,getGuideFromUrl:function(e){e=e.pendo||e.c__pendo;return e?t(e):null},getStepFromUrl:function(e,t){e=e.step;return e?function(e,t){return E.find(e.steps,function(e){return e.id===t})}(t,e):null},showPermalinkGuide:function(e,t){return(t||e).show("permalink")},shouldShowPermalinkGuide:function(e){return!e.shownFromPermalink}};function r(e){var t=Jr(e).substring(1),t=Qr(t),n=e.indexOf("#");return!t.pendo&&0<=n&&(n=Jr(e.substring(n+1)).substring(1),E.extend(t,Qr(n))),t}}var Bp=E.memoize(function(){return jp(M)});function zp(e,t){var e=E.find(e,function(e){return e.isContinuation(t)}),n=e&&e.attributes&&e.attributes.doNotResume;if(e&&!n)return e}class Hp{constructor(){this.name="autoDisplay",this.queue=[]}markDirty(){hu()&&(this.queue.push("permalink","continuation"),this.queue.push(...$p.sortAndFilter(Hd(),I.autoOrdering)))}process(e){if(ng())this.cancel();else{var t=this.queue.shift();if("permalink"===t)return Bp().tryDisplay(I);if("continuation"===t){var n=zp(Hd(),Fp());if(n)return e.saveContext(n),n.show("continue")}else if(t){if(!zp(Hd(),Fp()))return e.saveContext(t),$p.tryDisplayGuide(t,I);this.cancel()}}}handleProcessTimeExceeded(e){e=e.getContext();e&&C.warn("Auto display ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}var Wp=null,qp=500,Vp=function(e){Wp=E.delay(function(){Wp=null,Zp()},e=e||qp),I.guidesProcessingThreadHandle=Wp},Kp=function(){Wp&&(clearTimeout(Wp),Wp=null,I.guidesProcessingThreadHandle=Wp),g.dispatch("guideUpdate/stopScheduledUpdate")},Jp=function(){sg(),ah.cancel();for(var e=0;e<jd.length;e++){var t=jd[e];t.parentNode.removeChild(t)}jd.length=0,g.dispatch("guideUpdate/stopObserver"),m.guideLoopStopped.trigger()},Zp=function(){if(Kp(),Gm.pending||Qg&&I.id&&I.id!==Qg.id)C.info("guides are loading.",{contexts:["guides","loading"]});else if(Am())C.info("guides are disabled.",{contexts:["guides","disabled"]});else if(Om())C.info("guides are delayed.",{contexts:["guides","delayed"]});else if(!g.getters["guideState/tabLostFocus"]())try{var e=Xd();e&&0!==e.length&&(g.dispatch("guideUpdate/startObserverIfNeeded"),ah.isComplete()&&ah.markDirty(),g.getters["frames/leaderExists"]())&&ah.process()}catch(t){ah.cancel(),C.critical("ERROR in guide-loop",{error:t})}finally{ah.paused||(ah.isComplete()?(g.state.guideUpdate.useObserver&&!g.state.guideUpdate.needsUpdate||Vp(),m.guideUpdateComplete.trigger()):Vp(50))}};var Yp=function(){var e=f.getLocalConfig();f.get("delayGuides")&&(delete e.delayGuides,f.setLocalConfig(e)),f.get("guides.delay")&&(delete e.guides.delay,f.setLocalConfig(e)),Zp()},Xp=function(){Am()||Mm(!0),Jp(),em()};class Qp{constructor(e,t){this.dirty=!1,this.name=e,this.processFn=E.isFunction(t)?t:E.noop}markDirty(){this.dirty=!0}process(){this.processFn(),this.dirty=!1}cancel(){this.dirty=!1}isComplete(){return!this.dirty}}class eh{constructor(){this.name="badge",this.queue=[]}markDirty(){this.queue.push.apply(this.queue,E.filter(qd(Hd()),tu))}process(e){var t=this.queue.shift();e.saveContext(t),t&&t.placeBadge()}handleProcessTimeExceeded(e){e=e.getContext();C.warn("Badge ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}function th(i,e){var r,o,t,n,a;P.isFullyCustom(i)||(r=!1,o=[],t=E.filter(i.modules,function(e){var t,n;return!!e&&(!!P.isIframeModule(e)||!!P.isSandboxModule(e)||(P.isIntegrationModule(e)?!!P.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1):(t=(n=E.filter(e.guidesInModule,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):(e.ineligibleForRC=!0,e.control&&o.push(e),!1)})).length,e.hasResourceCenterContent=!!t,i.activeModule&&e.id===i.activeModule.id&&(n=rt(E.map(n,function(e){var t=e.isAnnouncement()||e.isWhatsNew()?null:E.pluck(e.steps,"seenState");return{id:e.id,seenState:t}})),e.eligibleGuidesInModuleHash&&n!==e.eligibleGuidesInModuleHash&&(r=!0),e.eligibleGuidesInModuleHash=n),t)))}),n=!1,i.activeModule||(a=rt(E.map(t,function(e){return{id:e.id}})),i.eligibleModulesHash&&i.eligibleModulesHash!==a&&(n=!0,P.replaceResourceCenterContent(i.id,undefined,!0)),i.eligibleModulesHash=a),e(i,t,o),1===t.length&&(i.skipResourceCenterHomeView=!0,i.moduleIdToReplaceHomeViewWith=t[0].id,a=!i.activeModule&&n,e=i.activeModule&&i.activeModule.id!==t[0].id,a||e||r)&&P.replaceResourceCenterContent(i.moduleIdToReplaceHomeViewWith,undefined,!0),t&&(n=E.find(t,function(e){return e.isContinuation(Fp())}),a=E.get(n,"attributes.doNotResume"),e=E.get(n,"attributes.resourceCenter.integrationProvider"),P.isSupportedNativeIntegration(e))&&!a&&i&&(i.continueToNativeModule=!0,n.continueToNativeModule=!0),i.activeModule&&((e=E.find(t,function(e){return e.id===i.activeModule.id}))&&r&&P.replaceResourceCenterContent(i.activeModule.id,undefined,!0),e||P.replaceResourceCenterContent(i.id)),P.repositionResourceCenter())}function nh(e,t,n){var i,r,o=Bd[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&&P.hideRCBadge(o,e),E.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||(E.isFunction(e.placeBadge)&&e.placeBadge(),o=Bd[e.id]),o&&o.show(),e.badgeHidden=!1)}function ih(e){var t,n,i,r,o,a;e&&e.launchMethod&&(e.skipResourceCenterHomeView=!1,e.hasResourceCenterContent=!0,delete e.moduleIdToReplaceHomeViewWith,t=e.activeModule,n=E.get(t,"attributes.resourceCenter.integrationProvider"),e.isNativeModuleActive=t&&P.isSupportedNativeIntegration(n),P.isFullyCustom(e)?e.hasResourceCenterContent=!0:(e.isShown()||!g.getters["frames/isLeader"]()?th(e,nh):(t=e,n=nh,P.isFullyCustom(t)||(i=[],o=[],(r=E.find(t.modules,function(e){return!!P.isIframeModule(e)||!!P.isSandboxModule(e)||!!P.isIntegrationModule(e)&&(!!P.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1))}))&&i.push(r),r=E.flatten(E.pluck(t.modules,"guidesInModule")),o=E.filter(E.compact(r),function(e){return e.control}),!i.length&&(a=E.reduce(t.modules,function(t,n){return E.each(n.guidesInModule,function(e){t[e.id]=n}),t},{}),r=E.filter(r,function(e){return e&&e.steps&&e.steps.length}),r=E.sortBy(r,function(e){return e.steps[0].elementPathRule?1:0}),r=a[(r=E.find(r,function(e){return e.shouldBeAddedToResourceCenter()}))&&r.id])&&i.push(r),n(t,i,o))),e.isNativeModuleActive&&(e.isShown()&&e.hide(),a=Bd[e.id])&&P.hideRCBadge(a,e),"dom"===e.launchMethod&&(P.updateNotificationBubbles(),P.adjustNotificationBubbleForResize())))}class rh{constructor(e=50){this.startTime=-1,this.timeLimit=e,this.context=null}start(){this.context=null,this.startTime=v()}isTimeExceeded(){return v()-this.startTime>this.timeLimit}saveContext(e){this.context=e}getContext(){return this.context}}class oh{constructor(e){this.phases=e,this.queue=[],this.paused=!1}markDirty(){for(var e of this.phases)e.markDirty();this.queue=this.phases.slice()}runGuidePhase(){for(var e,t,n,i=this.queue[0],r=new rh(50);!this.timedOut()&&!i.isComplete()&&!e;)r.start(),!(e=i.process(r))&&r.isTimeExceeded()&&(i.handleProcessTimeExceeded&&i.handleProcessTimeExceeded(r),this.ejectGuide(r.getContext()));ft(e)?(t=this.updateId,n=E.bind(function(){this.updateId===t&&(this.paused=!1,Zp())},this),this.paused=!0,e.then(n)["catch"](n)):i.isComplete()&&this.queue.shift()}addPhase(e,t){t=t||e.name||this.phases.length,E.isFunction(e)&&(e=new Qp(t,e)),this.phases.push(e)}removePhase(t){var e=E.findIndex(this.phases,function(e){return e.name===t});0<=e&&this.phases.splice(e,1)}timedOut(){return!!this.iterationStartTime&&v()-this.iterationStartTime>g.state.guideUpdate.iterationTimeLimit}ejectGuide(e){this.ejectOnTimeout===undefined&&(this.ejectOnTimeout=f.get("guides.ejectOnTimeout")),this.ejectOnTimeout&&e&&!e.isShown()&&Kd.addGuide(e)}process(){var e=v();for(this.updateId||(this.updateId=e,this.updateTotalTime=0,g.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)}complete(e){g.commit("monitoring/setTimer",{name:"guideUpdateTimeMS",time:this.updateTotalTime}),g.commit("guideUpdate/completeUpdate",e),this.cancel()}cancel(){this.updateId=null,this.paused=!1,this.queue.length=0;for(var e of this.phases)E.isFunction(e.cancel)&&e.cancel()}isComplete(){return!this.queue.length}}var ah=new oh([new eh,new Qp("resourceCenter",function(){ih(P.getResourceCenter())}),new Qp("frameVisibility",function(){g.dispatch("frames/checkFrameVisibility")}),new Qp("guideShowing",function(){var a=zm();a&&(E.each(a.steps,function(e){var t,n,i,r,o;a.guide,(e=e).isLocked()||g.getters["frames/isShownInAnotherFrame"]()(e)||(t=e.element,n=e.targetElement,r=e.guideElement,i=k("."+Xf),(r=r.find("#pendo-guide-container")[0])&&r.textContent&&(r=O(r).fontSize,e.attributes.currentTextZoomFontSize!==r)&&(e.attributes.currentTextZoomFontSize&&e.redraw(),e.attributes.currentTextZoomFontSize=r),e.elementPathRule&&n&&!yr.matchesSelector(n,e.elementPathRule)?e.hide():(r=ca(t),o=!0,n&&r&&e.elementContainsRulesList&&(o=xg(n,e.elementContainsRulesList),r=o),t&&(r||i.hasClass("mouseover"))?e.checkPlacement():("tooltip"===e.type||"tooltip"===e.attributes.calculatedType)&&la(t)&&o||e.hide()))}),a.guide.checkForHiddenGroupSteps())}),new Hp]);function sh(){ah.addPhase(...arguments)}function dh(){ah.removePhase(...arguments)}function uh(){var s={};return E.each(["after","before"],function(i){this[i]=function(e,t){var n,r,o,a;this[e]&&((n=s[e])||(n=s[e]={before:[],after:[]},this[e]=(r=this[e],o=n.before,a=n.after,function(){for(var e=E.toArray(arguments),t=0,n=o.length;t<n;++t)if(!1===o[t].apply(this,e))return;var i=r.apply(this,e);for(t=0,n=a.length;t<n&&!1!==a[t].apply(this,e);++t);return i})),n[i].push(t))}},this),this}var ch="debug-enabled";function lh(){try{var e=JSON.parse(h.read(ch,!0)||Nt(ch));return"boolean"==typeof e?{enabled:e}:e||{}}catch(t){return{}}}function ph(e=!0){let t;return t=g&&g.getters&&g.getters["debugger/debuggingEnabled"]?g.getters["debugger/debuggingEnabled"]():!0===lh().enabled,e?t:t?"Yes":"No"}class hh{constructor(e,t){this.type=t,this.identificationFn=e}test(e){return this.identificationFn(e)}}const fh=(()=>{const n={},e=({data:e})=>{var[e,,]=e,e=e["guideId"];const t=M(e);e=(E.find(n,e=>e.GuideType.test(t))||{}).handler;e&&e(t,"resourceFetchFail")};return{run:()=>{m.resourceFetchFail.on(e)},stop:()=>{m.resourceFetchFail.off(e)},addTypeHandler:(e,t)=>{E.isFunction(t)?n[e.type]={GuideType:e,handler:t}:C.error("Invalid Handler function provided for type "+e.type)}}})();fh.addTypeHandler(new hh(tu,"badge"),(e,t)=>{Kd.addGuide(e)});var gh="_pendo-badge_";function mh(e){var t;return e&&((t=(t=e.props=e.props||{}).style=t.style||{}).cursor=t.cursor||"pointer"),e}function vh(t,n){var e,i,r,o,a,s=uu(n),d=!(null==(d=null==t?void 0:t.attributes)||!d.resourceCenter),u=!1;return d&&(u=null==(e=null==(e=null==t?void 0:t.attributes)?void 0:e.badge)?void 0:e.ignoreRTL),"building-block"===t.attributes.type?(e=E.reduce([(o=t.language,a=d?["he","ar"]:[],e=>(E.contains(a,o)&&(e.props["data-localization-direction"]=!0),e)),(r=u,e=>{var t,n;return E.get(e,"props.data-localization-direction",!1)&&!r&&(t=E.get(e,"props.style.left","auto"),n=E.get(e,"props.style.right","auto"),t)&&n&&(e.props.style.left=n,e.props.style.right=t),e}),mh,Bu,function(e){return pl(e,{id:n.id,guideId:t.id,isBadge:!0})}],(e,t)=>t(e),this.domJson)[0],i=e,k.removeNode(e),-1===i.className.indexOf("_pendo-badge_")&&(i.className+=" _pendo-badge_"),this.isP2Badge=!0):((i=document.createElement("img")).src=ju(this.imageUrl),i.className="_pendo-badge "+gh,d=this.width||13,u=this.height||13,Uo(i,"width:"+d+"px;height:"+u+"px;")),i.id="_pendo-badge_"+n.id,this.activate=function(){var e=E.isFunction(n.getGuide)&&n.getGuide(),t=Mg(e);!e.isShown()||g.getters["frames/isShownInAnotherFrame"]()(n)?Lg(n,"badge"):t?n.eventRouter.eventable.trigger("pendoEvent",{step:n,action:"dismissGuide"}):(t=E.find(e.steps,function(e){return e.isShown()}),vg(t))},this.shouldShow=function(){return t.canBadgeBeShown()||!1},this.show=function(){if(E.isFunction(this.shouldShow))return this.shouldShow()},this.hide=function(){k.removeNode(i),vl(t.id),E.isFunction(this.removeScrollHandlers)&&(this.removeScrollHandlers(),this.removeScrollHandlers=null),n.overrideElement=undefined},Mg(t)&&(this.toggleAriaExpanded=function(){var e=!!k("#pendo-resource-center-container")[0],t=k("button._pendo-resource-center-badge-container")[0]||k('._pendo-resource-center-badge-container [id^="pendo-image-badge-"]')[0];t&&t.setAttribute("aria-expanded",e)},i.checkAriaExpanded=this.toggleAriaExpanded),this.step=E.constant(n),this.target=E.constant(s),this.element=E.constant(i),this}vh.create=function(n){var i=vh.findStep(n);if(i)return E.reduce(vh.behaviors,function(e,t){return t.call(e,n,i)},n.attributes.badge)},vh.findStep=function(e){var t=E.find(e.steps,function(e){return!!e.elementPathRule});if(t&&e.attributes&&e.attributes.badge)return t},vh.behaviors=[uh,vh,function(){"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&&Uo(n,"display:inline-block;vertical-align:text-bottom;"),this.css&&Uo(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)))});return this},function(s){this.position&&"top-right"!==this.position&&"top-left"!==this.position||this.before("show",function(){var e=this.element(),t=Ho(this.target()),n=0,i=0,r=0;if(this.offsets&&(n=this.offsets.top||0,i=this.offsets.right||0,r=this.offsets.left||0),!E.get(s,"attributes.resourceCenter",!1)){var o="position:"+(t.fixed?"fixed":"absolute")+";top:"+(t.top+n)+"px;";switch(this.position){case"top-right":o+="left:"+(t.left+t.width-i)+"px";break;case"top-left":o+="left:"+(t.left+r)+"px"}Uo(e,o)}if(!e.parentNode){au().appendChild(e);const a=aa(_r,this.target(),Ih);this.removeScrollHandlers=()=>{Ih.cancel(),a()}}});return this},function(){"over"===this.position&&this.before("show",function(){var e=this.element(),t=Ho(this.target()),n="position:absolute;top:"+t.top+"px;left:"+t.left+"px;";if(n+="height:"+t.height+"px;width:"+t.width+"px;",Uo(e,n+="background-color:transparent;"),!e.parentNode){au().appendChild(e);const i=aa(Ih,e,this.target());this.removeScrollHandlers=()=>{Ih.cancel(),i()}}});return this},function(){var t=this,e=t.element(),n=!1,i=function(e){t.activate(),t.toggleAriaExpanded&&t.toggleAriaExpanded(),Ud(e)};return t.after("show",function(){n||(l(e,"click",i),n=!0)}),t.after("hide",function(){Dd(e,"click",i),n=!1}),t},function(){var t=this.element(),n=this.step(),e=!1;{var i,r,o;"yes"!==this.useHover&&!this.showGuideOnBadgeHover||(i=E.throttle(function(e){Cr(e)===t||function(e){for(;e;){if(/_pendo-guide_|_pendo-guide-tt_|_pendo-backdrop|_pendo-badge_/.test(e.className))return!0;if(/pendo-guide-container/.test(e.id))return!0;e=e.parentNode}return!1}(Cr(e))||o()},50,{trailing:!1}),r=function(e){n.isShown()||Lg(n,"badge"),l(document,"mousemove",i),Ud(e)},o=function(e){Dd(document,"mousemove",i),ru()||vg(n)},this.after("show",function(){e||(l(t,"mouseover",r),e=!0)}),this.after("hide",function(){Dd(t,"mouseover",r),Dd(document,"mousemove",i),e=!1}))}return this},function(){var s=this.element(),d=this.target(),e=!1;{var t,n,i,r,u;!this.showBadgeOnlyOnElementHover&&!/hover/.test(this.showOnEvent)||ru()||(t="inline"===this.position?"visibility:visible;":"display:inline;",n="inline"===this.position?"visibility:hidden;":"display:none;",i=E.throttle(function(e){var t,n,i,r,o,a;Cr(e)===d||Cr(e)===s||Mo(s,"triggered")||(t=e.clientX,e=e.clientY,n=Yo(d),i=Yo(s),r=Math.min(n.left,i.left),o=Math.min(n.top,i.top),a=Math.max(n.right,i.right),n=Math.max(n.bottom,i.bottom),i=e+document.documentElement.scrollTop,r<=t&&t<=a&&o<=i&&i<=n)||u()},50,{trailing:!1}),r=function(){Uo(s,t),l(document,"mousemove",i)},u=function(){Dd(document,"mousemove",i),Uo(s,n)},this.after("show",function(){e||(l(d,"mouseover",r),e=!0,u())}),this.after("hide",function(){e&&(Dd(d,"mouseover",r),e=!1),u()}))}return this}];var yh=function(e,t){var n,i,r=(t=t||Bd)[e.id],o=r?r.step():vh.findStep(e);o&&(i=r?r.target():uu(o),(n=E.get(e,"attributes.resourceCenter"))&&!g.getters["frames/canShowRCBadge"]()?r&&E.isFunction(r.hide)&&(t[e.id]=undefined,r.hide()):n&&!e.hasResourceCenterContent||(P.updateNotificationBubbles(),n=!0,o.elementContainsRulesList&&(n=i&&xg(i,o.elementContainsRulesList)),(i=o.elementPathRule&&ca(i)&&yr.matchesSelector(i,o.elementPathRule)&&n)?((r=r||vh.create(e)).show(),t[e.id]=r):r&&!o.isShown()&&(t[e.id]=undefined,r.hide()),ph()&&m.stepEligibility.trigger({stepId:o.id,guideId:e.id,eligible:i,reason:"target_element_badge"}),P.repositionDoubleResourceCenterBadge()))},bh=function(){E.map(Bd,wh),Bd={}},wh=function(e,t){e&&(E.isFunction(e.hide)&&e.hide(),E.isFunction(e.shouldShow))&&!e.shouldShow()&&t&&delete Bd[t.id]},Sh=function(e){var t=Bd[e.id];t&&wh(t,e)};var Ih=E.throttle(function(){E.map(Bd,function(e){e&&e.show&&e.show()})},10);const _h=h.getLocal();var F,Eh="pendo-preview",Ch="current-guide-preview";function Th(e){return g.dispatch("preview/load"),xh(e)}function xh(t){var e=Bh();if(e)return Ah(t),g.dispatch("preview/start",E.extend(e)),h.clear(Np),Mt(!1),ns.lock(),rm=qh,m.startPreview.trigger(),m.leaderChanged.on(function(e){g.dispatch("preview/write"),e.oldLeaderId||jm(),g.getters["frames/isLeader"]()||(k(F).remove(),F=null,t.removeEventListener("message",Rh))}),sh(kh),!0}function kh(){if(!g.getters["frames/isFollower"]()){var t,n,i,r,o,e,a=document,s=Xd(),d=Fp();if(Mh()&&(t=Bh())&&F&&F.contentWindow)if(s&&s.length){F.contentWindow.postMessage({mutation:"preview/setGuideLoaded",payload:{guideLoaded:!0}},location.origin),n=E.find(s,function(e){return e.id===t.guideId}),i=0,r=n.steps.length,o=d||{},E.find(n.steps,function(e,t){return o.guideStepId===e.id&&("dismissed"===o.state||"active"===o.state?i=t:"advanced"===o.state&&o.destinationStepId?i=E.indexOf(n.steps,E.find(n.steps,function(e){return e.id===o.destinationStepId})):"advanced"===o.state&&t===r-1&&(i=r),!0)}),s="dismissed"===o.state,d=r-1<=i,s=s||d,d=d?r-1:i,e=n.steps[d],p=e.isShown(),F.contentWindow.postMessage({mutation:"preview/setHostname",payload:{hostname:je}},location.origin),F.contentWindow.postMessage({mutation:"preview/setGuidePages",payload:{guidePages:n.previewPages}},location.origin),F.contentWindow.postMessage({mutation:"preview/setGuideProgress",payload:{guideName:n.name,guideAttributes:JSON.stringify(n.attributes),guideLaunchMethod:n.launchMethod,guideActivationSelector:cu(n),isAdoptGuide:n.isTraining,isResourceCenter:t.isResourceCenter,stepId:e&&e.id,currentStepIndex:d,stepCount:r,elementPathRule:e.elementPathRule,elementContainsRulesList:e.elementContainsRulesList,triggerElementPathRule:e.triggerElementPathRule,isShown:p,pageId:e.pageId,completed:s,languageOptions:E.get(t,"languageOptions",[]),currentLanguage:t.language}},location.origin);var u=e,c=d,l=F;if(u&&l&&l.contentWindow){const h=u.getGuide().id;var p=E.filter(g.state.frames.frames,e=>"hidden"!==e.visibility&&e.guides&&e.guides[h]);if(p.length)p=E.map(p,e=>$.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:e.id,stepId:u.id,guideId:h,currentStepIndex:c})),y.all(p).then(t=>{let n={},i=-1;for(let e=0;e<t.length;e++){var r=JSON.parse(t[e]).errors;if(!r.GUIDE){var o=E.keys(r).length;if(!o){n={};break}-1===i?(n=r,i=o):u.regexUrlRule?!r.PAGE&&o<=i&&(n=r,i=o):o<i&&(n=r,i=o)}}l.contentWindow.postMessage({mutation:"preview/setErrors",payload:{errors:n}},location.origin)})["catch"](E.noop)}}else Dh(0,{status:404,data:"Guide not found"})}return!0}function Ah(e){if(g.getters["frames/leaderExists"]()){if(!g.getters["frames/isFollower"]()){if(F)return!0;var t,n;E.isFunction(e.addEventListener)&&e.addEventListener("message",Rh),(t=document.createElement("iframe")).id=Eh,Go(t,{border:"none",display:"block !important",height:n="70px !important","min-height":n,left:0,position:"fixed",right:0,top:0,visibility:"visible !important",width:"100% !important","z-index":4e5}),t.onload=function(){if(f.get("inlineStyleNonce")){const n=t.contentDocument.createElement.bind(t.contentDocument);t.contentDocument.createElement=(e,...t)=>{t=n(e,...t);return"style"===e&&(e=f.get("inlineStyleNonce"))&&t.setAttribute("nonce",e),t}}var e=document.createElement("script");e.src=f.get("previewModeAssetPath")||ro("pendo.preview.min.js"),t.contentDocument.body.appendChild(e),t.contentWindow.ignoreIframeMonitor=!0},F=t,Ko().appendChild(F)}}else m.one("leaderChanged",E.partial(Ah,e))}function Oh(e,t,n){sg(),g.commit("healthCheck/resetStepStatus",null,{root:!0}),Hu.reset(),jm();var i=e[0],i=(i&&E.each(i.steps,function(e){e.seenState=null}),h.clear(Np),g.dispatch("preview/update",null),Bh());return i&&(i=E.findWhere(e,{id:i.guideId}))&&(i={stepId:i.steps[0].id},n&&(i.language=n),g.dispatch("preview/restart",i)),$h(e,t)}function Rh(e){var t,n;e.origin===location.origin&&(t=e.data.type,n=!!e.data.preventWindowClose,t===Eh+"::exit"?(Uh({preventWindowClose:n}),g.dispatch("frames/stopPreview",{preventWindowClose:n})):t===Eh+"::restart"?(n=Oh(Xd(),Fp(),e.data.language),g.dispatch("guideState/forceExpire"),g.dispatch("guideState/updateLastGuideStepSeen",n),g.dispatch("frames/restartPreview")):t===Eh+"::resize"?(n=e.data.height,F&&F.style&&(F.style.height=n)):t===Eh+"::request-preview-mode-type"&&(e=zh(),F)&&F.contentWindow&&e&&F.contentWindow.postMessage({mutation:"preview/setPreviewModeType",payload:{previewModeType:e.previewModeType||"NEW_TAB"}},location.origin))}function Mh(){return g.getters["preview/isInPreviewMode"]()}function Nh(){return g.getters["preview/isInDesignerPreviewMode"]()}function Lh(e){var t,n,i=Bh();if(!i)return e;if(i.isResourceCenter)return r=e,t=i,n=P.findResourceCenterHomeView(r),r=E.filter(r,function(e){return e.id!==n.id}),Fh(n,t.stepId),t=E.map(r,function(e){return e.launchMethod="launcher",e}),[n].concat(t);{var r=e,o=i;let t;return E.each(r,function(e){e.id===o.guideId?t=e:((e=e).launchMethod="api",(e=e.steps[0])&&(e.seenState="advanced"))}),Ph(t),t.showsAfter=null,t.expiresAfter=null,Fh(t,o.stepId),r}}function Ph(e){"launcher"===e.launchMethod?e.launchMethod="auto-launcher":"api"===e.launchMethod&&(e.launchMethod="auto")}function Fh(e,t){for(var n=E.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 $h(e,t){null==t&&(t={});var n=Bh();if(!n)return t;e=E.findWhere(e,{id:n.guideId});if(!e)return t;if(n.state)return n.state;Ph(e);t=-1<e.launchMethod.indexOf("auto");return n.stepId!==e.steps[0].id||t?{guideId:n.guideId,guideStepId:n.stepId,state:"active"}:{}}function Dh(e,t){F&&F.contentWindow&&F.contentWindow.postMessage({mutation:"preview/setGuideLoadError",payload:{guideLoadError:t}},location.origin)}function Uh(e){var t=zh(),n=!1,i=(t&&(n="SAME_TAB"===t.previewModeType),_h.getItem("pendo-navigation-state"));if(g.dispatch("preview/exit"),sg({stayHidden:!0}),h.clear(Np),ns.unlock(),k(F).remove(),rm=bu,dh(kh),Mt(!0),n&&i){_h.setItem(Ch,JSON.stringify(E.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};g.dispatch("preview/launchInAppDesigner",o)}catch(a){g.dispatch("preview/exitDesignerPreview")}}else e&&!e.preventWindowClose&&window.close(),jm()}function Gh(e,t){e=E.get(e(),t);if(e)return JSON.parse(JSON.stringify(e))}function jh(){return g}var Bh=E.partial(Gh,jh,"state.preview.preview"),zh=E.partial(Gh,jh,"state.preview.designerPreview");function Hh(e){var t;if(e.subscriptionId&&e.guideId)return t=e.isResourceCenter?"/resourcecenter/":"/guide/","/api/s/"+vt(e.subscriptionId)+t+vt(e.guideId)+"/preview"}var Wh=function(e){var t;return Sa(e.origin)?(t=Hh(e))?(t={url:e.origin+t+"?url="+vt(A.externalizeURL())+"&apiKey="+I.apiKey,withCredentials:!0},e.headers&&(t.headers=e.headers),xr(t).then(function(e){return e.data.guide})):(C.info("Invalid guide url, exiting preview"),y.reject("invalid guide url")):(C.info("Invalid origin, exiting preview"),y.reject("invalid origin"))},qh={load(e,t,n){return Kh(e,n)},post(e,t,n,i){return Kh(e,i)},endpoint(){return""},usesXhr(){return!0}};function Vh(n,t){if(!Sa(n.origin))return C.info("Invalid origin, exiting preview"),y.reject("invalid origin");var e=Hh(n);if(!e)return C.info("Invalid guide url, exiting preview"),y.reject("invalid guide url");if(!g.getters["frames/leaderExists"]()||n.apiKey!==I.apiKey)return I.guidesPayload({id:t,lastGuideStepSeen:{},guides:[]}),y.resolve();let i=""+n.origin+e+`?url=${vt(A.externalizeURL())}&apiKey=`+I.apiKey;n.childGuides&&n.childGuides.length&&(i+="&childGuides="+n.childGuides.toString()),Nh()&&(i+="&ignoreGuide=true");var e={url:i,withCredentials:!0},r=(n.headers&&(e.headers=n.headers),[]);return xr(e).then(function(e){var t,c,e=e.data;return Nh()?(t=zh(),r=t?Nh()?(E.each(t.guide.steps,function(t){let e=["domJsonpUrl","domUrl"];t.domUrl&&0===t.domUrl.indexOf("data:")&&(e=["domJson","contentJs","contentCss","content"]),E.each(e,function(e){delete t[e]})}),t.guide.showsAfter=null,t.guide.expiresAfter=null,[t.guide]):void 0:[],e.guide=r[0]):r=n.isResourceCenter?e.guide:(e.guide.previewPages=e.pages,[e.guide]),e.children&&(r=r.concat(e.children)),n.language&&n.language!==E.get(r,"[0].authoredLanguage")&&(t=r,c=n.language.value,E.forEach(t,function(u){E.forEach(u.steps,function(e){var{domHash:t,domJsonpHash:n,translationHash:i,originalDomJsonHash:r,originalDomJsonpHash:o,originalBuildingBlockHash:a,domHash256:s,domJsonpHash256:d}=E.get(u,"translationStates."+c+".stepTranslations."+e.id,{});e.domUrl=Jh(r,e.domUrl,".dom.json",s),e.domJsonpUrl=Jh(o,e.domJsonpUrl,".dom.jsonp",d),e.buildingBlocksUrl=Jh(a,e.buildingBlocksUrl,".buildingBlocks.json"),t&&n&&i&&(e.domUrl=e.domUrl.replace(".dom.json","-"+t+"-"+c+".dom.json"),e.domJsonpUrl=e.domJsonpUrl.replace(".dom.jsonp","-"+n+"-"+c+".dom.jsonp"),e.buildingBlocksUrl=e.buildingBlocksUrl.replace(".buildingBlocks.json","-"+i+"-"+c+".buildingBlocks.json"))})})),n.watermarkConfig&&(e.guide.isTraining=!0),I.guideWidget={enabled:!1,data:{guideCssUrl:e.guideCssUrl}},I.guideCssUrl=e.guideCssUrl,I.normalizedUrl=e.normalizedUrl,I.throttling=undefined,e.guide}).then(function(e){var t;return n.watermarkConfig?(t=JSON.parse(JSON.stringify(n)),t=Object.assign(t,n.watermarkConfig),Wh(t)):e}).then(function(e){e&&e.attributes&&e.attributes.isWatermark&&r.push(e),I.guidesPayload({id:t,lastGuideStepSeen:$h(r,I.lastGuideStepSeen),guides:Lh(r)})})["catch"](function(e){return Dh(document,e),y.reject(e)})}function Kh(e,t){var n=Bh();return!n||!Hh(n)||!(e=/[?&]id=(\d+)/.exec(e))||e.length<1?y.reject():Vh(n,e[1]).then(t)}function Jh(t,n,i,r){if(n){var n=n.split("/"),o=n[n.length-1];let e=o;return t&&(e=""+t+o.slice(o.indexOf(i))),r&&-1<(t=e.indexOf("sha256="))&&(e=e.slice(0,t)+"sha256="+r),n[n.length-1]=e,n.join("/")}}const Zh=function(){let n=null,i=[];const r=e=>{I.apiKey=e+="",n=e};return{getApiKey(){return I.apiKey},discoverKeys({apiKey:e,additionalApiKeys:t=[]}){n=null,i=[],e=e,(e=f.get("apiKey",e))&&r(e),n,e=t,e=f.get("additionalApiKeys",e),i=E.reduce(e,(e,t)=>(t&&e.push(t+""),e),[]),i=[].concat(e),I.additionalApiKeys=i,!n&&i&&i.length&&r(i[0])},getAdditionalApiKeys(){return I.additionalApiKeys},tamperedWith(){return I.apiKey!==n||I.additionalApiKeys!==i}}}(),Yh=h.getLocal();Xh=n||je,Qh="in-app-designer",ef="latest",m.leaderChanged.on(function(){nf({ignoreLocalStorageNavigation:/pendo-/.test(window.name)||Nh()})});var Xh,Qh,ef,tf={launchDesigner:function(e){var t,n="latest",i="designer";Yu(f,"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%;}"),pf("designer-shims",Xh+"/"+i+"/"+n+"/plugin.js"),I.DESIGNER_VERSION?cf(n,i):t=window.setInterval(function(){I.DESIGNER_VERSION&&(cf(n,i),clearInterval(t))},100)},launchInAppDesigner:uf,localStorageNavigation:nf,launchOnToken:function(e){if(!hf(window.name)){var t=/pendo-designer=([A-Za-z0-9-]+)/;if(t.test(e)){var n,e=t.exec(e);if(e)return t=function(e){try{return JSON.parse(atob(mt(e)))||{}}catch(t){return{}}}(e[1]),e=of(t),n=df(t),window.localStorage.removeItem("pendo-navigation-state"),window.localStorage.removeItem("pendo-designer-mode"),uf({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,tf.hostConfig.host)},isValidDesignerHost:rf,isValidTarget:sf,addCommunicationIframe:function(e,t){e=e||{};E.isFunction(t)||(t=E.noop);var n=df(e),e=af(e),i=(new Date).getTime(),r=(tf.windowCommunicationId=i,"pendo-designer-communication-iframe");if(document.getElementById(r))return t(),document.getElementById(r);var o="pendo-designer-communication-embedded";o+="__"+i;i=lf(r,Xh+"/"+e+"/"+n+"/communication.html","border-width:0;height:0;width:0;");return i.setAttribute("name",o),i.onload=t,document.body.appendChild(i),i},hostConfig:{host:Xh},isDesignerFrame:hf,addScriptToPage:pf};function nf(e){if(!e.ignoreLocalStorageNavigation){var t,e=Yh.getItem("pendo-navigation-state");if(e&&g.getters["frames/isLeader"]()){try{t=JSON.parse(e)}catch(n){return}if(!t.apiKey||t.apiKey===Zh.getApiKey())if(t.apiKey||!t.agentInstallType||t.agentInstallType===we())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},tf.launchInAppDesigner(e),!0}}}function rf(e){return!!e&&Sa(e)}function of(e){var e=(e=e||{}).host||Xh,t=rf(e),n=t?e:je;return e&&!t&&C.info("Invalid host, falling back to "+je),n}function af(e){var e=(e=e||{}).gcsBucket||Qh,t="in-app-designer"===(t=e)||"da-designer"===t||"adopt-studio"===t,e=t?e:Qh;return t||C.info("Invalid bucket, falling back to "+Qh),e}function sf(e){return"latest"===e||"strict"===e||"beta"===e||"via"===e||"mobile"===e||new RegExp("^[0-9]+.[0-9]+.[0-9]+(-[a-z0-9-]+[a-z0-9]+)?$").test(e)}function df(e){e=e||{};var t=f.get("enableCrossOriginIsolation")?"strict":ef,e=e.target||e.baseFolder||t,t=sf(e),e=t?e:ef;return t||C.info("Invalid target, falling back to "+ef),e}function uf(e){if(!hf(window.name)&&!I.designerLaunched)if(f.get("disableDesigner"))C.info("Unable to launch the Visual Design Studio, set to disabled in configuration.");else{var t,n,i,r,o,a=!1;try{a=!!window.top.pendo}catch(s){}tf.crossFrameChannel===undefined&&(tf.crossFrameChannel=$,tf.useCrossFrameChannel=!0),Ha()&&a&&!e.allowChildFrame&&!e.selectionOnly?C.info("skipping designer launch from a child frame. pass `allowChildFrame: true` to override"):I.isReady()?(I.designerLaunchTime=(new Date).getTime(),a=of(e=e||{}),r=af(e),o=df(e),i=e.preloader?"preloader.js":"plugin.js",t=e.preloader?"preloader-shims":"designer-shims",n=a+"/"+r+"/"+o+"/"+i,f.get("useAssetHostForDesigner")&&(n=ro(i)),tf.hostConfig={gcsBucket:r,baseFolder:o,uniqueWindowId:e.uniqueWindowId,host:a,adoptv2:e.adoptv2,DADesigner:e.DADesigner,agentInstallType:we(),forceNativeDesigner:!!e.forceNativeDesigner,sidebarDesigner:!!e.sidebarDesigner,apiKey:Zh.getApiKey()},i={},e.selectionOnly&&(i["selection-only"]=!0),f.get("pendoGlobalKey")&&(i["data-pendo-global-key"]=f.get("pendoGlobalKey")),r=f.get("designerAgentPluginsLoader"),o=window.__pendoExtensions&&e.forceNativeDesigner,a=!window.__pendoExtensions&&!E.isFunction(r),(o||a)&&(tf.addScriptToPage(t,n,i),I.designerLaunched=!0),!e.forceNativeDesigner&&E.isFunction(r)&&(r(t,n,i),I.designerLaunched=!0)):C.error("Unable to launch the designer, the agent has not been initialized. Please use `pendo.initialize` prior to launching the designer")}}function cf(e,t){window.postMessage({type:"connect",source:"pendo-designer-content-script",destination:"pendo-designer-agent"},location.origin);var n;document.getElementById("pendo-designer-container")||(n="pendo-designer-embedded",n+="__"+tf.windowCommunicationId,(t=lf("pendo-designer-iframe",Xh+"/"+t+"/"+e+"/designer.html")).setAttribute("name",n),e=function(e){var t=document.createElement("div");return t.setAttribute("id","pendo-designer-container"),t.appendChild(e),t}(t),document.body.appendChild(e))}function lf(e,t,n){var i=document.createElement("iframe");return i.setAttribute("id",e),n&&Uo(i,n),i.setAttribute("sandbox","allow-scripts allow-same-origin allow-top-navigation allow-forms allow-pointer-lock allow-popups allow-storage-access-by-user-activation"),i.src=t,i}function pf(e,t,n){var i;document.getElementById(e)||((i=document.createElement("script")).setAttribute("charset","utf-8"),i.setAttribute("id",e),i.src=J(I).createScriptURL(t),n&&E.forEach(n,function(e,t){i.setAttribute(t,e)}),document.body.appendChild(i))}function hf(e){try{var t=JSON.parse(e);return/^pendo-/.test(t.frameName)||/^pendo-/.test(t.frame)}catch(n){return!1}}ff={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"},gf={GRAY_LIGHTER_6:"#EAECF1",GRAY_PRIMARY:"#2A2C35",PENDO_PINK:"#FF4876",TEAL_DARKER:"#036463",TEAL_PRIMARY:"#008180",WHITE:"#FFFFFF"},(mf={BUTTON_HEIGHT:35,HEADER_HEIGHT:60,MODAL_HEIGHT:235,MODAL_TOP_OFFSET:150,MODAL_WIDTH:370}).FOOTER_HEIGHT=1.25*mf.HEADER_HEIGHT,mf.BODY_HEIGHT="calc(100% - "+mf.HEADER_HEIGHT+"px - "+mf.FOOTER_HEIGHT+"px)",vf='<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>',(yf={})["#"+ff.closeButton+":hover"]={"background-color":gf.GRAY_LIGHTER_6},yf["#"+ff.launchButton+":hover"]={"background-color":gf.TEAL_DARKER+" !important"},bf={PRIMARY_FONT:"Helvetica Neue"};var ff,gf,mf,vf,yf,bf,wf={listen:function(){return E.isFunction(document.addEventListener)?(document.addEventListener("keyup",Sf,!1),()=>{document.removeEventListener("keyup",Sf,!1)}):()=>{}},launchOnLocalStorageToken:kf,ids:ff,removeElement:Cf,attemptToLaunch:Ef,loadPluginJs:function(){var t;I.designerLaunched||(t=E.once(function(e){kf(e,!0)}),qa(function(e){"pendo-designer-launch-modal"===e.data.destination&&e.data.token&&t(e.data.token)}))}};function Sf(e){e.shiftKey&&e.altKey&&"Digit7"===e.code&&Ef(!0),e.shiftKey&&e.altKey&&"Digit8"===e.code&&Ef(!1,!0)}function If(e,t){var n,i,r,o={"background-color":gf.WHITE,height:mf.MODAL_HEIGHT+"px","min-height":mf.MODAL_HEIGHT+"px",width:mf.MODAL_WIDTH+"px",position:"fixed",top:mf.MODAL_TOP_OFFSET+"px",left:"50%","margin-left":-mf.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"},o=_f("div",ff.container,o);Yu(f,ff.style,E.reduce(E.pairs(yf),function(e,t){var n=t[0],t=t[1];return e+n+"{"+E.reduce(E.pairs(t),function(e,t){return e+t[0]+":"+t[1]+";"},"")+"} "},""),o),o.appendChild((t=t,r=_f("div",ff.header,{"background-color":gf.GRAY_PRIMARY,height:mf.HEADER_HEIGHT+"px","min-height":mf.HEADER_HEIGHT+"px",width:"100%",padding:"10px 20px",display:"flex","align-items":"center","box-sizing":"border-box"}),(i=_f("div",ff.logoContainer,{height:"38px",width:"44px","background-color":gf.PENDO_PINK,padding:"8px","border-radius":"3px","box-sizing":"border-box"})).innerHTML=J(I).createHTML(vf),r.appendChild(i),(i=_f("div",ff.title,{width:"100%",display:"flex","align-items":"center","font-family":bf.PRIMARY_FONT,"font-size":"18px",color:gf.WHITE,"margin-left":"10px","box-sizing":"border-box"})).innerText=t?"VIA Designer":"Pendo Designer",r.appendChild(i),r)),o.appendChild(((t=_f("div",ff.body,{height:mf.BODY_HEIGHT,"min-height":mf.BODY_HEIGHT,width:"100%",display:"flex",padding:"32px 20px","font-family":bf.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.",t)),o.appendChild((n=e,i=_f("div",ff.footer,{"align-items":"center","border-top":"1px solid"+gf.GRAY_LIGHTER_6,display:"flex",height:mf.FOOTER_HEIGHT+"px","justify-content":"flex-end","min-height":mf.FOOTER_HEIGHT+"px",padding:"10px",width:"100%","box-sizing":"border-box"}),(r=_f("button",ff.closeButton,{"border-radius":"3px",border:"none",height:mf.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":bf.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",r.onclick=function(){Cf(ff.container),Cf(ff.commIframeId)},(t=_f("button",ff.launchButton,{"background-color":gf.TEAL_PRIMARY,"border-radius":"3px",color:gf.WHITE,border:"none",height:mf.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":bf.PRIMARY_FONT,"font-size":"14px",display:"flex","line-height":"120%","min-width":"90px","justify-content":"center","box-sizing":"border-box"})).textContent="Launch Designer",t.onclick=function(){kf(n)},i.appendChild(r),i.appendChild(t),i)),document.body.appendChild(o)}function _f(e,t,n){e=document.createElement(e);return e.setAttribute("id",t),E.extend(e.style,n),e}function Ef(t,n){var i,r,o;I.designerLaunched||(o=E.once(function(e){t||!n?kf(e):If(e,t),Tf()}),qa(function(e){"pendo-designer-launch-modal"===e.data.destination&&(clearInterval(i),e.data.viaconfirmed?clearInterval(r):e.data.token?(o(e.data.token),e=JSON.parse(e.data.token),E.contains(e.host,"via")&&!e.visitorId&&(r=r||setInterval(function(){document.getElementById(ff.commIframeId)&&xf()},100))):Tf())}),tf.addCommunicationIframe({defaultBucket:"in-app-designer"},function(){xf(),i=window.setInterval(xf,50)}))}function Cf(e){document.getElementById(e)&&document.getElementById(e).remove()}function Tf(){var e=document.querySelector("#"+ff.commIframeId+'[src*="pendo"]');e&&e.remove()}function xf(){var e=document.getElementById(ff.commIframeId);e&&e.contentWindow&&E.isFunction(e.contentWindow.postMessage)&&e.contentWindow.postMessage({destination:"pendo-designer-ls",source:"pendo-designer-launch-modal",visitorId:I.visitorId},E.get(I,"designerv2.hostConfig.host",je))}function kf(e,t){var n={},e=JSON.parse(e);n.target=e.target||"latest",e.host&&(n.host=e.host),e.lookaside&&(n.lookaside=e.lookaside),t&&(n.selectionOnly=t),e.forceNativeDesigner&&(n.forceNativeDesigner=e.forceNativeDesigner),e.sidebarDesigner&&(n.sidebarDesigner=e.sidebarDesigner),Cf(ff.container),tf.launchInAppDesigner(n)}var Af=E.wrap(E.wrap(E.once(E.wrap(function(e){var t=y.defer();return Ta(e,function(){t.resolve()}),t.promise},function(e,t){return 0<E.size(yu._handlers.validateGlobalScript)?xr.get(t).then(function(e){return yu.validateGlobalScript(e.data)}).then(function(){return e(t)}):e(t)})),function(e,t){return t?e(t):y.resolve()}),function(e,t){return f.get("preventCodeInjection")?y.resolve():e(t)}),Of={initializeWatermark:function(e){e=E.filter(e,function(e){return e&&e.attributes&&e.attributes.isWatermark}),Of.watermarkGuides=e,e=E.map(e,function(e){return e.fetchContent()});return y.all(e)},buildWatermark:function(e,t){if((e=e||{}).isTraining){var n=e.targetAccount?function(t){return E.find(Of.watermarkGuides,function(e){return t===e.targetAccount})}(e.targetAccount):function(t){return E.find(Of.watermarkGuides,function(e){return t===e.appId})}(e.appId);if(n&&n.steps){var i,n=n.steps[0];if(n&&n.domJson)return i=n.domJson,(i=t(i,n)).css({position:"absolute",left:"auto",top:e.isBottomAligned?"auto":"100%",bottom:e.isBottomAligned?"100%":"auto",right:"0"}),i}}}};const Rf=1e4;function Mf(n,i){var r=!1;const o=[];return n.addEventListener("message",function(e){d(e.data),i.state.guideUpdate.useObserver&&i.dispatch("guideUpdate/documentChanged")}),{postMessage:a,postMessageAsPromise:s,postMessageOrTimeout:function(e,t=Rf){const n=y.defer(),i=at(32),r=(e=E.extend(e,{promiseId:i}),Dt(()=>{o[i]&&(n.reject(JSON.stringify({message:"request timed out"})),delete o[i])},t));return s(e).then(e=>{clearTimeout(r),n.resolve(e)}),n.promise},close:function(){r=!0,E.isFunction(n.close)&&n.close()}};function a(e){var t;r||(t=E.extend({apiKey:I.apiKey,allowMixedApiKeyFrames:f.get("allowMixedApiKeyFrames"),agentInstallType:we()},e),n.postMessage(t),Dt(function(){d(t)},0))}function s(e){e.promiseId||(t=at(32),e=E.extend(e,{promiseId:t}));var t=y.defer();return o[e.promiseId]=t,a(E.extend(e,{sourceFrame:i.state.frames.frameId})),t.promise}function d(e){try{var t;r||e.apiKey!==I.apiKey&&(!1===e.allowMixedApiKeyFrames||!1===f.get("allowMixedApiKeyFrames"))||e.targetFrame&&e.targetFrame!==i.state.frames.frameId||(e.resolveId?(t=o[e.resolveId])&&(delete o[e.resolveId],t.resolve(JSON.stringify(e))):/^frames\/|^debugger\//.test(e.action)&&i.dispatch(e.action,e))}catch(n){C.critical("ERROR in cross frame channel",{error:n})}}}var Nf="frames/removeFrame";function Lf(e,t,n){return new Pf(e,t,n,(e=t,t=n,new(E.isFunction(e.MessageChannel)?Ff:$f)(e,t)))}function Pf(e,t,n,i){this.init(e,t,n,i)}E.extend(Pf.prototype,{init(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=E.bind(this._frameConnectHandler,this),this._impl.onmessage=E.bind(this._fireMessageListeners,this),this._impl.onrelay=E.bind(this._topMessageHandler,this),this._connectToTop(10,0,function(){this._addControlMessageHandler(),this._connectToTop(250,21,function(){this.close(),this._store.commit("frames/setConnectFailed")})})},_fireMessageListeners(t){E.each(this._listeners,function(e){e(t)})},_controlMessageHandler(e){e=this._impl._parseMessage(e);e.data&&("pendo::connect"===e.data.action&&this._impl.frameConnect(e),e.data.action===Nf)&&this._topMessageHandler(e)},_topMessageHandler(e){!e.data||/^pendo::/.test(e.data.action)||this._closed||(e.data.action===Nf&&this._impl.frameDisconnect(e),this._impl.broadcast(e))},_connectToTop(e,t,n){this._impl.connectToTop({action:"pendo::connect",frameId:this._store.state.frames.frameId},this._targetOrigin),Dt(E.bind(function(){this._connected||(0===t?E.isFunction(n)&&n.call(this):0<t&&this._connectToTop(Math.min(2*e,1e4),t-1,n))},this),e)},_addControlMessageHandler(){this._singletonMessageHandler.addEventListener(E.bind(this._controlMessageHandler,this))},_frameConnectHandler(e){e.data&&"pendo::connectSuccess"===e.data.action&&(this._connected=!0,this._impl.connectSuccess(e),this._store.dispatch("frames/join"))},addEventListener(e,t){"message"===e&&this._listeners.push(t)},postMessage(e){this._closed||this._impl.postMessage(e)},close(){this._closed=!0,this._listeners.length=0,this._impl.close()}});Ti={_frameConnectHandler(e){E.isFunction(this.onconnect)&&this.onconnect(this._parseMessage(e))},_messageReceived(e){E.isFunction(this.onmessage)&&this.onmessage(this._parseMessage(e))},_relayMessage(e){E.isFunction(this.onrelay)&&this.onrelay(this._parseMessage(e))},_parseMessage(e){var t;return E.isString(e.data)?((t=E.pick(e,"type","origin","source","ports","lastEventId","target")).data=function(e){if(!E.isString(e))return e;try{return JSON.parse(e)}catch(t){return e}}(e.data),t):e}};function Ff(e,t){this._window=e,this._ports={},this._singletonMessageHandler=t,this._targetOrigin=t.targetOrigin()}function $f(e,t){this._window=e,this._frames={},this._isTop=e==e.top,this._singletonMessageHandler=t,this._boundMessageReceived=E.bind(this._messageReceived,this),this._isTop||(this._boundFrameConnectHandler=E.bind(this._frameConnectHandler,this),t.addEventListener(this._boundFrameConnectHandler))}E.extend(Ff.prototype,Ti,{connectToTop(e,t){this._closeChannel(),this._openChannel();var n=[];this._channel.port2&&n.push(this._channel.port2),this._window.top.postMessage(e,t,n)},frameConnect(e){var t,n=e.ports[0];(t=n)&&E.all(["addEventListener","start"],function(e){return E.isFunction(t[e])})&&((this._ports[e.data.frameId]=n).addEventListener("message",E.bind(this._relayMessage,this)),n.start(),n.postMessage({action:"pendo::connectSuccess"}),n.postMessage({action:"frames/receiveFrame",frame:g.state.frames.frames[g.state.frames.frameId],"pendo-preview":g.state.preview.preview}))},frameDisconnect(e){delete this._ports[e.data.frameId]},connectSuccess(){this._port.removeEventListener("message",this._boundFrameConnectHandler),this._port.addEventListener("message",E.bind(this._messageReceived,this))},broadcast(t){E.each(this._ports,function(e){t.target!==e&&e.postMessage(t.data)})},postMessage(e){this._port&&this._port.postMessage(e),e.action===Nf&&this._window.top.postMessage(e,this._targetOrigin)},close(){E.each(this._ports,function(e){e.close()}),this._ports={},this._closeChannel()},_openChannel(){this._channel=new this._window.MessageChannel,this._port=this._channel.port1,this._boundFrameConnectHandler=E.bind(this._frameConnectHandler,this),this._port.addEventListener("message",this._boundFrameConnectHandler),this._port.start()},_closeChannel(){this._port&&E.isFunction(this._port.close)&&(this._port.close(),this._port=null,this._channel=null)}}),E.extend($f.prototype,Ti,{connectToTop(e,t){this._isTop||this._window.top.postMessage(JSON.stringify(e),t)},frameConnect(e){this._frames[e.data.frameId]=e.source,this._relayHandlerAdded||(this._relayHandlerAdded=!0,this._boundRelayMessage=E.bind(this._relayMessage,this),this._singletonMessageHandler.addEventListener(this._boundRelayMessage)),e.source.postMessage(JSON.stringify({action:"pendo::connectSuccess"}))},frameDisconnect(e){delete this._frames[e.data.frameId]},connectSuccess(){this._singletonMessageHandler.removeEventListener(this._boundFrameConnectHandler),this._singletonMessageHandler.addEventListener(this._boundMessageReceived)},broadcast(t){var n=this._singletonMessageHandler.targetOrigin();E.each(this._frames,function(e){t.source!=e&&e.postMessage(JSON.stringify(t.data),n)}),t.source!=this._window&&this._messageReceived(t)},postMessage(e){this._isTop?this._relayMessage({data:e,source:this._window}):this._window.top.postMessage(JSON.stringify(e),this._singletonMessageHandler.targetOrigin())},close(){var e=this._singletonMessageHandler;e.removeEventListener(this._boundFrameConnectHandler),e.removeEventListener(this._boundMessageReceived),e.removeEventListener(this._boundRelayMessage)}});Df=window,Uf=Sa,jf=!(Gf=[]);var Df,Uf,Gf,jf,Bf={targetOrigin(){return jf?location.origin:"*"},secure(e){jf=e},addEventListener(e){0===Gf.length&&Df.addEventListener("message",zf),Gf.push(e)},removeEventListener(e){e=Gf.indexOf(e);0<=e&&Gf.splice(e,1),0===Gf.length&&Df.removeEventListener("message",zf)},close(){Df.removeEventListener("message",zf),Gf.length=0}};function zf(t){jf&&!Uf(t.origin)||E.each(Gf,function(e){E.isFunction(e)&&e(t)})}function Hf(e){if(!$e.addEventListener)return{addEventListener:E.noop,postMessage:E.noop,close:E.noop};var t=!!window.__pendoExtensions;if(f.get("preferBroadcastChannel")&&!t&&E.isFunction(window.BroadcastChannel)){e.commit("frames/setChannelType","BroadcastChannel");t=function(e,o){const a=[];return e.removeEventListener=E.wrap(e.removeEventListener,function(e,t,n){var i,r=E.toArray(arguments).slice(1);return"message"===t&&0<=(i=E.findIndex(a,e=>e[0]===n))&&(r[1]=a[i][1],a.splice(i,1)),e.apply(this,r)}),e.addEventListener=E.wrap(e.addEventListener,function(e,t,n){var i,r=E.toArray(arguments).slice(1);return"message"===t&&(r[1]=i=function(e){if(e.data.tabId===o.getTabId())return n.apply(this,arguments)},a.push([n,i])),e.apply(this,r)}),e.postMessage=E.wrap(e.postMessage,function(e,t){return t.tabId=o.getTabId(),e.apply(this,E.toArray(arguments).slice(1))}),e}(new BroadcastChannel("pendo"),sn);if(t&&E.isFunction(t.postMessage))return t}return e.commit("frames/setChannelType","TopFrameRelay"),Lf(e,window,Bf)}var Wf="guides_blocked",qf="Guides disabled: unreachable endpoint guide.gif";const Vf=h.getLocal();var Kf=[],Jf="Guide was not shown because this visitor is in a control group of an active experiment for the guide";const Zf=[];function Yf(){var e=f.get("guideCssAssetPath");return e||ro("guide.css")}var Xf="_pendo-guide_",Qf="_pendo_g_",eg=0;function tg(e){eg=e}var ng=function(){return E.any(R,function(e){return e.isShown()})},ig=function(e,t){var n=k("._pendo-close-guide_",e);return n.length||(n=k(document.createElement("button")).attr("id","_pendo-close-guide_").attr("aria-label","close").addClass("_pendo-close-guide_").text("\xd7"),De()?9<Ie&&n.css({top:3}):8===Ie?n.css({top:9,right:2}):9===Ie?n.css({right:2,top:3}):9<Ie&&n.css({top:3}),e=k("._pendo-guide-container_",e)[0]||e,n.appendTo(e),n[0].onclick=function(){t()}),n[0]},rg=function(n){return E.reduce(R,function(e,t){return n(t)&&e.push(t),e},[])},og=function(e,t,n,i,r,o){e=Yd(M(e),t);e&&(e.seenState=n,e.lastSeenAt=i,e.destinationStepId=o,r!==undefined)&&(e.dismissCount=r)},ag=function(e){for(var t=new RegExp("^"+Qf);e;){if(E.isString(e.id)&&t.test(e.id))return e.id.replace(t,"");e=e.parentNode}return null};function sg(t){E.each(R,function(e){E.isFunction(e.isShown)&&e.isShown()&&e.hide(t)})}var dg=function(e){return e&&e.guideId};var ug=function(e,t){var n,i;return dg(e)&&(t=e,e=null),(n=t)&&E.isFunction(n.render)?t:t?(n=M(t.guideId))&&n.findStepById(t.id):(n=E.find(R,function(e){return e.isShown()}))?((i=e?ag(e.target||e.srcElement||e):i)?(t=n.findStepById(i))||Eo("findStepForGuideEvent: step with id "+i):(t=E.find(n.steps,function(e){return e.isShown()}))||Eo("findStepForGuideEvent: no step shown"),t):void 0},cg=function(e){var t="element"===e.advanceMethod?"click":"mouseover",n=du(e);"tooltip"===e.type&&E.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):Dd(n,t,wg,!0)};function lg(e){return e.isLocked()&&(!e.elements||!e.elements.length||void Co('guide "'+e.guideId+'", step "'+e.id+'" locked and rendered'))}var pg=function(e){var e=k("#_pendo-badge_"+e.id),t=e.find("input"),t=0<t.length?t:e;t.length<1||t[0].focus()},hg=function(e){e=E.get(e,"attributes.activation.selector",""),e=yr(e);e.length<1||e[0].focus()},fg=function(){var e=P.getResourceCenterBadge();e?e.element().focus():(e=P.getResourceCenter(),hg(e))},gg=function(e){if(!I.designer&&e&&"building-block"===E.get(e,"attributes.type","")){var t=e.steps[0],n=t.seenReason,i=E.get(e,"launchMethod","").split("-"),r=E.contains(i,"dom"),o=E.contains(i,"badge"),i=Mg(e);if(E.get(t,"attributes.isAutoFocus")||i)switch(n){case"badge":o&&pg(t);break;case"dom":r&&hg(e);break;case"launcher":fg();break;default:return}}};function mg(e,t){return!e.isMultiApp&&("auto"===t||"repeatGuide"===t)}var vg=function(e,t){var n,i,r,o,a,s=null;e&&e instanceof Object&&e.until&&(s=e.until),(t=ug(e,t))&&t.id?lg(t)||("dismissed"===t.seenState?C.info("step already dismissed. can't dismiss again",{contexts:["guides","error"]}):(C.info("onGuideDismissed called",{contexts:["guides"]}),m.beforeDismiss.trigger(t).cancel?C.info("Guide dismiss canceled during runtime in step: "+t.id):s?t.hide({stayHidden:!0}):(cg(t),e=t.id,n=M(s=t.guideId),i=(i=E.first(n&&n.steps))&&i.seenReason,o=n&&n.language,r=E.get(t,"dismissCount",0)+1,$g(s,e,b(),i,o),o=v(),og(s,e,"dismissed",o,r),(a=E.isFunction(t.getGuide)&&t.getGuide())&&a.attributes&&a.attributes.doNotResume||Lp({guideId:s,guideStepId:e,time:o,state:"dismissed",seenReason:i,visitorId:b(),dismissCount:r}),mg(n,i)&&Gg(o,Ug.DISMISSED),t.hide(),gg(a),ng()||(Jp(),Zp())))):Jp()},yg=function(e,t,n){var i,r,o,a,s,d,u,c;C.info("onGuideSnoozed called",{contexts:["guides"]}),(t=ug(e,t))?"snoozed"===t.seenState?C.info("step already snoozed. can't snooze again",{contexts:["guides","error"]}):m.beforeSnooze.trigger(t).cancel?C.info("Guide snooze canceled during runtime in step: "+t.id):(n||(n=864e5,C.info("no snooze duration provided, defaulting to 1 day")),lg(t)||(cg(t),e=t.id,i=t.guideId,r=b(),o=M(i),a=o&&o.language,s=E.first(o&&o.steps),s=s&&s.seenReason,d=v(),C.info("snoozing guide for "+n+" ms"),u=d+n,t.snoozeEndTime=u,c=Bg({type:"guideSnoozed",guideId:c=i,stepId:e,visitorId:r,seen_reason:s,language:a,snooze_duration:n}),Wg(c),m.guideSnoozed.trigger(c),og(i,e,"snoozed",d),o&&o.attributes&&o.attributes.doNotResume||Lp({guideId:i,guideStepId:e,time:d,state:"snoozed",seenReason:s,visitorId:b(),snoozeEndTime:u}),mg(o,s)&&Gg(d,Ug.SNOOZED),t.hide(),gg(o),ng())||(Jp(),Zp())):(C.info("missing step. can't snooze",{contexts:["guides","error"]}),Jp(),Eo("onGuideSnoozed: missing step"))},bg=function(e){var t,n,i,r=(r=e&&e.step)||ug(e);r?(i=e&&e.params,i=E.find(i,function(e){return"goToStepId"===e.name}),t=i&&i.value,(t=e&&e.destinationStepId?e.destinationStepId:t)?t===r.id?C.info("[goToStep] step id matches the current step",{contexts:["guides","error"]}):(i=M(r.guideId),(n=E.find(i.steps,function(e){return e.id===t}))?(n=E.indexOf(i.steps,n),i=E.indexOf(i.steps,r),e.steps=Math.abs(n-i),e.action=e.action||"goToStep",e.destinationStepId=t,i<n?wg(e,r,!1):Sg(e,r)):C.info("[goToStep] guide has no step matching the step id",{contexts:["guides","error"]})):C.info("[goToStep] missing step id to go to",{contexts:["guides","error"]})):C.info("[goToStep] missing current step",{contexts:["guides","error"]})},wg=function(e,t,n){if((s=zm())&&E.each(s.steps,function(e){var t="element"==e.advanceMethod?"click":"mouseover",n=du(e);"tooltip"===e.type&&E.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):Dd(n,t,wg,!0)}),1===arguments.length&&dg(e)&&(s=Jd(e.guideId),i=ug(),s)&&i&&E.first(s.steps).id===i.id&&E.last(s.steps).id===e.id&&(C.info("Cannot skip to last step from first step"),e=null),C.info("onGuideAdvanced called",{contexts:["guides"]}),(t=ug(e,t))===e&&(e=null),t){if(!lg(t))if("advanced"!==t.seenState||n)if(m.beforeAdvance.trigger(t).cancel)C.info("Guide advance canceled during runtime in step: "+t.id);else{var i=e&&e.action&&"goToStep"===e.action||!1,r=M(t.guideId),o=r&&r.language,a=r&&r.steps&&E.findIndex(r.steps,e=>t.id==e.id);if(e&&E.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],Dg(r.id,t.id,b(),t.seenReason,o,u!==a);var c=v();Lp({guideId:t.guideId,guideStepId:t.id,time:c,state:"advanced",seenReason:t.seenReason,visitorId:b()}),og(r.id,t.id,"advanced",c,undefined,h)}return wg(r.steps[s],t,!0)}var l,i=t.id,s=t.guideId,p=E.first(r&&r.steps),p=p&&p.seenReason,h=e&&e.destinationStepId,f=(h||(f=e&&E.isNumber(e.steps)&&1<e.steps?e.steps:1,h=(f=E.isNumber(a)&&r&&r.steps&&r.steps[a+f])&&f.id||null),h||C.info("missing destination step id"),C.info("advancing guide"),Dg(s,i,b(),p,o,n,h),C.info("update guide status"),r&&E.last(r.steps).id===i&&(l=E.get(t,"dismissCount",0)+1),(new Date).getTime()),g=(og(s,i,"advanced",f,l,h),E.isFunction(t.getGuide)&&t.getGuide());g&&g.attributes&&g.attributes.doNotResume||Lp({guideId:s,guideStepId:i,time:f,state:"advanced",seenReason:p,visitorId:b(),destinationStepId:h,dismissCount:l}),mg(r,p)&&Gg(f,Ug.ADVANCED),C.info("stop guide"),Jp(),C.info("start guides"),Zp()}else C.info("step already advanced. can't advance again",{contexts:["guides","error"]})}else C.info("missing step. can't advance",{contexts:["guides","error"]}),Jp(),Eo("onGuideAdvanced: missing step")},Sg=function(e,t){var n,i,r,o,a,s;C.info("onGuidePrevious called",{contexts:["guides"]}),(t=ug(e,t))?"advanced"===t.seenState?C.info("step already advanced. can't go to previous again",{contexts:["guides","error"]}):m.beforePrevious.trigger(t).cancel?C.info("Guide previous canceled during runtime in step: "+t.id):(o=M(n=t.guideId),s=e&&e.action&&"goToStep"===e.action||!1,0!==(i=E.indexOf(o.steps,t))&&(r="element"==t.advanceMethod?"click":"mouseover",a=du(t),"tooltip"===t.type&&E.isFunction(t.teardownElementEvent)?t.teardownElementEvent(a,r):Dd(a,r,wg,!0),a=e&&E.isNumber(e.steps)?e.steps:1,r=E.first(o&&o.steps),a=0<=(i=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)||C.info("missing destination step id"),C.info("advancing guide"),Dg(n,t.id,b(),i,r,!1,o),C.info("update guide status"),a=(new Date).getTime(),og(t.guideId,t.id,"advanced",a,undefined,o),(s=E.isFunction(t.getGuide)&&t.getGuide())&&s.attributes&&s.attributes.doNotResume||Lp({guideId:t.guideId,guideStepId:t.id,time:a,state:"advanced",seenReason:i,visitorId:b(),destinationStepId:o}),Jp(),Zp())):(Jp(),Eo("onGuidePrevious: missing step"))},Ig=function(e){var t;k("._pendo-credits_",e).length||((t=document.createElement("img")).setAttribute("src",io()+"/img/tiny-logo.png"),t=k(document.createElement("div")).addClass("_pendo-credits_").css({bottom:0,right:I.TOOLTIP_ARROW_SIZE}).append(t),jd.push(t[0]),t.appendTo(e))};function _g(e){return e&&e.attributes&&e.attributes.stayHidden}const Eg=(e,t,n)=>{var i;return ph()&&({id:e,guideId:i}=e,m.stepEligibility.trigger({stepId:e,guideId:i,eligible:t,reason:n})),t};var Cg=function(e){var t,n,i=E.partial(Eg,e);return _g(e)?i(!1,"dismissed"):e.elementPathRule||"lightbox"!==e.type&&"whatsnew"!==e.type?e.triggerElementPathRule&&!ca(yr(e.triggerElementPathRule)[0])?i(!1,"trigger_element"):(t=du(e),(n=e.targetElement)&&e.elementContainsRulesList&&!xg(n,e.elementContainsRulesList)?i(!1,"contains_rules"):(n="tooltip"===e.type||xc.isBuildingBlockGuideRelativeToElement(e),e=ca(t),n?e?i(e,"target_element_tooltip"):i(la(t),"target_element_tooltip_scroll"):i(e,"target_element"))):i(!0,"")};function Tg(e){var t=(k(e).text()||"").trim().toLowerCase(),e=e.value;return t||e}function xg(e,t){for(var n=Tg(e),i=0;i<t.length;i++)if(!kg(n,t[i]))return!1;return!0}function kg(e,t){var n=t.matchType,i=t.matchValue,t=t.dataType,e=e||"";if("number"===t){var r=ht(e);if(null==r)return!1;e=parseFloat(r),i=parseFloat(i);if(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 Ag=function(e){return Qf+e.id},Og=function(e){var t=e.element,n=E.first(k("#"+Ag(e)));t&&n?ca(t)||k.hasClass(n,"mouseover")?Dt(function(){Og(e)},qp):e.hide&&(e.hide(),ng())||(Jp(),Zp()):t||!n||e.hide&&(e.hide(),ng())||(Jp(),Zp())},Rg=function(){return!1},Mg=E.partial(E.get,E,"attributes.resourceCenter"),Ng=function(t){var e;ng()&&(e=ug(),cg(e),Mg(t)?(e=rg(Mg),(e=E.filter(e,function(e){return e.id!==t.id})).length&&g.dispatch("frames/hideGuides",E.pluck(e,"id"))):(sg(),g.dispatch("frames/hideGuides")))},Lg=function(e,t){return!(!e||!e.guideId||!(e=M(e.guideId)))&&(Ng(e),e.launch(t),e.isShown())},Pg=function(e,t,n,i,r,o){e=Bg({type:"guideNotSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r});o&&E.extend(e.props,{step_poll_types:o}),Wg(e),m.guideNotSeen.trigger(e)};var Fg=function(e,t,n,i,r,o){i||(C.critical("pendo.io guideSeen exception",{guideId:e,stepId:t,error:new Error("seenGuide called without seen reason")}),a=M(e),s="auto",i=a&&(a=(a.launchMethod||s).split("-"),!E.contains(a,s))&&a.length?E.first(a):s);var a=Bg({type:"guideSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r}),s=(E.extend(a.props,o),Wg(a),v());Lp({guideId:e,guideStepId:t,time:s,state:"active",seenReason:i,visitorId:b()}),og(e,t,"active",s),m.guideSeen.trigger(a)};function $g(e,t,n,i,r){e=Bg({type:"guideDismissed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r});Wg(e),m.guideDismissed.trigger(e)}function Dg(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),t=Bg(e);Wg(t,null,o),m.guideAdvanced.trigger(t)}var Ug={DISMISSED:"latestDismissedAutoAt",SNOOZED:"latestSnoozedAutoAt",ADVANCED:"finalAdvancedAutoAt"};function Gg(e,t){jg(e,t);var n={};n[t]=e,g.dispatch("frames/changeThrottlingState",n)}function jg(e,t){E.contains(E.values(Ug),t)&&(E.isFunction(e.getTime)&&(e=e.getTime()),I[t]=e,h.write(t,e,Mp),g.dispatch("guideState/updateThrottlingState",{name:t,value:e}))}function Bg(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),E.isString(a.language)||delete a.language,E.extend({guide_id:a.guideId,guide_step_id:a.stepId},E.omit(a,"type","guideId","stepId","visitorId"))),t=sn.addTracerIds({type:a.type,visitor_id:a.visitorId,account_id:Gn(),browser_time:(new Date).getTime(),url:A.externalizeURL(),props:e});return m.eventCaptured.trigger(t),t}var zg=null,Hg=function(e){window.clearTimeout(zg),zg=Dt(Sm,e)},Wg=function(e,t,n){t=t||500,e.props.duration=n?0:(new Date).getTime()-eg,Tm(),bm.push(e),Hg(t)},qg=function(e,t){return"dismissed"===e.state?null:M(e.guideId).nextStep(e,t||Vg())},Vg=function(){return I.normalizedUrl||Kg(A.externalizeURL())},Kg=function(e){try{var t=new qn(e),n=E.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return C.error("Invalid URL provided to normalize"),e}},Jg=function(e,t){return!ge(e)||new RegExp(e).test(t)},Zg=function(e,t){e=Zd(e);return!!e&&(!(t=Lg(E.first(e.steps),t||"api"))&&e.control&&C.info(Jf),t)},Yg=function(e,t){e=M(e);return!!e&&(!(t=Lg(E.first(e.steps),t||"api"))&&e.control&&C.info(Jf),t)};function Xg(e,t){return t=parseInt(t,10),isNaN(t)||!E.isNumber(t)||!(E.isNumber(e)&&e<t)&&E.isNumber(e)?e:t}var Qg,em=function(){Jp(),Kp(),P.removeNotificationBubble(),bh(),ss()};function tm(){Jp(),Oo(),I.segmentFlags=[],I.doNotProcess=!0,g.commit("debugger/doNotProcess",!0),C.info("not tracking visitor due to 451 response")}function nm(e){if(Qg&&(451===e.statusCode&&(tm(),Qg.deferred.reject(e)),!E.isString(e.id)||e.id===Qg.id)){const t=E.indexBy(I.guides,"id");E.extend(I,e),I.guides=E.map(I.guides,function(e){return 1==E.keys(e).length&&e.id?t[e.id]:e}),Qg.deferred&&Qg.deferred.resolve(),Qg=null}}var im=function(e,t){var n=oo(),i=E.uniqueId(),r=y.defer(),o=(Qg={id:i,deferred:r},Tl()||((o=xl())?(C.info("sending metadata: "+JSON.stringify(o),{contexts:["guides","metadata"]}),t.metadata=o):C.info("no metadata to send",{contexts:["guides","metadata"]})),et(t)),i={id:i,jzb:o,v:He,ct:(new Date).getTime()},n=(n&&t.accountId&&"ACCOUNT-UNIQUE-ID"!==t.accountId&&(i.acc=it(t.accountId)),ph()&&(i.debug=!0),Io(rm.endpoint(),e,i)),t=fs.get();return o=2e3<n.length||!E.isEmpty(t)?(delete i.jzb,n=Io("guide.json",e,i),i=E.extend({events:o},t),rm.post(n,i,I,E.noop)):rm.load(n,I,E.noop),y.all([o["catch"](function(e){return 451===e.status&&tm(),y.reject(e)}),r.promise,(t=rm,i=e,"1"===(n=h.read(Wf))?(C.info(qf),y.resolve({success:!1,cached:!0})):"0"===n?y.resolve({success:!0,cached:!0}):(n=Io("guide.gif",i,{jzb:"eJwFwIEIAAAAwDDQd3-N1QABFQC5",ct:v(),v:He}),(t.usesXhr()?xr.get(n):To(n)).then(function(){return{success:!0}},function(e){return e&&e.status?{success:!0}:{success:!1}})))]).then(function([,,e]){var t;if((t=e).cached||(t.success?h.write(Wf,"0",144e5):(C.info(qf),h.write(Wf,"1",18e5))),!e.success)return y.reject()})},rm=bu;function om(e){e=E.find(e.steps,e=>e.pageId&&!e.regexUrlRule);return!e||(C.critical("pendo.io guide validation exception",{guideId:e.guideId,stepId:e.id,error:new Error("missing regexUrlRule for page "+e.pageId+'"')}),!1)}function am(n){return E.every(Zf,e=>{try{return e(n)}catch(t){return console.debug("Error in guide processor",e,n.id),!1}})}function sm(e,t){return e.attributes||(e.attributes={}),!isNaN(e.attributes.priority)&&E.isNumber(e.attributes.priority)||(e.attributes.priority=t),-e.attributes.priority}var dm,um=function(){return!f.get("disableGlobalCSS")};function cm(e,t){var n=f.get("dropAnonymous");if(xn(e)&&n)C.info("loading guides blocked for anonymous visitors due to dropAnonymous config setting being set to true"),E.isFunction(t)&&t("error: guides are blocked");else if("1"===h.read(Wf))C.info("guide events are blocked, load guides cancelled"),E.isFunction(t)&&t("error: guides are blocked");else{if(es(ts()))return 1;C.info("bad url: probably local file system",{contexts:["guides","error"]}),E.isFunction(t)&&t("error: invalid url")}}var lm=function(e,a,s,d){var u=y.defer(),c=!1;if(e=e||I.apiKey,cm(a=a||b(),d)){C.info("loading guides for "+s+"...",{context:["guides"]}),s=A.externalizeURL(s);var n,t,i=lm.lastVisitorId!==a,l=i?E.noop:(r=R,(t=E.find(r,function(e){return E.isFunction(e.isRendered)&&e.isRendered()&&!e.isTopLevel}))?(n=E.chain(t.steps).filter(function(e){return e.isRendered()}).indexBy("id").value(),function(e){e=E.findWhere(e,{id:t.id});e&&!E.get(e,"attributes.doNotResume")&&E.each(e.steps,function(e){var t=n[e.id];!t||e.seenState&&"active"!==e.seenState||e.show(t.seenReason)})}):function(){}),r=(lm.lastVisitorId=a,Kp(),g.commit("guideState/setLastGuideRequestAt",v()),{visitorId:a,accountId:Gn(),url:s,oldVisitorId:Pn=Pn===undefined&&kn()?Bn(_n):Pn}),o=function(e,t,n=v()){let i=[];return f.get("cacheGuides")&&!(i=n-(t.lastUncached||0)<f.get("cacheGuidesTimeout")?E.map(e.guides,e=>E.pick(e,"id","lastUpdatedAt")):i).length&&(t.lastUncached=n),i}(I,lm);o.length&&!i&&(r.cachedGuides=o);const p=E.uniqueId();lm.reqId=p,im(e,r).then(function(){if(!c&&!I.designer)if(lm.reqId!==p)u.resolve();else{m.deliverablesLoaded.trigger(),C.info("successfully loaded guides for "+s,{contexts:["guides"]}),I.designerEnabled&&"true"!==Vf.getItem("pendo-designer-mode")&&wf.loadPluginJs(),em();var t=I.lastGuideStepSeen;if(t){g.dispatch("guideState/receiveLastGuideStepSeen",t),t.visitorId=a,g.dispatch("guideState/updateLastGuideStepSeen",t),g.commit("guideState/setLastGuideRequestAt",v()),zd={};t=I.guides;var t=E.chain(t).map(Uu).filter(om).filter(am).sortBy(sm).value(),n=(Vd(t),Xd());g.dispatch("guideState/load",(r=Np,o=f.get("crossAppGuideStorageSuffix"),h.read(r,!1,o))),g.dispatch("guideState/apply"),I.latestDismissedAutoAt=Xg(I.latestDismissedAutoAt,h.read("latestDismissedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"latestDismissedAutoAt",value:I.latestDismissedAutoAt}),I.finalAdvancedAutoAt=Xg(I.finalAdvancedAutoAt,h.read("finalAdvancedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"finalAdvancedAutoAt",value:I.finalAdvancedAutoAt}),I.latestSnoozedAutoAt=Xg(I.latestSnoozedAutoAt,h.read("latestSnoozedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"latestSnoozedAutoAt",value:I.latestSnoozedAutoAt}),g.dispatch("healthCheck/init",t),g.dispatch("frames/changeGuideList",n),I.eventProperties=Nm(I.features);let e=y.resolve();I.globalJsUrl&&(e=Af(ju(I.globalJsUrl))["catch"](function(e){C.error("Error loading global script: ",e)})),n.length?y.all([ym(),e,Em(t),Of.initializeWatermark(t),fm(5e3)].concat((i=t,E.map(pm,function(e){return e(i)})))).then(function(){lm.reqId===p&&(g.getters["frames/isLeader"]()&&l(R),m.guidesLoaded.trigger(),Zp(),clearTimeout(dm)),E.isFunction(d)&&d(),u.resolve()},function(e){C.error("Post loadGuide request failed: ",e),m.guidesFailed.trigger(),u.reject()}):(m.guidesLoaded.trigger(),u.resolve())}else C.info("lastGuideStepSeen is not set, shutting down guides")}var i,r,o})["catch"](function(e){m.guidesFailed.trigger(),u.reject(e)});i=f.get("guideTimeout")||f.get("guides.timeout");E.isNumber(i)&&(clearTimeout(dm),dm=Dt(function(){var e;e=u,em(),e.reject(),c=!0},i))}else u.reject();return u.promise};var pm=[];function hm(e,t){var n,i=document.getElementById(e);return i&&i.href&&0<=i.href.indexOf(t)?y.resolve():(n=y.defer(),k(i).remove(),I.loadResource(t,function(){n.resolve()}).id=e,n.promise)}var fm=E.memoize(function(t,n,e){if(!um()||!gm(R))return y.resolve();n=n||v,e=e||"_pendo-hidden_";var i=k(document.createElement("div")).addClass(e).css({position:"absolute",bottom:"0px",right:"0px",width:"0px",height:"0px",visibility:"hidden"}).appendTo(k.getBody()),r=n(),o=y.defer();return function s(e){Dt(function(){a(i[0])?(i.remove(),o.resolve()):n()-r>t?(i.remove(),o.reject("Unable to find global css after delay")):s(100)},e)}(0),o.promise;function a(e){e=O(e);if(e)return"none"===e.display}});function gm(e,t){return t&&t.designer||E.any(e,function(e){return!iu(e)&&E.any(e.steps,function(e){return!(e.domUrl||e.domJsonpUrl||e.domJson)})})}const mm="_pendo-default-css_",vm="_pendo-css_";function ym(){var e=[];if(!um())return y.resolve();gm(R,I)&&e.push(hm(mm,Yf()));var t=((I.guideWidget||{}).data||{}).guideCssUrl;return t?e.push(hm(vm,ju(t))):k("#"+vm).remove(),y.all(e)}var bm,wm,Sm=function(e){bm&&bm.flush(e)},Im=function(){return Kf};function _m(e){var t=_s(Ds,ks("visitor_id"),ks("props.guide_id"),ks("props.source"),$s,Us(),Bs(e),zs,Hs,Xs),n=_s(Cs,Ts(e.cache),E.noop);return new id(E.extend({processSilos:t,packageSilos:n},e))}var Em=function(e){return P.initializeResourceCenter(e)},$={postMessage:E.noop,close:E.noop};let Cm=$;function Tm(e){return bm=bm||_m(E.extend({cache:Kf,apiKey(){return I.apiKey},beacon:"guide",allowPost:!0,preferFetch:$e.safari},e)),wm=wm||_m(E.extend({cache:[],apiKey(){return I.apiKey},beacon:"poll",allowPost:!0,preferFetch:$e.safari},e)),rs(bm),rs(wm),()=>{bm.clear(),wm.clear(),os(bm),os(wm)}}function xm(e){var e=e["blockedURI"];e&&-1!==e.indexOf("/data/guide.json")&&f.get("cacheGuides")&&((e=f.getLocalConfig()).cacheGuides=!1,f.setLocalConfig(e),Er(window,"securitypolicyviolation",xm),jm())}var km=function(){const e=[];e.push(Tm({localStorageUnload:f.get("analytics.localStorageUnload")})),fh.run(),e.push(fh.stop),m.appUnloaded.on(function(){g.dispatch("frames/leave")}),m.metadata.on(function(e){e=e.data[0].storeChanged;e&&!Tl()&&Gm()}),m.identify.on(function(){Gm()}),m.urlChanged.on(function(){Gm(A.get())}),m.guideUpdateComplete.on(function(){var e,t,n;e=E.filter(R,e=>E.isFunction(e.outsideTimebox)&&e.outsideTimebox()),Kd.addGuide(e),Hu.processPrefetch(),e=R,t=Bd,f.get("disablePrefetch")||(t=E.keys(t)).length&&(n=E.indexBy(e,"id"),E.each(t,function(e){var e=n[e];e&&(e=E.first(e.steps))&&E.isFunction(e.fetchContent)&&e.fetchContent(!0)}))}),m.guidesLoaded.on(function(){P.fetchAnnouncementGuidesContent(R,g)}),m.guideListChanged.on(function(e){e=e.data[0].guideIds;if(e&&e.length){const n=E.indexBy(e);E.each(Bd,function(e,t){n[t]||(e.hide(),delete Bd[t])})}}),e.push(function(e,t,n){var{Turbolinks:i,Turbo:r}=window;let o;if(i&&(o=i.EVENTS&&i.EVENTS.LOAD),!(o=r&&r.visit?"turbo:load":o))return()=>{};const a=_r(e,o,t),s=_r(e,"turbo:before-cache",n);return()=>{a(),s()}}(document,function(){A.get()===Um.lastUrl&&jm()},function(){em()}));var t=f.get("guides.tooltip.arrowSize");if(E.isNumber(t)&&(I.TOOLTIP_ARROW_SIZE=t),Cm=Hf(g),$=Mf(Cm,g),e.push(()=>$.close()),e.push(sn.tabIdChanged(function(){var e=sn.getTabId();g.commit("frames/setTabId",e),g.dispatch("frames/join")})),g.dispatch("frames/init"),g.dispatch("frames/join"),e.push(function(){const e=[];return g.dispatch("guideState/init"),e.push(_r(window,"focus",Pp)),e.push(_r(window,"storage",function(e){g.dispatch("guideState/storageChanged",e)})),()=>E.each(e,function(e){e()})}()),e.push(()=>{Fm.cancel(),Ih.cancel()}),e.push(_r(window,"resize",Fm)),e.push(_r(window,"scroll",Ih,!0)),e.push(_r(window,"gestureend",$m,!0)),e.push(_r(window,"securitypolicyviolation",xm)),e.push(function(){var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"];const t=[];for(var n=0;n<e.length;n++)t.push(_r(document,e[n],Dm));return()=>{E.each(t,function(e){e()})}}()),f.get("preferMutationObserver")&&$e.MutationObserver){const n=E.debounce(function(e){g.dispatch("guideUpdate/documentChanged")},50);e.push(()=>{n.cancel()}),e.push(l(window,"animationend",n)),e.push(l(window,"transitionend",n)),e.push(l(window,"mouseover",n)),g.commit("guideUpdate/setUseObserver"),f.get("observeShadowRoots")&&g.commit("guideUpdate/setObserveShadowRoots"),e.push(()=>g.dispatch("guideUpdate/stopObserver"))}return h.registry.addLocal(Ug.ADVANCED),h.registry.addLocal(Ug.DISMISSED),h.registry.addLocal(Ug.SNOOZED),h.registry.addLocal(Wf),Vu.initialize(),()=>{Um.reset(),em(),Gm.reset(),lm.reqId=null,E.each(e,function(e){e()}),k("#"+mm).remove(),k("#"+vm).remove(),Vu.teardown()}},Am=function(){return f.get("guides.disabled",!1)||f.get("disableGuides",!1)||!So},Om=function(){return f.get("guides.delay",!1)||f.get("delayGuides",!1)},Rm=function(e){var t=f.getLocalConfig();t.disableGuides=e,f.setLocalConfig(t)},Mm=function(e){var t=f.getLocalConfig();t.delayGuides=e,f.setLocalConfig(t)},Nm=Wn(function(e){if(e&&e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n].featureRule,r=E.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}}),Lm=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement},Pm=function(){C.debug("adjustActiveGuideOnResize firing");var e=zm();e&&e.step&&!I.ignoreResize&&e.step.redraw()};const Fm=E.debounce(function(){var e;-1<E.get(document,"activeElement.id","").indexOf("pendo-video-")?(!(e=Lm())||e.id.indexOf("pendo-video-")<0)&&Dt(function(){Pm()},150):Pm(),Ih()},50),$m=function(e){1!==e.scale&&Fm()};var Dm=function(e){var t=E.get(document,"activeElement.id",""),e=E.get(e,"target.id","");E.filter([t,e],e=>-1<e.indexOf("pendo-video-")).length&&(Lm()?I.ignoreResize=!0:Dt(function(){I.ignoreResize=!1},1e3))};function Um(e){var t,n,i,r,o=b(),a=Gn();e=e||A.get(),n=o,i=a,r=el,!(t=e)||!I.apiKey||Am()&&"true"!==Vf.getItem("pendo-designer-mode")||t===Um.lastUrl&&n===Um.lastVisitorId&&i===Um.lastAccountId&&r===Um.lastMetadataHash||(Um.lastUrl=e,Um.lastVisitorId=o,Um.lastAccountId=a,Um.lastMetadataHash=el,lm(I.apiKey,o,e)["catch"](E.noop))}Um.reset=function(){E.each(["lastUrl","lastVisitorId","lastAccountId","lastMetadataHash"],function(e){Um[e]=null})};var Gm=function(e){So&&(Gm.reset(),Gm.pending=Dt(function(){delete Gm.pending,Um(e)},0))};function jm(){Um.lastUrl=null,Gm()}function Bm(e){e=Zf.indexOf(e);-1!==e&&Zf.splice(e,1)}function zm(){var e,n,t=E.find(R,function(e){return e.isShown()});return!t||E.get(t,"attributes.resourceCenter.isModule")&&!(t=P.getResourceCenter())?null:(e=E.find(t.steps,function(e,t){return n=t,e.isShown()}),{guide:t,steps:E.filter(t.steps,function(e,t){return e.isShown()}),step:e,stepIndex:n})}function Hm(e){var t,n=E.get(e,"value","");-1!==E.get(e,"parentElement.className","").indexOf("_pendo-nps-poll-"+n+"-wrapper")&&(e=k("._pendo-nps-open-text-poll-question"),t=k("._pendo-nps-open-text-poll-input")[0],E.forEach(e,function(e){"none"!==E.get(e,"style.display","none")&&t&&t.setAttribute("aria-labelledby",e.id)}))}Gm.reset=function(){Gm.pending&&clearTimeout(Gm.pending)};var Wm=function(){var n=this,o=(this.eventable=pn.call({}),this.eventable.on("pendoEvent",function(e){try{n.eventHandler(e)}catch(t){e=e&&e.action||"NO ACTION DEFINED";C.critical("Error in Action "+e,{error:t})}}),this.eventHandler=function(e){if(!e.ignore&&!I.designer){var t=e.step["guideElement"];switch(e.action){case o.advanceGuide:wg(e,e.step);break;case o.previousStep:Sg(e,e.step);break;case o.goToStep:bg(e);break;case o.submitPoll:this.submitPoll(e);break;case o.guideSnoozed:var n=e&&e.params&&e.params[0]&&e.params[0].value;yg(e,e.step,n);break;case o.dismissGuide:P.attemptToPreserveIntegrationIframes(e),!function(e){if(!e||!e.step)return vg();var t=e.step.getGuide();if(t&&t.attributes&&t.attributes.resourceCenter)return P.dismissResourceCenter(t);vg(e,e.step)}(e);break;case o.showElements:this.setElementDisplay(e,"block"),e.srcElement&&Hm(e.srcElement),Kc((i=Ku(e.step.domJson)).props.id,t),Jc(i.props.id,t),N.flexAllThings(i.props.id,e.step),Vc(i.props.id,t);break;case o.hideElements:this.setElementDisplay(e,"none"),Kc((i=Ku(e.step.domJson)).props.id,t),Jc(i.props.id,t),N.flexAllThings(i.props.id,e.step),Vc(i.props.id,t);break;case o.slideElement:this.setElementAnimation(e);break;case o.showGuide:n=E.find(e.params,function(e){return"reason"===e.name});Yg(e.params[0].value,n&&n.value);break;case o.launchGuide:this.launchGuide(e);break;case o.renderResourceCenterModule:var i=a(e);P.replaceResourceCenterContent(e.params[0].value,i);break;case o.returnToResourceCenterHome:n=P.findResourceCenterHomeView(Wd());if(!n)return;P.attemptToPreserveIntegrationIframes(e),P.replaceResourceCenterContent(n.id,e.params);break;case o.openLink:this.openLink(e);break;case o.searchGuides:this.searchGuides(e);break;case o.submitPollAndGoToStep:this.submitPoll(e),bg(e);break;case o.confirmation:this.confirmGuide(e)}var r=Wm.prototype.registeredActions,r=r&&r[e.action];"function"==typeof r&&r(e)}},this.submitPoll=function(e){var t=e&&e.action,i=e.step,n=[];e.srcElement&&e.srcElement.getAttribute("data-pendo-poll-type")&&"yesNo"===e.srcElement.getAttribute("data-pendo-poll-type")&&(r=e.srcElement.getAttribute("data-pendo-poll-id"),e=e.srcElement.value,n.push({pollId:r,value:parseInt(e,10)}));var r=k("[data-pendo-poll-id]",i.guideElement[0]);n=n.concat(E.map(r,function(e){var t,n=k("textarea,input:text,select,input:radio:checked",e);if(n&&n.length&&n[0].value)return t=e.getAttribute("data-pendo-poll-id"),e=E.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&&n?i.response(E.compact(n)):C.info("[Agent] Error! Trying to submit a poll response but step does not have response function!");t!==o.submitPollAndGoToStep&&i.advance()},this.setElementDisplay=function(e,t){var n=e.step,e=k(E.find(e.params,function(e){return"selectors"===e.name}).value,n.guideElement[0]);E.each(e,function(e){e.style.display=t})},this.setElementAnimation=function(e){var t=k(E.find(e.params,function(e){return"selector"===e.name}).value,e.step.guideElement[0])[0],n=E.find(e.params,function(e){return"transition"===e.name}).value,e=E.find(e.params,function(e){return"left"===e.name}).value;t.style.transition=n,t.style.left=e},this.openLink=function(e){var t=E.find(e.params,function(e){return"url"===e.name}).value,e=E.find(e.params,function(e){return"target"===e.name}).value;"_self"===e&&Ha()&&(e="_top");window.open(t,e)},this.goToStep=bg,this.searchGuides=function(t){var e="",n=t.srcElement.value,t=k("#pendo-resource-center-container"),i=t.find('[id^="pendo-list-item-"]'),r=t.find('[id^="pendo-results-count-container"]'),t=t.find('[id^="pendo-no-matches-container"]'),o=[],a=!0,s=0;if(i)for(var d in i){var u;d&&i[d]&&(u=!1,k(i[d]).text()&&(-1!==k(i[d]).text().toLowerCase().indexOf(n.toLowerCase())?(k(i[d]).css({display:"list-item"}),u=!(a=!1)):k(i[d]).css({display:"none"})),E.isFunction(i[d].getAttribute)&&(e=i[d].getAttribute("data-_pendo-text-list-item-1").split(","),E.forEach(e,function(e){E.contains(o,e)||o.push(e)})),this.searchAllTerms(o,e,n)&&i[d]&&(k(i[d]).css({display:"list-item"}),u=!(a=!1)),e="",u)&&s++}a?k(t[0]).css({display:"block"}):k(t[0]).css({display:"none"});if(r&&r.length&&(r[0].innerHTML="",n)){let e="";0===s?(e=t[0].innerText,this.debounceAnnounceResults(r[0],e)):(t=1===s?"data-pendo-aria-label-alert-singular":"data-pendo-aria-label-alert-plural",(e=r[0].getAttribute(t))&&(e=e.replace("{RESULT_COUNT}",s),this.debounceAnnounceResults(r[0],e)))}},this.searchAllTerms=function(t,e,n){return!!e&&e.some(function(e){return E.contains(t,e)&&e===n})},this.confirmGuide=function(e){var e=e.step,t=function(e){if(e.confirmationElementPathRule)return yr(e.confirmationElementPathRule)[0]}(e);e.advance(),t?t.click():C.critical("pendo.io confirmationElement exception",{stepId:e.id,confirmationElementPathRule:e.confirmationElementPathRule,error:new Error("confirmation action called but confirmationElement was not found")})},this.getTransitionParams=a,this.launchGuide=function(e){var t=!E.get(e,"params.2.value.doNotDismiss");t&&vg(e,e.step);var t=e&&e.params&&e.params[0]&&e.params[0].value,n=e&&e.params&&e.params[1]&&e.params[1].value;{var i,r;t&&n?(n=M(e.params[0].value),i=e.params[1].value,r=(r=E.find(n.steps,function(e){return e.id===i}))||n.steps[0],Ng(n),r.show("api")):t&&Yg(e.params[0].value)}},this.debounceAnnounceResults=E.debounce((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 a(e){return e.params.find(e=>"transitionDirection"===e.name)?[{name:"transitionCss",type:"string",value:"left 200ms"},{name:"transitionDirection",type:"string",value:"right"}]:[]}return this},qm=(Wm.registerAction=function(e,t){e&&"string"==typeof e&&t&&"function"==typeof t&&((Wm.prototype.registeredActions=Wm.prototype.registeredActions?Wm.prototype.registeredActions:{})[e]=t)},function(){var s="guideActivity",d=function(){return(new Date).getTime()-eg},r=E.isObject,u=E.findWhere;const c=[];return{type:s,handler(e){var t,n=e.data[0],e=e.data[1];e=e,r(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if(E.isString(e.id)&&0===e.id.indexOf("pendo-base"))return!0;if(r(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return l(e)}(t)||function(e){return h(e)}(t)||function(e){return p(e)}(t))&&(e=function(e){var t=function(e){for(var t of c){t=t(e);if(t)return t}return zm()}(e);if(!t)return;if(function(e){e=e.guide.activeModule;return e&&e.attributes&&e.attributes.resourceCenter&&"AnnouncementsModule"===e.attributes.resourceCenter.moduleId}(t)&&!(t=function(e){var t=k("#"+e).closest("[data-pendo-announcement-guide-id]").attr("data-pendo-announcement-guide-id"),e=E.find(Wd(),function(e){return e.id===t});return e?{guide:e,step:e.steps[0]}:undefined}(e.id)))return;if(!t.step||!t.step.domJson)return;var e=h(e)||l(e)||p(e)||{type:e.tag,id:e.id},n=function a(e,t){if(t.props&&t.props.id&&t.props.id===e)return t;if(t.children!==undefined)for(var n=0;n<t.children.length;n++){var i=a(e,t.children[n]);if(i!==undefined)return i}return undefined}(e.id,t.step.domJson);if(!n)return;let i=e.id;n=function(e,t){if(e!==undefined){if("a"===e.type)return[{action:"openLink",url:Vr(e.props.href),target:e.props.target}];if(e.actions!==undefined)return E.map(e.actions,function(e){switch(e.action){case"automation":var t=u(e.parameters,{name:"automationIds"});return{action:e.action,automationIds:t};case"openLink":var t=u(e.parameters,{name:"url"}),n=u(e.parameters,{name:"target"});return{action:e.action,url:Vr(t.value),target:n.value};case"submitPollAndGoToStep":case"goToStep":t=u(e.parameters,{name:"goToStepId"});return{action:e.action,guideStepId:t.value};case"guideSnoozed":n=u(e.parameters,{name:"snooze_duration"}),t=u(e.parameters,{name:"time_unit"});return{action:e.action,duration:n.value,timeUnit:t.value};case"showGuide":case"launchGuide":n=e.parameters[0],t=e.parameters[1]||{};return{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&&E.isArray(e.templateChildren)&&e.templateChildren[t.templateChildIndex])return[{action:"showGuide",guideId:e.templateChildren[t.templateChildIndex].id}]}return[]}(n,e);var[r={}]=n,{action:r,guideId:o}=r;"showGuide"===r&&o&&(i+="-"+o);return Bg({type:s,visitorId:b(),ui_element_id:i,ui_element_type:e.type,ui_element_actions:n,guideId:t.guide.id,stepId:t.step.id,duration:d(),language:t.guide.language})}(n))&&Wg(e)},registerGuideResolver(e){c.push(e)},removeGuideResolver(e){e=c.indexOf(e);-1!==e&&c.splice(e,1)}};function l(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-button/.test(e.id))?{type:e.tag,id:e.id}:i(e)||!r(e.parentElem)?null:l(e.parentElem)}function p(e){var t,n;if("LI"===e.tag&&/pendo-task-list-item/.test(e.cls))return t=(n=e.id.split("-")).pop(),n=n.join("-"),{type:e.tag,id:n,templateName:"pendo_task_list_item",templateChildIndex:t};return i(e)||!r(e.parentElem)?null:p(e.parentElem)}function h(e){return"A"===e.tag?{type:e.tag,id:e.id}:i(e)||!r(e.parentElem)?null:h(e.parentElem)}function i(e){return E.isString(e.id)&&0===e.id.indexOf("pendo-guide-container")}}()),Vm=[],Km=!(Wm.deregisterAction=function(e){e&&"string"==typeof e&&delete(Wm.prototype.registeredActions=Wm.prototype.registeredActions?Wm.prototype.registeredActions:{})[e]});const Jm={agent:{getJwtInfoCopy:fs.get,treatAsAdoptPartner:oo},agentStorage:h,analytics:{ptm:()=>Ps,collectEvent:Ss},attachEvent:l,ConfigReader:f,Events:m,EventTracer:sn,EventRouter:Wm,Extensions:{API:{addTopic:function(e,t){var n=Al[e]||{};E.extend(n,t),Al[e]=n}}},frames:{getChannel:()=>Cm},getAssetUrl:ro,getEventable:()=>pn.call({}),GlobalRuntime:{addGlobalScript:Vu.addGlobalScript,removeGlobalScript:Vu.removeGlobalScript},GuideActivity:qm,GuideLoop:{addUpdatePhase:sh,removeUpdatePhase:dh},guides:{addProcessor:function(e){return Zf.push(e),E.partial(Bm,e)},removeProcessor:Bm,registerDisplayableGuides:function(e,t){E.isArray(t)&&(zd[e]=t)},removeDisplayableGuides:function(e){delete zd[e]}},hosts:{SERVER:je},NodeSerializer:Ed,q:y,sessionStorage:h.getSession(),sizeElements:Wc,store:g,Tombstone:Kd,transmit:{buildBaseDataUrl:Io,fetchKeepalive:xo,sendBeacon:ko},log:C,util:{trim:Ye,base64EncodeString:it,parseUrl:Ia,addInlineStyles:E.partial(Yu,f)},constants:{URL_MAX_LENGTH:2e3}};function Zm(t){E.find(Vm,function(e){return e.name===t.name})?C.warn(`Plugin with name ${t.name} already exists. Skipping registration.`):(Vm.push(t),Km&&t.initialize(I,Jm))}function Ym(){E.each(Vm,function(e){E.isFunction(e.teardown)&&e.teardown(I,Jm)}),Km=!1}Ll.registerExtensionsByUse("plugin",function(e){return E.extend(e.uri,E.pick(e,"name")),Zm(e.uri),e},function(e){return!!e.uri.initialize&&!!e.uri.teardown});var Xm=!1;function Qm(){Xm||(m.identify.on(function(e){var t,n,e=e.data[0];n=(t=e).old_visitor_id,t=t.visitor_id,(xn(n)?Tn(t)?xn(t)?(C.info("Visitor is anonymous: "+t),1):Rn(t)?(C.info("Visitor id is the default: "+t),1):(C.info("Re-mapping visitor identity from "+n+" to "+t),0):(C.info("Not valid visitor id: "+t),1):(C.info("Visitor is already identified: "+n),1))&&(n=(t=e).old_account_id,t=t.account_id,Tn(t)?n===t||(C.info("Re-mapping account identity from "+n+" to "+t),0):(C.info("Not valid account id: "+t),1))||(Ss("identify",e),ss())}),m.metadata.on(function(e){var t;Tl()||({options:e,hashChanged:t}=e.data[0],t&&(Ss("meta",e),ss()))}),Xm=!0)}ev="guideActivity",tv=function(){return(new Date).getTime()-eg},nv=E.isObject;var ev,tv,nv,iv={type:ev,handler(e){var t,n=e.data[0],e=e.data[1];e=e,nv(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if("pendo-resource-center-container"==e.id)return!0;if(nv(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return av(e)}(t)||function(e){return rv(e)}(t)||function(e){return ov(e)}(t))&&(e=function(e){var t=P.getResourceCenter();if(t){var n=t.activeModule,i=av(e);if(i?(i={elementId:i.id},/^pendo-close-guide/.test(i.id)?i.actions=[{action:"dismissGuide"}]:/^pendo-left-caret/.test(i.id)&&(i.actions=[{action:"showGuide",guideId:t.id}])):i=rv(e)||ov(e),i)return i.guideId||(i.guideId=(n||t).id),i.stepId||(i.stepId=(n||t).steps[0].id),i.actions||(i.actions=[{action:"showGuide",guideId:i.elementId}]),i.language||(i.language=(n||t).language),Bg({type:ev,visitorId:b(),ui_element_id:i.elementId,ui_element_type:i.type,ui_element_actions:i.actions,guideId:i.guideId,stepId:i.stepId,duration:tv(),language:i.language})}}(n))&&Wg(e)}};function rv(e){return-1!==e.cls.split(" ").indexOf("_pendo-resource-center-module-list-item")?{type:"BUTTON",elementId:k("#"+e.id).closest("[data-pendo-module-guide-id]").attr("data-pendo-module-guide-id")}:"pendo-resource-center-container"!==e.id&&nv(e.parentElem)?rv(e.parentElem):null}function ov(e){var t=e.cls.split(" ");if(-1===t.indexOf("_pendo-resource-center-guidelist-module-listed-guide")&&-1===t.indexOf("_pendo-resource-center-onboarding-module-listed-guide"))return"pendo-resource-center-container"!==e.id&&nv(e.parentElem)?ov(e.parentElem):null;t=P.getResourceCenter();if(t){e=e.id.split("-").pop(),t=t.activeModule;if(t&&t.attributes&&t.attributes.resourceCenter)return{type:"BUTTON",elementId:t.attributes.resourceCenter.children[e]}}return null}function av(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&&nv(e.parentElem)?av(e.parentElem):null}const sv=e=>(e=e||I).doesExist(e.apiKey);let dv=0;const uv="initializeImmediately",cv=[],lv=Wn(function(e){if("complete"===document.readyState||E.get(e,uv)||f.get(uv))if(C.info("pendo.initialize called with "+JSON.stringify(e)),I.apiKey)1==dv++&&C.info(["pendo.initialize only needs to be called once",dt()?" per namespace":"",". Use pendo.updateOptions to update metadata after the agent has initialized."].join(""));else{if(e=e||{},E.isEmpty(fs.get())&&(o=fs.getJwtOptions(e,"initialize"))&&(fs.set(E.pick(e,"jwt","signingKeyName")),E.extend(e,o,{forceAnonymous:!0})),E.isString(e))return xr.get(e).then(e=>(ce(d=e.data),lv()));g.dispatch("location/init",e.location||{}),f.setLocalConfig(e),no(),I.HOST=Yr;var t,n,i,r,o=f.get("cookieDomain");if(o&&(o=o,i=location.host,o?E.isString(o)&&(i=i.replace(/:\d+$/,""),o=o.replace(/^\./,""),t=new RegExp("\\."+wt(o)+"$"),n=new RegExp("^"+wt(o)+"$"),t.test(i)||n.test(i))&&(Ct="."+o):Ct=o),Zh.discoverKeys(e),Zh.getApiKey()){g.commit("metadata/setMetadata",{selfHosted:Cl()}),e.logStackTraces&&(I.logStackTraces=e.logStackTraces),f.get("preferBroadcastChannel")&&Bf.secure(!0);const a=f.get("analytics.localStorageUnload");ys.read(h),cv.push((t={localStorageUnload:a},Ns=ns.events=Ka,Ls=ns.trackEvents=Ja,Ps=rd(E.extend({cache:Ns,silos:ns.silos,apiKey:_o,beacon:"ptm",allowPost:!0},t)),Fs=rd(E.extend({cache:Ls,silos:ns.trackEventSilos,apiKey:_o,beacon:"ptm",allowPost:!0,params:{type:"track"}},t)),rs(Ps),rs(Fs),()=>{cs(),os(Ps),os(Fs)})),So&&(h.registry.addLocal(In),h.registry.addLocal(_n),h.registry.addLocal(En),h.registry.addLocal(bl),h.registry.addLocal(ch),I.disableGuideCenterContentSearch=e.disableGuideCenterContentSearch,[{events:i=[]}]=[e],E.each(i,(e,t)=>{yu[t]&&yu[t](e)}),cv.push(km()),Qm(),cv.push(Ld()),cv.push((E.each(Vm,function(e){e.initialize(I,Jm)}),Km=!0,Ym)),cv.push((n=e,h.registry.addLocal(Eh),h.registry.addLocal(Ch),E.find([E.partial(tf.launchOnToken,window.location),E.partial(Th,window),E.partial(tf.localStorageNavigation,n)],e=>e()),n.enableDesignerKeyboardShortcut||!f.get("disableDesignerKeyboardShortcut")?wf.listen():()=>{})),m.appUsage.on(qm.handler),m.appUsage.on(iv.handler),cv.push(ds(Za))),m.appHidden.on(()=>{as(0,{hidden:!0})}),m.appUnloaded.on(()=>{as(0,{unload:!0}),a&&ys.write(h)}),kn()||An(),I.updateOptions(e),e.visitorId&&e.visitorId!=On&&I.identify(e.visitorId),cv.push(A.watch(function(){I.pageLoad()})),So&&m.ready.trigger(),od(A.get()),dv++,window.parent&&window.parent.postMessage&&"function"==typeof window.parent.postMessage&&((r=Bf.targetOrigin())?window.parent.postMessage({type:"announce-frame-initialized",destination:"pendo-designer-agent",source:"pendo-designer-agent",localStorageRouter:!0},r):C.warn("Unable to announce frame to designer plugin, targetOrigin is not set. Check if broadcastChannel is enabled and cross origin frames are allowed.")),fv()}else C.debug("API key is not set, Pendo will not initialize.")}else oe(I,"initialize",arguments)});function pv(e){return!E.isArray(e)||E.isEmpty(e)}function hv(e){if(!pv(e))return E.find(e,e=>"initialize"===e[0])}function fv(i){var e;return!pv((i=i||I)._q)&&(e=!!hv(i._q),sv(i)||e)?(e=i._q.splice(0,i._q.length),E.reduce(e,(e,t)=>{if(!E.isArray(t))return e;const n=i[t.shift()];return E.isFunction(n)?e.then(()=>n.apply(i,t)):e},y.resolve()).then(fv)):y.resolve()}function gv(){sv()?C.info("already running"):(window.pendo_options&&lv(window.pendo_options),fv())}function mv(){m.appHidden.trigger(),m.appUnloaded.trigger(),E.each(cv,function(e){e()}),od.reset(),cv.length=0,Bf.close(),pn.clear(m),pn.clear(yu),delete I.apiKey,dv=0}var vv,yv,bv={getActiveGuide:zm,smartNextStep:function(e){var t,n=zm();n&&(t=n.guide.steps[n.stepIndex+1],Dt(function(){var e=yr(t.elementPathRule);0!==e.length&&E.some(e,ca)?wg(n.step):wg(t)},e=e||0))},smartFirstStep:function(){k("._pendo-guide_").css("display:none;");var t=Vg(),e=zm().guide.steps,n=E.filter(E.rest(e),function(e){return!!e.pageId}),n=E.indexOf(e,E.find(n,function(e){return Jg(e.regexUrlRule,t)}));C.info("startingPoint is "+n),-1==n?k("._pendo-guide_").css("display:block;"):(n=e[Math.max(0,n-1)],C.info("found starting step to be "+n.id),wg(n))},advanceOn:function(e,t){var n=zm(),i=k(t=t||n.step.elementPathRule)[0],r=function(){wg(),Dd(i,e,r,!0)};l(i,e,r,!0)},renderStepPosition:function(e,t,n){if(t)n||(i=[].concat(t.steps).reverse(),n=E.findWhere(i,{seenState:"active"}));else{var i=zm();if(!i)return;t=i.guide,n=i.step}return(e=E.template(e=e||"Step <%= currPos %> of <%= total %>"))({currPos:t.getPositionOfStep(n),total:t.getTotalSteps()})}},D={renderGuideFromJSON:function(e,n,t,i){var r=n.getGuide(),o=Ku(e),a=E.get(r,"attributes.resourceCenter");a&&(P.revertRtlChanges(r,e.props),e=P.updatePseudoStyleSelectors(e));var s=a&&P.isFullyCustom(r),d="AnnouncementsModule"===E.get(r,"attributes.resourceCenter.moduleId"),o=(n.hasEscapeListener=!1,n.containerId=o&&o.props&&o.props.id,n.element=du(n),D.buildNodeFromJSON(e,n,t)),t=(n.guideElement=o).find("#"+n.containerId),u="data-vertical-alignment",c="Relative to Element"===t.attr(u);c&&!a&&k(n.guideElement).css({overflow:"hidden",height:"0",width:"0"});t.css({visibility:"hidden"}),o.css({visibility:"hidden"});u=Of.buildWatermark({appId:r.appId,targetAccount:r.targetAccount,isTraining:r.isTraining,isBottomAligned:"Bottom Aligned"===t.attr(u)},D.buildNodeFromJSON);u&&t.append(u);var u=n&&n.attributes&&n.attributes.imgCount,l=au();var p=E.get(r,"attributes.embedConfig",null);{var h,f;p?(g=o[0],h=g.querySelector("#"+(f="pendo-guide-container")),{selector:h,method:f}=(h&&(h.id=f+"-"+n.id,g.id="pendo-base-"+n.id),p),l=k(h)[0],"replace"===f&&l?(l.innerHTML="",o.appendTo(l)):"prepend"===f?o.prependTo(l):o.appendTo(l)):o.appendTo(l)}(function(e,t,n){t=k.getRootNode(t),e=k.getRootNode(e);var i;e!==t&&(e!==document?e.hasOwnProperty("wrappedJSObject")?(i=e.wrappedJSObject.adoptedStyleSheets,t.wrappedJSObject.adoptedStyleSheets.push(...i)):(i=e.adoptedStyleSheets,t.adoptedStyleSheets.push(...i)):(n=k(".pendo-style-"+n,e)).length&&(n.remove(),n.appendTo(t)))})(au(),o[0],n.id),Wc(o),s||d||(D.recalculateGuideWidth(n.containerId,n.guideElement),D.adjustGuideContentWidth(n.containerId,n.guideElement));u||a||D.flexAllThings(n.containerId,n);s||D.recalculateGuideHeight(n.containerId,n.guideElement);c?n.attributes.calculatedType="tooltip":xc.attachBBAdvanceActions(n);c&&!u&&xc.positionStepForTooltip(n,e,t[0]);{var g;a&&(P.showHomeViewOrEmptyState(r),g=[],d?g=[r.attributes.resourceCenter]:D.flexAllThings(n.containerId,n),g.length)&&E.forEach(g,function(e){e=E.get(e,"children",[]);E.forEach(e,function(e){var t;e&&(t=e.steps[0],E.isUndefined(t.attributes.imgCount))&&(t=E.get(t,"id",n.id),e=E.get(e,"id",r.id),t=k("#pendo-g-"+t).length?t:e,D.flexAllThings("pendo-g-"+t,n))})})}{var m;u?(m=y.defer(),o.rendered=m.promise,t.on("imagesLoaded",function(){m.resolve()})):(t.css({visibility:"visible"}),o.rendered=y.resolve())}o.css({visibility:"visible"}),n.elements.push(n.guideElement[0]),I.designer||(E.get(n,"attributes.isAutoFocus")&&(D.autofocusStep(n,t),D.trapFocusStep(n,t),n.hiddenElements=D.addAriaHiddenOutsideGuide(o[0])),a&&(D.attachRCFocusHandlers(),r.skipResourceCenterHomeView?(p=r.activeModule.steps[0],D.autofocusStep(p,p.guideElement)):D.autofocusStep(n,t)));return k(".pendo-video-wrapper",o).each(function(t){k("iframe",t).each(function(e){t.setAttribute("data-pendo-video-loading",""),D.addVideoLoadListener(t,e)})}),o},autofocusStep:function(e,o){var n="autofocus for guide id: "+e.getGuide().id+" step id: "+e.id+" ",i={maxRetries:100,delay:50,exponentialBackoff:!1};pt(function(){var e,t,n,i,r=k(o).find("#pendo-guide-container");return(r=r[0]||r)&&ca(r)&&(n=wo(n=r),i=jo(),E.extend(i,{top:0,left:0,bottom:i.height,right:i.width}),Xo(i,n))&&(i=r,n=E.contains(["A","INPUT","LABEL","SELECT","TEXTAREA","BUTTON","FIELDSET","LEGEND","DATALIST","OUTPUT","OPTION","OPTGROUP"],i.nodeName),e=!!i.tabIndex,t=!i.hidden,i=!i.disabled,(n||e)&&t&&i)?r:null},i,function(t){pt(function(){return!!(e=t)&&(e.focus(),e===k.getRootNode(e).activeElement);var e},i,function(){},function(){C.warn(n+"#pendo-guide-container is available on page but could not capture focus")})},function(){C.warn(n+"#pendo-guide-container did not render or become visible in time to focus")})},trapFocusStep:function(e,t){!function(e){var o,a,s,t,d,u,n,c=e[0];c&&(t=["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"].join(", "),(o=E.toArray(e.find(t))).length)&&(a=o[0],s=o[o.length-1],t=_v(e),d=t[0],u=t[1],n=function(e){var t,n,i=wv(e),r=e.shiftKey;i&&(t=(i=k.getRootNode(c).activeElement)===c,n=document.activeElement===document.body,r?(i===d||t||n)&&(Iv(o,s).focus(),e.preventDefault()):(t||i===u||n)&&(Iv(o,a).focus(),e.preventDefault()))},l(document,"keyup",n),l(document,"keydown",n),m.one("unmounted",()=>{Dd(document,"keyup",n),Dd(document,"keydown",n)}))}(t.find("#pendo-guide-container"))},attachRCFocusHandlers:function(){const s=P.getResourceCenter(),d=P.getResourceCenterContainer();if("dom"===s.launchMethod&&d){let e=k(s.attributes.activation.selector)[0];if(e){const[u,c]=_v(k(d));var t=function(e){var t=wv(e),n=e.shiftKey;if(t){var t=k.getRootNode(d).activeElement,i=k(s.attributes.activation.selector)[0];if(i){var r=t===u,t=t===c;const a=k(sa);function o(t){return Object.values(a).findIndex(e=>e===t)}n?r?(i.focus(),e.preventDefault()):t&&Sv(0===(n=o(u))?a.length-1:n-1,a,e):t?Sv(o(i)+1,a,e):r&&Sv((n=o(c))>=a.length-1?0:n+1,a,e)}}},n=function(e){var t=wv(e),n=e.shiftKey;t&&!n&&Sv(0,k('[id^="pendo-g-"]').find(sa),e)},i=function(e){var t=e.target,n=e.relatedTarget,t=t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING;n!=u&&t&&Sv((n=k('[id^="pendo-g-"]').find(sa)).length-1,n,e)};l(document,"keyup",t),l(document,"keydown",t),l(e,"keydown",n),l(e,"focus",i),m.one("unmounted",()=>{Dd(document,"keyup",t),Dd(document,"keydown",t),Dd(e,"keydown",n),Dd(e,"focus",i)})}}},addAriaHiddenOutsideGuide:function Ow(e,n=[]){if(!e||e===Ko())return n;const t=Jo(e);E.each(t,e=>{if(-1===n.indexOf(e)&&"true"!==e.getAttribute("aria-hidden")){const t=e.tagName.toLowerCase();"script"!==t&&"style"!==t&&(e.setAttribute("aria-hidden","true"),n.push(e))}});e.parentNode&&Ow(e.parentNode,n);return n},renderResourceCenterModule:P.renderResourceCenterModule,buildNodeFromJSON:pl,attachImgLoadHandlers:hl,recalculateGuideHeightOnImgLoad:fl,buildStyleString:function(e){var n="";return E.each(e,function(e,t){n=n+t+":"+e+";"}),n},buildStyleTagContent:ml,bindActionToNode:gl,recalculateGuideHeight:Vc,recalculateGuideWidth:Kc,adjustGuideContentWidth:Jc,findDomBlockInDomJson:Ju,isElementHiddenInGuide:N.isElementHiddenInGuide,positionStepForTooltip:xc.positionStepForTooltip,flexAllThings:N.flexAllThings,flexElement:N.flexElement,findTopLevelContainer:function(t){for(var e=["pendo-base","pendo-resource-center-container"],n=0;n<20;n++){if(E.find(e,function(e){return t.id===e}))return t;if(t===document.body)return document.body;t.parentNode&&(t=t.parentNode)}return document.body},updateBackdrop:bc,buildNodesFromJSON:ul,findGuideContainerJSON:Ku,maintainAspectRatios:N.maintainAspectRatios,sizeElement:qc,sizeElements:Wc,getAllowedAttributes:ll,repositionFlexElementsInFullWidthGuides:function(){},isBuildingBlockGuideRelativeToElement:xc.isBuildingBlockGuideRelativeToElement,updateAriaLabelledbyForActiveFollowupQuestion:Hm,addVideoLoadListener:function(e,t){l(t,"load",function(){e.removeAttribute("data-pendo-video-loading")})}};function wv(e){return"Tab"===e.key||9===e.keyCode}function Sv(e,t,n){e=t[e];e&&(e.focus(),n.preventDefault())}function Iv(e,t){let n;if("radio"===t.getAttribute("type")){const i=t.getAttribute("data-pendo-poll-id");n=E.find(e,function(e){var t=e.getAttribute("data-pendo-poll-id");return i===t&&e.checked})}return n||t}function _v(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:E.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:E.extend({},t,{tabIndex:0})},{selector:".pendo-end-focus-bumper:hover",styles:t},{selector:".pendo-end-focus-bumper:focus",styles:t}]},t=D.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]}var Ev=100,Cv=[],Tv=[];const xv="log-enabled",kv="active-contexts";var Av=function(){return Mv()?yv?"logging already enabled":(h.write(xv,"true",null,!0),yv=!0,"logging enabled"):"logging unavailable"},Ov=function(){return yv?(h.write(xv,"false",null,!0),yv=!1,"logging disabled"):"logging already disabled"};var Rv=function(e,t){return E.compact([].concat(e,t))},Mv=function(e){return e=e||"log","undefined"!=typeof console&&E.isFunction(console[e])},Nv=function(e){return e=Rv(e),0<vv.length?0<E.intersection(vv,e).length:!!yv||!!ph()},Lv=function(e,...t){C.info(e,{contexts:t})};function Pv(e){var t;e.level!==gt.Debug&&e.level!==gt.Info||(t=e.attributes?Rv(e.attributes.contexts):[],Mv()&&Nv(t)&&jv(e.message),$v(Cv,e.message,t))}function Fv(...e){Mv("error")&&console.error.apply(console,e),$v(Tv,e.join(" "))}var $v=function(e,t,n){E.contains(n,"debug")||(e.length==Ev&&e.shift(),e.push([t,n]))},Dv=function(t){t=Rv(t),E.each(E.map(E.filter(Cv,function(e){return 0===t.length||0<E.intersection(t,e[1]).length}),function(e){return e[0]}),function(e){jv(e,"[Pendo-History] ")})},Uv=function(){return E.union.apply(E,E.map(Cv,function(e){return e[1]}))},Gv=function(e){vv=Rv(e),h.write(kv,vv.join(","),null,!0)},jv=function(e,t){var n;Mv()&&(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 Bv(t,n){if(t&&E.isString(t)){let e=n;E.isObject(n)||(e={__err__:n});n=A.get();Ss("track",e,n,t)}else C.error("Must provide valid name string for event tracking")}Lv.init=function(){var e,t;e=h.read(kv,!0),vv=e?e.split(","):[],e=Ge,t=h.read(xv,!0),yv=null!==t?"true"==t:!E.contains(["prod","prod-eu","prod-us1","prod-jp","prod-hsbc","prod-au","prod-gov","rc"],e),C.addEventListener("log",Pv),h.registry.addLocal(xv),h.registry.addLocal(kv)},Lv.enableLogging=Av,Lv.disableLogging=Ov,Lv.getActiveContexts=function(){return vv},Lv.setActiveContexts=Gv,Lv.showLogHistory=Dv,Lv.getLoggedContexts=Uv;var zv=function zv(r){var o=[];function a(e,t,n,i){r?o.push({type:n,message:t,value:i}):ge(i)?console[e](t,i):console[e](t)}if("undefined"==typeof console||!console.group)return"Please run this test in the latest version of Chrome, Firefox, Safari, or Internet Explorer";r||console.group("Pendo Install Validation"),I.apiKey||a("error","No Pendo API key configured. Make sure to call pendo.initialize() with a valid Pendo API key.","apiKey");var e=b(),e=(xn(e)&&a("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"),Rn(e)&&a("error","The current visitor ID matches the example visitor ID from the Pendo installation instructions.","isDefaultVisitor"),Gn()),t=(e||a("warn","The current visitor is not associated with an account. Is this expected?","noVisitorInAccount"),"ACCOUNT-UNIQUE-ID"===e&&a("error","The current account ID matches the example account ID from the Pendo installation instructions.","exampleAccountId"),f.get("disableCookies")&&a("warn","Cookies are disabled in Pendo config. Is this expected?","disableCookies"),xl());if(E.each(["visitor","account","parentAccount"],function(n){var i=t&&t[n],e=E.chain(i).keys().value();0<e.length?(r||console.group(n+" metadata (does this look right?):"),0<(e=E.chain(e).map(function(e){return e.toLowerCase()}).countBy().pick(function(e){return 1<e}).keys().value()).length&&E.each(e,function(e){a("warn","Keys will be lowercased and any duplicates overwritten. Please choose unique key names for:",n+"MetadataConflict",e)}),E.each(E.keys(i),function(e){var t=i[e];E.isObject(t)&&!E.isArray(t)?a("warn",e+" is an object and will be ignored.",n+"Metadata",t):E.isArray(t)&&E.any(t,E.isObject)?a("warn",e+" contains object values. The objects will be ignored.",n+"Metadata",t):a("log",e+":",n+"Metadata",t)}),r||console.groupEnd()):"parentAccount"!==n&&a("warn","No "+n+" metadata found. Learn more about metadata here: http://help.pendo.io/resources/support-library/installation/metadata.html",n+"MetaData")}),r)return o;console.groupEnd()},Hv=function(n){var e=[{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:Jt.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"]}],r=!1,i=(E.each(e,function(e){var n=e.nativeType,i=[],t=e.propsToCheck||Object.getOwnPropertyNames(n);E.each(t,function(e){try{e&&n[e]&&"function"==typeof n[e]&&(n[e].toString().includes("[native code]")||i.push(e))}catch(t){}}),i.length&&(e.nonNativeImplementations=i,r=!0)}),{hasNonNativeMethods:r,implementations:[]});return n||console.group("Native javascript method check:"),r?(n||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"),E.each(e,function(e){var t;e.nonNativeImplementations&&(t=e.displayName.trim(),n?i.implementations.push({nativeType:t,nonNativeImplementations:e.nonNativeImplementations}):console.warn(t+" | Contains the following non-native implementations:",e.nonNativeImplementations.sort().join(", ")))}),n?i:void console.groupEnd()):n?i:(console.log("Environment uses native javascript implementations"),console.groupEnd())},Wv=function(e){var t=[];if(E.isNumber(window.frames.length)&&E.isFinite(window.frames.length)&&k("iframe").length+k("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:"),E.each(t,function(e){console.warn(e)}),console.groupEnd()}},qv=function(e){var t,n=window.location.href,i=[];try{(t=Fr())!==n&&i.push({type:"customizedUrl",msg:"URL has been customized. This will affect data collection, guide requests, and reload tests.",value:t})}catch(o){i.push({method:"error",msg:"Error getting Custom URL",value:o})}try{var r=A.externalizeURL();r!==t&&i.push({type:"sanitizedUrl",msg:"URL has been sanitized. This will affect sending data and guides requests.",value:r})}catch(o){i.push({method:"error",msg:"Error getting Externalized URL",value:o})}if(e)return i;console.group("URL Validation"),console.log("Browser URL:",n),E.each(i,function(e){e.method?console[e.method](e.msg+"\n"+e.value):console.warn(e.msg+"\n"+e.value)}),console.groupEnd()};const Vv=e=>{if(0<Tv.length){var t=[].concat(Tv);if(e)return t;console.group("Agent Error History"),E.each(t,(e,t)=>{console.log("Error History ",t,e)}),console.groupEnd()}},Kv=e=>{t=e;var t,n=E.map(Vm,function(e){return e.validate&&!t&&e.validate(I,Jm),e.name});if(e)return n;console.group("Active Plugins"),E.each(n,e=>console.log(e)),console.groupEnd()};var Jv=function(e){var t={install:zv(e),plugins:Kv(e),globals:Wv(e),url:qv(e),errors:Vv(e)};if(e)return t.methods=Hv(e),t;f.validate(console)},Zv={BuildingBlockGuides:D,BuildingBlockResourceCenter:P,BuildingBlockTemplates:Xu,BuildingBlockTooltips:xc,BuildingBlockSvgs:ic};function Yv(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(t){this.state.errors.push(t)}},this.afterJobRun=function(){this.state.hasRun=!0,this.state.handle=Dt(this.run,this.state.duration)},this.run=E.compose(E.bind(this.afterJobRun,this),E.bind(this.doJob,this),E.bind(this.shouldJobRun,this))}Yv.prototype.start=function(e){this.state.isStopped&&(this.state.isStopped=!1,this.state.options.skipFirstRun=e,this.run())},Yv.prototype.stop=function(){clearTimeout(this.state.handle),this.state.isStopped=!0,this.state.hasRun=!1};var Xv=xr.urlFor;function Qv(e,t,n){var i={search:["AllowOnlyKeys","ExcludeKeys","AddTo","Replace","Clear"],hash:["Replace","Clear"],pathname:["Replace"],hostname:["Replace"],href:["Replace","ForceSecure"],protocol:["ForceSecure"]};if(E.isObject(e)&&(t=e.action,n=e.data,e=e.attr),!i[e])throw new Error("Invalid URL attribute type: "+e);if(!E.contains(i[e],t))throw new Error("Invalid transform ("+t+") for attribute ("+e+")");this.attr=e,this.action=t,this.data=n}function ey(e){return e instanceof qn||e instanceof HTMLAnchorElement}Qv.prototype.applyToURL=function(e){return{AllowOnlyKeys(e,t,n){E.isFunction(n)&&(n=n(e[t],e));t=e.href;return new qn(Zr(t,null,n,!1))},ExcludeKeys(e,t,n){E.isFunction(n)&&(n=n(e[t],e));t=e.href;return new qn(Zr(t,null,n,!0))},AddTo(e,t,n){E.isFunction(n)&&(n=n(e[t],e));t=e.href;return new qn(Xv(t,n))},Clear(e,t){return e[t]="",e},Replace(e,t,n){return E.isFunction(n)&&(n=n(e[t],e)),"href"===t?new qn(n):(e[t]=n,e)},ForceSecure(e,t){return"protocol"===t?e.protocol="https":e.href=e.href.replace(/^(.*:\/\/\/)/,"https://"),e}}[this.action](e,this.attr,this.data)},Qv.prototype.toString=function(){return this.attr+" - "+this.action+" - "+JSON.stringify(this.data)},Qv.fromJSON=function(e){return e instanceof Qv?e:new Qv(e.attr,e.action,e.data)};ty=function(t,n,i,r){return[new Qv("pathname","Replace",function(e){e=e.replace(n,t);return e=(e=e.replace(i,t)).replace(r,"")}),new Qv("href","ForceSecure")]},Ni={transforms:[],internalTransforms:[],electronTransforms:[],currentSrcFn:ny=function(){var e=Pr(),t=A.isElectron()?ty(A.electronAppName(),A.electronResourcesPath(),A.electronUserDirectory(),A.electronUserHomeDirectory()):[];return ay([].concat(t),e)}},iy=new Yv(500,function(e){!sv()||ad(document)||od()}),ry=function(e){if("string"==typeof e)return new qn(e);if(ey(e))return e;throw new Error("Invalid type from custom URL source. Must be either an URL or a String of a valid url.")},oy=function(e){return e||window.location},ay=function(e,t){return E.reduce(e,function(e,t){return t.applyToURL(e)},t)};var ty,ny,iy,ry,oy,ay,sy,e={state:Ni,actions:{init(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(t,e){E.each(e,function(e){t.commit("addTransform",Qv.fromJSON(e))})},addInternalTransforms(t,e){E.each(e,function(e){t.commit("addInternalTransform",Qv.fromJSON(e))})},removeInternalTransforms(t,e){E.each(e,function(e){t.commit("removeInternalTransform",Qv.fromJSON(e))})},startPolling(e){iy.start()},stopPolling(e){e.state.currentSrcFn===ny&&iy.stop()}},mutations:{addTransform(e,t){e.transforms.push(t)},addInternalTransform(e,t){e.internalTransforms.push(t)},removeInternalTransform(e,t){t=E.indexOf(e.internalTransforms,t);0<=t&&e.internalTransforms.splice(t,1)},clearTransforms(e){e.transforms=[]},clearInternalTransforms(e){e.internalTransforms=[]},changeUrlSource(e,t){if(t){if("string"==typeof t)var n=new qn(t),n=E.partial(E.identity,n);else if(ey(t))n=E.partial(E.identity,t);else{if("function"!=typeof t)throw new 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.");n=t}e.currentSrcFn=n,iy.start(!sv())}else e.currentSrcFn=ny,iy.stop()}},getters:{url:sy=function(e){try{var t=function(e){return n=e},n=E.reduce([e.currentSrcFn,ry,t,E.partial(ay,e.transforms),ry,t,E.partial(ay,e.internalTransforms),ry],function(e,t){return t(e)},null)}catch(i){C.critical(i),n=oy(n)}return n},href(e){return sy(e).href}}};function dy(e){var t;if("function"==typeof dy[e])return t=E.toArray(arguments).slice(1),dy[e].apply(dy,t)}E.extend(dy,{getHref(){return g.getters["location/href"]()},clearTransforms(){g.commit("location/clearTransforms"),od()},addTransforms(e){g.dispatch("location/addTransforms",e),od()},setUrl(e){g.commit("location/changeUrlSource",e)},useBrowserUrl(){g.commit("location/changeUrlSource"),od()}});function uy(){return f.get("guideSeenTimeoutLength")||1e4}cy=[];var cy,ly={name:"StepTimeoutMonitor",initialize(){this._beforeGuideShow=E.bind(ly.beforeGuideShow,ly),this._stop=E.bind(ly.stop,ly),m.beforeGuideShow.on(this._beforeGuideShow),m.guideSeen.on(this._stop),m.guideNotSeen.on(this._stop)},teardown(){ly.stop(),m.beforeGuideShow.off(this._beforeGuideShow),m.guideSeen.off(this._stop),m.guideNotSeen.off(this._stop)},beforeGuideShow(e){var t=e.data[0],e=e.data[1],n=t.guide;f.get("enableGuideTimeout")&&(e=-1<E.indexOf(["dom","launcher","badge","api"],e),"active"===t.seenState||t.hasBeenControlled()||t.isTimedOut()||(n=n&&n.steps)&&(0!==E.indexOf(n,t)||e)&&ly.start(t))},start(e){var d,t,n=cy[0];n&&n===e.id||(n&&n!==e.id&&(n=cy[1],E.isFunction(n))&&n(),e.shouldStartTimer()&&(d=uy(),n=E.partial(function(e,t){var n,i,r,o,a,s=M(t);s&&(n=s.findStepById(e))&&!s.isShown()&&(a=n.canShowOnPage(Vg())?Cg(n)?"other":"element":"page",i=t,r=e,o=b(),a=a,s=s.language,i=Bg({type:"guideTimeout",guideId:i,stepId:r,visitorId:o,seen_reason:a,language:s,guideSeenTimeoutLength:d}),Wg(i),m.guideTimeout.trigger(i),C.info("Guide "+t+" timed out showing Step "+e),n.timeout()),ly.stop()},e.id,e.guide.id),t=Dt(n,d),cy=[e.id,n,t]))},stop(){var e=cy[2];e&&clearTimeout(e),cy=[]},getGuideSeenTimeoutLength:uy};function py(){console.warn("This functionality is not supported by your subscription.")}function s(e){return So?e:py}var hy="is going away",fy="is gone",gy=E.memoize(function(e,t){e=(e=e||"Function")+" deprecated"+(t=t?" and "+t:"");return C.info(e),e});function my(e,t,n){return function(){return gy("pendo."+t,n),(e||E.noop).apply(null,arguments)}}function vy(e){return e&&1===e.length?e[0]:E.any(e,ft)?y.all(e).then(function(e){return E.any(e)}):void 0}function yy(){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||{},E.each(this.steps,function(e){"mobile-lightbox"===e.type&&(this.attributes.device.desktop=!1,this.attributes.device.mobile=!0),Gu(e,this)},this),this.isActivatedByEvent=function(e){return!!(this.hasLaunchMethod("dom")&&this.attributes&&this.attributes.activation&&E.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=E.first(this.steps);return e&&"whatsnew"===e.type},this.isAnnouncement=function(){return E.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")&&E.any(this.steps,function(e){return e.shouldAutoDisplay()})},this.autoDisplay=function(){if(this.shouldAutoDisplay())return vy(E.map(this.steps,function(e){return e.autoDisplay()}))},this.isRendered=function(){return E.any(this.steps,function(e){return e.isRendered()})},this.isShown=function(){return E.any(this.steps,function(e){return e.isShown()})},this.canShowOnDevice=function(){if(!ru()){var e=ou(),t=this.attributes&&this.attributes.device||{};if(!e&&!1===t.desktop)return!1;if(e&&!0!==t.mobile)return!1}return!0},this.canShow=function(){return this.canShowOnDevice()&&E.any(this.steps,function(e){return e.canShow()})},this.launch=function(e){var t;return this.hasGuideBeenControlled()||(t=this.show(e)),this.isShown()?E.each(this.steps,function(e){e.seenState="active"}):!this.isShown()&&this.isControlGroup()&&E.each(this.steps,function(e){e.seenState="notSeen"}),t},this.show=function(t){return vy(E.map(this.steps,function(e){return e.show(t)}))},this.checkForHiddenGroupSteps=function(){},this.hide=function(t){E.each(this.steps,function(e){e.hide(t)})},this.hasBeenSeen=function(){return E.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=E.get(this,"attributes.resourceCenter"),this.isControlGroup()&&!e?this.hasGuideBeenControlled()||this.steps[0].onControlGuide("control"):(e=E.first(this.steps))&&E.isFunction(e.canShowOnPage)&&e.canShowOnPage(Vg())&&yh(this)):Sh(this)},this.findStepById=function(t){return E.find(this.steps,function(e){return e.id===t})},this.isPoweredByEnabled=function(){return!!E.find(this.steps,function(e){return e.isPoweredByEnabled()})},this.searchFor=function(t){var e,n,i=null;return st(this.name,t,!0)?i="name":(e=!(n=[]),(e=0<(n=this.attributes&&this.attributes.launcher&&this.attributes.launcher.keywords?this.attributes.launcher.keywords:n).length?E.find(n,function(e){return st(e.text,t,!0)}):e)?i="tag":(n=E.map(this.steps,function(e){return e.searchFor(t)}),0<E.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&&!E.isFunction(t.steps[0].fetchContent)||(e=t.steps[0],!t.hasLaunchMethod("launcher")&&!t.isWhatsNew())||!e.canShowOnPage(Vg())||!t.canShowOnDevice()||!Cg(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(Vg())||!this.canShowOnDevice()||!Cg(e)||this.outsideTimebox())};var e,n="PENDO_HELPER_STEP";return this.getPositionOfStep=function(e){var t=E.reject(this.steps,function(e){return st(e.content,n)});return E.indexOf(t,e)+1},this.getTotalSteps=function(){return E.reject(this.steps,function(e){return st(e.content,n)}).length},this.getSeenSteps=function(){return E.size(E.filter(this.steps,function(e){return e.hasBeenSeen()}))},this.isComplete=function(){var t=["advanced","dismissed"];return E.all(this.steps,function(e){return E.contains(t,e.seenState)})},this.isInProgress=function(){var t=["active","advanced","dismissed"];return!this.isComplete()&&E.any(this.steps,function(e){return E.contains(t,e.seenState)})},this.isNotStarted=function(){return!this.isInProgress()&&!this.isComplete()},this.fetchContent=function(){return y.all(E.map(this.steps,function(e){if(E.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 E.any(this.steps,function(e){return e.isSnoozed()})},this.hasGuideBeenControlled=function(){return E.any(this.steps,function(e){return e.hasBeenControlled()})},this.isControlGroup=function(){return this.control},this.shouldShowSnoozedGuide=function(){var t=!1;return!this.outsideTimebox()&&E.any(this.steps,function(e){return!(t="dismissed"===e.seenState?!0:t)&&"snoozed"===e.seenState&&e.snoozeEndTime&&(new Date).getTime()>e.snoozeEndTime})},this.shouldRepeatGuide=function(){var t;return!(!this.redisplay||this.outsideTimebox()||this.isGuideSnoozed()||this.hasReachedMaxDismissals()||(t=0,E.forEach(this.steps,function(e){t=Math.max(t,e.lastSeenAt||0)}),!t))&&v()-t>=this.redisplay.interval},this.isExpired=function(){return!!this.expiresAfter&&v()>this.expiresAfter},this.isBeforeStartTime=()=>!!this.showsAfter&&v()<this.showsAfter,this.outsideTimebox=()=>this.isExpired()||this.isBeforeStartTime(),this.calculateDismissCountFromSteps=function(){var t=0;return E.forEach(this.steps,function(e){e.dismissCount&&(t+=e.dismissCount)}),t},this.hasReachedMaxDismissals=function(){return this.redisplay&&0!==this.redisplay.maxDismissals&&this.calculateDismissCountFromSteps()>=this.redisplay.maxDismissals},this}function by(){var e=this;return e.attributes&&"group"==e.attributes.type&&(e.checkForHiddenGroupSteps=function(){E.each(e.steps,function(e){e.isShown()||e.autoDisplay()})}),e}var wy=function(e){return e&&e.attributes&&!!e.attributes.isOnboarding};function Sy(){var r,o=!1;return(this.isMultiStep||this.isModule||this.isTopLevel)&&(E.each(this.steps,function(e){e.after("render",function(){E.each(e.elements,function(e){k(e).addClass("_pendo-guide-walkthrough_")})})}),r=null,this.sections=E.reduce(this.steps,function(e,t){var n,i;return i=t,!(n=r)||(n=E.last(n)).attributes.isRequired!=i.attributes.isRequired&&n.attributes.isRequired?(e.push(r),r=[t]):r.push(t),e},[]),this.sections=E.compact(this.sections.concat([r])),this.findSectionForStep=function(t){return E.find(this.sections,function(e){return E.contains(e,t)})},this.getSubSection=function(e,t){t=E.indexOf(e,t);return 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(t){var e=null;if(this.isGuideSnoozed())return null;t=t||{};for(var n,i,r=0;r<this.steps.length;r++)if(this.steps[r].id===t.guideStepId){if("dismissed"===t.state)break;if("active"===t.state||"snoozed"===t.state){e=this.steps[r];break}if("advanced"===t.state&&t.destinationStepId){e=E.find(this.steps,function(e){return e.id===t.destinationStepId});break}if(r+1<this.steps.length){e=this.steps[r+1];break}}return e?(n=(new Date).getTime(),(i=t.time)&&432e5<n-i&&!wy(this)?(o||(C.info("Multi-step continuation has expired",{contexts:["guides","info"]}),o=!0),null):e):null},this.shouldAutoDisplay=function(){return this.hasLaunchMethod("auto")&&(this.shouldShowSnoozedGuide()||this.shouldRepeatGuide()||E.all(this.steps,function(e){return e.shouldAutoDisplay()}))},this.autoDisplay=function(){var e,t,n;if(this.shouldAutoDisplay())return e=this.shouldRepeatGuide(),t=E.first(this.steps),n=this.nextStep(Fp())||t,this.shouldShowSnoozedGuide()||e?n.show(e?"repeatGuide":"auto"):t.autoDisplay()},this.launch=function(e){return E.first(this.steps).show(e)},this.show=function(e){var t=Fp(),n=E.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=E.last(this.steps);return!!e&&E.contains(["advanced","dismissed"],e.seenState)},this.activeStep=function(){var e=[].concat(this.steps).reverse();return E.findWhere(e,{seenState:"active"})}),this}function Iy(){var a=this;function t(r){var o=[];return function(e){try{return e.apply(a,E.toArray(arguments).slice(1))}catch(i){var t,n="ERROR in guide "+r+' (ID="'+a.id+'")';throw o.push(v()),5<=o.length&&(t=0<(t=E.last(o)-E.first(o))?(o.length-1)/(t/6e4):Infinity,Iy.MAX_ERRORS_PER_MINUTE<=t&&(n="Exceeded error rate limit, dropping guide.\n"+n,Kd.addGuide(a),m.trigger("renderFail",a)),o.shift()),C.critical(n,{error:i}),i}}}return E.each(["canShow","placeBadge","show"],function(e){a[e]=E.wrap(a[e],t(e))}),a}function _y(){return E.isFunction(this.isAnnouncement)&&this.isAnnouncement()||(this.shouldBeAddedToLauncher=E.wrap(this.shouldBeAddedToLauncher,function(e){return g.getters["frames/hasFrames"]()?!(!g.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!g.getters["frames/isGuideInDifferentFrame"]()(this)&&g.getters["frames/shouldBeAddedToLauncher"]()(this):e.apply(this,arguments)}),this.shouldBeAddedToResourceCenter=E.wrap(this.shouldBeAddedToResourceCenter,function(e){return g.getters["frames/hasFrames"]()?!(!g.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!g.getters["frames/isGuideInDifferentFrame"]()(this)&&g.getters["frames/shouldBeAddedToResourceCenter"]()(this):e.apply(this,arguments)})),this}function Ey(e){var t=this;return"whatsnew"===t.type||E.isFunction(e.isAnnouncement)&&e.isAnnouncement()||(t.isShown=E.wrap(t.isShown,function(e){return e.apply(this,arguments)||g.getters["frames/isShownInAnotherFrame"]()(t)})),t}function Cy(o){var a,t,i,s,r,n,d,u=this;return u.pollIds&&u.pollIds.length&&(a="_pendo-poll-selected_",t=E.indexBy(o.polls,"id"),i=E.map(u.pollIds,function(e){return t[e]}),r=function(e,t){if(e&&t!==undefined)return e.numericResponses?parseInt(t,10):t},n=function(){var e=o.id,t=u.id,n=v();Dg(e,t,b(),u.seenReason,o.language),og(e,t,"advanced",n),Lp({guideId:e,guideStepId:t,time:n,state:"advanced"})},d=function(){var e=k("._pendo-poll_"),t=k("._pendo-poll-message_");t.length?(e.addClass("_pendo-poll-submitted_"),t.css("margin-top:-"+t.height()/2+"px"),n()):u.advance()},u.after("render",function(){var n=k("._pendo-poll_")[0],e=k("._pendo-poll-submit_",n)[0];e?u.attachEvent(e,"click",function(e){var t=k("._pendo-poll-question_",n),t=E.map(t,function(e,t){e=k("textarea,input:text,select,input:radio:checked",e);if(e&&e.length&&e[0].value)return{pollId:(t=i[t]).id,value:r(t,e[0].value)}});u.response(E.compact(t)),d()}):u.attachEvent(n,"click",function(e){var t,e=k(Cr(e)).closest("._pendo-poll-question_ :button,._pendo-poll-question_ :radio");e.length&&(t=i[0],e=r(t,e.attr("data-pendo-poll-value")||e.attr("value")),u.response([{pollId:t.id,value:e}]),d())})}),u.after("render",function(){var i=k("._pendo-poll_ ._pendo-poll-npsrating_")[0],r=k("._pendo-poll_ ._pendo-poll-submit_"),o="_pendo-poll-npsrating-selected_";i&&(r.css({display:"none"}),u.attachEvent(i,"click",function(e){var t=k(":radio:checked",i)[0],n=k("._pendo-poll_");k("label",i).removeClass(a),n.removeClass(o),t&&(k('label[for="'+t.id+'"]').addClass(a),n.addClass(o),r.css({display:""})),E.isFunction(u.resize)&&u.resize()}))}),u.after("show",function(){s=(new Date).getTime()}),u.response=function(e,r){e&&e.length&&(Tm(),E.each(e,function(e,t){var n=function(t,e){if(e&&e.polls&&e.polls.length)return E.find(e.polls,function(e){return e.id===t})}(e.pollId,o),i=Bg("pollResponse",u.guideId,u.id,b(),undefined,o.language);E.extend(i.props,{poll_id:e.pollId,poll_response:e.value,duration:(new Date).getTime()-s},r),n&&n.attributes&&n.attributes.type&&E.extend(i.props,{poll_type:n.attributes.type}),wm.push(i)}),wm.flush())}),u}Iy.MAX_ERRORS_PER_MINUTE=30;var Ty={show:function(t,n){if(ru()&&E.isFunction(t._show))return t._show(n),t.isShown();var e=t.getGuide();if("whatsnew"===t.type)return xy(t,n);if(!g.getters["frames/hasFrames"]()||g.getters["frames/isGuideInThisFrame"]()(e)){e=function(e,t){if(e.getGuide().isModule){e=P.getResourceCenter();if(e)return xy(e.steps[0],t)}}(t,n);if(ft(e))return e.then(function(){return xy(t,n)}).then(function(e){return!!e||ky(t,n)});e=xy(t,n);if(ft(e))return e.then(function(e){return!!e||ky(t,n)});if(e)return!0}return ky(t,n)},showLocal:xy};function xy(e,t){return Hu.hasContent(e)&&Fu.valid(e)?(e._show(t),e.isShown()):!(Hu.hasContent(e)&&Fu.invalid(e)||!e.getGuide().canShowOnDevice()||!e.canShowOnPage(Vg()))&&(e.lock(),Hu.fetchContent(e).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&Fu.validate(e.getGuide())}).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&(e.unlock(),e._show(t),e.isShown())}))}function ky(t,e){var n=t.getGuide();return!(!g.getters["frames/hasFrames"]()||!g.getters["frames/isGuideInDifferentFrame"]()(n))&&(t.lock(),g.dispatch("frames/showGuideStep",{guideId:t.guideId,stepId:t.id,reason:e}).then(function(e){return t.unlock(),e.isShown},function(){return t.unlock(),!1}).then(function(e){return e&&(clearInterval(t.timeoutTimer),delete t.timeoutTimer),e}))}function Ay(d){var e=!1,t=!1;return this.guide=d,this.elements=[],this.handlers=[],this.attributes=this.attributes||{},(this.domUrl||this.domJson)&&(this.eventRouter=new Wm),this.getGuide=function(){return this.guide},this.getContent=function(){var e=this.getGuide(),t=e&&e.steps||[],n=E.indexOf(t,this),i=xl();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:nt(i),template:r};return this.template||(this.template=E.template(this.content||"")),ju(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(a){return this.content}},this.isLocked=function(){return e},this.lock=function(){e=!0},this.unlock=function(){e=!1},this.isTimedOut=function(){return t},this.timeout=function(){t=!0},this.isRendered=function(){return this.elements&&0<this.elements.length},this.isShown=function(){return this.isRendered()||this.isLocked()},this.canShow=function(){return!E.get(this,"guide.attributes.isAnnouncement")&&!!d.canShowOnDevice()&&!this.isShown()&&!E.get(this,"stepIneligibleForApp")&&this.canShowOnPage(Vg())&&Cg(this)},this.canShowOnPage=function(e){e=Jg(this.regexUrlRule,e);return ph()&&m.stepEligibility.trigger({stepId:this.id,guideId:this.guideId,eligible:e,reason:"page_match"}),e},this.shouldAutoDisplay=function(){return this.shouldRepeat()||!this.hasBeenControlled()&&!this.isSnoozed()&&!E.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 e,t;return!(!(I.designer||ru()||Mh())&&(e=Vg(),t={guideId:this.guideId,stepId:this.id},this.regexUrlRule&&!Jg(this.regexUrlRule,e)?(Kd.addGuide(d),t.error=new Error('attempted display on page "'+e+'"'),C.critical("pendo.io page rule exception",t),1):g.getters["healthCheck/isMissingPageRule"]()(this)?(Kd.addGuide(d),t.error=new Error('missing regexUrlRule"'),C.critical("pendo.io page rule exception",t),1):this.pageId&&!this.regexUrlRule&&(Kd.addGuide(d),t.error=new Error("missing regexUrlRule for page "+this.pageId+'"'),C.critical("pendo.io page rule exception",t),1)))},this.render=function(){var e=this;if(this._preRenderHealthCheck()){if(e.domJson)return d.skipResourceCenterHomeView&&d.moduleIdToReplaceHomeViewWith&&d.hasEligibleNativeIntegrationModule?(t=E.find(Wd(),function(e){return e.id===d.moduleIdToReplaceHomeViewWith}),n=E.get(t,"attributes.resourceCenter.integrationProvider"),P.renderNativeIntegration(n,t)):d.continueToNativeModule?P.handleNativeIntegrationContinuation(d):(E.get(d,"attributes.resourceCenter")&&th(P.getResourceCenter(),nh),d.isModule?D.renderResourceCenterModule(d,!1):(n=D.renderGuideFromJSON(e.domJson,e),E.get(d,"attributes.resourceCenter")&&(t=d.activeModule?d.activeModule.activeStep().domJson.props.id:e.containerId,t=e.guideElement.find("#"+t),P.adjustResourceCenterWidth(t)),n));var t=e.attributes.width,n=e.attributes.height,i=I.TOOLTIP_ARROW_SIZE,r="_pendo-group-id-"+d.id+"_",r=k(document.createElement("div")).attr("id",Ag(e)).addClass(Xf+" "+r),o=k(document.createElement("div")).addClass("_pendo-guide-content_").html(e.getContent()),a=k(document.createElement("div")).addClass("_pendo-guide-container_"),s=k(document.createElement("div")).addClass("_pendo-backdrop_");r.width(t),r.height(n),a.css({left:i,top:i}),e.isEditable&&o.attr("contenteditable","true"),o.appendTo(a),a.appendTo(r),d&&E.isFunction(d.isOnboarding)&&d.isOnboarding()&&r.addClass("_pendo-onboarding_"),e.overlayDiv=s,e.guideElement=r}},this.teardown=function(){C.info("guide step teardown",{contexts:["guide","render"]}),E.each(this.handlers,function(e){Dd(e.element,e.type,e.fn,!0)}),this.hasBeenScrolledTo=!1,this.handlers.length=0,E.has(this.attributes,"imgCount")&&(this.attributes.imgCount=0),this.hiddenElements&&(E.each(this.hiddenElements,e=>{try{e&&"function"==typeof e.removeAttribute&&e.removeAttribute("aria-hidden")}catch(t){C.error("unable to remove aria-hidden from element",{error:t})}}),this.hiddenElements.length=0,this.hiddenElements=null),vl(this.id)},this.show=function(e){var t;if(!E.contains(["auto","continue"],e)||!g.getters["healthCheck/isRedisplay"]()(this))return(t=Ty.show(this,e))&&t["catch"]&&t["catch"](E.noop),t;g.dispatch("healthCheck/fixSeenStateAndLogError",{step:this,reason:e})},this.redraw=function(){var e,t,n,i,r,o=this;o.guideElement&&!I.designer&&(t=(e=E.get(d,"attributes.resourceCenter"))&&P.isFullyCustom(d),n=d.activeModule?d.activeModule.activeStep().domJson.props.id:o.containerId,i=o.guideElement.find("#"+n),r=d.activeModule&&"AnnouncementsModule"===E.get(d.activeModule,"attributes.resourceCenter.moduleId"),m.beforeUpdate.trigger(o),t||r||(D.recalculateGuideWidth(n,o.guideElement),D.adjustGuideContentWidth(n,o.guideElement)),e?(P.adjustResourceCenterWidth(i),r&&d.activeModule.guidesInModule?E.forEach(d.activeModule.guidesInModule,function(e){var t;!E.isUndefined(e.steps[0].attributes.imgCount)&&0!==E.get(e.steps[0],"attributes.imgCount")||(t=e.steps[0].id,t=k(i).find("#pendo-g-"+t)[0]?t:e.id,D.adjustGuideContentWidth("pendo-g-"+t,o.guideElement),D.flexAllThings("pendo-g-"+t,o))}):D.flexAllThings("pendo-resource-center-container")):D.flexAllThings(n,o),t||D.recalculateGuideHeight(n,o.guideElement),m.updated.trigger(o))},this._show=function(e){m.beforeGuideShow.trigger(this,e),this.canShow()&&(!ru()&&d.control?this.hasBeenControlled()||this.onControlGuide("control"):m.beforeMount.trigger(this).cancel||(this.render(),this.isShown()&&this.onShown(e)))},this.shouldStartTimer=function(){return d.canShowOnDevice()&&!d.attributes.isAnnouncement&&!_g(this)},this.getStepPollTypes=function(n,e){var i;if(e.pollIds&&e.pollIds.length)return i=[],E.forEach(e.pollIds,function(t){var e=E.find(n.polls,function(e){return e.id===t});e&&e.attributes&&e.attributes.type&&i.push(e.attributes.type)}),i},this.onControlGuide=function(e){var t;ru()||(this.seenReason=e,tg(v()),t=this.getStepPollTypes(d,this),this.hasBeenControlled())||(Pg(this.guideId,this.id,b(),e,d.language,t),E.each(d.steps,function(e){e.seenState="notSeen"}))},this.onShown=function(r,e=!0){var t,n,i=this;i.overrideElement&&(k.addClass(i.overrideElement,"triggered"),i.overrideElement.checkAriaExpanded)&&i.overrideElement.checkAriaExpanded(),ru()||(i.seenReason=r,i.seenState="active",tg(v()),t={last_updated_at:i.lastUpdatedAt},(n=this.getStepPollTypes(d,i))&&(t.step_poll_types=n),e&&Fg(i.guideId,i.id,b(),r,d.language,t),g.dispatch("guideState/updateLastGuideStepSeen",{guideId:d.id,guideStepId:i.id,time:eg,state:i.seenState,seenReason:r,visitorId:b()}),E.each(d.steps,function(e){var t,n,i;"snoozed"===e.seenState&&(e.snoozeEndTime=0,t=d.id,e=e.id,n=b(),i=d.language,t=Bg({type:"guideSnoozeCanceled",guideId:t,stepId:e,visitorId:n,seen_reason:r,language:i}),Wg(t,null,!0),m.guideSnoozeCancelled.trigger(t))}),Vu.runCustomScripts(i,d)),g.dispatch("frames/guideStepShownInFrame",{guideId:d.id,stepId:i.id,isShown:i.isShown()}),i.guideElement&&i.guideElement[0]&&i.attachEvent(i.guideElement[0],"focusin",function(e){"TEXTAREA"!==e.target.tagName&&"INPUT"!==e.target.tagName||(I.ignoreResize=!0,Dt(function(){I.ignoreResize=!1},1e3))})},this.hide=function(e){var t=this;t.unlock(),m.beforeUnmount.trigger(t),t.teardown(),E.each(t.elements,function(e){Wo(e)}),m.unmounted.trigger(t),t.attributes&&e&&e.stayHidden&&(t.attributes.stayHidden=e.stayHidden),t.elements.length=0,t.element=null,t.guideElement=null,t.overrideElement&&(k.removeClass(t.overrideElement,"triggered"),t.overrideElement.checkAriaExpanded)&&t.overrideElement.checkAriaExpanded(),g.dispatch("frames/guideStepHiddenInFrame",{guideId:d.id,stepId:t.id})},this.advance=function(){"advanced"===this.seenState&&!this.isRendered()||wg(this)},this.dismiss=function(){"dismissed"===this.seenState&&!this.isRendered()||vg(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&&d.redisplay&&!d.outsideTimebox()&&!this.isSnoozed()&&v()-this.lastSeenAt>=d.redisplay.interval&&!d.hasReachedMaxDismissals()},this.hasBeenControlled=function(){return d.isControlGroup()&&"notSeen"===this.seenState},this.attachEvent=function(e,t,n){var i={element:e,type:t,fn:n};l(e,t,n,!0),this.handlers.push(i)},this.searchFor=function(e){return!(e.length<3)&&st(this.content,e,!0)},this.hasBeenSeen=function(){return"advanced"==this.seenState||"dismissed"==this.seenState},this.reposition=function(){},this.checkPlacement=function(){"tooltip"===this.getType()&&xc.placeBBTooltip(this),this.attributes.blockOutUI&&this.attributes.blockOutUI.enabled&&bc(this)},this.getType=function(){return this.domJson?E.get(this,"attributes.calculatedType"):this.type},this}function Oy(){return this.after("render",function(){var e,t;F&&F.contentWindow&&F.style&&(e=E.first(k('#pendo-resource-center-container, [id^="pendo-g-"]')))&&(e=O(e))&&(t={mutation:"preview/setIsPreviewBarTop",payload:{isPreviewBarTop:!1}},"0px"===e.top?(F.style.top="auto",F.style.bottom="0px",F.contentWindow.postMessage(t,location.origin)):"0px"!==e.bottom&&F.style.top||(F.style.top="0px",F.style.bottom="auto",t.payload.isPreviewBarTop=!0,F.contentWindow.postMessage(t,location.origin)))}),this}Ay.isGuideStep=function(e){return!!e&&E.isFunction(e.render)};const Ry={state:{errorCount:0,errors:{}},actions:{write(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(r){}e=`[${t}]`;t.level===gt.Critical?(i=window.pendo_options||{},Fv(e),!1!==I.logStackTraces&&!1!==i.logStackTraces&&n.stack?Co(e+`
|
|
9
|
-
`+n.stack):Eo(e)):t.level===gt.Error?Fv(e):t.level===gt.Warn&&(i=[e],Mv("warn"))&&console.warn.apply(console,i)}}},update(e,t){t&&(e.getters.hasLogged()(t)||e.commit("addError",t),e.commit("incrementError",t))}},mutations:{addError(e,t){var{message:n,level:i}=t,r=t.hashCode();e.errors[r]={count:0,stack:t.error.stack,message:n,level:i,hash:r}},incrementError(e,t){e.errors[t.hashCode()].count++,e.errorCount++}},getters:{hasLogged(t){return function(e){return!!t.errors[e.hashCode()]}}}},My=h.getSession(),Ny="pendo_cd";class Ly{constructor(){this.name="CloneDetection"}initialize(){if(E.isFunction(window.BroadcastChannel))return h.registry.addSession(Ny),this.tabId=sn.getTabId(),this.id=at(16),this.channel=new BroadcastChannel("pendo-clone-detection-"+I.apiKey),this.channel.addEventListener("message",E.bind(this.onmessage,this)),this.detectClonedSession(this.id),E.bind(this.teardown,this)}teardown(){this.stopCloneDetectionTimer(),this.channel.removeEventListener("message",this.onmessage),this.channel.close(),this.channel=null}onmessage(e){var t=E.get(e,"data.type"),n=E.get(e,"data.tabId"),i=E.get(e,"data.id");if(n===this.tabId)switch(t){case"pendo-clone-test":i!==this.id&&this.isClonedSession(i)&&this.sendMessage("pendo-change-tab-id",{tabId:n,id:i});break;case"pendo-change-tab-id":i===this.id&&this.clearClonedStorage()}}detectClonedSession(e){var t=My.getItem(Ny)||"";-1===t.indexOf(e)&&(t+="-"+e),My.setItem(Ny,t),this.sendMessage("pendo-clone-test",{tabId:this.tabId,id:this.id}),this.startCloneDetectionTimer()}isClonedSession(e){return this.startCloneDetectionTimer(),-1===(My.getItem(Ny)||"").indexOf(e)}clearCloneDetectionValue(){My.removeItem(Ny),this.cloneDetectionTimer=null}startCloneDetectionTimer(){this.stopCloneDetectionTimer(),this.cloneDetectionTimer=Dt(E.bind(this.clearCloneDetectionValue,this),1e4)}stopCloneDetectionTimer(){this.cloneDetectionTimer&&(clearTimeout(this.cloneDetectionTimer),this.cloneDetectionTimer=null)}clearClonedStorage(){My.clearPendo(),sn.setParentTabId(this.tabId),this.tabId=sn.newTabId(),m.trigger("tabIdChanged:self"),g.dispatch("frames/setTabId",this.tabId)}sendMessage(e,t){this.channel.postMessage(Object.assign({type:e},t))}}let Py=new Ly;function Fy(e){g.dispatch("frames/setReady",{isReady:!0})}var $y=["unknown","hidden","visible"];function Dy(e){return"visible"===e.visibility||"unknown"===e.visibility}Uy={};var Uy,t={actions:{init(e){var t,n,i=e.state;i.initialized||(h.registry.addSession(Xt),h.registry.addSession(Qt),t=sn.addTracerIds({}),n=we(),e.commit("setFrameId",t.frameId),e.commit("setTabId",t.tabId),e.commit("setAgentInstallType",n),e.commit("setLeadershipMode",n),m.ready.on(Fy),m.guideSeen.on(function(e){e=e.data[0];e&&e.frameId===i.frameId&&$.postMessage({action:"frames/receiveGuideSeen",frameId:i.frameId,guideSeen:e})}),Py.initialize(),e.commit("setInitialized",!0))},changeGuideList(e,t){e=e.state,t=jy(t);$.postMessage({action:"frames/receiveGuideList",frameId:e.frameId,guides:t,autoOrdering:I.autoOrdering||[]})},receiveGuideList(e,t){e.commit("setGuideList",t),t.frameId===e.state.frameId&&e.commit("setGuidesLoaded"),By(e.state)},join(e){var t,n,i,r;e.state.disabled||(Jp(),t=e.state,n=window.top==window,i=t.frames[t.frameId],e.commit("removeFrame",t.frameId),e.commit("setGuideList",{frameId:t.frameId,guides:jy(Xd())}),(r=[].concat(f.get("leaderKey"))).length||t.agentInstallType!==ye||(r=[I.apiKey]),e.dispatch("receiveFrame",{frame:E.extend({agentInstallType:t.agentInstallType,id:t.frameId,joinedAt:v(),isTop:n,visibility:n?"visible":"unknown",apiKey:I.apiKey,leaderKey:r},i)}))},receiveFrame(e,t){var n,i=e.state;if(I.designerv2.launched&&(n=Object.assign({},tf.hostConfig,{selectionOnly:!0}),$.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:E.toArray(E.get(t,"frame.guides",[]))}),t.frame.isTop){for(var r=e.getters.leaderKeyPreference(),o=E.filter(i.frames,e=>e.isTop);r.length;){var a=r.shift(),s=E.filter(o,e=>e.apiKey===a);if(s.length){o=s;break}}e.commit("setTopId",o[0].id)}e.commit("setLeadershipMode",t.frame.agentInstallType),t[Eh]&&e.dispatch("receiveStartPreview",t),$.postMessage({action:"frames/receiveFrame",frame:i.frames[i.frameId],"pendo-preview":e.rootState.preview.preview}),e.dispatch("waitThenElectLeader")}},leave(t){var e=t.state;$.postMessage({action:"frames/removeFrame",frameId:e.frameId}),E.each(e.frames,function(e){t.commit("removeFrame",e.id)}),$.close()},removeFrame(e,n){e.getters.hasFrame()(n.frameId)&&(e.commit("removeFrame",n.frameId),E.each(Uy,function(e,t){0===t.indexOf(n.frameId+"/")&&(e.reject(),delete Uy[t])}),e.dispatch("electLeader"))},waitThenElectLeader:E.debounce(function(e){e.dispatch("electLeader")},50),electLeader(e){var t=e.state,n=t.frames,i=e.getters.leaderKeyPreference();if(i.length)for(;i.length;){var r=i.shift(),o=E.filter(t.frames,e=>e.apiKey===r);if(o.length){n=o;break}}var a=E.find(n,e=>e.isTop);a?e.dispatch("followLeader",{leaderId:a.id}):(a=E.min(n,"joinedAt"),e.dispatch("followLeader",{leaderId:a.id})),By(e.state),e.getters.isLeader()&&m.childFrameJoined.trigger()},followLeader(e,t){var n=e.state,i=n.leaderId,r=t.leaderId;e.commit("setLeaderId",t.leaderId),i!==r&&m.leaderChanged.trigger({frameId:n.frameId,oldLeaderId:i,newLeaderId:r})},showGuideStep(t,n){var i=E.filter(t.state.frames,function(e){return e.id!==t.state.frameId&&"hidden"!==e.visibility&&e.guides&&e.guides[n.guideId]});return function r(){var e=i.shift();return e?t.dispatch("requestShowGuideStepInFrame",E.extend({frameId:e.id},n)).then(function(e){return e.error?y.reject(e.error):e.isShown?e:r()}):y.resolve({isShown:!1})}()},requestShowGuideStepInFrame(e,t){var n=t.frameId+"/"+at(32),i=y.defer();return Uy[n]=i,$.postMessage(E.extend({action:"frames/showGuideStepInFrame",requestId:n},t)),i.promise},showGuideStepInFrame(t,n){var e;function i(e){t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:e})}t.state.frameId===n.frameId&&((e=(e=M(n.guideId))&&e.findStepById(n.stepId))?ft(e=Ty.showLocal(e,n.reason))?e.then(i)["catch"](E.noop):i(e):t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:!1}))},guideStepShownInFrame(e,t){e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:t.isShown}),$.postMessage(E.extend({action:"frames/receiveGuideStepShownInFrame",frameId:e.state.frameId},t))},receiveGuideStepShownInFrame(e,t){var n=Uy[t.requestId];n&&(n.resolve(t),delete Uy[t.requestId]),e.getters.isShownInFrame()(t.frameId,{id:t.stepId})!==t.isShown&&e.commit("setStepShown",{frameId:t.frameId,stepId:t.stepId,shown:t.isShown})},hideGuides(e,t){t=E.isArray(t)?t:[],$.postMessage({action:"frames/receiveHideGuides",frameId:e.state.frameId,guideIds:t}),e.commit("hideGuides")},receiveHideGuides(e,t){e.state.frameId!==t.frameId&&(t.guideIds.length?E.each(E.compact(E.map(t.guideIds,M)),function(e){e.hide()}):sg(),e.commit("hideGuides"))},guideStepHiddenInFrame(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}),$.postMessage(E.extend({action:"frames/receiveGuideStepHiddenInFrame",frameId:e.state.frameId},t)),n&&e.dispatch("fixDoubleDisplay",t)},receiveGuideStepHiddenInFrame(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(n,i){E.each(n.state.frames,function(e,t){t!==n.state.frameId&&n.getters.isShownInFrame()(t,{id:i.stepId})&&$.postMessage(E.extend({action:"frames/receiveHideGuideInFrame",frameId:t,guideId:i.guideId,stepId:i.stepId},i))})},receiveHideGuideInFrame(e,t){e.state.frameId===t.frameId&&(t=(e=M(t.guideId))&&e.findStepById(t.stepId))&&t.hide()},changeLastGuideStepSeen(e,t){$.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(e,t){var n;t.frameId!==e.state.frameId&&(n=e.state.frames[t.frameId],(n=E.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=M((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(e,t){$.postMessage(E.extend({action:"frames/receiveThrottlingState",frameId:e.state.frameId},t))},receiveThrottlingState(e,t){t.frameId!==e.state.frameId&&E.each(Ug,function(e){t[e]&&jg(t[e],e)})},startPreview(e){$.postMessage({action:"frames/receiveStartPreview","pendo-preview":e.rootState.preview.preview})},restartPreview(e){$.postMessage({action:"frames/receiveRestartPreview","pendo-preview":e.rootState.preview.preview})},stopPreview(e,t){$.postMessage(E.extend({action:"frames/receiveStopPreview"},t))},receiveStartPreview(e,t){e.dispatch("preview/start",t[Eh],{root:!0}),xh(window),jm()},receiveRestartPreview(e){var t=Oh(R,Fp());e.dispatch("guideState/updateLastGuideStepSeen",t,{root:!0})},receiveStopPreview(e,t){Uh({preventWindowClose:!!t.preventWindowClose})},checkFrameVisibility(e,t){if(!e.getters.isTop()&&!e.state.disableFrameVisibilityCheck)try{var n="unknown",i=(t=null==t?window:t).frameElement;i?(n=ca(i)?"visible":"hidden",e.dispatch("updateFrameVisibility",{visibility:n})):e.commit("disableFrameVisibilityCheck")}catch(r){e.commit("disableFrameVisibilityCheck")}},updateFrameVisibility(e,t){var n;!E.find($y,function(e){return e===t.visibility})||(n=t.visibility,e.getters.frameVisibility()===n)||(e.commit("setFrameVisibility",{frameId:e.state.frameId,visibility:n}),$.postMessage({action:"frames/receiveFrameVisibility",frameId:e.state.frameId,visibility:n}))},receiveFrameVisibility(e,t){e.commit("setFrameVisibility",t)},addSelectionModeToFrames(e,t){t=t.options;tf.launchInAppDesigner(t)},syncOptions(e,t){t.options&&$.postMessage({action:"frames/receiveOptions",frameId:e.state.frameId,options:t.options})},receiveOptions(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&t.options&&Il(t.options)},syncIdentity(e,t){var n;(t.visitorId||t.accountId)&&({visitorId:t,accountId:n}=t,$.postMessage({action:"frames/receiveIdentity",frameId:e.state.frameId,visitorId:t,accountId:n}))},receiveIdentity(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&(t.visitorId||t.accountId)&&Fn(t.visitorId,t.accountId)},setReady(e,t){e.commit("setReady",t.isReady)},receiveGuideSeen(e,t){t.frameId!==e.state.frameId&&m.guideSeen.trigger(t.guideSeen)},checkGuideEligibility(e,t){var{guideId:t,stepId:n,currentStepIndex:i,sourceFrame:r,promiseId:o}=t,t=M(t),n=t&&t.findStepById(n),a={};return t&&n?(0===i&&(i=cu(t))&&((i=E.first(yr(i)))?ca(i)||(a.ACTIVATION="notVisible"):a.ACTIVATION="notFound"),E.isFunction(n.canShowOnPage)&&!n.canShowOnPage(Vg())&&(a.PAGE="mismatch"),n.elementPathRule&&((i=E.first(yr(n.elementPathRule)))?ca(i)?n.elementContainsRulesList&&!xg(i,n.elementContainsRulesList)&&(a.ELEMENT="containsRuleMismatch"):a.ELEMENT="notVisible":a.ELEMENT="notFound"),n.triggerElementPathRule&&((i=E.first(yr(n.triggerElementPathRule)))?ca(i)||(a.TRIGGER_ELEMENT="notVisible"):a.TRIGGER_ELEMENT="notFound"),E.get(t,"attributes.embedConfig")&&(n=E.get(t,"attributes.embedConfig.selector"),(i=E.first(yr(n)))?ca(i)||(a.EMBED_CONTAINER="notVisible"):a.EMBED_CONTAINER="notFound")):a.GUIDE="notFound",o&&r&&$.postMessage({errors:a,action:"frameEligibilityResponse",targetFrame:r,resolveId:o}),a},setTabId(e,t){e.commit("setTabId",t)}},mutations:{addFrame(e,t){var n=t.id;e.frames[n]=E.extend({},e.frames[n],t)},removeFrame(e,t){delete e.frames[t]},setGuideList(e,t){var n=t.frameId;e.frames[n]=E.extend({},e.frames[n],{guides:E.indexBy(jy(t.guides),"id"),autoOrdering:t.autoOrdering})},setStepShown(e,t){var n=t.frameId,n=e.frames[n]=E.extend({},e.frames[n]);n.shown=E.extend({},n.shown),n.shown[t.stepId]=t.shown},setInitialized(e,t){e.initialized=t},setLeaderId(e,t){e.leaderId=t},setFrameId(e,t){e.frameId=t},setTabId(e,t){e.tabId=t},setTopId(e,t){e.topId=t},setAgentInstallType(e,t){e.agentInstallType=t},setLeadershipMode(e,t){e.leadershipMode!==ye&&(e.leadershipMode=t)},setFrameVisibility(e,t){var n=t.frameId;e.frames[n]=E.extend({},e.frames[n],{visibility:t.visibility})},setReady(e,t){e.isReady=t},disableFrameVisibilityCheck(e){e.disableFrameVisibilityCheck=!0},hideGuides(e){E.each(e.frames,function(n){E.each(n.shown,function(e,t){n.shown[t]=!1})})},setChannelType(e,t){e.channelType=t},setGuidesLoaded(e){e.guidesLoaded=!0},setConnectFailed(e){e.connectFailed=!0},updateLastGuideStepSeen(e,t){t&&E.each(e.frames,function(e){e.guides&&(e=e.guides[t.guideId])&&(e=E.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(e){return e.frames},autoOrdering(e){return E.reduce(e.frames,(e,t)=>(e[t.apiKey]=t.autoOrdering,e),{})},leaderExists(e){return!!e.leaderId},isLeader(e){return e.leaderId===e.frameId},leaderKey(e,t){if(t.leaderExists()){t=e.frames[e.leaderId];if(t)return t.apiKey}},isFollower(e){return!!e.leaderId&&e.leaderId!==e.frameId},isTop(e,t){t=t.window();return e.topId===e.frameId||t==t.top},frameVisibility(e){return(e.frames?e.frames[e.frameId]:{}).visibility||"unknown"},isGuideInThisFrame(n){return function(e){var t=n.frames&&n.frames[n.frameId];return!!(t&&t.guides||{})[e.id]}},isGuideInDifferentFrame(i){return function(n){return E.any(i.frames,function(e,t){return t!==i.frameId&&e.guides&&e.guides[n.id]})}},isReady(e){return e.isReady},isShownInAnotherFrame(i){return function(n){return E.any(i.frames,function(e,t){return t!==i.frameId&&e.shown&&e.shown[n.id]})}},isShownInFrame(n){return function(e,t){e=n.frames&&n.frames[e],e=e&&e.shown||{};return!(!e||!e[t.id])}},hasFrame(t){return function(e){return t.frames&&t.frames[e]}},hasFrames(e){return 1<E.size(e.frames)},shouldBeAddedToLauncher(i,e){return function(n){return e.canShowRCBadge()&&E.any(i.frames,function(e,t){return t!==i.frameId&&!!Dy(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToLauncher})}},shouldBeAddedToResourceCenter(i,e){return function(n){return e.canShowRCBadge()&&E.any(i.frames,function(e,t){return t!==i.frameId&&e.apiKey===I.apiKey&&!!Dy(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToResourceCenter})}},isBroadcastChannel(e){return"BroadcastChannel"===e.channelType},channelType(e){return e.channelType},canShowRCBadge(e,t){var n,i;return t.leaderKey()!==I.apiKey?(n=E.filter(e.frames,function(e){return e.apiKey===I.apiKey}),(i=E.find(n,function(e){return e.isTop}))?e.frameId===i.id:(i=E.min(n,function(e){return e.joinedAt}),e.frameId===i.id)):E.any(e.frames,function(e){return e.isTop})?t.isTop():t.isLeader()},leaderKeyPreference(e){e=E.filter(e.frames,e=>e.leaderKey&&e.leaderKey.length);return 1===E.unique(E.map(e,e=>e.leaderKey.join(","))).length?[].concat(e[0].leaderKey):[]},getMyApiKey(e,t){return t.getMyFrame().apiKey},getMyFrame(e){return e.frames[e.frameId]},window(){return window}},state:{initialized:!1,frameId:null,leaderId:null,tabId:null,agentInstallType:null,leadershipMode:null,topId:null,frames:{},guidesLoaded:!1,channelType:null,ready:!1},requests:Uy};function Gy(e){var t=E.pick(e,"id","name","launchMethod","isMultiStep","steps","control","lastUpdatedAt","language","state","polls","redisplay");return t.attributes=E.pick(e.attributes,"overrideAutoThrottling","priority","isAnnouncement","resourceCenter","device","sharedServiceVersion","embedConfig"),t._shouldBeAddedToLauncher=E.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e._shouldBeAddedToLauncher||!1,t._shouldBeAddedToResourceCenter=E.isFunction(e.shouldBeAddedToResourceCenter)?e.shouldBeAddedToResourceCenter():e._shouldBeAddedToResourceCenter||!1,t.steps=E.map(e.steps,function(e){return E.pick(e,"id","guideId","type","seenReason","seenState","lastSeenAt","lastUpdatedAt","dismissCount","snoozeEndTime","regexUrlRule","pageId","elementPathRule","triggerElementPathRule","elementContainsRulesList")}),t}function jy(e){return E.map(e,Gy)}function By(t){var n=E.indexBy(E.filter(Xd(),function(e){return!e.isFrameProxy}),"id"),e=E.chain(t.frames).filter(function(e){return e.id!==t.frameId}).map(function(e){return E.toArray(E.get(e,"guides",[]))}).flatten(!0).unique("id").filter(function(e){return!n[e.id]}).map(function(e){return E.extend(JSON.parse(JSON.stringify(e)),{isFrameProxy:!0})}).map(Uu).value(),e=E.toArray(n).concat(e).filter(am);E.sortBy(e,sm),Em(e),Vd(e),t.guidesLoaded&&0===E.size(E.get(t,"frames."+t.frameId+".guides",[]))&&Zp()}function zy(e,t){new(ut("MutationObserver"))(t).observe(e,{subtree:!0,attributes:!0,childList:!0,characterData:!0})}const Hy={startObserver:function(r){{var t=r;const n=Element.prototype.attachShadow;Element.prototype.attachShadow=function(e){e=n.call(this,e);return this.shadowRoot&&zy(this.shadowRoot,t),e},Element.prototype.attachShadow.toString=function(){return n.toString()}}if(E.isFunction(document.createNodeIterator)){let t=0,n=[Ko()],i;!function o(e){do{if(!(e=e||document.createNodeIterator(n.pop(),NodeFilter.SHOW_ELEMENT))||!e.nextNode)break;for(;(i=e.nextNode())&&(t++,i&&i.shadowRoot&&(zy(i.shadowRoot,r),n.push(i.shadowRoot),Hy.foundShadowRoots=!0),t%5e3!=0););}while(!i&&(e=null,n.length));i&&Hy.foundShadowRoots&&Dt(()=>{o(e)},50),5e3!==t||Hy.foundShadowRoots||(Hy.stoppedSearchEarly=!0)}()}},foundShadowRoots:!1,stoppedSearchEarly:!1};var Wy,Ti={actions:{documentChanged(e){var t;e.state.updateId?e.commit("setNeedsUpdate"):e.state.scheduledUpdate||(t=e.getters.now()-e.state.updateCompleteTime,t=Math.min(Math.max(0,qp-t),qp),t=Dt(Vy,t),e.commit("setScheduledUpdate",t))},handleScheduledUpdate(e){e.dispatch("stopScheduledUpdate"),Zp()},stopScheduledUpdate(e){e.state.scheduledUpdate&&(clearTimeout(e.state.scheduledUpdate),e.commit("setScheduledUpdate",null))},startObserverIfNeeded(e,t){var n;e.state.useObserver&&((n=e.getters.observer())||(n=new(t||ut("MutationObserver"))(qy),Wy=n),e.state.observing||(n.observe(document.documentElement,{subtree:!0,attributes:!0,childList:!0,characterData:!0}),e.state.observeShadowRoots&&Hy.startObserver(qy),e.commit("setObserving",!0)))},stopObserver(e){var t=e.getters.observer();t&&E.isFunction(t.disconnect)&&t.disconnect(),e.commit("setObserving",!1),e.dispatch("stopScheduledUpdate")}},mutations:{setUseObserver(e){e.useObserver=!0},setObserveShadowRoots(e){e.observeShadowRoots=!0},setObserving(e,t){e.observing=t},setNeedsUpdate(e){e.needsUpdate=!0},setScheduledUpdate(e,t){e.scheduledUpdate=t},startUpdate(e,t){e.needsUpdate=!1,e.updateId=t},completeUpdate(e,t){e.updateId=null,e.updateCompleteTime=t}},getters:{now(){return v()},observer(){return Wy}},state:{useObserver:!1,observeShadowRoots:!1,observing:!1,needsUpdate:!1,scheduledUpdate:null,updateId:null,updateCompleteTime:0,iterationTimeLimit:50}};function qy(){g.dispatch("guideUpdate/documentChanged")}function Vy(){g.dispatch("guideUpdate/handleScheduledUpdate")}Ky=["advanced","dismissed","snoozed"];var Ky,Ni={actions:{init:function(t,e){E.each(e,function(e){E.each(e.steps,function(e){t.commit("updateStepState",e)})})},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){Co(['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]=E.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(n){return function(e){var t=n.steps[e.id];return!!t&&!(e.resetAt>t.updatedAt)&&!(v()>=t.allowedAt)&&E.contains(Ky,t.seenState)&&!E.contains(Ky,e.seenState)}},isMissingPageRule:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(!t.regexUrlRule||e.regexUrlRule)}}},state:{steps:{},exceptions:{}}},Jy={state:{lastFlush:v(),flushInterval:3e5,counters:{ptmGifFailures:0,guideGifFailures:0},timers:{}},actions:{flush(n){E.each(n.state.counters,function(e,t){n.commit("resetCounter",t)}),E.each(n.state.timers,function(e,t){n.commit("resetTimer",t)}),n.commit("setLastFlush",n.getters.now())}},mutations:{setLastFlush(e,t){e.lastFlush=t},incrementCounter(e,t){e.counters[t]!==undefined&&e.counters[t]++},resetCounter(e,t){e.counters[t]!==undefined&&(e.counters[t]=0)},setTimer(e,{name:t,time:n}={}){t&&null!=n&&(e.timers[t]=n)},resetTimer(e,t){delete e.timers[t]}},getters:{shouldFlush(e,t){return t.now()-e.lastFlush>=e.flushInterval},payload(e){var t=E.reduce(e.counters,function(e,t,n){return 0<t&&(e[n]=t),e},{});return E.extend({},t,e.timers)},now(){return v()}}},Zy={state:{visitor:{},account:{},parentAccount:{},date:null,version:null,selfHosted:null},actions:{},mutations:{setMetadata(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(e){e.account={}},reset(e,t){e.visitor={id:t.visitor_id},e.account={},e.parentAccount={},e.date=null,e.version=null,e.selfHosted=null}},getters:{metadata(e){return e},selfHosted(e){return e.selfHosted}}};const Yy=h.getLocal();var Xy="pendo-preview",Qy="current-guide-preview",eb={state:{preview:null,designerPreview:null},actions:{start(e,t){e.commit("setPreview",t),e.dispatch("write")},restart(e,t){e.commit("updatePreview",{state:null}),e.commit("updatePreview",t)},update(e,t){e.commit("updatePreview",{state:t}),e.dispatch("write")},load(e){try{var t=e.getters.storage(),n=JSON.parse(t.getItem(Xy)),i=(n.apiKey===I.apiKey&&e.commit("setPreview",n),t.getItem(Qy));i&&e.commit("setDesignerPreview",JSON.parse(i))}catch(r){}},write(e){try{var t=e.getters.storage();e.state.preview?t.setItem(Xy,JSON.stringify(e.state.preview)):t.removeItem(Xy)}catch(n){}},exit(e){e.commit("setPreview",null),e.dispatch("write")},exitDesignerPreview(e){e.commit("setDesignerPreview",null),e.getters.storage().removeItem(Qy)},launchInAppDesigner(e,t){tf.launchInAppDesigner(t)}},mutations:{updatePreview(e,t){e.preview&&E.extend(e.preview,t)},setPreview(e,t){e.preview=t},setDesignerPreview(e,t){e.designerPreview=t}},getters:{isInPreviewMode(e){return!!e.preview},isInDesignerPreviewMode(e,t){return!!e.designerPreview&&t.isInPreviewMode()},storage(){return Yy}}};const tb=(()=>{const n={isTop:undefined,isLeader:undefined,frameId:null,tabId:null,frames:{},autoOrdering:[],excludedGuides:[],throttling:{},enableEventLogging:!1,eventsCaptured:[],cspErrors:[],installType:null,doNotProcess:!1},a={TOP_DOWN:"top-down",BOTTOM_UP:"bottom-up"},s={debuggingEnabled:{type:a.TOP_DOWN,defaultValue:!1},guideLoopRunning:{type:a.BOTTOM_UP,defaultValue:!1},stepEligibilitySet:{type:a.BOTTOM_UP,defaultValue:{}},identity:{type:a.BOTTOM_UP,defaultValue:{}},location:{type:a.BOTTOM_UP,defaultValue:{}}};var e={init:e=>{e.commit("setFrameId",sn.getFrameId()),e.commit("setTabId",sn.getTabId()),e.commit("setInstallType",we());var t=hu()&&window.top===window;n.isTop,e.commit("setIsTop",t),e.commit("isLeader",hu()),t?(t=lh(),e.commit("debuggingEnabled",!0===t.enabled),t.enableEventLogging&&e.commit("enableEventLogging",!0)):$.postMessage({action:"debugger/join",frameId:e.state.frameId})},join:(n,e)=>{n.state.frameId!==e.frameId&&E.each(s,({type:e},t)=>{e===a.TOP_DOWN&&$.postMessage({action:"debugger/sync",frameId:n.state.frameId,fields:{[t]:n.state[t]}})})},sync:(i,e)=>{if(i.state.frameId!==e.frameId){const{frameId:r,fields:t}=e;E.each(t,(e,t)=>{var n;s[t]&&(n=s[t]["type"],n===a.TOP_DOWN&&i.state.isTop||n===a.BOTTOM_UP&&!i.state.isTop||i.commit("_sync_"+t,{value:e,frameId:r}))})}},enableEventLogging:(e,t)=>{e.commit("enableEventLogging",t)},eventCaptured:(e,t)=>{e.state.isTop?e.commit("eventsCaptured",t):$.postMessage({action:"debugger/receiveEventCaptured",frameId:e.state.frameId,event:t})},receiveEventCaptured:(e,t)=>{e.state.isTop&&e.commit("eventsCaptured",t.event)},clearEventsCaptured:e=>{e.commit("eventsCaptured",[])},onCspError:(e,t)=>{e.state.isTop?e.commit("cspError",t):$.postMessage({action:"debugger/recieveCspError",frameId:e.state.frameId,data:t})},recieveCspError:(e,t)=>{e.state.isTop&&e.commit("cspError",t.data)},checkGuideEligibility(e,t){const{guideId:i,response:n}=t;var t=E.filter(g.state.frames.frames,e=>e.guides&&e.guides[i]);t.length&&(t=E.map(t,n=>{var e=E.map(n.guides[i].steps,(e,t)=>$.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:n.id,stepId:e.id,currentStepIndex:t,guideId:i}));return y.all(e).then(e=>({frameId:n.id,frameVisibility:n.visibility,errors:E.map(e,e=>JSON.parse(e).errors)}))}),y.all(t).then(e=>e).then(e=>n(e))["catch"](e=>n({error:e})))}};const t={},d={setFrameId(e,t){e.frameId=t},setTabId(e,t){e.tabId=t},setIsTop(e,t){e.isTop=t},isLeader(e,t){e.isLeader=t},setInstallType(e,t){e.installType=t},stepEligibilitySet(e,t){var n=t["stepId"];e.stepEligibilitySet[n]=t},guideLoopRunning(e,t){e.guideLoopRunning!==t&&(e.guideLoopRunning=t)},identity(e,t){e.identity=t},location(e,t){e.location=t},debuggingEnabled(e,t){e.debuggingEnabled=t,t=t,e=e.isTop,n.debuggingEnabled!==t&&(t?(u(),c(),m.on("stepEligibility",i),m.on("guideUpdateComplete",p),m.on("guideLoopStopped",h),m.on("eventCaptured",o),m.on("identify",u),m.on("urlChanged",c),e&&(r(),m.on("guidesLoaded",r))):(m.off("stepEligibility",i),m.off("guideUpdateComplete",p),m.off("guideLoopStopped",h),m.off("eventCaptured",o),m.off("identify",u),m.off("urlChanged",c),e&&m.off("guidesLoaded",r)))},excludedGuides(e,t){e.excludedGuides=t},autoOrdering(e,t){e.autoOrdering=t},throttling(e,t){e.throttling=t},eventsCaptured(e,t){E.isArray(t)&&0===t.length?e.eventsCaptured=[]:e.debuggingEnabled&&e.enableEventLogging&&e.eventsCaptured.unshift(t)},enableEventLogging(e,t){e.enableEventLogging=t},cspError(e,t){e.cspErrors.unshift(t),10<e.cspErrors.length&&e.cspErrors.pop()},doNotProcess(e,t){e.doNotProcess=t}};function i(e){e=e.data[0];g.commit("debugger/stepEligibilitySet",e)}function r(e){var t=E.map($p.sortAndFilter(R,I.autoOrdering),e=>e.id);g.commit("debugger/autoOrdering",t||[]),g.commit("debugger/excludedGuides",I.excludedGuides||[]),g.commit("debugger/throttling",I.throttling||{})}function o(e){g.dispatch("debugger/eventCaptured",e.data[0])}function u(e){g.commit("debugger/identity",{visitorId:E.get(e,"data.0.visitor_id")||I.get_visitor_id(),accountId:E.get(e,"data.0.account_id")||I.get_account_id(),apiKey:I.apiKey})}function c(){g.commit("debugger/location",{href:Fr(),browserUrl:window.location.href})}function l(e){g.commit("debugger/guideLoopRunning",e)}const p=E.partial(l,!0),h=E.partial(l,!1);return E.each(s,({type:i,defaultValue:e},r)=>{n[r]=e,t[r]=e=>e[r];let o=d[r]||((e,t)=>{e[r]=t});d[r]=E.wrap(o,(e,t,n)=>{!t.isTop&&i===a.TOP_DOWN||(e(t,n),t.isTop&&i===a.BOTTOM_UP)||$.postMessage({action:"debugger/sync",frameId:t.frameId,fields:{[r]:n}})}),o=d["_sync_"+r]||o,d["_sync_"+r]=(e,{value:t,frameId:n})=>{e.frames[n]||(e.frames[n]={}),e.frames[n][r]||(e.frames[n][r]=s[r].defaultValue),o(e.frames[n],t),e.isTop||i!==a.TOP_DOWN||o(e,t)}}),{state:n,actions:e,getters:t,mutations:d}})();const nb=function(){const i="pendo-loader";let r,o,n;return{name:"IFrameMonitor",initialize:function(e,t){r=e,o=t,function(){o.ConfigReader.get("autoFrameInstall")&&o.Events.ready.on(l);o.ConfigReader.get("frameIdentitySync")&&(o.Events.metadata.on(h),o.Events.identify.on(f),o.Events.childFrameJoined.on(a))}(),n=o.ConfigReader.get("frameIdentityTopDownOnly")},teardown:function(){o.Events.ready.off(l),o.Events.metadata.off(h),o.Events.identify.off(f),o.Events.childFrameJoined.off(a)}};function a(){g()}function s(e){return e.ignoreIframeMonitor||e.pendo&&(e.pendo.initialize||e.pendo.iframeWaiting)||!!e.document.getElementById(i)}function d(e,t){var n;s(e)||((n=o.ConfigReader.getLocalConfig()).apiKey||(n.apiKey=r.apiKey),e.pendo={_q:[["initialize",n]]},(n=e.document.createElement("script")).src=t,n["async"]=!0,n.id=i,(t=e.document.getElementsByTagName("script")[0])&&t.parentNode?t.parentNode.insertBefore(n,t):(e.document.head||e.document.body).appendChild(n))}function u(e,t){e.pendo.iframeWaiting=!1,d(e,t)}function c(e){try{if(s(e))return}catch(n){return}var t=function(){var e=o.ConfigReader.get("selfHostedAgentUrl");if(e)return e;e=r.dom("script");const t=/\/pendo(\.\w+)?\.js$/;return(e=r._.find(e,e=>t.test(e.src)))&&e.src}();t?"complete"===e.document.readyState?d(e,t):(e.pendo={iframeWaiting:!0},e.document.addEventListener("DOMContentLoaded",r._.partial(u,e,t))):r.log("Unable to find agent url to install agent in frames","debug")}function e(){var t=r.dom("iframe").length;for(let e=0;e<t;e++)c(window.frames[e]);Dt(e,250)}function l(){e()}function p(){return!n||n&&o.store.getters["frames/isLeader"]()}function h(e){p()&&(e=null==(e=e.data)?void 0:e[0]).storeChanged&&o.store.dispatch("frames/syncOptions",{options:e.options})}function f(e){var t;g(null==(t=e.data)?void 0:t[0].visitor_id,null==(t=e.data)?void 0:t[0].account_id)}function g(e=b(),t=Gn()){p()&&o.store.dispatch("frames/syncIdentity",{visitorId:e,accountId:t})}}();function ib(e,n){return e.length==n.length&&E.all(e,function(e,t){return e===n[t]})}class rb{constructor(e){this.maxTargets=50,this.domActivation=e,this.name="dom",this.queue=[]}markDirty(){this.queue.push.apply(this.queue,this.domActivation.guides)}process(e){var t,n=this.queue.shift();if(n){e.saveContext(n);try{t=yr(n.selector)}catch(i){t=[]}t.length>this.maxTargets&&(t.length=this.maxTargets),ib(t,n.targets)||(n.targets=t,this.domActivation.detach(n,this.domActivation.targets),E.each(t,function(e){this.domActivation.attach(e,n,this.domActivation.targets)},this))}}handleProcessTimeExceeded(e){e=e.getContext();e&&C.warn("Element activated guide ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}var ob,ab,sb,db,ub,cb,lb={name:"DOMActivation",key:sb="pendoTargetId",guides:db=[],targets:ub={},reset:mb,init:yb,attach:function(n,i,e){var t=n[sb],r=t?e[t]:null;r||(t=t||"target"+E.uniqueId(),r={target:n,events:{}},e[t]=r,n[sb]=t);var o=e[i.id]||[];o.push(t),e[i.id]=o,E.each(i.events,function(e){var t=r.events[e];t||((t={guideIds:{}}).fn=E.partial(gb,E,t.guideIds),l(n,e="mouseover"===e?"mouseenter":e,t.fn),r.events[e]=t),t.guideIds[i.id]=1})},detach:fb,handler:gb,activates:vb,prefetch:bb,initialize:function(e,t){(ob=t).Events.on("deliverablesLoaded",mb),t.Events.on("guideListChanged",pb),t.Events.on("guidesLoaded",hb),sh(ab=new rb(lb))},teardown:function(){dh(ab),ob.Events.off("deliverablesLoaded",mb),ob.Events.off("guideListChanged",pb),ob.Events.off("guidesLoaded",hb)}};function pb(){mb(),yb(Wd())}function hb(){bb(Wd())}function fb(i,t){E.each(t[i.id],function(e){var n=e?t[e]:null;n&&(E.each(n.events,function(e,t){e&&e.guideIds&&(delete e.guideIds[i.id],E.size(e.guideIds)<=0)&&(Dd(n.target,t="mouseover"===t?"mouseenter":t,e.fn),delete n.events[t])}),E.size(n.events)<=0)&&(delete n.target[sb],n.target=null,delete t[e])}),delete t[i.id]}function gb(e,t){var n;!e.pendoActivatedGuide&&!k.data.get(e,"advanced")&&(n=f.get("adoptPrioritizeAdoptGuides"),t=E.compact(E.map(E.keys(t),M)),t=E.filter(t,function(e){return!(!e.steps||!e.steps.length||E.get(e,"attributes.dom.isOnlyShowOnce")&&e.steps[0].hasBeenSeen())}),t=E(t).chain().sortBy(function(e){return"staged"===e.state?0:1}).sortBy(function(e){e=e.isTraining;return n?e?0:1:e?1:0}).value(),t=E.find(t,function(e){var t=E.first(e.steps);return E.get(e,"attributes.resourceCenter",!1)&&e.isShown()?P.dismissResourceCenter():!!t.canShow()&&(!!e.isShown()||Lg(t,"dom"))}))&&(e.pendoActivatedGuide=t.id)}function mb(){E.each(db,function(e){fb(e,ub),e.targets=[]}),db.length=0}function vb(e){if(e.id&&e.steps&&e.steps.length&&e.hasLaunchMethod("dom")&&e.steps[0].canShowOnPage(Vg())){var t=E.get(e,"attributes.activation.event",[]);if(t&&t.length){var n=cu(e);if(n)return{id:e.id,events:t,selector:n,targets:[]}}}}function yb(e){E.each(e,function(e){e=vb(e);e&&db.push(e)})}function bb(e){f.get("disablePrefetch")||E.each(e,function(e){E.isFunction(e.hasLaunchMethod)&&e.hasLaunchMethod("dom")&&e.steps&&e.steps.length&&E.isFunction(e.steps[0].fetchContent)&&e.steps[0].fetchContent(!0)})}var wb=function(){(cb=cb||{dom:k,placeBadge:yh,showPreview:Rg,stopGuides:Jp,removeAllBadges:bh,_:E,sizzle:yr,tellMaster:za,tell:za,log:Lv,attachEvent:l,createLauncher:E.constant({}),removeLauncher:E.noop,addGuideToLauncher:E.noop,updateLauncherContent:E.noop,DEFAULT_TIMER_LENGTH:qp,getOffsetPosition:Ho,getScreenDimensions:jo,registerMessageHandler:Na,whenLoadedCall:Gd,loadResource:Ta,loadGuideCss:ym,GuideFactory:Uu,GuideStep:Gu,extractElementTreeContext:kd,previewGuideFromJSON:D.previewGuideFromJSON,hidePreviewedGuide:D.hidePreviewedGuide,shadowAPI:Yn,getTarget:Cr,pullContentsFromTargetElement:Tg,doesElementMatchContainsRules:xg,doesElementContentMatchRule:kg,getGuideAttachPoint:au}).areGuidesEnabled=!Am(),I.designer||(I.designer=cb)},Sb=function(){var r,o,i;let a;return{name:"DesignerConnect",initialize:function(e,t){r=e,o=t,Va()||Na("connect",n);Na("pendo-designer-launch::launch",u),Na("pendo-preview::launch",c),e.app_name=document.title,(Ha()||window.opener)&&window.addEventListener&&(r.log(e.app_name+": listening to messages"),window.addEventListener("message",Aa,!1));window.opener&&r._.isFunction(window.opener.postMessage)&&window.opener.postMessage({type:"pendo::ready"},"*");r.onConnectMessage=n},teardown:function(){window.removeEventListener&&window.removeEventListener("message",Aa,!1),s(),La("connect"),La("pendo-designer-launch::launch"),La("pendo-preview::launch"),a&&(o.Events.appUnloaded.off(a),a=undefined);i=i&&undefined},onConnectMessage:n,disconnectDesigner:s,launchDesignerListener:u,launchPreviewListener:c,sendToken:d};function n(e,t){var n,i;r.designer||(n=t.origin,r.stopGuides(),r.buffers.lock(),i=t.source,Ea=i,r.designerv2.hostConfig||(o.store.dispatch("frames/leave"),a=r._.partial(s,i,n),o.Events.appUnloaded.on(a)),wb(),za(t.source,{status:"success",type:"connect"},n),Ua("selection.js")&&(r.log("Designer Modules already loaded."),za({type:"ready"},n)),o.Events.designerLaunched.trigger())}function s(e,t){r.buffers.unlock(),I.designer&&(I.designer=null,delete I.designer),e&&za(e,{type:"unload"},t)}function d(e,t){var n;i&&(n={token:i,type:"pendo-designer-launch::set-token"},t.source.postMessage(n,t.origin),i=undefined)}function u(e,t){var n,t=t.data.token;t&&(i=t,Na("pendo-designer-launch::get-token",d),n=t.DADesigner?"da-designer":"in-app-designer",n={lookaside:t.baseUrl,host:t.host,target:t.target||"latest",DADesigner:!!t.DADesigner,gcsBucket:t.gcsBucket||n,forceNativeDesigner:!!t.forceNativeDesigner,sidebarDesigner:!!t.sidebarDesigner},r.designerv2.launchInAppDesigner(n))}function c(e,t){var n=t.data.config.preferredAgentInstallType;n&&n!==we()?r.log("Skipping preview launch due to agent install type mismatch."):(n=r._.extend({},t.data.config,{origin:t.origin}),oo()&&(n.apiKey=r.apiKey),o.store.dispatch("preview/exitDesignerPreview"),o.store.dispatch("preview/start",n),xh(window)&&(t.source.postMessage({type:"pendo-preview::ready",apiKey:r.apiKey,accountId:r.accountId},t.origin),jm(),o.store.dispatch("frames/startPreview")))}}();const Ib="__sg__";Eb="promotedAgentMetadataConfigurations",Cb=[],Tb={},xb={};var _b,Eb,Cb,Tb,xb,kb={name:"PromoteMetadata",initialize:function(e,t){if(Cb=(_b=t).ConfigReader.get(Eb),xb={},_b.agentStorage.registry.addLocal(Ib),kn())try{Tb=JSON.parse(_b.agentStorage.read(Ib))||{}}catch(n){Lb()}Cb&&Cb.length&&(_b.Events.on("metadata",Rb),_b.Events.on("eventCaptured",Fb),_b.Events.on("identify",Mb))},teardown:function(){_b.Events.off("metadata",Rb),_b.Events.off("eventCaptured",Fb),_b.Events.off("identify",Mb)},getPromotedMetadata:function(){return Cb},hasPromotedMetadataKind:Ab,setSchemaGroup:Rb,getSchemaGroup:Ob,resetSchemaGroup:Nb,resetCachedSchemaGroup:Lb};function Ab(t){return E.some(Cb,function(e){return e.kind===t})}function Ob(){return xb}function Rb(e){var t;e?(e=e.data[0]["options"],e&&(t=e)):t=xl(),xb=function(r){if(kn())try{var e=_b.agentStorage.read(Ib);Tb=function(e){e=E.mapObject(e,(t,e)=>{const n={};return Object.keys(t).forEach(e=>{n[e.replace("agent__","")]=t[e]}),n});return e}(Tb=e?JSON.parse(e):{})}catch(t){Lb()}var o=xb;E.each(["visitor","account","parentAccount"],function(e){var t=Ab(e),n=!E.isEmpty(r[e]),i=e.toLowerCase()+"metadata";t&&(!E.isEmpty(Tb)&&E.isEmpty(fs.get())&&(o[i]=Pb(Tb[i],e)),n)&&(t=Pb(r[e],e),E.isEmpty(t)||(o[i]=Object.assign(Object.assign({},o[i]),t)))}),kn()&&_b.agentStorage.write(Ib,JSON.stringify(o),undefined,!1,!0);return o}(t)}function Mb(e){e=e.data[0];E.get(e,"wasCleared")&&(_b.agentStorage.clear(Ib),Nb())}function Nb(){xb={}}function Lb(){Tb={}}function Pb(e,i){var r={};return e&&E.each(e,function(e,t){var n=t.toLowerCase();Boolean(E.find(Cb,function(e){return e.fieldName===n&&e.kind===i}))&&(r["agent__"+n]=e)}),r}function Fb(e){e=e.data[0];e&&(E.isEmpty(xb)&&Rb(),E.isEmpty(xb)||("track"===e.type?e.props.__sg__=xb:(e.hasOwnProperty("eventProperties")||(e.eventProperties={}),e.eventProperties.__sg__=xb)))}function $b(e,t,n){this.element=e,this.method="element"==t?"click":"hover"==t?"mouseover":t,this.step=n,this.guide=n.getGuide()}$b.prototype.add=function(){0===E.indexOf(this.guide.steps,this.step)&&!$b.shouldAttachHandler(this.guide,this.method)||tu(this.guide)&&!nu(this.guide)||this.setupElementEvent(this.element,this.method)},$b.prototype.remove=function(){this.teardownElementEvent(this.element,this.method)},$b.prototype.setupElementEvent=function(e,t){this.advanceFn||(this.advanceFn=E.compose(E.bind(this.teardownElementEvent,this,e,t),E.bind(this.step.advance,this.step))),$b.attach(this.step,e,t,this.advanceFn)},$b.prototype.teardownElementEvent=function(e,t){C.info("detach onGuideAdvanced",{contexts:["guide"]}),Dd(e,t,this.advanceFn,!0),this.step.removeTrigger(this)},$b.shouldAttachHandler=function(e,t){return!e.isActivatedByEvent(t)||lb.activates(e)||e.attributes.activation.selector!==e.steps[0].elementPathRule&&!!e.attributes.activation.selector};var Db=null,Ub=function(){return ou()?eu:Qd},Gb=function(e){return"#_pendo_g_"+e.id},jb=function(e,t){Db=null;var n,i,r,o,e=Ho(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(Ub()),o=Yb(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"}),k("._pendo-guide-container_",n).addClass(o.arrowPosition).css({top:o.content.top,left:o.content.left,width:o.content.width,height:o.content.height}),Bb(n[0],o),n[0])},Bb=function(e,t){var n=["top","right","bottom","left"],i="_pendo-guide-arrow-",r=i+"border-",o=t.arrowPosition,a=E.chain(n).filter(function(e){return e!==o}).map(function(e){return"border-"+e+"-width:"+I.TOOLTIP_ARROW_SIZE+"px;"}).value().join(""),s=k("div._pendo-guide-arrow_",e).remove().findOrCreate("<div class='_pendo-guide-arrow_'></div>"),d=k("div._pendo-guide-arrow-border_ ",e).remove().findOrCreate("<div class='_pendo-guide-arrow-border_'></div>");E.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;"),k(e).append(s).append(d)},zb=function(e,t){t===undefined&&(t=jd),e.element=du(e);var n=e.element;if(!n)return C.info("No element found for step: "+e.id),null;pa(n);var i=jb(n,e);return null===i?null:(i.id=I.getTooltipDivId(e),k(i).appendTo(au()),t.push(i),l(i,"mouseover",E.partial(k.addClass,i,"mouseover")),l(i,"mouseout",E.partial(k.removeClass,i,"mouseover")),lu(n,i),Kb(e),n)},Hb=null,Wb=null;var qb=null,Vb={top:"north",left:"east",bottom:"south",right:"west"},Kb=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=uc(n=n.concat(E.compact(E.flatten(E.map(t.additionalElements,function(e){return E.toArray(k(e))}))))),o={top:r=t.padding||0,left:r,bottom:r,right:r},s=dc(a=sc(),i,o),h=i,f=!E.isEqual(h,Hb),Hb=h,f||(l=a,p=!E.isEqual(l,Wb),Wb=l,p)||(u=s,c=!E.isEqual(u,qb),qb=u,c))&&(d={"z-index":t.zindex||1e4,position:"fixed"},t.bgColor&&(d["background-color"]=t.bgColor),t.opacity&&(d.opacity=t.opacity),E.each(s,function(e,t){t=Vb[t],e=E.extend({},e,d),t=k("div._pendo-guide-tt-region-block_._pendo-region-"+t+"_")[0]||Jb(t),k(t).css(e)}))}catch(g){C.info("Failed to add BlockOut ui",{contexts:["error"]})}var u,c,l,p,h,f},Jb=function(e){e=k(document.createElement("div")).addClass("_pendo-guide-tt-region-block_").addClass("_pendo-region-"+e+"_");k("body").append(e)},Zb=function(e){var t=E.isEqual(e,Db);return Db=e,!t},Yb=function(e,t,n,i){var r=I.TOOLTIP_ARROW_SIZE,o={arrow:{border:{}},content:{top:r,left:r}},a=jo();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=Xb(o,e,a,i=i||"auto"),o=Qb(o,e,a,i),o=e0(o,e,a)},Xb=function(e,t,n,i){return e.arrow.hbias=Tc(t,n,i),e},Qb=function(e,t,n,i){var r;return i&&"DEFAULT"!=i&&"auto"!=i&&(e.arrowPosition=i),e.arrowPosition||(i=t.top-ho(),t=(r=t.left-fo())+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},e0=function(e,t,n){var i,r,o,a=e.height,s=e.width;return De()?Ue(e,t):("top"==e.arrowPosition||"bottom"==e.arrowPosition?(i=0,"top"==e.arrowPosition?(e.top=t.top+t.height,e.arrow.top=_e(9,6)?6:2,i=-1):"bottom"==e.arrowPosition&&(e.top=t.top-a,e.arrow.top=a-I.TOOLTIP_ARROW_SIZE-1,e.arrow.top+=_e(9,6)?6:0,e.arrow.top+=8==Ie?-1:0,i=1),r=10+I.TOOLTIP_ARROW_SIZE,o=s-3*I.TOOLTIP_ARROW_SIZE-10,e.arrow.hbias==_c?(e.left=t.left+t.width/2-(10+2*I.TOOLTIP_ARROW_SIZE),e.arrow.left=r):e.arrow.hbias==Ec?(e.left=t.left-s+t.width/2+(10+2*I.TOOLTIP_ARROW_SIZE),e.arrow.left=o):(e.left=t.left+t.width/2-s/2,e.arrow.left=s/2-I.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==_c?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=_e(10,6)?5:0,e.arrow.border.left=e.arrow.left-1):e.arrow.hbias==Ec&&(e.left=Math.max(0,t.left-s),e.arrow.left=s-I.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=_e(10,6)?5:0,e.arrow.left+=7==Ie&&6<=ke?1:0,e.arrow.border.left=e.arrow.left+1),e.top=t.top-a/2+t.height/2,e.arrow.top=a/2-I.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e)},t0=430,n0=200,i0=15;function r0(e){var t;return"tooltip"===this.type&&((t=this).attributes.height=t.attributes.height||I.TOOLTIP_DEFAULT_HEIGHT,t.attributes.width=t.attributes.width||I.TOOLTIP_DEFAULT_WIDTH,t.attributes.layoutDir=t.attributes.layoutDir||"DEFAULT",this.getTriggers=function(e){var t=this,n=t.element||du(t);return!n&&e?[]:(e=(t.advanceMethod||"").split(","),this.triggers=E.map(e,function(e){return new $b(n,e,t)}),this.triggers)},this.removeTrigger=function(e){this.triggers=E.without(this.triggers,e),0===this.triggers.length&&(this.triggers=null)},this.canShow=function(){return!_g(t)&&!!e.canShowOnDevice()&&!t.isShown()&&t.canShowOnPage(Vg())&&Cg(t)},this.after("render",function(){zb(this,this.elements)&&(E.each(this.getTriggers(),function(e){e.add()}),xc.attachScrollHandlers(this,this.onscroll))}),this.reposition=function(){var e=this.attributes.width,t=this.attributes.height,n=this.attributes.layoutDir,i=this.guideElement,r=k("._pendo-guide-container_",i),o=Ho(this.element),t=Yb(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+"_"),k("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),Bb(i,t),i.css({top:t.top,left:t.left,height:t.height,width:t.width,position:o.fixed?"fixed":""}),this.dim=t,Kb(this)},this.onscroll=function(e){ca(e.element)?(e.reposition(),Uo(e.elements[0],"display:block")):Uo(e.elements[0],"display:none")},this.teardownElementEvent=function(){E.each(this.triggers,function(e){e.remove()})},this.after("hide",function(){k("._pendo-guide-tt-region-block_").remove(),qb=Wb=Hb=null})),this}var o0=function(e,t){var n=!!k("._pendo-backdrop_")[0];return E.get(t,"overlayDiv[0]")||(t.overlayDiv=k(document.createElement("div")).addClass("_pendo-backdrop_")),!1==n&&(t.elements.push(t.overlayDiv[0]),t.overlayDiv.appendTo(au())),De()&&t.overlayDiv.css({height:"100%",width:"100%",position:"absolute"}),e&&k(t.overlayDiv).addClass("_pendo-onboarding_"),t.overlayDiv},a0=function(e){var t=e.guideElement,n=I.TOOLTIP_ARROW_SIZE,i=e.attributes.height,e=e.attributes.width,e=Math.floor(e/2),i=Math.floor(i/2);t.addClass("_pendo-guide-lb_").css({top:"50%",left:"50%","margin-top":-i,"margin-left":-e}),k("._pendo-guide-container_",t).css({bottom:n,right:n}),De()&&t.css({position:"absolute"})},s0=function(e,t){t===undefined&&(t=jd),e.element=du(e),a0(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=(o0(n,e),e.guideElement);t.push(n[0]),n.appendTo(au())},d0=function(e,t){t===undefined&&(t=jd),e.element=du(e),e.guideElement.addClass("_pendo-guide-mobile-lb_");var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=o0(n,e),e=e.guideElement,i=I.TOOLTIP_ARROW_SIZE,i=(e.css({width:"",height:""}),k("._pendo-guide-container_",e).css({bottom:i,right:i}));function r(e){e.preventDefault()}k("._pendo-close-guide_",e).remove().prependTo(i),e.appendTo(au()),t.push(e[0]),l(n[0],"touchmove",r),l(e[0],"touchmove",r)};function u0(){var e=this;return/lightbox/i.test(e.type)&&(e.attributes.height=e.attributes.height||I.LB_DEFAULT_HEIGHT,e.attributes.width=e.attributes.width||I.LB_DEFAULT_WIDTH,e.after("render",function(){(ou()?d0:s0)(e,e.elements)}),e.reposition=function(){ou()||e.guideElement.css({"margin-left":-Math.floor(e.attributes.width/2),"margin-top":-Math.floor(e.attributes.height/2)})}),e}var c0=500,l0="_pendo-guide-banner_";function p0(){var n=this;return"banner"===n.type&&(n.attributes.height=n.attributes.height||c0,n.attributes.position=n.attributes.position||"top",n.after("render",function(){var e=n.guideElement,t=I.TOOLTIP_ARROW_SIZE;e.css({width:""}).addClass(l0).addClass("_pendo-guide-banner-"+n.attributes.position+"_"),ru()||e.addClass("_pendo-in_"),k("._pendo-guide-container_",e).css({bottom:t,right:t}),n.element=du(n),n.elements.push(e[0]),e.appendTo(au())})),n}function h0(t){var n=this,e="whatsnew",i="_pendo-guide-whatsnew-seen_",r="active",o=1e3;return n.type===e&&(E.extend(n,{isShown:E.constant(!1),launch:d,onShown:d,render:function(){var e=n.guideElement,t=n.attributes.height;e&&e.html()||(e=k(document.createElement("div")).attr("id",Ag(n)).addClass("_pendo-guide-whatsnew_").html(n.getContent()),E.isNumber(t)&&!n.attributes.autoHeight&&e.height(t),n.seenState===r&&e.addClass(i),n.guideElement=e)},seen:s}),E.extend(t,{addToLauncher:function(){var e=n.guideElement;e&&!Zo(e[0])&&(k("._pendo-launcher_ #launcher-"+n.guideId).html("").append(e),Vu.runCustomScripts(n,t))},isReady:a}),n.after("show",s)),n;function a(){return!!n.guideElement}function s(){ru()||a()&&n.seenState!==r&&function(e){{var t,n;if(ca(e,/(auto|scroll|hidden)/))return(t=ea(e))?(t=Yo(t),e=Yo(e),n=t.top+Math.floor(t.height/3),e.bottom<=t.bottom||e.top<=n):1}}(n.guideElement[0])&&(Fg(n.guideId,n.id,b(),e,t.language,{last_updated_at:n.lastUpdatedAt}),n.seenState=r,E.delay(function(){n.guideElement.addClass(i+" out")},E.isNumber(n.attributes.seenDelay)?n.attributes.seenDelay:o))}function d(){}}var f0="_pendo-launcher-searching_",g0="._pendo-launcher-search-box_ input";var m0,v0=function(e){return e&&E.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e&&e.launchMethod&&0<=e.launchMethod.indexOf("launcher")};function y0(){var e;return function(){var e;if(I.guideWidget)return(e=I.guideWidget.data)&&e.enableSearch}()&&(e=k(g0)[0])&&0<(e=e.value).length?(e=Ye.call(e),[].concat(E.compact(e.split(" ")))):[]}function b0(e){if(!f.get("disablePrefetch"))return y.all(E.map(e,function(e){return e.fetchContent()}))}function w0(e,t){return C.info("doing search on "+t,{contexts:["launcher","search","guides"]}),e=e||R,t&&0!==t.length?E.chain(e).filter(v0).map(function(e){return e.searchFor(t)}).compact().sortBy(function(e){return E.indexOf(["tag","name","content"],e.field)}).pluck("guide").value():e}var S0=function(){var e=Xd();if(hu()){if(I.guideWidget&&I.guideWidget.enabled){var t=O0(e),n=!0;if(I.guideWidget&&E.isFunction(I.guideWidget.update))I.guideWidget.update(t,n)}}else{G0();t=qd(e),n=R0(O0(t));n!==m0&&g.dispatch("frames/changeGuideList",t),m0=n}},I0="launcher-closed",_0=null,E0=null,C0=!($b.attach=function(e,t,n,i){if(e){for(var r=$b.handlers=$b.handlers||{},o=r[e.id]=r[e.id]||[],a=0;a<o.length;++a){var s=o[a];t===s[0]&&n===s[1]&&(Dd(t,n,s[2],!0),o.splice(E.indexOf(o,s),1),a--)}o.push([t,n,i]),Dd(t,n,i,!0),l(t,n,i,!0)}}),T0="_pendo-launcher-active_",x0=null,k0=function(){return""};function A0(e,t){k0=t}function O0(e){var t,e=E.filter(e||R,v0);return e=e,0===(t=y0()).length?e:(t=E.map(t,E.partial(w0,e)),E.union.apply(E,t))}function R0(e){return rt(E.map(e,function(e){var t=e.isWhatsNew()?[]:E.pluck(e.steps,"seenState");return{id:e.id,seenState:t}}))}function M0(e){var n=this,t=e.launchType||"badge",i=(E.extend(n,{show:function(){"badge"===t&&k(n.element).css("display: ;")},hide:function(){k(n.element).css("display: none;")},wrap:function(){var e=n.element;{var t;e&&/^img$/i.test(e.nodeName)&&(t=k(document.createElement("div")).addClass(e.className).append(e).appendTo(au()),e.className="",n.element=t[0])}},dispose:function(){k.removeNode(n.element)},setActive:function(e){e?k(n.element).addClass(T0):k(n.element).removeClass(T0)}}),e),e=i.position||"bottom-right",r=document.createElement("img");k(n.element=r).addClass("_pendo-launcher-badge_").addClass("_pendo-launcher-badge-"+e+"_"),i.launcherBadgeUrl&&(r.src=ju(i.launcherBadgeUrl)),r.onerror=function(e){C.info("[Agent] Error! Unable to load guide center image "+i.launcherBadgeUrl),C.critical("ERROR in when attempting to render guide center badge image",{imgSrc:i.launcherBadgeUrl})},De()&&(l(r,"mouseover",function(e){k(r).addClass("_pendo-launcher-badge-active_")}),l(r,"mouseout",function(e){k(r).removeClass("_pendo-launcher-badge-active_")}),k(r).css({position:"absolute"})),au().appendChild(r)}function N0(e){function n(){return"element"===e.launchType&&e.launchElement?e.launchElement:"._pendo-launcher-badge_"}function t(e){var e=Cr(e),t=n();k(e).closest(t).length&&(W0()?h.write(I0,"yes",864e6):I.guideWidget.position(e),J0())}I.guideWidget.removeCountBadge=function(){k("._pendo-launcher-whatsnew-count_").remove()},e&&e.elementMatch&&(e.launchElement=e.elementMatch.selection),E.extend(this,{getLauncherTarget:function(){return k(n())[0]},dispose:function(){Dd(document,"click",t),e&&e.whatsnew&&e.whatsnew.enabled&&k("._pendo-launcher-whatsnew-count_").remove()}}),l(document,"click",t)}function L0(){var n,s="bottom-right",d="bottom-left";return this.update=function(e,t){t=t?e:O0(e),e=R0(t)+rt(y0());return e!==n&&(n=e,this.updateLauncherContent(t)),D0(),0<t.length},this.updateLauncherContent=z0,this.guideStatus=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":"not-started"},this.render=function(){var e=this.data||{},t=(_0=new M0(e),e.height||310),n=(e.enableSearch&&(t+=De()?50:39),this&&!this.hidePoweredBy&&(t+=40),e.addHeight&&(t+=e.addHeight),this.height=t,e.width||330),i=(e.addWidth&&(n+=e.addWidth),this.width=n,k(document.createElement("div")).addClass("_pendo-launcher_")),r=(E0=i[0],Ho(_0.element)),r=Yb(r,t,n),o=(i.css({width:n,height:t}),I.TOOLTIP_ARROW_SIZE),n=k(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=B0(),o=ju(P0(this.template(t))),t=k(document.createElement("div")).addClass("_pendo-guide-content_").html(o).appendTo(n);e.addUISection&&e.addUISection(i[0]),ig(i[0],function(){V0(),h.write(I0,"yes",288e5)}),t.on("click",function(e){var t=k(Cr(e)).closest("._pendo-launcher-item_");t&&t.length&&(t=M((t=/^launcher-(.+)$/.exec(Ye.call(t.attr("id"))))&&t[1]))&&!t.isWhatsNew()&&(Lg(t.steps[0],"launcher"),V0(),Ud(e))}),De()&&(k("._pendo-launcher-header_",i).css({padding:"10px","margin-right":"10px","margin-left":"10px"}),k("._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");k(this).css(e)}),i.appendTo(au()),E.isFunction(this.script)&&this.script(this),e.autoHeight&&e.autoHeight.enabled&&!_e(9,6)&&(o=e.autoHeight.offset||100,i.css({height:"calc(100% - "+o+"px)",maxHeight:e.height,minHeight:e.height/2}),k("._pendo-guide-container_."+r.arrowPosition).css({maxHeight:e.height-30,minHeight:e.height/2-30,height:"calc(100% - 30px)"}))},this.position=function(e){var t,n,i,r,o,a;e&&(t=this.data,e=Ho(e),n=Yb(e,this.height,this.width),i=k(E0),"badge"===(r=t.launchType||"badge")?(o=t.position,E.indexOf(a=[s,d,"top-left","top-right"],t.position)<0&&(o=s),E.each(a,function(e){i.removeClass("_pendo-launcher-"+e+"_")}),i.addClass("_pendo-launcher-"+o+"_"),n.arrow=n.arrow||{},n.arrowPosition=E.contains([s,d],o)?"bottom":"top",n.arrow.hbias=E.contains([d,"top-left"],o)?"left":"right",n.arrow.floating=!1):"element"===r&&i.css({top:n.top,left:n.left,height:n.height,width:n.width,position:e.fixed?"fixed":"absolute"}),k("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),e0(n,e,{width:Infinity,height:Infinity}),Bb(i[0],n),i.find("._pendo-guide-container_").removeClass("top left bottom right").addClass(n.arrowPosition))},this.toggle=J0,this}function P0(e){return e=E.isString(e)?e.replace(/\s+(style)=/gi," pendo-style="):e}function F0(e,t){e.contentHostUrl&&(e.contentHostUrl=(n=e.contentHostUrl,i=location,(r=f.getLocalConfig("contentHost"))&&(n=(n=n.replace(/^pendo-static-\d+\.storage\.googleapis\.com$/,r).replace(/^pendo-\w+-static\.storage\.googleapis\.com$/,r).replace(/^cdn\.pendo\.io$/,r)).replace(/^https?:/,"").replace(/^\/\//,""),!/\./.test(n))&&!/^localhost/.test(n)&&/^\//.test(n)?i.host+n:n)),x0=new N0(e);var n,i,r=L0.create(I.guideWidget);return E.isFunction(r.template)||(r.template=e.template?E.template(e.template):k0),r.render(),r.position(x0.getLauncherTarget()),t&&r.toggle(),r}L0.create=function(e){return E.reduce(L0.behaviors,function(e,t){return t.call(e)},e)},L0.behaviors=[uh,L0,Fu.Launcher,function(){var t={text:"",highlight:function(e){return t.text?(e||"").replace(new RegExp(t.text,"gi"),"<strong>$&</strong>"):e},clear:function(){k(g0).each(function(){this.value=""})}};return this.data&&this.data.enableSearch&&this.data.enableSearch&&(this.data.search=t,I.disableGuideCenterContentSearch||this.before("update",b0),this.before("update",function(){t.text=y0().join(" ");var e=k("._pendo-launcher_");t.text?e.addClass(f0):e.removeClass(f0)})),this},function(){var n=this;{var i;n.data&&n.data.onboarding&&(i=n.onboarding=n.onboarding||{},n.before("update",function(e){var e=E.filter(e,wy),t=E.filter(e,function(e){return"complete"==n.guideStatus(e)}),e=i.total=e.length,t=(i.percentComplete=0<e?Math.round(t.length/e*100):0,k("._pendo-launcher_,._pendo-launcher-badge_"));e?(t.addClass("onboarding"),t.addClass("_pendo-launcher-onboarding_")):(t.removeClass("onboarding"),t.removeClass("_pendo-launcher-onboarding_"))}),n.getOnboardingState=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":e.isNotStarted()?"not-started":null})}return n},function(){var n=this,i=k(document.createElement("div")).addClass("_pendo-launcher-whatsnew-count_");n.data&&n.data.whatsnew&&n.data.whatsnew.enabled&&(n.before("updateLauncherContent",function(e){e=E.filter(e,function(e){return e.isWhatsNew()});e.sort(t),n.data.whatsnew.total=e.length,n.data.whatsnew.guides=e}),n.after("update",function(e){var t=n.data.whatsnew.guides,t=(E.each(t,function(e){e.show()}),E.find(t,function(e){if(!e.isReady())return!0;e.addToLauncher()}),E.filter(t,function(e){return"active"!==e.steps[0].seenState}).length);t!==n.data.whatsnew.unseenCount&&(i.html(t).css({display:t?"":"none"}),n.data.whatsnew.unseenCount=t,k("span._pendo-launcher-whatsnew-count_").text(n.data.whatsnew.unseenCount))}),n.after("render",function(){j0()?i.appendTo(this.data.launchElement):(_0.wrap(),i.appendTo(_0.element))}));return n;function t(e,t){var n=function(e,t){e=e.showsAfter||e.publishedAt||0;return(t.showsAfter||t.publishedAt||0)-e}(e,t);return 0===n?(t=t,e=(e=e).name.toLowerCase(),(t=t.name.toLowerCase())<e?1:e<t?-1:0):n}}];var $0=function(){E0&&(k.removeNode(E0),E0=null),x0&&(x0.dispose(),x0=null),_0&&(_0.dispose(),_0=null)},D0=function(){(!j0()&&(q0()||0<y0().length)?U0:G0)()},U0=function(){_0&&_0.show()},G0=function(){j0()||V0(),_0&&_0.hide()},j0=function(){return!(!I.guideWidget||!I.guideWidget.data||"element"!==I.guideWidget.data.launchType)},B0=function(e){var t=xl(),t=E.extend({hidePoweredBy:!1,guides:[],guide:{},step:{},metadata:nt(t)},I.guideWidget);return t.data=E.extend({},t.data),e&&(t.guides=e),t};function z0(e){var t=I.guideWidget.template||k0,e=B0(e),e=k(document.createElement("div")).html(P0(t(e))),n=e.find("._pendo-launcher-guide-listing_"),t=e.find("._pendo-launcher-footer_").html(),e=e.find("._pendo-launcher-search-results_").html();k("._pendo-launcher_ ._pendo-launcher-guide-listing_").each(function(e,t){k(e).html(n.eq(t).html())}),k("._pendo-launcher_ ._pendo-launcher-footer_").html(t),k("._pendo-launcher_ ._pendo-launcher-search-results_").html(e)}var H0=E.compose(D0,function(e,t){var n,i,r,o;v0(e)&&(n=k("._pendo-launcher_ ._pendo-launcher-guide-listing_")[0])&&(e=(o=k("#launcher-"+e.id)).length?o[0]:(e=e,k(i=document.createElement("div")).addClass("_pendo-launcher-item_"),k(i).attr("id","launcher-"+e.id),(r=document.createElement("a")).href="#",r.innerHTML=e.name,i.appendChild(r),i),o=0<o.length,E.isNumber(t)&&(r=k("._pendo-launcher-item_"))[t]?e.id!=r[t].id&&n.insertBefore(e,r[t]):n.appendChild(e))}),W0=function(){return k(E0).hasClass(T0)},q0=function(){return 0<k("._pendo-launcher-item_").length},V0=function(){var e;E0&&(e=k(E0))&&e.hasClass(T0)&&(e.removeClass(T0),_0)&&_0.setActive(!1)},K0=function(){var e;E0&&(e=k(E0))&&!e.hasClass(T0)&&(e.addClass(T0),_0)&&_0.setActive(!0)},J0=function(){E0&&!C0&&(W0()?V0:K0)()};var Z0=function(){try{var e=I.guideWidget||{},t=e.data||{},n=t.device||{desktop:!0,mobile:!1,iframe:!1};$0(),!ou()&&!n.desktop||ou()&&!n.mobile||Ha()&&!n.iframe||e.enabled&&(F0(t),G0())}catch(i){C.critical("ERROR while initializing launcher",{error:i})}},Y0=function(e){e.defaultLauncher=A0,e.toggleLauncher=J0,e.showLauncher=K0,e.hideLauncher=V0,e.removeLauncher=$0,e.initLauncher=Z0,e.createLauncher=F0,e._addGuideToLauncher=H0,e.launcherToolTipDiv=E0},X0=function(){Z0()},Q0=function(){var e;(e=I).designer&&(e.designer.createLauncher=F0,e.designer.removeLauncher=$0,e.designer.addGuideToLauncher=H0,e.designer.updateLauncherContent=z0)},e1=function(){var e;(e=I).debugging&&(e.debugging.getLauncherGuides=O0)},t1=function(e){return i=I.guideWidget,e=e,r=i&&i.data,e=E.filter(e,function(e){e=E.first(e.steps);return e&&"launcher"===e.type}),(e=E.first(E.sortBy(e,function(e){return-e.lastUpdatedAt})))&&r&&(e=E.first(e.steps),E.extend(r,E.pick(e,"contentUrl","contentUrlCss","contentUrlJs"),e.attributes),E.defaults(r,{whatsnew:{},knowledgebase:{}}),r.id=e.guideId+e.id),n=(t=i)&&t.data||{},!0!==f.get("preventCodeInjection")&&(n.contentUrlJs||n.contentUrl)?xu.verify(n).then(function(){return zu.load(n)}).then(function(e){return n.template=e.content,E.extend(t,e)}):y.resolve();var t,n,i,r},n1=function(e,t){Y0(e),t.Events.on("guidesLoaded",X0),t.Events.on("designerLaunched",Q0),t.Events.on("debuggerLaunched",e1),t.GuideLoop.addUpdatePhase(S0),pm.push(t1),t.agentStorage.registry.addLocal(I0)},i1=function(e,t){var n;n=t1,0<=(n=E.indexOf(pm,n))&&pm.splice(n,1),t.GuideLoop.removeUpdatePhase(S0),t.Events.off("guidesLoaded",X0),t.Events.off("designerLaunched",Q0),t.Events.off("debuggerLaunched",e1)};Jm.Extensions.API.addTopic("Launcher",{addBehavior(e){L0.behaviors.push(e)}});var r1,o1,a1,s1={name:"P1Guides",initialize:function(e,t){var n;o1=t,r1=e.dom,a1=[r0,u0,p0,h0,c1,l1,u1,d1],-1<E.indexOf(Gu.behaviors,r0)||(n=E.indexOf(Gu.behaviors,Cy),Gu.behaviors.splice.apply(Gu.behaviors,[n,0].concat(a1)),t.Events.guideLoopStopped.on(G0),e.TOOLTIP_DEFAULT_WIDTH=t0,e.TOOLTIP_DEFAULT_HEIGHT=n0,e.TOOLTIP_ARROW_SIZE=i0,e._showElementGuide=zb,e._createTooltip=jb,e._get_tooltip_dimensions=Yb,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e._showLightboxGuide=s0,n1(e,t))},teardown:function(){i1(0,o1),o1.Events.guideLoopStopped.off(G0),a1.forEach(e=>{e=E.indexOf(Gu.behaviors,e);0<=e&&Gu.behaviors.splice(e,1)}),a1=[]}};function d1(){const o=this;return"tooltip"!==o.type||o.domJson||(o.checkPlacement=function(){var e,t,n,i,r;e=o,r=Ho(e.element||du(e)),Kb(e),Zb(r)&&(n=e.attributes.height,i=e.attributes.width,t=e.attributes.layoutDir,n=Yb(r,n,i,t),(i=k(Gb(e))).css({top:n.top,left:n.left,position:r.fixed?"fixed":""}),Bb(i,n))}),o}function u1(){var i=this;return i.attributes&&i.attributes.autoHeight&&(i.after("render",function(){i.guideElement&&i.guideElement.length&&(i.resize(),i.attachEvent(i.guideElement[0],"load",function(){i.resize()}))}),i.resize=function(){var e,t=I.TOOLTIP_ARROW_SIZE,n=i.guideElement;n&&(e=r1("._pendo-guide-container_",n),"tooltip"==i.type||De()&&"lightbox"==i.type?e.css({width:i.attributes.width-2*t,height:""}):e.css({right:t,bottom:""}),i.attributes.height=e.height()+2*t,n.height(i.attributes.height),i.reposition())}),i}function c1(e){var t=this;return t.domJson||t.domJsonpUrl||t.after("render",function(){t.guideElement&&t.guideElement.length&&ig(t.guideElement[0],function(){e.isOnboarding()&&!confirm("Are you sure you want to stop this tutorial?")||vg(t)})}),t}function l1(){var e=this;return e.hideCredits||e.domJson||e.domJsonpUrl||iu(e.guide)||e.after("render",function(){Ig(e.guideElement[0])}),e}var p1,h1,f1={name:"Branding",initialize:function(e,t){p1=e,(h1=t).ConfigReader.get("isPendoFree")&&h1.Events.on("guideSeen",g1)},teardown:function(){h1.Events.off("guideSeen",g1)},addBranding:m1};function g1(e){m1(p1,e)}function m1(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",io()+"/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))}var v1,y1=function(){let r;var o,n,i;const a="automation",e=250,t=500,s=0,d=10;return{name:"ActionAutomation",automationQueue:void 0,initialize:function(e,t){o=e,n=t,r=o._,this.automationQueue=[],t.EventRouter.registerAction(a,e._.bind(u,this))},teardown:function(){n.EventRouter.deregisterAction(a),this.automationQueue=[]},guideActivity:u,getAutomationFromGuide:function(i,e){return r.reduce(e,function(e,t){var n=r.find(i,function(e){return e.id===t});return n?e.push(n):o.log("could not find automation for "+t,"debug"),e},[])},getAutomationConfigs:function(e){if(!e||e.length<=0)return[];if(!i)return[];var t=i.guide,n=i.step;if(!t||!n)return[];n=t.automations;if(!n||!n.length)return[];n=this.getAutomationFromGuide(n,e),e=n[n.length-1];if(this.isAutomationInQueue(e))return o.log("Automation is already in queue autoId: "+e.id+", guideId: "+t.id,"debug"),[];return n},getTarget:function(e){e=e.target.elementPathRules,e=o.Sizzle(e,document);return e&&e[0]},getElement:function(n,i=d){return new Jt(r.bind(function(t){return Dt(r.bind(function(){var e=this.getTarget(n);e&&!e.disabled||i<1?t(e):this.getElement(n,i-1).then(function(e){t(e)})},this),e)},this))},getValue:function(e){return e.value},injectText:function(e,t){let n;"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;t=new InputEvent("input",{bubbles:!0,data:t[t.length-1]}),t.simulated=!0,e.dispatchEvent(t),t=new InputEvent("change",{bubbles:!0});t.simulated=!0,e.dispatchEvent(t)},simulateClick:function(e){e.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0,cancelable:!0})),e.click()},isAutomationInQueue:function(t){return!!r.find(this.automationQueue,function(e){return t.id===e.id})},popQueue:function(){let e=s;const n=this.automationQueue[0];"autoclick"===n.type&&(e=t);return Dt(r.bind(function(){return this.getElement(n,d).then(r.bind(function(e){if(e)if(e.disabled)this.automationQueue=[],o.log("automation target found but disabled. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug");else{switch(n.type){case"autofill":var t=this.getValue(n);this.injectText(e,t);break;case"autoclick":this.simulateClick(e)}this.automationQueue.shift(),this.automationQueue.length&&this.popQueue()}else this.automationQueue=[],o.log("automation target element not found. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug")},this))},this),e)},setActive:function(e){i=e}};function u(e){var t;e.step&&(this.setActive({guide:e.step.guide,step:e.step}),e.params)&&((e=r.find(e.params,function(e){return"automationIds"===e.name&&r.isArray(e.value)&&e.value.length}))?(e=this.getAutomationConfigs(e.value),t=!this.automationQueue.length,this.automationQueue=this.automationQueue.concat(e),t&&this.popQueue()):o.log("no automation ids were found","debug"))}}();function b1(e,i){return"undefined"!=typeof Proxy&&E.isFunction(i)?new Proxy(e,{get(e,t){if("textContent"===t)return i(e);if("parentNode"===t){var n=e[t];if(e.ownerDocument!==n)return b1(e[t],i)}return E.isFunction(e[t])?function(){return e[t].apply(e,arguments)}:e[t]}}):e}const w1=function(){let n,l,p,h,t;const i=Wn(function(n){{var e;p.eventProperties&&p.eventProperties.length&&(e=function c(i){var r=h.ConfigReader.get("eventPropertyMatchParents");var e=v();var t={};var n;for(var o=0;o<p.eventProperties.length&&v()-e<50;o++){n=p.eventProperties[o];var a=p._.any(n.featureRules,function(e){try{var t=f(r,l);return t(i,e)}catch(n){return!1}});if(a)for(var s=0;s<n.eventPropertyRules.length&&v()-e<50;s++){var d=n.eventPropertyRules[s];if(!d.name)return;t[d.name]=m(d,i)}}var u=v()-e;if(50<u){if(r&&l===p._.identity&&p._.isFunction(p.getText))return p.log("switching event property collection to fast text implementation"),l=function(e){return b1(e,function(e){return p.getText(e,128)})},c(i);g(50,n)}return t}(n.target),p._.pairs(e).forEach(([e,t])=>{n.addEventProperty(e,t)}))}}),r=Wn(function(){var e={};if(n)return{};var t=h.ConfigReader.get("eventPropertyConfigurations");if(!t||p._.isEmpty(t))return{};if(e=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=m(t);o&&(i["_pendo_"+t.name]=o)}50<v()-n&&g(50,t);return i}(t),p._.isEmpty(e))return{};return e});return{name:"EventProperties",initialize:function(e,t){p=e,h=t,l=p._.identity,n=!1,p.getEventPropertyTarget=s,p.previewEventProperty=m,h.Events.onClickCaptured.off(o),h.Events.onClickCaptured.on(o),h.Events.ready.on(a)},teardown:function(){h.Events.onClickCaptured.off(o),h.Events.ready.off(a),h.store.dispatch("location/removeInternalTransforms",t),t=[],h.store.dispatch("location/stopPolling")},collectClickEventProperties:i,collectEventProperty:m,collectPageEventProperties:r,getEventPropertyTarget:s,addPageEventProperties:a};function f(e,n){return e?function(e,t){return 0<p.dom(n(e)).closest(t).length}:function(e,t){return p.Sizzle.matchesSelector(e,t)}}function o(e){i(e.data[0])}function a(){var e;t=(e=h.ConfigReader.get("eventPropertyConfigurations"))&&!p._.isEmpty(e)?[new Qv("search","AddTo",function(){return r()})]:[],h.store.dispatch("location/addInternalTransforms",t),0<t.length&&h.store.dispatch("location/startPolling")}function g(e,t){p.log("event property collection disabled; collection took greater than "+e+" milliseconds.");e="ERROR event property collection exceeded time limit.";t.featureId?e+="\n For feature with id: "+t.featureId:e+="\n For page event with name: "+t.name,h.log.critical(e),t.featureId?p.eventProperties=[]:n=!0}function m(e,t){if(e.path)return t=s(e,t),p._.get(t,e.path,undefined)}function s(e,t){e=e.source||e.selector;if(e&&t){for(var n,i=e,r=t;!n&&r;){try{if((n=p.Sizzle.matchesSelector(r,i)?r:p.Sizzle(i,r)[0])&&("password"===n.type||"hidden"===n.type))return}catch(o){return}r=Yn.getParent(r)}return n}return e?!(t=p.Sizzle(e)[0])||"password"!==t.type&&"hidden"!==t.type?t:void 0:window}}();function S1(){var e;lh().enabled&&(g.commit("debugger/debuggingEnabled",!0),I1(),k("#pendo-client-debugger").length||(e=f.get("agentDebuggerPluginLoader"),Jm.restartDebugger?Jm.restartDebugger():"function"==typeof e?e():((e=document.createElement("script")).src=J(I).createScriptURL(ro("debugger-plugin.min.js")),e.setAttribute("id","pendo-debugger-plugin"),f.get("pendoGlobalKey")&&e.setAttribute("data-pendo-global-key",f.get("pendoGlobalKey")),k.getBody().appendChild(e)),m.debuggerLaunched.trigger()))}function I1(){v1=v1||{store:g,ConfigReader:f,getState(){return JSON.stringify(g.state)},getEventCache(){return[].concat(Ka)},getAllGuides(){return[].concat(R)},getAutoGuides(){return $p.sortAndFilter(R,I.autoOrdering)},getBadgeGuides(){return E.filter(R,tu)},getLauncherGuides(){return[]},getEventHistory(){return[]},getAllFrames(){return g.getters["frames/allFrames"]()},getChannelType(){return g.getters["frames/channelType"]()},isStepShownInFrame(e,t){return g.getters["frames/isShownInFrame"]()(e,t)},setActiveGuides:Vd,getBody:k.getBody,isMobileUserAgent:$e.isMobileUserAgent,areGuidesDelayed:Om,doesElementMatchContainsRules:xg,getMetadata:xl,isStagingServer:ie,AutoDisplay:$p,isLeader:hu,Events:m},I.debugging=v1}function _1(e){if(ph())return e?t:"debugging already enabled";if(!hu())return;const t=lh();return t.enabled=!0,h.write(ch,JSON.stringify(t),null,!0),S1(),e?t:"debugging enabled"}function E1(){if(!ph())return"debugging already disabled";g.commit("debugger/debuggingEnabled",!1);var e=lh();return e.enabled=!1,h.write(ch,JSON.stringify(e),null,!0),I.debugging=null,delete I.debugging,k("#pendo-client-debugger").remove(),"debugging disabled"}E.extend(function(e){C.debug(e,{contexts:["debug"]})},v1);const C1=(e,t,n)=>{if(t.getters["frames/leaderExists"]())return n.resolve();const i=n.defer();return e.on("leaderChanged",()=>{i.resolve()}),i.promise},T1=function(){let t,o;return{name:"DebuggerLauncher",initialize:function(n,e){const{Events:i,q:r}=e;o=e.store,C1(i,o,r).then(()=>{o.dispatch("debugger/init"),o.getters["frames/isLeader"]()&&S1()}),Na("pendo-debugger::launch",(e,t)=>{e.config.apiKey===n.apiKey&&C1(i,o,r).then(()=>{t.source.postMessage({type:"pendo-debugger::ready",apiKey:n.apiKey},t.origin),!ph()&&o.getters["frames/isLeader"]()&&_1(!1)})}),window.addEventListener&&window.addEventListener("securitypolicyviolation",a);(t=n).isDebuggingEnabled=(e=!1)=>ph(e),n.enableDebugging=_1,n.disableDebugging=E1,n.addDebuggingFunctions=I1},teardown:function(){La("pendo-debugger::launch"),window.removeEventListener("securitypolicyviolation",a),t.debugging&&t.debugging.teardown&&t.debugging.teardown();E1()}};function a(e){var{blockedURI:e,documentURI:t,originalPolicy:n,violatedDirective:i}=e;e&&-1!==e.indexOf("pendo")&&o.dispatch("debugger/onCspError",{blockedURI:e,documentURI:t,originalPolicy:n,violatedDirective:i})}}(),x1=function(){let i,a=0,s,d,u,c,l=[];const p=100,h=9;let f;const o=4,g=500,m=["TEXTAREA","INPUT"];let v=!0,y={},n,b,r;const w="previous_page_loads";let S;const I="errorClickLogging",_=1500;let E=!1;return{name:"FrustrationEvent",initialize:function(e,t){S=e,c=S._,i=t,a=0,l=[],f=[],y={},E=i.ConfigReader.get(I),this.detachErrorEvent=i.attachEvent(window,"error",L,!0),this.detachDocumentEvents=function(){var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange","visibilitychange","selectionchange","scroll"],t=[];for(var n=0;n<e.length;n++)switch(e[n]){case"selectionchange":t.push(i.attachEvent(window,e[n],x,!0));break;case"visibilitychange":t.push(i.attachEvent(window,e[n],()=>{T(250)},!0));break;default:t.push(i.attachEvent(window,e[n],T,!0))}return t}(),i.Events.on("eventCaptured",F),i.agentStorage.registry.addSession(w),S.sniffer.MutationObserver&&(e=ut("MutationObserver"),(n=new e(k)).observe(S.dom.getBody(),{childList:!0,attributes:!0,subtree:!0}))},teardown:function(){i.Events.off("eventCaptured",F),this.detachErrorEvent&&(this.detachErrorEvent(),this.detachErrorEvent=null);if(this.detachDocumentEvents){for(var e=0;e<this.detachDocumentEvents.length;e++)this.detachDocumentEvents[e]();this.detachDocumentEvents=null}n&&n.disconnect()},addErrorClickLog:R,getErrorEventTarget:N,checkErrorEvent:L,observeDOMMutation:k,checkFrustrationEvent:F};function C(t="undefined"==typeof performance||"function"!=typeof performance.now?Infinity:performance.now()){(l=c.filter(l,e=>t-e.timestamp<=p)).length&&Dt(C,p)}function T(e=g){v=!1,c.each(y,e=>{clearTimeout(e)}),y={},Dt(()=>{v=!0},e)}function x(){var e=document.getSelection().toString();(b||e.length)&&(T(),b=!!e.length)}function k(e){e.length&&T()}function t(e){return e&&!(e instanceof HTMLScriptElement&&e instanceof HTMLLinkElement&&e instanceof HTMLBodyElement)}function A(e){return e&&t(e.element)}function O(e,t){var{frustrationTypes:n=[]}=e;c.contains(n,t)||(n.push(t),e.frustrationTypes=n)}function R(e,t){let n;var{detail:i={}}=t;(n=(A(i)&&i.error?i.error:t).message)&&n.length>_&&(n=n.substring(0,_)),e.errorClickLog=n}function M(e,t){var n=t.target&&"A"===t.target.tagName&&t.target.hasAttribute("href"),i=t.target&&!c.contains(m,t.target.tagName);if(v&&!b&&i&&!n){var r=e;const o=Dt(()=>{delete y[o],O(r,"deadClick")},g);y[o]=o}l.length>h&&l.pop(),l.unshift({target:t.target,activeElement:document.activeElement,browser_time:e.browser_time,timestamp:t.timeStamp}),Dt(C,p),c.each(f,e=>{L(e)}),s?(i=t,e.browser_time-s<=1e3&&Math.abs(d-i.x)<=30&&Math.abs(u-i.y)<=30?a++:(a=1,d=t.x,u=t.y),s=e.browser_time,4===a&&(s=null,O(e,"rageClick"))):(s=e.browser_time,d=t.x,u=t.y,a=1)}function N(e){if(t(e.target))return{detail:e={}}=e,A(e)?e.element:t(document.activeElement)?document.activeElement:void 0}function L(t){const n=N(t);if(n){const i=c.find(l,e=>(e.target===n||e.activeElement===n)&&t.timeStamp-e.timestamp<p);if(i){const r=e=>e.browser_time===i.browser_time&&"click"===e.type;var e=c.find(S.buffers.events,r)||c.find(S.buffers.silos,e=>c.find(e,r));e&&(O(e,"errorClick"),E)&&R(e,t)}else c.contains(f,t)||f.push(t),f.length>o&&f.pop()}}function P(e){r=function(){let e=i.sessionStorage.getItem(w);return null!=e&&0<e.length&&(e=JSON.parse(e)),c.isArray(e)?e:[]}(),function(e){var t,n;if(!(r.length<2))return t=r[0],n=r[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}(e)&&O(e,"uTurn"),2===r.length&&r.shift(),r.push({url:e.url,browser_time:e.browser_time}),e=r,i.sessionStorage.setItem(w,JSON.stringify(e))}function F(e){var t=e.data[0],e=e.data[1],e=("click"===t.type&&e&&M(t,e),"load"===t.type&&P(t),"submit"!==t.type&&"change"!==t.type||T(),c.has(e,"target")&&c.contains(m,e.target.tagName));"focus"===t.type&&e&&T()}}(),k1=function(){let n,i,o;const a=[];let e=[];return{name:"EmbeddedGuides",activeEmbeddedGuides:a,initialize:function(e,t){n=t,i=e,o=i._,function(e){e.getEmbeddedGuides=A1,e.getActiveEmbeddedGuides=O1}(e),n.Events.on("deliverablesLoaded",d),n.Events.on("guideLoopStopped",s),n.Events.on("guideListChanged",h),n.Events.on("urlChanged",u),n.GuideLoop.addUpdatePhase(r),n.guides.addProcessor(c),n.GuideActivity.registerGuideResolver(p),this.removeResizeEvent=e.attachEvent(window,"resize",l)},teardown:function(){d(),n.Events.off("deliverablesLoaded",d),n.Events.off("guideLoopStopped",s),n.Events.off("guideListChanged",h),n.Events.off("urlChanged",u),n.GuideLoop.removeUpdatePhase(r),n.guides.removeProcessor(c),n.GuideActivity.removeGuideResolver(p),this.removeResizeEvent&&this.removeResizeEvent();e.length=0}};function r(){o.forEach(a,function(e){e.process()})}function s(){o.forEach(a,function(e){e.isShownInThisFrame()&&e.hide()})}function d(){e=o.toArray(a),n.guides.removeDisplayableGuides("embeddedGuides"),a.length=0}function u(){o.forEach(a,function(e){e.forceShowFirstStep=!!o.get(e,"attributes.restartOnReload")})}function c(t){var e;return!(e=t)||!e.launchMethod||"embed"!==e.launchMethod||(o.some(a,({id:e})=>e===t.id)||a.push(t),!1)}function l(){Lm()||o.forEach(a,function(e){e=e.getActiveStep();e&&!i.ignoreResize&&e.redraw()})}function p(n){if(a.length){var i="pendo-base-";if(o.isString(n.id)&&0===n.id.indexOf(i)){var r=n.id.substring(i.length);let e,t;return(e=o.find(a,e=>{t=o.find(e.steps,e=>{if(e.id===r)return e});return!!t}))&&t?{guide:e,step:t}:null;return}else return o.isObject(n.parentElem)?p(n.parentElem):null}return null}function h(){o.each(e,function(t){var e=o.findIndex(a,function(e){return e.id===t.id});-1===e&&t.isShownInThisFrame()?t.hide():t.isFrameProxy||(a[e]=t)}),e.length=0,n.guides.registerDisplayableGuides("embeddedGuides",a),o.map(a,function(e){!function({globalPendo:o,pluginApi:e}){const a=o["_"],i=e["store"],r=(this.process=function(){let e=null;var t,n=a.get(this,"attributes.embedConfig.selector"),i=a.get(this,"attributes.embedConfig.method"),n=a.first(o.Sizzle(n)),r=this.isShownInThisFrame();n&&r&&(t="#pendo-guide-container-"+a.get(this.getActiveStep(),"id"),e=!!o.Sizzle(t,n).length),!r&&n&&this.shouldAutoDisplay()?"replace"===i&&o.Sizzle('[id^="pendo-guide-container"]',n).length||this.show("embed"):!r||n&&e||this.hide()},this.getActiveStep=function(){return this?a.find(this.steps,function(e){return e.isShown()}):null},this.shouldAutoDisplay=function(){return this.shouldShowSnoozedGuide()||this.shouldRepeatGuide()||a.all(this.steps,function(e){return e.shouldRepeat()||!e.isSnoozed()&&"dismissed"!==e.seenState})},this.show=function(e){var t,n=a.first(this.steps);return this.forceShowFirstStep?(this.forceShowFirstStep=!1,n.show("reason")):(t=this.steps.map(e=>a.get(i,"state.guideState.steps."+e.id,r(e))),(t=a.max(t,function({time:e}){return e}))&&"advanced"==t.state&&!t.destinationStepId?this.findStepById(t.guideStepId).dismiss():(this.nextStep(t)||n).show(e))},this.hasOwnProperty("forceShowFirstStep")||(this.forceShowFirstStep=a.get(this,"attributes.restartOnReload")),this.isShownInThisFrame=function(){return a.any(this.steps,function(e){return e.isRendered()||e.isLocked()})},({id:e,guideId:t,seenReason:n,seenState:i,lastSeenAt:r,destinationStepId:o})=>({guideId:t,guideStepId:e,seenReason:n,state:i,time:r,destinationStepId:o}))}.call(e,{globalPendo:i,pluginApi:n}),o.map(e.steps,function(e){!function({pluginApi:n}){if(this._onShown||Object.defineProperty(this,"_onShown",{value:this.onShown,writable:!1,configurable:!1}),!this._onShown)return null;this.onShown=function(e){var t=!this.lastSeenAt||!!n.ConfigReader.get("enableAllEmbeddedGuideEvents");return this._onShown(e,t)}}.call(e,{pluginApi:n,_:o})})})}}();function A1(){return k1.activeEmbeddedGuides}function O1(){return k1.activeEmbeddedGuides.filter(e=>e.isShown())}const R1="sessionId";class M1{constructor(){this.name="SessionManager"}initialize(e,t){this.api=t,this.pendo=e,this.subscriptions=[this.api.attachEvent(this.api.Events,"eventCaptured",E.bind(this.eventCaptured,this))],this.inactivityDuration=this.api.ConfigReader.get("inactivityDuration",18e5),this.api.agentStorage.registry.addLocal(R1),this.suffix=this.api.ConfigReader.get("identityStorageSuffix")}teardown(){E.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0}isExpired(e,t){e=E.get(e,"timestamp");return!this.pendo._.isNumber(e)||t-e>this.inactivityDuration}eventCaptured(t){if(t&&t.data&&t.data.length){var t=t.data[0],n=t.browser_time||(new Date).getTime();let e=this.sessionInfo();this.isExpired(e,n)&&(e=this.clearSessionInfo(),this.api.Events.sessionChanged.trigger()),this.storeLastInteractionEventInformation(e,n),t.sessionId=e.sessionId}}sessionInfo(e=this.pendo.randomString(16)){let t=this.api.agentStorage.read(R1,!1,this.suffix)||this.api.agentStorage.read(R1);return t||(t=JSON.stringify({sessionId:e,timestamp:(new Date).getTime()}),this.api.agentStorage.write(R1,t,undefined,!1,!0,this.suffix)),JSON.parse(t)}clearSessionInfo(){return this.api.agentStorage.clear(R1),this.api.agentStorage.clear(R1,!1,this.suffix),this.sessionInfo()}storeLastInteractionEventInformation(e,t){e.timestamp=t,this.api.agentStorage.write(R1,JSON.stringify(e),undefined,!1,!0,this.suffix)}}var N1=new M1;function L1(e,t,s,d){return new(s=s||Jt)(function(n,i){function r(e){try{a(d.next(e))}catch(t){i(t)}}function o(e){try{a(d["throw"](e))}catch(t){i(t)}}function a(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,o)}a((d=d.apply(e,t||[])).next())})}class P1{constructor(){this.name="SegmentFlags"}initialize(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))}teardown(){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))}handleReady(){this.ready=!0,this.requestSegmentFlags()}requestSegmentFlags(){if(this.ready){var 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");let e=this.api.transmit.buildBaseDataUrl(n,this.pendo.apiKey,t);var r,n=this.api.agent.getJwtInfoCopy();try{e.length>this.api.constants.URL_MAX_LENGTH||!this.pendo._.isEmpty(n)?(delete t.jzb,e=this.api.transmit.buildBaseDataUrl("segmentflag.json",this.pendo.apiKey,t),r=this.pendo._.extend({events:i},n),this.postLoad(e,r)):"script"===this.pendo.LOADER?this.scriptLoad(e):this.getLoad(e)}catch(o){this.api.log.error("Failed to load segment flags",{error:o})}}}segmentsPayload(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)}scriptLoad(e){this.pendo.loadResource(e,this.pendo._.noop)}getLoad(t){return L1(this,void 0,void 0,function*(){var e=yield this.pendo.ajax.get(t);this.segmentsPayload(e.data)})}postLoad(t,n){return L1(this,void 0,void 0,function*(){var e=yield this.pendo.ajax.postJSON(t,n);this.segmentsPayload(e.data)})}}var F1=new P1;const $1=["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"],D1=new RegExp(`(${$1.join("|")})`,"i"),U1=["facebook","twitter","x","linkedin","instagram","pinterest","tiktok","snapchat","twitch","reddit","quora","tumblr","flickr","discord","twitch","whatsapp","telegram","weibo","qq","line"],G1=new RegExp(`(${U1.join("|")})`,"i"),j1=["youtube","vimeo","dailymotion","bilibili","youku","tencent","iqiyi","peertube","rutube","metacafe","veoh","break","vidyard","wistia","brightcove","jwplayer","kaltura","sproutvideo"],B1=new RegExp(`(${j1.join("|")})`,"i"),z1=["amazon","ebay","walmart","etsy","shopify","shop","target","bestbuy","costco","temu","alibaba","aliexpress"],H1=new RegExp(`(${z1.join("|")})`,"i");const W1=new RegExp(`(${["google performance max","microsoft audience network","facebook audience network"].join("|")})`,"i");function q1(e,t){return"self"!==t&&"direct"!==t&&null!==t.match(e)}function V1({referrer:e,currentHost:t}){if(!e||""===e)return"direct";e=new qn(e).hostname;let n="self";return n=e!==t?null==e?void 0:e.toLowerCase():n}const K1=new RegExp("^(.*cp.*|ppc|retargeting)$"),J1=new RegExp("(.*email.*|.*e_mail.*|.*e mail.*|.*e-mail.*)","i"),Z1=[[undefined,({medium:e,source:t,referrer:n,gclid:i,fbclid:r})=>!(e||t||"self"!==n||i||r)],["Direct",({source:e,medium:t,referrer:n})=>!(t||e&&"direct"!==e||"direct"!==n)],["Cross-network",({source:e,medium:t})=>"cross-network"===t||e.match(W1)],["Paid Search",({source:e,medium:t,gclid:n,_:i})=>n||"paid-search"===t||t.match(K1)&&i.contains($1,e)],["Paid Social",({source:e,medium:t,fbclid:n,_:i})=>n||"paid-social"===t||t.match(K1)&&i.contains(U1,e)],["Paid Video",({medium:e,source:t,_:n})=>"paid-video"==e||e.match(K1)&&n.contains(j1,t)],["Paid Shopping",({medium:e,source:t,referrer:n,_:i})=>"paid-shopping"==e||"shopping"==e||(q1(H1,n)||i.contains(z1,t))&&e.match(K1)],["Display",({medium:e,_:t})=>t.contains(["display","cpm","banner","interstitial","expandable","programmatic"],e)],["Paid Other",({medium:e})=>"paid-other"==e||e.match(K1)],["Organic Search",({source:e,medium:t,referrer:n,_:i})=>"organic"===t&&i.contains($1,e)||!t&&q1(D1,n)],["Organic Social",({source:e,medium:t,referrer:n,_:i})=>!t&&q1(G1,n)||"social"===t||i.contains(U1,e)&&!t.match(K1)],["Organic Video",({medium:e,referrer:t})=>"video"===e||!e&&q1(B1,t)],["Organic Shopping",({medium:e,referrer:t})=>"organic-shopping"===e||!e&&q1(H1,t)],["Email",({source:e,medium:t})=>null!==t.match(J1)||null!==e.match(J1)||"newsletter"===t],["Affiliates",({medium:e})=>"affiliate"===e||"partner"===e],["SMS",({source:e,medium:t})=>"sms"===e||"sms"===t],["Push Notifications",({source:e,medium:t})=>t.endsWith("push")||0<=t.indexOf("mobile")||0<=t.indexOf("notification")||"firebase"===e],["Audio",({medium:e})=>"podcast"===e||"audio"===e],["Referral",({medium:e,referrer:t})=>"referral"===e||!!t&&"self"!==t&&"direct"!==t],["Other",({medium:e,source:t})=>!!e||!!t]],Y1="utm",X1="enableFullUtmReferrer";class Q1{constructor(){this.name="WebAnalytics"}initialize(e,t){this.pendo=e;var n=(this.api=t)["ConfigReader"],n=(n.addOption(X1,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),e._)["bind"];this.subscriptions=[t.attachEvent(t.Events,"eventCaptured",n(this.addUtmToEvent,this)),t.attachEvent(t.Events,"sessionChanged",n(this.sessionChanged,this))];let i=this.loadParameters(t.agentStorage);i&&!e._.isEmpty(i)||(i=this.extractParameters(window.location.href,document.referrer)),this.api.agentStorage.registry.addLocal(Y1),this.storeParameters(i,t.agentStorage),this.suffix=this.api.ConfigReader.get("identityStorageSuffix")}extractParameters(e,t){var n,i,r,o,a,s,d=new qn(e).hostname,u=V1({referrer:t,currentHost:d}),e=this.api.util.parseUrl(e);return e?(e=e["query"],s=e.utm_source,n=e.utm_medium,i=e.utm_campaign,r=e.utm_term,o=e.utm_content,a=e.gclid,e=e.fbclid,(s={source:s,medium:n,campaign:i,term:r,content:o}).channel=this.calculateUtmChannel({referrerValue:u,utm:s,gclid:a,fbclid:e}),t&&this.api.ConfigReader.get(X1)?s.referrer=t:"self"===u?s.referrer=d:"direct"!==u&&(s.referrer=u),s):{}}calculateUtmChannel({referrerValue:e,utm:t,gclid:n,fbclid:i}){var r=(null==(r=t.medium)?void 0:r.toLowerCase())||"",t=(null==(t=t.source)?void 0:t.toLowerCase())||"";const o={_:this.pendo._,referrer:e,source:t,medium:r,gclid:n,fbclid:i};e=this.pendo._.find(Z1,e=>e[1](o));if(e)return e[0]}storeParameters(e,t){0<this.pendo._.size(e)&&t.write(Y1,JSON.stringify(e),undefined,!1,!0,this.suffix)}loadParameters(e){e=e.read(Y1,!1,this.suffix)||e.read(Y1);return e?JSON.parse(e):null}teardown(){for(var e of this.subscriptions)e();this.subscriptions.length=0}addUtmToEvent(e){let t;try{t=this.loadParameters(this.api.agentStorage)}catch(n){}t&&(e.data[0].utm=t)}sessionChanged(){var e=this.api.agentStorage,t=(e.clear(Y1),e.clear(Y1,!1,this.suffix),this.extractParameters(window.location.href,document.referrer));this.storeParameters(t,e)}}var ew=new Q1;const tw={children:[],props:{"class":"_pendo-step-container","data-layout":"tooltipBlank",id:"pendo-base"},type:"div"},nw={css:[],props:{scoped:"scoped",type:"text/css"},type:"style"},iw={children:[],props:{"class":"_pendo-step-container-size","data-relative-alignment":!0,"data-vertical-alignment":"Relative to Element",id:"pendo-g-validation-tooltip-container",style:{display:"block",width:"300px","z-index":3e5}},type:"div"},rw={children:[],props:{"class":"_pendo-step-container-styles",id:"pendo-guide-container",role:"dialog","data-caret-enabled":!0,"data-caret-height":"15px","data-caret-width":"15px",style:{"background-color":"rgba(255, 255, 255, 1)",border:"1px solid #BBBBBB","border-radius":"5px",padding:"8px 12px","box-shadow":"0px 0px 10px 0px rgba(190, 190, 190, 0.5)"},tabindex:-1},type:"div"},ow={children:[],props:{"class":"_pendo-text-paragraph",style:{}},type:"div"};function aw(e,t){return{content:t,props:{id:"text-"+e,"class":"_pendo-text-plain",style:{color:"gray",margin:0}},type:"p"}}function sw(e){var e=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement,t=document.createElement("div");return t.style.marginRight="5px",t.appendChild(e),t}const dw=`
|
|
8
|
+
var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{var e=u[t.id];if(e&&e.language!==t.language&&delete u[t.id],!u[t.id]){var n,i=[],r={deferred:{},language:t.language},o=!1;if(u[t.id]=r,bu.usesXhr()&&t.domUrl?(r.deferred.domJson=y.defer(),Tr.get(l(t.domUrl)).then(function(e){r.domJson=Hu(e.data);var e=e.data;e=e,C.isObject(e)&&e.hasOwnProperty("type")&&e.hasOwnProperty("children")&&e.hasOwnProperty("props")?r.deferred.domJson.resolve():(x.critical(new Error("Response from the guide was not in proper JSON format")),r.deferred.domJson.reject())})["catch"](function(e){x.critical(e),m.resourceFetchFail.trigger(t,e),r.deferred.domJson.reject("Failed to load content")}),i.push(r.deferred.domJson.promise),o=!0):t.domJsonpUrl&&(r.deferred.domJson=y.defer(),n=_a(l(t.domJsonpUrl),function(e){k.removeNode(n),e&&m.resourceFetchFail.trigger(t,e)},!0),i.push(r.deferred.domJson.promise),o=!0),t.contentUrlJs&&!f.get("preventCodeInjection")){r.deferred.content=y.defer();var a=_a(l(function(e){if(dt()){var t=e.replace(/^https?:\/\/[^/]+\/guide-content\//,"").split("/"),n=t[0],n=$A.get("$Resource.pendoGuide"+function(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}(Ze(n)));if(C.isString(n))return n+"/"+t.join("/")}return e}(t.contentUrlJs)),function(e){k.removeNode(a),e&&m.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise),t.contentUrlCss&&(r.deferred.css=y.defer(),_a({url:l(t.contentUrlCss),type:"text/css"},function(){r.deferred.css.resolve()}),i.push(r.deferred.css.promise))}else if(t.contentUrl&&!f.get("preventCodeInjection")){r.deferred.content=y.defer();var s=_a(function(e,t){if(!C.isString(e))return e;var n=C.indexOf(e,"?");return n<0?e+t:e.substring(0,n)+t+e.substring(n)}(l(t.contentUrl),".js"),function(e){k.removeNode(s),e&&m.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise)}else if(!o)return y.reject("fetchedDomContent is still false");r.deferred.promise=y.all(i).then(function(){return C.omit(r,"deferred")})}return u[t.id].deferred.promise}catch(d){throw m.resourceFetchFail.trigger(t,d),d}},reset:function(){u={}},guideContent:function(e,t,n,i,r){var o,a,s;C.isString(n)&&(o=n,a=e,s=t,n=C.reduce(d,(e,t)=>t(e,a,s),o),C.isFunction(i)||(o=n,i=/<%/.test(o)&&/%>/.test(o)?C.template(n):C.constant(n)),o=u[e+t])&&o.deferred.content&&(o.content=n,o.template=i,o.script=r,o.deferred.content.resolve())},receiveDomStructureJson:function(e,t,n){(e=u[e+t])&&e.deferred.domJson&&(e.domJson=Hu(n),e.deferred.domJson.resolve())}}}(),Wu=(qu.state={},qu.queue=[],qu.pending=function(){return C.reduce(qu.state,(e,t)=>e+(t.loaded?0:1),0)},qu.reset=function(){ju.reset(),qu.state={},qu.queue=[]},qu.prefetch=function(e){var t;return qu.hasContent(e)?C.get(qu.state[Ju(e)],"promise"):(t=y.defer(),qu.queue.push([t,e]),t.promise)},qu.processPrefetch=function(e=10){return qu.queue.length?(e=qu.queue.splice(0,Math.max(e-qu.pending(),0)),y.all(C.map(e,t=>qu.fetchContent(t[1]).then(e=>{t[0].resolve(e)})["catch"](e=>{t[0].reject(e)})))):y.resolve()},qu.fetchContent=function(t){var e=Ju(t);if(!(i=qu.state[e])){var n,i={},r=t.getGuide();if(r.control)return y.resolve();r&&r.language&&(n=r.language);var r=t.guideId+t.id,o=C.extend({id:r,language:n,guideId:t.guideId},C.pick(t,"contentUrl","contentUrlCss","contentUrlJs","domJsonpUrl","domUrl","domHash","contentHash","contentJsHash"));i.promise=Tu.verify(o).then(function(){return i.verified=!0,ju.load(o)}).then(function(e){return i.loaded=!0,e}),qu.state[e]=i}return i.promise.then(function(e){C.extend(t,e)})},qu.hasContent=function(e){return ge(e.content)||ge(e.domJson)},qu);function qu(n){var i=this,t=1;return(i.contentUrl||i.domJsonpUrl)&&(C.extend(i,{fetchContent:function(e=!1){return e?qu.prefetch(i):qu.fetchContent(i)}}),i.after("render",function(e){!function(e){var t=C.indexOf(n.steps,i);C.chain(n.steps).rest(t+1).first(e).each(function(e){C.isFunction(e.fetchContent)&&e.fetchContent()}).value()}(t)})),i}function Ju(e){var t=e.getGuide(),t=t&&t.language?t.language:"default";return e.id+"."+t}var Vu=function(){var e=m.runtime;const r=[];function o(e,n,i,r){return C.filter(e,function(e){if(C.isFunction(e[r])){if(C.isFunction(e.test))try{return e.test(n,i,I)}catch(t){return x.critical("Error in global script test code block",{error:t}),!1}return C.isRegExp(e.regex)?e.regex.test(i.name)||e.regex.test(n.name):!0}})}function t(e,t,n="script"){var i=[];return"script"===n&&C.isFunction(e.script)&&i.push(e.script),C.size(r)&&(e=o(r,e,t,n),C.each(e,function(e){i.push(e[n])})),i}function i(n,i,r){const o=r.guide;o&&C.all(t(r,o,"beforeMount"),function(e){try{return e.call(n,i),!i.cancel}catch(t){return x.critical("Exception thrown running beforeMount for: "+JSON.stringify({guideId:o.id,stepId:r.id}),{error:t}),!1}})}var a=pn.call({}),s={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 d(e){return s[e]}function n(n){this.step=n,C.each(["read","write","clear"],function(t){this[t]=h[t],this[t+"ByGuide"]=function(){var e=C.first(arguments)+":"+C.get(n,"guide.id");return h[t].apply(this,[e].concat(C.rest(arguments)))}},this);var e=C.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=C.partial(a.off,"afterUnmounted",e),a.on("afterUnmounted",e)}return e.on(function(e){var t,n=e.data[0];if(e.step=n,delete e.data,d(e.type))return-1<C.indexOf(["beforeUnmount","unmounted"],e.type)&&(t="active"===(t=n).seenState?"hidden":t.seenState,e.reason=t,"unmounted"===e.type)&&a.trigger(t,e),t=s[e.type].type,a[t](e.type,e),"unmounted"===e.type?a.trigger("afterUnmounted",e):"beforeMount"===e.type&&i(this,e,n),"triggerCancelable"!==t&&e.cancel&&delete e.cancel,e}),n.prototype.on=function(e,t){var n,i;d(e)?(s[e].fromUnmount&&(t=C.once(t)),n=this.step,i=t,t=qn(t=e=>{var t=e["step"];if(t.id===n.id)return i(e);x.debug("called guide runtime callback on wrong step")}),a.on(e,t),this.purge=C.compose(this.purge,C.partial(a.off,e,t))):x.info("GUIDE-RUNTIME: Warning! Unregisterable event type "+e)},{initialize:function(){var e=f.get("guides.globalScripts");C.each(e,Vu.addGlobalScript)},teardown:function(){C.each(r,Vu.removeGlobalScript)},addGlobalScript:function(e){var t;e=function(t){const e=C.without(C.keys(t),"script","test","regex","beforeMount");if(e.length){const n=t.script;t.script=function(){if(C.each(e,function(e){d(e)&&this.on(e,t[e])},this),C.isFunction(n))return n.apply(this,arguments)}}return t}(e),t=e,!C.isFunction(t.script)&&!C.isFunction(t.beforeMount)||t.test&&!C.isFunction(t.test)||t.regex&&!C.isRegExp(t.regex)?x.critical("Error adding invalid GlobalScript via API"):r.push(e)},removeGlobalScript:function(e){0<=(e=C.indexOf(r,e))&&r.splice(e,1)},getContext:function(e){return new n(e)},runCustomScripts:function(i,r){C.each(t(i,r),function(e){try{var t=Vu.getContext(i);e.call(t,i,r,I)}catch(n){x.critical("Exception thrown running code block for: "+JSON.stringify({guideId:r.id,stepId:i.id}),{error:n})}})}}}();function Ku(e){return e.props&&e.props.id&&0===e.props.id.indexOf("pendo-g-")?e:e.children?C.find(e.children,Ku):void 0}function $u(e,t){if(t(e))return e;if(e.children)for(var n=0;n<e.children.length;n++){var i=$u(e.children[n],t);if(i)return i}return!1}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}}function Yu(e,t,n,i=document.head){let r=document.getElementById(t);return r||((r=document.createElement("style")).setAttribute("id",t),e.get("inlineStyleNonce")&&r.setAttribute("nonce",e.get("inlineStyleNonce")),r.innerHTML=n,r=i.appendChild(r)),r}var Xu={buildNodesFromTemplate:function(e,t,n,i,r){var o=i||O,a=r||I.BuildingBlockGuides.buildNodeFromJSON;switch(e){case"pendo_resource_center_module_list_item":return function(p,h,f,g){var e=p.templateChildren;return C.reduce(e,function(e,t,n){var i=F.findResourceCenterHomeView(f),r=C.find(f,function(e){return e.id===t.id});if(I.designer)r=t,i=C.find(f,function(e){return C.get(e,"attributes.resourceCenter.isTopLevel")});else{if(!r)return e;if(!r.hasResourceCenterContent)return C.each(r.children,function(e){e=N(e);e&&e.control&&e.steps[0].onControlGuide("control")}),e}var o,a,s,d=JSON.parse(JSON.stringify(p)),u=(delete d.templateChildren,d.props.id=d.props.id+"-"+n,d.props["data-pendo-module-guide-id"]=r.id,d.actions||(d.actions=[]),{action:"renderResourceCenterModule",source:d.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:r.id}],uiMetadata:{},eventType:"click"}),u=(d.props["data-localization-direction"]&&u.parameters.push({name:"transitionDirection",type:"string",value:d.props["data-localization-direction"]}),I.designer||d.actions.push(u),C.get(i,"attributes.notificationBubble")),l=C.get(i,"attributes.notifications"),u=(u&&l&&("AnnouncementsModule"===C.get(r,"attributes.resourceCenter.moduleId")&&(o=r.id),o="chat"===C.get(r,"attributes.resourceCenter.integrationName")?"chat":o)&&(d.props["data-pendo-notification-id"]=o,l=d,r=u,u=o,o=(i=i).attributes.notifications.individualCounts[o],l=$u(l,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-row")}))&&(s=C.find(l.children,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-text")}))&&s.props&&s.props.style&&(c=parseInt(s.props.style.width,10))&&!isNaN(c)&&(a=l.children.indexOf(s),c=c-40+"px","100%"!==s.props.style.width&&(s.props.style.width=c),(c="rtl"===s.props.dir)?s.props.style["padding-left"]="40px":s.props.style["padding-right"]="40px",s.props.style["box-sizing"]="content-box",s={type:"div",children:[{type:"div",content:String(i.attributes.notifications.individualCounts[u]),props:{style:{position:"relative",top:"50%","font-weight":r["font-weight"],"font-family":r["font-family"],color:r.color}}}],props:{id:"pendo-home-view-bubble","class":"_pendo-home-view-bubble",style:Object.assign(Object.assign(Object.assign({position:"absolute","border-radius":"20px",height:"26px","line-height":"0px",padding:"0px 10px"},!c&&{right:"20px"}),c&&{left:"20px"}),{top:"50%","margin-top":"-14px","box-sizing":"content-box","background-color":r["background-color"],display:o?"block":"none"}),"aria-hidden":!0}},l.children.splice(a+1,0,s)),$u(d=el(d,t,d.props.id,n),function(e){e=C.get(e,"props.class");return e&&0<=e.indexOf("_pendo-resource-center-module-list-item-text-container")})),i=$u(d,function(e){e=C.get(e,"props.id");return e&&0<=e.indexOf("pendo-right-caret")}),c=$u(d,function(e){e=C.get(e,"props.id");return e&&0<=e.indexOf("pendo-home-view-bubble-"+n)});return u&&(u.props["aria-hidden"]=!0,i)&&(i.props["aria-labelledby"]=u.props.id+" "+(c&&c.props.id)),e.concat(g(d,h,f))},[])}(t,n,o,a);case"pendo_resource_center_guide_list_item":return function(o,a,s,d){var e=o.templateChildren;return C.reduce(e,function(e,t,n){var i,r=tl(s,t);return r?(i=JSON.parse(JSON.stringify(o)),t.keywords&&(i.props["data-_pendo-text-list-item-1"]=t.keywords),delete i.templateChildren,i.props.id=i.props.id+"-"+n,i.actions||(i.actions=[]),r={action:"showGuide",source:i.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:r.id},{name:"reason",type:"string",value:"launcher"}],uiMetadata:{},eventType:"click"},I.designer||i.actions.push(r),i=el(i,t,i.props.id,n),e.concat(d(i,a,s))):e},[])}(t,n,o,a);case"pendo_task_list":return function(e,t,n,i){var r=e.templateChildren;C.filter(r,function(e){return tl(n,e)}).length?(e.children=C.filter(e.children,function(e){return"pendo_task_list_fallback_text"!==e.templateName}),function o(t,n){t.templateName&&(t.templateChildren=n);if(!t.children||!t.children.length)return;for(let e=0;e<t.children.length;e++)o(t.children[e],n)}(e,r)):e.children=C.filter(e.children,function(e){return"pendo_task_list_item"!==e.templateName&&"pendo_task_list_progress_bar"!==e.templateName});F.updatePseudoStyleSelectors(e);r=i(e,t,n);return[r]}(t,n,o,a);case"pendo_resource_center_onboarding_item":case"pendo_task_list_item":return function(s,d,u,l){var e=s.templateChildren;return C.reduce(e,function(e,t,n){var i,r,o,a=tl(u,t);return a?(delete(i=JSON.parse(JSON.stringify(s))).templateChildren,i.props.id=i.props.id+"-"+n,i.props["data-pendo-show-guide-id"]=a.id,i.props["class"]+=" pendo-task-list-item",i.actions||(i.actions=[]),r={action:"showGuide",source:i.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:a.id},{name:"reason",type:"string",value:"launcher"}],uiMetadata:{},eventType:"click"},I.designer||i.actions.push(r),r=a.getTotalSteps(),o=a.getSeenSteps(),a.isComplete()&&(o=r),a=parseInt(o/r*100,10),$u(i,function(e){return e.svgWidgetId}).svgAttributes.fillCircle.percentComplete=a,t.hasOwnProperty("subtitle")?t.stepProgress=Qu(t.subtitle,{currentStep:o,totalSteps:r}):t.stepProgress="Step "+o+" of "+r,i=el(i,t,i.props.id,n),e.concat(l(i,d,u))):e},[])}(t,n,o,a);case"pendo_resource_center_onboarding_progress_bar":case"pendo_task_list_progress_bar":return function(e,t,n,i){var r=e.templateChildren||t.getGuide().attributes.resourceCenter.children,o=0,a=0,r=(C.forEach(r,function(e){e=tl(n,e);e&&(e.isComplete()?(o+=e.getTotalSteps(),a+=e.getTotalSteps()):(o+=e.getTotalSteps(),a+=e.getSeenSteps()))}),parseInt(a/o*100,10));isNaN(r)&&(r=0);r={totalPercentComplete:r+"%"};return $u(e=el(e=JSON.parse(JSON.stringify(e)),r),function(e){return e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-progress-bar-fill")}).props.style.width=r.totalPercentComplete,[i(e,t,n)]}(t,n,o,a);case"pendo_task_list_fallback_text":return[a(t,n,o)];case"pendo_resource_center_announcement_item":return function(c,e,n,p){e=e.getGuide().attributes.resourceCenter.children,e=C.reduce(e,function(e,t){t=tl(n,t);return t&&t.steps&&t.steps.length?e.concat(t):e},[]);if(!C.every(e,function(e){e=e.steps[0];return!!Wu.hasContent(e)}))return[];var t=F.getResourceCenter(),h=C.get(t,"attributes.notificationBubble");h&&(delete h.dir,"rtl"===c.props["data-localization-direction"])&&(h.dir="rtl");return C.map(e,function(e,t){var n,i,r,o,a,s,d,u="whatsnew"===C.get(e,"attributes.type"),l=JSON.parse(JSON.stringify(c));return l.props.id=l.props.id+"-"+t,l.props["data-pendo-announcement-guide-id"]=e.id,l.props["data-pendo-announcement-send-seen-event"]=!0,u?(t=l,u=h,s=p,n=Gu(r=e),(d=n.steps[0]).render(),Vu.runCustomScripts(d,n),i=(n=d.guideElement)[0].id,Yu(f,"pendo-whats-new-style-"+i,"#"+i+" h1::after { display:none; }",n[0]),u&&((o=nl(u)).props.style.top="20px"),!F.hasAnnouncementBeenSeen(r)&&o&&(t.props["class"]+=" pendo-unseen-announcement",t.children=[o]),i=s(t,d),n.appendTo(i),i):(u=l,r=h,o=p,d=Gu(t=e),s=t.steps[0],Vu.runCustomScripts(s,d),d=JSON.parse(JSON.stringify(s.domJson)),u.children=[d],r&&(a=nl(r),d=$u(u,function(e){return"pendo-guide-container"===e.props.id}),r=parseInt(u.props.style["padding-top"],10),d=parseInt(d.props.style["padding-top"],10),a.props.style.top=d+r+5+"px"),!F.hasAnnouncementBeenSeen(t)&&a&&(u.props["class"]+=" pendo-unseen-announcement",u.children.unshift(a)),delete u.templateName,(d=Zu("pendo-guide-container",u))&&(d.props.id=d.props.id+"-"+s.id),o(u,s))})}(t,n,o,a);case"pendo_guide_data_text_block":return function(e,t,n,i){var r=t.getGuide?t.getGuide():C.find(n,function(e){return e.id===t.guideId}),o=C.get(r,"attributes.dates."+r.language,!1);o=o?{showsAfter:o}:(o=C.get(r,"currentFirstEligibleToBeSeenAt")||C.get(r,"showsAfter")||C.get(r,"publishedAt"),o=o?new Date(o):new Date,r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][o.getMonth()]+" "+o.getDate()+", "+o.getFullYear(),{showsAfter:r});return r=el(r=JSON.parse(JSON.stringify(e)),o),[i(r,t,n)]}(t,n,o,a);default:return[]}},generateUnreadAnnouncementMiniBubble:nl,getGuidesInResourceCenterModule:function(e,i){e=e.attributes.resourceCenter.children;return C.reduce(e,function(e,t,n){t=tl(i,t);return t&&e.push(t),e},[])}};function Qu(e,n){return e.replace(/<%=\s*([A-Za-z_0-9$]+)\s*%>/gi,function(e,t){return C.isNull(n[t])||C.isUndefined(n[t])?e:n[t]})}function el(e,t,n,i){if(e.content&&(e.content=Qu(e.content,t)),e.props&&(e.props["aria-label"]&&(e.props["aria-label"]=t.ariaLabel?Qu(e.props["aria-label"],t):""),e.props.id)&&i!==undefined&&e.props.id!==n&&(e.props.id=e.props.id+"-"+i),e.children)for(var r=0;r<e.children.length;r++)el(e.children[r],t,n,i);return e}function tl(e,t){e=C.find(e,function(e){return e.id===(t.id||t)});if(I.designer)return t;if(e){if(!e.ineligibleForRC)return e;e.control&&e.steps[0].onControlGuide("control")}}function nl(e){var t={left:"0px"};return"rtl"===e.dir&&(t={right:"0px"}),{type:"div",children:[],props:{"class":"pendo-unread-announcement-mini-bubble",style:Object.assign(Object.assign({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"})}}}var il={buildSvgNode:function(e,t){switch(e){case"onboardingProgressCircle":case"taskListProgressCircle":return rl(t)}},createProgressCircleSvg:rl};function rl(e){var t,n,i,r,o,a,s;return Ee(9)?(n=(t=(t=e).svgAttributes).fillCircle.stroke,i=t.backgroundCircle.stroke,t=100<=(t.fillCircle.percentComplete||0),r=k($(I).createHTML('<div aria-hidden="true" focusable="false" class="pendo-progress-circle-ie"><div class="pendo-progress-circle-fill"></div></div>')),o=r.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=k($(I).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=k($(I).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)}var ol=function(e,t){return e<t},al=C.negate(ol);function sl(){var e=Ko();return vo(e)?Yo(e):((e=zo()).left=0,e.top=0,e.right=e.width,e.bottom=e.height,e)}function dl(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 ul(e){var t;if(e&&e.length)return t=vo(Ko())?Yo:wo,(e=C.reduce(e,function(n,e){var i;return la(e)?(i=t(e))?(C.each([["top",ol],["right",al],["bottom",al],["left",ol]],function(e){var t=e[0],e=e[1];n[t]&&!e(i[t],n[t])||(n[t]=i[t])}),n):void 0:n},{})).height=e.bottom-e.top,e.width=e.right-e.left,e}function ll(e,t){var n=sl(),e=ul(e)||{top:0,left:0,right:n.width,bottom:n.height,width:0,height:0};return{viewport:n,box:e,overlays:dl(n,e,t)}}function cl(e){var t=[],n=C.get(e,"attributes.blockOutUI",{});if(n.additionalElements=n.additionalElements||"",n.enabled&&e.element!==Ko()){t.push(e.element);for(var i=n.additionalElements.replace(/\s/g,"").split(","),r=0;r<n.additionalElements.length;r++)try{var o=k(i[r]);o&&C.each(o,function(e){t.push(e)})}catch(a){x.info("Additional element for blockOutUI is invalid selector",{contexts:["error"]})}}return t}var pl=null,hl=function(e){var t=!C.isEqual(e,pl);return pl=e,t},fl=null,gl=function(e){var t=!C.isEqual(e,fl);return fl=e,t},ml=null,vl=function(e){var t=!C.isEqual(e,ml);return ml=e,t},yl=function(e){return gl(e.viewport)||hl(e.box)||vl(e.overlays)};function bl(e){try{var t=ll(cl(e),C.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0}));yl(t)&&C.each(e.backdrop.children,function(n){var e=n.getAttribute("pendo-region"),e=t.overlays[e];C.each(e,function(e,t){n.style[t]=e+"px"})})}catch(n){x.info("Failed to update BlockOut ui",{contexts:["error"]})}}function wl(e){try{var t,n,i,r;if(!(0<k("._pendo-guide-backdrop_").length))return t=ll(cl(e),C.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0})),yl(t),n={"z-index":1e4,position:"fixed"},i=[],C.each(t.overlays,function(e,t){t=function(e,t){var n=k("div.pendo-backdrop-region-"+e);n.length||(n=k(document.createElement("div")).addClass("pendo-backdrop-region-"+e));return k(n).css(t).attr("pendo-region",e),n}(t,C.extend({},e,n));i.push(t)}),o=i,a=Zu("pendo-backdrop",e.domJson),C.each(["left","right","width","height","bottom","top"],function(e){delete a.props.style[e]}),s=k(document.createElement("div")).attr("id","pendo-backdrop").addClass("_pendo-guide-backdrop_"),C.each(a.props,function(n,i){C.each(o,function(e,t){"style"===i?e.css(a.props.style):"class"===i?e.addClass(n):"id"===i?e.attr(i,n+"-"+t):e.attr(i,n),s.append(e)})}),r=s,e.backdrop=r[0],r}catch(d){x.info("Failed to add BlockOut ui",{contexts:["error"]})}var o,a,s}var Sl="top",Il="bottom",El="left",Cl="right",xl="center";function _l(e,t,n){return n===Cl||n===El?n:(n=e.left,(t=(e=t.width)/3)<n&&n<2*t?xl:n<e/2?Cl:El)}var Tl={createBBTooltip:kl,getBBTooltipDimensions:Nl,determineBBHorizontalBias:_l,determineTooltipPosition:Ml,positionBBTooltipWithBias:Ll,calculateToolTipPositionForTopBottom:Fl,calculateToolTipPositionForLeftRight:Pl,buildTooltipCaret:Dl,styleTopOrBottomCaret:Gl,styleLeftOrRightCaret:Bl,buildBorderCaret:zl,determineBorderCaretColor:jl,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=Ku(e.domJson),(t?e.guideElement:e.guideElement.find("#"+n.props.id))[0]}(e);t&&(i=e.element||du(e),n=Wo(i),"none"!==A(e.elements[0]).display)&&(i=wo(i),a=e.attributes.layoutDir,e=e.guideElement,r=k(t).find("#pendo-guide-container"),o=r[0].style,t=A(t),t={height:parseInt(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&&Ul(t,o,r),a)&&Hl(a,r,o.layoutDir,t),e.css({top:o.top,left:o.left,position:n.fixed?"fixed":"absolute"}))},attachBBAdvanceActions:Ol,attachScrollHandlers:Rl,isBuildingBlockGuideRelativeToElement:function(e){return!(!e.domJson||!C.isObject(e.domJson)||!(e=Ku(e.domJson))||"Relative to Element"!==e.props["data-vertical-alignment"])},positionStepForTooltip:function(e,t,n){kl(t,e.element,e,n),e.hasBeenScrolledTo||(pa(e.element),cu(e.element,n,e.attributes.layoutDir),e.hasBeenScrolledTo=!0)}};function kl(e,t,n,i){var r,o,a,s,d,u;if(n.guideElement)return(r=n.guideElement).addClass(ou()?eu:Qd),0===(o=Wo(t)).height&&0===o.width?null:(t=wo(t),(e=$u(e,function(e){return"pendo-guide-container"===e.props.id}))?(u=n.attributes.layoutDir,d={height:i.offsetHeight,width:i.offsetWidth},a={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},Ol(n),e.props.style.border&&(e=e.props.style.border.split(" "),a.borderColor=e[2],a.borderWidth=parseInt(e[0],10)),e=Nl(o,d,a,u,t),n&&(n.dim=e),n&&C.isFunction(n.getGuide)&&(s=n.getGuide()),d=C.get(s,"attributes.resourceCenter"),o.fixed?(r.css({position:"fixed"}),i.style.position="absolute"):n&&d||(i.style.position="absolute"),a.height&&a.width&&Dl(r,e,a),u="300000",i&&i.style&&i.style["z-index"]&&(u=i.style["z-index"]),r.css({"z-index":u}),d||r.css({height:"auto",width:"auto",overflow:"visible"}),n.elementPathRule&&r.css({left:e.left,top:e.top,position:o.fixed?"fixed":"absolute"}),"top"===e.layoutDir&&e.hbias===El&&r.find("#pendo-watermark").css({top:"auto",bottom:"100%"}),Rl(n,Wl),r[0]):void 0)}function Rl(e,t){e&&C.isFunction(e.attachEvent)&&(ru()&&e.element===k.getBody()||(t=C.throttle(C.bind(t,e,e),10),e.attachEvent(window,"scroll",t,!0),aa(C.bind(e.attachEvent,e),e.targetElement,t)))}function Al(t,n){var e=k(n.elementPathRule)[0];n.attachEvent(e,t,function(e){k.data.set(e,"advanced",!0),wg(t,n)})}function Ol(e){e.attributes&&e.attributes.advanceActions&&e.elementPathRule&&(e.attributes.advanceActions.elementHover?Al("mouseover",e):e.attributes.advanceActions.elementClick&&Al("click",e))}function Nl(e,t,n,i,r){var o,a,s=zo(),i=i||"auto",t={width:Math.min(t.width,s.width),height:t.height},d=(t.layoutDir=i,t.hbias=_l(e,s,i),t.vbias=(o=e,d=s,(a=i)===Sl||a===Il?a:(a=o.top,(d=(o=d.height)/3)<a&&a<2*d?xl:a<o/2?Il:Sl)),t.layoutDir=Ml(t,s,r,i),Ll(t,e,s));return t.top=d.top,t.left=d.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 Ml(e,t,n,i){var r,o,a,s,d,u,l;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&&(l="bottom"),(i>2*t.height/3||e.hbias===xl)&&(l="top"),"top"===(l=r<e.width&&t.width-o<e.width?"bottom":l)&&n.top-e.height<0&&(l="bottom"),s&&a&&(e.hbias!==xl&&(l=e.hbias),d&&u||(u||(l="right"),d)||(l="left")),(l=l&&"bottom"!==l||!s||a?l:"top")||e.hbias)||"bottom")}function Ll(e,t,n){return"top"===e.layoutDir||"bottom"===e.layoutDir?Fl(e,n,t,e.layoutDir,e.hbias):Pl(e,n,t,e.vbias)}function Fl(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 Pl(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 Dl(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,Ul(i,t,n),e.find("#pendo-guide-container")[0].parentNode);e.appendChild(i),n.borderWidth&&(i=zl(i,n,t.layoutDir),e.appendChild(i))}function Ul(e,t,n){"top"!==t.layoutDir&&"bottom"!==t.layoutDir||Gl(e,t,n),"left"!==t.layoutDir&&"right"!==t.layoutDir||Bl(e,t,n)}function Gl(e,t,n){var i,r=zo();return e.style["border-left"]=n.width+"px solid transparent",e.style["border-right"]=n.width+"px solid transparent",e.style.right="",t.hbias===El?(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===Cl?(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 Bl(e,t,n){var i,r=zo();return e.style["border-top"]=n.width+"px solid transparent",e.style["border-bottom"]=n.width+"px solid transparent",e.style.bottom="",t.vbias===Sl?(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===Il?(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 zl(e,t,n){var i=e.cloneNode();return i.setAttribute("class","pendo-tooltip-caret-border"),i.style.zIndex=10,Hl(i,t,n,e),i}function Hl(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]=jl(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"),C.extend(e.style,r)}function jl(e,t){return"transparent"===e?e:t}function Wl(e){la(e.element)?(Tl.placeBBTooltip(e),k(e.elements[0]).css({display:"block"})):k(e.elements[0]).css({display:"none"})}function ql(t){var e=t.find('[data-pendo-grow-height="true"]');if(e.length){var n=Object.entries(e),i=[];for(let e=0;e<n.length;e++)if(Number.isInteger(Number.parseInt(n[e][0],10))){const o=n[e][1];var r=C.some(i,function(e){return e.parentNode===o.parentNode});if(!r){let e=t[0];r=o.parentNode.closest('[data-pendo-grow-height="true"]');if(r){if(!i.includes(r))continue;e=r}Jl(o,e),i.push(o)}}}}function Jl(t,e){let n=0;var i=t.parentNode.children;for(let e=0;e<i.length;e++){var r,o=i[e];o!==t&&(r=A(o),r=parseInt(r.marginTop,10)+parseInt(r.marginBottom,10),n+=o.offsetHeight+r)}var a=e.offsetHeight,e=A(e),e=parseInt(e.paddingTop,10)+parseInt(e.paddingBottom,10),s=A(t),s=parseInt(s.marginTop,10)+parseInt(s.marginBottom,10),a=Math.max(a-e-n-s,0);0<a&&(t.style.height=a+"px")}function Vl(e,t){var n,i,r,o,a,s,d,u,l,e=k("#"+e,t)[0];e&&(t=k(e),n=k(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(A(e).height,10),d=zo().height,u=parseInt(e.style.top,10),u=isNaN(u)?0:u,l=parseInt(e.style.bottom,10),(d=d-u-(l=isNaN(l)?0:l))<s&&(n.css({"max-height":d+"px",overflow:"auto"}),s=d),s!==o?(t.css({height:(u=a&&o?o:s)+r}),"Centered"!==(l=e.getAttribute("data-vertical-alignment"))&&"Left Aligned"!==l&&"Right Aligned"!==l||t.css({"margin-top":"-"+(d<s?d:u)/2+"px"})):t.css({height:i}))}function Kl(e,t){e=k("#"+e,t)[0];if(e){t=e.getAttribute("data-pendo-mobile-layout");if(!t){var n=k(e),t=k(n.find("#pendo-guide-container")[0]),i=parseInt(e.style.width,10),r=(t.css({"max-width":"none"}),n.css({"margin-right":"0px"}),parseInt(A(e).width,10)),o=zo().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 $l(e,i){var e=C.isArray(e)?e:[e],e=C.reduce(e,function(e,t){var t=k("#"+t,i),n=t[0];return n&&!n.getAttribute("data-pendo-mobile-layout")&&(n=t.find("#pendo-guide-container")[0],e.push(n)),e},[]),t=e;(t=C.reduce(t,function(e,t){return e.concat(C.toArray(k(['[class*="_pendo-text-"]:not([class*="_pendo-resource-center-"])','.pendo-mock-flexbox-element > [class*="_pendo-button-"]',"._pendo-multi-choice-poll-select"].join(","),t)))},[]))&&t.length&&Zl(C.reduce(t,function(e,t){var n,t=k(t),i=Ql(t[0]),i=i.marginLeft+i.marginRight,r=Xl(t);return r&&(n=r.paddingLeft+r.paddingRight,r=r.width-i-n,e.push({$blockElement:t,availableSpace:r})),e},[])),C.each(e,function(e){var t=e,t=((t=k("._pendo-open-text-poll-input",t))&&t.length&&C.each(t,function(e){var t,n=k(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)),Ql(n[0])),r=e.marginLeft+e.marginRight,o=Xl(n);o&&(t=o.paddingLeft+o.paddingRight,o=o.width-r-t,-1!==i.indexOf("%")&&Yl(n,e.width,i,o),-1===i.indexOf("%")&&(i=parseInt(i,10))<o&&n.css({width:i}),Zl({$blockElement:n,availableSpace:o}))}),e);(t=k(["._pendo-video","._pendo-image"].join(","),t))&&t.length&&C.each(t,function(e){var t=k(e),n=Ql(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=Xl(t);o&&(a=o.width-(o.paddingLeft+o.paddingRight)-n,e&&Yl(t,i,r,a),Zl({$blockElement:t,availableSpace:a}))})})}function Zl(e){C.isArray(e)||(e=[e]),C.each(e,function(e){e.$blockElement.css({"max-width":"none"})});var n=C.map(e,function(e){return Ql(e.$blockElement[0]).width});C.each(e,function(e,t){n[t]>=e.availableSpace&&e.$blockElement.css({"max-width":e.availableSpace})})}function Yl(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 Xl(e){e=e.closest("._pendo-row");if(e){e=A(e[0]);if(e)return{width:parseFloat(e.width),paddingLeft:parseInt(e.paddingLeft,10),paddingRight:parseInt(e.paddingRight,10)}}}function Ql(e){e=A(e);return{width:parseFloat(e.width),marginLeft:parseInt(e.marginLeft||0,10),marginRight:parseInt(e.marginRight||0,10)}}var ec,M={calculateTotalOffsetWidth:ic,center:function(e,t){for(var n=t/2,t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=ic(e,r);e[r].style.left=n+o+"px"}1<e.length&&(i.style.right=n+"px");t.style.left=n+"px"},createFlexContainer:function(e,t){var n=document.createElement("div");n.style.display="inline-block",e||t||(n.style.position="absolute");return n.style["vertical-align"]="top",n.setAttribute("class","pendo-mock-flexbox-element"),n},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=0;i<e.length;i++){var r;t&&-1!==(e[i].children[0].children[0].getAttribute("class")||"").indexOf("pendo-block-wrapper")&&(r=e[i].children[0].offsetHeight+"px",e[i].style.height=r),n.push(e[i].offsetHeight)}return C.reduce(n,function(e,t){return Math.max(e,t)},20)},flexEnd:function(e,t){for(var n=t,t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=ic(e,r);e[r].style.left=n+o+"px"}1<e.length&&(t.style.left=n+"px");i.style.right="0px"},flexStart:function(e){e[0].style.left="0px";for(var t=1;t<e.length;t++){var n=ic(e,t);e[t].style.left=n+"px"}},getPendoInlineUIElements:function(e){return C.filter(e,nc)},getPendoVisualElements:function(e){return C.filter(e,function(e){return!nc(e)})},initializeFlexElements:function(e){var t=e.cloneNode(),n=tc(e),i=M.getPendoInlineUIElements(e.children);if(1===n.length&&0===n[0].id.indexOf("pendo-text"))return e;for(;t.childNodes.length;)t.removeChild(t.childNodes[0]);for(var r=0;r<n.length;r++)oc(n[r])?t.appendChild(n[r]):t.appendChild(M.wrapElementInMockFlexboxContainer(n[r],e,t));for(var o=0;o<i.length;o++)t.appendChild(i[o]);return e.parentNode.replaceChild(t,e),t},isPendoInlineUIElement:nc,setElementHorizontalAlignment:function(e,t,n){if(!(e.length<1))switch(n){case"space-between":M.spaceBetween(e,t);break;case"space-around":M.spaceAround(e,t);break;case"space-evenly":M.spaceEvenly(e,t);break;case"center":M.center(e,t);break;case"flex-start":M.flexStart(e);break;case"flex-end":M.flexEnd(e,t)}},setElementVerticalAlignment:function(e,t,n){switch(n){case"top":M.topAlignment(e);break;case"center":M.centerAlignment(e,t);break;case"bottom":M.bottomAlignment(e)}},spaceAround:function(e,t){for(var n=t/(2*e.length),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=ic(e,r);e[r].style.left=2*n+o+"px"}t.style.left=n+"px",i.style.right=n+"px"},spaceBetween:function(e,t){for(var n=t/Math.max(e.length-1,1),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=ic(e,r);e[r].style.left=r*n+o+"px"}t.style.left="0px",i.style.right="0px"},spaceEvenly:function(e,t){for(var n=t/(e.length+1),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=ic(e,r);e[r].style.left=n+o+"px"}t.style.left=n+"px",i.style.right=n+"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=e.getAttribute("class")||"",r=-1!==i.indexOf("pendo-block-wrapper"),o=e.style&&"absolute"===e.style.position,a=C.get(e.style,"width",""),s=A(e).width,d=-1!==i.indexOf("_pendo-open-text-poll-wrapper")||-1!==i.indexOf("_pendo-image-wrapper")||-1!==i.indexOf("pendo-video-wrapper")||-1!==i.indexOf("_pendo-number-scale-poll-wrapper");r&&!d&&(a=(a?s:null)||A(e.children[0]).width);(0<=i.indexOf("_pendo-resource-center-onboarding-module-guide-complete-circle-container")||0<=i.indexOf("pendo-task-list-progress-circle"))&&(s=parseInt(A(t).width,10),u=parseInt(A(e).width,10)+parseInt(e.style.marginRight||0,10)+parseInt(e.style.marginLeft||0,10),t=(k(t).find("._pendo-simple-text").getParent()||k(n).find("._pendo-simple-text").getParent())[0],n=s-u,"border-box"!==C.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");{var u;if(!i||i.indexOf("pendo-mock-flexbox-element")<0)return(s=M.createFlexContainer(o)).appendChild(e),-1<e.id.indexOf("pendo-text")&&"rtl"===e.dir&&(s.style.right="0px"),u=C.get(e,"children")[0],r&&u&&-1!==(u.getAttribute("class")||"").indexOf("image-preview-placeholder")&&(s.children[0].style.width=a),!r||d||e.style.width||(s.children[0].children[0].style.width=a),s}return e},getVisualElementsWrappedInFlexElements:tc,initializeFlexRows:function(e,t,n,i=!1){{var r;i?(e.style.display="flex",e.style.flexWrap="wrap",e.style.justifyContent=t,e.style.alignItems={top:"flex-start",center:"center",bottom:"flex-end"}[n]||"flex-start"):0!==(i=function(e){return C.filter(e,function(e){e=e.getAttribute("class")||"";return e&&-1<e.indexOf("pendo-mock-flexbox-element")})}(e.children)).length&&(r=M.getRowWidth(e),i=M.wrapFlexElementsInFlexRows(i,e,r),M.formatFlexRows(i,e,t,n,r))}},getRowWidth:rc,wrapFlexElementsInFlexRows:function(e,t,n){for(var i=n||rc(t),r=M.createFlexRow(),o={row:r,rowWidthUsed:0},a=[o],s=0;s<e.length;s++){var d=e[s],u=wo(d)["width"],u=parseInt(u,10);o.rowWidthUsed+=u,o.rowWidthUsed>i&&0!==C.indexOf(e,d)&&(o.rowWidthUsed-=u,(r=M.createFlexRow()).appendChild(d),a.push(o={row:r,rowWidthUsed:u})),o.row.appendChild(d)}return a},formatFlexRows:function(e,t,n,i,r){for(var o=r||rc(t),a=0;a<e.length;a++){var s=e[a],d=(t.appendChild(s.row),M.findMaxChildHeight(s.row.children,!1)),u=(s.row.style["min-height"]=d+"px",o-parseInt(s.rowWidthUsed,10));M.setElementHorizontalAlignment(s.row.children,u,n),M.setElementVerticalAlignment(s.row.children,d,i)}},isElementHiddenInGuide:oc,flexAllThings:function(e,t){var n=null==(n=null==t?void 0:t.attributes)?void 0:n.useFlexbox,t=(null==t?void 0:t.guideElement)||document,e=k("#"+e,t)[0];e&&(sc(e),M.flexElement(e,n))},flexElement:function(e,i){e=k("[data-pendo-display-flex]",e);C.each(e,function(e){var t=i?e:M.initializeFlexElements(e),n=e.getAttribute("data-pendo-justify-content"),e=e.getAttribute("data-row-vertical-alignment");M.initializeFlexRows(t,n,e,i)})},maintainAspectRatios:sc};function tc(e){return k(["._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"].join(","),e)}function nc(e){e=e.getAttribute("class");return!!(e&&-1<e.indexOf("pendo-inline-ui"))}function ic(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 rc(e){var t=wo(e)["width"],e=A(e);return parseInt(t,10)-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10)}function oc(e){ac(e);var t=Yo(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-")&&(ac(n),i=(n=n.parentNode).id||"",!(10<++r)););return!1}function ac(e){e.style&&"none"===e.style.display||e.style&&"0"===e.style.opacity||e.style&&e.style.visibility}function sc(e){var n="data-aspect-ratio",e=k("["+n+"]",e);C.each(e,function(e){var t=e.getAttribute(n).split(":"),t=1<t.length?parseInt(t[0],10)/parseInt(t[1],10):parseFloat(t[0]);isNaN(t)||(e.style.height=e.offsetWidth/t+"px")})}function dc(){return!I.designer&&f.get("disableGuidePseudoStyles")}function uc(e,t,n){return e&&e.templateName?Xu.buildNodesFromTemplate(e.templateName,e,t,n,pc):"style"===e.type&&dc()?[]:[pc(e,t,n)]}function lc(e,t,n,i){e='illegal building block key "'+e+'" found on guide "'+t+'" step "'+n+'"';throw i&&(e+=' for node type "'+i+'"'),x.info(e),new Error(e)}function cc(n,i,r,o){var a={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},s={embed:{src:!0}},d=/^data-/,u=/^aria-/,e=C.keys(n);return C.reduce(e,function(e,t){return s[o]&&s[o][t]&&lc(t,r,i,o),a[t]||d.test(t)||u.test(t)||lc(t,r,i),e[t]=n[t],e},{})}function pc(n,i,e){i=i||{id:"unknown",guideId:"unknown"},n.props=cc(n.props,i.id,i.guideId,n.type);var t,r=k(document.createElement(n.type));if(document.createElement("div").appendChild(r[0]),"script"===r[0].tagName.toLowerCase())return k(document.createElement("noscript"));if("pendo-backdrop"===(n.props&&n.props.id))return i.attributes&&i.attributes.blockOutUI&&i.attributes.blockOutUI.enabled&&Tl.attachScrollHandlers(i,bl),wl(i);if(C.each(n.props,function(e,t){"style"===t?r.css(n.props.style):"data-pendo-code-block"!==t||!0!==e||f.get("preventCodeInjection")?r.attr(t,e):(t=i.getContent(),0!==Ye.call(t).length&&r.addClass("pendo-code-block").html(t))}),n.content&&r.text(n.content),"style"===n.type&&(I.designer||(n.css=function(e){for(var t=["button:focus"],n=[],i=0;i<e.length;i++)C.contains(t,e[i].selector)||n.push(e[i]);return n}(n.css)),(t=f.get("inlineStyleNonce"))&&r.attr("nonce",t),r.styleSheet?r.styleSheet.cssText=mc(n.css):r.text(mc(n.css))),n.svgWidgetId&&il.buildSvgNode(n.svgWidgetId,n).appendTo(r),n.actions&&n.actions.length)for(var o,a=0;a<n.actions.length;a++)gc(r,n.actions[a],i),"renderGuidesListItem"===n.actions[a].action&&((o=N(n.actions[a].parameters[0]))?r.text(o.name):r.attr("style","display: none;"));if(C.find(n.actions,function(e){return"dismissGuide"===e.action})&&!i.hasEscapeListener&&(i.hasEscapeListener=!0,i.attachEvent(window,"keyup",function(e){27===e.keyCode&&i.eventRouter.eventable.trigger("pendoEvent",{step:i,action:"dismissGuide"})},!0)),n.children)for(var s=oa(au()),d=s!==document,u=0;u<n.children.length;u++){var l=uc(n.children[u],i,e);C.each(l,function(e){var t;e&&("STYLE"!==e[0].tagName?e.appendTo(r):d?((t=new CSSStyleSheet).replaceSync(e[0].innerHTML),(s.hasOwnProperty("wrappedJSObject")?s.wrappedJSObject:s).adoptedStyleSheets.push(t)):(k.addClass(e[0],"pendo-style-"+(i.isBadge?i.guideId:i.id)),e.appendTo(document.head)))})}return r.hasClass("pendo-code-block")?r.find("img").each(function(e){hc(e,i)}):hc(r[0],i),r}function hc(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++,fc(k(e),t))}function fc(e,i){e.on("load",function(){var e,t={},t=(!i.containerId&&i.domJson&&(t=Ku(i.domJson)),i.containerId||t.props&&t.props.id||""),n=t&&k("#"+t,i.guideElement)[0];i&&i.attributes&&i.attributes.imgCount&&(i.attributes.imgCount--,n)&&i.attributes.imgCount<=0&&(Kl(t,i.guideElement),$l(t,i.guideElement),M.flexAllThings(t,i),e=i.getGuide(),C.get(e,"attributes.isAnnouncement")||"AnnouncementsModule"===C.get(e,"attributes.resourceCenter.moduleId")||(Vl(t,i.guideElement),(e=n.children.item("pendo-guide-container"))&&e.style&&"auto"===e.style.overflow&&($l(t,i.guideElement),M.flexAllThings(i.containerId,i))),"tooltip"===i.attributes.calculatedType&&Tl.positionStepForTooltip(i,i.domJson,n),n.style.visibility="visible",n.parentNode.style.visibility="visible",k.event.dispatch(n,{type:"imagesLoaded"}))}),e.on("error",function(){var e=k("#"+i.containerId,i.guideElement)[0];e?("tooltip"===i.attributes.calculatedType&&Tl.positionStepForTooltip(i,i.domJson,e),e.style.visibility="visible",e.parentNode.style.visibility="visible",M.flexAllThings(i.containerId,i)):x.info("Failed to find guideContainer for id: "+i.containerId)})}function gc(n,i,r){n.on(i.eventType,function(e){var t;i.designerAction?I.designerv2&&I.designerv2.designerActions&&I.designerv2.designerActions[i.action](n,i.parameters):(t={action:i.action,params:i.parameters,step:r,ignore:!!i.ignore,srcElement:e.srcElement},("showElements"!==i.action&&"hideElements"!==i.action||e.srcElement&&e.srcElement.getAttribute("id")===i.source||e.target&&e.target.getAttribute("id")===i.source)&&r.eventRouter.eventable.trigger("pendoEvent",t))})}function mc(n){for(var i="",r=0;r<n.length;r++)i+=n[r].selector+"{",n[r].styles instanceof Array?i+=mc(n[r].styles):C.each(n[r].styles,function(e,t){i+=t+":"+e,n[r].selector.match(/\d+%/)||(i+="!important;")}),i+="}";return i}function vc(t){C.each(document.head.childNodes,function(e){e&&k.hasClass(e,"pendo-style-"+t)&&qo(e)})}var yc=function(){var e=window.navigator;return((C.isArray(e.languages)?e.languages[0]:e.language||e.browserLanguage||e.systemLanguage||e.userLanguage)||"").split("-").join("_")},bc="meta",wc=C.compose(JSON.parse,JSON.stringify),Sc=function(){var e=new Date,t=e.getDate(),n=e.getMonth()+1;return e=(t=t<10?"0"+t:t)+"/"+(n=n<10?"0"+n:n)+"/"+e.getFullYear()},Ic=function(e={}){(e=C.isObject(e)?e:{}).jwt&&e.signingKeyName&&(t=fs.getJwtOptions(e,"updateOptions"))&&(fs.set(C.pick(e,"jwt","signingKeyName")),e=t),t=e,n=C.extend({},t.visitor),i=C.extend({},t.account),t=C.extend({},t.parentAccount),n.id===An&&(x.info("Missing visitor id."),delete n.id),_n(i.id)&&_n(t.id)&&(Mn(i.id)?t.id=i.id.split(Nn)[0]:i.id=""+t.id+Nn+i.id),_n(i.id)&&(i.id=""+i.id),_n(n.id)?n.id=""+n.id:n.id=b({generate:!0}),n.language=yc(),e={visitor:wc(n),account:wc(i),parentAccount:wc(t),date:Sc(),version:I.VERSION},g.getters["metadata/selfHosted"]()&&(e.selfHosted=!0);var t,n=C.clone(Tc()),i=(f.setLocalConfig(C.extend({},f.getLocalConfig(),e)),g.commit("metadata/setMetadata",e),Tc()),r=(_n(e.visitor.id)&&(I.identify(e.visitor.id,e.account.id),e.visitor.id=b(),e.account.id=Bn()),rt(e)),o=(void 0!==(o="object"==typeof(o=r)?rt(o):o)&&o.toString&&(o=o.toString()),""+(C.isNumber(ec)?ec:Hn(bc))!==o),r=(ec=r,o&&zn(bc,r),!C.isEqual(n,i));return{options:e,hashChanged:o,storeChanged:r}},Ec=qn(function(e){e=Ic(e);m.metadata.trigger(e)}),Cc=qn(function(e,t){C.isObject(e)?Ec(e):Pn(e,t)}),xc=function(){var t,e=k("script");return e=e,t=new RegExp("/agent/static/"+I.apiKey+"/pendo\\.js$"),!C.any(e,function(e){return t.test(e.src)})&&"extension"!==we()},_c=function(){var e=f.get("blockAgentMetadata");return e!==undefined&&e};function Tc(){return g.getters["metadata/metadata"]()}function kc(){return JSON.parse(JSON.stringify(Tc()))}m.identify.on(function(e){var t=e.data[0],n=f.getLocalConfig()||{};Wn(e)?(Rn([bc]),g.commit("metadata/reset",t)):(n.visitor=C.extend({},n.visitor,{id:t.visitor_id}),n.account=C.extend({},n.account,{id:t.account_id}),f.setLocalConfig(n),g.commit("metadata/setMetadata",n))});var Rc={Launcher:{addBehavior:C.noop},Metadata:{getMetadata:Tc},Util:{documentScrollTop:ho,documentScrollLeft:fo,getOffsetPosition:Wo},Events:m,JWT:{getJWT:fs.get}};var Ac,Oc,Nc,Mc,Lc={},Fc=(Oc=[],Nc=[],Mc={},(Ac=Lc).tagExtension=function(e,t){e=Ac.findExtensionByName(e);e.tags=[].concat(e.tags||[],t)},Ac.findExtensionByTag=function(t){return C.find(Nc,function(e){return C.contains(e.tags,t)})},Ac.findExtensionByName=function(e){return C.findWhere(Nc,{name:e})},Ac.filterExtensionsByUse=function(t){return C.filter(Nc,function(e){return e.use===t})},Ac.findExtensionByNameAndProvider=function(t,n){return C.find(Nc,function(e){e=e.data;return!!e&&e.name===t&&e.provider&&e.provider.name===n})},Ac.registerExtensionsByUse=function(e,t,n){n=n?[].concat(n):[],Mc[e]={handler:t,validators:n}},Ac.getExtensionFrames=function(){return C.reduce(Nc,function(e,t){return t.frame&&t.frame[0]&&e.push(t.frame[0]),e},[])},function(e){e=[].concat(e),(e=C.filter(e,Pc)).length&&(Oc=function n(e){if(!e.length)return e;var t=C.filter(e,Dc);if(t.length)return n(C.difference(e,t));return e}(Oc.concat(e)))});function Pc(t){var e;return!!C.every(["name","version","use","type","uri"],C.partial(C.has,t))&&(e=t.use,e=Mc[e]?Mc[e].validators:[],C.every(C.map(e,function(e){return e(t)})))}function Dc(e){var t;return"behavior"===e.use?!!e.uri(Ac,Rc)&&(Nc.push(e),!0):(t=e.use,!!(t=Mc[t]?Mc[t].handler||C.identity:null)&&((e=t(e))&&Nc.push(e),!!e))}var L,Uc,Gc,Bc,zc,Hc,F={initializeResourceCenter:function(r){if(!(L=Wc(r)))return y.resolve();if(g.getters["frames/isShownInAnotherFrame"]()(L.steps[0]))return y.resolve();if(F.isFullyCustom(L))return L.hasResourceCenterContent=!0,y.resolve();var e=qc(L,r),t=C.reduce(e,function(e,t){return jc(t)?e.concat(t.steps[0].fetchContent()):e},[]);return t.push(Pu.validate(L).then(C.noop,function(){L.launchMethod="api"})),L.attributes.notifications={totalUnseenCount:0,individualCounts:{chat:0}},C.forEach(Yc(),function(e){var t=Lc.findExtensionByNameAndProvider("chat",e),t=(t&&tp(e,t),Lc.findExtensionByNameAndProvider("helpcenter",e));t&&tp(e,t)}),C.forEach(e,function(t){var e=t.attributes.resourceCenter,n=e.children,i=e.moduleId,e=("IframeModule"===i&&(t.hasResourceCenterContent=!0),"SandboxModule"===i&&(t.hasResourceCenterContent=!0),"IntegrationModule"===i&&(t.integrationConfig=$c(e.integrationName,e.integrationProvider),t.hasResourceCenterContent=!!t.integrationConfig,t.integrationConfig)&&"chat"===t.integrationConfig.name&&Zc(e.integrationName,e.integrationProvider),C.reduce(n,function(e,t){var n=C.find(r,function(e){return e.id===t});return n?e.concat(n):e},[]));"AnnouncementsModule"===i&&(L.attributes.notifications.individualCounts[t.id]=0,C.forEach(e,function(e){Tp(e)||e.isControlGroup()||L.attributes.notifications.individualCounts[t.id]++}));-1<C.indexOf(["GuideListModule","OnboardingModule","AnnouncementsModule"],i)&&C.filter(e,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):!(e.ineligibleForRC=!0)}).length&&(t.hasResourceCenterContent=!0),t.guidesInModule=e}),L.modules=e,L.badgeHidden=!0,y.all(t)["catch"](()=>(L=null,x.error("Failed to load one or more Resource Center modules"),y.resolve()))},findResourceCenterHomeView:Wc,findResourceCenterModules:qc,replaceResourceCenterContent:Jc,renderResourceCenterModule:function(e,t){Jc(e.id,undefined,!0,t)},showHomeViewOrEmptyState:function(e){k("#pendo-resource-center-container._pendo-guide-walkthrough_").remove(),delete e.activeModule,e.hasResourceCenterContent&&e.skipResourceCenterHomeView?F.replaceResourceCenterContent(e.moduleIdToReplaceHomeViewWith,[{value:"none"},{value:"left"}]):e.showEmptyState&&(F.showResourceCenterEmptyState(),C.each(e.controlGuidesInAllModules,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}))},showResourceCenterEmptyState:function(){var e=k("#pendo-resource-center-empty-state-container");e&&e.length&&k(e[0]).css({display:"block"})},launchIntegrationByNameAndProvider:function(e,t,n){var e=Lc.findExtensionByNameAndProvider(e,t);return e?(n=k(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:Zc,attemptToPreserveIntegrationIframes:function(e){e.step&&(e=e.step.getGuide()).attributes&&e.attributes.resourceCenter&&(e=F.getResourceCenterContainer())&&(e=k(e).find('iframe[id^="_pendo-launcher-ext-frame-chat"]'))&&e.length&&e.each(function(e){e=k(e);e.css({display:"none"}),e.appendTo(au())})},getResourceCenter:dp,getResourceCenterContainer:up,getResourceCenterBadge:lp,addNotificationBubbleToResourceCenterBadge:bp,addNotificationBubbleToTargetElement:wp,updateNotificationBubbles:function(){var e=L,t=C.get(e,"attributes.notifications");if(t){var n=fp(t.individualCounts);if(n<=0)n!==t.totalUnseenCount&&xp(),t.totalUnseenCount=n;else{gp();var i=n!==t.totalUnseenCount;if(i||!pp(Bc)){if("badge"===e.launchMethod){i=lp();if(!i)return;bp(i.element(),e.attributes.notificationBubble,n)}if("dom"===e.launchMethod&&C.get(e,"attributes.activation.selector")){i=k(e.attributes.activation.selector);if(!i.length)return;wp(i[0],e.attributes.notificationBubble,n),Er(window,"resize",C.debounce(hp,50))}t.totalUnseenCount=n}}}},removeNotificationBubble:xp,updateNotificationBubbleCount:_p,updateNotificationBubbleOnHomeView:mp,updateOrCreateNotificationBubble:Sp,hexToRgb:cp,doesIntegrationExist:$c,calculateTotalNotificationCount:fp,updateNotificationBubblesOnHomeView:gp,createNotification:Ep,appendNotificationBubble:Cp,hasAnnouncementBeenSeen:Tp,clearAnnouncementUnseenInterval:Vc,createAnnouncementUnseenInterval:Kc,findShownResourceCenterModule:function(){var e=F.getResourceCenterContainer();if(e){e=k(e).find('[id^="pendo-g-"]');if(e){var t=e.attr("data-pendo-guide-id"),e=C.find(qd(),function(e){return e.id===t});if(C.get(e,"attributes.resourceCenter.isModule",!1))return e}}},dismissResourceCenter:kp,repositionResourceCenter:function(){var e=F.getResourceCenterContainer();{var t,n,i;e&&(i=F.findResourceCenterHomeView(qd()).steps[0],t=C.get(i,"domJson.props.style.height"),t=parseInt(t,10),t=isNaN(t)?0:t,n=parseInt(C.get(i,"domJson.props.style.bottom",0),10),i=parseInt(C.get(i,"domJson.props.style.top",0),10),n=isNaN(n)?0:n,i=isNaN(i)?0:i,(n=zo().height-n-i)<=t&&(e.style.height=(n-10).toString()+"px"),i=parseInt(e.style.height,10),i=isNaN(i)?0:i,t<n)&&t!==i&&(e.style.height=t.toString()+"px")}ql(k(e))},repositionDoubleResourceCenterBadge:function(){var e,t,n;g.getters["frames/isLeader"]()&&1<(e=C.unique(C.compact([].concat(C.toArray(k("._pendo-resource-center-badge-container"))).concat(C.toArray(k("._pendo-resource-center-badge-container")))))).length&&function(e){var t=Yo(e[0]),e=Yo(e[1]);return Xo(t,e)}(e)&&(t=Wo(e[0]).width+5,n=Wo(e[1]).left-t<0?"":"-",e[1].style.transform="translateX("+n+t+"px)")},resourceCenterIgnoreRtl:function(){return C.get(this.getResourceCenterBadge(),"ignoreRTL",!1)},adjustResourceCenterWidth:function(e){var t=up();if(t){o=zo().width,r=k(t),e=k(e),r.css({"max-width":"none"}),e.css({"max-width":"none"}),i=parseInt(A(r[0]).width,10),o<i&&(i=parseInt(t.style.left,10),i=isNaN(i)?0:i,t=parseInt(t.style.right,10),t=isNaN(t)?0:t,o=o-t-i,r.css({"max-width":o+"px"}),e.css({"max-width":o+"px"}));var t=e,n=k('button[id^="pendo-a11y-list-item-button-block"]');if(n&&n.length)for(var i=k(t.find("ol._pendo-text-list-ordered"))[0],r=0,o=0,i=(i&&(i=A(i),o=parseInt(i.paddingLeft,10),r=parseInt(i.paddingRight,10)),k('[id^="pendo-onboarding-guide-progress-circle"]')[0]),e=0,a=0,s=0,d=(i&&(i=A(i),e=parseInt(i.width,10),a=parseInt(i.marginRight,10),s=parseInt(i.marginLeft,10)),o+r+e+s+a),u=parseInt(A(t[0]).width,10),l=0;l<n.length;l++){var c=n[l],p=k(c),c=(p.css({"max-width":"none"}),A(c)),h=parseInt(c.width,10),c=u-d-(parseInt(c.paddingLeft,10)+parseInt(c.paddingRight,10));c<=h&&p.css({"max-width":c})}}},setNativeIntegrationDefaults:tp,renderNativeIntegration:ap,isSupportedNativeIntegration:Xc,handleNativeIntegrationContinuation:sp,isProviderInstalled:Qc,adjustNotificationBubbleForResize:hp,getNotificationBubbleDefaultCss:Ip,getModuleId:Rp,isIframeModule:function(e){return"IframeModule"===Rp(e)&&e.hasResourceCenterContent},isSandboxModule:function(e){return"SandboxModule"===Rp(e)&&e.hasResourceCenterContent},isIntegrationModule:function(e){return"IntegrationModule"===Rp(e)&&e.hasResourceCenterContent},isFullyCustom:function(e){return"FullyCustomModule"===Rp(e)},integrationModuleHasContent:function(e){e=e.attributes.resourceCenter;return!F.isSupportedNativeIntegration(e.integrationProvider)||F.isProviderInstalled(e.integrationProvider)},fetchAnnouncementGuidesContent:function(e,t){var n=Wc(e);if(!n)return y.resolve();if(t.getters["frames/isShownInAnotherFrame"]()(n.steps[0]))return y.resolve();if(F.isFullyCustom(n))return y.resolve();var t=qc(n,e),i=[],r=C.indexBy(e,"id");return C.each(t,function(e){var e=e.attributes.resourceCenter;"AnnouncementsModule"===e.moduleId&&(e=e.children,e=C.reduce(e,function(e,t){t=r[t];return t?e.concat(t):e},[]),C.each(e,function(e){jc(e)&&i.push(e.steps[0].fetchContent(!0))}))}),y.all(i)},setFocusForResourceCenterModule:function(e,t){var n;"HomeViewModule"===e[0].getAttribute("data-layout")?t&&(e=k('[data-pendo-module-guide-id="'+t+'"]'),n=e.find('button[id^="pendo-right-caret-"]')[0]):(t=k('[id="pendo-resource-center-module-title-container"]'),n=t.find('button[id^="pendo-left-caret-"')[0]);n&&n.focus()},revertRtlChanges:function(e,t){var n="rtl"===C.get(t,"data-localization-direction",!1),e=C.get(e,"attributes.badge.ignoreRTL",!1);n&&e&&!t["data-direction-changed"]&&(n=C.get(t,"style.left",!1),e=C.get(t,"style.right",!1),n)&&e&&(t.style.left=e,t.style.right=n,t["data-direction-changed"]=!0)},stashBadgeAriaLabel:vp,resetBadgeAriaLabel:function(){var e=F.getResourceCenterBadge();{var t;e&&(e=e.element(),t=e.getAttribute("data-pendo-stashed-aria-label"))&&e.setAttribute("aria-label",t)}},getNotificationBubbleAriaLabelAttribute:yp,updatePseudoStyleSelectors:Ap,hideRCBadge:Op};function jc(e){return e.steps&&e.steps.length&&C.isFunction(e.steps[0].fetchContent)}function Wc(e){var e=C.filter(e,function(e){return C.get(e,"attributes.resourceCenter.isTopLevel")&&!e.isFrameProxy}),t=C.find(e,function(e){return"staged"===e.state});return t||e[0]}function qc(t,e){return C.filter(e,function(e){return e&&!e.isFrameProxy&&C.get(e,"attributes.resourceCenter.isModule",!1)&&e.state===t.state})}function Jc(t,e,n,i=!0){if(!Gc){var r="left 200ms",o="left",e=(e&&2<=e.length&&(r=e[0].value,o=e[1].value),up());if(e){var a=k(e).find('[id^="pendo-g-"]')[0];if(a){var s,d=a.getAttribute("data-pendo-guide-id"),u=C.find(qd(),function(e){return e.id===t}),l=(t!==L.id?(vc(C.get(L.activeModule||L,"steps.0.id")),L.activeModule=u):(s=L.activeModule,vc(C.get(s,"steps.0.id")),delete L.activeModule),C.get(u,"attributes.resourceCenter.integrationProvider")),c=(Xc(l)&&ap(l),u.steps[0]),l=Ap(c.domJson),l=(l.props["data-pendo-guide-id"]=u.id,pc(l,c)),p=l[0],r=(-1===p.id.indexOf("pendo-g-")&&(p=l.find('[id^="pendo-g-"]')[0]),n||(p.style.transition=r,a.style.transition=r,"left"===o?p.style.left=e.offsetWidth+"px":"right"===o&&(p.style.left=-1*e.offsetWidth+"px")),n&&(k(a).remove(),s)&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),k(e).find('[id^="pendo-end-focus-bumper-"]')[0]);if(r?k(p).insertBefore(r):k(p).appendTo(e),c.guideElement=k(e),c.elements.push(c.guideElement[0]),F.adjustResourceCenterWidth(p),"AnnouncementsModule"===Rp(u)&&c.guide.guidesInModule?($l(r=C.reduce(c.guide.guidesInModule,function(e,t){var n;return C.isUndefined(t.steps[0].attributes.imgCount)&&(n=t.steps[0].id,n=k(p).find("#pendo-g-"+n)[0]?n:t.id,e.push("pendo-g-"+n)),e},[]),c.guideElement),C.each(r,function(e){M.flexAllThings(e,c)})):M.flexAllThings("pendo-resource-center-container"),ql(k(e)),p.style.left="0px",!n){Gc=!0;try{"left"===o?a.style.left=-1*e.offsetWidth+"px":"right"===o&&(a.style.left=e.offsetWidth+"px"),Ut(function(){k(a).remove(),s&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),Gc=!1},200)}catch(h){throw Gc=!1,h}}return"AnnouncementsModule"===Rp(u)&&(Kc(),r=Xu.getGuidesInResourceCenterModule(u,qd()),(n=C.reduce(r,function(e,t){return t.steps&&t.steps.length&&Wu.hasContent(t.steps[0])||e.push(t.fetchContent()),e},[])).length)&&((o=function(){var i,e,t;if(C.isFunction(document.createElementNS))return i="http://www.w3.org/2000/svg",e=function(e,t){var n=k(document.createElementNS(i,"circle")).attr({cx:e,cy:t,fill:"#9a9ca5",r:5});return C.each(C.toArray(arguments).slice(2),function(e){n.append(e)}),n},t=function(e){return k(document.createElementNS(i,"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:e})},t=k(document.createElementNS(i,"svg")).attr({viewBox:"0 0 70 20",xmlns:"http://www.w3.org/2000/svg",width:"70",height:"20"}).append(e(21,10,t("-0.32s"))).append(e(35,10,t("-0.16s"))).append(e(49,10,t("0s"))),k(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(t)}())&&l.find("ol").append(o),y.all(n).then(function(){var e=y.defer();return Ut(e.resolve,500),e.promise}).then(function(){L.activeModule===u&&F.renderResourceCenterModule(u,i)})),F.setFocusForResourceCenterModule(l,d),i&&c.onShown("launcher"),l}}}}function Vc(){window.clearInterval(Uc),Uc=null}function Kc(){Uc=Uc||window.setInterval(function(){var e=up();if(!e)return Vc();e=k(e).find('[data-layout="AnnouncementsModule"]');if(!e.length)return Vc();var t=k(e).find('ol[id^="pendo-list"]');if(!t.length)return Vc();var n=Yo(t[0]),i=k(t).find("li");if(!i.length)return Vc();for(var r=e.attr("data-pendo-guide-id"),o=L.attributes.notifications.individualCounts[r],a=n.height/3,s=Yo(i[i.length-1]).bottom-30<n.top+n.height,d=0;d<i.length;d++){var u=k(i[d]),l=u.hasClass("pendo-unseen-announcement"),c=u.attr("data-pendo-announcement-send-seen-event");if(l||c){if(Yo(i[d]).top-n.top>n.height-a&&!s)break;var p=u.attr("data-pendo-announcement-guide-id"),c=C.find(qd(),function(e){return e.id===p});if(!c)break;l&&(u.removeClass("pendo-unseen-announcement"),l=u.find(".pendo-unread-announcement-mini-bubble"),Ee(10)?u.find(".pendo-unread-announcement-mini-bubble").remove():(l[0].style.visibility="hidden",l[0].style.opacity="0",l[0].style.transition="visibility 0s 2s, opacity 2s linear"),Tp(c)||o--,_p(o,r)),c.steps[0].seenState="advanced",Pg(c.id,c.steps[0].id,b(),"whatsnew",c.language,{last_updated_at:c.steps[0].lastUpdatedAt}),u[0].removeAttribute("data-pendo-announcement-send-seen-event"),Ug(c.id,c.steps[0].id,b(),"advanced",c.language)}}},500)}function $c(e,t){return Lc.findExtensionByNameAndProvider(e,t)}function Zc(e,t){e=Lc.findExtensionByNameAndProvider(e,t);if(!e)return x.info(t+" integration has not been loaded into the agent");Xc(t)&&Qc(t)?L.hasEligibleNativeIntegrationModule=!0:(Zo((t=e.getFrame())[0])||t.appendTo(au()),t.css({display:"none"}))}function Yc(){return["drift-native-chat","intercom-chat","zendesk-chat","zendesk-native-kb","zendesk-messaging"]}function Xc(e){return!!e&&0<=Yc().indexOf(e)}function Qc(e){return!!e&&null!==(e=ep(e))&&C.isFunction(window[e])}function ep(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 tp(e,t){if(e)if(Qc(e))np(e,t);else{var n;if("function"==typeof Object.defineProperty){const i=ep(e);null!==i&&(zc&&zc[i]?zc[i][e]||(zc[i][e]={installed:!1,integrationObj:t}):((zc=zc||{})[i]={[e]:{installed:!1,integrationObj:t}},Object.defineProperty(window,i,{get(){return n},set(e){n=e,C.forEach(zc[i],function(e,t){const n=e.integrationObj;!e.installed&&Qc(t)&&(e.installed=!0,np(t,n),Zc(n.name,t),C.forEach(L.modules,function(e){e.integrationConfig&&e.integrationConfig.data.name===n.name&&e.integrationConfig.data.provider.name===t&&(e.hasResourceCenterContent=!0)}))})},configurable:!0,enumerable:!0})))}}}function np(e,t){switch(e){case"zendesk-chat":case"zendesk-native-kb":var n=(i=t).data.provider.name,i=rp(i);ip(n,"webWidget","hide"),ip(n,"webWidget","updateSettings",{webWidget:{navigation:{popoutButton:{enabled:!1}},position:{vertical:i?i[0]:"bottom",horizontal:i?i[1]:"right"}}}),ip(n,"webWidget:on","close",function(){ip(n,"webWidget","hide"),op()}),L.isInProgress()&&sp(L.activeModule),ip(n,"webWidget:on","chat:unreadMessages",function(e){_p(e,"chat")});break;case"zendesk-messaging":i=t;ip(i=i.data.provider.name,"messenger","hide"),ip(i,"messenger:on","close",function(){op()}),ip(i,"messenger:on","unreadMessages",function(e){_p(e,"chat")});break;case"intercom-chat":var r=t;r=rp(r),window.intercomSettings||(window.intercomSettings={}),window.intercomSettings.hide_default_launcher=!0,window.intercomSettings.alignment=r?r[1]:"right",window.Intercom("update",{hide_default_launcher:!0,alignment:r?r[1]:"right"}),window.Intercom("onHide",function(){op()});break;case"drift-native-chat":window.drift.on("ready",function(e){window.drift.hide();var t=Tc();window.drift.identify(t.visitor.id,function o(e){const t={};for(const n in e)if("object"!=typeof e[n]||Array.isArray(e[n]))t[n]=e[n];else{const i=o(e[n]);for(const r in i)i[r]&&(t[n+"."+r]=i[r])}return t}(t)),window.drift.on("message",function(e){if(!L.isNativeModuleActive)return _p(1,"chat")})}),window.drift.on("chatClose",function(e){_p(0,"chat"),window.drift.hide(),op()})}}function ip(e,...t){try{Hc&&Hc[e]||window.zE.apply(null,t)}catch(n){Hc?Hc[e]=!0:Hc={[e]:!0}}}function rp(e){e=C.get(e,"data.options.labels.position");return e=e&&e.split("-")}function op(){kp(L.activeModule),delete L.activeModule,L.continueToNativeModule=!1}function ap(e,t){if(e){var n=Tc();if(L.isShown()&&L.hide(),Hc&&Hc[e])x.info(e+" integration failed to communicate with API, closing"),F.replaceResourceCenterContent(L.id,undefined,!0),op();else{var i=lp();switch(i&&Op(i,L),e){case"zendesk-messaging":ip(e,"messenger","show"),ip(e,"messenger","open");break;case"zendesk-native-kb":ip(e,"webWidget","updateSettings",{webWidget:{helpCenter:{suppress:!1},chat:{suppress:!0}}}),ip(e,"webWidget","show"),ip(e,"webWidget","open");break;case"zendesk-chat":ip(e,"webWidget","updateSettings",{webWidget:{chat:{suppress:!1},helpCenter:{suppress:!0}}}),window.$zopim.livechat.window.show(),n&&n.visitor&&n.visitor.email&&ip(e,"webWidget","prefill",{email:{value:n.visitor.email}});break;case"intercom-chat":window.Intercom("show"),n&&n.visitor&&n.visitor.email&&window.Intercom("update",{email:n.visitor.email});break;case"drift-native-chat":window.drift.api.openChat(),n&&n.visitor&&n.visitor.email&&window.drift.config({email:n.visitor.email})}_p(0,"chat"),!L.activeModule&&t&&(L.activeModule=t).steps[0].onShown("launcher")}}}function sp(e){e&&!e.isTopLevel&&(ap(C.get(e,"attributes.resourceCenter.integrationProvider")),L.activeModule||(L.activeModule=e),e.steps[0].onShown("continue"),e.attributes.doNotResume=!0)}function dp(){return L}function up(){return C.get(L,"steps.0.guideElement.0")}function lp(){if(L&&L.id)return Hd[L.id]}function cp(e){e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}function pp(e){return e&&C.all(e,function(e){return Zo(e&&e.length?e[0]:e)})}function hp(){var e,t=F.getResourceCenter(),n=C.get(t,"attributes.notifications");n&&(n=F.calculateTotalNotificationCount(n.individualCounts),"dom"===t.launchMethod)&&C.get(t,"attributes.activation.selector")&&(e=k(t.attributes.activation.selector)).length&&F.addNotificationBubbleToTargetElement(e[0],t.attributes.notificationBubble,n)}function fp(e){return C.reduce(e,function(e,t){return e+t},0)}function gp(){var e,t=L;t&&(t=C.get(t,"attributes.notifications"))&&(e=up())&&k(e).find("._pendo-resource-center-home-list").length&&C.each(t.individualCounts,function(e,t){mp(e,t)})}function mp(e,t){var n=F.getResourceCenterContainer();n&&(n=k(n).find('[data-pendo-notification-id="'+t+'"]')).length&&(t=k(n[0]).find("._pendo-home-view-bubble"),n=k(t[0].children[0]),e!==parseInt(n.text(),10))&&(0<e?(n.text(e),k(t[0]).css({display:"block","margin-right":"0"})):(n.text(""),k(t[0]).css({display:"none"})))}function vp(e){var t;e.getAttribute("data-pendo-stashed-aria-label")||(t=e.getAttribute("aria-label"),e.setAttribute("data-pendo-stashed-aria-label",t))}function yp(e){return 1!==e?"data-pendo-aria-label-alert-plural":"data-pendo-aria-label-alert-singular"}function bp(e,t,n){var i=yp(n);let r=e.getAttribute(i);r&&(vp(e),r=r.replace("{UNSEEN_COUNT}",n),e.setAttribute("aria-label",r));var i=C.get(t,"position","top-left"),o=A(e),o=(parseInt(o.width,10)||56)/2,a=o/Math.sqrt(2),o=Math.round(o-a)-10,s=o-10,a=Math.round(2*a),o={"top-left":{top:o+"px",left:s+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"top-right":{top:o+"px",left:s+a+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-left":{top:o+a,left:s+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-right":{top:o+a,left:s+a+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"}},s=e.attributes["data-localization-direction"]||!1,a=F.resourceCenterIgnoreRtl();Sp(e,t,n,o[i=s&&!a?{"top-left":"top-right","top-right":"top-left","bottom-left":"bottom-right","bottom-right":"bottom-left"}[i]:i])}function wp(e,t,n){var i=bo(e,e),r=bo(e,Ko());Sp(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 Sp(e,t,n,i,r){var o,a;pp(Bc)?(a=(o=Ip(t)).defaultBubbleCss,o=o.defaultUnseenCountCss,a=C.extend(a,i),o=C.extend(o,r),Bc.bubbleEle.css(a),Bc.unseenCountEle.css(o),Bc.unseenCountEle.text()!=""+n&&Bc.unseenCountEle.text(n)):(a=k(e).find(".pendo-resource-center-badge-notification-bubble")).length?a[0].getElementsByClassName("pendo-notification-bubble-unread-count")[0].textContent=n:n&&Cp(Bc=Ep(t,n,i,r),e)}function Ip(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 Ep(e,t,n,i){var r=Ip(e),o=r.defaultBubbleCss,r=r.defaultUnseenCountCss,a=(t=t||0,k(document.createElement("div")).addClass("pendo-resource-center-badge-notification-bubble")),s=k(document.createElement("div")).addClass("pendo-notification-bubble-unread-count"),o=C.extend(o,n),n=C.extend(r,i);return a.css(o),s.css(n),Ee(10)||dc()||(i="rgb("+(r=cp(e["background-color"])).r+", "+r.g+", "+r.b+")",Yu(f,"pendo-resource-center-bubble-animation","@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: '+i+"; border-radius: 100%; z-index: -1; animation: pulse 2s infinite; will-change: transform; }"))),s.text(t),{bubbleEle:a,unseenCountEle:s}}function Cp(e,t){e.unseenCountEle.appendTo(e.bubbleEle),e.bubbleEle.appendTo(t)}function xp(){var n=Bc?Bc.bubbleEle:k(".pendo-resource-center-badge-notification-bubble"),i=Bc?Bc.styleEle:k("#pendo-resource-center-bubble-animation");n&&C.each(n,function(e,t){n[t]&&(t=n[t])&&t.parentNode&&t.parentNode.removeChild(t)}),i&&C.each(i,function(e,t){i[t]&&(t=i[t])&&t.parentNode&&t.parentNode.removeChild(t)}),Bc=null,F.resetBadgeAriaLabel()}function _p(e,t){var n=L;n&&(n=C.get(n,"attributes.notifications"))&&n.individualCounts[t]!==e&&(n.individualCounts[t]=e,F.updateNotificationBubbles())}function Tp(e){return!(!C.isFunction(e.hasBeenSeen)||!e.hasBeenSeen())||"active"===e.steps[0].seenState}function kp(e){var t=C.get(e,"attributes.resourceCenter.isModule",!1)?e:F.findShownResourceCenterModule();t&&(t=C.first(t.steps),vg(t));t=(C.get(e,"attributes.resourceCenter.isTopLevel",!1)?e:F.findResourceCenterHomeView(qd())).steps[0];return vg(t)}function Rp(e){return C.get(e,"attributes.resourceCenter.moduleId")}function Ap(e){var t=["pendo-a11y-list-item-button-block","pendo-link-","pendo-right-caret-","pendo-row-","pendo-text-"].join("|");const n=new RegExp(`#((${t})[^:]*)`);t=function i(e,t){var n=[];return t(e)&&n.push(e),e.children?n.concat(...C.map(e.children,function(e){return i(e,t)})):n}(e,function(e){return e.css&&e.css.length});return C.forEach(t,function(e){C.forEach(e.css,function(e){e.selector=e.selector.replace(n,"[id^='$1']")})}),e}function Op(e,t){e.hide(),t&&t.id&&(t.steps&&t.steps.length&&(t.steps[0].overrideElement=undefined),delete Hd[t.id])}var Np=1e4,Mp="lastStepAdvanced";function Lp(e){g.dispatch("guideState/updateLastGuideStepSeen",e),g.dispatch("guideState/write"),g.dispatch("frames/changeLastGuideStepSeen",e)}function Fp(){g.dispatch("guideState/regainFocus")}function Pp(){return g.state.guideState.lastGuideStepSeen}var r={actions:{init(e){e.getters.storage().registry.addLocal(Mp),e.commit("setScopedStorageKey",Pt(e.state.storageKey)),m.identify.on(function(e){Wn(e)&&Rn([Mp])})},load(t,e){if(e){var n;try{n=JSON.parse(e)}catch(i){}n&&C.each([].concat(n),function(e){t.commit("setStepState",e)})}},forceExpire(n){C.each(n.state.steps,function(e,t){n.commit("expireStepState",t)})},expire(n){var i=n.getters.now();C.each(n.state.steps,function(e,t){i-e.time>n.state.ttl&&n.commit("expireStepState",t)})},apply(o){var a,s=C.indexBy(o.getters.guideList(),"id");o.dispatch("expire"),C.each(o.state.steps,function(e){var t,n,i=e.guideId,r=e.guideStepId;e.visitorId&&e.visitorId!==o.getters.visitorId()||((!a||e.time>a.time)&&(a=e),(i=s[i])&&(t=C.findWhere(i.steps,{id:r}))&&(n=o.state.storageKey,t.seenState!=e.state&&(x.info("making sure that seenState = '"+e.state+"' for "+n+": "+r),t.seenState=e.state),t.snoozeEndTime!=e.snoozeEndTime&&(x.info("making sure that snoozeEndTime = '"+e.snoozeEndTime+"' for "+n+": "+r),t.snoozeEndTime=e.snoozeEndTime),t.seenReason!=e.seenReason&&(x.info("making sure that seenReason = '"+e.reason+"' for "+n+": "+r),t.seenReason=e.seenReason),e.dismissCount!==undefined&&t.dismissCount!=e.dismissCount&&(t.dismissCount===undefined?t.dismissCount=e.dismissCount:t.dismissCount=Math.max(e.dismissCount,t.dismissCount),x.info("making sure that dismissCount = '"+t.dismissCount+"' for "+n+": "+r)),e=C.indexOf(i.steps,t),C.each(i.steps.slice(0,e),function(e){C.contains(["advanced","dismissed"],e.seenState)||(e.seenState="advanced")})))}),a&&o.dispatch("updateLastGuideStepSeen",C.extend({},o.state.lastGuideStepSeen,a))},receiveLastGuideStepSeen(e,t){e.commit("setReceivedLastGuideStepSeen",t),e.commit("setLastGuideStepSeen",t)},updateLastGuideStepSeen(e,t){var n;t.visitorId&&t.visitorId!==e.getters.visitorId()||(n=C.some(e.getters.guideList(),function({id:e}){return e===t.guideId}),t.guideStepId&&e.commit("setStepState",t),n&&(e.commit("setLastGuideStepSeen",t),I.lastGuideStepSeen=t))},updateThrottlingState(e,t){e.commit("setThrottlingState",t)},write(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(C.map(e.state.steps,function(e){return C.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(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(a){}e.getters.storageChangedInOtherTab()(o)&&(Kp(),e.dispatch("load",r),e.dispatch("apply"),e.state.receivedStateChangeAt||e.commit("setReceivedStateChange",e.getters.now()))}},regainFocus(e){var t=e.getters.tabLostFocus(),n=e.getters.isGuideRequestStale();t&&(e.commit("setReceivedStateChange",null),n||($p(),Zp())),n&&zm()}},mutations:{expireStepState(e,t){e.expired[t]=e.steps[t],delete e.steps[t]},setStepState(e,t){e.steps[t.guideStepId]=t},setScopedStorageKey(e,t){e.scopedStorageKey=t},setLastGuideStepSeen(e,t){e.lastGuideStepSeen=t},setReceivedLastGuideStepSeen(e,t){e.receivedLastGuideStepSeen=t},setReceivedStateChange(e,t){e.receivedStateChangeAt=t},setLastGuideRequestAt(e,t){e.lastGuideRequestAt=t},setThrottlingState(e,t){e[t.name]=t.value}},state:{steps:{},expired:{},ttl:Np,storageKey:Mp,guideRequestExpiration:36e5,scopedStorageKey:null,receivedStateChangeAt:null,receivedLastGuideStepSeen:null,lastGuideStepSeen:null,lastGuideRequestAt:null,latestDismissedAutoAt:null,latestSnoozedAutoAt:null,finalAdvancedAutoAt:null},getters:{now(){return v()},storage(){return h},guideList(){return O},tabLostFocus(e){return!!e.receivedStateChangeAt},isGuideRequestStale(e,t){return null!=e.lastGuideRequestAt&&t.now()-e.lastGuideRequestAt>e.guideRequestExpiration},storageChangedInOtherTab(n,e,i){return function(e){var t=C.get(i,"frames.tabId");return!!e&&!!((e=C.max(C.compact(e),"time"))&&e.tabId&&t&&e.tabId!==t)&&(!n.lastGuideStepSeen||!n.lastGuideStepSeen.time||e.time>n.lastGuideStepSeen.time)}},cookieSuffix(){return f.get("crossAppGuideStorageSuffix")},visitorId(){return b()}}},Dp={canDisplay:function(e,t,n){if(n&&n.enabled&&C.isFinite(t)){t=Bp(t,n);if(C.isNumber(t)&&!isNaN(t))return t<=e}return!0},lastDismissedTime:function(e){return Math.max(e.latestDismissedAutoAt||-Infinity,e.finalAdvancedAutoAt||-Infinity,e.latestSnoozedAutoAt||-Infinity)},sortAndFilter:function(e,t){var n=f.get("appAutoOrdering")||[].concat(f.get("leaderKey"));{var i;n.length&&(i=g.getters["frames/autoOrdering"](),n=C.reduce(n,(e,t)=>e.concat(i[t]||[]),[]),t=C.uniq(n.concat(t)))}var r,o,n=function(e){e=C.defaults(C.groupBy(e,function(e){return Gp(e)?"override":"auto"}),{override:[],auto:[]});return e.override.concat(e.auto)}(function(e,t){var n;return C.isArray(t)&&t.length?(n=C.indexBy(e,"id"),t=C.reduce(t,i,[]),C.chain(e).pluck("id").reduce(i,t).value()):e;function i(e,t){return n[t]&&(e.push(n[t]),delete n[t]),e}}(C.filter(e,Up),t));return C.find(e,function(e){return e.isTraining})?(t=f.get("adoptPrioritizeAdoptGuides"),e=t,r=[],o=[],C.each(n,function(e){(e.isTraining?r:o).push(e)}),e?r.concat(o):o.concat(r)):n},tryDisplayGuide:function(e,t){var n=Dp.lastDismissedTime(t),n=Dp.canDisplay(v(),n,t.throttling);if((Gp(e)||n)&&e.shouldAutoDisplay())return e.autoDisplay()},getNextAutoDisplayTime:Bp};function Up(e){return e&&/auto/.test(e.launchMethod)}function Gp(e){return(t=e).attributes&&t.attributes.overrideAutoThrottling||C.isFunction(e.shouldShowSnoozedGuide)&&e.shouldShowSnoozedGuide();var t}function Bp(e,t){var n=t.interval,t=(t.unit||"").toLowerCase();return C.isNumber(n)&<(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:C.isNumber(n)?(new Date).getTime():void 0}function zp(t){return m.guideSeen.on(function(e){var e=e.data[0].props||{};"permalink"===e.reason&&(e=t(e.guide_id))&&(e.shownFromPermalink=!0)}),{tryDisplay:function(t=window.location){var n=a(t.href),e=this.getGuideFromUrl(n);{var i,r,o;if(e&&this.shouldShowPermalinkGuide(e))return i=this.getStepFromUrl(n,e),r=n.pendo_once,o=function(e){return e&&r&&(delete n.pendo_once,delete n.pendo,delete n.step,delete n.c__pendo,window.history.replaceState({},document.title,t.pathname+"?"+eo(n))),e},(e=this.showPermalinkGuide(e,i)).then?e.then(o):o(e)}},getQueryString:a,getGuideFromUrl:function(e){e=e.pendo||e.c__pendo;return e?t(e):null},getStepFromUrl:function(e,t){e=e.step;return e?function(e,t){return C.find(e.steps,function(e){return e.id===t})}(t,e):null},showPermalinkGuide:function(e,t){return(t||e).show("permalink")},shouldShowPermalinkGuide:function(e){return!e.shownFromPermalink}};function a(e){var t=$r(e).substring(1),t=Qr(t),n=e.indexOf("#");return!t.pendo&&0<=n&&(n=$r(e.substring(n+1)).substring(1),C.extend(t,Qr(n))),t}}var Hp=C.memoize(function(){return zp(N)});function jp(e,t){var e=C.find(e,function(e){return e.isContinuation(t)}),n=e&&e.attributes&&e.attributes.doNotResume;if(e&&!n)return e}class Wp{constructor(){this.name="autoDisplay",this.queue=[]}markDirty(){hu()&&(this.queue.push("permalink","continuation"),this.queue.push(...Dp.sortAndFilter(Wd(),I.autoOrdering)))}process(e){if(ng())this.cancel();else{var t=this.queue.shift();if("permalink"===t)return Hp().tryDisplay();if("continuation"===t){var n=jp(Wd(),Pp());if(n)return e.saveContext(n),n.show("continue")}else if(t){if(!jp(Wd(),Pp()))return e.saveContext(t),Dp.tryDisplayGuide(t,I);this.cancel()}}}handleProcessTimeExceeded(e){e=e.getContext();e&&x.warn("Auto display ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}var qp=null,Jp=500,Vp=function(e){qp=C.delay(function(){qp=null,Zp()},e=e||Jp),I.guidesProcessingThreadHandle=qp},Kp=function(){qp&&(clearTimeout(qp),qp=null,I.guidesProcessingThreadHandle=qp),g.dispatch("guideUpdate/stopScheduledUpdate")},$p=function(){sg(),ah.cancel();for(var e=0;e<zd.length;e++){var t=zd[e];t.parentNode.removeChild(t)}zd.length=0,g.dispatch("guideUpdate/stopObserver"),m.guideLoopStopped.trigger()},Zp=function(){if(Kp(),Bm.pending||Qg&&I.id&&I.id!==Qg.id)x.info("guides are loading.",{contexts:["guides","loading"]});else if(Rm())x.info("guides are disabled.",{contexts:["guides","disabled"]});else if(Am())x.info("guides are delayed.",{contexts:["guides","delayed"]});else if(!g.getters["guideState/tabLostFocus"]())try{var e=Xd();e&&0!==e.length&&(g.dispatch("guideUpdate/startObserverIfNeeded"),ah.isComplete()&&ah.markDirty(),g.getters["frames/leaderExists"]())&&ah.process()}catch(t){ah.cancel(),x.critical("ERROR in guide-loop",{error:t})}finally{ah.paused||(ah.isComplete()?(g.state.guideUpdate.useObserver&&!g.state.guideUpdate.needsUpdate||Vp(),m.guideUpdateComplete.trigger()):Vp(50))}};var Yp=function(){var e=f.getLocalConfig();f.get("delayGuides")&&(delete e.delayGuides,f.setLocalConfig(e)),f.get("guides.delay")&&(delete e.guides.delay,f.setLocalConfig(e)),Zp()},Xp=function(){Rm()||Nm(!0),$p(),em()};class Qp{constructor(e,t){this.dirty=!1,this.name=e,this.processFn=C.isFunction(t)?t:C.noop}markDirty(){this.dirty=!0}process(){this.processFn(),this.dirty=!1}cancel(){this.dirty=!1}isComplete(){return!this.dirty}}class eh{constructor(){this.name="badge",this.queue=[]}markDirty(){this.queue.push.apply(this.queue,C.filter(Jd(Wd()),tu))}process(e){var t=this.queue.shift();e.saveContext(t),t&&t.placeBadge()}handleProcessTimeExceeded(e){e=e.getContext();x.warn("Badge ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}function th(i,e){var r,o,t,n,a;F.isFullyCustom(i)||(r=!1,o=[],t=C.filter(i.modules,function(e){var t,n;return!!e&&(!!F.isIframeModule(e)||!!F.isSandboxModule(e)||(F.isIntegrationModule(e)?!!F.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1):(t=(n=C.filter(e.guidesInModule,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):(e.ineligibleForRC=!0,e.control&&o.push(e),!1)})).length,e.hasResourceCenterContent=!!t,i.activeModule&&e.id===i.activeModule.id&&(n=rt(C.map(n,function(e){var t=e.isAnnouncement()||e.isWhatsNew()?null:C.pluck(e.steps,"seenState");return{id:e.id,seenState:t}})),e.eligibleGuidesInModuleHash&&n!==e.eligibleGuidesInModuleHash&&(r=!0),e.eligibleGuidesInModuleHash=n),t)))}),n=!1,i.activeModule||(a=rt(C.map(t,function(e){return{id:e.id}})),i.eligibleModulesHash&&i.eligibleModulesHash!==a&&(n=!0,F.replaceResourceCenterContent(i.id,undefined,!0)),i.eligibleModulesHash=a),e(i,t,o),1===t.length&&(i.skipResourceCenterHomeView=!0,i.moduleIdToReplaceHomeViewWith=t[0].id,a=!i.activeModule&&n,e=i.activeModule&&i.activeModule.id!==t[0].id,a||e||r)&&F.replaceResourceCenterContent(i.moduleIdToReplaceHomeViewWith,undefined,!0),t&&(n=C.find(t,function(e){return e.isContinuation(Pp())}),a=C.get(n,"attributes.doNotResume"),e=C.get(n,"attributes.resourceCenter.integrationProvider"),F.isSupportedNativeIntegration(e))&&!a&&i&&(i.continueToNativeModule=!0,n.continueToNativeModule=!0),i.activeModule&&((e=C.find(t,function(e){return e.id===i.activeModule.id}))&&r&&F.replaceResourceCenterContent(i.activeModule.id,undefined,!0),e||F.replaceResourceCenterContent(i.id)),F.repositionResourceCenter())}function nh(e,t,n){var i,r,o=Hd[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&&F.hideRCBadge(o,e),C.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||(C.isFunction(e.placeBadge)&&e.placeBadge(),o=Hd[e.id]),o&&o.show(),e.badgeHidden=!1)}function ih(e){var t,n,i,r,o,a;e&&e.launchMethod&&(e.skipResourceCenterHomeView=!1,e.hasResourceCenterContent=!0,delete e.moduleIdToReplaceHomeViewWith,t=e.activeModule,n=C.get(t,"attributes.resourceCenter.integrationProvider"),e.isNativeModuleActive=t&&F.isSupportedNativeIntegration(n),F.isFullyCustom(e)?e.hasResourceCenterContent=!0:(e.isShown()||!g.getters["frames/isLeader"]()?th(e,nh):(t=e,n=nh,F.isFullyCustom(t)||(i=[],o=[],(r=C.find(t.modules,function(e){return!!F.isIframeModule(e)||!!F.isSandboxModule(e)||!!F.isIntegrationModule(e)&&(!!F.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1))}))&&i.push(r),r=C.flatten(C.pluck(t.modules,"guidesInModule")),o=C.filter(C.compact(r),function(e){return e.control}),!i.length&&(a=C.reduce(t.modules,function(t,n){return C.each(n.guidesInModule,function(e){t[e.id]=n}),t},{}),r=C.filter(r,function(e){return e&&e.steps&&e.steps.length}),r=C.sortBy(r,function(e){return e.steps[0].elementPathRule?1:0}),r=a[(r=C.find(r,function(e){return e.shouldBeAddedToResourceCenter()}))&&r.id])&&i.push(r),n(t,i,o))),e.isNativeModuleActive&&(e.isShown()&&e.hide(),a=Hd[e.id])&&F.hideRCBadge(a,e),"dom"===e.launchMethod&&(F.updateNotificationBubbles(),F.adjustNotificationBubbleForResize())))}class rh{constructor(e=50){this.startTime=-1,this.timeLimit=e,this.context=null}start(){this.context=null,this.startTime=v()}isTimeExceeded(){return v()-this.startTime>this.timeLimit}saveContext(e){this.context=e}getContext(){return this.context}}class oh{constructor(e){this.phases=e,this.queue=[],this.paused=!1}markDirty(){for(var e of this.phases)e.markDirty();this.queue=this.phases.slice()}runGuidePhase(){for(var e,t,n,i=this.queue[0],r=new rh(50);!this.timedOut()&&!i.isComplete()&&!e;)r.start(),!(e=i.process(r))&&r.isTimeExceeded()&&(i.handleProcessTimeExceeded&&i.handleProcessTimeExceeded(r),this.ejectGuide(r.getContext()));ft(e)?(t=this.updateId,n=C.bind(function(){this.updateId===t&&(this.paused=!1,Zp())},this),this.paused=!0,e.then(n)["catch"](n)):i.isComplete()&&this.queue.shift()}addPhase(e,t){t=t||e.name||this.phases.length,C.isFunction(e)&&(e=new Qp(t,e)),this.phases.push(e)}removePhase(t){var e=C.findIndex(this.phases,function(e){return e.name===t});0<=e&&this.phases.splice(e,1)}timedOut(){return!!this.iterationStartTime&&v()-this.iterationStartTime>g.state.guideUpdate.iterationTimeLimit}ejectGuide(e){this.ejectOnTimeout===undefined&&(this.ejectOnTimeout=f.get("guides.ejectOnTimeout")),this.ejectOnTimeout&&e&&!e.isShown()&&Kd.addGuide(e)}process(){var e=v();for(this.updateId||(this.updateId=e,this.updateTotalTime=0,g.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)}complete(e){g.commit("monitoring/setTimer",{name:"guideUpdateTimeMS",time:this.updateTotalTime}),g.commit("guideUpdate/completeUpdate",e),this.cancel()}cancel(){this.updateId=null,this.paused=!1,this.queue.length=0;for(var e of this.phases)C.isFunction(e.cancel)&&e.cancel()}isComplete(){return!this.queue.length}}var ah=new oh([new eh,new Qp("resourceCenter",function(){ih(F.getResourceCenter())}),new Qp("frameVisibility",function(){g.dispatch("frames/checkFrameVisibility")}),new Qp("guideShowing",function(){var a=jm();a&&(C.each(a.steps,function(e){var t,n,i,r,o;a.guide,(e=e).isLocked()||g.getters["frames/isShownInAnotherFrame"]()(e)||(t=e.element,n=e.targetElement,r=e.guideElement,i=k("."+Xf),(r=r.find("#pendo-guide-container")[0])&&r.textContent&&(r=A(r).fontSize,e.attributes.currentTextZoomFontSize!==r)&&(e.attributes.currentTextZoomFontSize&&e.redraw(),e.attributes.currentTextZoomFontSize=r),e.elementPathRule&&n&&!yr.matchesSelector(n,e.elementPathRule)?e.hide():(r=la(t),o=!0,n&&r&&e.elementContainsRulesList&&(o=Tg(n,e.elementContainsRulesList),r=o),t&&(r||i.hasClass("mouseover"))?e.checkPlacement():("tooltip"===e.type||"tooltip"===e.attributes.calculatedType)&&ca(t)&&o||e.hide()))}),a.guide.checkForHiddenGroupSteps())}),new Wp]);function sh(){ah.addPhase(...arguments)}function dh(){ah.removePhase(...arguments)}function uh(){var s={};return C.each(["after","before"],function(i){this[i]=function(e,t){var n,r,o,a;this[e]&&((n=s[e])||(n=s[e]={before:[],after:[]},this[e]=(r=this[e],o=n.before,a=n.after,function(){for(var e=C.toArray(arguments),t=0,n=o.length;t<n;++t)if(!1===o[t].apply(this,e))return;var i=r.apply(this,e);for(t=0,n=a.length;t<n&&!1!==a[t].apply(this,e);++t);return i})),n[i].push(t))}},this),this}var lh="debug-enabled";function ch(){try{var e=JSON.parse(h.read(lh,!0)||Mt(lh));return"boolean"==typeof e?{enabled:e}:e||{}}catch(t){return{}}}function ph(e=!0){let t;return t=g&&g.getters&&g.getters["debugger/debuggingEnabled"]?g.getters["debugger/debuggingEnabled"]():!0===ch().enabled,e?t:t?"Yes":"No"}class hh{constructor(e,t){this.type=t,this.identificationFn=e}test(e){return this.identificationFn(e)}}const fh=(()=>{const n={},e=({data:e})=>{var[e,,]=e,e=e["guideId"];const t=N(e);e=(C.find(n,e=>e.GuideType.test(t))||{}).handler;e&&e(t,"resourceFetchFail")};return{run:()=>{m.resourceFetchFail.on(e)},stop:()=>{m.resourceFetchFail.off(e)},addTypeHandler:(e,t)=>{C.isFunction(t)?n[e.type]={GuideType:e,handler:t}:x.error("Invalid Handler function provided for type "+e.type)}}})();fh.addTypeHandler(new hh(tu,"badge"),(e,t)=>{Kd.addGuide(e)});var gh="_pendo-badge_";function mh(e){var t;return e&&((t=(t=e.props=e.props||{}).style=t.style||{}).cursor=t.cursor||"pointer"),e}function vh(t,n){var e,i,r,o,a,s=uu(n),d=!(null==(d=null==t?void 0:t.attributes)||!d.resourceCenter),u=!1;return d&&(u=null==(e=null==(e=null==t?void 0:t.attributes)?void 0:e.badge)?void 0:e.ignoreRTL),"building-block"===t.attributes.type?(e=C.reduce([(o=t.language,a=d?["he","ar"]:[],e=>(C.contains(a,o)&&(e.props["data-localization-direction"]=!0),e)),(r=u,e=>{var t,n;return C.get(e,"props.data-localization-direction",!1)&&!r&&(t=C.get(e,"props.style.left","auto"),n=C.get(e,"props.style.right","auto"),t)&&n&&(e.props.style.left=n,e.props.style.right=t),e}),mh,Hu,function(e){return pc(e,{id:n.id,guideId:t.id,isBadge:!0})}],(e,t)=>t(e),this.domJson)[0],i=e,k.removeNode(e),-1===i.className.indexOf("_pendo-badge_")&&(i.className+=" _pendo-badge_"),this.isP2Badge=!0):((i=document.createElement("img")).src=zu(this.imageUrl),i.className="_pendo-badge "+gh,d=this.width||13,u=this.height||13,Go(i,"width:"+d+"px;height:"+u+"px;")),i.id="_pendo-badge_"+n.id,this.activate=function(){var e=C.isFunction(n.getGuide)&&n.getGuide(),t=Ng(e);!e.isShown()||g.getters["frames/isShownInAnotherFrame"]()(n)?Lg(n,"badge"):t?n.eventRouter.eventable.trigger("pendoEvent",{step:n,action:"dismissGuide"}):(t=C.find(e.steps,function(e){return e.isShown()}),vg(t))},this.shouldShow=function(){return t.canBadgeBeShown()||!1},this.show=function(){if(C.isFunction(this.shouldShow))return this.shouldShow()},this.hide=function(){k.removeNode(i),vc(t.id),C.isFunction(this.removeScrollHandlers)&&(this.removeScrollHandlers(),this.removeScrollHandlers=null),n.overrideElement=undefined},Ng(t)&&(this.toggleAriaExpanded=function(){var e=!!k("#pendo-resource-center-container")[0],t=k("button._pendo-resource-center-badge-container")[0]||k('._pendo-resource-center-badge-container [id^="pendo-image-badge-"]')[0];t&&t.setAttribute("aria-expanded",e)},i.checkAriaExpanded=this.toggleAriaExpanded),this.step=C.constant(n),this.target=C.constant(s),this.element=C.constant(i),this}vh.create=function(n){var i=vh.findStep(n);if(i)return C.reduce(vh.behaviors,function(e,t){return t.call(e,n,i)},n.attributes.badge)},vh.findStep=function(e){var t=C.find(e.steps,function(e){return!!e.elementPathRule});if(t&&e.attributes&&e.attributes.badge)return t},vh.behaviors=[uh,vh,function(){"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&&Go(n,"display:inline-block;vertical-align:text-bottom;"),this.css&&Go(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)))});return this},function(s){this.position&&"top-right"!==this.position&&"top-left"!==this.position||this.before("show",function(){var e=this.element(),t=Wo(this.target()),n=0,i=0,r=0;if(this.offsets&&(n=this.offsets.top||0,i=this.offsets.right||0,r=this.offsets.left||0),!C.get(s,"attributes.resourceCenter",!1)){var o="position:"+(t.fixed?"fixed":"absolute")+";top:"+(t.top+n)+"px;";switch(this.position){case"top-right":o+="left:"+(t.left+t.width-i)+"px";break;case"top-left":o+="left:"+(t.left+r)+"px"}Go(e,o)}if(!e.parentNode){au().appendChild(e);const a=aa(Er,this.target(),Ih);this.removeScrollHandlers=()=>{Ih.cancel(),a()}}});return this},function(){"over"===this.position&&this.before("show",function(){var e=this.element(),t=Wo(this.target()),n="position:absolute;top:"+t.top+"px;left:"+t.left+"px;";if(n+="height:"+t.height+"px;width:"+t.width+"px;",Go(e,n+="background-color:transparent;"),!e.parentNode){au().appendChild(e);const i=aa(Ih,e,this.target());this.removeScrollHandlers=()=>{Ih.cancel(),i()}}});return this},function(){var t=this,e=t.element(),n=!1,i=function(e){t.activate(),t.toggleAriaExpanded&&t.toggleAriaExpanded(),Gd(e)};return t.after("show",function(){n||(c(e,"click",i),n=!0)}),t.after("hide",function(){Ud(e,"click",i),n=!1}),t},function(){var t=this.element(),n=this.step(),e=!1;{var i,r,o;"yes"!==this.useHover&&!this.showGuideOnBadgeHover||(i=C.throttle(function(e){xr(e)===t||function(e){for(;e;){if(/_pendo-guide_|_pendo-guide-tt_|_pendo-backdrop|_pendo-badge_/.test(e.className))return!0;if(/pendo-guide-container/.test(e.id))return!0;e=e.parentNode}return!1}(xr(e))||o()},50,{trailing:!1}),r=function(e){n.isShown()||Lg(n,"badge"),c(document,"mousemove",i),Gd(e)},o=function(e){Ud(document,"mousemove",i),ru()||vg(n)},this.after("show",function(){e||(c(t,"mouseover",r),e=!0)}),this.after("hide",function(){Ud(t,"mouseover",r),Ud(document,"mousemove",i),e=!1}))}return this},function(){var s=this.element(),d=this.target(),e=!1;{var t,n,i,r,u;!this.showBadgeOnlyOnElementHover&&!/hover/.test(this.showOnEvent)||ru()||(t="inline"===this.position?"visibility:visible;":"display:inline;",n="inline"===this.position?"visibility:hidden;":"display:none;",i=C.throttle(function(e){var t,n,i,r,o,a;xr(e)===d||xr(e)===s||No(s,"triggered")||(t=e.clientX,e=e.clientY,n=Yo(d),i=Yo(s),r=Math.min(n.left,i.left),o=Math.min(n.top,i.top),a=Math.max(n.right,i.right),n=Math.max(n.bottom,i.bottom),i=e+document.documentElement.scrollTop,r<=t&&t<=a&&o<=i&&i<=n)||u()},50,{trailing:!1}),r=function(){Go(s,t),c(document,"mousemove",i)},u=function(){Ud(document,"mousemove",i),Go(s,n)},this.after("show",function(){e||(c(d,"mouseover",r),e=!0,u())}),this.after("hide",function(){e&&(Ud(d,"mouseover",r),e=!1),u()}))}return this}];var yh=function(e,t){var n,i,r=(t=t||Hd)[e.id],o=r?r.step():vh.findStep(e);o&&(i=r?r.target():uu(o),(n=C.get(e,"attributes.resourceCenter"))&&!g.getters["frames/canShowRCBadge"]()?r&&C.isFunction(r.hide)&&(t[e.id]=undefined,r.hide()):n&&!e.hasResourceCenterContent||(F.updateNotificationBubbles(),n=!0,o.elementContainsRulesList&&(n=i&&Tg(i,o.elementContainsRulesList)),(i=o.elementPathRule&&la(i)&&yr.matchesSelector(i,o.elementPathRule)&&n)?((r=r||vh.create(e)).show(),t[e.id]=r):r&&!o.isShown()&&(t[e.id]=undefined,r.hide()),ph()&&m.stepEligibility.trigger({stepId:o.id,guideId:e.id,eligible:i,reason:"target_element_badge"}),F.repositionDoubleResourceCenterBadge()))},bh=function(){C.map(Hd,wh),Hd={}},wh=function(e,t){e&&(C.isFunction(e.hide)&&e.hide(),C.isFunction(e.shouldShow))&&!e.shouldShow()&&t&&delete Hd[t.id]},Sh=function(e){var t=Hd[e.id];t&&wh(t,e)};var Ih=C.throttle(function(){C.map(Hd,function(e){e&&e.show&&e.show()})},10);const Eh=h.getLocal();var P,Ch="pendo-preview",xh="current-guide-preview";function _h(e){return g.dispatch("preview/load"),Th(e)}function Th(t){var e=Hh();if(e)return Rh(t),g.dispatch("preview/start",C.extend(e)),h.clear(Mp),Nt(!1),ns.lock(),rm=Jh,m.startPreview.trigger(),m.leaderChanged.on(function(e){g.dispatch("preview/write"),e.oldLeaderId||zm(),g.getters["frames/isLeader"]()||(k(P).remove(),P=null,t.removeEventListener("message",Oh))}),sh(kh),!0}function kh(){if(!g.getters["frames/isFollower"]()){var t,n,i,r,o,e,a=document,s=Xd(),d=Pp();if(Nh()&&(t=Hh())&&P&&P.contentWindow)if(s&&s.length){P.contentWindow.postMessage({mutation:"preview/setGuideLoaded",payload:{guideLoaded:!0}},location.origin),n=C.find(s,function(e){return e.id===t.guideId}),i=0,r=n.steps.length,o=d||{},C.find(n.steps,function(e,t){return o.guideStepId===e.id&&("dismissed"===o.state||"active"===o.state?i=t:"advanced"===o.state&&o.destinationStepId?i=C.indexOf(n.steps,C.find(n.steps,function(e){return e.id===o.destinationStepId})):"advanced"===o.state&&t===r-1&&(i=r),!0)}),s="dismissed"===o.state,d=r-1<=i,s=s||d,d=d?r-1:i,e=n.steps[d],p=e.isShown(),P.contentWindow.postMessage({mutation:"preview/setHostname",payload:{hostname:ze}},location.origin),P.contentWindow.postMessage({mutation:"preview/setGuidePages",payload:{guidePages:n.previewPages}},location.origin),P.contentWindow.postMessage({mutation:"preview/setGuideProgress",payload:{guideName:n.name,guideAttributes:JSON.stringify(n.attributes),guideLaunchMethod:n.launchMethod,guideActivationSelector:lu(n),isAdoptGuide:n.isTraining,isResourceCenter:t.isResourceCenter,stepId:e&&e.id,currentStepIndex:d,stepCount:r,elementPathRule:e.elementPathRule,elementContainsRulesList:e.elementContainsRulesList,triggerElementPathRule:e.triggerElementPathRule,isShown:p,pageId:e.pageId,completed:s,languageOptions:C.get(t,"languageOptions",[]),currentLanguage:t.language}},location.origin);var u=e,l=d,c=P;if(u&&c&&c.contentWindow){const h=u.getGuide().id;var p=C.filter(g.state.frames.frames,e=>"hidden"!==e.visibility&&e.guides&&e.guides[h]);if(p.length)p=C.map(p,e=>D.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:e.id,stepId:u.id,guideId:h,currentStepIndex:l})),y.all(p).then(t=>{let n={},i=-1;for(let e=0;e<t.length;e++){var r=JSON.parse(t[e]).errors;if(!r.GUIDE){var o=C.keys(r).length;if(!o){n={};break}-1===i?(n=r,i=o):u.regexUrlRule?!r.PAGE&&o<=i&&(n=r,i=o):o<i&&(n=r,i=o)}}c.contentWindow.postMessage({mutation:"preview/setErrors",payload:{errors:n}},location.origin)})["catch"](C.noop)}}else Uh(0,{status:404,data:"Guide not found"})}return!0}function Rh(e){if(g.getters["frames/leaderExists"]()){if(!g.getters["frames/isFollower"]()){if(P)return!0;var t,n;C.isFunction(e.addEventListener)&&e.addEventListener("message",Oh),(t=document.createElement("iframe")).id=Ch,Bo(t,{border:"none",display:"block !important",height:n="70px !important","min-height":n,left:0,position:"fixed",right:0,top:0,visibility:"visible !important",width:"100% !important","z-index":4e5}),t.onload=function(){if(f.get("inlineStyleNonce")){const n=t.contentDocument.createElement.bind(t.contentDocument);t.contentDocument.createElement=(e,...t)=>{t=n(e,...t);return"style"===e&&(e=f.get("inlineStyleNonce"))&&t.setAttribute("nonce",e),t}}var e=document.createElement("script");e.src=f.get("previewModeAssetPath")||ro("pendo.preview.min.js"),t.contentDocument.body.appendChild(e),t.contentWindow.ignoreIframeMonitor=!0},P=t,Ko().appendChild(P)}}else m.one("leaderChanged",C.partial(Rh,e))}function Ah(e,t,n){sg(),g.commit("healthCheck/resetStepStatus",null,{root:!0}),Wu.reset(),zm();var i=e[0],i=(i&&C.each(i.steps,function(e){e.seenState=null}),h.clear(Mp),g.dispatch("preview/update",null),Hh());return i&&(i=C.findWhere(e,{id:i.guideId}))&&(i={stepId:i.steps[0].id},n&&(i.language=n),g.dispatch("preview/restart",i)),Dh(e,t)}function Oh(e){var t,n;e.origin===location.origin&&(t=e.data.type,n=!!e.data.preventWindowClose,t===Ch+"::exit"?(Gh({preventWindowClose:n}),g.dispatch("frames/stopPreview",{preventWindowClose:n})):t===Ch+"::restart"?(n=Ah(Xd(),Pp(),e.data.language),g.dispatch("guideState/forceExpire"),g.dispatch("guideState/updateLastGuideStepSeen",n),g.dispatch("frames/restartPreview")):t===Ch+"::resize"?(n=e.data.height,P&&P.style&&(P.style.height=n)):t===Ch+"::request-preview-mode-type"&&(e=jh(),P)&&P.contentWindow&&e&&P.contentWindow.postMessage({mutation:"preview/setPreviewModeType",payload:{previewModeType:e.previewModeType||"NEW_TAB"}},location.origin))}function Nh(){return g.getters["preview/isInPreviewMode"]()}function Mh(){return g.getters["preview/isInDesignerPreviewMode"]()}function Lh(e){var t,n,i=Hh();if(!i)return e;if(i.isResourceCenter)return r=e,t=i,n=F.findResourceCenterHomeView(r),r=C.filter(r,function(e){return e.id!==n.id}),Ph(n,t.stepId),t=C.map(r,function(e){return e.launchMethod="launcher",e}),[n].concat(t);{var r=e,o=i;let t;return C.each(r,function(e){e.id===o.guideId?t=e:((e=e).launchMethod="api",(e=e.steps[0])&&(e.seenState="advanced"))}),Fh(t),t.showsAfter=null,t.expiresAfter=null,Ph(t,o.stepId),r}}function Fh(e){"launcher"===e.launchMethod?e.launchMethod="auto-launcher":"api"===e.launchMethod&&(e.launchMethod="auto")}function Ph(e,t){for(var n=C.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 Dh(e,t){null==t&&(t={});var n=Hh();if(!n)return t;e=C.findWhere(e,{id:n.guideId});if(!e)return t;if(n.state)return n.state;Fh(e);t=-1<e.launchMethod.indexOf("auto");return n.stepId!==e.steps[0].id||t?{guideId:n.guideId,guideStepId:n.stepId,state:"active"}:{}}function Uh(e,t){P&&P.contentWindow&&P.contentWindow.postMessage({mutation:"preview/setGuideLoadError",payload:{guideLoadError:t}},location.origin)}function Gh(e){var t=jh(),n=!1,i=(t&&(n="SAME_TAB"===t.previewModeType),Eh.getItem("pendo-navigation-state"));if(g.dispatch("preview/exit"),sg({stayHidden:!0}),h.clear(Mp),ns.unlock(),k(P).remove(),rm=bu,dh(kh),Nt(!0),n&&i){Eh.setItem(xh,JSON.stringify(C.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};g.dispatch("preview/launchInAppDesigner",o)}catch(a){g.dispatch("preview/exitDesignerPreview")}}else e&&!e.preventWindowClose&&window.close(),zm()}function Bh(e,t){e=C.get(e(),t);if(e)return JSON.parse(JSON.stringify(e))}function zh(){return g}var Hh=C.partial(Bh,zh,"state.preview.preview"),jh=C.partial(Bh,zh,"state.preview.designerPreview");function Wh(e){var t;if(e.subscriptionId&&e.guideId)return t=e.isResourceCenter?"/resourcecenter/":"/guide/","/api/s/"+vt(e.subscriptionId)+t+vt(e.guideId)+"/preview"}var qh=function(e){var t;return Sa(e.origin)?(t=Wh(e))?(t={url:e.origin+t+"?url="+vt(R.externalizeURL())+"&apiKey="+I.apiKey,withCredentials:!0},e.headers&&(t.headers=e.headers),Tr(t).then(function(e){return e.data.guide})):(x.info("Invalid guide url, exiting preview"),y.reject("invalid guide url")):(x.info("Invalid origin, exiting preview"),y.reject("invalid origin"))},Jh={load(e,t,n){return Kh(e,n)},post(e,t,n,i){return Kh(e,i)},endpoint(){return""},usesXhr(){return!0}};function Vh(n,t){if(!Sa(n.origin))return x.info("Invalid origin, exiting preview"),y.reject("invalid origin");var e=Wh(n);if(!e)return x.info("Invalid guide url, exiting preview"),y.reject("invalid guide url");if(!g.getters["frames/leaderExists"]()||n.apiKey!==I.apiKey)return I.guidesPayload({id:t,lastGuideStepSeen:{},guides:[]}),y.resolve();let i=""+n.origin+e+`?url=${vt(R.externalizeURL())}&apiKey=`+I.apiKey;n.childGuides&&n.childGuides.length&&(i+="&childGuides="+n.childGuides.toString()),Mh()&&(i+="&ignoreGuide=true");var e={url:i,withCredentials:!0},r=(n.headers&&(e.headers=n.headers),[]);return Tr(e).then(function(e){var t,l,e=e.data;return Mh()?(t=jh(),r=t?Mh()?(C.each(t.guide.steps,function(t){let e=["domJsonpUrl","domUrl"];t.domUrl&&0===t.domUrl.indexOf("data:")&&(e=["domJson","contentJs","contentCss","content"]),C.each(e,function(e){delete t[e]})}),t.guide.showsAfter=null,t.guide.expiresAfter=null,[t.guide]):void 0:[],e.guide=r[0]):r=n.isResourceCenter?e.guide:(e.guide.previewPages=e.pages,[e.guide]),e.children&&(r=r.concat(e.children)),n.language&&n.language!==C.get(r,"[0].authoredLanguage")&&(t=r,l=n.language.value,C.forEach(t,function(u){C.forEach(u.steps,function(e){var{domHash:t,domJsonpHash:n,translationHash:i,originalDomJsonHash:r,originalDomJsonpHash:o,originalBuildingBlockHash:a,domHash256:s,domJsonpHash256:d}=C.get(u,"translationStates."+l+".stepTranslations."+e.id,{});e.domUrl=$h(r,e.domUrl,".dom.json",s),e.domJsonpUrl=$h(o,e.domJsonpUrl,".dom.jsonp",d),e.buildingBlocksUrl=$h(a,e.buildingBlocksUrl,".buildingBlocks.json"),t&&n&&i&&(e.domUrl=e.domUrl.replace(".dom.json","-"+t+"-"+l+".dom.json"),e.domJsonpUrl=e.domJsonpUrl.replace(".dom.jsonp","-"+n+"-"+l+".dom.jsonp"),e.buildingBlocksUrl=e.buildingBlocksUrl.replace(".buildingBlocks.json","-"+i+"-"+l+".buildingBlocks.json"))})})),n.watermarkConfig&&(e.guide.isTraining=!0),I.guideWidget={enabled:!1,data:{guideCssUrl:e.guideCssUrl}},I.guideCssUrl=e.guideCssUrl,I.normalizedUrl=e.normalizedUrl,I.throttling=undefined,e.guide}).then(function(e){var t;return n.watermarkConfig?(t=JSON.parse(JSON.stringify(n)),t=Object.assign(t,n.watermarkConfig),qh(t)):e}).then(function(e){e&&e.attributes&&e.attributes.isWatermark&&r.push(e),I.guidesPayload({id:t,lastGuideStepSeen:Dh(r,I.lastGuideStepSeen),guides:Lh(r)})})["catch"](function(e){return Uh(document,e),y.reject(e)})}function Kh(e,t){var n=Hh();return!n||!Wh(n)||!(e=/[?&]id=(\d+)/.exec(e))||e.length<1?y.reject():Vh(n,e[1]).then(t)}function $h(t,n,i,r){if(n){var n=n.split("/"),o=n[n.length-1];let e=o;return t&&(e=""+t+o.slice(o.indexOf(i))),r&&-1<(t=e.indexOf("sha256="))&&(e=e.slice(0,t)+"sha256="+r),n[n.length-1]=e,n.join("/")}}const Zh=function(){let n=null,i=[];const r=e=>{I.apiKey=e+="",n=e};return{getApiKey(){return I.apiKey},discoverKeys({apiKey:e,additionalApiKeys:t=[]}){n=null,i=[],e=e,(e=f.get("apiKey",e))&&r(e),n,e=t,e=f.get("additionalApiKeys",e),i=C.reduce(e,(e,t)=>(t&&e.push(t+""),e),[]),i=[].concat(e),I.additionalApiKeys=i,!n&&i&&i.length&&r(i[0])},getAdditionalApiKeys(){return I.additionalApiKeys},tamperedWith(){return I.apiKey!==n||I.additionalApiKeys!==i}}}(),Yh=h.getLocal();Xh=n||ze,Qh="in-app-designer",ef="latest",m.leaderChanged.on(function(){nf({ignoreLocalStorageNavigation:/pendo-/.test(window.name)||Mh()})});var Xh,Qh,ef,tf={launchDesigner:function(e){var t,n="latest",i="designer";Yu(f,"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%;}"),pf("designer-shims",Xh+"/"+i+"/"+n+"/plugin.js"),I.DESIGNER_VERSION?lf(n,i):t=window.setInterval(function(){I.DESIGNER_VERSION&&(lf(n,i),clearInterval(t))},100)},launchInAppDesigner:uf,localStorageNavigation:nf,launchOnToken:function(e){if(!hf(window.name)){var t=/pendo-designer=([A-Za-z0-9-]+)/;if(t.test(e)){var n,e=t.exec(e);if(e)return t=function(e){try{return JSON.parse(atob(mt(e)))||{}}catch(t){return{}}}(e[1]),e=of(t),n=df(t),window.localStorage.removeItem("pendo-navigation-state"),window.localStorage.removeItem("pendo-designer-mode"),uf({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,tf.hostConfig.host)},isValidDesignerHost:rf,isValidTarget:sf,addCommunicationIframe:function(e,t){e=e||{};C.isFunction(t)||(t=C.noop);var n=df(e),e=af(e),i=(new Date).getTime(),r=(tf.windowCommunicationId=i,"pendo-designer-communication-iframe");if(document.getElementById(r))return t(),document.getElementById(r);var o="pendo-designer-communication-embedded";o+="__"+i;i=cf(r,Xh+"/"+e+"/"+n+"/communication.html","border-width:0;height:0;width:0;");return i.setAttribute("name",o),i.onload=t,document.body.appendChild(i),i},hostConfig:{host:Xh},isDesignerFrame:hf,addScriptToPage:pf};function nf(e){if(!e.ignoreLocalStorageNavigation){var t,e=Yh.getItem("pendo-navigation-state");if(e&&g.getters["frames/isLeader"]()){try{t=JSON.parse(e)}catch(n){return}if(!t.apiKey||t.apiKey===Zh.getApiKey())if(t.apiKey||!t.agentInstallType||t.agentInstallType===we())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},tf.launchInAppDesigner(e),!0}}}function rf(e){return!!e&&Sa(e)}function of(e){var e=(e=e||{}).host||Xh,t=rf(e),n=t?e:ze;return e&&!t&&x.info("Invalid host, falling back to "+ze),n}function af(e){var e=(e=e||{}).gcsBucket||Qh,t="in-app-designer"===(t=e)||"da-designer"===t||"adopt-studio"===t,e=t?e:Qh;return t||x.info("Invalid bucket, falling back to "+Qh),e}function sf(e){return"latest"===e||"strict"===e||"beta"===e||"via"===e||"mobile"===e||new RegExp("^[0-9]+.[0-9]+.[0-9]+(-[a-z0-9-]+[a-z0-9]+)?$").test(e)}function df(e){e=e||{};var t=f.get("enableCrossOriginIsolation")?"strict":ef,e=e.target||e.baseFolder||t,t=sf(e),e=t?e:ef;return t||x.info("Invalid target, falling back to "+ef),e}function uf(e){if(!hf(window.name)&&!I.designerLaunched)if(f.get("disableDesigner"))x.info("Unable to launch the Visual Design Studio, set to disabled in configuration.");else{var t,n,i,r,o,a=!1;try{a=!!window.top.pendo}catch(s){}tf.crossFrameChannel===undefined&&(tf.crossFrameChannel=D,tf.useCrossFrameChannel=!0),Wa()&&a&&!e.allowChildFrame&&!e.selectionOnly?x.info("skipping designer launch from a child frame. pass `allowChildFrame: true` to override"):I.isReady()?(I.designerLaunchTime=(new Date).getTime(),a=of(e=e||{}),r=af(e),o=df(e),i=e.preloader?"preloader.js":"plugin.js",t=e.preloader?"preloader-shims":"designer-shims",n=a+"/"+r+"/"+o+"/"+i,f.get("useAssetHostForDesigner")&&(n=ro(i)),tf.hostConfig={gcsBucket:r,baseFolder:o,uniqueWindowId:e.uniqueWindowId,host:a,adoptv2:e.adoptv2,DADesigner:e.DADesigner,agentInstallType:we(),forceNativeDesigner:!!e.forceNativeDesigner,sidebarDesigner:!!e.sidebarDesigner,apiKey:Zh.getApiKey()},i={},e.selectionOnly&&(i["selection-only"]=!0),f.get("pendoGlobalKey")&&(i["data-pendo-global-key"]=f.get("pendoGlobalKey")),r=f.get("designerAgentPluginsLoader"),o=window.__pendoExtensions&&e.forceNativeDesigner,a=!window.__pendoExtensions&&!C.isFunction(r),(o||a)&&(tf.addScriptToPage(t,n,i),I.designerLaunched=!0),!e.forceNativeDesigner&&C.isFunction(r)&&(r(t,n,i),I.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 lf(e,t){window.postMessage({type:"connect",source:"pendo-designer-content-script",destination:"pendo-designer-agent"},location.origin);var n;document.getElementById("pendo-designer-container")||(n="pendo-designer-embedded",n+="__"+tf.windowCommunicationId,(t=cf("pendo-designer-iframe",Xh+"/"+t+"/"+e+"/designer.html")).setAttribute("name",n),e=function(e){var t=document.createElement("div");return t.setAttribute("id","pendo-designer-container"),t.appendChild(e),t}(t),document.body.appendChild(e))}function cf(e,t,n){var i=document.createElement("iframe");return i.setAttribute("id",e),n&&Go(i,n),i.setAttribute("sandbox","allow-scripts allow-same-origin allow-top-navigation allow-forms allow-pointer-lock allow-popups allow-storage-access-by-user-activation"),i.src=t,i}function pf(e,t,n){var i;document.getElementById(e)||((i=document.createElement("script")).setAttribute("charset","utf-8"),i.setAttribute("id",e),i.src=$(I).createScriptURL(t),n&&C.forEach(n,function(e,t){i.setAttribute(t,e)}),document.body.appendChild(i))}function hf(e){try{var t=JSON.parse(e);return/^pendo-/.test(t.frameName)||/^pendo-/.test(t.frame)}catch(n){return!1}}ff={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"},gf={GRAY_LIGHTER_6:"#EAECF1",GRAY_PRIMARY:"#2A2C35",PENDO_PINK:"#FF4876",TEAL_DARKER:"#036463",TEAL_PRIMARY:"#008180",WHITE:"#FFFFFF"},(mf={BUTTON_HEIGHT:35,HEADER_HEIGHT:60,MODAL_HEIGHT:235,MODAL_TOP_OFFSET:150,MODAL_WIDTH:370}).FOOTER_HEIGHT=1.25*mf.HEADER_HEIGHT,mf.BODY_HEIGHT="calc(100% - "+mf.HEADER_HEIGHT+"px - "+mf.FOOTER_HEIGHT+"px)",vf='<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>',(yf={})["#"+ff.closeButton+":hover"]={"background-color":gf.GRAY_LIGHTER_6},yf["#"+ff.launchButton+":hover"]={"background-color":gf.TEAL_DARKER+" !important"},bf={PRIMARY_FONT:"Helvetica Neue"};var ff,gf,mf,vf,yf,bf,wf={listen:function(){return C.isFunction(document.addEventListener)?(document.addEventListener("keyup",Sf,!1),()=>{document.removeEventListener("keyup",Sf,!1)}):()=>{}},launchOnLocalStorageToken:kf,ids:ff,removeElement:xf,attemptToLaunch:Cf,loadPluginJs:function(){var t;I.designerLaunched||(t=C.once(function(e){kf(e,!0)}),Ja(function(e){"pendo-designer-launch-modal"===e.data.destination&&e.data.token&&t(e.data.token)}))}};function Sf(e){e.shiftKey&&e.altKey&&"Digit7"===e.code&&Cf(!0),e.shiftKey&&e.altKey&&"Digit8"===e.code&&Cf(!1,!0)}function If(e,t){var n,i,r,o={"background-color":gf.WHITE,height:mf.MODAL_HEIGHT+"px","min-height":mf.MODAL_HEIGHT+"px",width:mf.MODAL_WIDTH+"px",position:"fixed",top:mf.MODAL_TOP_OFFSET+"px",left:"50%","margin-left":-mf.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"},o=Ef("div",ff.container,o);Yu(f,ff.style,C.reduce(C.pairs(yf),function(e,t){var n=t[0],t=t[1];return e+n+"{"+C.reduce(C.pairs(t),function(e,t){return e+t[0]+":"+t[1]+";"},"")+"} "},""),o),o.appendChild((t=t,r=Ef("div",ff.header,{"background-color":gf.GRAY_PRIMARY,height:mf.HEADER_HEIGHT+"px","min-height":mf.HEADER_HEIGHT+"px",width:"100%",padding:"10px 20px",display:"flex","align-items":"center","box-sizing":"border-box"}),(i=Ef("div",ff.logoContainer,{height:"38px",width:"44px","background-color":gf.PENDO_PINK,padding:"8px","border-radius":"3px","box-sizing":"border-box"})).innerHTML=$(I).createHTML(vf),r.appendChild(i),(i=Ef("div",ff.title,{width:"100%",display:"flex","align-items":"center","font-family":bf.PRIMARY_FONT,"font-size":"18px",color:gf.WHITE,"margin-left":"10px","box-sizing":"border-box"})).innerText=t?"VIA Designer":"Pendo Designer",r.appendChild(i),r)),o.appendChild(((t=Ef("div",ff.body,{height:mf.BODY_HEIGHT,"min-height":mf.BODY_HEIGHT,width:"100%",display:"flex",padding:"32px 20px","font-family":bf.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.",t)),o.appendChild((n=e,i=Ef("div",ff.footer,{"align-items":"center","border-top":"1px solid"+gf.GRAY_LIGHTER_6,display:"flex",height:mf.FOOTER_HEIGHT+"px","justify-content":"flex-end","min-height":mf.FOOTER_HEIGHT+"px",padding:"10px",width:"100%","box-sizing":"border-box"}),(r=Ef("button",ff.closeButton,{"border-radius":"3px",border:"none",height:mf.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":bf.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",r.onclick=function(){xf(ff.container),xf(ff.commIframeId)},(t=Ef("button",ff.launchButton,{"background-color":gf.TEAL_PRIMARY,"border-radius":"3px",color:gf.WHITE,border:"none",height:mf.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":bf.PRIMARY_FONT,"font-size":"14px",display:"flex","line-height":"120%","min-width":"90px","justify-content":"center","box-sizing":"border-box"})).textContent="Launch Designer",t.onclick=function(){kf(n)},i.appendChild(r),i.appendChild(t),i)),document.body.appendChild(o)}function Ef(e,t,n){e=document.createElement(e);return e.setAttribute("id",t),C.extend(e.style,n),e}function Cf(t,n){var i,r,o;I.designerLaunched||(o=C.once(function(e){t||!n?kf(e):If(e,t),_f()}),Ja(function(e){"pendo-designer-launch-modal"===e.data.destination&&(clearInterval(i),e.data.viaconfirmed?clearInterval(r):e.data.token?(o(e.data.token),e=JSON.parse(e.data.token),C.contains(e.host,"via")&&!e.visitorId&&(r=r||setInterval(function(){document.getElementById(ff.commIframeId)&&Tf()},100))):_f())}),tf.addCommunicationIframe({defaultBucket:"in-app-designer"},function(){Tf(),i=window.setInterval(Tf,50)}))}function xf(e){document.getElementById(e)&&document.getElementById(e).remove()}function _f(){var e=document.querySelector("#"+ff.commIframeId+'[src*="pendo"]');e&&e.remove()}function Tf(){var e=document.getElementById(ff.commIframeId);e&&e.contentWindow&&C.isFunction(e.contentWindow.postMessage)&&e.contentWindow.postMessage({destination:"pendo-designer-ls",source:"pendo-designer-launch-modal",visitorId:I.visitorId},C.get(I,"designerv2.hostConfig.host",ze))}function kf(e,t){var n={},e=JSON.parse(e);n.target=e.target||"latest",e.host&&(n.host=e.host),e.lookaside&&(n.lookaside=e.lookaside),t&&(n.selectionOnly=t),e.forceNativeDesigner&&(n.forceNativeDesigner=e.forceNativeDesigner),e.sidebarDesigner&&(n.sidebarDesigner=e.sidebarDesigner),xf(ff.container),tf.launchInAppDesigner(n)}var Rf=C.wrap(C.wrap(C.once(C.wrap(function(e){var t=y.defer();return _a(e,function(){t.resolve()}),t.promise},function(e,t){return 0<C.size(yu._handlers.validateGlobalScript)?Tr.get(t).then(function(e){return yu.validateGlobalScript(e.data)}).then(function(){return e(t)}):e(t)})),function(e,t){return t?e(t):y.resolve()}),function(e,t){return f.get("preventCodeInjection")?y.resolve():e(t)}),Af={initializeWatermark:function(e){e=C.filter(e,function(e){return e&&e.attributes&&e.attributes.isWatermark}),Af.watermarkGuides=e,e=C.map(e,function(e){return e.fetchContent()});return y.all(e)},buildWatermark:function(e,t){if((e=e||{}).isTraining){var n=e.targetAccount?function(t){return C.find(Af.watermarkGuides,function(e){return t===e.targetAccount})}(e.targetAccount):function(t){return C.find(Af.watermarkGuides,function(e){return t===e.appId})}(e.appId);if(n&&n.steps){var i,n=n.steps[0];if(n&&n.domJson)return i=n.domJson,(i=t(i,n)).css({position:"absolute",left:"auto",top:e.isBottomAligned?"auto":"100%",bottom:e.isBottomAligned?"100%":"auto",right:"0"}),i}}}};const Of=1e4;function Nf(n,i){var r=!1;const o=[];return n.addEventListener("message",function(e){d(e.data),i.state.guideUpdate.useObserver&&i.dispatch("guideUpdate/documentChanged")}),{postMessage:a,postMessageAsPromise:s,postMessageOrTimeout:function(e,t=Of){const n=y.defer(),i=at(32),r=(e=C.extend(e,{promiseId:i}),Ut(()=>{o[i]&&(n.reject(JSON.stringify({message:"request timed out"})),delete o[i])},t));return s(e).then(e=>{clearTimeout(r),n.resolve(e)}),n.promise},close:function(){r=!0,C.isFunction(n.close)&&n.close()}};function a(e){var t;r||(t=C.extend({apiKey:I.apiKey,allowMixedApiKeyFrames:f.get("allowMixedApiKeyFrames"),agentInstallType:we()},e),n.postMessage(t),Ut(function(){d(t)},0))}function s(e){e.promiseId||(t=at(32),e=C.extend(e,{promiseId:t}));var t=y.defer();return o[e.promiseId]=t,a(C.extend(e,{sourceFrame:i.state.frames.frameId})),t.promise}function d(e){try{var t;r||e.apiKey!==I.apiKey&&(!1===e.allowMixedApiKeyFrames||!1===f.get("allowMixedApiKeyFrames"))||e.targetFrame&&e.targetFrame!==i.state.frames.frameId||(e.resolveId?(t=o[e.resolveId])&&(delete o[e.resolveId],t.resolve(JSON.stringify(e))):/^frames\/|^debugger\//.test(e.action)&&i.dispatch(e.action,e))}catch(n){x.critical("ERROR in cross frame channel",{error:n})}}}var Mf="frames/removeFrame";function Lf(e,t,n){return new Ff(e,t,n,(e=t,t=n,new(C.isFunction(e.MessageChannel)?Pf:Df)(e,t)))}function Ff(e,t,n,i){this.init(e,t,n,i)}C.extend(Ff.prototype,{init(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=C.bind(this._frameConnectHandler,this),this._impl.onmessage=C.bind(this._fireMessageListeners,this),this._impl.onrelay=C.bind(this._topMessageHandler,this),this._connectToTop(10,0,function(){this._addControlMessageHandler(),this._connectToTop(250,21,function(){this.close(),this._store.commit("frames/setConnectFailed")})})},_fireMessageListeners(t){C.each(this._listeners,function(e){e(t)})},_controlMessageHandler(e){e=this._impl._parseMessage(e);e.data&&("pendo::connect"===e.data.action&&this._impl.frameConnect(e),e.data.action===Mf)&&this._topMessageHandler(e)},_topMessageHandler(e){!e.data||/^pendo::/.test(e.data.action)||this._closed||(e.data.action===Mf&&this._impl.frameDisconnect(e),this._impl.broadcast(e))},_connectToTop(e,t,n){this._impl.connectToTop({action:"pendo::connect",frameId:this._store.state.frames.frameId},this._targetOrigin),Ut(C.bind(function(){this._connected||(0===t?C.isFunction(n)&&n.call(this):0<t&&this._connectToTop(Math.min(2*e,1e4),t-1,n))},this),e)},_addControlMessageHandler(){this._singletonMessageHandler.addEventListener(C.bind(this._controlMessageHandler,this))},_frameConnectHandler(e){e.data&&"pendo::connectSuccess"===e.data.action&&(this._connected=!0,this._impl.connectSuccess(e),this._store.dispatch("frames/join"))},addEventListener(e,t){"message"===e&&this._listeners.push(t)},postMessage(e){this._closed||this._impl.postMessage(e)},close(){this._closed=!0,this._listeners.length=0,this._impl.close()}});_i={_frameConnectHandler(e){C.isFunction(this.onconnect)&&this.onconnect(this._parseMessage(e))},_messageReceived(e){C.isFunction(this.onmessage)&&this.onmessage(this._parseMessage(e))},_relayMessage(e){C.isFunction(this.onrelay)&&this.onrelay(this._parseMessage(e))},_parseMessage(e){var t;return C.isString(e.data)?((t=C.pick(e,"type","origin","source","ports","lastEventId","target")).data=function(e){if(!C.isString(e))return e;try{return JSON.parse(e)}catch(t){return e}}(e.data),t):e}};function Pf(e,t){this._window=e,this._ports={},this._singletonMessageHandler=t,this._targetOrigin=t.targetOrigin()}function Df(e,t){this._window=e,this._frames={},this._isTop=e==e.top,this._singletonMessageHandler=t,this._boundMessageReceived=C.bind(this._messageReceived,this),this._isTop||(this._boundFrameConnectHandler=C.bind(this._frameConnectHandler,this),t.addEventListener(this._boundFrameConnectHandler))}C.extend(Pf.prototype,_i,{connectToTop(e,t){this._closeChannel(),this._openChannel();var n=[];this._channel.port2&&n.push(this._channel.port2),this._window.top.postMessage(e,t,n)},frameConnect(e){var t,n=e.ports[0];(t=n)&&C.all(["addEventListener","start"],function(e){return C.isFunction(t[e])})&&((this._ports[e.data.frameId]=n).addEventListener("message",C.bind(this._relayMessage,this)),n.start(),n.postMessage({action:"pendo::connectSuccess"}),n.postMessage({action:"frames/receiveFrame",frame:g.state.frames.frames[g.state.frames.frameId],"pendo-preview":g.state.preview.preview}))},frameDisconnect(e){delete this._ports[e.data.frameId]},connectSuccess(){this._port.removeEventListener("message",this._boundFrameConnectHandler),this._port.addEventListener("message",C.bind(this._messageReceived,this))},broadcast(t){C.each(this._ports,function(e){t.target!==e&&e.postMessage(t.data)})},postMessage(e){this._port&&this._port.postMessage(e),e.action===Mf&&this._window.top.postMessage(e,this._targetOrigin)},close(){C.each(this._ports,function(e){e.close()}),this._ports={},this._closeChannel()},_openChannel(){this._channel=new this._window.MessageChannel,this._port=this._channel.port1,this._boundFrameConnectHandler=C.bind(this._frameConnectHandler,this),this._port.addEventListener("message",this._boundFrameConnectHandler),this._port.start()},_closeChannel(){this._port&&C.isFunction(this._port.close)&&(this._port.close(),this._port=null,this._channel=null)}}),C.extend(Df.prototype,_i,{connectToTop(e,t){this._isTop||this._window.top.postMessage(JSON.stringify(e),t)},frameConnect(e){this._frames[e.data.frameId]=e.source,this._relayHandlerAdded||(this._relayHandlerAdded=!0,this._boundRelayMessage=C.bind(this._relayMessage,this),this._singletonMessageHandler.addEventListener(this._boundRelayMessage)),e.source.postMessage(JSON.stringify({action:"pendo::connectSuccess"}))},frameDisconnect(e){delete this._frames[e.data.frameId]},connectSuccess(){this._singletonMessageHandler.removeEventListener(this._boundFrameConnectHandler),this._singletonMessageHandler.addEventListener(this._boundMessageReceived)},broadcast(t){var n=this._singletonMessageHandler.targetOrigin();C.each(this._frames,function(e){t.source!=e&&e.postMessage(JSON.stringify(t.data),n)}),t.source!=this._window&&this._messageReceived(t)},postMessage(e){this._isTop?this._relayMessage({data:e,source:this._window}):this._window.top.postMessage(JSON.stringify(e),this._singletonMessageHandler.targetOrigin())},close(){var e=this._singletonMessageHandler;e.removeEventListener(this._boundFrameConnectHandler),e.removeEventListener(this._boundMessageReceived),e.removeEventListener(this._boundRelayMessage)}});Uf=window,Gf=Sa,zf=!(Bf=[]);var Uf,Gf,Bf,zf,Hf={targetOrigin(){return zf?location.origin:"*"},secure(e){zf=e},addEventListener(e){0===Bf.length&&Uf.addEventListener("message",jf),Bf.push(e)},removeEventListener(e){e=Bf.indexOf(e);0<=e&&Bf.splice(e,1),0===Bf.length&&Uf.removeEventListener("message",jf)},close(){Uf.removeEventListener("message",jf),Bf.length=0}};function jf(t){zf&&!Gf(t.origin)||C.each(Bf,function(e){C.isFunction(e)&&e(t)})}function Wf(e){if(!De.addEventListener)return{addEventListener:C.noop,postMessage:C.noop,close:C.noop};var t=!!window.__pendoExtensions;if(f.get("preferBroadcastChannel")&&!t&&C.isFunction(window.BroadcastChannel)){e.commit("frames/setChannelType","BroadcastChannel");t=function(e,o){const a=[];return e.removeEventListener=C.wrap(e.removeEventListener,function(e,t,n){var i,r=C.toArray(arguments).slice(1);return"message"===t&&0<=(i=C.findIndex(a,e=>e[0]===n))&&(r[1]=a[i][1],a.splice(i,1)),e.apply(this,r)}),e.addEventListener=C.wrap(e.addEventListener,function(e,t,n){var i,r=C.toArray(arguments).slice(1);return"message"===t&&(r[1]=i=function(e){if(e.data.tabId===o.getTabId())return n.apply(this,arguments)},a.push([n,i])),e.apply(this,r)}),e.postMessage=C.wrap(e.postMessage,function(e,t){return t.tabId=o.getTabId(),e.apply(this,C.toArray(arguments).slice(1))}),e}(new BroadcastChannel("pendo"),sn);if(t&&C.isFunction(t.postMessage))return t}return e.commit("frames/setChannelType","TopFrameRelay"),Lf(e,window,Hf)}var qf="guides_blocked",Jf="Guides disabled: unreachable endpoint guide.gif";const Vf=h.getLocal();var Kf=[],$f="Guide was not shown because this visitor is in a control group of an active experiment for the guide";const Zf=[];function Yf(){var e=f.get("guideCssAssetPath");return e||ro("guide.css")}var Xf="_pendo-guide_",Qf="_pendo_g_",eg=0;function tg(e){eg=e}var ng=function(){return C.any(O,function(e){return e.isShown()})},ig=function(e,t){var n=k("._pendo-close-guide_",e);return n.length||(n=k(document.createElement("button")).attr("id","_pendo-close-guide_").attr("aria-label","close").addClass("_pendo-close-guide_").text("\xd7"),Ue()?9<Ie&&n.css({top:3}):8===Ie?n.css({top:9,right:2}):9===Ie?n.css({right:2,top:3}):9<Ie&&n.css({top:3}),e=k("._pendo-guide-container_",e)[0]||e,n.appendTo(e),n[0].onclick=function(){t()}),n[0]},rg=function(n){return C.reduce(O,function(e,t){return n(t)&&e.push(t),e},[])},og=function(e,t,n,i,r,o){e=Yd(N(e),t);e&&(e.seenState=n,e.lastSeenAt=i,e.destinationStepId=o,r!==undefined)&&(e.dismissCount=r)},ag=function(e){for(var t=new RegExp("^"+Qf);e;){if(C.isString(e.id)&&t.test(e.id))return e.id.replace(t,"");e=e.parentNode}return null};function sg(t){C.each(O,function(e){C.isFunction(e.isShown)&&e.isShown()&&e.hide(t)})}var dg=function(e){return e&&e.guideId};var ug=function(e,t){var n,i;return dg(e)&&(t=e,e=null),(n=t)&&C.isFunction(n.render)?t:t?(n=N(t.guideId))&&n.findStepById(t.id):(n=C.find(O,function(e){return e.isShown()}))?((i=e?ag(e.target||e.srcElement||e):i)?(t=n.findStepById(i))||Co("findStepForGuideEvent: step with id "+i):(t=C.find(n.steps,function(e){return e.isShown()}))||Co("findStepForGuideEvent: no step shown"),t):void 0},lg=function(e){var t="element"===e.advanceMethod?"click":"mouseover",n=du(e);"tooltip"===e.type&&C.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):Ud(n,t,wg,!0)};function cg(e){return e.isLocked()&&(!e.elements||!e.elements.length||void xo('guide "'+e.guideId+'", step "'+e.id+'" locked and rendered'))}var pg=function(e){var e=k("#_pendo-badge_"+e.id),t=e.find("input"),t=0<t.length?t:e;t.length<1||t[0].focus()},hg=function(e){e=C.get(e,"attributes.activation.selector",""),e=yr(e);e.length<1||e[0].focus()},fg=function(){var e=F.getResourceCenterBadge();e?e.element().focus():(e=F.getResourceCenter(),hg(e))},gg=function(e){if(!I.designer&&e&&"building-block"===C.get(e,"attributes.type","")){var t=e.steps[0],n=t.seenReason,i=C.get(e,"launchMethod","").split("-"),r=C.contains(i,"dom"),o=C.contains(i,"badge"),i=Ng(e);if(C.get(t,"attributes.isAutoFocus")||i)switch(n){case"badge":o&&pg(t);break;case"dom":r&&hg(e);break;case"launcher":fg();break;default:return}}};function mg(e,t){return!e.isMultiApp&&("auto"===t||"repeatGuide"===t)}var vg=function(e,t){var n,i,r,o,a,s=null;e&&e instanceof Object&&e.until&&(s=e.until),(t=ug(e,t))&&t.id?cg(t)||("dismissed"===t.seenState?x.info("step already dismissed. can't dismiss again",{contexts:["guides","error"]}):(x.info("onGuideDismissed called",{contexts:["guides"]}),m.beforeDismiss.trigger(t).cancel?x.info("Guide dismiss canceled during runtime in step: "+t.id):s?t.hide({stayHidden:!0}):(lg(t),e=t.id,n=N(s=t.guideId),i=(i=C.first(n&&n.steps))&&i.seenReason,o=n&&n.language,r=C.get(t,"dismissCount",0)+1,Dg(s,e,b(),i,o),o=v(),og(s,e,"dismissed",o,r),(a=C.isFunction(t.getGuide)&&t.getGuide())&&a.attributes&&a.attributes.doNotResume||Lp({guideId:s,guideStepId:e,time:o,state:"dismissed",seenReason:i,visitorId:b(),dismissCount:r}),mg(n,i)&&Bg(o,Gg.DISMISSED),t.hide(),gg(a),ng()||($p(),Zp())))):$p()},yg=function(e,t,n){var i,r,o,a,s,d,u,l;x.info("onGuideSnoozed called",{contexts:["guides"]}),(t=ug(e,t))?"snoozed"===t.seenState?x.info("step already snoozed. can't snooze again",{contexts:["guides","error"]}):m.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")),cg(t)||(lg(t),e=t.id,i=t.guideId,r=b(),o=N(i),a=o&&o.language,s=C.first(o&&o.steps),s=s&&s.seenReason,d=v(),x.info("snoozing guide for "+n+" ms"),u=d+n,t.snoozeEndTime=u,l=Hg({type:"guideSnoozed",guideId:l=i,stepId:e,visitorId:r,seen_reason:s,language:a,snooze_duration:n}),qg(l),m.guideSnoozed.trigger(l),og(i,e,"snoozed",d),o&&o.attributes&&o.attributes.doNotResume||Lp({guideId:i,guideStepId:e,time:d,state:"snoozed",seenReason:s,visitorId:b(),snoozeEndTime:u}),mg(o,s)&&Bg(d,Gg.SNOOZED),t.hide(),gg(o),ng())||($p(),Zp())):(x.info("missing step. can't snooze",{contexts:["guides","error"]}),$p(),Co("onGuideSnoozed: missing step"))},bg=function(e){var t,n,i,r=(r=e&&e.step)||ug(e);r?(i=e&&e.params,i=C.find(i,function(e){return"goToStepId"===e.name}),t=i&&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=N(r.guideId),(n=C.find(i.steps,function(e){return e.id===t}))?(n=C.indexOf(i.steps,n),i=C.indexOf(i.steps,r),e.steps=Math.abs(n-i),e.action=e.action||"goToStep",e.destinationStepId=t,i<n?wg(e,r,!1):Sg(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"]})},wg=function(e,t,n){if((s=jm())&&C.each(s.steps,function(e){var t="element"==e.advanceMethod?"click":"mouseover",n=du(e);"tooltip"===e.type&&C.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):Ud(n,t,wg,!0)}),1===arguments.length&&dg(e)&&(s=$d(e.guideId),i=ug(),s)&&i&&C.first(s.steps).id===i.id&&C.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=ug(e,t))===e&&(e=null),t){if(!cg(t))if("advanced"!==t.seenState||n)if(m.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=N(t.guideId),o=r&&r.language,a=r&&r.steps&&C.findIndex(r.steps,e=>t.id==e.id);if(e&&C.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],Ug(r.id,t.id,b(),t.seenReason,o,u!==a);var l=v();Lp({guideId:t.guideId,guideStepId:t.id,time:l,state:"advanced",seenReason:t.seenReason,visitorId:b()}),og(r.id,t.id,"advanced",l,undefined,h)}return wg(r.steps[s],t,!0)}var c,i=t.id,s=t.guideId,p=C.first(r&&r.steps),p=p&&p.seenReason,h=e&&e.destinationStepId,f=(h||(f=e&&C.isNumber(e.steps)&&1<e.steps?e.steps:1,h=(f=C.isNumber(a)&&r&&r.steps&&r.steps[a+f])&&f.id||null),h||x.info("missing destination step id"),x.info("advancing guide"),Ug(s,i,b(),p,o,n,h),x.info("update guide status"),r&&C.last(r.steps).id===i&&(c=C.get(t,"dismissCount",0)+1),(new Date).getTime()),g=(og(s,i,"advanced",f,c,h),C.isFunction(t.getGuide)&&t.getGuide());g&&g.attributes&&g.attributes.doNotResume||Lp({guideId:s,guideStepId:i,time:f,state:"advanced",seenReason:p,visitorId:b(),destinationStepId:h,dismissCount:c}),mg(r,p)&&Bg(f,Gg.ADVANCED),x.info("stop guide"),$p(),x.info("start guides"),Zp()}else x.info("step already advanced. can't advance again",{contexts:["guides","error"]})}else x.info("missing step. can't advance",{contexts:["guides","error"]}),$p(),Co("onGuideAdvanced: missing step")},Sg=function(e,t){var n,i,r,o,a,s;x.info("onGuidePrevious called",{contexts:["guides"]}),(t=ug(e,t))?"advanced"===t.seenState?x.info("step already advanced. can't go to previous again",{contexts:["guides","error"]}):m.beforePrevious.trigger(t).cancel?x.info("Guide previous canceled during runtime in step: "+t.id):(o=N(n=t.guideId),s=e&&e.action&&"goToStep"===e.action||!1,0!==(i=C.indexOf(o.steps,t))&&(r="element"==t.advanceMethod?"click":"mouseover",a=du(t),"tooltip"===t.type&&C.isFunction(t.teardownElementEvent)?t.teardownElementEvent(a,r):Ud(a,r,wg,!0),a=e&&C.isNumber(e.steps)?e.steps:1,r=C.first(o&&o.steps),a=0<=(i=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"),Ug(n,t.id,b(),i,r,!1,o),x.info("update guide status"),a=(new Date).getTime(),og(t.guideId,t.id,"advanced",a,undefined,o),(s=C.isFunction(t.getGuide)&&t.getGuide())&&s.attributes&&s.attributes.doNotResume||Lp({guideId:t.guideId,guideStepId:t.id,time:a,state:"advanced",seenReason:i,visitorId:b(),destinationStepId:o}),$p(),Zp())):($p(),Co("onGuidePrevious: missing step"))},Ig=function(e){var t;k("._pendo-credits_",e).length||((t=document.createElement("img")).setAttribute("src",io()+"/img/tiny-logo.png"),t=k(document.createElement("div")).addClass("_pendo-credits_").css({bottom:0,right:I.TOOLTIP_ARROW_SIZE}).append(t),zd.push(t[0]),t.appendTo(e))};function Eg(e){return e&&e.attributes&&e.attributes.stayHidden}const Cg=(e,t,n)=>{var i;return ph()&&({id:e,guideId:i}=e,m.stepEligibility.trigger({stepId:e,guideId:i,eligible:t,reason:n})),t};var xg=function(e){var t,n,i=C.partial(Cg,e);return Eg(e)?i(!1,"dismissed"):e.elementPathRule||"lightbox"!==e.type&&"whatsnew"!==e.type?e.triggerElementPathRule&&!la(yr(e.triggerElementPathRule)[0])?i(!1,"trigger_element"):(t=du(e),(n=e.targetElement)&&e.elementContainsRulesList&&!Tg(n,e.elementContainsRulesList)?i(!1,"contains_rules"):(n="tooltip"===e.type||Tl.isBuildingBlockGuideRelativeToElement(e),e=la(t),n?e?i(e,"target_element_tooltip"):i(ca(t),"target_element_tooltip_scroll"):i(e,"target_element"))):i(!0,"")};function _g(e){var t=(k(e).text()||"").trim().toLowerCase(),e=e.value;return t||e}function Tg(e,t){for(var n=_g(e),i=0;i<t.length;i++)if(!kg(n,t[i]))return!1;return!0}function kg(e,t){var n=t.matchType,i=t.matchValue,t=t.dataType,e=e||"";if("number"===t){var r=ht(e);if(null==r)return!1;e=parseFloat(r),i=parseFloat(i);if(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 Rg=function(e){return Qf+e.id},Ag=function(e){var t=e.element,n=C.first(k("#"+Rg(e)));t&&n?la(t)||k.hasClass(n,"mouseover")?Ut(function(){Ag(e)},Jp):e.hide&&(e.hide(),ng())||($p(),Zp()):t||!n||e.hide&&(e.hide(),ng())||($p(),Zp())},Og=function(){return!1},Ng=C.partial(C.get,C,"attributes.resourceCenter"),Mg=function(t){var e;ng()&&(e=ug(),lg(e),Ng(t)?(e=rg(Ng),(e=C.filter(e,function(e){return e.id!==t.id})).length&&g.dispatch("frames/hideGuides",C.pluck(e,"id"))):(sg(),g.dispatch("frames/hideGuides")))},Lg=function(e,t){return!(!e||!e.guideId||!(e=N(e.guideId)))&&(Mg(e),e.launch(t),e.isShown())},Fg=function(e,t,n,i,r,o){e=Hg({type:"guideNotSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r});o&&C.extend(e.props,{step_poll_types:o}),qg(e),m.guideNotSeen.trigger(e)};var Pg=function(e,t,n,i,r,o){i||(x.critical("pendo.io guideSeen exception",{guideId:e,stepId:t,error:new Error("seenGuide called without seen reason")}),a=N(e),s="auto",i=a&&(a=(a.launchMethod||s).split("-"),!C.contains(a,s))&&a.length?C.first(a):s);var a=Hg({type:"guideSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r}),s=(C.extend(a.props,o),qg(a),v());Lp({guideId:e,guideStepId:t,time:s,state:"active",seenReason:i,visitorId:b()}),og(e,t,"active",s),m.guideSeen.trigger(a)};function Dg(e,t,n,i,r){e=Hg({type:"guideDismissed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r});qg(e),m.guideDismissed.trigger(e)}function Ug(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),t=Hg(e);qg(t,null,o),m.guideAdvanced.trigger(t)}var Gg={DISMISSED:"latestDismissedAutoAt",SNOOZED:"latestSnoozedAutoAt",ADVANCED:"finalAdvancedAutoAt"};function Bg(e,t){zg(e,t);var n={};n[t]=e,g.dispatch("frames/changeThrottlingState",n)}function zg(e,t){C.contains(C.values(Gg),t)&&(C.isFunction(e.getTime)&&(e=e.getTime()),I[t]=e,h.write(t,e,Np),g.dispatch("guideState/updateThrottlingState",{name:t,value:e}))}function Hg(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),C.isString(a.language)||delete a.language,C.extend({guide_id:a.guideId,guide_step_id:a.stepId},C.omit(a,"type","guideId","stepId","visitorId"))),t=sn.addTracerIds({type:a.type,visitor_id:a.visitorId,account_id:Bn(),browser_time:(new Date).getTime(),url:R.externalizeURL(),props:e});return m.eventCaptured.trigger(t),t}var jg=null,Wg=function(e){window.clearTimeout(jg),jg=Ut(Sm,e)},qg=function(e,t,n){t=t||500,e.props.duration=n?0:(new Date).getTime()-eg,_m(),bm.push(e),Wg(t)},Jg=function(e,t){return"dismissed"===e.state?null:N(e.guideId).nextStep(e,t||Vg())},Vg=function(){return I.normalizedUrl||Kg(R.externalizeURL())},Kg=function(e){try{var t=new Jn(e),n=C.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return x.error("Invalid URL provided to normalize"),e}},$g=function(e,t){return!ge(e)||new RegExp(e).test(t)},Zg=function(e,t){e=Zd(e);return!!e&&(!(t=Lg(C.first(e.steps),t||"api"))&&e.control&&x.info($f),t)},Yg=function(e,t){e=N(e);return!!e&&(!(t=Lg(C.first(e.steps),t||"api"))&&e.control&&x.info($f),t)};function Xg(e,t){return t=parseInt(t,10),isNaN(t)||!C.isNumber(t)||!(C.isNumber(e)&&e<t)&&C.isNumber(e)?e:t}var Qg,em=function(){$p(),Kp(),F.removeNotificationBubble(),bh(),ss()};function tm(){$p(),Ao(),I.segmentFlags=[],I.doNotProcess=!0,g.commit("debugger/doNotProcess",!0),x.info("not tracking visitor due to 451 response")}function nm(e){if(Qg&&(451===e.statusCode&&(tm(),Qg.deferred.reject(e)),!C.isString(e.id)||e.id===Qg.id)){const t=C.indexBy(I.guides,"id");C.extend(I,e),I.guides=C.map(I.guides,function(e){return 1==C.keys(e).length&&e.id?t[e.id]:e}),Qg.deferred&&Qg.deferred.resolve(),Qg=null}}var im=function(e,t){var n=oo(),i=C.uniqueId(),r=y.defer(),o=(Qg={id:i,deferred:r},_c()||((o=Tc())?(x.info("sending metadata: "+JSON.stringify(o),{contexts:["guides","metadata"]}),t.metadata=o):x.info("no metadata to send",{contexts:["guides","metadata"]})),et(t)),i={id:i,jzb:o,v:We,ct:(new Date).getTime()},n=(n&&t.accountId&&"ACCOUNT-UNIQUE-ID"!==t.accountId&&(i.acc=it(t.accountId)),ph()&&(i.debug=!0),Io(rm.endpoint(),e,i)),t=fs.get();return o=2e3<n.length||!C.isEmpty(t)?(delete i.jzb,n=Io("guide.json",e,i),i=C.extend({events:o},t),rm.post(n,i,I,C.noop)):rm.load(n,I,C.noop),y.all([o["catch"](function(e){return 451===e.status&&tm(),y.reject(e)}),r.promise,(t=rm,i=e,"1"===(n=h.read(qf))?(x.info(Jf),y.resolve({success:!1,cached:!0})):"0"===n?y.resolve({success:!0,cached:!0}):(n=Io("guide.gif",i,{jzb:"eJwFwIEIAAAAwDDQd3-N1QABFQC5",ct:v(),v:We}),(t.usesXhr()?Tr.get(n):_o(n)).then(function(){return{success:!0}},function(e){return e&&e.status?{success:!0}:{success:!1}})))]).then(function([,,e]){var t;if((t=e).cached||(t.success?h.write(qf,"0",144e5):(x.info(Jf),h.write(qf,"1",18e5))),!e.success)return y.reject()})},rm=bu;function om(e){e=C.find(e.steps,e=>e.pageId&&!e.regexUrlRule);return!e||(x.critical("pendo.io guide validation exception",{guideId:e.guideId,stepId:e.id,error:new Error("missing regexUrlRule for page "+e.pageId+'"')}),!1)}function am(n){return C.every(Zf,e=>{try{return e(n)}catch(t){return console.debug("Error in guide processor",e,n.id),!1}})}function sm(e,t){return e.attributes||(e.attributes={}),!isNaN(e.attributes.priority)&&C.isNumber(e.attributes.priority)||(e.attributes.priority=t),-e.attributes.priority}var dm,um=function(){return!f.get("disableGlobalCSS")};function lm(e,t){var n=f.get("dropAnonymous");if(Tn(e)&&n)x.info("loading guides blocked for anonymous visitors due to dropAnonymous config setting being set to true"),C.isFunction(t)&&t("error: guides are blocked");else if("1"===h.read(qf))x.info("guide events are blocked, load guides cancelled"),C.isFunction(t)&&t("error: guides are blocked");else{if(es(ts()))return 1;x.info("bad url: probably local file system",{contexts:["guides","error"]}),C.isFunction(t)&&t("error: invalid url")}}var cm=function(e,a,s,d){var u=y.defer(),l=!1;if(e=e||I.apiKey,lm(a=a||b(),d)){x.info("loading guides for "+s+"...",{context:["guides"]}),s=R.externalizeURL(s);var n,t,i=cm.lastVisitorId!==a,c=i?C.noop:(r=O,(t=C.find(r,function(e){return C.isFunction(e.isRendered)&&e.isRendered()&&!e.isTopLevel}))?(n=C.chain(t.steps).filter(function(e){return e.isRendered()}).indexBy("id").value(),function(e){e=C.findWhere(e,{id:t.id});e&&!C.get(e,"attributes.doNotResume")&&C.each(e.steps,function(e){var t=n[e.id];!t||e.seenState&&"active"!==e.seenState||e.show(t.seenReason)})}):function(){}),r=(cm.lastVisitorId=a,Kp(),g.commit("guideState/setLastGuideRequestAt",v()),{visitorId:a,accountId:Bn(),url:s,oldVisitorId:Fn=Fn===undefined&&kn()?Hn(En):Fn}),o=function(e,t,n=v()){let i=[];return f.get("cacheGuides")&&!(i=n-(t.lastUncached||0)<f.get("cacheGuidesTimeout")?C.map(e.guides,e=>C.pick(e,"id","lastUpdatedAt")):i).length&&(t.lastUncached=n),i}(I,cm);o.length&&!i&&(r.cachedGuides=o);const p=C.uniqueId();cm.reqId=p,im(e,r).then(function(){if(!l&&!I.designer)if(cm.reqId!==p)u.resolve();else{m.deliverablesLoaded.trigger(),x.info("successfully loaded guides for "+s,{contexts:["guides"]}),I.designerEnabled&&"true"!==Vf.getItem("pendo-designer-mode")&&wf.loadPluginJs(),em();var t=I.lastGuideStepSeen;if(t){g.dispatch("guideState/receiveLastGuideStepSeen",t),t.visitorId=a,g.dispatch("guideState/updateLastGuideStepSeen",t),g.commit("guideState/setLastGuideRequestAt",v()),jd={};t=I.guides;var t=C.chain(t).map(Gu).filter(om).filter(am).sortBy(sm).value(),n=(Vd(t),Xd());g.dispatch("guideState/load",(r=Mp,o=f.get("crossAppGuideStorageSuffix"),h.read(r,!1,o))),g.dispatch("guideState/apply"),I.latestDismissedAutoAt=Xg(I.latestDismissedAutoAt,h.read("latestDismissedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"latestDismissedAutoAt",value:I.latestDismissedAutoAt}),I.finalAdvancedAutoAt=Xg(I.finalAdvancedAutoAt,h.read("finalAdvancedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"finalAdvancedAutoAt",value:I.finalAdvancedAutoAt}),I.latestSnoozedAutoAt=Xg(I.latestSnoozedAutoAt,h.read("latestSnoozedAutoAt")),g.dispatch("guideState/updateThrottlingState",{name:"latestSnoozedAutoAt",value:I.latestSnoozedAutoAt}),g.dispatch("healthCheck/init",t),g.dispatch("frames/changeGuideList",n),I.eventProperties=Mm(I.features);let e=y.resolve();I.globalJsUrl&&(e=Rf(zu(I.globalJsUrl))["catch"](function(e){x.error("Error loading global script: ",e)})),n.length?y.all([ym(),e,Cm(t),Af.initializeWatermark(t),fm(5e3)].concat((i=t,C.map(pm,function(e){return e(i)})))).then(function(){cm.reqId===p&&(g.getters["frames/isLeader"]()&&c(O),m.guidesLoaded.trigger(),Zp(),clearTimeout(dm)),C.isFunction(d)&&d(),u.resolve()},function(e){x.error("Post loadGuide request failed: ",e),m.guidesFailed.trigger(),u.reject()}):(m.guidesLoaded.trigger(),u.resolve())}else x.info("lastGuideStepSeen is not set, shutting down guides")}var i,r,o})["catch"](function(e){m.guidesFailed.trigger(),u.reject(e)});i=f.get("guideTimeout")||f.get("guides.timeout");C.isNumber(i)&&(clearTimeout(dm),dm=Ut(function(){var e;e=u,em(),e.reject(),l=!0},i))}else u.reject();return u.promise};var pm=[];function hm(e,t){var n,i=document.getElementById(e);return i&&i.href&&0<=i.href.indexOf(t)?y.resolve():(n=y.defer(),k(i).remove(),I.loadResource(t,function(){n.resolve()}).id=e,n.promise)}var fm=C.memoize(function(t,n,e){if(!um()||!gm(O))return y.resolve();n=n||v,e=e||"_pendo-hidden_";var i=k(document.createElement("div")).addClass(e).css({position:"absolute",bottom:"0px",right:"0px",width:"0px",height:"0px",visibility:"hidden"}).appendTo(k.getBody()),r=n(),o=y.defer();return function s(e){Ut(function(){a(i[0])?(i.remove(),o.resolve()):n()-r>t?(i.remove(),o.reject("Unable to find global css after delay")):s(100)},e)}(0),o.promise;function a(e){e=A(e);if(e)return"none"===e.display}});function gm(e,t){return t&&t.designer||C.any(e,function(e){return!iu(e)&&C.any(e.steps,function(e){return!(e.domUrl||e.domJsonpUrl||e.domJson)})})}const mm="_pendo-default-css_",vm="_pendo-css_";function ym(){var e=[];if(!um())return y.resolve();gm(O,I)&&e.push(hm(mm,Yf()));var t=((I.guideWidget||{}).data||{}).guideCssUrl;return t?e.push(hm(vm,zu(t))):k("#"+vm).remove(),y.all(e)}var bm,wm,Sm=function(e){bm&&bm.flush(e)},Im=function(){return Kf};function Em(e){var t=Es(Us,ks("visitor_id"),ks("props.guide_id"),ks("props.source"),Ds,Gs(),Hs(e),js,Ws,Xs),n=Es(xs,_s(e.cache),C.noop);return new id(C.extend({processSilos:t,packageSilos:n},e))}var Cm=function(e){return F.initializeResourceCenter(e)},D={postMessage:C.noop,close:C.noop};let xm=D;function _m(e){return bm=bm||Em(C.extend({cache:Kf,apiKey(){return I.apiKey},beacon:"guide",allowPost:!0,preferFetch:De.safari},e)),wm=wm||Em(C.extend({cache:[],apiKey(){return I.apiKey},beacon:"poll",allowPost:!0,preferFetch:De.safari},e)),rs(bm),rs(wm),()=>{bm.clear(),wm.clear(),os(bm),os(wm)}}function Tm(e){var e=e["blockedURI"];e&&-1!==e.indexOf("/data/guide.json")&&f.get("cacheGuides")&&((e=f.getLocalConfig()).cacheGuides=!1,f.setLocalConfig(e),Cr(window,"securitypolicyviolation",Tm),zm())}var km=function(){const e=[];e.push(_m({localStorageUnload:f.get("analytics.localStorageUnload")})),fh.run(),e.push(fh.stop),m.appUnloaded.on(function(){g.dispatch("frames/leave")}),m.metadata.on(function(e){e=e.data[0].storeChanged;e&&!_c()&&Bm()}),m.identify.on(function(){Bm()}),m.urlChanged.on(function(){Bm(R.get())}),m.guideUpdateComplete.on(function(){var e,t,n;e=C.filter(O,e=>C.isFunction(e.outsideTimebox)&&e.outsideTimebox()),Kd.addGuide(e),Wu.processPrefetch(),e=O,t=Hd,f.get("disablePrefetch")||(t=C.keys(t)).length&&(n=C.indexBy(e,"id"),C.each(t,function(e){var e=n[e];e&&(e=C.first(e.steps))&&C.isFunction(e.fetchContent)&&e.fetchContent(!0)}))}),m.guidesLoaded.on(function(){F.fetchAnnouncementGuidesContent(O,g)}),m.guideListChanged.on(function(e){e=e.data[0].guideIds;if(e&&e.length){const n=C.indexBy(e);C.each(Hd,function(e,t){n[t]||(e.hide(),delete Hd[t])})}}),e.push(function(e,t,n){var{Turbolinks:i,Turbo:r}=window;let o;if(i&&(o=i.EVENTS&&i.EVENTS.LOAD),!(o=r&&r.visit?"turbo:load":o))return()=>{};const a=Er(e,o,t),s=Er(e,"turbo:before-cache",n);return()=>{a(),s()}}(document,function(){R.get()===Gm.lastUrl&&zm()},function(){em()}));var t=f.get("guides.tooltip.arrowSize");if(C.isNumber(t)&&(I.TOOLTIP_ARROW_SIZE=t),xm=Wf(g),D=Nf(xm,g),e.push(()=>D.close()),e.push(sn.tabIdChanged(function(){var e=sn.getTabId();g.commit("frames/setTabId",e),g.dispatch("frames/join")})),g.dispatch("frames/init"),g.dispatch("frames/join"),e.push(function(){const e=[];return g.dispatch("guideState/init"),e.push(Er(window,"focus",Fp)),e.push(Er(window,"storage",function(e){g.dispatch("guideState/storageChanged",e)})),()=>C.each(e,function(e){e()})}()),e.push(()=>{Pm.cancel(),Ih.cancel()}),e.push(Er(window,"resize",Pm)),e.push(Er(window,"scroll",Ih,!0)),e.push(Er(window,"gestureend",Dm,!0)),e.push(Er(window,"securitypolicyviolation",Tm)),e.push(function(){var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"];const t=[];for(var n=0;n<e.length;n++)t.push(Er(document,e[n],Um));return()=>{C.each(t,function(e){e()})}}()),f.get("preferMutationObserver")&&De.MutationObserver){const n=C.debounce(function(e){g.dispatch("guideUpdate/documentChanged")},50);e.push(()=>{n.cancel()}),e.push(c(window,"animationend",n)),e.push(c(window,"transitionend",n)),e.push(c(window,"mouseover",n)),g.commit("guideUpdate/setUseObserver"),f.get("observeShadowRoots")&&g.commit("guideUpdate/setObserveShadowRoots"),e.push(()=>g.dispatch("guideUpdate/stopObserver"))}return h.registry.addLocal(Gg.ADVANCED),h.registry.addLocal(Gg.DISMISSED),h.registry.addLocal(Gg.SNOOZED),h.registry.addLocal(qf),Vu.initialize(),()=>{Gm.reset(),em(),Bm.reset(),cm.reqId=null,C.each(e,function(e){e()}),k("#"+mm).remove(),k("#"+vm).remove(),Vu.teardown()}},Rm=function(){return f.get("guides.disabled",!1)||f.get("disableGuides",!1)||!So},Am=function(){return f.get("guides.delay",!1)||f.get("delayGuides",!1)},Om=function(e){var t=f.getLocalConfig();t.disableGuides=e,f.setLocalConfig(t)},Nm=function(e){var t=f.getLocalConfig();t.delayGuides=e,f.setLocalConfig(t)},Mm=qn(function(e){if(e&&e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n].featureRule,r=C.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}}),Lm=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement},Fm=function(){x.debug("adjustActiveGuideOnResize firing");var e=jm();e&&e.step&&!I.ignoreResize&&e.step.redraw()};const Pm=C.debounce(function(){var e;-1<C.get(document,"activeElement.id","").indexOf("pendo-video-")?(!(e=Lm())||e.id.indexOf("pendo-video-")<0)&&Ut(function(){Fm()},150):Fm(),Ih()},50),Dm=function(e){1!==e.scale&&Pm()};var Um=function(e){var t=C.get(document,"activeElement.id",""),e=C.get(e,"target.id","");C.filter([t,e],e=>-1<e.indexOf("pendo-video-")).length&&(Lm()?I.ignoreResize=!0:Ut(function(){I.ignoreResize=!1},1e3))};function Gm(e){var t,n,i,r,o=b(),a=Bn();e=e||R.get(),n=o,i=a,r=ec,!(t=e)||!I.apiKey||Rm()&&"true"!==Vf.getItem("pendo-designer-mode")||t===Gm.lastUrl&&n===Gm.lastVisitorId&&i===Gm.lastAccountId&&r===Gm.lastMetadataHash||(Gm.lastUrl=e,Gm.lastVisitorId=o,Gm.lastAccountId=a,Gm.lastMetadataHash=ec,cm(I.apiKey,o,e)["catch"](C.noop))}Gm.reset=function(){C.each(["lastUrl","lastVisitorId","lastAccountId","lastMetadataHash"],function(e){Gm[e]=null})};var Bm=function(e){So&&(Bm.reset(),Bm.pending=Ut(function(){delete Bm.pending,Gm(e)},0))};function zm(){Gm.lastUrl=null,Bm()}function Hm(e){e=Zf.indexOf(e);-1!==e&&Zf.splice(e,1)}function jm(){var e,n,t=C.find(O,function(e){return e.isShown()});return!t||C.get(t,"attributes.resourceCenter.isModule")&&!(t=F.getResourceCenter())?null:(e=C.find(t.steps,function(e,t){return n=t,e.isShown()}),{guide:t,steps:C.filter(t.steps,function(e,t){return e.isShown()}),step:e,stepIndex:n})}function Wm(e){var t,n=C.get(e,"value","");-1!==C.get(e,"parentElement.className","").indexOf("_pendo-nps-poll-"+n+"-wrapper")&&(e=k("._pendo-nps-open-text-poll-question"),t=k("._pendo-nps-open-text-poll-input")[0],C.forEach(e,function(e){"none"!==C.get(e,"style.display","none")&&t&&t.setAttribute("aria-labelledby",e.id)}))}Bm.reset=function(){Bm.pending&&clearTimeout(Bm.pending)};var qm=function(){var n=this,o=(this.eventable=pn.call({}),this.eventable.on("pendoEvent",function(e){try{n.eventHandler(e)}catch(t){e=e&&e.action||"NO ACTION DEFINED";x.critical("Error in Action "+e,{error:t})}}),this.eventHandler=function(e){if(!e.ignore&&!I.designer){var t=e.step["guideElement"];switch(e.action){case o.advanceGuide:wg(e,e.step);break;case o.previousStep:Sg(e,e.step);break;case o.goToStep:bg(e);break;case o.submitPoll:this.submitPoll(e);break;case o.guideSnoozed:var n=e&&e.params&&e.params[0]&&e.params[0].value;yg(e,e.step,n);break;case o.dismissGuide:F.attemptToPreserveIntegrationIframes(e),!function(e){if(!e||!e.step)return vg();var t=e.step.getGuide();if(t&&t.attributes&&t.attributes.resourceCenter)return F.dismissResourceCenter(t);vg(e,e.step)}(e);break;case o.showElements:this.setElementDisplay(e,"block"),e.srcElement&&Wm(e.srcElement),Kl((i=Ku(e.step.domJson)).props.id,t),$l(i.props.id,t),M.flexAllThings(i.props.id,e.step),Vl(i.props.id,t);break;case o.hideElements:this.setElementDisplay(e,"none"),Kl((i=Ku(e.step.domJson)).props.id,t),$l(i.props.id,t),M.flexAllThings(i.props.id,e.step),Vl(i.props.id,t);break;case o.slideElement:this.setElementAnimation(e);break;case o.showGuide:n=C.find(e.params,function(e){return"reason"===e.name});Yg(e.params[0].value,n&&n.value);break;case o.launchGuide:this.launchGuide(e);break;case o.renderResourceCenterModule:var i=a(e);F.replaceResourceCenterContent(e.params[0].value,i);break;case o.returnToResourceCenterHome:n=F.findResourceCenterHomeView(qd());if(!n)return;F.attemptToPreserveIntegrationIframes(e),F.replaceResourceCenterContent(n.id,e.params);break;case o.openLink:this.openLink(e);break;case o.searchGuides:this.searchGuides(e);break;case o.submitPollAndGoToStep:this.submitPoll(e),bg(e);break;case o.confirmation:this.confirmGuide(e)}var r=qm.prototype.registeredActions,r=r&&r[e.action];"function"==typeof r&&r(e)}},this.submitPoll=function(e){var t=e&&e.action,i=e.step,n=[];e.srcElement&&e.srcElement.getAttribute("data-pendo-poll-type")&&"yesNo"===e.srcElement.getAttribute("data-pendo-poll-type")&&(r=e.srcElement.getAttribute("data-pendo-poll-id"),e=e.srcElement.value,n.push({pollId:r,value:parseInt(e,10)}));var r=k("[data-pendo-poll-id]",i.guideElement[0]);n=n.concat(C.map(r,function(e){var t,n=k("textarea,input:text,select,input:radio:checked",e);if(n&&n.length&&n[0].value)return t=e.getAttribute("data-pendo-poll-id"),e=C.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&&n?i.response(C.compact(n)):x.info("[Agent] Error! Trying to submit a poll response but step does not have response function!");t!==o.submitPollAndGoToStep&&i.advance()},this.setElementDisplay=function(e,t){var n=e.step,e=k(C.find(e.params,function(e){return"selectors"===e.name}).value,n.guideElement[0]);C.each(e,function(e){e.style.display=t})},this.setElementAnimation=function(e){var t=k(C.find(e.params,function(e){return"selector"===e.name}).value,e.step.guideElement[0])[0],n=C.find(e.params,function(e){return"transition"===e.name}).value,e=C.find(e.params,function(e){return"left"===e.name}).value;t.style.transition=n,t.style.left=e},this.openLink=function(e){var t=C.find(e.params,function(e){return"url"===e.name}).value,e=C.find(e.params,function(e){return"target"===e.name}).value;"_self"===e&&Wa()&&(e="_top");window.open(t,e)},this.goToStep=bg,this.searchGuides=function(t){var e="",n=t.srcElement.value,t=k("#pendo-resource-center-container"),i=t.find('[id^="pendo-list-item-"]'),r=t.find('[id^="pendo-results-count-container"]'),t=t.find('[id^="pendo-no-matches-container"]'),o=[],a=!0,s=0;if(i)for(var d in i){var u;d&&i[d]&&(u=!1,k(i[d]).text()&&(-1!==k(i[d]).text().toLowerCase().indexOf(n.toLowerCase())?(k(i[d]).css({display:"list-item"}),u=!(a=!1)):k(i[d]).css({display:"none"})),C.isFunction(i[d].getAttribute)&&(e=i[d].getAttribute("data-_pendo-text-list-item-1").split(","),C.forEach(e,function(e){C.contains(o,e)||o.push(e)})),this.searchAllTerms(o,e,n)&&i[d]&&(k(i[d]).css({display:"list-item"}),u=!(a=!1)),e="",u)&&s++}a?k(t[0]).css({display:"block"}):k(t[0]).css({display:"none"});if(r&&r.length&&(r[0].innerHTML="",n)){let e="";0===s?(e=t[0].innerText,this.debounceAnnounceResults(r[0],e)):(t=1===s?"data-pendo-aria-label-alert-singular":"data-pendo-aria-label-alert-plural",(e=r[0].getAttribute(t))&&(e=e.replace("{RESULT_COUNT}",s),this.debounceAnnounceResults(r[0],e)))}},this.searchAllTerms=function(t,e,n){return!!e&&e.some(function(e){return C.contains(t,e)&&e===n})},this.confirmGuide=function(e){var e=e.step,t=function(e){if(e.confirmationElementPathRule)return yr(e.confirmationElementPathRule)[0]}(e);e.advance(),t?t.click():x.critical("pendo.io confirmationElement exception",{stepId:e.id,confirmationElementPathRule:e.confirmationElementPathRule,error:new Error("confirmation action called but confirmationElement was not found")})},this.getTransitionParams=a,this.launchGuide=function(e){var t=!C.get(e,"params.2.value.doNotDismiss");t&&vg(e,e.step);var t=e&&e.params&&e.params[0]&&e.params[0].value,n=e&&e.params&&e.params[1]&&e.params[1].value;{var i,r;t&&n?(n=N(e.params[0].value),i=e.params[1].value,r=(r=C.find(n.steps,function(e){return e.id===i}))||n.steps[0],Mg(n),r.show("api")):t&&Yg(e.params[0].value)}},this.debounceAnnounceResults=C.debounce((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 a(e){return e.params.find(e=>"transitionDirection"===e.name)?[{name:"transitionCss",type:"string",value:"left 200ms"},{name:"transitionDirection",type:"string",value:"right"}]:[]}return this},Jm=(qm.registerAction=function(e,t){e&&"string"==typeof e&&t&&"function"==typeof t&&((qm.prototype.registeredActions=qm.prototype.registeredActions?qm.prototype.registeredActions:{})[e]=t)},function(){var s="guideActivity",d=function(){return(new Date).getTime()-eg},r=C.isObject,u=C.findWhere;const l=[];return{type:s,handler(e){var t,n=e.data[0],e=e.data[1];e=e,r(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if(C.isString(e.id)&&0===e.id.indexOf("pendo-base"))return!0;if(r(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return c(e)}(t)||function(e){return h(e)}(t)||function(e){return p(e)}(t))&&(e=function(e){var t=function(e){for(var t of l){t=t(e);if(t)return t}return jm()}(e);if(!t)return;if(function(e){e=e.guide.activeModule;return e&&e.attributes&&e.attributes.resourceCenter&&"AnnouncementsModule"===e.attributes.resourceCenter.moduleId}(t)&&!(t=function(e){var t=k("#"+e).closest("[data-pendo-announcement-guide-id]").attr("data-pendo-announcement-guide-id"),e=C.find(qd(),function(e){return e.id===t});return e?{guide:e,step:e.steps[0]}:undefined}(e.id)))return;if(!t.step||!t.step.domJson)return;var e=h(e)||c(e)||p(e)||{type:e.tag,id:e.id},n=function a(e,t){if(t.props&&t.props.id&&t.props.id===e)return t;if(t.children!==undefined)for(var n=0;n<t.children.length;n++){var i=a(e,t.children[n]);if(i!==undefined)return i}return undefined}(e.id,t.step.domJson);if(!n)return;let i=e.id;n=function(e,t){if(e!==undefined){if("a"===e.type)return[{action:"openLink",url:Vr(e.props.href),target:e.props.target}];if(e.actions!==undefined)return C.map(e.actions,function(e){switch(e.action){case"automation":var t=u(e.parameters,{name:"automationIds"});return{action:e.action,automationIds:t};case"openLink":var t=u(e.parameters,{name:"url"}),n=u(e.parameters,{name:"target"});return{action:e.action,url:Vr(t.value),target:n.value};case"submitPollAndGoToStep":case"goToStep":t=u(e.parameters,{name:"goToStepId"});return{action:e.action,guideStepId:t.value};case"guideSnoozed":n=u(e.parameters,{name:"snooze_duration"}),t=u(e.parameters,{name:"time_unit"});return{action:e.action,duration:n.value,timeUnit:t.value};case"showGuide":case"launchGuide":n=e.parameters[0],t=e.parameters[1]||{};return{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&&C.isArray(e.templateChildren)&&e.templateChildren[t.templateChildIndex])return[{action:"showGuide",guideId:e.templateChildren[t.templateChildIndex].id}]}return[]}(n,e);var[r={}]=n,{action:r,guideId:o}=r;"showGuide"===r&&o&&(i+="-"+o);return Hg({type:s,visitorId:b(),ui_element_id:i,ui_element_type:e.type,ui_element_actions:n,guideId:t.guide.id,stepId:t.step.id,duration:d(),language:t.guide.language})}(n))&&qg(e)},registerGuideResolver(e){l.push(e)},removeGuideResolver(e){e=l.indexOf(e);-1!==e&&l.splice(e,1)}};function c(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-button/.test(e.id))?{type:e.tag,id:e.id}:i(e)||!r(e.parentElem)?null:c(e.parentElem)}function p(e){var t,n;if("LI"===e.tag&&/pendo-task-list-item/.test(e.cls))return t=(n=e.id.split("-")).pop(),n=n.join("-"),{type:e.tag,id:n,templateName:"pendo_task_list_item",templateChildIndex:t};return i(e)||!r(e.parentElem)?null:p(e.parentElem)}function h(e){return"A"===e.tag?{type:e.tag,id:e.id}:i(e)||!r(e.parentElem)?null:h(e.parentElem)}function i(e){return C.isString(e.id)&&0===e.id.indexOf("pendo-guide-container")}}()),Vm=[],Km=!(qm.deregisterAction=function(e){e&&"string"==typeof e&&delete(qm.prototype.registeredActions=qm.prototype.registeredActions?qm.prototype.registeredActions:{})[e]});const $m={agent:{getJwtInfoCopy:fs.get,treatAsAdoptPartner:oo},agentStorage:h,analytics:{ptm:()=>Fs,collectEvent:Ss},attachEvent:c,ConfigReader:f,Events:m,EventTracer:sn,EventRouter:qm,Extensions:{API:{addTopic:function(e,t){var n=Rc[e]||{};C.extend(n,t),Rc[e]=n}}},frames:{getChannel:()=>xm},getAssetUrl:ro,getEventable:()=>pn.call({}),GlobalRuntime:{addGlobalScript:Vu.addGlobalScript,removeGlobalScript:Vu.removeGlobalScript},GuideActivity:Jm,GuideLoop:{addUpdatePhase:sh,removeUpdatePhase:dh},guides:{addProcessor:function(e){return Zf.push(e),C.partial(Hm,e)},removeProcessor:Hm,registerDisplayableGuides:function(e,t){C.isArray(t)&&(jd[e]=t)},removeDisplayableGuides:function(e){delete jd[e]}},hosts:{SERVER:ze},NodeSerializer:Cd,q:y,sessionStorage:h.getSession(),sizeElements:ql,store:g,Tombstone:Kd,transmit:{buildBaseDataUrl:Io,fetchKeepalive:To,sendBeacon:ko},log:x,util:{trim:Ye,base64EncodeString:it,parseUrl:Ia,addInlineStyles:C.partial(Yu,f)},constants:{URL_MAX_LENGTH:2e3}};function Zm(t){C.find(Vm,function(e){return e.name===t.name})?x.warn(`Plugin with name ${t.name} already exists. Skipping registration.`):(Vm.push(t),Km&&t.initialize(I,$m))}function Ym(){C.each(Vm,function(e){C.isFunction(e.teardown)&&e.teardown(I,$m)}),Km=!1}Lc.registerExtensionsByUse("plugin",function(e){return C.extend(e.uri,C.pick(e,"name")),Zm(e.uri),e},function(e){return!!e.uri.initialize&&!!e.uri.teardown});var Xm=!1;function Qm(){Xm||(m.identify.on(function(e){var t,n,e=e.data[0];n=(t=e).old_visitor_id,t=t.visitor_id,(Tn(n)?_n(t)?Tn(t)?(x.info("Visitor is anonymous: "+t),1):On(t)?(x.info("Visitor id is the default: "+t),1):(x.info("Re-mapping visitor identity from "+n+" to "+t),0):(x.info("Not valid visitor id: "+t),1):(x.info("Visitor is already identified: "+n),1))&&(n=(t=e).old_account_id,t=t.account_id,_n(t)?n===t||(x.info("Re-mapping account identity from "+n+" to "+t),0):(x.info("Not valid account id: "+t),1))||(Ss("identify",e),ss())}),m.metadata.on(function(e){var t;_c()||({options:e,hashChanged:t}=e.data[0],t&&(Ss("meta",e),ss()))}),Xm=!0)}ev="guideActivity",tv=function(){return(new Date).getTime()-eg},nv=C.isObject;var ev,tv,nv,iv={type:ev,handler(e){var t,n=e.data[0],e=e.data[1];e=e,nv(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if("pendo-resource-center-container"==e.id)return!0;if(nv(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return av(e)}(t)||function(e){return rv(e)}(t)||function(e){return ov(e)}(t))&&(e=function(e){var t=F.getResourceCenter();if(t){var n=t.activeModule,i=av(e);if(i?(i={elementId:i.id},/^pendo-close-guide/.test(i.id)?i.actions=[{action:"dismissGuide"}]:/^pendo-left-caret/.test(i.id)&&(i.actions=[{action:"showGuide",guideId:t.id}])):i=rv(e)||ov(e),i)return i.guideId||(i.guideId=(n||t).id),i.stepId||(i.stepId=(n||t).steps[0].id),i.actions||(i.actions=[{action:"showGuide",guideId:i.elementId}]),i.language||(i.language=(n||t).language),Hg({type:ev,visitorId:b(),ui_element_id:i.elementId,ui_element_type:i.type,ui_element_actions:i.actions,guideId:i.guideId,stepId:i.stepId,duration:tv(),language:i.language})}}(n))&&qg(e)}};function rv(e){return-1!==e.cls.split(" ").indexOf("_pendo-resource-center-module-list-item")?{type:"BUTTON",elementId:k("#"+e.id).closest("[data-pendo-module-guide-id]").attr("data-pendo-module-guide-id")}:"pendo-resource-center-container"!==e.id&&nv(e.parentElem)?rv(e.parentElem):null}function ov(e){var t=e.cls.split(" ");if(-1===t.indexOf("_pendo-resource-center-guidelist-module-listed-guide")&&-1===t.indexOf("_pendo-resource-center-onboarding-module-listed-guide"))return"pendo-resource-center-container"!==e.id&&nv(e.parentElem)?ov(e.parentElem):null;t=F.getResourceCenter();if(t){e=e.id.split("-").pop(),t=t.activeModule;if(t&&t.attributes&&t.attributes.resourceCenter)return{type:"BUTTON",elementId:t.attributes.resourceCenter.children[e]}}return null}function av(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&&nv(e.parentElem)?av(e.parentElem):null}const sv=e=>(e=e||I).doesExist(e.apiKey);let dv=0;const uv="initializeImmediately",lv=[],cv=qn(function(e){if("complete"===document.readyState||C.get(e,uv)||f.get(uv))if(x.info("pendo.initialize called with "+JSON.stringify(e)),I.apiKey)1==dv++&&x.info(["pendo.initialize only needs to be called once",dt()?" per namespace":"",". Use pendo.updateOptions to update metadata after the agent has initialized."].join(""));else{if(e=e||{},C.isEmpty(fs.get())&&(o=fs.getJwtOptions(e,"initialize"))&&(fs.set(C.pick(e,"jwt","signingKeyName")),C.extend(e,o,{forceAnonymous:!0})),C.isString(e))return Tr.get(e).then(e=>(le(d=e.data),cv()));g.dispatch("location/init",e.location||{}),f.setLocalConfig(e),no(),I.HOST=Yr;var t,n,i,r,o=f.get("cookieDomain");if(o&&(o=o,i=location.host,o?C.isString(o)&&(i=i.replace(/:\d+$/,""),o=o.replace(/^\./,""),t=new RegExp("\\."+wt(o)+"$"),n=new RegExp("^"+wt(o)+"$"),t.test(i)||n.test(i))&&(xt="."+o):xt=o),Zh.discoverKeys(e),Zh.getApiKey()){g.commit("metadata/setMetadata",{selfHosted:xc()}),e.logStackTraces&&(I.logStackTraces=e.logStackTraces),f.get("preferBroadcastChannel")&&Hf.secure(!0);const a=f.get("analytics.localStorageUnload");ys.read(h),lv.push((t={localStorageUnload:a},Ms=ns.events=Ka,Ls=ns.trackEvents=$a,Fs=rd(C.extend({cache:Ms,silos:ns.silos,apiKey:Eo,beacon:"ptm",allowPost:!0},t)),Ps=rd(C.extend({cache:Ls,silos:ns.trackEventSilos,apiKey:Eo,beacon:"ptm",allowPost:!0,params:{type:"track"}},t)),rs(Fs),rs(Ps),()=>{ls(),os(Fs),os(Ps)})),So&&(h.registry.addLocal(In),h.registry.addLocal(En),h.registry.addLocal(Cn),h.registry.addLocal(bc),h.registry.addLocal(lh),I.disableGuideCenterContentSearch=e.disableGuideCenterContentSearch,[{events:i=[]}]=[e],C.each(i,(e,t)=>{yu[t]&&yu[t](e)}),lv.push(km()),Qm(),lv.push(Ld()),lv.push((C.each(Vm,function(e){e.initialize(I,$m)}),Km=!0,Ym)),lv.push((n=e,h.registry.addLocal(Ch),h.registry.addLocal(xh),C.find([C.partial(tf.launchOnToken,window.location),C.partial(_h,window),C.partial(tf.localStorageNavigation,n)],e=>e()),n.enableDesignerKeyboardShortcut||!f.get("disableDesignerKeyboardShortcut")?wf.listen():()=>{})),m.appUsage.on(Jm.handler),m.appUsage.on(iv.handler),lv.push(ds(Za))),m.appHidden.on(()=>{as(0,{hidden:!0})}),m.appUnloaded.on(()=>{as(0,{unload:!0}),a&&ys.write(h)}),kn()||Rn(),I.updateOptions(e),e.visitorId&&e.visitorId!=An&&I.identify(e.visitorId),lv.push(R.watch(function(){I.pageLoad()})),So&&m.ready.trigger(),od(R.get()),dv++,window.parent&&window.parent.postMessage&&"function"==typeof window.parent.postMessage&&((r=Hf.targetOrigin())?window.parent.postMessage({type:"announce-frame-initialized",destination:"pendo-designer-agent",source:"pendo-designer-agent",localStorageRouter:!0},r):x.warn("Unable to announce frame to designer plugin, targetOrigin is not set. Check if broadcastChannel is enabled and cross origin frames are allowed.")),fv()}else x.debug("API key is not set, Pendo will not initialize.")}else oe(I,"initialize",arguments)});function pv(e){return!C.isArray(e)||C.isEmpty(e)}function hv(e){if(!pv(e))return C.find(e,e=>"initialize"===e[0])}function fv(i){var e;return!pv((i=i||I)._q)&&(e=!!hv(i._q),sv(i)||e)?(e=i._q.splice(0,i._q.length),C.reduce(e,(e,t)=>{if(!C.isArray(t))return e;const n=i[t.shift()];return C.isFunction(n)?e.then(()=>n.apply(i,t)):e},y.resolve()).then(fv)):y.resolve()}function gv(){sv()?x.info("already running"):(window.pendo_options&&cv(window.pendo_options),fv())}function mv(){m.appHidden.trigger(),m.appUnloaded.trigger(),C.each(lv,function(e){e()}),od.reset(),lv.length=0,Hf.close(),pn.clear(m),pn.clear(yu),delete I.apiKey,dv=0}var vv,yv,bv={getActiveGuide:jm,smartNextStep:function(e){var t,n=jm();n&&(t=n.guide.steps[n.stepIndex+1],Ut(function(){var e=yr(t.elementPathRule);0!==e.length&&C.some(e,la)?wg(n.step):wg(t)},e=e||0))},smartFirstStep:function(){k("._pendo-guide_").css("display:none;");var t=Vg(),e=jm().guide.steps,n=C.filter(C.rest(e),function(e){return!!e.pageId}),n=C.indexOf(e,C.find(n,function(e){return $g(e.regexUrlRule,t)}));x.info("startingPoint is "+n),-1==n?k("._pendo-guide_").css("display:block;"):(n=e[Math.max(0,n-1)],x.info("found starting step to be "+n.id),wg(n))},advanceOn:function(e,t){var n=jm(),i=k(t=t||n.step.elementPathRule)[0],r=function(){wg(),Ud(i,e,r,!0)};c(i,e,r,!0)},renderStepPosition:function(e,t,n){if(t)n||(i=[].concat(t.steps).reverse(),n=C.findWhere(i,{seenState:"active"}));else{var i=jm();if(!i)return;t=i.guide,n=i.step}return(e=C.template(e=e||"Step <%= currPos %> of <%= total %>"))({currPos:t.getPositionOfStep(n),total:t.getTotalSteps()})}},U={renderGuideFromJSON:function(e,n,t,i){var r=n.getGuide(),o=Ku(e),a=C.get(r,"attributes.resourceCenter");a&&(F.revertRtlChanges(r,e.props),e=F.updatePseudoStyleSelectors(e));var s=a&&F.isFullyCustom(r),d="AnnouncementsModule"===C.get(r,"attributes.resourceCenter.moduleId"),o=(n.hasEscapeListener=!1,n.containerId=o&&o.props&&o.props.id,n.element=du(n),U.buildNodeFromJSON(e,n,t)),t=(n.guideElement=o).find("#"+n.containerId),u="data-vertical-alignment",l="Relative to Element"===t.attr(u);l&&!a&&k(n.guideElement).css({overflow:"hidden",height:"0",width:"0"});t.css({visibility:"hidden"}),o.css({visibility:"hidden"});u=Af.buildWatermark({appId:r.appId,targetAccount:r.targetAccount,isTraining:r.isTraining,isBottomAligned:"Bottom Aligned"===t.attr(u)},U.buildNodeFromJSON);u&&t.append(u);var u=n&&n.attributes&&n.attributes.imgCount,c=au();var p=C.get(r,"attributes.embedConfig",null);{var h,f;p?(g=o[0],h=g.querySelector("#"+(f="pendo-guide-container")),{selector:h,method:f}=(h&&(h.id=f+"-"+n.id,g.id="pendo-base-"+n.id),p),c=k(h)[0],"replace"===f&&c?(c.innerHTML="",o.appendTo(c)):"prepend"===f?o.prependTo(c):o.appendTo(c)):o.appendTo(c)}(function(e,t,n){t=k.getRootNode(t),e=k.getRootNode(e);var i;e!==t&&(e!==document?e.hasOwnProperty("wrappedJSObject")?(i=e.wrappedJSObject.adoptedStyleSheets,t.wrappedJSObject.adoptedStyleSheets.push(...i)):(i=e.adoptedStyleSheets,t.adoptedStyleSheets.push(...i)):(n=k(".pendo-style-"+n,e)).length&&(n.remove(),n.appendTo(t)))})(au(),o[0],n.id),ql(o),s||d||(U.recalculateGuideWidth(n.containerId,n.guideElement),U.adjustGuideContentWidth(n.containerId,n.guideElement));u||a||U.flexAllThings(n.containerId,n);s||U.recalculateGuideHeight(n.containerId,n.guideElement);l?n.attributes.calculatedType="tooltip":Tl.attachBBAdvanceActions(n);l&&!u&&Tl.positionStepForTooltip(n,e,t[0]);{var g;a&&(F.showHomeViewOrEmptyState(r),g=[],d?g=[r.attributes.resourceCenter]:U.flexAllThings(n.containerId,n),g.length)&&C.forEach(g,function(e){e=C.get(e,"children",[]);C.forEach(e,function(e){var t;e&&(t=e.steps[0],C.isUndefined(t.attributes.imgCount))&&(t=C.get(t,"id",n.id),e=C.get(e,"id",r.id),t=k("#pendo-g-"+t).length?t:e,U.flexAllThings("pendo-g-"+t,n))})})}{var m;u?(m=y.defer(),o.rendered=m.promise,t.on("imagesLoaded",function(){m.resolve()})):(t.css({visibility:"visible"}),o.rendered=y.resolve())}o.css({visibility:"visible"}),n.elements.push(n.guideElement[0]),I.designer||(C.get(n,"attributes.isAutoFocus")&&(U.autofocusStep(n,t),U.trapFocusStep(n,t),n.hiddenElements=U.addAriaHiddenOutsideGuide(o[0])),a&&(U.attachRCFocusHandlers(),r.skipResourceCenterHomeView?(p=r.activeModule.steps[0],U.autofocusStep(p,p.guideElement)):U.autofocusStep(n,t)));return k(".pendo-video-wrapper",o).each(function(t){k("iframe",t).each(function(e){t.setAttribute("data-pendo-video-loading",""),U.addVideoLoadListener(t,e)})}),o},autofocusStep:function(e,o){var n="autofocus for guide id: "+e.getGuide().id+" step id: "+e.id+" ",i={maxRetries:100,delay:50,exponentialBackoff:!1};pt(function(){var e,t,n,i,r=k(o).find("#pendo-guide-container");return(r=r[0]||r)&&la(r)&&(n=wo(n=r),i=zo(),C.extend(i,{top:0,left:0,bottom:i.height,right:i.width}),Xo(i,n))&&(i=r,n=C.contains(["A","INPUT","LABEL","SELECT","TEXTAREA","BUTTON","FIELDSET","LEGEND","DATALIST","OUTPUT","OPTION","OPTGROUP"],i.nodeName),e=!!i.tabIndex,t=!i.hidden,i=!i.disabled,(n||e)&&t&&i)?r:null},i,function(t){pt(function(){return!!(e=t)&&(e.focus(),e===k.getRootNode(e).activeElement);var e},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(e,t){!function(e){var o,a,s,t,d,u,n,l=e[0];l&&(t=["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"].join(", "),(o=C.toArray(e.find(t))).length)&&(a=o[0],s=o[o.length-1],t=Ev(e),d=t[0],u=t[1],n=function(e){var t,n,i=wv(e),r=e.shiftKey;i&&(t=(i=k.getRootNode(l).activeElement)===l,n=document.activeElement===document.body,r?(i===d||t||n)&&(Iv(o,s).focus(),e.preventDefault()):(t||i===u||n)&&(Iv(o,a).focus(),e.preventDefault()))},c(document,"keyup",n),c(document,"keydown",n),m.one("unmounted",()=>{Ud(document,"keyup",n),Ud(document,"keydown",n)}))}(t.find("#pendo-guide-container"))},attachRCFocusHandlers:function(){const s=F.getResourceCenter(),d=F.getResourceCenterContainer();if("dom"===s.launchMethod&&d){let e=k(s.attributes.activation.selector)[0];if(e){const[u,l]=Ev(k(d));var t=function(e){var t=wv(e),n=e.shiftKey;if(t){var t=k.getRootNode(d).activeElement,i=k(s.attributes.activation.selector)[0];if(i){var r=t===u,t=t===l;const a=k(sa);function o(t){return Object.values(a).findIndex(e=>e===t)}n?r?(i.focus(),e.preventDefault()):t&&Sv(0===(n=o(u))?a.length-1:n-1,a,e):t?Sv(o(i)+1,a,e):r&&Sv((n=o(l))>=a.length-1?0:n+1,a,e)}}},n=function(e){var t=wv(e),n=e.shiftKey;t&&!n&&Sv(0,k('[id^="pendo-g-"]').find(sa),e)},i=function(e){var t=e.target,n=e.relatedTarget,t=t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING;n!=u&&t&&Sv((n=k('[id^="pendo-g-"]').find(sa)).length-1,n,e)};c(document,"keyup",t),c(document,"keydown",t),c(e,"keydown",n),c(e,"focus",i),m.one("unmounted",()=>{Ud(document,"keyup",t),Ud(document,"keydown",t),Ud(e,"keydown",n),Ud(e,"focus",i)})}}},addAriaHiddenOutsideGuide:function A1(e,n=[]){if(!e||e===Ko())return n;const t=$o(e);C.each(t,e=>{if(-1===n.indexOf(e)&&"true"!==e.getAttribute("aria-hidden")){const t=e.tagName.toLowerCase();"script"!==t&&"style"!==t&&(e.setAttribute("aria-hidden","true"),n.push(e))}});e.parentNode&&A1(e.parentNode,n);return n},renderResourceCenterModule:F.renderResourceCenterModule,buildNodeFromJSON:pc,attachImgLoadHandlers:hc,recalculateGuideHeightOnImgLoad:fc,buildStyleString:function(e){var n="";return C.each(e,function(e,t){n=n+t+":"+e+";"}),n},buildStyleTagContent:mc,bindActionToNode:gc,recalculateGuideHeight:Vl,recalculateGuideWidth:Kl,adjustGuideContentWidth:$l,findDomBlockInDomJson:$u,isElementHiddenInGuide:M.isElementHiddenInGuide,positionStepForTooltip:Tl.positionStepForTooltip,flexAllThings:M.flexAllThings,flexElement:M.flexElement,findTopLevelContainer:function(t){for(var e=["pendo-base","pendo-resource-center-container"],n=0;n<20;n++){if(C.find(e,function(e){return t.id===e}))return t;if(t===document.body)return document.body;t.parentNode&&(t=t.parentNode)}return document.body},updateBackdrop:bl,buildNodesFromJSON:uc,findGuideContainerJSON:Ku,maintainAspectRatios:M.maintainAspectRatios,sizeElement:Jl,sizeElements:ql,getAllowedAttributes:cc,repositionFlexElementsInFullWidthGuides:function(){},isBuildingBlockGuideRelativeToElement:Tl.isBuildingBlockGuideRelativeToElement,updateAriaLabelledbyForActiveFollowupQuestion:Wm,addVideoLoadListener:function(e,t){c(t,"load",function(){e.removeAttribute("data-pendo-video-loading")})}};function wv(e){return"Tab"===e.key||9===e.keyCode}function Sv(e,t,n){e=t[e];e&&(e.focus(),n.preventDefault())}function Iv(e,t){let n;if("radio"===t.getAttribute("type")){const i=t.getAttribute("data-pendo-poll-id");n=C.find(e,function(e){var t=e.getAttribute("data-pendo-poll-id");return i===t&&e.checked})}return n||t}function Ev(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:C.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:C.extend({},t,{tabIndex:0})},{selector:".pendo-end-focus-bumper:hover",styles:t},{selector:".pendo-end-focus-bumper:focus",styles:t}]},t=U.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]}var Cv=100,xv=[],_v=[];const Tv="log-enabled",kv="active-contexts";var Rv=function(){return Nv()?yv?"logging already enabled":(h.write(Tv,"true",null,!0),yv=!0,"logging enabled"):"logging unavailable"},Av=function(){return yv?(h.write(Tv,"false",null,!0),yv=!1,"logging disabled"):"logging already disabled"};var Ov=function(e,t){return C.compact([].concat(e,t))},Nv=function(e){return e=e||"log","undefined"!=typeof console&&C.isFunction(console[e])},Mv=function(e){return e=Ov(e),0<vv.length?0<C.intersection(vv,e).length:!!yv||!!ph()},Lv=function(e,...t){x.info(e,{contexts:t})};function Fv(e){var t;e.level!==gt.Debug&&e.level!==gt.Info||(t=e.attributes?Ov(e.attributes.contexts):[],Nv()&&Mv(t)&&zv(e.message),Dv(xv,e.message,t))}function Pv(...e){Nv("error")&&console.error.apply(console,e),Dv(_v,e.join(" "))}var Dv=function(e,t,n){C.contains(n,"debug")||(e.length==Cv&&e.shift(),e.push([t,n]))},Uv=function(t){t=Ov(t),C.each(C.map(C.filter(xv,function(e){return 0===t.length||0<C.intersection(t,e[1]).length}),function(e){return e[0]}),function(e){zv(e,"[Pendo-History] ")})},Gv=function(){return C.union.apply(C,C.map(xv,function(e){return e[1]}))},Bv=function(e){vv=Ov(e),h.write(kv,vv.join(","),null,!0)},zv=function(e,t){var n;Nv()&&(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 Hv(t,n){if(t&&C.isString(t)){let e=n;C.isObject(n)||(e={__err__:n});n=R.get();Ss("track",e,n,t)}else x.error("Must provide valid name string for event tracking")}Lv.init=function(){var e,t;e=h.read(kv,!0),vv=e?e.split(","):[],e=Be,t=h.read(Tv,!0),yv=null!==t?"true"==t:!C.contains(["prod","prod-eu","prod-us1","prod-jp","prod-hsbc","prod-au","prod-gov","rc"],e),x.addEventListener("log",Fv),h.registry.addLocal(Tv),h.registry.addLocal(kv)},Lv.enableLogging=Rv,Lv.disableLogging=Av,Lv.getActiveContexts=function(){return vv},Lv.setActiveContexts=Bv,Lv.showLogHistory=Uv,Lv.getLoggedContexts=Gv;var jv=function jv(r){var o=[];function a(e,t,n,i){r?o.push({type:n,message:t,value:i}):ge(i)?console[e](t,i):console[e](t)}if("undefined"==typeof console||!console.group)return"Please run this test in the latest version of Chrome, Firefox, Safari, or Internet Explorer";r||console.group("Pendo Install Validation"),I.apiKey||a("error","No Pendo API key configured. Make sure to call pendo.initialize() with a valid Pendo API key.","apiKey");var e=b(),e=(Tn(e)&&a("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"),On(e)&&a("error","The current visitor ID matches the example visitor ID from the Pendo installation instructions.","isDefaultVisitor"),Bn()),t=(e||a("warn","The current visitor is not associated with an account. Is this expected?","noVisitorInAccount"),"ACCOUNT-UNIQUE-ID"===e&&a("error","The current account ID matches the example account ID from the Pendo installation instructions.","exampleAccountId"),f.get("disableCookies")&&a("warn","Cookies are disabled in Pendo config. Is this expected?","disableCookies"),Tc());if(C.each(["visitor","account","parentAccount"],function(n){var i=t&&t[n],e=C.chain(i).keys().value();0<e.length?(r||console.group(n+" metadata (does this look right?):"),0<(e=C.chain(e).map(function(e){return e.toLowerCase()}).countBy().pick(function(e){return 1<e}).keys().value()).length&&C.each(e,function(e){a("warn","Keys will be lowercased and any duplicates overwritten. Please choose unique key names for:",n+"MetadataConflict",e)}),C.each(C.keys(i),function(e){var t=i[e];C.isObject(t)&&!C.isArray(t)?a("warn",e+" is an object and will be ignored.",n+"Metadata",t):C.isArray(t)&&C.any(t,C.isObject)?a("warn",e+" contains object values. The objects will be ignored.",n+"Metadata",t):a("log",e+":",n+"Metadata",t)}),r||console.groupEnd()):"parentAccount"!==n&&a("warn","No "+n+" metadata found. Learn more about metadata here: http://help.pendo.io/resources/support-library/installation/metadata.html",n+"MetaData")}),r)return o;console.groupEnd()},Wv=function(n){var e=[{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:$t.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"]}],r=!1,i=(C.each(e,function(e){var n=e.nativeType,i=[],t=e.propsToCheck||Object.getOwnPropertyNames(n);C.each(t,function(e){try{e&&n[e]&&"function"==typeof n[e]&&(n[e].toString().includes("[native code]")||i.push(e))}catch(t){}}),i.length&&(e.nonNativeImplementations=i,r=!0)}),{hasNonNativeMethods:r,implementations:[]});return n||console.group("Native javascript method check:"),r?(n||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"),C.each(e,function(e){var t;e.nonNativeImplementations&&(t=e.displayName.trim(),n?i.implementations.push({nativeType:t,nonNativeImplementations:e.nonNativeImplementations}):console.warn(t+" | Contains the following non-native implementations:",e.nonNativeImplementations.sort().join(", ")))}),n?i:void console.groupEnd()):n?i:(console.log("Environment uses native javascript implementations"),console.groupEnd())},qv=function(e){var t=[];if(C.isNumber(window.frames.length)&&C.isFinite(window.frames.length)&&k("iframe").length+k("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:"),C.each(t,function(e){console.warn(e)}),console.groupEnd()}},Jv=function(e){var t,n=window.location.href,i=[];try{(t=Pr())!==n&&i.push({type:"customizedUrl",msg:"URL has been customized. This will affect data collection, guide requests, and reload tests.",value:t})}catch(o){i.push({method:"error",msg:"Error getting Custom URL",value:o})}try{var r=R.externalizeURL();r!==t&&i.push({type:"sanitizedUrl",msg:"URL has been sanitized. This will affect sending data and guides requests.",value:r})}catch(o){i.push({method:"error",msg:"Error getting Externalized URL",value:o})}if(e)return i;console.group("URL Validation"),console.log("Browser URL:",n),C.each(i,function(e){e.method?console[e.method](e.msg+"\n"+e.value):console.warn(e.msg+"\n"+e.value)}),console.groupEnd()};const Vv=e=>{if(0<_v.length){var t=[].concat(_v);if(e)return t;console.group("Agent Error History"),C.each(t,(e,t)=>{console.log("Error History ",t,e)}),console.groupEnd()}},Kv=e=>{t=e;var t,n=C.map(Vm,function(e){return e.validate&&!t&&e.validate(I,$m),e.name});if(e)return n;console.group("Active Plugins"),C.each(n,e=>console.log(e)),console.groupEnd()};var $v=function(e){var t={install:jv(e),plugins:Kv(e),globals:qv(e),url:Jv(e),errors:Vv(e)};if(e)return t.methods=Wv(e),t;f.validate(console)},Zv={BuildingBlockGuides:U,BuildingBlockResourceCenter:F,BuildingBlockTemplates:Xu,BuildingBlockTooltips:Tl,BuildingBlockSvgs:il};function Yv(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(t){this.state.errors.push(t)}},this.afterJobRun=function(){this.state.hasRun=!0,this.state.handle=Ut(this.run,this.state.duration)},this.run=C.compose(C.bind(this.afterJobRun,this),C.bind(this.doJob,this),C.bind(this.shouldJobRun,this))}Yv.prototype.start=function(e){this.state.isStopped&&(this.state.isStopped=!1,this.state.options.skipFirstRun=e,this.run())},Yv.prototype.stop=function(){clearTimeout(this.state.handle),this.state.isStopped=!0,this.state.hasRun=!1};var Xv=Tr.urlFor;function Qv(e,t,n){var i={search:["AllowOnlyKeys","ExcludeKeys","AddTo","Replace","Clear"],hash:["Replace","Clear"],pathname:["Replace"],hostname:["Replace"],href:["Replace","ForceSecure"],protocol:["ForceSecure"]};if(C.isObject(e)&&(t=e.action,n=e.data,e=e.attr),!i[e])throw new Error("Invalid URL attribute type: "+e);if(!C.contains(i[e],t))throw new Error("Invalid transform ("+t+") for attribute ("+e+")");this.attr=e,this.action=t,this.data=n}function ey(e){return e instanceof Jn||e instanceof HTMLAnchorElement}Qv.prototype.applyToURL=function(e){return{AllowOnlyKeys(e,t,n){C.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Jn(Zr(t,null,n,!1))},ExcludeKeys(e,t,n){C.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Jn(Zr(t,null,n,!0))},AddTo(e,t,n){C.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Jn(Xv(t,n))},Clear(e,t){return e[t]="",e},Replace(e,t,n){return C.isFunction(n)&&(n=n(e[t],e)),"href"===t?new Jn(n):(e[t]=n,e)},ForceSecure(e,t){return"protocol"===t?e.protocol="https":e.href=e.href.replace(/^(.*:\/\/\/)/,"https://"),e}}[this.action](e,this.attr,this.data)},Qv.prototype.toString=function(){return this.attr+" - "+this.action+" - "+JSON.stringify(this.data)},Qv.fromJSON=function(e){return e instanceof Qv?e:new Qv(e.attr,e.action,e.data)};ty=function(t,n,i,r){return[new Qv("pathname","Replace",function(e){e=e.replace(n,t);return e=(e=e.replace(i,t)).replace(r,"")}),new Qv("href","ForceSecure")]},Mi={transforms:[],internalTransforms:[],electronTransforms:[],currentSrcFn:ny=function(){var e=Fr(),t=R.isElectron()?ty(R.electronAppName(),R.electronResourcesPath(),R.electronUserDirectory(),R.electronUserHomeDirectory()):[];return ay([].concat(t),e)}},iy=new Yv(500,function(e){!sv()||ad(document)||od()}),ry=function(e){if("string"==typeof e)return new Jn(e);if(ey(e))return e;throw new Error("Invalid type from custom URL source. Must be either an URL or a String of a valid url.")},oy=function(e){return e||window.location},ay=function(e,t){return C.reduce(e,function(e,t){return t.applyToURL(e)},t)};var ty,ny,iy,ry,oy,ay,sy,e={state:Mi,actions:{init(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(t,e){C.each(e,function(e){t.commit("addTransform",Qv.fromJSON(e))})},addInternalTransforms(t,e){C.each(e,function(e){t.commit("addInternalTransform",Qv.fromJSON(e))})},removeInternalTransforms(t,e){C.each(e,function(e){t.commit("removeInternalTransform",Qv.fromJSON(e))})},startPolling(e){iy.start()},stopPolling(e){e.state.currentSrcFn===ny&&iy.stop()}},mutations:{addTransform(e,t){e.transforms.push(t)},addInternalTransform(e,t){e.internalTransforms.push(t)},removeInternalTransform(e,t){t=C.indexOf(e.internalTransforms,t);0<=t&&e.internalTransforms.splice(t,1)},clearTransforms(e){e.transforms=[]},clearInternalTransforms(e){e.internalTransforms=[]},changeUrlSource(e,t){if(t){if("string"==typeof t)var n=new Jn(t),n=C.partial(C.identity,n);else if(ey(t))n=C.partial(C.identity,t);else{if("function"!=typeof t)throw new 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.");n=t}e.currentSrcFn=n,iy.start(!sv())}else e.currentSrcFn=ny,iy.stop()}},getters:{url:sy=function(e){try{var t=function(e){return n=e},n=C.reduce([e.currentSrcFn,ry,t,C.partial(ay,e.transforms),ry,t,C.partial(ay,e.internalTransforms),ry],function(e,t){return t(e)},null)}catch(i){x.critical(i),n=oy(n)}return n},href(e){return sy(e).href}}};function dy(e){var t;if("function"==typeof dy[e])return t=C.toArray(arguments).slice(1),dy[e].apply(dy,t)}C.extend(dy,{getHref(){return g.getters["location/href"]()},clearTransforms(){g.commit("location/clearTransforms"),od()},addTransforms(e){g.dispatch("location/addTransforms",e),od()},setUrl(e){g.commit("location/changeUrlSource",e)},useBrowserUrl(){g.commit("location/changeUrlSource"),od()}});function uy(){return f.get("guideSeenTimeoutLength")||1e4}ly=[];var ly,cy={name:"StepTimeoutMonitor",initialize(){this._beforeGuideShow=C.bind(cy.beforeGuideShow,cy),this._stop=C.bind(cy.stop,cy),m.beforeGuideShow.on(this._beforeGuideShow),m.guideSeen.on(this._stop),m.guideNotSeen.on(this._stop)},teardown(){cy.stop(),m.beforeGuideShow.off(this._beforeGuideShow),m.guideSeen.off(this._stop),m.guideNotSeen.off(this._stop)},beforeGuideShow(e){var t=e.data[0],e=e.data[1],n=t.guide;f.get("enableGuideTimeout")&&(e=-1<C.indexOf(["dom","launcher","badge","api"],e),"active"===t.seenState||t.hasBeenControlled()||t.isTimedOut()||(n=n&&n.steps)&&(0!==C.indexOf(n,t)||e)&&cy.start(t))},start(e){var d,t,n=ly[0];n&&n===e.id||(n&&n!==e.id&&(n=ly[1],C.isFunction(n))&&n(),e.shouldStartTimer()&&(d=uy(),n=C.partial(function(e,t){var n,i,r,o,a,s=N(t);s&&(n=s.findStepById(e))&&!s.isShown()&&(a=n.canShowOnPage(Vg())?xg(n)?"other":"element":"page",i=t,r=e,o=b(),a=a,s=s.language,i=Hg({type:"guideTimeout",guideId:i,stepId:r,visitorId:o,seen_reason:a,language:s,guideSeenTimeoutLength:d}),qg(i),m.guideTimeout.trigger(i),x.info("Guide "+t+" timed out showing Step "+e),n.timeout()),cy.stop()},e.id,e.guide.id),t=Ut(n,d),ly=[e.id,n,t]))},stop(){var e=ly[2];e&&clearTimeout(e),ly=[]},getGuideSeenTimeoutLength:uy};function py(){console.warn("This functionality is not supported by your subscription.")}function s(e){return So?e:py}var hy="is going away",fy="is gone",gy=C.memoize(function(e,t){e=(e=e||"Function")+" deprecated"+(t=t?" and "+t:"");return x.info(e),e});function my(e,t,n){return function(){return gy("pendo."+t,n),(e||C.noop).apply(null,arguments)}}function vy(e){return e&&1===e.length?e[0]:C.any(e,ft)?y.all(e).then(function(e){return C.any(e)}):void 0}function yy(){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||{},C.each(this.steps,function(e){"mobile-lightbox"===e.type&&(this.attributes.device.desktop=!1,this.attributes.device.mobile=!0),Bu(e,this)},this),this.isActivatedByEvent=function(e){return!!(this.hasLaunchMethod("dom")&&this.attributes&&this.attributes.activation&&C.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=C.first(this.steps);return e&&"whatsnew"===e.type},this.isAnnouncement=function(){return C.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")&&C.any(this.steps,function(e){return e.shouldAutoDisplay()})},this.autoDisplay=function(){if(this.shouldAutoDisplay())return vy(C.map(this.steps,function(e){return e.autoDisplay()}))},this.isRendered=function(){return C.any(this.steps,function(e){return e.isRendered()})},this.isShown=function(){return C.any(this.steps,function(e){return e.isShown()})},this.canShowOnDevice=function(){if(!ru()){var e=ou(),t=this.attributes&&this.attributes.device||{};if(!e&&!1===t.desktop)return!1;if(e&&!0!==t.mobile)return!1}return!0},this.canShow=function(){return this.canShowOnDevice()&&C.any(this.steps,function(e){return e.canShow()})},this.launch=function(e){var t;return this.hasGuideBeenControlled()||(t=this.show(e)),this.isShown()?C.each(this.steps,function(e){e.seenState="active"}):!this.isShown()&&this.isControlGroup()&&C.each(this.steps,function(e){e.seenState="notSeen"}),t},this.show=function(t){return vy(C.map(this.steps,function(e){return e.show(t)}))},this.checkForHiddenGroupSteps=function(){},this.hide=function(t){C.each(this.steps,function(e){e.hide(t)})},this.hasBeenSeen=function(){return C.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=C.get(this,"attributes.resourceCenter"),this.isControlGroup()&&!e?this.hasGuideBeenControlled()||this.steps[0].onControlGuide("control"):(e=C.first(this.steps))&&C.isFunction(e.canShowOnPage)&&e.canShowOnPage(Vg())&&yh(this)):Sh(this)},this.findStepById=function(t){return C.find(this.steps,function(e){return e.id===t})},this.isPoweredByEnabled=function(){return!!C.find(this.steps,function(e){return e.isPoweredByEnabled()})},this.searchFor=function(t){var e,n,i=null;return st(this.name,t,!0)?i="name":(e=!(n=[]),(e=0<(n=this.attributes&&this.attributes.launcher&&this.attributes.launcher.keywords?this.attributes.launcher.keywords:n).length?C.find(n,function(e){return st(e.text,t,!0)}):e)?i="tag":(n=C.map(this.steps,function(e){return e.searchFor(t)}),0<C.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&&!C.isFunction(t.steps[0].fetchContent)||(e=t.steps[0],!t.hasLaunchMethod("launcher")&&!t.isWhatsNew())||!e.canShowOnPage(Vg())||!t.canShowOnDevice()||!xg(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(Vg())||!this.canShowOnDevice()||!xg(e)||this.outsideTimebox())};var e,n="PENDO_HELPER_STEP";return this.getPositionOfStep=function(e){var t=C.reject(this.steps,function(e){return st(e.content,n)});return C.indexOf(t,e)+1},this.getTotalSteps=function(){return C.reject(this.steps,function(e){return st(e.content,n)}).length},this.getSeenSteps=function(){return C.size(C.filter(this.steps,function(e){return e.hasBeenSeen()}))},this.isComplete=function(){var t=["advanced","dismissed"];return C.all(this.steps,function(e){return C.contains(t,e.seenState)})},this.isInProgress=function(){var t=["active","advanced","dismissed"];return!this.isComplete()&&C.any(this.steps,function(e){return C.contains(t,e.seenState)})},this.isNotStarted=function(){return!this.isInProgress()&&!this.isComplete()},this.fetchContent=function(){return y.all(C.map(this.steps,function(e){if(C.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 C.any(this.steps,function(e){return e.isSnoozed()})},this.hasGuideBeenControlled=function(){return C.any(this.steps,function(e){return e.hasBeenControlled()})},this.isControlGroup=function(){return this.control},this.shouldShowSnoozedGuide=function(){var t=!1;return!this.outsideTimebox()&&C.any(this.steps,function(e){return!(t="dismissed"===e.seenState?!0:t)&&"snoozed"===e.seenState&&e.snoozeEndTime&&(new Date).getTime()>e.snoozeEndTime})},this.shouldRepeatGuide=function(){var t;return!(!this.redisplay||this.outsideTimebox()||this.isGuideSnoozed()||this.hasReachedMaxDismissals()||(t=0,C.forEach(this.steps,function(e){t=Math.max(t,e.lastSeenAt||0)}),!t))&&v()-t>=this.redisplay.interval},this.isExpired=function(){return!!this.expiresAfter&&v()>this.expiresAfter},this.isBeforeStartTime=()=>!!this.showsAfter&&v()<this.showsAfter,this.outsideTimebox=()=>this.isExpired()||this.isBeforeStartTime(),this.calculateDismissCountFromSteps=function(){var t=0;return C.forEach(this.steps,function(e){e.dismissCount&&(t+=e.dismissCount)}),t},this.hasReachedMaxDismissals=function(){return this.redisplay&&0!==this.redisplay.maxDismissals&&this.calculateDismissCountFromSteps()>=this.redisplay.maxDismissals},this}function by(){var e=this;return e.attributes&&"group"==e.attributes.type&&(e.checkForHiddenGroupSteps=function(){C.each(e.steps,function(e){e.isShown()||e.autoDisplay()})}),e}var wy=function(e){return e&&e.attributes&&!!e.attributes.isOnboarding};function Sy(){var r,o=!1;return(this.isMultiStep||this.isModule||this.isTopLevel)&&(C.each(this.steps,function(e){e.after("render",function(){C.each(e.elements,function(e){k(e).addClass("_pendo-guide-walkthrough_")})})}),r=null,this.sections=C.reduce(this.steps,function(e,t){var n,i;return i=t,!(n=r)||(n=C.last(n)).attributes.isRequired!=i.attributes.isRequired&&n.attributes.isRequired?(e.push(r),r=[t]):r.push(t),e},[]),this.sections=C.compact(this.sections.concat([r])),this.findSectionForStep=function(t){return C.find(this.sections,function(e){return C.contains(e,t)})},this.getSubSection=function(e,t){t=C.indexOf(e,t);return 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(t){var e=null;if(this.isGuideSnoozed())return null;t=t||{};for(var n,i,r=0;r<this.steps.length;r++)if(this.steps[r].id===t.guideStepId){if("dismissed"===t.state)break;if("active"===t.state||"snoozed"===t.state){e=this.steps[r];break}if("advanced"===t.state&&t.destinationStepId){e=C.find(this.steps,function(e){return e.id===t.destinationStepId});break}if(r+1<this.steps.length){e=this.steps[r+1];break}}return e?(n=(new Date).getTime(),(i=t.time)&&432e5<n-i&&!wy(this)?(o||(x.info("Multi-step continuation has expired",{contexts:["guides","info"]}),o=!0),null):e):null},this.shouldAutoDisplay=function(){return this.hasLaunchMethod("auto")&&(this.shouldShowSnoozedGuide()||this.shouldRepeatGuide()||C.all(this.steps,function(e){return e.shouldAutoDisplay()}))},this.autoDisplay=function(){var e,t,n;if(this.shouldAutoDisplay())return e=this.shouldRepeatGuide(),t=C.first(this.steps),n=this.nextStep(Pp())||t,this.shouldShowSnoozedGuide()||e?n.show(e?"repeatGuide":"auto"):t.autoDisplay()},this.launch=function(e){return C.first(this.steps).show(e)},this.show=function(e){var t=Pp(),n=C.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=C.last(this.steps);return!!e&&C.contains(["advanced","dismissed"],e.seenState)},this.activeStep=function(){var e=[].concat(this.steps).reverse();return C.findWhere(e,{seenState:"active"})}),this}function Iy(){var a=this;function t(r){var o=[];return function(e){try{return e.apply(a,C.toArray(arguments).slice(1))}catch(i){var t,n="ERROR in guide "+r+' (ID="'+a.id+'")';throw o.push(v()),5<=o.length&&(t=0<(t=C.last(o)-C.first(o))?(o.length-1)/(t/6e4):Infinity,Iy.MAX_ERRORS_PER_MINUTE<=t&&(n="Exceeded error rate limit, dropping guide.\n"+n,Kd.addGuide(a),m.trigger("renderFail",a)),o.shift()),x.critical(n,{error:i}),i}}}return C.each(["canShow","placeBadge","show"],function(e){a[e]=C.wrap(a[e],t(e))}),a}function Ey(){return C.isFunction(this.isAnnouncement)&&this.isAnnouncement()||(this.shouldBeAddedToLauncher=C.wrap(this.shouldBeAddedToLauncher,function(e){return g.getters["frames/hasFrames"]()?!(!g.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!g.getters["frames/isGuideInDifferentFrame"]()(this)&&g.getters["frames/shouldBeAddedToLauncher"]()(this):e.apply(this,arguments)}),this.shouldBeAddedToResourceCenter=C.wrap(this.shouldBeAddedToResourceCenter,function(e){return g.getters["frames/hasFrames"]()?!(!g.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!g.getters["frames/isGuideInDifferentFrame"]()(this)&&g.getters["frames/shouldBeAddedToResourceCenter"]()(this):e.apply(this,arguments)})),this}function Cy(e){var t=this;return"whatsnew"===t.type||C.isFunction(e.isAnnouncement)&&e.isAnnouncement()||(t.isShown=C.wrap(t.isShown,function(e){return e.apply(this,arguments)||g.getters["frames/isShownInAnotherFrame"]()(t)})),t}function xy(o){var a,t,i,s,r,n,d,u=this;return u.pollIds&&u.pollIds.length&&(a="_pendo-poll-selected_",t=C.indexBy(o.polls,"id"),i=C.map(u.pollIds,function(e){return t[e]}),r=function(e,t){if(e&&t!==undefined)return e.numericResponses?parseInt(t,10):t},n=function(){var e=o.id,t=u.id,n=v();Ug(e,t,b(),u.seenReason,o.language),og(e,t,"advanced",n),Lp({guideId:e,guideStepId:t,time:n,state:"advanced"})},d=function(){var e=k("._pendo-poll_"),t=k("._pendo-poll-message_");t.length?(e.addClass("_pendo-poll-submitted_"),t.css("margin-top:-"+t.height()/2+"px"),n()):u.advance()},u.after("render",function(){var n=k("._pendo-poll_")[0],e=k("._pendo-poll-submit_",n)[0];e?u.attachEvent(e,"click",function(e){var t=k("._pendo-poll-question_",n),t=C.map(t,function(e,t){e=k("textarea,input:text,select,input:radio:checked",e);if(e&&e.length&&e[0].value)return{pollId:(t=i[t]).id,value:r(t,e[0].value)}});u.response(C.compact(t)),d()}):u.attachEvent(n,"click",function(e){var t,e=k(xr(e)).closest("._pendo-poll-question_ :button,._pendo-poll-question_ :radio");e.length&&(t=i[0],e=r(t,e.attr("data-pendo-poll-value")||e.attr("value")),u.response([{pollId:t.id,value:e}]),d())})}),u.after("render",function(){var i=k("._pendo-poll_ ._pendo-poll-npsrating_")[0],r=k("._pendo-poll_ ._pendo-poll-submit_"),o="_pendo-poll-npsrating-selected_";i&&(r.css({display:"none"}),u.attachEvent(i,"click",function(e){var t=k(":radio:checked",i)[0],n=k("._pendo-poll_");k("label",i).removeClass(a),n.removeClass(o),t&&(k('label[for="'+t.id+'"]').addClass(a),n.addClass(o),r.css({display:""})),C.isFunction(u.resize)&&u.resize()}))}),u.after("show",function(){s=(new Date).getTime()}),u.response=function(e,r){e&&e.length&&(_m(),C.each(e,function(e,t){var n=function(t,e){if(e&&e.polls&&e.polls.length)return C.find(e.polls,function(e){return e.id===t})}(e.pollId,o),i=Hg("pollResponse",u.guideId,u.id,b(),undefined,o.language);C.extend(i.props,{poll_id:e.pollId,poll_response:e.value,duration:(new Date).getTime()-s},r),n&&n.attributes&&n.attributes.type&&C.extend(i.props,{poll_type:n.attributes.type}),wm.push(i)}),wm.flush())}),u}Iy.MAX_ERRORS_PER_MINUTE=30;var _y={show:function(t,n){if(ru()&&C.isFunction(t._show))return t._show(n),t.isShown();var e=t.getGuide();if("whatsnew"===t.type)return Ty(t,n);if(!g.getters["frames/hasFrames"]()||g.getters["frames/isGuideInThisFrame"]()(e)){e=function(e,t){if(e.getGuide().isModule){e=F.getResourceCenter();if(e)return Ty(e.steps[0],t)}}(t,n);if(ft(e))return e.then(function(){return Ty(t,n)}).then(function(e){return!!e||ky(t,n)});e=Ty(t,n);if(ft(e))return e.then(function(e){return!!e||ky(t,n)});if(e)return!0}return ky(t,n)},showLocal:Ty};function Ty(e,t){return Wu.hasContent(e)&&Pu.valid(e)?(e._show(t),e.isShown()):!(Wu.hasContent(e)&&Pu.invalid(e)||!e.getGuide().canShowOnDevice()||!e.canShowOnPage(Vg()))&&(e.lock(),Wu.fetchContent(e).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&Pu.validate(e.getGuide())}).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&(e.unlock(),e._show(t),e.isShown())}))}function ky(t,e){var n=t.getGuide();return!(!g.getters["frames/hasFrames"]()||!g.getters["frames/isGuideInDifferentFrame"]()(n))&&(t.lock(),g.dispatch("frames/showGuideStep",{guideId:t.guideId,stepId:t.id,reason:e}).then(function(e){return t.unlock(),e.isShown},function(){return t.unlock(),!1}).then(function(e){return e&&(clearInterval(t.timeoutTimer),delete t.timeoutTimer),e}))}function Ry(d){var e=!1,t=!1;return this.guide=d,this.elements=[],this.handlers=[],this.attributes=this.attributes||{},(this.domUrl||this.domJson)&&(this.eventRouter=new qm),this.getGuide=function(){return this.guide},this.getContent=function(){var e=this.getGuide(),t=e&&e.steps||[],n=C.indexOf(t,this),i=Tc();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:nt(i),template:r};return this.template||(this.template=C.template(this.content||"")),zu(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(a){return this.content}},this.isLocked=function(){return e},this.lock=function(){e=!0},this.unlock=function(){e=!1},this.isTimedOut=function(){return t},this.timeout=function(){t=!0},this.isRendered=function(){return this.elements&&0<this.elements.length},this.isShown=function(){return this.isRendered()||this.isLocked()},this.canShow=function(){return!C.get(this,"guide.attributes.isAnnouncement")&&!!d.canShowOnDevice()&&!this.isShown()&&!C.get(this,"stepIneligibleForApp")&&this.canShowOnPage(Vg())&&xg(this)},this.canShowOnPage=function(e){e=$g(this.regexUrlRule,e);return ph()&&m.stepEligibility.trigger({stepId:this.id,guideId:this.guideId,eligible:e,reason:"page_match"}),e},this.shouldAutoDisplay=function(){return this.shouldRepeat()||!this.hasBeenControlled()&&!this.isSnoozed()&&!C.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 e,t;return!(!(I.designer||ru()||Nh())&&(e=Vg(),t={guideId:this.guideId,stepId:this.id},this.regexUrlRule&&!$g(this.regexUrlRule,e)?(Kd.addGuide(d),t.error=new Error('attempted display on page "'+e+'"'),x.critical("pendo.io page rule exception",t),1):g.getters["healthCheck/isMissingPageRule"]()(this)?(Kd.addGuide(d),t.error=new Error('missing regexUrlRule"'),x.critical("pendo.io page rule exception",t),1):this.pageId&&!this.regexUrlRule&&(Kd.addGuide(d),t.error=new Error("missing regexUrlRule for page "+this.pageId+'"'),x.critical("pendo.io page rule exception",t),1)))},this.render=function(){var e=this;if(this._preRenderHealthCheck()){if(e.domJson)return d.skipResourceCenterHomeView&&d.moduleIdToReplaceHomeViewWith&&d.hasEligibleNativeIntegrationModule?(t=C.find(qd(),function(e){return e.id===d.moduleIdToReplaceHomeViewWith}),n=C.get(t,"attributes.resourceCenter.integrationProvider"),F.renderNativeIntegration(n,t)):d.continueToNativeModule?F.handleNativeIntegrationContinuation(d):(C.get(d,"attributes.resourceCenter")&&th(F.getResourceCenter(),nh),d.isModule?U.renderResourceCenterModule(d,!1):(n=U.renderGuideFromJSON(e.domJson,e),C.get(d,"attributes.resourceCenter")&&(t=d.activeModule?d.activeModule.activeStep().domJson.props.id:e.containerId,t=e.guideElement.find("#"+t),F.adjustResourceCenterWidth(t)),n));var t=e.attributes.width,n=e.attributes.height,i=I.TOOLTIP_ARROW_SIZE,r="_pendo-group-id-"+d.id+"_",r=k(document.createElement("div")).attr("id",Rg(e)).addClass(Xf+" "+r),o=k(document.createElement("div")).addClass("_pendo-guide-content_").html(e.getContent()),a=k(document.createElement("div")).addClass("_pendo-guide-container_"),s=k(document.createElement("div")).addClass("_pendo-backdrop_");r.width(t),r.height(n),a.css({left:i,top:i}),e.isEditable&&o.attr("contenteditable","true"),o.appendTo(a),a.appendTo(r),d&&C.isFunction(d.isOnboarding)&&d.isOnboarding()&&r.addClass("_pendo-onboarding_"),e.overlayDiv=s,e.guideElement=r}},this.teardown=function(){x.info("guide step teardown",{contexts:["guide","render"]}),C.each(this.handlers,function(e){Ud(e.element,e.type,e.fn,!0)}),this.hasBeenScrolledTo=!1,this.handlers.length=0,C.has(this.attributes,"imgCount")&&(this.attributes.imgCount=0),this.hiddenElements&&(C.each(this.hiddenElements,e=>{try{e&&"function"==typeof e.removeAttribute&&e.removeAttribute("aria-hidden")}catch(t){x.error("unable to remove aria-hidden from element",{error:t})}}),this.hiddenElements.length=0,this.hiddenElements=null),vc(this.id)},this.show=function(e){var t;if(!C.contains(["auto","continue"],e)||!g.getters["healthCheck/isRedisplay"]()(this))return(t=_y.show(this,e))&&t["catch"]&&t["catch"](C.noop),t;g.dispatch("healthCheck/fixSeenStateAndLogError",{step:this,reason:e})},this.redraw=function(){var e,t,n,i,r,o=this;o.guideElement&&!I.designer&&(t=(e=C.get(d,"attributes.resourceCenter"))&&F.isFullyCustom(d),n=d.activeModule?d.activeModule.activeStep().domJson.props.id:o.containerId,i=o.guideElement.find("#"+n),r=d.activeModule&&"AnnouncementsModule"===C.get(d.activeModule,"attributes.resourceCenter.moduleId"),m.beforeUpdate.trigger(o),t||r||(U.recalculateGuideWidth(n,o.guideElement),U.adjustGuideContentWidth(n,o.guideElement)),e?(F.adjustResourceCenterWidth(i),r&&d.activeModule.guidesInModule?C.forEach(d.activeModule.guidesInModule,function(e){var t;!C.isUndefined(e.steps[0].attributes.imgCount)&&0!==C.get(e.steps[0],"attributes.imgCount")||(t=e.steps[0].id,t=k(i).find("#pendo-g-"+t)[0]?t:e.id,U.adjustGuideContentWidth("pendo-g-"+t,o.guideElement),U.flexAllThings("pendo-g-"+t,o))}):U.flexAllThings("pendo-resource-center-container")):U.flexAllThings(n,o),t||U.recalculateGuideHeight(n,o.guideElement),m.updated.trigger(o))},this._show=function(e){m.beforeGuideShow.trigger(this,e),this.canShow()&&(!ru()&&d.control?this.hasBeenControlled()||this.onControlGuide("control"):m.beforeMount.trigger(this).cancel||(this.render(),this.isShown()&&this.onShown(e)))},this.shouldStartTimer=function(){return d.canShowOnDevice()&&!d.attributes.isAnnouncement&&!Eg(this)},this.getStepPollTypes=function(n,e){var i;if(e.pollIds&&e.pollIds.length)return i=[],C.forEach(e.pollIds,function(t){var e=C.find(n.polls,function(e){return e.id===t});e&&e.attributes&&e.attributes.type&&i.push(e.attributes.type)}),i},this.onControlGuide=function(e){var t;ru()||(this.seenReason=e,tg(v()),t=this.getStepPollTypes(d,this),this.hasBeenControlled())||(Fg(this.guideId,this.id,b(),e,d.language,t),C.each(d.steps,function(e){e.seenState="notSeen"}))},this.onShown=function(r,e=!0){var t,n,i=this;i.overrideElement&&(k.addClass(i.overrideElement,"triggered"),i.overrideElement.checkAriaExpanded)&&i.overrideElement.checkAriaExpanded(),ru()||(i.seenReason=r,i.seenState="active",tg(v()),t={last_updated_at:i.lastUpdatedAt},(n=this.getStepPollTypes(d,i))&&(t.step_poll_types=n),e&&Pg(i.guideId,i.id,b(),r,d.language,t),g.dispatch("guideState/updateLastGuideStepSeen",{guideId:d.id,guideStepId:i.id,time:eg,state:i.seenState,seenReason:r,visitorId:b()}),C.each(d.steps,function(e){var t,n,i;"snoozed"===e.seenState&&(e.snoozeEndTime=0,t=d.id,e=e.id,n=b(),i=d.language,t=Hg({type:"guideSnoozeCanceled",guideId:t,stepId:e,visitorId:n,seen_reason:r,language:i}),qg(t,null,!0),m.guideSnoozeCancelled.trigger(t))}),Vu.runCustomScripts(i,d)),g.dispatch("frames/guideStepShownInFrame",{guideId:d.id,stepId:i.id,isShown:i.isShown()}),i.guideElement&&i.guideElement[0]&&i.attachEvent(i.guideElement[0],"focusin",function(e){"TEXTAREA"!==e.target.tagName&&"INPUT"!==e.target.tagName||(I.ignoreResize=!0,Ut(function(){I.ignoreResize=!1},1e3))})},this.hide=function(e){var t=this;t.unlock(),m.beforeUnmount.trigger(t),t.teardown(),C.each(t.elements,function(e){qo(e)}),m.unmounted.trigger(t),t.attributes&&e&&e.stayHidden&&(t.attributes.stayHidden=e.stayHidden),t.elements.length=0,t.element=null,t.guideElement=null,t.overrideElement&&(k.removeClass(t.overrideElement,"triggered"),t.overrideElement.checkAriaExpanded)&&t.overrideElement.checkAriaExpanded(),g.dispatch("frames/guideStepHiddenInFrame",{guideId:d.id,stepId:t.id})},this.advance=function(){"advanced"===this.seenState&&!this.isRendered()||wg(this)},this.dismiss=function(){"dismissed"===this.seenState&&!this.isRendered()||vg(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&&d.redisplay&&!d.outsideTimebox()&&!this.isSnoozed()&&v()-this.lastSeenAt>=d.redisplay.interval&&!d.hasReachedMaxDismissals()},this.hasBeenControlled=function(){return d.isControlGroup()&&"notSeen"===this.seenState},this.attachEvent=function(e,t,n){var i={element:e,type:t,fn:n};c(e,t,n,!0),this.handlers.push(i)},this.searchFor=function(e){return!(e.length<3)&&st(this.content,e,!0)},this.hasBeenSeen=function(){return"advanced"==this.seenState||"dismissed"==this.seenState},this.reposition=function(){},this.checkPlacement=function(){"tooltip"===this.getType()&&Tl.placeBBTooltip(this),this.attributes.blockOutUI&&this.attributes.blockOutUI.enabled&&bl(this)},this.getType=function(){return this.domJson?C.get(this,"attributes.calculatedType"):this.type},this}function Ay(){return this.after("render",function(){var e,t;P&&P.contentWindow&&P.style&&(e=C.first(k('#pendo-resource-center-container, [id^="pendo-g-"]')))&&(e=A(e))&&(t={mutation:"preview/setIsPreviewBarTop",payload:{isPreviewBarTop:!1}},"0px"===e.top?(P.style.top="auto",P.style.bottom="0px",P.contentWindow.postMessage(t,location.origin)):"0px"!==e.bottom&&P.style.top||(P.style.top="0px",P.style.bottom="auto",t.payload.isPreviewBarTop=!0,P.contentWindow.postMessage(t,location.origin)))}),this}Ry.isGuideStep=function(e){return!!e&&C.isFunction(e.render)};const Oy={state:{errorCount:0,errors:{}},actions:{write(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(r){}e=`[${t}]`;t.level===gt.Critical?(i=window.pendo_options||{},Pv(e),!1!==I.logStackTraces&&!1!==i.logStackTraces&&n.stack?xo(e+`
|
|
9
|
+
`+n.stack):Co(e)):t.level===gt.Error?Pv(e):t.level===gt.Warn&&(i=[e],Nv("warn"))&&console.warn.apply(console,i)}}},update(e,t){t&&(e.getters.hasLogged()(t)||e.commit("addError",t),e.commit("incrementError",t))}},mutations:{addError(e,t){var{message:n,level:i}=t,r=t.hashCode();e.errors[r]={count:0,stack:t.error.stack,message:n,level:i,hash:r}},incrementError(e,t){e.errors[t.hashCode()].count++,e.errorCount++}},getters:{hasLogged(t){return function(e){return!!t.errors[e.hashCode()]}}}},Ny=h.getSession(),My="pendo_cd";class Ly{constructor(){this.name="CloneDetection"}initialize(){if(C.isFunction(window.BroadcastChannel))return h.registry.addSession(My),this.tabId=sn.getTabId(),this.id=at(16),this.channel=new BroadcastChannel("pendo-clone-detection-"+I.apiKey),this.channel.addEventListener("message",C.bind(this.onmessage,this)),this.detectClonedSession(this.id),C.bind(this.teardown,this)}teardown(){this.stopCloneDetectionTimer(),this.channel.removeEventListener("message",this.onmessage),this.channel.close(),this.channel=null}onmessage(e){var t=C.get(e,"data.type"),n=C.get(e,"data.tabId"),i=C.get(e,"data.id");if(n===this.tabId)switch(t){case"pendo-clone-test":i!==this.id&&this.isClonedSession(i)&&this.sendMessage("pendo-change-tab-id",{tabId:n,id:i});break;case"pendo-change-tab-id":i===this.id&&this.clearClonedStorage()}}detectClonedSession(e){var t=Ny.getItem(My)||"";-1===t.indexOf(e)&&(t+="-"+e),Ny.setItem(My,t),this.sendMessage("pendo-clone-test",{tabId:this.tabId,id:this.id}),this.startCloneDetectionTimer()}isClonedSession(e){return this.startCloneDetectionTimer(),-1===(Ny.getItem(My)||"").indexOf(e)}clearCloneDetectionValue(){Ny.removeItem(My),this.cloneDetectionTimer=null}startCloneDetectionTimer(){this.stopCloneDetectionTimer(),this.cloneDetectionTimer=Ut(C.bind(this.clearCloneDetectionValue,this),1e4)}stopCloneDetectionTimer(){this.cloneDetectionTimer&&(clearTimeout(this.cloneDetectionTimer),this.cloneDetectionTimer=null)}clearClonedStorage(){Ny.clearPendo(),sn.setParentTabId(this.tabId),this.tabId=sn.newTabId(),m.trigger("tabIdChanged:self"),g.dispatch("frames/setTabId",this.tabId)}sendMessage(e,t){this.channel.postMessage(Object.assign({type:e},t))}}let Fy=new Ly;function Py(e){g.dispatch("frames/setReady",{isReady:!0})}var Dy=["unknown","hidden","visible"];function Uy(e){return"visible"===e.visibility||"unknown"===e.visibility}Gy={};var Gy,t={actions:{init(e){var t,n,i=e.state;i.initialized||(h.registry.addSession(Xt),h.registry.addSession(Qt),t=sn.addTracerIds({}),n=we(),e.commit("setFrameId",t.frameId),e.commit("setTabId",t.tabId),e.commit("setAgentInstallType",n),e.commit("setLeadershipMode",n),m.ready.on(Py),m.guideSeen.on(function(e){e=e.data[0];e&&e.frameId===i.frameId&&D.postMessage({action:"frames/receiveGuideSeen",frameId:i.frameId,guideSeen:e})}),Fy.initialize(),e.commit("setInitialized",!0))},changeGuideList(e,t){e=e.state,t=zy(t);D.postMessage({action:"frames/receiveGuideList",frameId:e.frameId,guides:t,autoOrdering:I.autoOrdering||[]})},receiveGuideList(e,t){e.commit("setGuideList",t),t.frameId===e.state.frameId&&e.commit("setGuidesLoaded"),Hy(e.state)},join(e){var t,n,i,r;e.state.disabled||($p(),t=e.state,n=window.top==window,i=t.frames[t.frameId],e.commit("removeFrame",t.frameId),e.commit("setGuideList",{frameId:t.frameId,guides:zy(Xd())}),(r=[].concat(f.get("leaderKey"))).length||t.agentInstallType!==ye||(r=[I.apiKey]),e.dispatch("receiveFrame",{frame:C.extend({agentInstallType:t.agentInstallType,id:t.frameId,joinedAt:v(),isTop:n,visibility:n?"visible":"unknown",apiKey:I.apiKey,leaderKey:r},i)}))},receiveFrame(e,t){var n,i=e.state;if(I.designerv2.launched&&(n=Object.assign({},tf.hostConfig,{selectionOnly:!0}),D.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:C.toArray(C.get(t,"frame.guides",[]))}),t.frame.isTop){for(var r=e.getters.leaderKeyPreference(),o=C.filter(i.frames,e=>e.isTop);r.length;){var a=r.shift(),s=C.filter(o,e=>e.apiKey===a);if(s.length){o=s;break}}e.commit("setTopId",o[0].id)}e.commit("setLeadershipMode",t.frame.agentInstallType),t[Ch]&&e.dispatch("receiveStartPreview",t),D.postMessage({action:"frames/receiveFrame",frame:i.frames[i.frameId],"pendo-preview":e.rootState.preview.preview}),e.dispatch("waitThenElectLeader")}},leave(t){var e=t.state;D.postMessage({action:"frames/removeFrame",frameId:e.frameId}),C.each(e.frames,function(e){t.commit("removeFrame",e.id)}),D.close()},removeFrame(e,n){e.getters.hasFrame()(n.frameId)&&(e.commit("removeFrame",n.frameId),C.each(Gy,function(e,t){0===t.indexOf(n.frameId+"/")&&(e.reject(),delete Gy[t])}),e.dispatch("electLeader"))},waitThenElectLeader:C.debounce(function(e){e.dispatch("electLeader")},50),electLeader(e){var t=e.state,n=t.frames,i=e.getters.leaderKeyPreference();if(i.length)for(;i.length;){var r=i.shift(),o=C.filter(t.frames,e=>e.apiKey===r);if(o.length){n=o;break}}var a=C.find(n,e=>e.isTop);a?e.dispatch("followLeader",{leaderId:a.id}):(a=C.min(n,"joinedAt"),e.dispatch("followLeader",{leaderId:a.id})),Hy(e.state),e.getters.isLeader()&&m.childFrameJoined.trigger()},followLeader(e,t){var n=e.state,i=n.leaderId,r=t.leaderId;e.commit("setLeaderId",t.leaderId),i!==r&&m.leaderChanged.trigger({frameId:n.frameId,oldLeaderId:i,newLeaderId:r})},showGuideStep(t,n){var i=C.filter(t.state.frames,function(e){return e.id!==t.state.frameId&&"hidden"!==e.visibility&&e.guides&&e.guides[n.guideId]});return function r(){var e=i.shift();return e?t.dispatch("requestShowGuideStepInFrame",C.extend({frameId:e.id},n)).then(function(e){return e.error?y.reject(e.error):e.isShown?e:r()}):y.resolve({isShown:!1})}()},requestShowGuideStepInFrame(e,t){var n=t.frameId+"/"+at(32),i=y.defer();return Gy[n]=i,D.postMessage(C.extend({action:"frames/showGuideStepInFrame",requestId:n},t)),i.promise},showGuideStepInFrame(t,n){var e;function i(e){t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:e})}t.state.frameId===n.frameId&&((e=(e=N(n.guideId))&&e.findStepById(n.stepId))?ft(e=_y.showLocal(e,n.reason))?e.then(i)["catch"](C.noop):i(e):t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:!1}))},guideStepShownInFrame(e,t){e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:t.isShown}),D.postMessage(C.extend({action:"frames/receiveGuideStepShownInFrame",frameId:e.state.frameId},t))},receiveGuideStepShownInFrame(e,t){var n=Gy[t.requestId];n&&(n.resolve(t),delete Gy[t.requestId]),e.getters.isShownInFrame()(t.frameId,{id:t.stepId})!==t.isShown&&e.commit("setStepShown",{frameId:t.frameId,stepId:t.stepId,shown:t.isShown})},hideGuides(e,t){t=C.isArray(t)?t:[],D.postMessage({action:"frames/receiveHideGuides",frameId:e.state.frameId,guideIds:t}),e.commit("hideGuides")},receiveHideGuides(e,t){e.state.frameId!==t.frameId&&(t.guideIds.length?C.each(C.compact(C.map(t.guideIds,N)),function(e){e.hide()}):sg(),e.commit("hideGuides"))},guideStepHiddenInFrame(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}),D.postMessage(C.extend({action:"frames/receiveGuideStepHiddenInFrame",frameId:e.state.frameId},t)),n&&e.dispatch("fixDoubleDisplay",t)},receiveGuideStepHiddenInFrame(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(n,i){C.each(n.state.frames,function(e,t){t!==n.state.frameId&&n.getters.isShownInFrame()(t,{id:i.stepId})&&D.postMessage(C.extend({action:"frames/receiveHideGuideInFrame",frameId:t,guideId:i.guideId,stepId:i.stepId},i))})},receiveHideGuideInFrame(e,t){e.state.frameId===t.frameId&&(t=(e=N(t.guideId))&&e.findStepById(t.stepId))&&t.hide()},changeLastGuideStepSeen(e,t){D.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(e,t){var n;t.frameId!==e.state.frameId&&(n=e.state.frames[t.frameId],(n=C.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=N((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(e,t){D.postMessage(C.extend({action:"frames/receiveThrottlingState",frameId:e.state.frameId},t))},receiveThrottlingState(e,t){t.frameId!==e.state.frameId&&C.each(Gg,function(e){t[e]&&zg(t[e],e)})},startPreview(e){D.postMessage({action:"frames/receiveStartPreview","pendo-preview":e.rootState.preview.preview})},restartPreview(e){D.postMessage({action:"frames/receiveRestartPreview","pendo-preview":e.rootState.preview.preview})},stopPreview(e,t){D.postMessage(C.extend({action:"frames/receiveStopPreview"},t))},receiveStartPreview(e,t){e.dispatch("preview/start",t[Ch],{root:!0}),Th(window),zm()},receiveRestartPreview(e){var t=Ah(O,Pp());e.dispatch("guideState/updateLastGuideStepSeen",t,{root:!0})},receiveStopPreview(e,t){Gh({preventWindowClose:!!t.preventWindowClose})},checkFrameVisibility(e,t){if(!e.getters.isTop()&&!e.state.disableFrameVisibilityCheck)try{var n="unknown",i=(t=null==t?window:t).frameElement;i?(n=la(i)?"visible":"hidden",e.dispatch("updateFrameVisibility",{visibility:n})):e.commit("disableFrameVisibilityCheck")}catch(r){e.commit("disableFrameVisibilityCheck")}},updateFrameVisibility(e,t){var n;!C.find(Dy,function(e){return e===t.visibility})||(n=t.visibility,e.getters.frameVisibility()===n)||(e.commit("setFrameVisibility",{frameId:e.state.frameId,visibility:n}),D.postMessage({action:"frames/receiveFrameVisibility",frameId:e.state.frameId,visibility:n}))},receiveFrameVisibility(e,t){e.commit("setFrameVisibility",t)},addSelectionModeToFrames(e,t){t=t.options;tf.launchInAppDesigner(t)},syncOptions(e,t){t.options&&D.postMessage({action:"frames/receiveOptions",frameId:e.state.frameId,options:t.options})},receiveOptions(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&t.options&&Ic(t.options)},syncIdentity(e,t){var n;(t.visitorId||t.accountId)&&({visitorId:t,accountId:n}=t,D.postMessage({action:"frames/receiveIdentity",frameId:e.state.frameId,visitorId:t,accountId:n}))},receiveIdentity(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&(t.visitorId||t.accountId)&&Pn(t.visitorId,t.accountId)},setReady(e,t){e.commit("setReady",t.isReady)},receiveGuideSeen(e,t){t.frameId!==e.state.frameId&&m.guideSeen.trigger(t.guideSeen)},checkGuideEligibility(e,t){var{guideId:t,stepId:n,currentStepIndex:i,sourceFrame:r,promiseId:o}=t,t=N(t),n=t&&t.findStepById(n),a={};return t&&n?(0===i&&(i=lu(t))&&((i=C.first(yr(i)))?la(i)||(a.ACTIVATION="notVisible"):a.ACTIVATION="notFound"),C.isFunction(n.canShowOnPage)&&!n.canShowOnPage(Vg())&&(a.PAGE="mismatch"),n.elementPathRule&&((i=C.first(yr(n.elementPathRule)))?la(i)?n.elementContainsRulesList&&!Tg(i,n.elementContainsRulesList)&&(a.ELEMENT="containsRuleMismatch"):a.ELEMENT="notVisible":a.ELEMENT="notFound"),n.triggerElementPathRule&&((i=C.first(yr(n.triggerElementPathRule)))?la(i)||(a.TRIGGER_ELEMENT="notVisible"):a.TRIGGER_ELEMENT="notFound"),C.get(t,"attributes.embedConfig")&&(n=C.get(t,"attributes.embedConfig.selector"),(i=C.first(yr(n)))?la(i)||(a.EMBED_CONTAINER="notVisible"):a.EMBED_CONTAINER="notFound")):a.GUIDE="notFound",o&&r&&D.postMessage({errors:a,action:"frameEligibilityResponse",targetFrame:r,resolveId:o}),a},setTabId(e,t){e.commit("setTabId",t)}},mutations:{addFrame(e,t){var n=t.id;e.frames[n]=C.extend({},e.frames[n],t)},removeFrame(e,t){delete e.frames[t]},setGuideList(e,t){var n=t.frameId;e.frames[n]=C.extend({},e.frames[n],{guides:C.indexBy(zy(t.guides),"id"),autoOrdering:t.autoOrdering})},setStepShown(e,t){var n=t.frameId,n=e.frames[n]=C.extend({},e.frames[n]);n.shown=C.extend({},n.shown),n.shown[t.stepId]=t.shown},setInitialized(e,t){e.initialized=t},setLeaderId(e,t){e.leaderId=t},setFrameId(e,t){e.frameId=t},setTabId(e,t){e.tabId=t},setTopId(e,t){e.topId=t},setAgentInstallType(e,t){e.agentInstallType=t},setLeadershipMode(e,t){e.leadershipMode!==ye&&(e.leadershipMode=t)},setFrameVisibility(e,t){var n=t.frameId;e.frames[n]=C.extend({},e.frames[n],{visibility:t.visibility})},setReady(e,t){e.isReady=t},disableFrameVisibilityCheck(e){e.disableFrameVisibilityCheck=!0},hideGuides(e){C.each(e.frames,function(n){C.each(n.shown,function(e,t){n.shown[t]=!1})})},setChannelType(e,t){e.channelType=t},setGuidesLoaded(e){e.guidesLoaded=!0},setConnectFailed(e){e.connectFailed=!0},updateLastGuideStepSeen(e,t){t&&C.each(e.frames,function(e){e.guides&&(e=e.guides[t.guideId])&&(e=C.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(e){return e.frames},autoOrdering(e){return C.reduce(e.frames,(e,t)=>(e[t.apiKey]=t.autoOrdering,e),{})},leaderExists(e){return!!e.leaderId},isLeader(e){return e.leaderId===e.frameId},leaderKey(e,t){if(t.leaderExists()){t=e.frames[e.leaderId];if(t)return t.apiKey}},isFollower(e){return!!e.leaderId&&e.leaderId!==e.frameId},isTop(e,t){t=t.window();return e.topId===e.frameId||t==t.top},frameVisibility(e){return(e.frames?e.frames[e.frameId]:{}).visibility||"unknown"},isGuideInThisFrame(n){return function(e){var t=n.frames&&n.frames[n.frameId];return!!(t&&t.guides||{})[e.id]}},isGuideInDifferentFrame(i){return function(n){return C.any(i.frames,function(e,t){return t!==i.frameId&&e.guides&&e.guides[n.id]})}},isReady(e){return e.isReady},isShownInAnotherFrame(i){return function(n){return C.any(i.frames,function(e,t){return t!==i.frameId&&e.shown&&e.shown[n.id]})}},isShownInFrame(n){return function(e,t){e=n.frames&&n.frames[e],e=e&&e.shown||{};return!(!e||!e[t.id])}},hasFrame(t){return function(e){return t.frames&&t.frames[e]}},hasFrames(e){return 1<C.size(e.frames)},shouldBeAddedToLauncher(i,e){return function(n){return e.canShowRCBadge()&&C.any(i.frames,function(e,t){return t!==i.frameId&&!!Uy(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToLauncher})}},shouldBeAddedToResourceCenter(i,e){return function(n){return e.canShowRCBadge()&&C.any(i.frames,function(e,t){return t!==i.frameId&&e.apiKey===I.apiKey&&!!Uy(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToResourceCenter})}},isBroadcastChannel(e){return"BroadcastChannel"===e.channelType},channelType(e){return e.channelType},canShowRCBadge(e,t){var n,i;return t.leaderKey()!==I.apiKey?(n=C.filter(e.frames,function(e){return e.apiKey===I.apiKey}),(i=C.find(n,function(e){return e.isTop}))?e.frameId===i.id:(i=C.min(n,function(e){return e.joinedAt}),e.frameId===i.id)):C.any(e.frames,function(e){return e.isTop})?t.isTop():t.isLeader()},leaderKeyPreference(e){e=C.filter(e.frames,e=>e.leaderKey&&e.leaderKey.length);return 1===C.unique(C.map(e,e=>e.leaderKey.join(","))).length?[].concat(e[0].leaderKey):[]},getMyApiKey(e,t){return t.getMyFrame().apiKey},getMyFrame(e){return e.frames[e.frameId]},window(){return window}},state:{initialized:!1,frameId:null,leaderId:null,tabId:null,agentInstallType:null,leadershipMode:null,topId:null,frames:{},guidesLoaded:!1,channelType:null,ready:!1},requests:Gy};function By(e){var t=C.pick(e,"id","name","launchMethod","isMultiStep","steps","control","lastUpdatedAt","language","state","polls","redisplay");return t.attributes=C.pick(e.attributes,"overrideAutoThrottling","priority","isAnnouncement","resourceCenter","device","sharedServiceVersion","embedConfig"),t._shouldBeAddedToLauncher=C.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e._shouldBeAddedToLauncher||!1,t._shouldBeAddedToResourceCenter=C.isFunction(e.shouldBeAddedToResourceCenter)?e.shouldBeAddedToResourceCenter():e._shouldBeAddedToResourceCenter||!1,t.steps=C.map(e.steps,function(e){return C.pick(e,"id","guideId","type","seenReason","seenState","lastSeenAt","lastUpdatedAt","dismissCount","snoozeEndTime","regexUrlRule","pageId","elementPathRule","triggerElementPathRule","elementContainsRulesList")}),t}function zy(e){return C.map(e,By)}function Hy(t){var n=C.indexBy(C.filter(Xd(),function(e){return!e.isFrameProxy}),"id"),e=C.chain(t.frames).filter(function(e){return e.id!==t.frameId}).map(function(e){return C.toArray(C.get(e,"guides",[]))}).flatten(!0).unique("id").filter(function(e){return!n[e.id]}).map(function(e){return C.extend(JSON.parse(JSON.stringify(e)),{isFrameProxy:!0})}).map(Gu).value(),e=C.toArray(n).concat(e).filter(am);C.sortBy(e,sm),Cm(e),Vd(e),t.guidesLoaded&&0===C.size(C.get(t,"frames."+t.frameId+".guides",[]))&&Zp()}function jy(e,t){new(ut("MutationObserver"))(t).observe(e,{subtree:!0,attributes:!0,childList:!0,characterData:!0})}const Wy={startObserver:function(r){{var t=r;const n=Element.prototype.attachShadow;Element.prototype.attachShadow=function(e){e=n.call(this,e);return this.shadowRoot&&jy(this.shadowRoot,t),e},Element.prototype.attachShadow.toString=function(){return n.toString()}}if(C.isFunction(document.createNodeIterator)){let t=0,n=[Ko()],i;!function o(e){do{if(!(e=e||document.createNodeIterator(n.pop(),NodeFilter.SHOW_ELEMENT))||!e.nextNode)break;for(;(i=e.nextNode())&&(t++,i&&i.shadowRoot&&(jy(i.shadowRoot,r),n.push(i.shadowRoot),Wy.foundShadowRoots=!0),t%5e3!=0););}while(!i&&(e=null,n.length));i&&Wy.foundShadowRoots&&Ut(()=>{o(e)},50),5e3!==t||Wy.foundShadowRoots||(Wy.stoppedSearchEarly=!0)}()}},foundShadowRoots:!1,stoppedSearchEarly:!1};var qy,_i={actions:{documentChanged(e){var t;e.state.updateId?e.commit("setNeedsUpdate"):e.state.scheduledUpdate||(t=e.getters.now()-e.state.updateCompleteTime,t=Math.min(Math.max(0,Jp-t),Jp),t=Ut(Vy,t),e.commit("setScheduledUpdate",t))},handleScheduledUpdate(e){e.dispatch("stopScheduledUpdate"),Zp()},stopScheduledUpdate(e){e.state.scheduledUpdate&&(clearTimeout(e.state.scheduledUpdate),e.commit("setScheduledUpdate",null))},startObserverIfNeeded(e,t){var n;e.state.useObserver&&((n=e.getters.observer())||(n=new(t||ut("MutationObserver"))(Jy),qy=n),e.state.observing||(n.observe(document.documentElement,{subtree:!0,attributes:!0,childList:!0,characterData:!0}),e.state.observeShadowRoots&&Wy.startObserver(Jy),e.commit("setObserving",!0)))},stopObserver(e){var t=e.getters.observer();t&&C.isFunction(t.disconnect)&&t.disconnect(),e.commit("setObserving",!1),e.dispatch("stopScheduledUpdate")}},mutations:{setUseObserver(e){e.useObserver=!0},setObserveShadowRoots(e){e.observeShadowRoots=!0},setObserving(e,t){e.observing=t},setNeedsUpdate(e){e.needsUpdate=!0},setScheduledUpdate(e,t){e.scheduledUpdate=t},startUpdate(e,t){e.needsUpdate=!1,e.updateId=t},completeUpdate(e,t){e.updateId=null,e.updateCompleteTime=t}},getters:{now(){return v()},observer(){return qy}},state:{useObserver:!1,observeShadowRoots:!1,observing:!1,needsUpdate:!1,scheduledUpdate:null,updateId:null,updateCompleteTime:0,iterationTimeLimit:50}};function Jy(){g.dispatch("guideUpdate/documentChanged")}function Vy(){g.dispatch("guideUpdate/handleScheduledUpdate")}Ky=["advanced","dismissed","snoozed"];var Ky,Mi={actions:{init:function(t,e){C.each(e,function(e){C.each(e.steps,function(e){t.commit("updateStepState",e)})})},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){xo(['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]=C.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(n){return function(e){var t=n.steps[e.id];return!!t&&!(e.resetAt>t.updatedAt)&&!(v()>=t.allowedAt)&&C.contains(Ky,t.seenState)&&!C.contains(Ky,e.seenState)}},isMissingPageRule:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(!t.regexUrlRule||e.regexUrlRule)}}},state:{steps:{},exceptions:{}}},$y={state:{lastFlush:v(),flushInterval:3e5,counters:{ptmGifFailures:0,guideGifFailures:0},timers:{}},actions:{flush(n){C.each(n.state.counters,function(e,t){n.commit("resetCounter",t)}),C.each(n.state.timers,function(e,t){n.commit("resetTimer",t)}),n.commit("setLastFlush",n.getters.now())}},mutations:{setLastFlush(e,t){e.lastFlush=t},incrementCounter(e,t){e.counters[t]!==undefined&&e.counters[t]++},resetCounter(e,t){e.counters[t]!==undefined&&(e.counters[t]=0)},setTimer(e,{name:t,time:n}={}){t&&null!=n&&(e.timers[t]=n)},resetTimer(e,t){delete e.timers[t]}},getters:{shouldFlush(e,t){return t.now()-e.lastFlush>=e.flushInterval},payload(e){var t=C.reduce(e.counters,function(e,t,n){return 0<t&&(e[n]=t),e},{});return C.extend({},t,e.timers)},now(){return v()}}},Zy={state:{visitor:{},account:{},parentAccount:{},date:null,version:null,selfHosted:null},actions:{},mutations:{setMetadata(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(e){e.account={}},reset(e,t){e.visitor={id:t.visitor_id},e.account={},e.parentAccount={},e.date=null,e.version=null,e.selfHosted=null}},getters:{metadata(e){return e},selfHosted(e){return e.selfHosted}}};const Yy=h.getLocal();var Xy="pendo-preview",Qy="current-guide-preview",eb={state:{preview:null,designerPreview:null},actions:{start(e,t){e.commit("setPreview",t),e.dispatch("write")},restart(e,t){e.commit("updatePreview",{state:null}),e.commit("updatePreview",t)},update(e,t){e.commit("updatePreview",{state:t}),e.dispatch("write")},load(e){try{var t=e.getters.storage(),n=JSON.parse(t.getItem(Xy)),i=(n.apiKey===I.apiKey&&e.commit("setPreview",n),t.getItem(Qy));i&&e.commit("setDesignerPreview",JSON.parse(i))}catch(r){}},write(e){try{var t=e.getters.storage();e.state.preview?t.setItem(Xy,JSON.stringify(e.state.preview)):t.removeItem(Xy)}catch(n){}},exit(e){e.commit("setPreview",null),e.dispatch("write")},exitDesignerPreview(e){e.commit("setDesignerPreview",null),e.getters.storage().removeItem(Qy)},launchInAppDesigner(e,t){tf.launchInAppDesigner(t)}},mutations:{updatePreview(e,t){e.preview&&C.extend(e.preview,t)},setPreview(e,t){e.preview=t},setDesignerPreview(e,t){e.designerPreview=t}},getters:{isInPreviewMode(e){return!!e.preview},isInDesignerPreviewMode(e,t){return!!e.designerPreview&&t.isInPreviewMode()},storage(){return Yy}}};const tb=(()=>{const n={isTop:undefined,isLeader:undefined,frameId:null,tabId:null,frames:{},autoOrdering:[],excludedGuides:[],throttling:{},enableEventLogging:!1,eventsCaptured:[],cspErrors:[],installType:null,doNotProcess:!1},a={TOP_DOWN:"top-down",BOTTOM_UP:"bottom-up"},s={debuggingEnabled:{type:a.TOP_DOWN,defaultValue:!1},guideLoopRunning:{type:a.BOTTOM_UP,defaultValue:!1},stepEligibilitySet:{type:a.BOTTOM_UP,defaultValue:{}},identity:{type:a.BOTTOM_UP,defaultValue:{}},location:{type:a.BOTTOM_UP,defaultValue:{}}};var e={init:e=>{e.commit("setFrameId",sn.getFrameId()),e.commit("setTabId",sn.getTabId()),e.commit("setInstallType",we());var t=hu()&&window.top===window;n.isTop,e.commit("setIsTop",t),e.commit("isLeader",hu()),t?(t=ch(),e.commit("debuggingEnabled",!0===t.enabled),t.enableEventLogging&&e.commit("enableEventLogging",!0)):D.postMessage({action:"debugger/join",frameId:e.state.frameId})},join:(n,e)=>{n.state.frameId!==e.frameId&&C.each(s,({type:e},t)=>{e===a.TOP_DOWN&&D.postMessage({action:"debugger/sync",frameId:n.state.frameId,fields:{[t]:n.state[t]}})})},sync:(i,e)=>{if(i.state.frameId!==e.frameId){const{frameId:r,fields:t}=e;C.each(t,(e,t)=>{var n;s[t]&&(n=s[t]["type"],n===a.TOP_DOWN&&i.state.isTop||n===a.BOTTOM_UP&&!i.state.isTop||i.commit("_sync_"+t,{value:e,frameId:r}))})}},enableEventLogging:(e,t)=>{e.commit("enableEventLogging",t)},eventCaptured:(e,t)=>{e.state.isTop?e.commit("eventsCaptured",t):D.postMessage({action:"debugger/receiveEventCaptured",frameId:e.state.frameId,event:t})},receiveEventCaptured:(e,t)=>{e.state.isTop&&e.commit("eventsCaptured",t.event)},clearEventsCaptured:e=>{e.commit("eventsCaptured",[])},onCspError:(e,t)=>{e.state.isTop?e.commit("cspError",t):D.postMessage({action:"debugger/recieveCspError",frameId:e.state.frameId,data:t})},recieveCspError:(e,t)=>{e.state.isTop&&e.commit("cspError",t.data)},checkGuideEligibility(e,t){const{guideId:i,response:n}=t;var t=C.filter(g.state.frames.frames,e=>e.guides&&e.guides[i]);t.length&&(t=C.map(t,n=>{var e=C.map(n.guides[i].steps,(e,t)=>D.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:n.id,stepId:e.id,currentStepIndex:t,guideId:i}));return y.all(e).then(e=>({frameId:n.id,frameVisibility:n.visibility,errors:C.map(e,e=>JSON.parse(e).errors)}))}),y.all(t).then(e=>e).then(e=>n(e))["catch"](e=>n({error:e})))}};const t={},d={setFrameId(e,t){e.frameId=t},setTabId(e,t){e.tabId=t},setIsTop(e,t){e.isTop=t},isLeader(e,t){e.isLeader=t},setInstallType(e,t){e.installType=t},stepEligibilitySet(e,t){var n=t["stepId"];e.stepEligibilitySet[n]=t},guideLoopRunning(e,t){e.guideLoopRunning!==t&&(e.guideLoopRunning=t)},identity(e,t){e.identity=t},location(e,t){e.location=t},debuggingEnabled(e,t){e.debuggingEnabled=t,t=t,e=e.isTop,n.debuggingEnabled!==t&&(t?(u(),l(),m.on("stepEligibility",i),m.on("guideUpdateComplete",p),m.on("guideLoopStopped",h),m.on("eventCaptured",o),m.on("identify",u),m.on("urlChanged",l),e&&(r(),m.on("guidesLoaded",r))):(m.off("stepEligibility",i),m.off("guideUpdateComplete",p),m.off("guideLoopStopped",h),m.off("eventCaptured",o),m.off("identify",u),m.off("urlChanged",l),e&&m.off("guidesLoaded",r)))},excludedGuides(e,t){e.excludedGuides=t},autoOrdering(e,t){e.autoOrdering=t},throttling(e,t){e.throttling=t},eventsCaptured(e,t){C.isArray(t)&&0===t.length?e.eventsCaptured=[]:e.debuggingEnabled&&e.enableEventLogging&&e.eventsCaptured.unshift(t)},enableEventLogging(e,t){e.enableEventLogging=t},cspError(e,t){e.cspErrors.unshift(t),10<e.cspErrors.length&&e.cspErrors.pop()},doNotProcess(e,t){e.doNotProcess=t}};function i(e){e=e.data[0];g.commit("debugger/stepEligibilitySet",e)}function r(e){var t=C.map(Dp.sortAndFilter(O,I.autoOrdering),e=>e.id);g.commit("debugger/autoOrdering",t||[]),g.commit("debugger/excludedGuides",I.excludedGuides||[]),g.commit("debugger/throttling",I.throttling||{})}function o(e){g.dispatch("debugger/eventCaptured",e.data[0])}function u(e){g.commit("debugger/identity",{visitorId:C.get(e,"data.0.visitor_id")||I.get_visitor_id(),accountId:C.get(e,"data.0.account_id")||I.get_account_id(),apiKey:I.apiKey})}function l(){g.commit("debugger/location",{href:Pr(),browserUrl:window.location.href})}function c(e){g.commit("debugger/guideLoopRunning",e)}const p=C.partial(c,!0),h=C.partial(c,!1);return C.each(s,({type:i,defaultValue:e},r)=>{n[r]=e,t[r]=e=>e[r];let o=d[r]||((e,t)=>{e[r]=t});d[r]=C.wrap(o,(e,t,n)=>{!t.isTop&&i===a.TOP_DOWN||(e(t,n),t.isTop&&i===a.BOTTOM_UP)||D.postMessage({action:"debugger/sync",frameId:t.frameId,fields:{[r]:n}})}),o=d["_sync_"+r]||o,d["_sync_"+r]=(e,{value:t,frameId:n})=>{e.frames[n]||(e.frames[n]={}),e.frames[n][r]||(e.frames[n][r]=s[r].defaultValue),o(e.frames[n],t),e.isTop||i!==a.TOP_DOWN||o(e,t)}}),{state:n,actions:e,getters:t,mutations:d}})();const nb=function(){const i="pendo-loader";let r,o,n;return{name:"IFrameMonitor",initialize:function(e,t){r=e,o=t,function(){o.ConfigReader.get("autoFrameInstall")&&o.Events.ready.on(c);o.ConfigReader.get("frameIdentitySync")&&(o.Events.metadata.on(h),o.Events.identify.on(f),o.Events.childFrameJoined.on(a))}(),n=o.ConfigReader.get("frameIdentityTopDownOnly")},teardown:function(){o.Events.ready.off(c),o.Events.metadata.off(h),o.Events.identify.off(f),o.Events.childFrameJoined.off(a)}};function a(){g()}function s(e){return e.ignoreIframeMonitor||e.pendo&&(e.pendo.initialize||e.pendo.iframeWaiting)||!!e.document.getElementById(i)}function d(e,t){var n;s(e)||((n=o.ConfigReader.getLocalConfig()).apiKey||(n.apiKey=r.apiKey),e.pendo={_q:[["initialize",n]]},(n=e.document.createElement("script")).src=t,n["async"]=!0,n.id=i,(t=e.document.getElementsByTagName("script")[0])&&t.parentNode?t.parentNode.insertBefore(n,t):(e.document.head||e.document.body).appendChild(n))}function u(e,t){e.pendo.iframeWaiting=!1,d(e,t)}function l(e){try{if(s(e))return}catch(n){return}var t=function(){var e=o.ConfigReader.get("selfHostedAgentUrl");if(e)return e;e=r.dom("script");const t=/\/pendo(\.\w+)?\.js$/;return(e=r._.find(e,e=>t.test(e.src)))&&e.src}();t?"complete"===e.document.readyState?d(e,t):(e.pendo={iframeWaiting:!0},e.document.addEventListener("DOMContentLoaded",r._.partial(u,e,t))):r.log("Unable to find agent url to install agent in frames","debug")}function e(){var t=r.dom("iframe").length;for(let e=0;e<t;e++)l(window.frames[e]);Ut(e,250)}function c(){e()}function p(){return!n||n&&o.store.getters["frames/isLeader"]()}function h(e){p()&&(e=null==(e=e.data)?void 0:e[0]).storeChanged&&o.store.dispatch("frames/syncOptions",{options:e.options})}function f(e){var t;g(null==(t=e.data)?void 0:t[0].visitor_id,null==(t=e.data)?void 0:t[0].account_id)}function g(e=b(),t=Bn()){p()&&o.store.dispatch("frames/syncIdentity",{visitorId:e,accountId:t})}}();function ib(e,n){return e.length==n.length&&C.all(e,function(e,t){return e===n[t]})}class rb{constructor(e){this.maxTargets=50,this.domActivation=e,this.name="dom",this.queue=[]}markDirty(){this.queue.push.apply(this.queue,this.domActivation.guides)}process(e){var t,n=this.queue.shift();if(n){e.saveContext(n);try{t=yr(n.selector)}catch(i){t=[]}t.length>this.maxTargets&&(t.length=this.maxTargets),ib(t,n.targets)||(n.targets=t,this.domActivation.detach(n,this.domActivation.targets),C.each(t,function(e){this.domActivation.attach(e,n,this.domActivation.targets)},this))}}handleProcessTimeExceeded(e){e=e.getContext();e&&x.warn("Element activated guide ("+e.id+") timeout exceeded")}cancel(){this.queue.length=0}isComplete(){return!this.queue.length}}var ob,ab,sb,db,ub,lb,cb={name:"DOMActivation",key:sb="pendoTargetId",guides:db=[],targets:ub={},reset:mb,init:yb,attach:function(n,i,e){var t=n[sb],r=t?e[t]:null;r||(t=t||"target"+C.uniqueId(),r={target:n,events:{}},e[t]=r,n[sb]=t);var o=e[i.id]||[];o.push(t),e[i.id]=o,C.each(i.events,function(e){var t=r.events[e];t||((t={guideIds:{}}).fn=C.partial(gb,C,t.guideIds),c(n,e="mouseover"===e?"mouseenter":e,t.fn),r.events[e]=t),t.guideIds[i.id]=1})},detach:fb,handler:gb,activates:vb,prefetch:bb,initialize:function(e,t){(ob=t).Events.on("deliverablesLoaded",mb),t.Events.on("guideListChanged",pb),t.Events.on("guidesLoaded",hb),sh(ab=new rb(cb))},teardown:function(){dh(ab),ob.Events.off("deliverablesLoaded",mb),ob.Events.off("guideListChanged",pb),ob.Events.off("guidesLoaded",hb)}};function pb(){mb(),yb(qd())}function hb(){bb(qd())}function fb(i,t){C.each(t[i.id],function(e){var n=e?t[e]:null;n&&(C.each(n.events,function(e,t){e&&e.guideIds&&(delete e.guideIds[i.id],C.size(e.guideIds)<=0)&&(Ud(n.target,t="mouseover"===t?"mouseenter":t,e.fn),delete n.events[t])}),C.size(n.events)<=0)&&(delete n.target[sb],n.target=null,delete t[e])}),delete t[i.id]}function gb(e,t){var n;!e.pendoActivatedGuide&&!k.data.get(e,"advanced")&&(n=f.get("adoptPrioritizeAdoptGuides"),t=C.compact(C.map(C.keys(t),N)),t=C.filter(t,function(e){return!(!e.steps||!e.steps.length||C.get(e,"attributes.dom.isOnlyShowOnce")&&e.steps[0].hasBeenSeen())}),t=C(t).chain().sortBy(function(e){return"staged"===e.state?0:1}).sortBy(function(e){e=e.isTraining;return n?e?0:1:e?1:0}).value(),t=C.find(t,function(e){var t=C.first(e.steps);return C.get(e,"attributes.resourceCenter",!1)&&e.isShown()?F.dismissResourceCenter():!!t.canShow()&&(!!e.isShown()||Lg(t,"dom"))}))&&(e.pendoActivatedGuide=t.id)}function mb(){C.each(db,function(e){fb(e,ub),e.targets=[]}),db.length=0}function vb(e){if(e.id&&e.steps&&e.steps.length&&e.hasLaunchMethod("dom")&&e.steps[0].canShowOnPage(Vg())){var t=C.get(e,"attributes.activation.event",[]);if(t&&t.length){var n=lu(e);if(n)return{id:e.id,events:t,selector:n,targets:[]}}}}function yb(e){C.each(e,function(e){e=vb(e);e&&db.push(e)})}function bb(e){f.get("disablePrefetch")||C.each(e,function(e){C.isFunction(e.hasLaunchMethod)&&e.hasLaunchMethod("dom")&&e.steps&&e.steps.length&&C.isFunction(e.steps[0].fetchContent)&&e.steps[0].fetchContent(!0)})}var wb=function(){(lb=lb||{dom:k,placeBadge:yh,showPreview:Og,stopGuides:$p,removeAllBadges:bh,_:C,sizzle:yr,tellMaster:ja,tell:ja,log:Lv,attachEvent:c,createLauncher:C.constant({}),removeLauncher:C.noop,addGuideToLauncher:C.noop,updateLauncherContent:C.noop,DEFAULT_TIMER_LENGTH:Jp,getOffsetPosition:Wo,getScreenDimensions:zo,registerMessageHandler:Ma,whenLoadedCall:Bd,loadResource:_a,loadGuideCss:ym,GuideFactory:Gu,GuideStep:Bu,extractElementTreeContext:kd,previewGuideFromJSON:U.previewGuideFromJSON,hidePreviewedGuide:U.hidePreviewedGuide,shadowAPI:Yn,getTarget:xr,pullContentsFromTargetElement:_g,doesElementMatchContainsRules:Tg,doesElementContentMatchRule:kg,getGuideAttachPoint:au}).areGuidesEnabled=!Rm(),I.designer||(I.designer=lb)},Sb=function(){var r,o,i;let a;return{name:"DesignerConnect",initialize:function(e,t){r=e,o=t,Va()||Ma("connect",n);Ma("pendo-designer-launch::launch",u),Ma("pendo-preview::launch",l),e.app_name=document.title,(Wa()||window.opener)&&window.addEventListener&&(r.log(e.app_name+": listening to messages"),window.addEventListener("message",Ra,!1));window.opener&&r._.isFunction(window.opener.postMessage)&&window.opener.postMessage({type:"pendo::ready"},"*");r.onConnectMessage=n},teardown:function(){window.removeEventListener&&window.removeEventListener("message",Ra,!1),s(),La("connect"),La("pendo-designer-launch::launch"),La("pendo-preview::launch"),a&&(o.Events.appUnloaded.off(a),a=undefined);i=i&&undefined},onConnectMessage:n,disconnectDesigner:s,launchDesignerListener:u,launchPreviewListener:l,sendToken:d};function n(e,t){var n,i;r.designer||(n=t.origin,r.stopGuides(),r.buffers.lock(),i=t.source,Ca=i,r.designerv2.hostConfig||(o.store.dispatch("frames/leave"),a=r._.partial(s,i,n),o.Events.appUnloaded.on(a)),wb(),ja(t.source,{status:"success",type:"connect"},n),Ga("selection.js")&&(r.log("Designer Modules already loaded."),ja({type:"ready"},n)),o.Events.designerLaunched.trigger())}function s(e,t){r.buffers.unlock(),I.designer&&(I.designer=null,delete I.designer),e&&ja(e,{type:"unload"},t)}function d(e,t){var n;i&&(n={token:i,type:"pendo-designer-launch::set-token"},t.source.postMessage(n,t.origin),i=undefined)}function u(e,t){var n,t=t.data.token;t&&(i=t,Ma("pendo-designer-launch::get-token",d),n=t.DADesigner?"da-designer":"in-app-designer",n={lookaside:t.baseUrl,host:t.host,target:t.target||"latest",DADesigner:!!t.DADesigner,gcsBucket:t.gcsBucket||n,forceNativeDesigner:!!t.forceNativeDesigner,sidebarDesigner:!!t.sidebarDesigner},r.designerv2.launchInAppDesigner(n))}function l(e,t){var n=t.data.config.preferredAgentInstallType;n&&n!==we()?r.log("Skipping preview launch due to agent install type mismatch."):(n=r._.extend({},t.data.config,{origin:t.origin}),oo()&&(n.apiKey=r.apiKey),o.store.dispatch("preview/exitDesignerPreview"),o.store.dispatch("preview/start",n),Th(window)&&(t.source.postMessage({type:"pendo-preview::ready",apiKey:r.apiKey,accountId:r.accountId},t.origin),zm(),o.store.dispatch("frames/startPreview")))}}();const Ib="__sg__";Cb="promotedAgentMetadataConfigurations",xb=[],_b={},Tb={};var Eb,Cb,xb,_b,Tb,kb={name:"PromoteMetadata",initialize:function(e,t){if(xb=(Eb=t).ConfigReader.get(Cb),Tb={},Eb.agentStorage.registry.addLocal(Ib),kn())try{_b=JSON.parse(Eb.agentStorage.read(Ib))||{}}catch(n){Lb()}xb&&xb.length&&(Eb.Events.on("metadata",Ob),Eb.Events.on("eventCaptured",Pb),Eb.Events.on("identify",Nb))},teardown:function(){Eb.Events.off("metadata",Ob),Eb.Events.off("eventCaptured",Pb),Eb.Events.off("identify",Nb)},getPromotedMetadata:function(){return xb},hasPromotedMetadataKind:Rb,setSchemaGroup:Ob,getSchemaGroup:Ab,resetSchemaGroup:Mb,resetCachedSchemaGroup:Lb};function Rb(t){return C.some(xb,function(e){return e.kind===t})}function Ab(){return Tb}function Ob(e){var t;e?(e=e.data[0]["options"],e&&(t=e)):t=Tc(),Tb=function(r){if(kn())try{var e=Eb.agentStorage.read(Ib);_b=function(e){e=C.mapObject(e,(t,e)=>{const n={};return Object.keys(t).forEach(e=>{n[e.replace("agent__","")]=t[e]}),n});return e}(_b=e?JSON.parse(e):{})}catch(t){Lb()}var o=Tb;C.each(["visitor","account","parentAccount"],function(e){var t=Rb(e),n=!C.isEmpty(r[e]),i=e.toLowerCase()+"metadata";t&&(!C.isEmpty(_b)&&C.isEmpty(fs.get())&&(o[i]=Fb(_b[i],e)),n)&&(t=Fb(r[e],e),C.isEmpty(t)||(o[i]=Object.assign(Object.assign({},o[i]),t)))}),kn()&&Eb.agentStorage.write(Ib,JSON.stringify(o),undefined,!1,!0);return o}(t)}function Nb(e){e=e.data[0];C.get(e,"wasCleared")&&(Eb.agentStorage.clear(Ib),Mb())}function Mb(){Tb={}}function Lb(){_b={}}function Fb(e,i){var r={};return e&&C.each(e,function(e,t){var n=t.toLowerCase();Boolean(C.find(xb,function(e){return e.fieldName===n&&e.kind===i}))&&(r["agent__"+n]=e)}),r}function Pb(e){e=e.data[0];e&&(C.isEmpty(Tb)&&Ob(),C.isEmpty(Tb)||("track"===e.type?e.props.__sg__=Tb:(e.hasOwnProperty("eventProperties")||(e.eventProperties={}),e.eventProperties.__sg__=Tb)))}function Db(e,t,n){this.element=e,this.method="element"==t?"click":"hover"==t?"mouseover":t,this.step=n,this.guide=n.getGuide()}Db.prototype.add=function(){0===C.indexOf(this.guide.steps,this.step)&&!Db.shouldAttachHandler(this.guide,this.method)||tu(this.guide)&&!nu(this.guide)||this.setupElementEvent(this.element,this.method)},Db.prototype.remove=function(){this.teardownElementEvent(this.element,this.method)},Db.prototype.setupElementEvent=function(e,t){this.advanceFn||(this.advanceFn=C.compose(C.bind(this.teardownElementEvent,this,e,t),C.bind(this.step.advance,this.step))),Db.attach(this.step,e,t,this.advanceFn)},Db.prototype.teardownElementEvent=function(e,t){x.info("detach onGuideAdvanced",{contexts:["guide"]}),Ud(e,t,this.advanceFn,!0),this.step.removeTrigger(this)},Db.shouldAttachHandler=function(e,t){return!e.isActivatedByEvent(t)||cb.activates(e)||e.attributes.activation.selector!==e.steps[0].elementPathRule&&!!e.attributes.activation.selector};var Ub=null,Gb=function(){return ou()?eu:Qd},Bb=function(e){return"#_pendo_g_"+e.id},zb=function(e,t){Ub=null;var n,i,r,o,e=Wo(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(Gb()),o=Yb(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"}),k("._pendo-guide-container_",n).addClass(o.arrowPosition).css({top:o.content.top,left:o.content.left,width:o.content.width,height:o.content.height}),Hb(n[0],o),n[0])},Hb=function(e,t){var n=["top","right","bottom","left"],i="_pendo-guide-arrow-",r=i+"border-",o=t.arrowPosition,a=C.chain(n).filter(function(e){return e!==o}).map(function(e){return"border-"+e+"-width:"+I.TOOLTIP_ARROW_SIZE+"px;"}).value().join(""),s=k("div._pendo-guide-arrow_",e).remove().findOrCreate("<div class='_pendo-guide-arrow_'></div>"),d=k("div._pendo-guide-arrow-border_ ",e).remove().findOrCreate("<div class='_pendo-guide-arrow-border_'></div>");C.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;"),k(e).append(s).append(d)},jb=function(e,t){t===undefined&&(t=zd),e.element=du(e);var n=e.element;if(!n)return x.info("No element found for step: "+e.id),null;pa(n);var i=zb(n,e);return null===i?null:(i.id=I.getTooltipDivId(e),k(i).appendTo(au()),t.push(i),c(i,"mouseover",C.partial(k.addClass,i,"mouseover")),c(i,"mouseout",C.partial(k.removeClass,i,"mouseover")),cu(n,i),Kb(e),n)},Wb=null,qb=null;var Jb=null,Vb={top:"north",left:"east",bottom:"south",right:"west"},Kb=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=ul(n=n.concat(C.compact(C.flatten(C.map(t.additionalElements,function(e){return C.toArray(k(e))}))))),o={top:r=t.padding||0,left:r,bottom:r,right:r},s=dl(a=sl(),i,o),h=i,f=!C.isEqual(h,Wb),Wb=h,f||(c=a,p=!C.isEqual(c,qb),qb=c,p)||(u=s,l=!C.isEqual(u,Jb),Jb=u,l))&&(d={"z-index":t.zindex||1e4,position:"fixed"},t.bgColor&&(d["background-color"]=t.bgColor),t.opacity&&(d.opacity=t.opacity),C.each(s,function(e,t){t=Vb[t],e=C.extend({},e,d),t=k("div._pendo-guide-tt-region-block_._pendo-region-"+t+"_")[0]||$b(t),k(t).css(e)}))}catch(g){x.info("Failed to add BlockOut ui",{contexts:["error"]})}var u,l,c,p,h,f},$b=function(e){e=k(document.createElement("div")).addClass("_pendo-guide-tt-region-block_").addClass("_pendo-region-"+e+"_");k("body").append(e)},Zb=function(e){var t=C.isEqual(e,Ub);return Ub=e,!t},Yb=function(e,t,n,i){var r=I.TOOLTIP_ARROW_SIZE,o={arrow:{border:{}},content:{top:r,left:r}},a=zo();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=Xb(o,e,a,i=i||"auto"),o=Qb(o,e,a,i),o=e0(o,e,a)},Xb=function(e,t,n,i){return e.arrow.hbias=_l(t,n,i),e},Qb=function(e,t,n,i){var r;return i&&"DEFAULT"!=i&&"auto"!=i&&(e.arrowPosition=i),e.arrowPosition||(i=t.top-ho(),t=(r=t.left-fo())+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},e0=function(e,t,n){var i,r,o,a=e.height,s=e.width;return Ue()?Ge(e,t):("top"==e.arrowPosition||"bottom"==e.arrowPosition?(i=0,"top"==e.arrowPosition?(e.top=t.top+t.height,e.arrow.top=Ee(9,6)?6:2,i=-1):"bottom"==e.arrowPosition&&(e.top=t.top-a,e.arrow.top=a-I.TOOLTIP_ARROW_SIZE-1,e.arrow.top+=Ee(9,6)?6:0,e.arrow.top+=8==Ie?-1:0,i=1),r=10+I.TOOLTIP_ARROW_SIZE,o=s-3*I.TOOLTIP_ARROW_SIZE-10,e.arrow.hbias==El?(e.left=t.left+t.width/2-(10+2*I.TOOLTIP_ARROW_SIZE),e.arrow.left=r):e.arrow.hbias==Cl?(e.left=t.left-s+t.width/2+(10+2*I.TOOLTIP_ARROW_SIZE),e.arrow.left=o):(e.left=t.left+t.width/2-s/2,e.arrow.left=s/2-I.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==El?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=Ee(10,6)?5:0,e.arrow.border.left=e.arrow.left-1):e.arrow.hbias==Cl&&(e.left=Math.max(0,t.left-s),e.arrow.left=s-I.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=Ee(10,6)?5:0,e.arrow.left+=7==Ie&&6<=ke?1:0,e.arrow.border.left=e.arrow.left+1),e.top=t.top-a/2+t.height/2,e.arrow.top=a/2-I.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e)},t0=430,n0=200,i0=15;function r0(e){var t;return"tooltip"===this.type&&((t=this).attributes.height=t.attributes.height||I.TOOLTIP_DEFAULT_HEIGHT,t.attributes.width=t.attributes.width||I.TOOLTIP_DEFAULT_WIDTH,t.attributes.layoutDir=t.attributes.layoutDir||"DEFAULT",this.getTriggers=function(e){var t=this,n=t.element||du(t);return!n&&e?[]:(e=(t.advanceMethod||"").split(","),this.triggers=C.map(e,function(e){return new Db(n,e,t)}),this.triggers)},this.removeTrigger=function(e){this.triggers=C.without(this.triggers,e),0===this.triggers.length&&(this.triggers=null)},this.canShow=function(){return!Eg(t)&&!!e.canShowOnDevice()&&!t.isShown()&&t.canShowOnPage(Vg())&&xg(t)},this.after("render",function(){jb(this,this.elements)&&(C.each(this.getTriggers(),function(e){e.add()}),Tl.attachScrollHandlers(this,this.onscroll))}),this.reposition=function(){var e=this.attributes.width,t=this.attributes.height,n=this.attributes.layoutDir,i=this.guideElement,r=k("._pendo-guide-container_",i),o=Wo(this.element),t=Yb(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+"_"),k("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),Hb(i,t),i.css({top:t.top,left:t.left,height:t.height,width:t.width,position:o.fixed?"fixed":""}),this.dim=t,Kb(this)},this.onscroll=function(e){la(e.element)?(e.reposition(),Go(e.elements[0],"display:block")):Go(e.elements[0],"display:none")},this.teardownElementEvent=function(){C.each(this.triggers,function(e){e.remove()})},this.after("hide",function(){k("._pendo-guide-tt-region-block_").remove(),Jb=qb=Wb=null})),this}var o0=function(e,t){var n=!!k("._pendo-backdrop_")[0];return C.get(t,"overlayDiv[0]")||(t.overlayDiv=k(document.createElement("div")).addClass("_pendo-backdrop_")),!1==n&&(t.elements.push(t.overlayDiv[0]),t.overlayDiv.appendTo(au())),Ue()&&t.overlayDiv.css({height:"100%",width:"100%",position:"absolute"}),e&&k(t.overlayDiv).addClass("_pendo-onboarding_"),t.overlayDiv},a0=function(e){var t=e.guideElement,n=I.TOOLTIP_ARROW_SIZE,i=e.attributes.height,e=e.attributes.width,e=Math.floor(e/2),i=Math.floor(i/2);t.addClass("_pendo-guide-lb_").css({top:"50%",left:"50%","margin-top":-i,"margin-left":-e}),k("._pendo-guide-container_",t).css({bottom:n,right:n}),Ue()&&t.css({position:"absolute"})},s0=function(e,t){t===undefined&&(t=zd),e.element=du(e),a0(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=(o0(n,e),e.guideElement);t.push(n[0]),n.appendTo(au())},d0=function(e,t){t===undefined&&(t=zd),e.element=du(e),e.guideElement.addClass("_pendo-guide-mobile-lb_");var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=o0(n,e),e=e.guideElement,i=I.TOOLTIP_ARROW_SIZE,i=(e.css({width:"",height:""}),k("._pendo-guide-container_",e).css({bottom:i,right:i}));function r(e){e.preventDefault()}k("._pendo-close-guide_",e).remove().prependTo(i),e.appendTo(au()),t.push(e[0]),c(n[0],"touchmove",r),c(e[0],"touchmove",r)};function u0(){var e=this;return/lightbox/i.test(e.type)&&(e.attributes.height=e.attributes.height||I.LB_DEFAULT_HEIGHT,e.attributes.width=e.attributes.width||I.LB_DEFAULT_WIDTH,e.after("render",function(){(ou()?d0:s0)(e,e.elements)}),e.reposition=function(){ou()||e.guideElement.css({"margin-left":-Math.floor(e.attributes.width/2),"margin-top":-Math.floor(e.attributes.height/2)})}),e}var l0=500,c0="_pendo-guide-banner_";function p0(){var n=this;return"banner"===n.type&&(n.attributes.height=n.attributes.height||l0,n.attributes.position=n.attributes.position||"top",n.after("render",function(){var e=n.guideElement,t=I.TOOLTIP_ARROW_SIZE;e.css({width:""}).addClass(c0).addClass("_pendo-guide-banner-"+n.attributes.position+"_"),ru()||e.addClass("_pendo-in_"),k("._pendo-guide-container_",e).css({bottom:t,right:t}),n.element=du(n),n.elements.push(e[0]),e.appendTo(au())})),n}function h0(t){var n=this,e="whatsnew",i="_pendo-guide-whatsnew-seen_",r="active",o=1e3;return n.type===e&&(C.extend(n,{isShown:C.constant(!1),launch:d,onShown:d,render:function(){var e=n.guideElement,t=n.attributes.height;e&&e.html()||(e=k(document.createElement("div")).attr("id",Rg(n)).addClass("_pendo-guide-whatsnew_").html(n.getContent()),C.isNumber(t)&&!n.attributes.autoHeight&&e.height(t),n.seenState===r&&e.addClass(i),n.guideElement=e)},seen:s}),C.extend(t,{addToLauncher:function(){var e=n.guideElement;e&&!Zo(e[0])&&(k("._pendo-launcher_ #launcher-"+n.guideId).html("").append(e),Vu.runCustomScripts(n,t))},isReady:a}),n.after("show",s)),n;function a(){return!!n.guideElement}function s(){ru()||a()&&n.seenState!==r&&function(e){{var t,n;if(la(e,/(auto|scroll|hidden)/))return(t=ea(e))?(t=Yo(t),e=Yo(e),n=t.top+Math.floor(t.height/3),e.bottom<=t.bottom||e.top<=n):1}}(n.guideElement[0])&&(Pg(n.guideId,n.id,b(),e,t.language,{last_updated_at:n.lastUpdatedAt}),n.seenState=r,C.delay(function(){n.guideElement.addClass(i+" out")},C.isNumber(n.attributes.seenDelay)?n.attributes.seenDelay:o))}function d(){}}var f0="_pendo-launcher-searching_",g0="._pendo-launcher-search-box_ input";var m0,v0=function(e){return e&&C.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e&&e.launchMethod&&0<=e.launchMethod.indexOf("launcher")};function y0(){var e;return function(){var e;if(I.guideWidget)return(e=I.guideWidget.data)&&e.enableSearch}()&&(e=k(g0)[0])&&0<(e=e.value).length?(e=Ye.call(e),[].concat(C.compact(e.split(" ")))):[]}function b0(e){if(!f.get("disablePrefetch"))return y.all(C.map(e,function(e){return e.fetchContent()}))}function w0(e,t){return x.info("doing search on "+t,{contexts:["launcher","search","guides"]}),e=e||O,t&&0!==t.length?C.chain(e).filter(v0).map(function(e){return e.searchFor(t)}).compact().sortBy(function(e){return C.indexOf(["tag","name","content"],e.field)}).pluck("guide").value():e}var S0=function(){var e=Xd();if(hu()){if(I.guideWidget&&I.guideWidget.enabled){var t=A0(e),n=!0;if(I.guideWidget&&C.isFunction(I.guideWidget.update))I.guideWidget.update(t,n)}}else{B0();t=Jd(e),n=O0(A0(t));n!==m0&&g.dispatch("frames/changeGuideList",t),m0=n}},I0="launcher-closed",E0=null,C0=null,x0=!(Db.attach=function(e,t,n,i){if(e){for(var r=Db.handlers=Db.handlers||{},o=r[e.id]=r[e.id]||[],a=0;a<o.length;++a){var s=o[a];t===s[0]&&n===s[1]&&(Ud(t,n,s[2],!0),o.splice(C.indexOf(o,s),1),a--)}o.push([t,n,i]),Ud(t,n,i,!0),c(t,n,i,!0)}}),_0="_pendo-launcher-active_",T0=null,k0=function(){return""};function R0(e,t){k0=t}function A0(e){var t,e=C.filter(e||O,v0);return e=e,0===(t=y0()).length?e:(t=C.map(t,C.partial(w0,e)),C.union.apply(C,t))}function O0(e){return rt(C.map(e,function(e){var t=e.isWhatsNew()?[]:C.pluck(e.steps,"seenState");return{id:e.id,seenState:t}}))}function N0(e){var n=this,t=e.launchType||"badge",i=(C.extend(n,{show:function(){"badge"===t&&k(n.element).css("display: ;")},hide:function(){k(n.element).css("display: none;")},wrap:function(){var e=n.element;{var t;e&&/^img$/i.test(e.nodeName)&&(t=k(document.createElement("div")).addClass(e.className).append(e).appendTo(au()),e.className="",n.element=t[0])}},dispose:function(){k.removeNode(n.element)},setActive:function(e){e?k(n.element).addClass(_0):k(n.element).removeClass(_0)}}),e),e=i.position||"bottom-right",r=document.createElement("img");k(n.element=r).addClass("_pendo-launcher-badge_").addClass("_pendo-launcher-badge-"+e+"_"),i.launcherBadgeUrl&&(r.src=zu(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})},Ue()&&(c(r,"mouseover",function(e){k(r).addClass("_pendo-launcher-badge-active_")}),c(r,"mouseout",function(e){k(r).removeClass("_pendo-launcher-badge-active_")}),k(r).css({position:"absolute"})),au().appendChild(r)}function M0(e){function n(){return"element"===e.launchType&&e.launchElement?e.launchElement:"._pendo-launcher-badge_"}function t(e){var e=xr(e),t=n();k(e).closest(t).length&&(q0()?h.write(I0,"yes",864e6):I.guideWidget.position(e),$0())}I.guideWidget.removeCountBadge=function(){k("._pendo-launcher-whatsnew-count_").remove()},e&&e.elementMatch&&(e.launchElement=e.elementMatch.selection),C.extend(this,{getLauncherTarget:function(){return k(n())[0]},dispose:function(){Ud(document,"click",t),e&&e.whatsnew&&e.whatsnew.enabled&&k("._pendo-launcher-whatsnew-count_").remove()}}),c(document,"click",t)}function L0(){var n,s="bottom-right",d="bottom-left";return this.update=function(e,t){t=t?e:A0(e),e=O0(t)+rt(y0());return e!==n&&(n=e,this.updateLauncherContent(t)),U0(),0<t.length},this.updateLauncherContent=j0,this.guideStatus=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":"not-started"},this.render=function(){var e=this.data||{},t=(E0=new N0(e),e.height||310),n=(e.enableSearch&&(t+=Ue()?50:39),this&&!this.hidePoweredBy&&(t+=40),e.addHeight&&(t+=e.addHeight),this.height=t,e.width||330),i=(e.addWidth&&(n+=e.addWidth),this.width=n,k(document.createElement("div")).addClass("_pendo-launcher_")),r=(C0=i[0],Wo(E0.element)),r=Yb(r,t,n),o=(i.css({width:n,height:t}),I.TOOLTIP_ARROW_SIZE),n=k(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=H0(),o=zu(F0(this.template(t))),t=k(document.createElement("div")).addClass("_pendo-guide-content_").html(o).appendTo(n);e.addUISection&&e.addUISection(i[0]),ig(i[0],function(){V0(),h.write(I0,"yes",288e5)}),t.on("click",function(e){var t=k(xr(e)).closest("._pendo-launcher-item_");t&&t.length&&(t=N((t=/^launcher-(.+)$/.exec(Ye.call(t.attr("id"))))&&t[1]))&&!t.isWhatsNew()&&(Lg(t.steps[0],"launcher"),V0(),Gd(e))}),Ue()&&(k("._pendo-launcher-header_",i).css({padding:"10px","margin-right":"10px","margin-left":"10px"}),k("._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");k(this).css(e)}),i.appendTo(au()),C.isFunction(this.script)&&this.script(this),e.autoHeight&&e.autoHeight.enabled&&!Ee(9,6)&&(o=e.autoHeight.offset||100,i.css({height:"calc(100% - "+o+"px)",maxHeight:e.height,minHeight:e.height/2}),k("._pendo-guide-container_."+r.arrowPosition).css({maxHeight:e.height-30,minHeight:e.height/2-30,height:"calc(100% - 30px)"}))},this.position=function(e){var t,n,i,r,o,a;e&&(t=this.data,e=Wo(e),n=Yb(e,this.height,this.width),i=k(C0),"badge"===(r=t.launchType||"badge")?(o=t.position,C.indexOf(a=[s,d,"top-left","top-right"],t.position)<0&&(o=s),C.each(a,function(e){i.removeClass("_pendo-launcher-"+e+"_")}),i.addClass("_pendo-launcher-"+o+"_"),n.arrow=n.arrow||{},n.arrowPosition=C.contains([s,d],o)?"bottom":"top",n.arrow.hbias=C.contains([d,"top-left"],o)?"left":"right",n.arrow.floating=!1):"element"===r&&i.css({top:n.top,left:n.left,height:n.height,width:n.width,position:e.fixed?"fixed":"absolute"}),k("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),e0(n,e,{width:Infinity,height:Infinity}),Hb(i[0],n),i.find("._pendo-guide-container_").removeClass("top left bottom right").addClass(n.arrowPosition))},this.toggle=$0,this}function F0(e){return e=C.isString(e)?e.replace(/\s+(style)=/gi," pendo-style="):e}function P0(e,t){e.contentHostUrl&&(e.contentHostUrl=(n=e.contentHostUrl,i=location,(r=f.getLocalConfig("contentHost"))&&(n=(n=n.replace(/^pendo-static-\d+\.storage\.googleapis\.com$/,r).replace(/^pendo-\w+-static\.storage\.googleapis\.com$/,r).replace(/^cdn\.pendo\.io$/,r)).replace(/^https?:/,"").replace(/^\/\//,""),!/\./.test(n))&&!/^localhost/.test(n)&&/^\//.test(n)?i.host+n:n)),T0=new M0(e);var n,i,r=L0.create(I.guideWidget);return C.isFunction(r.template)||(r.template=e.template?C.template(e.template):k0),r.render(),r.position(T0.getLauncherTarget()),t&&r.toggle(),r}L0.create=function(e){return C.reduce(L0.behaviors,function(e,t){return t.call(e)},e)},L0.behaviors=[uh,L0,Pu.Launcher,function(){var t={text:"",highlight:function(e){return t.text?(e||"").replace(new RegExp(t.text,"gi"),"<strong>$&</strong>"):e},clear:function(){k(g0).each(function(){this.value=""})}};return this.data&&this.data.enableSearch&&this.data.enableSearch&&(this.data.search=t,I.disableGuideCenterContentSearch||this.before("update",b0),this.before("update",function(){t.text=y0().join(" ");var e=k("._pendo-launcher_");t.text?e.addClass(f0):e.removeClass(f0)})),this},function(){var n=this;{var i;n.data&&n.data.onboarding&&(i=n.onboarding=n.onboarding||{},n.before("update",function(e){var e=C.filter(e,wy),t=C.filter(e,function(e){return"complete"==n.guideStatus(e)}),e=i.total=e.length,t=(i.percentComplete=0<e?Math.round(t.length/e*100):0,k("._pendo-launcher_,._pendo-launcher-badge_"));e?(t.addClass("onboarding"),t.addClass("_pendo-launcher-onboarding_")):(t.removeClass("onboarding"),t.removeClass("_pendo-launcher-onboarding_"))}),n.getOnboardingState=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":e.isNotStarted()?"not-started":null})}return n},function(){var n=this,i=k(document.createElement("div")).addClass("_pendo-launcher-whatsnew-count_");n.data&&n.data.whatsnew&&n.data.whatsnew.enabled&&(n.before("updateLauncherContent",function(e){e=C.filter(e,function(e){return e.isWhatsNew()});e.sort(t),n.data.whatsnew.total=e.length,n.data.whatsnew.guides=e}),n.after("update",function(e){var t=n.data.whatsnew.guides,t=(C.each(t,function(e){e.show()}),C.find(t,function(e){if(!e.isReady())return!0;e.addToLauncher()}),C.filter(t,function(e){return"active"!==e.steps[0].seenState}).length);t!==n.data.whatsnew.unseenCount&&(i.html(t).css({display:t?"":"none"}),n.data.whatsnew.unseenCount=t,k("span._pendo-launcher-whatsnew-count_").text(n.data.whatsnew.unseenCount))}),n.after("render",function(){z0()?i.appendTo(this.data.launchElement):(E0.wrap(),i.appendTo(E0.element))}));return n;function t(e,t){var n=function(e,t){e=e.showsAfter||e.publishedAt||0;return(t.showsAfter||t.publishedAt||0)-e}(e,t);return 0===n?(t=t,e=(e=e).name.toLowerCase(),(t=t.name.toLowerCase())<e?1:e<t?-1:0):n}}];var D0=function(){C0&&(k.removeNode(C0),C0=null),T0&&(T0.dispose(),T0=null),E0&&(E0.dispose(),E0=null)},U0=function(){(!z0()&&(J0()||0<y0().length)?G0:B0)()},G0=function(){E0&&E0.show()},B0=function(){z0()||V0(),E0&&E0.hide()},z0=function(){return!(!I.guideWidget||!I.guideWidget.data||"element"!==I.guideWidget.data.launchType)},H0=function(e){var t=Tc(),t=C.extend({hidePoweredBy:!1,guides:[],guide:{},step:{},metadata:nt(t)},I.guideWidget);return t.data=C.extend({},t.data),e&&(t.guides=e),t};function j0(e){var t=I.guideWidget.template||k0,e=H0(e),e=k(document.createElement("div")).html(F0(t(e))),n=e.find("._pendo-launcher-guide-listing_"),t=e.find("._pendo-launcher-footer_").html(),e=e.find("._pendo-launcher-search-results_").html();k("._pendo-launcher_ ._pendo-launcher-guide-listing_").each(function(e,t){k(e).html(n.eq(t).html())}),k("._pendo-launcher_ ._pendo-launcher-footer_").html(t),k("._pendo-launcher_ ._pendo-launcher-search-results_").html(e)}var W0=C.compose(U0,function(e,t){var n,i,r,o;v0(e)&&(n=k("._pendo-launcher_ ._pendo-launcher-guide-listing_")[0])&&(e=(o=k("#launcher-"+e.id)).length?o[0]:(e=e,k(i=document.createElement("div")).addClass("_pendo-launcher-item_"),k(i).attr("id","launcher-"+e.id),(r=document.createElement("a")).href="#",r.innerHTML=e.name,i.appendChild(r),i),o=0<o.length,C.isNumber(t)&&(r=k("._pendo-launcher-item_"))[t]?e.id!=r[t].id&&n.insertBefore(e,r[t]):n.appendChild(e))}),q0=function(){return k(C0).hasClass(_0)},J0=function(){return 0<k("._pendo-launcher-item_").length},V0=function(){var e;C0&&(e=k(C0))&&e.hasClass(_0)&&(e.removeClass(_0),E0)&&E0.setActive(!1)},K0=function(){var e;C0&&(e=k(C0))&&!e.hasClass(_0)&&(e.addClass(_0),E0)&&E0.setActive(!0)},$0=function(){C0&&!x0&&(q0()?V0:K0)()};var Z0=function(){try{var e=I.guideWidget||{},t=e.data||{},n=t.device||{desktop:!0,mobile:!1,iframe:!1};D0(),!ou()&&!n.desktop||ou()&&!n.mobile||Wa()&&!n.iframe||e.enabled&&(P0(t),B0())}catch(i){x.critical("ERROR while initializing launcher",{error:i})}},Y0=function(e){e.defaultLauncher=R0,e.toggleLauncher=$0,e.showLauncher=K0,e.hideLauncher=V0,e.removeLauncher=D0,e.initLauncher=Z0,e.createLauncher=P0,e._addGuideToLauncher=W0,e.launcherToolTipDiv=C0},X0=function(){Z0()},Q0=function(){var e;(e=I).designer&&(e.designer.createLauncher=P0,e.designer.removeLauncher=D0,e.designer.addGuideToLauncher=W0,e.designer.updateLauncherContent=j0)},ew=function(){var e;(e=I).debugging&&(e.debugging.getLauncherGuides=A0)},tw=function(e){return i=I.guideWidget,e=e,r=i&&i.data,e=C.filter(e,function(e){e=C.first(e.steps);return e&&"launcher"===e.type}),(e=C.first(C.sortBy(e,function(e){return-e.lastUpdatedAt})))&&r&&(e=C.first(e.steps),C.extend(r,C.pick(e,"contentUrl","contentUrlCss","contentUrlJs"),e.attributes),C.defaults(r,{whatsnew:{},knowledgebase:{}}),r.id=e.guideId+e.id),n=(t=i)&&t.data||{},!0!==f.get("preventCodeInjection")&&(n.contentUrlJs||n.contentUrl)?Tu.verify(n).then(function(){return ju.load(n)}).then(function(e){return n.template=e.content,C.extend(t,e)}):y.resolve();var t,n,i,r},nw=function(e,t){Y0(e),t.Events.on("guidesLoaded",X0),t.Events.on("designerLaunched",Q0),t.Events.on("debuggerLaunched",ew),t.GuideLoop.addUpdatePhase(S0),pm.push(tw),t.agentStorage.registry.addLocal(I0)},iw=function(e,t){var n;n=tw,0<=(n=C.indexOf(pm,n))&&pm.splice(n,1),t.GuideLoop.removeUpdatePhase(S0),t.Events.off("guidesLoaded",X0),t.Events.off("designerLaunched",Q0),t.Events.off("debuggerLaunched",ew)};$m.Extensions.API.addTopic("Launcher",{addBehavior(e){L0.behaviors.push(e)}});var rw,ow,aw,sw={name:"P1Guides",initialize:function(e,t){var n;ow=t,rw=e.dom,aw=[r0,u0,p0,h0,lw,cw,uw,dw],-1<C.indexOf(Bu.behaviors,r0)||(n=C.indexOf(Bu.behaviors,xy),Bu.behaviors.splice.apply(Bu.behaviors,[n,0].concat(aw)),t.Events.guideLoopStopped.on(B0),e.TOOLTIP_DEFAULT_WIDTH=t0,e.TOOLTIP_DEFAULT_HEIGHT=n0,e.TOOLTIP_ARROW_SIZE=i0,e._showElementGuide=jb,e._createTooltip=zb,e._get_tooltip_dimensions=Yb,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e._showLightboxGuide=s0,nw(e,t))},teardown:function(){iw(0,ow),ow.Events.guideLoopStopped.off(B0),aw.forEach(e=>{e=C.indexOf(Bu.behaviors,e);0<=e&&Bu.behaviors.splice(e,1)}),aw=[]}};function dw(){const o=this;return"tooltip"!==o.type||o.domJson||(o.checkPlacement=function(){var e,t,n,i,r;e=o,r=Wo(e.element||du(e)),Kb(e),Zb(r)&&(n=e.attributes.height,i=e.attributes.width,t=e.attributes.layoutDir,n=Yb(r,n,i,t),(i=k(Bb(e))).css({top:n.top,left:n.left,position:r.fixed?"fixed":""}),Hb(i,n))}),o}function uw(){var i=this;return i.attributes&&i.attributes.autoHeight&&(i.after("render",function(){i.guideElement&&i.guideElement.length&&(i.resize(),i.attachEvent(i.guideElement[0],"load",function(){i.resize()}))}),i.resize=function(){var e,t=I.TOOLTIP_ARROW_SIZE,n=i.guideElement;n&&(e=rw("._pendo-guide-container_",n),"tooltip"==i.type||Ue()&&"lightbox"==i.type?e.css({width:i.attributes.width-2*t,height:""}):e.css({right:t,bottom:""}),i.attributes.height=e.height()+2*t,n.height(i.attributes.height),i.reposition())}),i}function lw(e){var t=this;return t.domJson||t.domJsonpUrl||t.after("render",function(){t.guideElement&&t.guideElement.length&&ig(t.guideElement[0],function(){e.isOnboarding()&&!confirm("Are you sure you want to stop this tutorial?")||vg(t)})}),t}function cw(){var e=this;return e.hideCredits||e.domJson||e.domJsonpUrl||iu(e.guide)||e.after("render",function(){Ig(e.guideElement[0])}),e}var pw,hw,fw={name:"Branding",initialize:function(e,t){pw=e,(hw=t).ConfigReader.get("isPendoFree")&&hw.Events.on("guideSeen",gw)},teardown:function(){hw.Events.off("guideSeen",gw)},addBranding:mw};function gw(e){mw(pw,e)}function mw(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",io()+"/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))}var vw,yw=function(){let r;var o,n,i;const a="automation",e=250,t=500,s=0,d=10;return{name:"ActionAutomation",automationQueue:void 0,initialize:function(e,t){o=e,n=t,r=o._,this.automationQueue=[],t.EventRouter.registerAction(a,e._.bind(u,this))},teardown:function(){n.EventRouter.deregisterAction(a),this.automationQueue=[]},guideActivity:u,getAutomationFromGuide:function(i,e){return r.reduce(e,function(e,t){var n=r.find(i,function(e){return e.id===t});return n?e.push(n):o.log("could not find automation for "+t,"debug"),e},[])},getAutomationConfigs:function(e){if(!e||e.length<=0)return[];if(!i)return[];var t=i.guide,n=i.step;if(!t||!n)return[];n=t.automations;if(!n||!n.length)return[];n=this.getAutomationFromGuide(n,e),e=n[n.length-1];if(this.isAutomationInQueue(e))return o.log("Automation is already in queue autoId: "+e.id+", guideId: "+t.id,"debug"),[];return n},getTarget:function(e){e=e.target.elementPathRules,e=o.Sizzle(e,document);return e&&e[0]},getElement:function(n,i=d){return new $t(r.bind(function(t){return Ut(r.bind(function(){var e=this.getTarget(n);e&&!e.disabled||i<1?t(e):this.getElement(n,i-1).then(function(e){t(e)})},this),e)},this))},getValue:function(e){return e.value},injectText:function(e,t){let n;"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;t=new InputEvent("input",{bubbles:!0,data:t[t.length-1]}),t.simulated=!0,e.dispatchEvent(t),t=new InputEvent("change",{bubbles:!0});t.simulated=!0,e.dispatchEvent(t)},simulateClick:function(e){e.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0,cancelable:!0})),e.click()},isAutomationInQueue:function(t){return!!r.find(this.automationQueue,function(e){return t.id===e.id})},popQueue:function(){let e=s;const n=this.automationQueue[0];"autoclick"===n.type&&(e=t);return Ut(r.bind(function(){return this.getElement(n,d).then(r.bind(function(e){if(e)if(e.disabled)this.automationQueue=[],o.log("automation target found but disabled. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug");else{switch(n.type){case"autofill":var t=this.getValue(n);this.injectText(e,t);break;case"autoclick":this.simulateClick(e)}this.automationQueue.shift(),this.automationQueue.length&&this.popQueue()}else this.automationQueue=[],o.log("automation target element not found. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug")},this))},this),e)},setActive:function(e){i=e}};function u(e){var t;e.step&&(this.setActive({guide:e.step.guide,step:e.step}),e.params)&&((e=r.find(e.params,function(e){return"automationIds"===e.name&&r.isArray(e.value)&&e.value.length}))?(e=this.getAutomationConfigs(e.value),t=!this.automationQueue.length,this.automationQueue=this.automationQueue.concat(e),t&&this.popQueue()):o.log("no automation ids were found","debug"))}}();function bw(e,i){return"undefined"!=typeof Proxy&&C.isFunction(i)?new Proxy(e,{get(e,t){if("textContent"===t)return i(e);if("parentNode"===t){var n=e[t];if(e.ownerDocument!==n)return bw(e[t],i)}return C.isFunction(e[t])?function(){return e[t].apply(e,arguments)}:e[t]}}):e}const ww=function(){let n,c,p,h,t;const i=qn(function(n){{var e;p.eventProperties&&p.eventProperties.length&&(e=function l(i){var r=h.ConfigReader.get("eventPropertyMatchParents");var e=v();var t={};var n;for(var o=0;o<p.eventProperties.length&&v()-e<50;o++){n=p.eventProperties[o];var a=p._.any(n.featureRules,function(e){try{var t=f(r,c);return t(i,e)}catch(n){return!1}});if(a)for(var s=0;s<n.eventPropertyRules.length&&v()-e<50;s++){var d=n.eventPropertyRules[s];if(!d.name)return;t[d.name]=m(d,i)}}var u=v()-e;if(50<u){if(r&&c===p._.identity&&p._.isFunction(p.getText))return p.log("switching event property collection to fast text implementation"),c=function(e){return bw(e,function(e){return p.getText(e,128)})},l(i);g(50,n)}return t}(n.target),p._.pairs(e).forEach(([e,t])=>{n.addEventProperty(e,t)}))}}),r=qn(function(){var e={};if(n)return{};var t=h.ConfigReader.get("eventPropertyConfigurations");if(!t||p._.isEmpty(t))return{};if(e=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=m(t);o&&(i["_pendo_"+t.name]=o)}50<v()-n&&g(50,t);return i}(t),p._.isEmpty(e))return{};return e});return{name:"EventProperties",initialize:function(e,t){p=e,h=t,c=p._.identity,n=!1,p.getEventPropertyTarget=s,p.previewEventProperty=m,h.Events.onClickCaptured.off(o),h.Events.onClickCaptured.on(o),h.Events.ready.on(a)},teardown:function(){h.Events.onClickCaptured.off(o),h.Events.ready.off(a),h.store.dispatch("location/removeInternalTransforms",t),t=[],h.store.dispatch("location/stopPolling")},collectClickEventProperties:i,collectEventProperty:m,collectPageEventProperties:r,getEventPropertyTarget:s,addPageEventProperties:a};function f(e,n){return e?function(e,t){return 0<p.dom(n(e)).closest(t).length}:function(e,t){return p.Sizzle.matchesSelector(e,t)}}function o(e){i(e.data[0])}function a(){var e;t=(e=h.ConfigReader.get("eventPropertyConfigurations"))&&!p._.isEmpty(e)?[new Qv("search","AddTo",function(){return r()})]:[],h.store.dispatch("location/addInternalTransforms",t),0<t.length&&h.store.dispatch("location/startPolling")}function g(e,t){p.log("event property collection disabled; collection took greater than "+e+" milliseconds.");e="ERROR event property collection exceeded time limit.";t.featureId?e+="\n For feature with id: "+t.featureId:e+="\n For page event with name: "+t.name,h.log.critical(e),t.featureId?p.eventProperties=[]:n=!0}function m(e,t){if(e.path)return t=s(e,t),p._.get(t,e.path,undefined)}function s(e,t){e=e.source||e.selector;if(e&&t){for(var n,i=e,r=t;!n&&r;){try{if((n=p.Sizzle.matchesSelector(r,i)?r:p.Sizzle(i,r)[0])&&("password"===n.type||"hidden"===n.type))return}catch(o){return}r=Yn.getParent(r)}return n}return e?!(t=p.Sizzle(e)[0])||"password"!==t.type&&"hidden"!==t.type?t:void 0:window}}();function Sw(){var e;ch().enabled&&(g.commit("debugger/debuggingEnabled",!0),Iw(),k("#pendo-client-debugger").length||(e=f.get("agentDebuggerPluginLoader"),$m.restartDebugger?$m.restartDebugger():"function"==typeof e?e():((e=document.createElement("script")).src=$(I).createScriptURL(ro("debugger-plugin.min.js")),e.setAttribute("id","pendo-debugger-plugin"),f.get("pendoGlobalKey")&&e.setAttribute("data-pendo-global-key",f.get("pendoGlobalKey")),k.getBody().appendChild(e)),m.debuggerLaunched.trigger()))}function Iw(){vw=vw||{store:g,ConfigReader:f,getState(){return JSON.stringify(g.state)},getEventCache(){return[].concat(Ka)},getAllGuides(){return[].concat(O)},getAutoGuides(){return Dp.sortAndFilter(O,I.autoOrdering)},getBadgeGuides(){return C.filter(O,tu)},getLauncherGuides(){return[]},getEventHistory(){return[]},getAllFrames(){return g.getters["frames/allFrames"]()},getChannelType(){return g.getters["frames/channelType"]()},isStepShownInFrame(e,t){return g.getters["frames/isShownInFrame"]()(e,t)},setActiveGuides:Vd,getBody:k.getBody,isMobileUserAgent:De.isMobileUserAgent,areGuidesDelayed:Am,doesElementMatchContainsRules:Tg,getMetadata:Tc,isStagingServer:ie,AutoDisplay:Dp,isLeader:hu,Events:m},I.debugging=vw}function Ew(e){if(ph())return e?t:"debugging already enabled";if(!hu())return;const t=ch();return t.enabled=!0,h.write(lh,JSON.stringify(t),null,!0),Sw(),e?t:"debugging enabled"}function Cw(){if(!ph())return"debugging already disabled";g.commit("debugger/debuggingEnabled",!1);var e=ch();return e.enabled=!1,h.write(lh,JSON.stringify(e),null,!0),I.debugging=null,delete I.debugging,k("#pendo-client-debugger").remove(),"debugging disabled"}C.extend(function(e){x.debug(e,{contexts:["debug"]})},vw);const xw=(e,t,n)=>{if(t.getters["frames/leaderExists"]())return n.resolve();const i=n.defer();return e.on("leaderChanged",()=>{i.resolve()}),i.promise},_w=function(){let t,o;return{name:"DebuggerLauncher",initialize:function(n,e){const{Events:i,q:r}=e;o=e.store,xw(i,o,r).then(()=>{o.dispatch("debugger/init"),o.getters["frames/isLeader"]()&&Sw()}),Ma("pendo-debugger::launch",(e,t)=>{e.config.apiKey===n.apiKey&&xw(i,o,r).then(()=>{t.source.postMessage({type:"pendo-debugger::ready",apiKey:n.apiKey},t.origin),!ph()&&o.getters["frames/isLeader"]()&&Ew(!1)})}),window.addEventListener&&window.addEventListener("securitypolicyviolation",a);(t=n).isDebuggingEnabled=(e=!1)=>ph(e),n.enableDebugging=Ew,n.disableDebugging=Cw,n.addDebuggingFunctions=Iw},teardown:function(){La("pendo-debugger::launch"),window.removeEventListener("securitypolicyviolation",a),t.debugging&&t.debugging.teardown&&t.debugging.teardown();Cw()}};function a(e){var{blockedURI:e,documentURI:t,originalPolicy:n,violatedDirective:i}=e;e&&-1!==e.indexOf("pendo")&&o.dispatch("debugger/onCspError",{blockedURI:e,documentURI:t,originalPolicy:n,violatedDirective:i})}}(),Tw=function(){let i,a=0,s,d,u,l,c=[];const p=100,h=9;let f;const o=4,g=500,m=["TEXTAREA","INPUT"];let v=!0,y={},n,b,r;const w="previous_page_loads";let S;const I="errorClickLogging",E=1500;let C=!1;return{name:"FrustrationEvent",initialize:function(e,t){S=e,l=S._,i=t,a=0,c=[],f=[],y={},C=i.ConfigReader.get(I),this.detachErrorEvent=i.attachEvent(window,"error",L,!0),this.detachDocumentEvents=function(){var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange","visibilitychange","selectionchange","scroll"],t=[];for(var n=0;n<e.length;n++)switch(e[n]){case"selectionchange":t.push(i.attachEvent(window,e[n],T,!0));break;case"visibilitychange":t.push(i.attachEvent(window,e[n],()=>{_(250)},!0));break;default:t.push(i.attachEvent(window,e[n],_,!0))}return t}(),i.Events.on("eventCaptured",P),i.agentStorage.registry.addSession(w),S.sniffer.MutationObserver&&(e=ut("MutationObserver"),(n=new e(k)).observe(S.dom.getBody(),{childList:!0,attributes:!0,subtree:!0}))},teardown:function(){i.Events.off("eventCaptured",P),this.detachErrorEvent&&(this.detachErrorEvent(),this.detachErrorEvent=null);if(this.detachDocumentEvents){for(var e=0;e<this.detachDocumentEvents.length;e++)this.detachDocumentEvents[e]();this.detachDocumentEvents=null}n&&n.disconnect()},addErrorClickLog:O,getErrorEventTarget:M,checkErrorEvent:L,observeDOMMutation:k,checkFrustrationEvent:P};function x(t="undefined"==typeof performance||"function"!=typeof performance.now?Infinity:performance.now()){(c=l.filter(c,e=>t-e.timestamp<=p)).length&&Ut(x,p)}function _(e=g){v=!1,l.each(y,e=>{clearTimeout(e)}),y={},Ut(()=>{v=!0},e)}function T(){var e=document.getSelection().toString();(b||e.length)&&(_(),b=!!e.length)}function k(e){e.length&&_()}function t(e){return e&&!(e instanceof HTMLScriptElement&&e instanceof HTMLLinkElement&&e instanceof HTMLBodyElement)}function R(e){return e&&t(e.element)}function A(e,t){var{frustrationTypes:n=[]}=e;l.contains(n,t)||(n.push(t),e.frustrationTypes=n)}function O(e,t){let n;var{detail:i={}}=t;(n=(R(i)&&i.error?i.error:t).message)&&n.length>E&&(n=n.substring(0,E)),e.errorClickLog=n}function N(e,t){var n=t.target&&"A"===t.target.tagName&&t.target.hasAttribute("href"),i=t.target&&!l.contains(m,t.target.tagName);if(v&&!b&&i&&!n){var r=e;const o=Ut(()=>{delete y[o],A(r,"deadClick")},g);y[o]=o}c.length>h&&c.pop(),c.unshift({target:t.target,activeElement:document.activeElement,browser_time:e.browser_time,timestamp:t.timeStamp}),Ut(x,p),l.each(f,e=>{L(e)}),s?(i=t,e.browser_time-s<=1e3&&Math.abs(d-i.x)<=30&&Math.abs(u-i.y)<=30?a++:(a=1,d=t.x,u=t.y),s=e.browser_time,4===a&&(s=null,A(e,"rageClick"))):(s=e.browser_time,d=t.x,u=t.y,a=1)}function M(e){if(t(e.target))return{detail:e={}}=e,R(e)?e.element:t(document.activeElement)?document.activeElement:void 0}function L(t){const n=M(t);if(n){const i=l.find(c,e=>(e.target===n||e.activeElement===n)&&t.timeStamp-e.timestamp<p);if(i){const r=e=>e.browser_time===i.browser_time&&"click"===e.type;var e=l.find(S.buffers.events,r)||l.find(S.buffers.silos,e=>l.find(e,r));e&&(A(e,"errorClick"),C)&&O(e,t)}else l.contains(f,t)||f.push(t),f.length>o&&f.pop()}}function F(e){r=function(){let e=i.sessionStorage.getItem(w);return null!=e&&0<e.length&&(e=JSON.parse(e)),l.isArray(e)?e:[]}(),function(e){var t,n;if(!(r.length<2))return t=r[0],n=r[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}(e)&&A(e,"uTurn"),2===r.length&&r.shift(),r.push({url:e.url,browser_time:e.browser_time}),e=r,i.sessionStorage.setItem(w,JSON.stringify(e))}function P(e){var t=e.data[0],e=e.data[1],e=("click"===t.type&&e&&N(t,e),"load"===t.type&&F(t),"submit"!==t.type&&"change"!==t.type||_(),l.has(e,"target")&&l.contains(m,e.target.tagName));"focus"===t.type&&e&&_()}}(),kw=function(){let n,i,o;const a=[];let e=[];return{name:"EmbeddedGuides",activeEmbeddedGuides:a,initialize:function(e,t){n=t,i=e,o=i._,function(e){e.getEmbeddedGuides=Rw,e.getActiveEmbeddedGuides=Aw}(e),n.Events.on("deliverablesLoaded",d),n.Events.on("guideLoopStopped",s),n.Events.on("guideListChanged",h),n.Events.on("urlChanged",u),n.GuideLoop.addUpdatePhase(r),n.guides.addProcessor(l),n.GuideActivity.registerGuideResolver(p),this.removeResizeEvent=e.attachEvent(window,"resize",c)},teardown:function(){d(),n.Events.off("deliverablesLoaded",d),n.Events.off("guideLoopStopped",s),n.Events.off("guideListChanged",h),n.Events.off("urlChanged",u),n.GuideLoop.removeUpdatePhase(r),n.guides.removeProcessor(l),n.GuideActivity.removeGuideResolver(p),this.removeResizeEvent&&this.removeResizeEvent();e.length=0}};function r(){o.forEach(a,function(e){e.process()})}function s(){o.forEach(a,function(e){e.isShownInThisFrame()&&e.hide()})}function d(){e=o.toArray(a),n.guides.removeDisplayableGuides("embeddedGuides"),a.length=0}function u(){o.forEach(a,function(e){e.forceShowFirstStep=!!o.get(e,"attributes.restartOnReload")})}function l(t){var e;return!(e=t)||!e.launchMethod||"embed"!==e.launchMethod||(o.some(a,({id:e})=>e===t.id)||a.push(t),!1)}function c(){Lm()||o.forEach(a,function(e){e=e.getActiveStep();e&&!i.ignoreResize&&e.redraw()})}function p(n){if(a.length){var i="pendo-base-";if(o.isString(n.id)&&0===n.id.indexOf(i)){var r=n.id.substring(i.length);let e,t;return(e=o.find(a,e=>{t=o.find(e.steps,e=>{if(e.id===r)return e});return!!t}))&&t?{guide:e,step:t}:null;return}else return o.isObject(n.parentElem)?p(n.parentElem):null}return null}function h(){o.each(e,function(t){var e=o.findIndex(a,function(e){return e.id===t.id});-1===e&&t.isShownInThisFrame()?t.hide():t.isFrameProxy||(a[e]=t)}),e.length=0,n.guides.registerDisplayableGuides("embeddedGuides",a),o.map(a,function(e){!function({globalPendo:o,pluginApi:e}){const a=o["_"],i=e["store"],r=(this.process=function(){let e=null;var t,n=a.get(this,"attributes.embedConfig.selector"),i=a.get(this,"attributes.embedConfig.method"),n=a.first(o.Sizzle(n)),r=this.isShownInThisFrame();n&&r&&(t="#pendo-guide-container-"+a.get(this.getActiveStep(),"id"),e=!!o.Sizzle(t,n).length),!r&&n&&this.shouldAutoDisplay()?"replace"===i&&o.Sizzle('[id^="pendo-guide-container"]',n).length||this.show("embed"):!r||n&&e||this.hide()},this.getActiveStep=function(){return this?a.find(this.steps,function(e){return e.isShown()}):null},this.shouldAutoDisplay=function(){return this.shouldShowSnoozedGuide()||this.shouldRepeatGuide()||a.all(this.steps,function(e){return e.shouldRepeat()||!e.isSnoozed()&&"dismissed"!==e.seenState})},this.show=function(e){var t,n=a.first(this.steps);return this.forceShowFirstStep?(this.forceShowFirstStep=!1,n.show("reason")):(t=this.steps.map(e=>a.get(i,"state.guideState.steps."+e.id,r(e))),(t=a.max(t,function({time:e}){return e}))&&"advanced"==t.state&&!t.destinationStepId?this.findStepById(t.guideStepId).dismiss():(this.nextStep(t)||n).show(e))},this.hasOwnProperty("forceShowFirstStep")||(this.forceShowFirstStep=a.get(this,"attributes.restartOnReload")),this.isShownInThisFrame=function(){return a.any(this.steps,function(e){return e.isRendered()||e.isLocked()})},({id:e,guideId:t,seenReason:n,seenState:i,lastSeenAt:r,destinationStepId:o})=>({guideId:t,guideStepId:e,seenReason:n,state:i,time:r,destinationStepId:o}))}.call(e,{globalPendo:i,pluginApi:n}),o.map(e.steps,function(e){!function({pluginApi:n}){if(this._onShown||Object.defineProperty(this,"_onShown",{value:this.onShown,writable:!1,configurable:!1}),!this._onShown)return null;this.onShown=function(e){var t=!this.lastSeenAt||!!n.ConfigReader.get("enableAllEmbeddedGuideEvents");return this._onShown(e,t)}}.call(e,{pluginApi:n,_:o})})})}}();function Rw(){return kw.activeEmbeddedGuides}function Aw(){return kw.activeEmbeddedGuides.filter(e=>e.isShown())}const Ow="sessionId";class Nw{constructor(){this.name="SessionManager"}initialize(e,t){this.api=t,this.pendo=e,this.subscriptions=[this.api.attachEvent(this.api.Events,"eventCaptured",C.bind(this.eventCaptured,this))],this.inactivityDuration=this.api.ConfigReader.get("inactivityDuration",18e5),this.api.agentStorage.registry.addLocal(Ow),this.suffix=this.api.ConfigReader.get("identityStorageSuffix")}teardown(){C.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0}isExpired(e,t){e=C.get(e,"timestamp");return!this.pendo._.isNumber(e)||t-e>this.inactivityDuration}eventCaptured(t){if(t&&t.data&&t.data.length){var t=t.data[0],n=t.browser_time||(new Date).getTime();let e=this.sessionInfo();this.isExpired(e,n)&&(e=this.clearSessionInfo(),this.api.Events.sessionChanged.trigger()),this.storeLastInteractionEventInformation(e,n),t.sessionId=e.sessionId}}sessionInfo(e=this.pendo.randomString(16)){let t=this.api.agentStorage.read(Ow,!1,this.suffix)||this.api.agentStorage.read(Ow);return t||(t=JSON.stringify({sessionId:e,timestamp:(new Date).getTime()}),this.api.agentStorage.write(Ow,t,undefined,!1,!0,this.suffix)),JSON.parse(t)}clearSessionInfo(){return this.api.agentStorage.clear(Ow),this.api.agentStorage.clear(Ow,!1,this.suffix),this.sessionInfo()}storeLastInteractionEventInformation(e,t){e.timestamp=t,this.api.agentStorage.write(Ow,JSON.stringify(e),undefined,!1,!0,this.suffix)}}var Mw=new Nw;function Lw(e,t,s,d){return new(s=s||$t)(function(n,i){function r(e){try{a(d.next(e))}catch(t){i(t)}}function o(e){try{a(d["throw"](e))}catch(t){i(t)}}function a(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,o)}a((d=d.apply(e,t||[])).next())})}class Fw{constructor(){this.name="SegmentFlags"}initialize(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))}teardown(){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))}handleReady(){this.ready=!0,this.requestSegmentFlags()}requestSegmentFlags(){if(this.ready){var 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");let e=this.api.transmit.buildBaseDataUrl(n,this.pendo.apiKey,t);var r,n=this.api.agent.getJwtInfoCopy();try{e.length>this.api.constants.URL_MAX_LENGTH||!this.pendo._.isEmpty(n)?(delete t.jzb,e=this.api.transmit.buildBaseDataUrl("segmentflag.json",this.pendo.apiKey,t),r=this.pendo._.extend({events:i},n),this.postLoad(e,r)):"script"===this.pendo.LOADER?this.scriptLoad(e):this.getLoad(e)}catch(o){this.api.log.error("Failed to load segment flags",{error:o})}}}segmentsPayload(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)}scriptLoad(e){this.pendo.loadResource(e,this.pendo._.noop)}getLoad(t){return Lw(this,void 0,void 0,function*(){var e=yield this.pendo.ajax.get(t);this.segmentsPayload(e.data)})}postLoad(t,n){return Lw(this,void 0,void 0,function*(){var e=yield this.pendo.ajax.postJSON(t,n);this.segmentsPayload(e.data)})}}var Pw=new Fw;const Dw=["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"],Uw=new RegExp(`(${Dw.join("|")})`,"i"),Gw=["facebook","twitter","x","linkedin","instagram","pinterest","tiktok","snapchat","twitch","reddit","quora","tumblr","flickr","discord","twitch","whatsapp","telegram","weibo","qq","line"],Bw=new RegExp(`(${Gw.join("|")})`,"i"),zw=["youtube","vimeo","dailymotion","bilibili","youku","tencent","iqiyi","peertube","rutube","metacafe","veoh","break","vidyard","wistia","brightcove","jwplayer","kaltura","sproutvideo"],Hw=new RegExp(`(${zw.join("|")})`,"i"),jw=["amazon","ebay","walmart","etsy","shopify","shop","target","bestbuy","costco","temu","alibaba","aliexpress"],Ww=new RegExp(`(${jw.join("|")})`,"i");const qw=new RegExp(`(${["google performance max","microsoft audience network","facebook audience network"].join("|")})`,"i");function Jw(e,t){return"self"!==t&&"direct"!==t&&null!==t.match(e)}function Vw({referrer:e,currentHost:t}){if(!e||""===e)return"direct";e=new Jn(e).hostname;let n="self";return n=e!==t?null==e?void 0:e.toLowerCase():n}const Kw=new RegExp("^(.*cp.*|ppc|retargeting)$"),$w=new RegExp("(.*email.*|.*e_mail.*|.*e mail.*|.*e-mail.*)","i"),Zw=[[undefined,({medium:e,source:t,referrer:n,gclid:i,fbclid:r})=>!(e||t||"self"!==n||i||r)],["Direct",({source:e,medium:t,referrer:n})=>!(t||e&&"direct"!==e||"direct"!==n)],["Cross-network",({source:e,medium:t})=>"cross-network"===t||e.match(qw)],["Paid Search",({source:e,medium:t,gclid:n,_:i})=>n||"paid-search"===t||t.match(Kw)&&i.contains(Dw,e)],["Paid Social",({source:e,medium:t,fbclid:n,_:i})=>n||"paid-social"===t||t.match(Kw)&&i.contains(Gw,e)],["Paid Video",({medium:e,source:t,_:n})=>"paid-video"==e||e.match(Kw)&&n.contains(zw,t)],["Paid Shopping",({medium:e,source:t,referrer:n,_:i})=>"paid-shopping"==e||"shopping"==e||(Jw(Ww,n)||i.contains(jw,t))&&e.match(Kw)],["Display",({medium:e,_:t})=>t.contains(["display","cpm","banner","interstitial","expandable","programmatic"],e)],["Paid Other",({medium:e})=>"paid-other"==e||e.match(Kw)],["Organic Search",({source:e,medium:t,referrer:n,_:i})=>"organic"===t&&i.contains(Dw,e)||!t&&Jw(Uw,n)],["Organic Social",({source:e,medium:t,referrer:n,_:i})=>!t&&Jw(Bw,n)||"social"===t||i.contains(Gw,e)&&!t.match(Kw)],["Organic Video",({medium:e,referrer:t})=>"video"===e||!e&&Jw(Hw,t)],["Organic Shopping",({medium:e,referrer:t})=>"organic-shopping"===e||!e&&Jw(Ww,t)],["Email",({source:e,medium:t})=>null!==t.match($w)||null!==e.match($w)||"newsletter"===t],["Affiliates",({medium:e})=>"affiliate"===e||"partner"===e],["SMS",({source:e,medium:t})=>"sms"===e||"sms"===t],["Push Notifications",({source:e,medium:t})=>t.endsWith("push")||0<=t.indexOf("mobile")||0<=t.indexOf("notification")||"firebase"===e],["Audio",({medium:e})=>"podcast"===e||"audio"===e],["Referral",({medium:e,referrer:t})=>"referral"===e||!!t&&"self"!==t&&"direct"!==t],["Other",({medium:e,source:t})=>!!e||!!t]],Yw="utm",Xw="enableFullUtmReferrer";class Qw{constructor(){this.name="WebAnalytics"}initialize(e,t){this.pendo=e;var n=(this.api=t)["ConfigReader"],n=(n.addOption(Xw,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),e._)["bind"];this.subscriptions=[t.attachEvent(t.Events,"eventCaptured",n(this.addUtmToEvent,this)),t.attachEvent(t.Events,"sessionChanged",n(this.sessionChanged,this))];let i=this.loadParameters(t.agentStorage);i&&!e._.isEmpty(i)||(i=this.extractParameters(window.location.href,document.referrer)),this.api.agentStorage.registry.addLocal(Yw),this.storeParameters(i,t.agentStorage),this.suffix=this.api.ConfigReader.get("identityStorageSuffix")}extractParameters(e,t){var n,i,r,o,a,s,d=new Jn(e).hostname,u=Vw({referrer:t,currentHost:d}),e=this.api.util.parseUrl(e);return e?(e=e["query"],s=e.utm_source,n=e.utm_medium,i=e.utm_campaign,r=e.utm_term,o=e.utm_content,a=e.gclid,e=e.fbclid,(s={source:s,medium:n,campaign:i,term:r,content:o}).channel=this.calculateUtmChannel({referrerValue:u,utm:s,gclid:a,fbclid:e}),t&&this.api.ConfigReader.get(Xw)?s.referrer=t:"self"===u?s.referrer=d:"direct"!==u&&(s.referrer=u),s):{}}calculateUtmChannel({referrerValue:e,utm:t,gclid:n,fbclid:i}){var r=(null==(r=t.medium)?void 0:r.toLowerCase())||"",t=(null==(t=t.source)?void 0:t.toLowerCase())||"";const o={_:this.pendo._,referrer:e,source:t,medium:r,gclid:n,fbclid:i};e=this.pendo._.find(Zw,e=>e[1](o));if(e)return e[0]}storeParameters(e,t){0<this.pendo._.size(e)&&t.write(Yw,JSON.stringify(e),undefined,!1,!0,this.suffix)}loadParameters(e){e=e.read(Yw,!1,this.suffix)||e.read(Yw);return e?JSON.parse(e):null}teardown(){for(var e of this.subscriptions)e();this.subscriptions.length=0}addUtmToEvent(e){let t;try{t=this.loadParameters(this.api.agentStorage)}catch(n){}t&&(e.data[0].utm=t)}sessionChanged(){var e=this.api.agentStorage,t=(e.clear(Yw),e.clear(Yw,!1,this.suffix),this.extractParameters(window.location.href,document.referrer));this.storeParameters(t,e)}}var e1=new Qw;const t1={children:[],props:{"class":"_pendo-step-container","data-layout":"tooltipBlank",id:"pendo-base"},type:"div"},n1={css:[],props:{scoped:"scoped",type:"text/css"},type:"style"},i1={children:[],props:{"class":"_pendo-step-container-size","data-relative-alignment":!0,"data-vertical-alignment":"Relative to Element",id:"pendo-g-validation-tooltip-container",style:{display:"block",width:"300px","z-index":3e5}},type:"div"},r1={children:[],props:{"class":"_pendo-step-container-styles",id:"pendo-guide-container",role:"dialog","data-caret-enabled":!0,"data-caret-height":"15px","data-caret-width":"15px",style:{"background-color":"rgba(255, 255, 255, 1)",border:"1px solid #BBBBBB","border-radius":"5px",padding:"8px 12px","box-shadow":"0px 0px 10px 0px rgba(190, 190, 190, 0.5)"},tabindex:-1},type:"div"},o1={children:[],props:{"class":"_pendo-text-paragraph",style:{}},type:"div"};function a1(e,t){return{content:t,props:{id:"text-"+e,"class":"_pendo-text-plain",style:{color:"gray",margin:0}},type:"p"}}function s1(e){var e=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement,t=document.createElement("div");return t.style.marginRight="5px",t.appendChild(e),t}const d1=`
|
|
10
10
|
<svg xmlns="http://www.w3.org/2000/svg"
|
|
11
11
|
width="10" height="10" fill="none"
|
|
12
12
|
stroke="gray" stroke-linecap="round" stroke-linejoin="round"
|
|
13
13
|
stroke-width="2" viewBox="0 0 10 10">
|
|
14
14
|
<line x1="2" y1="5" x2="8" y2="5"/>
|
|
15
15
|
</svg>
|
|
16
|
-
`,
|
|
16
|
+
`,u1=`
|
|
17
17
|
<svg xmlns="http://www.w3.org/2000/svg"
|
|
18
18
|
width="10" height="10" viewBox="0 0 10 10"
|
|
19
19
|
fill="none" stroke="green" stroke-width="2"
|
|
@@ -21,7 +21,7 @@ var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{
|
|
|
21
21
|
class="feather feather-check">
|
|
22
22
|
<polyline points="2 5 4 7 8 2"></polyline>
|
|
23
23
|
</svg>
|
|
24
|
-
`,
|
|
24
|
+
`,l1=`
|
|
25
25
|
<svg xmlns="http://www.w3.org/2000/svg"
|
|
26
26
|
width="10" height="10" viewBox="0 0 10 10"
|
|
27
27
|
fill="none" stroke="red" stroke-width="2"
|
|
@@ -30,10 +30,10 @@ var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{
|
|
|
30
30
|
<line x1="2" y1="2" x2="8" y2="8"/>
|
|
31
31
|
<line x1="8" y1="2" x2="2" y2="8"/>
|
|
32
32
|
</svg>
|
|
33
|
-
`,
|
|
33
|
+
`,c1={emailRegex:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,phoneRegex:/^(\+\d{1,2}\s?)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$/,urlRegex:/^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/},p1={"MM-DD-YYYY":/^(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])-(19|20)\d\d$/,"DD-MM-YYYY":/^(0[1-9]|[12][0-9]|3[01])-(0[1-9]|1[0-2])-(19|20)\d\d$/,"MM/DD/YYYY":/^(0[1-9]|1[0-2])\/(0[1-9]|[12][0-9]|3[01])\/(19|20)\d\d$/,"DD/MM/YYYY":/^(0[1-9]|[12][0-9]|3[01])\/(0[1-9]|1[0-2])\/(19|20)\d\d$/,"YYYY-MM-DD":/^(19|20)\d\d-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/};var h1={email(e){return c1.emailRegex.test(e)},phone(e){return c1.phoneRegex.test(e)},date(e,t={}){return(p1[t.format]||p1["MM/DD/YYYY"]).test(e)},url(e){return c1.urlRegex.test(e)},number(e,t={}){if(""===e)return!1;let{min:n,max:i,allowDecimal:r}=t;var t=f1(n),o=f1(i),e=(t&&(n=Number(n)),o&&(i=Number(i)),Number(e));return!isNaN(e)&&!(t&&e<n||o&&e>i||!r&&e%1!=0)},characterLength(e,t={}){let{min:n,max:i}=t;var t=f1(n),r=f1(i);return t&&(n=Number(n)),r&&(i=Number(i)),!(t&&e.length<n||r&&e.length>i)}};function f1(e){return e!==undefined&&null!==e&&""!==e}const g1=function(){let r,o,i=[],a,d,u,l=null,s;return{name:"FormValidation",validationGuides:i,debouncedValidate:a,initialize:function(e,t){var n=t.ConfigReader.get("formValidation");if(n){r=e,o=t,a=C.debounce(w,100),o.Events.on("deliverablesLoaded",p),o.Events.on("guideLoopStopped",h),o.Events.on("guideListChanged",f),o.GuideLoop.addUpdatePhase(g),o.guides.addProcessor(m);const i=!(null===r||void 0===r||!r.designer);s=setInterval(()=>{i&&(c(),clearInterval(s),s=null)},1e3),e.attachEvent(document,"focusin",v),e.attachEvent(document,"focusout",y),e.attachEvent(document,"input",a)}},teardown:c,appendValidationStyles:t,getActiveStep:function(){return d},setActiveStep:function(e){d=e},setActiveField:function(e){u=e},getActiveField:function(){return u},getActiveFieldIsValid:function(){return l},setActiveFieldIsValid:function(e){l=e},getValidationGuides:function(){return i},setValidationGuides:function(e){i=e},initializeFormValidation:f,clearAllValidationGuides:p,extractValidationGuides:m,applyFormBehaviors:e,checkValidationFieldVisibility:g,hideValidationTooltip:h,focusField:v,blurField:y,findFieldByElement:b,validateInput:w,validateField:S,getRuleText:I,setValidationStyle:E};function c(){o&&(s&&(clearInterval(s),s=null),o.Events.off("deliverablesLoaded",p),o.Events.off("guideLoopStopped",h),o.Events.off("guideListChanged",f),o.GuideLoop.removeUpdatePhase(g),o.guides.removeProcessor(m),r.detachEvent(document,"focusin",v),r.detachEvent(document,"focusout",y),r.detachEvent(document,"input",a),a.cancel(),i=[],d=null,u=null,l=null)}function p(){o.guides.removeDisplayableGuides("validationGuides"),i=[]}function h(){r.detachEvent(document,"focusin",v),u&&(u=null,l=null),d&&(d.hide({validationHidden:!0}),d=null)}function f(){t(),o.guides.registerDisplayableGuides("validationGuides",i),e()}function e(){C.map(i,function(e){C.map(e.steps,function(e){var t=function(){if(!this.attributes)return x.info("buildFormStepBehaviors called with invalid context"),{};const t=this,n=t.show,i=t.hide;return{show:function(e){return!t.attributes.validationHidden&&n.call(t,e)},hide:function(e){return e&&e.validationHidden&&(t.attributes.validationHidden=!0),i.call(t,e)}}}.call(e);Object.assign(e,t)})})}function g(){!u||(e=r.Sizzle(d.elementPathRule)[0])&&r.isElementVisible(e)||(u=null,l=null,d.hide({validationHidden:!0}),d=null);var e=wr.get(document);((null==(e=e.bubbleEvents)?void 0:e.focusin)||[]).some(e=>e.handler===v)||r.attachEvent(document,"focusin",v)}function m(t){return"form"!==t.launchMethod||C.some(i,({id:e})=>e===t.id)||i.push(t),!0}function t(){0!==i.length&&o.util.addInlineStyles("pendo-form-validation-styles",`input[data-pendo-field-valid="false"] {
|
|
34
34
|
border-color: red !important;
|
|
35
35
|
outline-color: red !important;
|
|
36
|
-
}`)}function v(e){var t,n,i,r,o,a,s,e=e["target"];"INPUT"===e.tagName&&(t=b(e))&&d&&(d.attributes.validationHidden=!1,d.domJson||(n=u.rules[0],i=aw("context-"+u.id,u.context),n=null!=n&&n.type?function(e,t){return{props:{id:"rule-"+e,"class":"text-row",style:{display:"flex","align-items":"center"}},children:[aw(e,t)],type:"div"}}(n.id,n.ruleText):null,0!==(i=[i,n].filter(Boolean)).length&&(n=me(tw),r=me(nw),o=me(iw),a=me(rw),s=me(ow),n.children.push(r,o),o.children.push(a),a.children.push(s),s.children=i,d.domJson=n)),d.show("api"),(o=document.getElementById("rule-"+(null==(r=null===u||void 0===u?void 0:u.rules[0])?void 0:r.id)))&&null!=(a=null===u||void 0===u?void 0:u.rules[0])&&a.type&&(s=null===u.isValid?sw(dw):c?sw(uw):sw(cw),o.insertBefore(s,o.firstChild)),""!==t.value)&&S(e)}function y(e){e=e.target;u&&d&&(r.Sizzle.matchesSelector(e,null===d||void 0===d?void 0:d.elementPathRule)&&_(e,c),d.hide({validationHidden:!0}),null===u.isValid&&!1===c&&(I().props.style.color="red"),u.isValid=c,u=null,d=null,c=null)}function b(t){d&&d.hide({validationHidden:!0}),d=null,u=null,c=null;for(const n of i){var e=E.find(n.steps,function(e){return r.Sizzle.matchesSelector(t,e.elementPathRule)});if(e)return d=e,u=null==(e=e.attributes)?void 0:e.field,c=u.isValid,u}return null}function w(e){var t,e=e["target"];r.Sizzle.matchesSelector(e,null===d||void 0===d?void 0:d.elementPathRule)?S(e):(t=b(e))&&(c=t.isValid,S(e))}function S(t){var n=null===u||void 0===u?void 0:u.rules[0];if(n){var i=hw[n.type];if(i){n=i(t.value,n.options),i=(c=!!n,I());let e;null===u.isValid?(i.props.style.color=n?"green":"gray",e=sw(n?uw:dw)):(i.props.style.color=n?"green":"red",e=sw(n?uw:cw),_(t,n)),d.hide({stepHidden:!0}),d.show("api");i=document.getElementById("rule-"+u.rules[0].id);i&&i.insertBefore(e,i.firstChild)}}}function I(){return Zu("text-"+u.rules[0].id,d.domJson)}function _(e,t){!1===t?e.setAttribute("data-pendo-field-valid",!1):e.removeAttribute("data-pendo-field-valid")}}();class mw{constructor(e,t,n,i,r,o){this.listeners=[],this.latestPromptValue="",this.dom=e.dom,this._=e._,this.api=t,this.q=t.q,this.id=n,this.setFilters(i),this.inputEl=new this.dom.Element(r),this.submitEl=new this.dom.Element(o),this.inputEl.addEventListener("change",e=>{this.capturePromptValue()},!0),this.inputEl.addEventListener("keyup",e=>{e="Enter"===e.code;this.capturePromptValue(e),e&&this.submit(this.latestPromptValue)},!0),this.submitEl.addEventListener("click",()=>{this.capturePromptValue(),this.submit(this.latestPromptValue)},!0),this.promptContainer=new this.dom.Observer,this.promptContainer.addObservers(this.inputEl,this.submitEl)}setFilters(e){if(!e)return this.privacyFilters=null;try{this.privacyFilters=new RegExp(e,"gmi")}catch(t){this.privacyFilters=null,this.api.log.error(t)}return this.privacyFilters}applyPrivacyFilter(e,t=null){t=t||this.privacyFilters;return t&&this._.isRegExp(t)?e.replace(t,"redacted"):e}submit(e){if(e){var t=this.applyPrivacyFilter(e);const n={agentId:this.id,prompt:t,privacyFilterApplied:t!==e};this._.each(this.listeners,e=>e(n)),this.latestPromptValue=""}}capturePromptValue(e=!1){var t=this.getPromptValue();return!t&&e||(this.latestPromptValue=t),t}getPromptValue(){return this.inputEl.getText()}onSubmit(e){this.listeners.push(e)}teardown(){this.promptContainer.teardown(),this.inputEl.teardown(),this.submitEl.teardown()}}const vw="_pendoHeaders";class yw{constructor(){this.name="PromptAnalytics",this.configName="aiAgents",this.prompts=[]}initialize(e,t){this.pendo=e,this.api=t,this._=this.pendo._,this.api.ConfigReader.addOption(this.configName,["pendoconfig","snippet"]),this.loadConfig(this.configName).then(e=>this.onConfigLoaded(e))["catch"](()=>{})}loadConfig(e){var{q:t,ConfigReader:n}=this.api,t=t.defer(),e=n.get(e);return t.resolve(e),t.promise}onConfigLoaded(e=[]){var t;e&&this._.isArray(e)&&0!==e.length&&(t=e.filter(e=>"network"===e.trackingMethod),e=e.filter(e=>"network"!==e.trackingMethod),0<t.length&&(this.networkAgents=t,this.patchNetwork(({method:o,url:a,body:s})=>{this.networkAgents.forEach(e=>{let t=null;if(e.privacyFilters)try{t=new RegExp(e.privacyFilters,"gmi")}catch(r){this.api.log.error("Invalid privacy filter for agent",e.id,r)}var n=s||"",i=this.applyPrivacyFilter(n,t);this.api.analytics.collectEvent("prompt",{prompt:i,agentId:e.id,promptType:o,url:a,privacyFilterApplied:i!==n})})})),e.forEach(e=>{this.observePrompt(e)}))}patchNetwork(a){const s=this;s._networkPatched||(s._networkPatched=!0,s._originalSetRequestHeader||(s._originalSetRequestHeader=XMLHttpRequest.prototype.setRequestHeader,XMLHttpRequest.prototype.setRequestHeader=function(e,t){return this[vw]=this[vw]||{},this[vw][e]=t,s._originalSetRequestHeader.apply(this,arguments)}),s._originalFetch=window.fetch,window.fetch=function(...o){return L1(this,void 0,void 0,function*(){var[e,t={}]=o,n=t.method||"GET",i=ww(t.headers),t=bw(t.body);try{a({method:n,url:e,body:t,headers:i})}catch(r){s.api.log.debug("[PromptPlugin] Fetch tracking failed:",r)}return s._originalFetch.apply(this,o)})},s._originalXHROpen=XMLHttpRequest.prototype.open,s._originalXHRSend=XMLHttpRequest.prototype.send,XMLHttpRequest.prototype.open=function(e,t){return this._method=e,this._url=t,s._originalXHROpen.apply(this,arguments)},XMLHttpRequest.prototype.send=function(e){try{var t=Sw(this),n=bw(e);a({method:this._method||"GET",url:this._url,body:n,headers:t})}catch(i){s.api.log.debug("[PromptPlugin] XHR tracking failed:",i)}return s._originalXHRSend.apply(this,arguments)})}observePrompt(e){var e=e["cssSelectors"],t=this.parseCssSelector("input",e),e=this.parseCssSelector("submit",e),t=new mw(this.pendo,this.api,t,e);t.onSubmit(e=>{this.sendEvent(e)}),this.prompts.push(t)}parseCssSelector(t,e){return this._.find(e,e=>e.type===t).cssSelector}sendEvent(e){e=this._.extend({promptType:"request"},e);this.api.analytics.collectEvent("prompt",e)}teardown(){this._originalFetch&&(window.fetch=this._originalFetch,this._originalFetch=null),this._originalXHROpen&&(XMLHttpRequest.prototype.open=this._originalXHROpen,XMLHttpRequest.prototype.send=this._originalXHRSend,this._originalXHROpen=null,this._originalXHRSend=null),this._networkPatched=!1,this._.each(this.prompts,e=>e.teardown()),this._originalSetRequestHeader&&(XMLHttpRequest.prototype.setRequestHeader=this._originalSetRequestHeader,this._originalSetRequestHeader=null)}}function bw(e){if(!e)return undefined;if("string"==typeof e)return e;if(e instanceof FormData){var t,n,i={};for([t,n]of e.entries())i[t]=n;return JSON.stringify(i)}try{return JSON.stringify(e)}catch(r){return"[unserializable-body]"}}function ww(e={}){const n={};return e instanceof Headers?e.forEach((e,t)=>{n[t]=e}):"object"==typeof e&&Object.entries(e).forEach(([e,t])=>{n[e]=t}),n}function Sw(e){return e[vw]||{}}var Iw=new yw;function _w(i){var e,t;(e=i).getVersion=qe,e.isReady=sv,e.pageLoad=od,e.getVisitorId=Un,e.getAccountId=Gn,e.clearSession=zn,e.VERSION=He,e.LOADER=We,e.flushNow=s(function(e){return as(0,e)}),e.teardown=Wn(mv),e.initGuides=s(km),e.loadGuides=s(lm),e.findGuideByName=s(Zd),e.hideGuides=s(sg),e.onGuideDismissed=s(vg),e.goToStep=bg,e.onGuideAdvanced=s(wg),e.onGuidePrevious=s(Sg),e.onGuideSnoozed=yg,e.startGuides=s(Yp),e.stopGuides=s(Xp),e.defaultCssUrl=s(Yf()),e.getActiveGuides=Hd,e.getActiveGuide=zm,e.guideSeenTimeoutLength=ly.getGuideSeenTimeoutLength(),e.guidesPayload=nm,e.areGuidesDisabled=s(Am),e.setGuidesDisabled=s(Rm),e.buildNodeFromJSON=D.buildNodeFromJSON,e.flexElement=s(D.flexElement),e.GuideFactory=s(Uu),e.dom=k,e.getText=ma,e.attachEvent=s(l),e.detactEvent=s(Dd),e.frames={setFrameVisibility:fu},e.log=Lv,e.enableLogging=Av,e.disableLogging=Ov,e.setActiveContexts=Gv,e.showLogHistory=Dv,e.getLoggedContexts=Uv,e.isDebuggingEnabled=E.noop,e.enableDebugging=E.noop,e.disableDebugging=E.noop,e.addDebuggingFunctions=E.noop,e.stopSendingEvents=s(ns.lock),e.startSendingEvents=s(ns.unlock),e.isSendingEvents=s(Ro),e.fromByteArray=c.uint8ToBase64,e.events=s(yu),e.track=s(Bv),e.validateInstall=zv,e.validateNativeMethods=Hv,e.validateBuiltInGlobals=Wv,e.validateUrl=qv,e.validateEnvironment=Jv,e.doesExist=ge,e.generate_unique_id=Cn,e.TEMP_PREFIX=wn,e.SIZE_UNIQUE_ID=Sn,e.defaultLauncher=E.noop,e.toggleLauncher=E.noop,e.showLauncher=E.noop,e.hideLauncher=E.noop,e.removeLauncher=E.noop,e.identify=El,e.get_visitor_id=Un,e.set_visitor_id=function(e){El(e)},e.get_account_id=Gn,e.set_account_id=function(e){El(b(),e)},e.getSerializedMetadata=kl,e.compress=et,e.squeezeAndCompress=et,e.randomElement=ot,e.randomString=at,e.toUTF8Array=Ze,e.getNumberFromText=ht,e._addCredits=s(Ig),e.getCurrentUrl=Vg,e.getNormalizedUrl=Vg,e.testUrlForStep=s(Jg),e.showGuideByName=s(Zg),e.showGuideById=s(Yg),e.designerv2=tf,e.P2AutoLaunch=s(wf),e.BuildingBlocks=s(Zv),e.onConnectMessage=E.noop,e.buffers=ns,e.guideDev=s(bv),e.badgesShown=s(Bd),e.get_pendo_cookie=$t,e.DEFAULT_EXPIRE_LEN=jt,e.set_pendo_cookie=zt,e.loadResource=Ta,e.loadWatcher=xa,e.messageLogger=ka,e.messageReceiver=Aa,e.messageValidator=Oa,e.MESSAGE_TYPES=Ma,e.messageDispatcher=Pa,e.moduleRegistry=Fa,e.addModule=$a,e.hasModule=s(Da),e.findModuleByName=s(Ua),e.modulesWaiting=Ga,e.loadModules=ja,e.moduleLoader=Ba,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=$e,e.url=A,e.location=dy,e.Sizzle=yr,e._=E,e.ajax=xr,e.Zlib=tt,e.guideContent=s(zu.guideContent),e.receiveDomStructureJson=s(zu.receiveDomStructureJson),e.addExtension=Pl,(t=i).SHADOW_STYLE="",E.extend(t,{_showElementGuide:E.noop,flushEventCache:my(null,"flushEventCache",fy),HOST:Yr,MAX_LENGTH:Xa,MAX_NUM_EVENTS:Ya,_createToolTip:E.noop,_get_tooltip_dimensions:E.noop,_isOldIE:s(my(_e,"_isOldIE",hy)),_logMessage:my(Eo,"_logMessage",hy),_sendEvent:my(null,"_sendEvent",fy),_sendGuideEvent:my(null,"_sendGuideEvent",fy),_stopEvents:!1,_storeInCache:my(null,"_storeInCache",fy),_writeEventImgTag:my(null,"_writeEventImgTag",fy),_writeImgTag:s(my(To,"_writeImgTag",hy)),getUA:my(Te,"getUA",hy),ifDebugThen:my(null,"ifDebugThen",fy),send_event:s(my(Ss,"send_event","has changed to pendo.cache.createEvent")),wire_page:my(Ld,"wire_page",hy),messageOriginTester:my(null,"messageOriginTester",fy),findGuideBy:s(Jd),findGuideById:s(M),findStepInGuide:s(Yd),_updateGuideStepStatus:s(og),_addCloseButton:s(ig),initialize:lv,getEventCache:s(Im),processEventCache:s(Sm),isGuideShown:s(ng),_getNextStepInMultistep:s(qg),attachEvent:l,detachEvent:Dd,updateOptions:_l,createLauncher:E.constant({}),initLauncher:E.noop,_addGuideToLauncher:E.noop,launcherToolTipDiv:null,isAnonymousVisitor:(e=t.get_visitor_id())=>xn(e),DEFAULT_VISITOR_ID:On,shouldIdentityChange:E.constant(!1),read:h.read,write:h.write,_delete_cookie:h.clear,_set_cookie:Lt,_get_cookie:Nt,get_cookie_key:Ft,ENV:Ge,eventCache:s(Ka),_getOpacityStyles:my(null,"_getOpacityStyles",hy),setStyle:Uo,_createGuideEvent:s(Bg),seenGuide:s(Fg),dismissedGuide:s($g),advancedGuide:s(Dg),seenTime:0,placeBadge:s(yh),isBadge:s(tu),showPreview:s(my(Rg,"showPreview",hy)),removeAllBadges:s(bh),tellMaster:za,DEFAULT_TIMER_LENGTH:qp,registerMessageHandler:Na,_get_offset:s(Ho),_shouldAutoDisplayGuide:E.constant(!1),removeBadge:wh,_showLightboxGuide:E.noop,_showGuide:s(Lg),getElementForGuideStep:s(du),isElementVisible:ca,getTooltipDivId:s(Ag),setupWatchOnTooltip:s(Og),letters:"",charset:"",detectMaster:Ha,listenToMaster:my(null,"listenToMaster",fy),start:Gd,SEND_INTERVAL:Za,stageGuideEvent:s(Wg),startStagedTimer:Hg,isURLValid:es,getURL:ts,_get_screen_dim:s(jo),_isInViewport:s(Bo),_getCss3Prop:$o,waitThenStartGuides:s(Vp),guidesProcessingThreadHandle:Wp,getMode:E.constant("default")}),E.each(["identify","updateOptions","pageLoad","track"],function(t){var n=i[t];i[t]=function(){try{sv()?n.apply(this,arguments):oe(i,t,arguments)}catch(e){C.critical(e)}}})}var Ew,Cw,Tw,xw=le(),kw=function(e){var t=X(e)?{}:window,n=te(document.getElementsByTagName("script"),e.apiKey);let i=e.pendoGlobalKey||"pendo";return n&&(i=n.getAttribute("data-pendo-global-key")||i,e.pendoGlobalKey=i),I=t[i]=t[i]||{}}(xw);return Ew=kw,ce(xw=xw),Ge=pe("env")||Ge,je=pe("server")||je,Be=pe("assetHost")||Be,ze=pe("assetPath")||ze,n=pe("designerServer")||n,n=Ve()?Ge+"_ext":Ge,He=Pe+"_"+n,!X(xw)&&(n=xw,xw=Ew,Tw=ph(),se(n,xw,Tw)||de(n,xw,Tw))||Ew&&Ew.VERSION||(f.get("disablePendo")?(Cw=Ew,E.each(["initialize","identify","updateOptions","pageLoad","track"],function(e){Cw[e]=function(){console.log("Pendo is currently disabled.")}})):((n=g).registerModule("debugger",tb),n.registerModule("errorLog",Ry),n.registerModule("frames",t),n.registerModule("guideUpdate",Ti),n.registerModule("guideState",r),n.registerModule("healthCheck",Ni),n.registerModule("location",e),n.registerModule("monitoring",Jy),n.registerModule("metadata",Zy),n.registerModule("preview",eb),no(),Uu.behaviors=[uh,yy,Fu.Guide,by,Sy,Iy,_y],Gu.behaviors=[uh,Ay,Ey,Hu,Fu.Step,Cy,Oy],Hu.reset(),g.dispatch("frames/init"),Lv.init(),Yn.wrapSizzle(yr),yr.intercept(pu),_w(Ew),C.addEventListener("log",E.partial(g.dispatch,"errorLog/write")),Zm(nb),Zm(lb),Zm(Sb),Zm(kb),Zm(s1),Zm(f1),Zm(y1),Zm(w1),Zm(ly),Zm(T1),Zm(x1),Zm(k1),Zm(N1),Zm(F1),Zm(ew),Zm(gw),Zm(Iw),xw=Ew._q,Tw=gv,n=Gd,f.get("disableAutoInitialize")||(xw=(xw=hv(xw))&&1<xw.length?xw[1]:{},E.get(xw,uv)||f.get(uv)?Tw():cv.push(n(Tw))))),kw}function TextCapture(){var i,r,n,o={};return{name:"TextCapture",initialize:function(e,t){r=t,(i=e).excludeAllText=r.ConfigReader.get("excludeAllText");t=r.ConfigReader.get("allowedText");o=i._.reduce(t,function(e,t){return i._.isString(t)&&(e[t]=!0),e},{}),r.NodeSerializer.add(a),n=i._.partial(s,e),r.Events.on("eventCaptured",n)},teardown:function(){r.NodeSerializer.remove(a),r.Events.off("eventCaptured",n)},isEnabled:d,isTextCapturable:u,hasWhitelist:c,serializer:a,guideActivity:s};function a(e,t,n){return t===n&&(d()||!d()&&c())&&u(t=i.getText(n,128))&&(e.txt=c()?r.util.trim.call(t):t),e}function s(e,t){var n;d()&&(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 d(){return!i.excludeAllText}function u(e){var t=r.util.trim.call(e);return d()||i._.has(o,t)||i._.has(o,e)}function c(){return 0<i._.size(o)}}var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}const substitutionRegex="\\{(?:\\s?)([^.\\s]?visitor|account|parentAccount)\\.([^|\\s/]*)(?:\\s?\\|\\s?([^}]+|[\\/s]+))?(?:\\s?\\/\\s?){1}\\}",skipStepString="{skipStep:* *(auto|\\d+)\\/}",goToMiddleString="(?!0)(\\d+)",goToString=`({goto-${goToMiddleString}\\/})`;function lookupGuideButtons(e,t=[]){return"button"===e.type&&e.actions&&t.push(e),e.children&&e.children.forEach(e=>{lookupGuideButtons(e,t)}),t}function removeMarkdownSyntax(e,t,n,i){var r;i.dom(e).hasClass("_pendo-nps-open-text-poll-question")&&(e.innerHTML=null==(r=e.innerHTML)?void 0:r.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)||(i.dom(e).hasClass("_pendo-simple-text")||i.dom(e).hasClass("_pendo-text-plain")||i.dom(e).hasClass("_pendo-text-list-item")||i.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};function getZoneSafeMethod(e,t,n=window){var i="__symbol__";if("undefined"!=typeof Zone&&e.isFunction(Zone[i])){i=n[Zone[i](t)];if(e.isFunction(i))return i}return n[t]}const goToRegex=new RegExp(guideMarkdownUtil.goToString),PollBranching={name:"PollBranching",script(r,o,a){let s=!1;var e=initialBranchingSetup(r,a);!e||1<a._.size(e)||this.on("beforeAdvance",e=>{var t=0===r.guideElement.find("[branching] .pendo-radio:checked").length,n=r.guideElement.find("[branching] .pendo-radio:checked + label")[0];let i;n&&(i=a._.isNull(n.getAttribute("goToStep"))),s||t||i||(s=!0,branchingGoToStep(e,r,o,a))})},test(e,t,n){e=null==(e=e.guideElement)?void 0:e.find('._pendo-multi-choice-poll-question:contains("{branching/}")');return!n._.isUndefined(e)&&n._.size(e)},designerListener(i){var e=i.dom.getBody();function r(e,t){return`<svg id="pendo-ps-branching-svg" viewBox="0 0 24 24" fill="none"
|
|
36
|
+
}`)}function v(e){var t,n,i,r,o,a,s,e=e["target"];"INPUT"===e.tagName&&(t=b(e))&&d&&(d.attributes.validationHidden=!1,d.domJson||(n=u.rules[0],i=a1("context-"+u.id,u.context),n=null!=n&&n.type?function(e,t){return{props:{id:"rule-"+e,"class":"text-row",style:{display:"flex","align-items":"center"}},children:[a1(e,t)],type:"div"}}(n.id,n.ruleText):null,0!==(i=[i,n].filter(Boolean)).length&&(n=me(t1),r=me(n1),o=me(i1),a=me(r1),s=me(o1),n.children.push(r,o),o.children.push(a),a.children.push(s),s.children=i,d.domJson=n)),d.show("api"),(o=document.getElementById("rule-"+(null==(r=null===u||void 0===u?void 0:u.rules[0])?void 0:r.id)))&&null!=(a=null===u||void 0===u?void 0:u.rules[0])&&a.type&&(s=null===u.isValid?s1(d1):l?s1(u1):s1(l1),o.insertBefore(s,o.firstChild)),""!==t.value)&&S(e)}function y(e){e=e.target;u&&d&&(r.Sizzle.matchesSelector(e,null===d||void 0===d?void 0:d.elementPathRule)&&E(e,l),d.hide({validationHidden:!0}),null===u.isValid&&!1===l&&(I().props.style.color="red"),u.isValid=l,u=null,d=null,l=null)}function b(t){d&&d.hide({validationHidden:!0}),d=null,u=null,l=null;for(const n of i){var e=C.find(n.steps,function(e){return r.Sizzle.matchesSelector(t,e.elementPathRule)});if(e)return d=e,u=null==(e=e.attributes)?void 0:e.field,l=u.isValid,u}return null}function w(e){var t,e=e["target"];r.Sizzle.matchesSelector(e,null===d||void 0===d?void 0:d.elementPathRule)?S(e):(t=b(e))&&(l=t.isValid,S(e))}function S(t){var n=null===u||void 0===u?void 0:u.rules[0];if(n){var i=h1[n.type];if(i){n=i(t.value,n.options),i=(l=!!n,I());let e;null===u.isValid?(i.props.style.color=n?"green":"gray",e=s1(n?u1:d1)):(i.props.style.color=n?"green":"red",e=s1(n?u1:l1),E(t,n)),d.hide({stepHidden:!0}),d.show("api");i=document.getElementById("rule-"+u.rules[0].id);i&&i.insertBefore(e,i.firstChild)}}}function I(){return Zu("text-"+u.rules[0].id,d.domJson)}function E(e,t){!1===t?e.setAttribute("data-pendo-field-valid",!1):e.removeAttribute("data-pendo-field-valid")}}();class m1{constructor(e,t,n,i,r,o){this.listeners=[],this.latestPromptValue="",this.dom=e.dom,this._=e._,this.api=t,this.q=t.q,this.id=n,this.setFilters(i),this.inputEl=new this.dom.Element(r),this.submitEl=new this.dom.Element(o),this.inputEl.addEventListener("change",e=>{this.capturePromptValue()},!0),this.inputEl.addEventListener("keyup",e=>{e="Enter"===e.code;this.capturePromptValue(e),e&&this.submit(this.latestPromptValue)},!0),this.submitEl.addEventListener("click",()=>{this.submit(this.latestPromptValue)},!0),this.promptContainer=new this.dom.Observer,this.promptContainer.addObservers(this.inputEl,this.submitEl)}setFilters(e){if(!e)return this.privacyFilters=null;try{this.privacyFilters=new RegExp(e,"gmi")}catch(t){this.privacyFilters=null,this.api.log.error(t)}return this.privacyFilters}applyPrivacyFilter(e,t=null){t=t||this.privacyFilters;return t&&this._.isRegExp(t)?e.replace(t,"redacted"):e}submit(e){if(e&&this.inputEl.get()&&this.submitEl.get()){var t=this.applyPrivacyFilter(e);const n={agentId:this.id,prompt:t,privacyFilterApplied:t!==e};this._.each(this.listeners,e=>e(n))}}capturePromptValue(e=!1){var t=this.getPromptValue();return!t&&e||(this.latestPromptValue=t),t}getPromptValue(){return this.inputEl.getText()}onSubmit(e){this.listeners.push(e)}teardown(){this.promptContainer.teardown(),this.inputEl.teardown(),this.submitEl.teardown()}}const v1="_pendoHeaders";class y1{constructor(){this.name="PromptAnalytics",this.configName="aiAgents",this.prompts=[]}initialize(e,t){this.pendo=e,this.api=t,this._=this.pendo._,this.api.ConfigReader.addOption(this.configName,["pendoconfig","snippet"]),this.loadConfig(this.configName).then(e=>this.onConfigLoaded(e))["catch"](()=>{})}loadConfig(e){var{q:t,ConfigReader:n}=this.api,t=t.defer(),e=n.get(e);return t.resolve(e),t.promise}onConfigLoaded(e=[]){var t;e&&this._.isArray(e)&&0!==e.length&&(t=e.filter(e=>"network"===e.trackingMethod),e=e.filter(e=>"network"!==e.trackingMethod),0<t.length&&(this.networkAgents=t,this.patchNetwork(({method:o,url:a,body:s})=>{this.networkAgents.forEach(e=>{let t=null;if(e.privacyFilters)try{t=new RegExp(e.privacyFilters,"gmi")}catch(r){this.api.log.error("Invalid privacy filter for agent",e.id,r)}var n=s||"",i=this.applyPrivacyFilter(n,t);this.api.analytics.collectEvent("prompt",{prompt:i,agentId:e.id,promptType:o,url:a,privacyFilterApplied:i!==n})})})),this._.each(e,e=>{this.observePrompt(e)}))}patchNetwork(a){const s=this;s._networkPatched||(s._networkPatched=!0,s._originalSetRequestHeader||(s._originalSetRequestHeader=XMLHttpRequest.prototype.setRequestHeader,XMLHttpRequest.prototype.setRequestHeader=function(e,t){return this[v1]=this[v1]||{},this[v1][e]=t,s._originalSetRequestHeader.apply(this,arguments)}),s._originalFetch=window.fetch,window.fetch=function(...o){return Lw(this,void 0,void 0,function*(){var[e,t={}]=o,n=t.method||"GET",i=w1(t.headers),t=b1(t.body);try{a({method:n,url:e,body:t,headers:i})}catch(r){s.api.log.debug("[PromptPlugin] Fetch tracking failed:",r)}return s._originalFetch.apply(this,o)})},s._originalXHROpen=XMLHttpRequest.prototype.open,s._originalXHRSend=XMLHttpRequest.prototype.send,XMLHttpRequest.prototype.open=function(e,t){return this._method=e,this._url=t,s._originalXHROpen.apply(this,arguments)},XMLHttpRequest.prototype.send=function(e){try{var t=S1(this),n=b1(e);a({method:this._method||"GET",url:this._url,body:n,headers:t})}catch(i){s.api.log.debug("[PromptPlugin] XHR tracking failed:",i)}return s._originalXHRSend.apply(this,arguments)})}observePrompt(e){var{id:e,cssSelectors:t,privacyFilters:n}=e,i=this.parseCssSelector("input",t),t=this.parseCssSelector("submit",t),e=new m1(this.pendo,this.api,e,n,i,t);e.onSubmit(e=>{this.sendEvent(e)}),this.prompts.push(e)}parseCssSelector(t,e){return this._.find(e,e=>e.type===t).cssSelector}sendEvent(e){e=this._.extend({promptType:"request"},e);this.api.analytics.collectEvent("prompt",e)}teardown(){this._originalFetch&&(window.fetch=this._originalFetch,this._originalFetch=null),this._originalXHROpen&&(XMLHttpRequest.prototype.open=this._originalXHROpen,XMLHttpRequest.prototype.send=this._originalXHRSend,this._originalXHROpen=null,this._originalXHRSend=null),this._networkPatched=!1,this._.each(this.prompts,e=>e.teardown()),this._originalSetRequestHeader&&(XMLHttpRequest.prototype.setRequestHeader=this._originalSetRequestHeader,this._originalSetRequestHeader=null)}}function b1(e){if(!e)return undefined;if("string"==typeof e)return e;if(e instanceof FormData){var t,n,i={};for([t,n]of e.entries())i[t]=n;return JSON.stringify(i)}try{return JSON.stringify(e)}catch(r){return"[unserializable-body]"}}function w1(e={}){const n={};return e instanceof Headers?e.forEach((e,t)=>{n[t]=e}):"object"==typeof e&&Object.entries(e).forEach(([e,t])=>{n[e]=t}),n}function S1(e){return e[v1]||{}}var I1=new y1;function E1(i){var e,t;(e=i).getVersion=Je,e.isReady=sv,e.pageLoad=od,e.getVisitorId=Gn,e.getAccountId=Bn,e.clearSession=jn,e.VERSION=We,e.LOADER=qe,e.flushNow=s(function(e){return as(0,e)}),e.teardown=qn(mv),e.initGuides=s(km),e.loadGuides=s(cm),e.findGuideByName=s(Zd),e.hideGuides=s(sg),e.onGuideDismissed=s(vg),e.goToStep=bg,e.onGuideAdvanced=s(wg),e.onGuidePrevious=s(Sg),e.onGuideSnoozed=yg,e.startGuides=s(Yp),e.stopGuides=s(Xp),e.defaultCssUrl=s(Yf()),e.getActiveGuides=Wd,e.getActiveGuide=jm,e.guideSeenTimeoutLength=cy.getGuideSeenTimeoutLength(),e.guidesPayload=nm,e.areGuidesDisabled=s(Rm),e.setGuidesDisabled=s(Om),e.buildNodeFromJSON=U.buildNodeFromJSON,e.flexElement=s(U.flexElement),e.GuideFactory=s(Gu),e.dom=k,e.getText=ma,e.attachEvent=s(c),e.detactEvent=s(Ud),e.frames={setFrameVisibility:fu},e.log=Lv,e.enableLogging=Rv,e.disableLogging=Av,e.setActiveContexts=Bv,e.showLogHistory=Uv,e.getLoggedContexts=Gv,e.isDebuggingEnabled=C.noop,e.enableDebugging=C.noop,e.disableDebugging=C.noop,e.addDebuggingFunctions=C.noop,e.stopSendingEvents=s(ns.lock),e.startSendingEvents=s(ns.unlock),e.isSendingEvents=s(Oo),e.fromByteArray=l.uint8ToBase64,e.events=s(yu),e.track=s(Hv),e.validateInstall=jv,e.validateNativeMethods=Wv,e.validateBuiltInGlobals=qv,e.validateUrl=Jv,e.validateEnvironment=$v,e.doesExist=ge,e.generate_unique_id=xn,e.TEMP_PREFIX=wn,e.SIZE_UNIQUE_ID=Sn,e.defaultLauncher=C.noop,e.toggleLauncher=C.noop,e.showLauncher=C.noop,e.hideLauncher=C.noop,e.removeLauncher=C.noop,e.identify=Cc,e.get_visitor_id=Gn,e.set_visitor_id=function(e){Cc(e)},e.get_account_id=Bn,e.set_account_id=function(e){Cc(b(),e)},e.getSerializedMetadata=kc,e.compress=et,e.squeezeAndCompress=et,e.randomElement=ot,e.randomString=at,e.toUTF8Array=Ze,e.getNumberFromText=ht,e._addCredits=s(Ig),e.getCurrentUrl=Vg,e.getNormalizedUrl=Vg,e.testUrlForStep=s($g),e.showGuideByName=s(Zg),e.showGuideById=s(Yg),e.designerv2=tf,e.P2AutoLaunch=s(wf),e.BuildingBlocks=s(Zv),e.onConnectMessage=C.noop,e.buffers=ns,e.guideDev=s(bv),e.badgesShown=s(Hd),e.get_pendo_cookie=Dt,e.DEFAULT_EXPIRE_LEN=zt,e.set_pendo_cookie=jt,e.loadResource=_a,e.loadWatcher=Ta,e.messageLogger=ka,e.messageReceiver=Ra,e.messageValidator=Aa,e.MESSAGE_TYPES=Na,e.messageDispatcher=Fa,e.moduleRegistry=Pa,e.addModule=Da,e.hasModule=s(Ua),e.findModuleByName=s(Ga),e.modulesWaiting=Ba,e.loadModules=za,e.moduleLoader=Ha,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=De,e.url=R,e.location=dy,e.Sizzle=yr,e._=C,e.ajax=Tr,e.Zlib=tt,e.guideContent=s(ju.guideContent),e.receiveDomStructureJson=s(ju.receiveDomStructureJson),e.addExtension=Fc,(t=i).SHADOW_STYLE="",C.extend(t,{_showElementGuide:C.noop,flushEventCache:my(null,"flushEventCache",fy),HOST:Yr,MAX_LENGTH:Xa,MAX_NUM_EVENTS:Ya,_createToolTip:C.noop,_get_tooltip_dimensions:C.noop,_isOldIE:s(my(Ee,"_isOldIE",hy)),_logMessage:my(Co,"_logMessage",hy),_sendEvent:my(null,"_sendEvent",fy),_sendGuideEvent:my(null,"_sendGuideEvent",fy),_stopEvents:!1,_storeInCache:my(null,"_storeInCache",fy),_writeEventImgTag:my(null,"_writeEventImgTag",fy),_writeImgTag:s(my(_o,"_writeImgTag",hy)),getUA:my(_e,"getUA",hy),ifDebugThen:my(null,"ifDebugThen",fy),send_event:s(my(Ss,"send_event","has changed to pendo.cache.createEvent")),wire_page:my(Ld,"wire_page",hy),messageOriginTester:my(null,"messageOriginTester",fy),findGuideBy:s($d),findGuideById:s(N),findStepInGuide:s(Yd),_updateGuideStepStatus:s(og),_addCloseButton:s(ig),initialize:cv,getEventCache:s(Im),processEventCache:s(Sm),isGuideShown:s(ng),_getNextStepInMultistep:s(Jg),attachEvent:c,detachEvent:Ud,updateOptions:Ec,createLauncher:C.constant({}),initLauncher:C.noop,_addGuideToLauncher:C.noop,launcherToolTipDiv:null,isAnonymousVisitor:(e=t.get_visitor_id())=>Tn(e),DEFAULT_VISITOR_ID:An,shouldIdentityChange:C.constant(!1),read:h.read,write:h.write,_delete_cookie:h.clear,_set_cookie:Lt,_get_cookie:Mt,get_cookie_key:Pt,ENV:Be,eventCache:s(Ka),_getOpacityStyles:my(null,"_getOpacityStyles",hy),setStyle:Go,_createGuideEvent:s(Hg),seenGuide:s(Pg),dismissedGuide:s(Dg),advancedGuide:s(Ug),seenTime:0,placeBadge:s(yh),isBadge:s(tu),showPreview:s(my(Og,"showPreview",hy)),removeAllBadges:s(bh),tellMaster:ja,DEFAULT_TIMER_LENGTH:Jp,registerMessageHandler:Ma,_get_offset:s(Wo),_shouldAutoDisplayGuide:C.constant(!1),removeBadge:wh,_showLightboxGuide:C.noop,_showGuide:s(Lg),getElementForGuideStep:s(du),isElementVisible:la,getTooltipDivId:s(Rg),setupWatchOnTooltip:s(Ag),letters:"",charset:"",detectMaster:Wa,listenToMaster:my(null,"listenToMaster",fy),start:Bd,SEND_INTERVAL:Za,stageGuideEvent:s(qg),startStagedTimer:Wg,isURLValid:es,getURL:ts,_get_screen_dim:s(zo),_isInViewport:s(Ho),_getCss3Prop:Do,waitThenStartGuides:s(Vp),guidesProcessingThreadHandle:qp,getMode:C.constant("default")}),C.each(["identify","updateOptions","pageLoad","track"],function(t){var n=i[t];i[t]=function(){try{sv()?n.apply(this,arguments):oe(i,t,arguments)}catch(e){x.critical(e)}}})}var C1,x1,_1,T1=ce(),k1=function(e){var t=X(e)?{}:window,n=te(document.getElementsByTagName("script"),e.apiKey);let i=e.pendoGlobalKey||"pendo";return n&&(i=n.getAttribute("data-pendo-global-key")||i,e.pendoGlobalKey=i),I=t[i]=t[i]||{}}(T1);return C1=k1,le(T1=T1),Be=pe("env")||Be,ze=pe("server")||ze,He=pe("assetHost")||He,je=pe("assetPath")||je,n=pe("designerServer")||n,n=Ve()?Be+"_ext":Be,We=Fe+"_"+n,!X(T1)&&(n=T1,T1=C1,_1=ph(),se(n,T1,_1)||de(n,T1,_1))||C1&&C1.VERSION||(f.get("disablePendo")?(x1=C1,C.each(["initialize","identify","updateOptions","pageLoad","track"],function(e){x1[e]=function(){console.log("Pendo is currently disabled.")}})):((n=g).registerModule("debugger",tb),n.registerModule("errorLog",Oy),n.registerModule("frames",t),n.registerModule("guideUpdate",_i),n.registerModule("guideState",r),n.registerModule("healthCheck",Mi),n.registerModule("location",e),n.registerModule("monitoring",$y),n.registerModule("metadata",Zy),n.registerModule("preview",eb),no(),Gu.behaviors=[uh,yy,Pu.Guide,by,Sy,Iy,Ey],Bu.behaviors=[uh,Ry,Cy,Wu,Pu.Step,xy,Ay],Wu.reset(),g.dispatch("frames/init"),Lv.init(),Yn.wrapSizzle(yr),yr.intercept(pu),E1(C1),x.addEventListener("log",C.partial(g.dispatch,"errorLog/write")),Zm(nb),Zm(cb),Zm(Sb),Zm(kb),Zm(sw),Zm(fw),Zm(yw),Zm(ww),Zm(cy),Zm(_w),Zm(Tw),Zm(kw),Zm(Mw),Zm(Pw),Zm(e1),Zm(g1),Zm(I1),T1=C1._q,_1=gv,n=Bd,f.get("disableAutoInitialize")||(T1=(T1=hv(T1))&&1<T1.length?T1[1]:{},C.get(T1,uv)||f.get(uv)?_1():lv.push(n(_1))))),k1}function TextCapture(){var i,r,n,o={};return{name:"TextCapture",initialize:function(e,t){r=t,(i=e).excludeAllText=r.ConfigReader.get("excludeAllText");t=r.ConfigReader.get("allowedText");o=i._.reduce(t,function(e,t){return i._.isString(t)&&(e[t]=!0),e},{}),r.NodeSerializer.add(a),n=i._.partial(s,e),r.Events.on("eventCaptured",n)},teardown:function(){r.NodeSerializer.remove(a),r.Events.off("eventCaptured",n)},isEnabled:d,isTextCapturable:u,hasWhitelist:l,serializer:a,guideActivity:s};function a(e,t,n){return t===n&&(d()||!d()&&l())&&u(t=i.getText(n,128))&&(e.txt=l()?r.util.trim.call(t):t),e}function s(e,t){var n;d()&&(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 d(){return!i.excludeAllText}function u(e){var t=r.util.trim.call(e);return d()||i._.has(o,t)||i._.has(o,e)}function l(){return 0<i._.size(o)}}const substitutionRegex="\\{(?:\\s?)([^.\\s]?visitor|account|parentAccount)\\.([^|\\s/]*)(?:\\s?\\|\\s?([^}]+|[\\/s]+))?(?:\\s?\\/\\s?){1}\\}",skipStepString="{skipStep:* *(auto|\\d+)\\/}",goToMiddleString="(?!0)(\\d+)",goToString=`({goto-${goToMiddleString}\\/})`;function lookupGuideButtons(e,t=[]){return"button"===e.type&&e.actions&&t.push(e),e.children&&e.children.forEach(e=>{lookupGuideButtons(e,t)}),t}function removeMarkdownSyntax(e,t,n,i){var r;i.dom(e).hasClass("_pendo-nps-open-text-poll-question")&&(e.innerHTML=null==(r=e.innerHTML)?void 0:r.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)||(i.dom(e).hasClass("_pendo-simple-text")||i.dom(e).hasClass("_pendo-text-plain")||i.dom(e).hasClass("_pendo-text-list-item")||i.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};function getZoneSafeMethod(e,t,n=window){var i="__symbol__";if("undefined"!=typeof Zone&&e.isFunction(Zone[i])){i=n[Zone[i](t)];if(e.isFunction(i))return i}return n[t]}const goToRegex=new RegExp(guideMarkdownUtil.goToString),PollBranching={name:"PollBranching",script(r,o,a){let s=!1;var e=initialBranchingSetup(r,a);!e||1<a._.size(e)||this.on("beforeAdvance",e=>{var t=0===r.guideElement.find("[branching] .pendo-radio:checked").length,n=r.guideElement.find("[branching] .pendo-radio:checked + label")[0];let i;n&&(i=a._.isNull(n.getAttribute("goToStep"))),s||t||i||(s=!0,branchingGoToStep(e,r,o,a))})},test(e,t,n){e=null==(e=e.guideElement)?void 0:e.find('._pendo-multi-choice-poll-question:contains("{branching/}")');return!n._.isUndefined(e)&&n._.size(e)},designerListener(i){var e=i.dom.getBody();function r(e,t){return`<svg id="pendo-ps-branching-svg" viewBox="0 0 24 24" fill="none"
|
|
37
37
|
style="margin-left: 5px;
|
|
38
38
|
height:${t}; width:${t}; display:inline; vertical-align:middle;" xmlns="http://www.w3.org/2000/svg">
|
|
39
39
|
<g stroke-width="0"></g>
|
|
@@ -109,14 +109,14 @@ var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{
|
|
|
109
109
|
<path d="M2880 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>
|
|
110
110
|
<path d="M3840 1440 l0 -160 480 0 480 0 0 160 0 160 -480 0 -480 0 0 -160z"/>
|
|
111
111
|
</g></svg></div>
|
|
112
|
-
`.trim()))})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}};function GuideMarkdown(){let r,o,a;return{name:"GuideMarkdown",initialize:function(e,t){a=e;var n=(o=t).ConfigReader,i="guideMarkdown",i=(n.addOption(i,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),n.get(i));i&&(r=[PollBranching,MetadataSubstitution,RequiredQuestions,SkipToEligibleStep],e.designer||r.forEach(e=>{t.GlobalRuntime.addGlobalScript(e)}),t.Events.on("designerLaunched",s))},teardown:function(){o.Events.off("designerLaunched",s),r.forEach(e=>{o.GlobalRuntime.removeGlobalScript(e)})}};function s(){r.forEach(e=>{e.designerListener&&e.designerListener(a,o)})}}var setTimeout=safeBind(window.setTimeout,window);function safeBind(e,t){return"function"==typeof e.bind?e.bind(t):e}var setTimeout$1=setTimeout=function(e){var t="setTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return safeBind(e[t],e)}(window),Promise$3=window.Promise,Promise$4=Promise$3=function(e){var t=window.Promise;return"function"==typeof t&&/native/.test(t)?t:e()}(function(){var t=setTimeout$1;function u(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new c(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!u(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function d(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){d(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)d(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!u(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a});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$1,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.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:undefined;function getRawTag$1(e){var t=hasOwnProperty$a.call(e,symToStringTag$1),n=e[symToStringTag$1];try{e[symToStringTag$1]=undefined;var i=!0}catch(o){}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$1,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=_Symbol?_Symbol.toStringTag:undefined;function baseGetTag$6(e){return null==e?e===undefined?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)&&(t="function"==typeof e.valueOf?e.valueOf():e,e=isObject$7(t)?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(i,n,e){var r,o,a,s,d,u,c=0,l=!1,p=!1,t=!0;if("function"!=typeof i)throw new TypeError(FUNC_ERROR_TEXT$2);function h(e){var t=r,n=o;return r=o=undefined,c=e,s=i.apply(n,t)}function f(e){var t=e-u;return u===undefined||n<=t||t<0||p&&a<=e-c}function g(){var e,t=now();if(f(t))return m(t);d=setTimeout$1(g,(e=n-((t=t)-u),p?nativeMin(e,a-(t-c)):e))}function m(e){return d=undefined,t&&r?h(e):(r=o=undefined,s)}function v(){var e=now(),t=f(e);if(r=arguments,o=this,u=e,t){if(d===undefined)return c=e=u,d=setTimeout$1(g,n),l?h(e):s;if(p)return clearTimeout(d),d=setTimeout$1(g,n),h(u)}return d===undefined&&(d=setTimeout$1(g,n)),s}return n=toNumber(n)||0,isObject$6(e)&&(l=!!e.leading,p="maxWait"in e,a=p?nativeMax$1(toNumber(e.maxWait)||0,n):a,t="trailing"in e?!!e.trailing:t),v.cancel=function(){d!==undefined&&clearTimeout(d),c=0,r=u=o=d=undefined},v.flush=function(){return d===undefined?s: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 new 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),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["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=coreJsData$1,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(t){}try{return e+""}catch(t){}}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?undefined:e[t]}var _getValue=getValue$1,baseIsNative=baseIsNative$1,getValue=getValue$1;function getNative$7(e,t){e=getValue(e,t);return baseIsNative(e)?e:undefined}var _getNative=getNative$7,getNative$6=_getNative,nativeCreate$4=_getNative(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){e=this.has(e)&&delete this.__data__[e];return this.size-=e?1:0,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?undefined:t:hasOwnProperty$8.call(n,e)?n[e]:undefined}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?t[e]!==undefined: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)?0:1,n[e]=nativeCreate&&t===undefined?HASH_UNDEFINED:t,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=hashHas$1,hashSet=hashSet$1;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?undefined: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$1,listCacheGet=listCacheGet$1,listCacheHas=listCacheHas$1,listCacheSet=listCacheSet$1;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(_root,"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$1;function getMapData$4(e,t){e=e.__data__;return isKeyable(t)?e["string"==typeof t?"string":"hash"]:e.map}var _getMapData=getMapData$4,getMapData$3=getMapData$4;function mapCacheDelete$1(e){e=getMapData$3(this,e)["delete"](e);return this.size-=e?1:0,e}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=getMapData$4;function mapCacheGet$1(e){return getMapData$2(this,e).get(e)}var _mapCacheGet=mapCacheGet$1,getMapData$1=getMapData$4;function mapCacheHas$1(e){return getMapData$1(this,e).has(e)}var _mapCacheHas=mapCacheHas$1,getMapData=getMapData$4;function mapCacheSet$1(e,t){var n=getMapData(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=mapCacheClear$1,mapCacheDelete=mapCacheDelete$1,mapCacheGet=mapCacheGet$1,mapCacheHas=mapCacheHas$1,mapCacheSet=mapCacheSet$1;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(i,r){if("function"!=typeof i||null!=r&&"function"!=typeof r)throw new TypeError(FUNC_ERROR_TEXT);var o=function(){var e=arguments,t=r?r.apply(this,e):e[0],n=o.cache;return n.has(t)?n.get(t):(e=i.apply(this,e),o.cache=n.set(t,e)||n,e)};return o.cache=new(memoize$1.Cache||MapCache$1),o}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$1,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=memoizeCapped$1(function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(rePropName,function(e,t,n,i){r.push(n?i.replace(reEscapeChar,"$1"):t||e)}),r}),_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?_Symbol.prototype:undefined,symbolToString=symbolProto$1?symbolProto$1.toString:undefined;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$1;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$2;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:undefined}var _baseGet=baseGet$2,baseGet$1=_baseGet;function get(e,t,n){e=null==e?undefined:baseGet$1(e,t);return e===undefined?n:e}var get_1=get,get$1=getDefaultExportFromCjs(get),toString=toString$2,idCounter=0;function uniqueId(e){var t=++idCounter;return toString(e)+t}var uniqueId_1=uniqueId,uniqueId$1=getDefaultExportFromCjs(uniqueId),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$1,stackDelete=stackDelete$1,stackGet=stackGet$1,stackHas=stackHas$1,stackSet=stackSet$1;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(t){}}(),_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)&&(n!==undefined||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):undefined;d===undefined&&(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$1,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:undefined,t=n?n.isBuffer:undefined;e.exports=t||stubFalse_1}(isBuffer$2,isBuffer$2.exports),isBuffer$2.exports),MAX_SAFE_INTEGER$1=9007199254740991,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=9007199254740991;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(t){return function(e){return t(e)}}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{var e=n&&n.require&&n.require("util").types;return e?e:i&&i.binding&&i.binding("util")}catch(t){}}();e.exports=t}(_nodeUtil,_nodeUtil.exports),_nodeUtil.exports),baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsTypedArray=_nodeUtilExports&&_nodeUtilExports.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(t,n){return function(e){return t(n(e))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=_overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=nativeKeys$1,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$1,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$1,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$1,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:undefined,i=n?n.allocUnsafe:undefined;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$1,stubArray$1=stubArray_1,objectProto$2=Object.prototype,propertyIsEnumerable=objectProto$2.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols$3=nativeGetSymbols$1?function(t){return null==t?[]:(t=Object(t),arrayFilter(nativeGetSymbols$1(t),function(e){return propertyIsEnumerable.call(t,e)}))}: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$2;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){t=t(e);return isArray$3(e)?t:arrayPush$1(t,n(e))}var _baseGetAllKeys=baseGetAllKeys$2,baseGetAllKeys$1=baseGetAllKeys$2,getSymbols=_getSymbols,keys$2=keys_1;function getAllKeys$1(e){return baseGetAllKeys$1(e,keys$2,getSymbols)}var _getAllKeys=getAllKeys$1,baseGetAllKeys=baseGetAllKeys$2,getSymbolsIn=getSymbolsIn$2,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(_root,"DataView"),_DataView=DataView$2,getNative$2=_getNative,root$3=_root,Promise$2=_getNative(_root,"Promise"),_Promise=Promise$2,getNative$1=_getNative,root$2=_root,Set$2=_getNative(_root,"Set"),_Set=Set$2,getNative=_getNative,root$1=_root,WeakMap$2=_getNative(_root,"WeakMap"),_WeakMap=WeakMap$2,DataView$1=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=WeakMap$2,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=getTag$3=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?function(e){var t=baseGetTag$1(e),e=t==objectTag$2?e.constructor:undefined,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$2;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){t=t?cloneArrayBuffer$2(e.buffer):e.buffer;return 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?_Symbol.prototype:undefined,symbolValueOf=symbolProto?symbolProto.valueOf:undefined;function cloneSymbol$1(e){return symbolValueOf?Object(symbolValueOf.call(e)):{}}var _cloneSymbol=cloneSymbol$1,cloneArrayBuffer$1=_cloneArrayBuffer;function cloneTypedArray$1(e,t){t=t?cloneArrayBuffer$1(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}var _cloneTypedArray=cloneTypedArray$1,cloneArrayBuffer=_cloneArrayBuffer,cloneDataView=_cloneDataView,cloneRegExp=_cloneRegExp,cloneSymbol=cloneSymbol$1,cloneTypedArray=cloneTypedArray$1,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 t(){}return function(e){if(!isObject$1(e))return{};if(objectCreate)return objectCreate(e);t.prototype=e;e=new t;return t.prototype=undefined,e}}(),_baseCreate=baseCreate$1,baseCreate=baseCreate$1,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$1,baseUnary$1=_baseUnary,nodeUtil$1=_nodeUtilExports,nodeIsMap=_nodeUtilExports&&_nodeUtilExports.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$1,baseUnary=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsSet=_nodeUtilExports&&_nodeUtilExports.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(n,i,r,e,t,o){var a,s=i&CLONE_DEEP_FLAG$1,d=i&CLONE_FLAT_FLAG$1,u=i&CLONE_SYMBOLS_FLAG$1;if((a=r?t?r(n,e,t,o):r(n):a)===undefined){if(!isObject(n))return n;e=isArray$2(n);if(e){if(a=initCloneArray(n),!s)return copyArray(n,a)}else{var c=getTag(n),l=c==funcTag||c==genTag;if(isBuffer(n))return cloneBuffer(n,s);if(c==objectTag$1||c==argsTag||l&&!t){if(a=d||l?{}:initCloneObject(n),!s)return d?copySymbolsIn(n,baseAssignIn(a,n)):copySymbols(n,baseAssign(a,n))}else{if(!cloneableTags[c])return t?n:{};a=initCloneByTag(n,c,s)}}l=(o=o||new Stack).get(n);if(l)return l;o.set(n,a),isSet(n)?n.forEach(function(e){a.add(baseClone$1(e,i,r,e,n,o))}):isMap(n)&&n.forEach(function(e,t){a.set(t,baseClone$1(e,i,r,t,n,o))});var p=e?undefined:(u?d?getAllKeysIn$1:getAllKeys:d?keysIn:keys$1)(n);arrayEach$1(p||n,function(e,t){p&&(e=n[t=e]),assignValue(a,t,baseClone$1(e,i,r,t,n,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]:undefined}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$1;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$1,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)?undefined:e}var _customOmitClone=customOmitClone$1,Symbol$1=_Symbol,isArguments=isArguments_1,isArray$1=isArray_1,spreadableSymbol=_Symbol?_Symbol.isConcatSpreadable:undefined;function isFlattenable$1(e){return isArray$1(e)||isArguments(e)||!!(spreadableSymbol&&e&&e[spreadableSymbol])}var _isFlattenable=isFlattenable$1,arrayPush=_arrayPush,isFlattenable=isFlattenable$1;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$1;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$1,nativeMax=Math.max;function overRest$1(o,a,s){return a=nativeMax(a===undefined?o.length-1:a,0),function(){for(var e=arguments,t=-1,n=nativeMax(e.length-a,0),i=Array(n);++t<n;)i[t]=e[a+t];for(var t=-1,r=Array(a+1);++t<a;)r[t]=e[t];return r[a]=s(i),apply(o,this,r)}}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(n){var i=0,r=0;return function(){var e=nativeNow(),t=HOT_SPAN-(e-r);if(r=e,0<t){if(++i>=HOT_COUNT)return arguments[0]}else i=0;return n.apply(undefined,arguments)}}var _shortOut=shortOut$1,baseSetToString=_baseSetToString,shortOut=shortOut$1,setToString$1=shortOut$1(_baseSetToString),_setToString=setToString$1,flatten=flatten_1,overRest=_overRest,setToString=setToString$1;function flatRest$1(e){return setToString(overRest(e,undefined,flatten),e+"")}var _flatRest=flatRest$1,arrayMap=_arrayMap,baseClone=_baseClone,baseUnset=_baseUnset,castPath=_castPath,copyObject=_copyObject,customOmitClone=_customOmitClone,flatRest=flatRest$1,getAllKeysIn=_getAllKeysIn,CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4,omit=flatRest$1(function(t,e){var n={};if(null!=t)for(var i=!1,r=(e=arrayMap(e,function(e){return e=castPath(e,t),i=i||1<e.length,e}),copyObject(t,getAllKeysIn(t),n),i&&(n=baseClone(n,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone)),e.length);r--;)baseUnset(n,e[r]);return n}),omit_1=omit,omit$1=getDefaultExportFromCjs(omit);function doesExist(e){return!(null==e)}const 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};const createMessage=(e,t,n)=>{e=new Message(e,t,n);return 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):undefined);return s.requestId=o,s.sender=a,s.destination=e.source,s.isResponse=i,s}catch(d){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():undefined:t),t},asResponse=e=>(e.isResponse=!0,e),pipe=(...e)=>r=>{return[].concat(e).reduce((e,t,n,i)=>{e=t(e,r);return e||i.splice(n,i.length-n),e},r)},tap=n=>(e,...t)=>(n(e,...t),e);function createBaseFor$1(d){return function(e,t,n){for(var i=-1,r=Object(e),o=n(e),a=o.length;a--;){var s=o[d?a:++i];if(!1===t(r[s],s,r))break}return e}}var _createBaseFor=createBaseFor$1,createBaseFor=createBaseFor$1,baseFor$1=createBaseFor$1(),_baseFor=baseFor$1,baseFor=baseFor$1,keys=keys_1;function baseForOwn$1(e,t){return e&&baseFor(e,t,keys)}var _baseForOwn=baseForOwn$1,isArrayLike=isArrayLike_1;function createBaseEach$1(o,a){return function(e,t){if(null!=e){if(!isArrayLike(e))return o(e,t);for(var n=e.length,i=a?n:-1,r=Object(e);(a?i--:++i<n)&&!1!==t(r[i],i,r););}return e}}var _createBaseEach=createBaseEach$1,baseForOwn=baseForOwn$1,createBaseEach=createBaseEach$1,baseEach$1=createBaseEach$1(baseForOwn$1),_baseEach=baseEach$1,identity=identity_1;function castFunction$1(e){return"function"==typeof e?e:identity}var _castFunction=castFunction$1,arrayEach=_arrayEach,baseEach=baseEach$1,castFunction=castFunction$1,isArray=isArray_1;function forEach(e,t){return(isArray(e)?arrayEach:baseEach)(e,castFunction(t))}var forEach_1=forEach,each=forEach,each$1=getDefaultExportFromCjs(forEach);const 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):(e=Date.now()-state$1.lastMessageReceivedAt,isConnected(e)?setConnectionStatus(connected):isDisconnected(e)&&(isDead(e)?setConnectionStatus(dead):setConnectionStatus(disconnected)),triggerEval())};let stopFn;const start=(e=0)=>{const t=setInterval(evaluateConnectionQuality,100);stopFn=()=>clearInterval(t)},stop=()=>{stopFn&&stopFn(),resetMonitor()};let _listenerId=0;const onStatusEval=e=>{if(isFunction$3(e)){const 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:undefined,connectionName:undefined,frameId:undefined,pendingRequests:{},topics:{},senderIds:{},originProvider:undefined,destinationProvider:undefined},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()):(r=new MessageChannel,addPort(r.port1,e.sender),t.postMessage(n,state.originProvider(),[r.port2]))},promise=(r,o,a=1e3)=>new Promise$4((e,t)=>{const n=createMessage(r,MESSAGE_PROMISE,o),i=setTimeout$1(()=>{t(r+" timeout"),clearPendingRequest(n),downgradeToPostMessage(n)},a);addPendingRequest(n,()=>clearTimeout(i),e,t),_send(n)}),addSenderId=e=>{state.senderIds[e]||(state.senderIds[e]={port:undefined,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=t=>{var e=state.topics[t.name];return e&&e.forEach(e=>e(t.data)),t},PING_MSG="message::ping",sendPing=()=>{promise(PING_MSG)["catch"](()=>{console.log("message::ping timedout")})},dispatchMessage=t=>{var e;return t&&!t.isResponse&&(t.name===PING_MSG?_send(asResponse(t)):(e=state.routeHandlerLookup(t.name))?e(t,e=>{t.data=e,_send(asResponse(t))}):console.log(getListener(),"No route handler for "+t.name,t)),t},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);t.port=e,t.hasTriedToUpgradeToMessageChannel=!0,t.port.onmessage=pipe(fromEvent,commonFns)},removePort=e=>{e=getSenderInfo(e);e.port=undefined,e.hasTriedToUpgradeToMessageChannel=!1},upgradeToChannel=(e,t)=>{return!getSenderInfo(e.sender).hasTriedToUpgradeToMessageChannel&&t.ports&&t.ports[0]&&addPort(t.ports[0],e.sender),e},downgradeToPostMessage=e=>{removePort(e.sender)};let _stopListening=()=>{};const 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);const s=pipe(filterWrongOrigin,filterWrongSender,fromEvent,upgradeToChannel,commonFns);window.addEventListener("message",s),_stopListening=()=>window.removeEventListener("message",s)}};function VocPortal(){let r,p;return{name:"VocPortal",initialize:function(e,t){r=e;e=(p=t).EventTracer.addTracerIds({}).frameId;this.removeResizeEvent=r.attachEvent(window,"resize",h),startListening("VocPortal",e,n,()=>"*")},routeHandlerLookup:n,queryMessageHandler:t,resizeMessageHandler:i,teardown:function(){this.removeResizeEvent&&this.removeResizeEvent();stopListening()}};function n(e){switch(e){case"pendo-voc::query":return t;case"pendo-voc::resize":return i;default:return undefined}}function h(){var e=document.getElementById("pendo-resource-center-container"),e=r.dom(e);p.sizeElements(e)}function t(e,t){var n=r.getSerializedMetadata(),i=!!r.designer||p.store.getters["preview/isInPreviewMode"]();t({apiKey:r.apiKey,url:r.url.externalizeURL(),visitor:n.visitor,account:n.account,parentAccount:n.parentAccount,sandboxMode:i})}function i(e){try{var t,n,i,r,{value:o,unit:a,isImportant:s}=e.data.width,{value:d,unit:u,isImportant:c}=e.data.height;"number"==typeof o&&"number"==typeof d&&((t=["px","%","vh","vw"]).includes(a)&&t.includes(u))&&(n=""+o+a+(s?" !important":""),i=""+d+u+(c?" !important":""),r=document.getElementById("pendo-resource-center-container"),p.util.addInlineStyles("pendo-voc-portal-styles",`#pendo-resource-center-container:has(iframe[src*="portal"][src*="mode=rc"]) {
|
|
112
|
+
`.trim()))})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}};function GuideMarkdown(){let r,o,a;return{name:"GuideMarkdown",initialize:function(e,t){a=e;var n=(o=t).ConfigReader,i="guideMarkdown",i=(n.addOption(i,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),n.get(i));i&&(r=[PollBranching,MetadataSubstitution,RequiredQuestions,SkipToEligibleStep],e.designer||r.forEach(e=>{t.GlobalRuntime.addGlobalScript(e)}),t.Events.on("designerLaunched",s))},teardown:function(){o.Events.off("designerLaunched",s),r.forEach(e=>{o.GlobalRuntime.removeGlobalScript(e)})}};function s(){r.forEach(e=>{e.designerListener&&e.designerListener(a,o)})}}var setTimeout=safeBind(window.setTimeout,window);function safeBind(e,t){return"function"==typeof e.bind?e.bind(t):e}var setTimeout$1=setTimeout=function(e){var t="setTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return safeBind(e[t],e)}(window),Promise$1=window.Promise,Promise$2=Promise$1=function(e){var t=window.Promise;return"function"==typeof t&&/native/.test(t)?t:e()}(function(){var t=setTimeout$1;function u(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],c(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void c((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function l(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function c(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new l(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!u(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function d(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){d(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)d(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!u(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a});const pipe=(...e)=>r=>{return[].concat(e).reduce((e,t,n,i)=>{e=t(e,r);return e||i.splice(n,i.length-n),e},r)},tap=n=>(e,...t)=>(n(e,...t),e);let idCounter=0;const uniqueId=(e="")=>e+(idCounter+=1),get=(e,t,n)=>{if(!e||"string"!=typeof t)return n;let i=e;for(const r of t.split(".")){if(null==i)return n;i=i[r]}return i===undefined?n:i},omit=(e,t)=>{if(!e||"object"!=typeof e)return{};var n=Array.isArray(t)?t:[t],i={};for(const r in e)e.hasOwnProperty(r)&&!n.includes(r)&&(i[r]=e[r]);return i},throttle=(i,r=0)=>{let o,a=0,s;return function(...e){var t=Date.now(),n=r-(t-a);return n<=0||r<n?(o&&(clearTimeout(o),o=null),a=t,s=i.apply(this,e)):!o&&0<r&&(o=setTimeout$1(()=>{a=Date.now(),o=null,s=i.apply(this,e)},n)),s}},each=(t,n)=>{if(t&&n)if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e],e,t);else if("object"==typeof t)for(const e in t)t.hasOwnProperty(e)&&n(t[e],e,t);return t},isFunction=e=>"function"==typeof e,doesExist=e=>!(null==e),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};const createMessage=(e,t,n)=>{e=new Message(e,t,n);return t===MESSAGE_PROMISE&&(e.requestId=uniqueId()),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):undefined);return s.requestId=o,s.sender=a,s.destination=e.source,s.isResponse=i,s}catch(d){return!1}},serialize=e=>{var t=omit(e,["destination","toString","data"]);return t.data=JSON.stringify(e.data,(e,t)=>"function"==typeof t||t instanceof RegExp?t.toString?t.toString():undefined:t),t},asResponse=e=>(e.isResponse=!0,e),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(state$1.changeCallbacks,e=>{e(state$1.currentConnectionQuality)})},triggerEval=()=>{each(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):(e=Date.now()-state$1.lastMessageReceivedAt,isConnected(e)?setConnectionStatus(connected):isDisconnected(e)&&(isDead(e)?setConnectionStatus(dead):setConnectionStatus(disconnected)),triggerEval())};let stopFn;const start=(e=0)=>{const t=setInterval(evaluateConnectionQuality,100);stopFn=()=>clearInterval(t)},stop=()=>{stopFn&&stopFn(),resetMonitor()};let _listenerId=0;const onStatusEval=e=>{if(isFunction(e)){const 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:undefined,connectionName:undefined,frameId:undefined,pendingRequests:{},topics:{},senderIds:{},originProvider:undefined,destinationProvider:undefined},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()):(r=new MessageChannel,addPort(r.port1,e.sender),t.postMessage(n,state.originProvider(),[r.port2]))},promise=(r,o,a=1e3)=>new Promise$2((e,t)=>{const n=createMessage(r,MESSAGE_PROMISE,o),i=setTimeout$1(()=>{t(r+" timeout"),clearPendingRequest(n),downgradeToPostMessage(n)},a);addPendingRequest(n,()=>clearTimeout(i),e,t),_send(n)}),addSenderId=e=>{state.senderIds[e]||(state.senderIds[e]={port:undefined,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=t=>{var e=state.topics[t.name];return e&&e.forEach(e=>e(t.data)),t},PING_MSG="message::ping",sendPing=()=>{promise(PING_MSG)["catch"](()=>{console.log("message::ping timedout")})},dispatchMessage=t=>{var e;return t&&!t.isResponse&&(t.name===PING_MSG?_send(asResponse(t)):(e=state.routeHandlerLookup(t.name))?e(t,e=>{t.data=e,_send(asResponse(t))}):console.log(getListener(),"No route handler for "+t.name,t)),t},commonFns=pipe(resolveRequest,updateSubscriptions,dispatchMessage,tap(()=>{markTime()})),filterWrongOrigin=e=>("*"===state.originProvider()||e.origin===state.originProvider())&&e,filterWrongSender=e=>{var t=get(e,"data.sender");return!(!t||"string"!=typeof t||!t.includes(state.appName))&&e},addPort=(e,t)=>{t=getSenderInfo(t);t.port=e,t.hasTriedToUpgradeToMessageChannel=!0,t.port.onmessage=pipe(fromEvent,commonFns)},removePort=e=>{e=getSenderInfo(e);e.port=undefined,e.hasTriedToUpgradeToMessageChannel=!1},upgradeToChannel=(e,t)=>{return!getSenderInfo(e.sender).hasTriedToUpgradeToMessageChannel&&t.ports&&t.ports[0]&&addPort(t.ports[0],e.sender),e},downgradeToPostMessage=e=>{removePort(e.sender)};let _stopListening=()=>{};const stopListening=()=>{_stopListening(),_stopListening=()=>{},stop()},notConnectedListener=throttle(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);const s=pipe(filterWrongOrigin,filterWrongSender,fromEvent,upgradeToChannel,commonFns);window.addEventListener("message",s),_stopListening=()=>window.removeEventListener("message",s)}};function VocPortal(){let r,p;return{name:"VocPortal",initialize:function(e,t){r=e;e=(p=t).EventTracer.addTracerIds({}).frameId;this.removeResizeEvent=r.attachEvent(window,"resize",h),startListening("VocPortal",e,n,()=>"*")},routeHandlerLookup:n,queryMessageHandler:t,resizeMessageHandler:i,teardown:function(){this.removeResizeEvent&&this.removeResizeEvent();stopListening()}};function n(e){switch(e){case"pendo-voc::query":return t;case"pendo-voc::resize":return i;default:return undefined}}function h(){var e=document.getElementById("pendo-resource-center-container"),e=r.dom(e);p.sizeElements(e)}function t(e,t){var n=r.getSerializedMetadata(),i=!!r.designer||p.store.getters["preview/isInPreviewMode"]();t({apiKey:r.apiKey,url:r.url.externalizeURL(),visitor:n.visitor,account:n.account,parentAccount:n.parentAccount,sandboxMode:i})}function i(e){try{var t,n,i,r,{value:o,unit:a,isImportant:s}=e.data.width,{value:d,unit:u,isImportant:l}=e.data.height;"number"==typeof o&&"number"==typeof d&&((t=["px","%","vh","vw"]).includes(a)&&t.includes(u))&&(n=""+o+a+(s?" !important":""),i=""+d+u+(l?" !important":""),r=document.getElementById("pendo-resource-center-container"),p.util.addInlineStyles("pendo-voc-portal-styles",`#pendo-resource-center-container:has(iframe[src*="portal"][src*="mode=rc"]) {
|
|
113
113
|
width: ${n};
|
|
114
114
|
height: ${i};
|
|
115
115
|
._pendo-step-container-size {
|
|
116
116
|
width: ${n};
|
|
117
117
|
height: ${i};
|
|
118
118
|
}
|
|
119
|
-
}`,r),h())}catch(
|
|
119
|
+
}`,r),h())}catch(c){p.log.error("Error while adjusting RC module",c)}}}function isFeedbackOn(e){return e.ConfigReader.get("pendoFeedback")}function isUnsupportedIE(e){return!e.sniffer.isMinimumIEVersion(10)}function Feedback(){var i="feedback_notification_count",a="",s="",d="",r="",o=!1,u="",l=!1;const c="feedback_ping_sent",D=36e5;var 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"};let h,f;return{name:"Feedback",initialize:function(e,t){h=e,f=t;var n={ping:w,init:L,initialized:j,loginAndRedirect:C,openFeedback:A,initializeFeedbackOnce:E,isFeedbackLoaded:z,convertPendoToFeedbackOptions:F,isUnsupportedIE:e._.partial(isUnsupportedIE,t),removeFeedbackWidget:P};return e.feedback=n,e.getFeedbackSettings=W,t.Events.identify.on(m),t.Events.metadata.on(m),t.Events.ready.on(v),t.agentStorage.registry.addLocal(i),t.agentStorage.registry.addLocal(c),{validate:g}},teardown:function(){P(),f.Events.identify.off(m),f.Events.metadata.off(m),f.Events.ready.off(v),delete h.feedback,delete h.getFeedbackSettings},validate:g};function g(e,t){t=isFeedbackOn(t);return t&&isUnsupportedIE(e)?(console.warn("The current version of IE is not supported by Pendo Feedback"),!1):t}function t(){var e=M();l?w(F(e)):!isFeedbackOn(f)||f.ConfigReader.get("disableFeedbackAutoInit")||f.ConfigReader.get("disableFeedback",!1)||h._.isEmpty(e)||L(e,f.ConfigReader.get("feedbackSettings"))["catch"](h._.noop)}function m(e){e=h._.get(e,"data.0.visitor_id")||h._.get(e,"data.0.options.visitor.id");(h.isAnonymousVisitor(e)?P:t)()}function v(){t()}function y(){return d+"/html/widget/notLoaded.html"}function n(e){return e=e||F(M()),f.agentStorage.read(c)===b(e)}function b(e){return JSON.stringify(e)}function w(e){if(!n(e)){t=e,f.agentStorage.write(c,b(t),D);t=S(e);if(t.data&&"{}"!==t.data&&"null"!==t.data)return h.ajax.postJSON(a+"/widget/pendo_ping",t).then(e=>{e=e.data.notifications;f.agentStorage.write(i,e),I()})["catch"](()=>{f.agentStorage.clear(c)})}var t;return f.q.resolve()}function S(e){return e=e||F(M()),{data:JSON.stringify(e)}}function I(){var e,t=h.dom("#feedback-trigger-notification");0!==t.length&&(e=f.agentStorage.read(i)||0,0<parseInt(e,10)?h._.each(t,function(e){h.dom(e).css({visibility:"visible"})}):h._.each(t,function(e){h.dom(e).css({visibility:"hidden"})}))}function E(){return l&&n()?f.q.resolve():L(M(),f.ConfigReader.get("feedbackSettings"))}function C(e){return E().then(function(){if(h._.isUndefined(e)&&(e={}),"A"===h._.get(e,"anchor.nodeName","").toUpperCase())return t=window.open(y(),Math.random().toString(36).substring(7)),_().then(function(e){t.location=e}),!1;var t;_().then(function(e){window.location.href=e})},function(){})}function x(e){var t=document.createElement("a");return t.href=e,t.host}function _(){var e=S();if(e.data&&"{}"!==e.data&&"null"!==e.data)return h.ajax.postJSON(a+"/widget/token",e).then(function(e){var t;return t=e.data.login_url,r=x(t),e.data.login_url})}function T(){return document.getElementById(p.feedbackWidget)}function k(){return document.getElementById(p.feedbackIframe)}function R(){var e=k();return e||(B(),e=k()),e}function A(e){var t,n;H()&&(e&&e.preventDefault&&e.preventDefault(),(t=R()).src&&t.src!==y()||_().then(function(e){t.src=e+"&inWidget=true"}),(e=h.dom("#"+p.feedbackWidget))&&((n=h.dom(document.createElement("div"))).attr("id","feedback-overlay"),n.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"}),n.appendTo(e.getParent())),h.dom.addClass(T(),"visible"),N("user.widget.opened"))}function O(){var e,t;e=document.getElementById(p.feedbackWidget),t=document.getElementById(p.feedbackOverlay),e&&t&&(e=document.getElementById(p.feedbackOverlay)).parentNode.removeChild(e),h.dom.removeClass(T(),"visible"),N("user.widget.closed")}function N(e){var t=S();t.event=e,h.ajax.postJSON(a+"/analytics",t)}function U(){window.addEventListener("message",function(e){var t=e.origin||e.originalEvent.origin;if(t=t,r?x(t)===r:x(t)===x(d)){var t=e.data.message,n=e.data.data;switch(t){case"close-receptive-widget":O();break;case"open-receptive":C();break;case"update-receptive-notification-count":f.agentStorage.write(i,n.count),I();break;case"handle-logout":R().src=y(),O();break;case"loaded-receptive-widget":o=!0}}},!1)}function G(e){var t,n,i=h._.extend(e,{triggerColor:"#"+e.triggerColor,triggerPosition:e.triggerPosition.toLowerCase()}),r=("undefined"!=typeof Turbolinks&&document.addEventListener("turbolinks:before-visit",function(e){var t=document.getElementById(p.feedbackIframe);t&&(t.src=y())}),function(e){e=e.triggerPosition.split("_");return{horizontalPosition:e[1],verticalPosition:e[0]}}(i));f.util.addInlineStyles(p.feedbackStyles,(n="left"===(n=r.horizontalPosition)?(t="@-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%}}"):(t="@-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)}}"+t+"@-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}}"+n+"#feedback-trigger button:focus,#feedback-trigger button:hover{box-shadow:0 -5px 20px rgba(0,0,0,.19);outline:0;background:#3e566f}")),e.customTrigger||(t=i,n=r,f.util.addInlineStyles("pendo-feedback-trigger-styles",`
|
|
120
120
|
#feedback-trigger button:hover {
|
|
121
121
|
box-shadow: 0 -5px 20px rgba(0,0,0,.19) !important;
|
|
122
122
|
outline: none !important;
|
|
@@ -127,7 +127,7 @@ var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{
|
|
|
127
127
|
outline: none !important;
|
|
128
128
|
background: #3e566f !important;
|
|
129
129
|
}
|
|
130
|
-
`),e=function(e){var t=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"}}(e),e=function(e){switch(e.verticalPosition){case"top":return{top:" 10%"};case"middle":return{top:" 45%"};case"bottom":return{bottom:" 20%"}}}(e),t=h._.extend({position:"fixed",height:"43px",opacity:"1 !important","z-index":"9001"},t,e),e=h.dom(document.createElement("div"));return e.attr("id",p.feedbackTrigger),e.css(t),e.attr("data-turbolinks-permanent",""),e}(n),i=function(){var e=h.dom(document.createElement("span"));return e.attr("id","feedback-trigger-notification"),e.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"}),e}(),t=function(e,t){let n;n="left"===t.horizontalPosition?"0 0 5px 5px":"3px 3px 0 0";var t={border:"none",padding:"11px 18px 14px 18px","background-color":e.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=h.dom(document.createElement("button"));return i.attr("id",p.feedbackTriggerButton),i.css(t),i.text(e.triggerText),i}(t,n),e.append(i),e.append(t),e.appendTo(h.dom.getBody()),f.attachEvent(t[0],"click",
|
|
130
|
+
`),e=function(e){var t=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"}}(e),e=function(e){switch(e.verticalPosition){case"top":return{top:" 10%"};case"middle":return{top:" 45%"};case"bottom":return{bottom:" 20%"}}}(e),t=h._.extend({position:"fixed",height:"43px",opacity:"1 !important","z-index":"9001"},t,e),e=h.dom(document.createElement("div"));return e.attr("id",p.feedbackTrigger),e.css(t),e.attr("data-turbolinks-permanent",""),e}(n),i=function(){var e=h.dom(document.createElement("span"));return e.attr("id","feedback-trigger-notification"),e.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"}),e}(),t=function(e,t){let n;n="left"===t.horizontalPosition?"0 0 5px 5px":"3px 3px 0 0";var t={border:"none",padding:"11px 18px 14px 18px","background-color":e.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=h.dom(document.createElement("button"));return i.attr("id",p.feedbackTriggerButton),i.css(t),i.text(e.triggerText),i}(t,n),e.append(i),e.append(t),e.appendTo(h.dom.getBody()),f.attachEvent(t[0],"click",A)),B(r.horizontalPosition)}function B(e){t=`
|
|
131
131
|
.buttonIs-${t="left"===(t=e)?"left":"right"}.visible {
|
|
132
132
|
${t}: 0 !important;
|
|
133
133
|
width: 470px !important;
|
|
@@ -136,4 +136,4 @@ var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{
|
|
|
136
136
|
-webkit-animation: pendoFeedbackSlideFrom-${t} 0.5s 0s 1 alternate both !important;
|
|
137
137
|
z-index: 9002 !important;
|
|
138
138
|
}
|
|
139
|
-
`,f.util.addInlineStyles(p.feedbackFrameStyles,t),t=e,(e=h.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"}),e.attr("id",p.feedbackWidget),e.attr("data-turbolinks-permanent","true"),e.addClass("buttonIs-"+t);var t=e;t.append(((e=h.dom(document.createElement("iframe"))).css({width:"100%",height:"99.6%",border:"0 none"}),e.attr("id",p.feedbackIframe),e.attr("title","Feedback"),e.attr("src",y()),e)),t.appendTo(h.dom.getBody()),D()}function j(){return o}function N(){let e=f.ConfigReader.getLocalConfig();return h._.isObject(e)||(e={}),h._.isObject(e.visitor)||(e.visitor={}),h._.isObject(e.account)||(e.account={}),e}function B(e){e=e||N();if(!isUnsupportedIE(h)&&s&&a&&d&&u)if(h._.get(e.visitor,"id")){if(!h.isAnonymousVisitor(e.visitor.id)){if(h._.get(e.account,"id"))return 1;h.log("The current visitor is not associated with an account.")}}else h.log("Not valid visitor id")}function L(e,t){if(s=t.vendorId,a=t.apiUrl,d=t.siteUrl,u=t.productId,c)return f.q.reject();if(!B(e))return f.q.reject();var n,i,e=P(e);try{n=h.url.get(),i="fdbkDst";const o=null!=(i=new RegExp("[?&]"+i+"=([^&#]*)").exec(n))&&decodeURI(i[1])||null;if(o&&o.startsWith("case"))return c=!0,void T().then(function(e){e=e+"&fdbkDst="+o;window.location.href=e})}catch(r){c=!1,h.log(r,"unhandled error while checking feedback destination")}try{return c=!0,"WIDGET"===t.type&&U(t),I(),w(e)}catch(r){return c=!1,h.log(r,"unhandled error while initializing feedback"),f.q.reject(r)}}function P(e){var t,n,i=f.agent.getJwtInfoCopy();return h._.isEmpty(i)?((t={}).user=h._.pick(e.visitor,"id","full_name","firstName","lastName","email","tags","custom_allowed_products"),h._.extend(t.user,{allowed_products:[{id:u}]}),t.account=h._.pick(e.account,"id","name","monthly_value","is_paying","tags"),h._.extend(t,{vendor:{id:s}}),h._.isUndefined(t.account.is_paying)&&(t.account.is_paying=!0),null!=t.user.email&&""!=t.user.email||(t.user.email=(e=t,h._.isUndefined(e.user)||h._.isUndefined(e.user.id)?"noemail+"+h.randomString(32)+"@pendo.io":"noemail+"+e.user.id+"@pendo.io")),null!=t.user.full_name&&""!=t.user.full_name||(t.user.full_name=(e=t,h._.isUndefined(e.user.firstName)&&h._.isUndefined(e.user.lastName)?h._.isUndefined(e.user)||h._.isUndefined(e.user.id)?"No Name Provided"+h.randomString(32):"No Name Provided"+e.user.id:(n=[],h._.isUndefined(e.user.firstName)||n.push(e.user.firstName),h._.isUndefined(e.user.lastName)||n.push(e.user.lastName),n.join(" ")))),t):(e=JSON.parse(JSON.stringify(i)),h._.extend(e,{vendor:{id:s}}),h._.extend(e,{allowed_products:[{id:u}]}),e)}function z(){return c}function F(){h._.each(h._.values(p),function(e){h.dom("#"+e).remove()}),u=r=d=s=a="",c=o=!1,f.agentStorage.clear(i),f.agentStorage.clear(l)}function H(){return JSON.parse(JSON.stringify(f.ConfigReader.get("feedbackSettings",{})))}}function URLPolyfillFactory(n){return function URL(e){var t=n.createElement("a");if(t.href=e,":"===t.protocol)throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");if(t.href!==e&&t.href!==encodeURI(e))throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");return t.toString||(t.toString=function(){return t.href}),null==t.origin&&(t.origin=t.protocol+"//"+t.hostname,"80"!==t.port)&&"443"!==t.port&&(t.origin+=":"+t.port),t}}var URL$1=function(e){var t=window.URL;return"function"==typeof t&&/native/.test(t)?t:e(document)}(URLPolyfillFactory);function record(){var t,a=Object.defineProperty,s=(e,t,n)=>{return n=n,(t="symbol"!=typeof t?t+"":t)in(e=e)?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},d=Object.defineProperty,u=(e,t,n)=>{return n=n,(t="symbol"!=typeof t?t+"":t)in(e=e)?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},P=(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))(P||{});const c={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},g={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},m={};function v(e){if(m[e])return m[e];var t=function(e){var t,n=null==(t=null==(n=null==globalThis?void 0:globalThis.Zone)?void 0:n.__symbol__)?void 0:t.call(n,e);if(n&&globalThis[n])return globalThis[n]}(e)||globalThis[e];const n=t.prototype;var i=e in c?c[e]:void 0,i=Boolean(i&&i.every(e=>{return Boolean(null==(e=null==(e=Object.getOwnPropertyDescriptor(n,e))?void 0:e.get)?void 0:e.toString().includes("[native code]"))})),r=e in g?g[e]:void 0,r=Boolean(r&&r.every(e=>{return"function"==typeof n[e]&&(null==(e=n[e])?void 0:e.toString().includes("[native code]"))}));if(i&&r)return m[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?m[e]=o:n):t.prototype}catch{return n}}const y={};function n(e,t,n){var i=e+"."+String(n);return y[i]?y[i].call(t):(e=v(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(y[i]=e).call(t):t[n])}const b={};function w(e,t,n){var i=e+"."+String(n);return b[i]?b[i].bind(t):"function"!=typeof(e=v(e)[n])?t[n]:(b[i]=e).bind(t)}const F={childNodes:function(e){return n("Node",e,"childNodes")},parentNode:function(e){return n("Node",e,"parentNode")},parentElement:function(e){return n("Node",e,"parentElement")},textContent:function(e){return n("Node",e,"textContent")},contains:function(e,t){return w("Node",e,"contains")(t)},getRootNode:function(e){return w("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?n("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?n("Element",e,"shadowRoot"):null},querySelector:function(e,t){return n("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return n("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return v("MutationObserver").constructor},patch:function(e,t,n){try{if(!(t in e))return()=>{};const r=e[t];var i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}};function V(e){return e.nodeType===e.ELEMENT_NODE}function $(e){var t=e&&"host"in e&&"mode"in e&&F.host(e)||null;return Boolean(t&&"shadowRoot"in t&&F.shadowRoot(t)===e)}function D(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function S(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]}const U="undefined"!=typeof window?S("setTimeout").bind(window):global.setTimeout;function A(e){try{var n=e.rules||e.cssRules;if(!n)return null;let t=e.href;!t&&e.ownerNode&&e.ownerNode.ownerDocument&&(t=e.ownerNode.ownerDocument.baseURI);var i=Array.from(n,e=>I(e,t)).join("");return r=(r=i).includes(" background-clip: text;")&&!r.includes(" -webkit-background-clip: text;")?r.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"):r}catch(t){return null}var r}function I(t,n){var i,r;if("styleSheet"in t){let e;try{e=A(t.styleSheet)||((r=(i=t).cssText).split('"').length<3?r:(r=["@import",`url(${JSON.stringify(i.href)})`],""===i.layerName?r.push("layer"):i.layerName&&r.push(`layer(${i.layerName})`),i.supportsText&&r.push(`supports(${i.supportsText})`),i.media.length&&r.push(i.media.mediaText),r.join(" ")+";"))}catch(o){e=t.cssText}return null!=(i=null==t?void 0:t.styleSheet)&&i.href?f(e,t.styleSheet.href):e}{let e=t.cssText;return"selectorText"in t&&(e=function(t){var e=t.cssText.includes("grid-template:"),n=""!==t.style.getPropertyValue("grid-template-areas"),i=t.cssText.includes("grid-template-areas:");if(e&&n&&!i){var r=[];for(let e=0;e<t.style.length;e++){var o=t.style[e],a=t.style.getPropertyValue(o);r.push(o+": "+a)}return`${t.selectorText} { ${r.join("; ")}; }`}return t.cssText}(t),t.selectorText.includes(":"))&&(e=e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),n?f(e,n):e}}class ue{constructor(){u(this,"idNodeMap",new Map),u(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 K({element:e,maskInputOptions:t,tagName:n,type:i,value:r,maskInputFn:o,needsMask:a}){let s=r||"";r=i&&x(i);return s=t[n.toLowerCase()]||r&&t[r]||a?o?o(s,e):"*".repeat(s.length):s}function x(e){return e.toLowerCase()}const O="__rrweb_original__";function J(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?x(t):null}function Z(e,t){let n;try{n=new URL$1(e,t??window.location.href)}catch(i){return null}e=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==e?void 0:e[1])??null}const _=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,E=/^(?:[a-z+]+:)?\/\//i,C=/^www\..*/i,T=/^(data:)([^,]*),(.*)/i;function f(e,d){return(e||"").replace(_,(e,t,n,i,r,o)=>{n=n||r||o,r=t||i||"";if(!n)return e;if(E.test(n)||C.test(n))return`url(${r}${n}${r})`;if(T.test(n))return`url(${r}${n}${r})`;if("/"===n[0])return`url(${r}${function(e){let t="";return t=(t=-1<e.indexOf("//")?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}(d)+n}${r})`;var a=d.split("/"),o=n.split("/");a.pop();for(const s of o)"."!==s&&(".."===s?a.pop():a.push(s));return`url(${r}${a.join("/")}${r})`})}function R(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function M(e,t){return function(a,e,s=!1){var d=Array.from(e.childNodes),u=[];let c=0;if(1<d.length&&a&&"string"==typeof a){let o=R(a,s);var l=o.length/a.length;for(let r=1;r<d.length;r++)if(d[r].textContent&&"string"==typeof d[r].textContent){var p,h=R(d[r].textContent,s);let i=3;for(;i<h.length&&(h[i].match(/[a-zA-Z0-9]/)||-1!==h.indexOf(h.substring(0,i),1));i++);for(;i<h.length;i++){let e=h.substring(0,i),t=o.split(e),n=-1;if(2===t.length)n=t[0].length;else if(2<t.length&&""===t[0]&&""!==d[r-1].textContent)n=o.indexOf(e,1);else if(1===t.length){if(e=e.substring(0,e.length-1),(t=o.split(e)).length<=1)return u.push(a),u;i=101}else i===h.length-1&&(n=o.indexOf(e));if(-1!==(n=2<=t.length&&100<i&&((p=d[r-1].textContent)&&"string"==typeof p&&(p=R(p).length,n=o.indexOf(e,p)),-1===n)?t[0].length:n)){let e=Math.floor(n/l);for(;0<e&&e<a.length;){if((c+=1)>50*d.length)return u.push(a),u;var f=R(a.substring(0,e),s);if(f.length===n){u.push(a.substring(0,e)),a=a.substring(e),o=o.substring(n);break}f.length<n?e+=Math.max(1,Math.floor((n-f.length)/l)):e-=Math.max(1,Math.floor((f.length-n)*l))}break}}}}return u.push(a),u}(e,t).join("/* rr_split */")}let Y=1;const N=new RegExp("[^a-z0-9-_:]"),G=-2;function ce(){return Y++}let k,le;const pe=/^[^ \t\n\r\u000c]+/,he=/^[, \t\n\r\u000c]+/;function fe(i,r){if(""===r.trim())return r;let o=0;function e(e){var e=e.exec(r.substring(o));return e?(e=e[0],o+=e.length,e):""}for(var a=[];e(he),!(o>=r.length);){let n=e(pe);if(","===n.slice(-1))n=me(i,n.substring(0,n.length-1)),a.push(n);else{let e="",t=(n=me(i,n),!1);for(;;){var s=r.charAt(o);if(""===s){a.push((n+e).trim());break}if(t)")"===s&&(t=!1);else{if(","===s){o+=1,a.push((n+e).trim());break}"("===s&&(t=!0)}e+=s,o+=1}}}return a.join(", ")}const ge=new WeakMap;function me(e,t){return t&&""!==t.trim()?ve(e,t):t}function ve(e,t){let n=ge.get(e);if(n||(n=e.createElement("a"),ge.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function ye(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?fe(e,i):"style"===n?f(i,ve(e)):"object"===t&&"data"===n?me(e,i):i:me(e,i))}function be(e,t){return("video"===e||"audio"===e)&&"autoplay"===t}function we(t,n,e){if(!t)return!1;if(!n)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!e&&we(F.parentNode(t),n,e);for(let e=t.classList.length;e--;){var i=t.classList[e];if(n.test(i))return!0}return!!e&&we(F.parentNode(t),n,e)}function Se(e,t,n,i){let r;if(V(e)){if(r=e,"*"===n)return!0;if(!F.childNodes(r).length)return!1}else{if(null===F.parentElement(e))return!1;r=F.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(we(r,t,i))return!0;if(n)if(i){if(r.closest(n))return!0}else if(r.matches(n))return!0}catch(o){}return!1}function Ie(e,t){var n,{needsMask:i,maskTextFn:r,maskInputOptions:o,maskInputFn:a,rootId:s,cssCaptured:d}=t,u=e.parentNode&&e.parentNode.tagName;let c="";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=e.parentNode.sheet)&&n.cssRules&&(c=A(e.parentNode.sheet))}catch(h){console.warn("Cannot get CSS styles from text's parentNode. Error: "+h,e)}c=f(c,ve(t.doc))}return p?c="SCRIPT_PLACEHOLDER":d||(c=F.textContent(e),l&&(c=c&&f(c,ve(t.doc)))),!l&&!p&&c&&i&&(c=r?r(c,F.parentElement(e)):c.replace(/[\S]/g,"*")),u&&c&&o.textarea&&(c=a?a(c,e.parentNode):c.replace(/[\S]/g,"*")),{type:P.Text,textContent:c||"",rootId:s}}function _e(t,e){const{doc:n,blockClass:i,blockSelector:r,inlineStylesheet:o,maskInputOptions:a={},maskInputFn:s,dataURLOptions:d={},inlineImages:u,recordCanvas:c,keepIframeSrcFn:l,newlyAddedElement:p=!1,rootId:h,needsMask:f}=e;var e=function(t,n,e){try{if("string"==typeof n){if(t.classList.contains(n))return!0}else if(n)for(let e=t.classList.length;e--;){var i=t.classList[e];if(n.test(i))return!0}if(e)return t.matches(e)}catch(r){}return!1}(t,i,r),g=(w=t)instanceof HTMLFormElement?"form":(w=x(w.tagName),N.test(w)?"div":w);let m={};var v,y=t.attributes.length;for(let e=0;e<y;e++){var b=t.attributes[e];be(g,b.name,b.value)||(m[b.name]=ye(n,g,x(b.name),b.value))}if("link"===g&&o){var w=Array.from(n.styleSheets).find(e=>e.href===t.href);let e=null;(e=w?A(w):e)&&(delete m.rel,delete m.href,m._cssText=e)}if("style"===g&&t.sheet){let e=A(t.sheet);e&&(1<t.childNodes.length&&(e=M(e,t)),m._cssText=e)}if("input"!==g&&"textarea"!==g&&"select"!==g||(w=t.value,v=t.checked,"radio"!==m.type&&"checkbox"!==m.type&&"submit"!==m.type&&"button"!==m.type&&w?m.value=K({element:t,type:J(t),tagName:g,value:w,maskInputOptions:a,maskInputFn:s,needsMask:f}):v&&(m.checked=v)),"option"===g&&(t.selected&&!a.select?m.selected=!0:delete m.selected),"dialog"===g&&t.open&&(m.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),"canvas"===g&&c&&("2d"===t.__context?function(n){var i=n.getContext("2d");if(i)for(let t=0;t<n.width;t+=50)for(let e=0;e<n.height;e+=50){var r=i.getImageData,r=O in r?r[O]:r;if(new Uint32Array(r.call(i,t,e,Math.min(50,n.width-t),Math.min(50,n.height-e)).data.buffer).some(e=>0!==e))return}return 1}(t)||(m.rr_dataURL=t.toDataURL(d.type,d.quality)):"__context"in t||(w=t.toDataURL(d.type,d.quality),(v=n.createElement("canvas")).width=t.width,v.height=t.height,w!==v.toDataURL(d.type,d.quality)&&(m.rr_dataURL=w))),"img"===g&&u){k||(k=n.createElement("canvas"),le=k.getContext("2d"));const _=t,E=_.currentSrc||_.getAttribute("src")||"<unknown-src>",C=_.crossOrigin,T=()=>{_.removeEventListener("load",T);try{k.width=_.naturalWidth,k.height=_.naturalHeight,le.drawImage(_,0,0),m.rr_dataURL=k.toDataURL(d.type,d.quality)}catch(e){if("anonymous"!==_.crossOrigin)return _.crossOrigin="anonymous",void(_.complete&&0!==_.naturalWidth?T():_.addEventListener("load",T));console.warn(`Cannot inline img src=${E}! Error: `+e)}"anonymous"===_.crossOrigin&&(C?m.crossOrigin=C:_.removeAttribute("crossorigin"))};_.complete&&0!==_.naturalWidth?T():_.addEventListener("load",T)}"audio"!==g&&"video"!==g||((v=m).rr_mediaState=t.paused?"paused":"played",v.rr_mediaCurrentTime=t.currentTime,v.rr_mediaPlaybackRate=t.playbackRate,v.rr_mediaMuted=t.muted,v.rr_mediaLoop=t.loop,v.rr_mediaVolume=t.volume),p||(t.scrollLeft&&(m.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(m.rr_scrollTop=t.scrollTop)),e&&({width:w,height:v}=t.getBoundingClientRect(),m={"class":m["class"],rr_width:w+"px",rr_height:v+"px"}),"iframe"!==g||l(m.src)||(t.contentDocument||(m.rr_src=m.src),delete m.src);let S;try{customElements.get(g)&&(S=!0)}catch(I){}return{type:P.Element,tagName:g,attributes:m,childNodes:[],isSVG:(w=t,Boolean("svg"===w.tagName||w.ownerSVGElement)||void 0),needBlock:e,rootId:h,isCustom:S}}function j(e){return null==e?"":e.toLowerCase()}function X(t,e){const{doc:n,mirror:i,blockClass:r,blockSelector:o,maskTextClass:a,maskTextSelector:s,skipChild:d=!1,inlineStylesheet:u=!0,maskInputOptions:c={},maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f={},inlineImages:g=!1,recordCanvas:m=!1,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b=5e3,onStylesheetLoad:w,stylesheetLoadTimeout:S=5e3,keepIframeSrcFn:I=()=>!1,newlyAddedElement:_=!1,cssCaptured:E=!1}=e;let C=e["needsMask"],{preserveWhiteSpace:T=!0}=e;C||(e=void 0===C,C=Se(t,a,s,e));e=function(e,t){var n,{doc:i,mirror:t,blockClass:r,blockSelector:o,needsMask:a,inlineStylesheet:s,maskInputOptions:d={},maskTextFn:u,maskInputFn:c,dataURLOptions:l={},inlineImages:p,recordCanvas:h,keepIframeSrcFn:f,newlyAddedElement:g=!1,cssCaptured:m=!1}=t,v=(n=i,!(t=t).hasNode(n)||1===(n=t.getId(n))?void 0:n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:P.Document,childNodes:[],compatMode:e.compatMode}:{type:P.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:P.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:v};case e.ELEMENT_NODE:return _e(e,{doc:i,blockClass:r,blockSelector:o,inlineStylesheet:s,maskInputOptions:d,maskInputFn:c,dataURLOptions:l,inlineImages:p,recordCanvas:h,keepIframeSrcFn:f,newlyAddedElement:g,rootId:v,needsMask:a});case e.TEXT_NODE:return Ie(e,{doc:i,needsMask:a,maskTextFn:u,maskInputOptions:d,maskInputFn:c,rootId:v,cssCaptured:m});case e.CDATA_SECTION_NODE:return{type:P.CDATA,textContent:"",rootId:v};case e.COMMENT_NODE:return{type:P.Comment,textContent:F.textContent(e)||"",rootId:v};default:return!1}}(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:C,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,dataURLOptions:f,inlineImages:g,recordCanvas:m,keepIframeSrcFn:I,newlyAddedElement:_,cssCaptured:E});if(!e)return console.warn(t,"not serialized"),null;let x;x=i.hasNode(t)?i.getId(t):function(e,t){if(t.comment&&e.type===P.Comment)return 1;if(e.type===P.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===Z(e.attributes.href)))return 1;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(j(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===j(e.attributes.name)||"icon"===j(e.attributes.rel)||"apple-touch-icon"===j(e.attributes.rel)||"shortcut icon"===j(e.attributes.rel))))return 1;if("meta"===e.tagName){if(t.headMetaDescKeywords&&j(e.attributes.name).match(/^description|keywords$/))return 1;if(t.headMetaSocial&&(j(e.attributes.property).match(/^(og|twitter|fb):/)||j(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===j(e.attributes.name)))return 1;if(t.headMetaRobots&&("robots"===j(e.attributes.name)||"googlebot"===j(e.attributes.name)||"bingbot"===j(e.attributes.name)))return 1;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return 1;if(t.headMetaAuthorship&&("author"===j(e.attributes.name)||"generator"===j(e.attributes.name)||"framework"===j(e.attributes.name)||"publisher"===j(e.attributes.name)||"progid"===j(e.attributes.name)||j(e.attributes.property).match(/^article:/)||j(e.attributes.property).match(/^product:/)))return 1;if(t.headMetaVerification&&("google-site-verification"===j(e.attributes.name)||"yandex-verification"===j(e.attributes.name)||"csrf-token"===j(e.attributes.name)||"p:domain_verify"===j(e.attributes.name)||"verify-v1"===j(e.attributes.name)||"verification"===j(e.attributes.name)||"shopify-checkout-api-token"===j(e.attributes.name)))return 1}}}(e,h)||!T&&e.type===P.Text&&!e.textContent.replace(/^\s+|\s+$/gm,"").length?G:Y++;var k=Object.assign(e,{id:x});if(i.add(t,k),x===G)return null;v&&v(t);let A=!d;if(k.type===P.Element&&(A=A&&!k.needBlock,delete k.needBlock,e=F.shadowRoot(t))&&D(e)&&(k.isShadowHost=!0),(k.type===P.Document||k.type===P.Element)&&A){h.headWhitespace&&k.type===P.Element&&"head"===k.tagName&&(T=!1);var O={doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:C,maskTextClass:a,maskTextSelector:s,skipChild:d,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:T,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:S,keepIframeSrcFn:I,cssCaptured:!1};if(k.type!==P.Element||"textarea"!==k.tagName||void 0===k.attributes.value){k.type===P.Element&&void 0!==k.attributes._cssText&&"string"==typeof k.attributes._cssText&&(O.cssCaptured=!0);for(const N of Array.from(F.childNodes(t))){var R=X(N,O);R&&k.childNodes.push(R)}}let e=null;if(V(t)&&(e=F.shadowRoot(t)))for(const L of Array.from(F.childNodes(e))){var M=X(L,O);M&&(D(e)&&(M.isShadow=!0),k.childNodes.push(M))}}e=F.parentNode(t);return e&&$(e)&&D(e)&&(k.isShadow=!0),k.type===P.Element&&"iframe"===k.tagName&&function(n,i,r){var o=n.contentWindow;if(o){let e=!1,t;try{t=o.document.readyState}catch(a){return}if("complete"!==t){const s=U(()=>{e||(i(),e=!0)},r);void n.addEventListener("load",()=>{clearTimeout(s),e=!0,i()})}else{r="about:blank";if((n.src===r||n.src!==r&&o.location.href!==r)&&"complete"===t)return U(i,0),n.addEventListener("load",i);n.addEventListener("load",i)}}}(t,()=>{var e=t.contentDocument;e&&y&&(e=X(e,{doc:e,mirror:i,blockClass:r,blockSelector:o,needsMask:C,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:T,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:S,keepIframeSrcFn:I}))&&y(t,e)},b),k.type===P.Element&&"link"===k.tagName&&"string"==typeof k.attributes.rel&&("stylesheet"===k.attributes.rel||"preload"===k.attributes.rel&&"string"==typeof k.attributes.href&&"css"===Z(k.attributes.href))&&function(e,t,n){let i=!1,r;try{r=e.sheet}catch(o){return}if(!r){const a=U(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{clearTimeout(a),i=!0,t()})}}(t,()=>{var e;w&&(e=X(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:C,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:T,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:S,keepIframeSrcFn:I}))&&w(t,e)},S),k}Object.defineProperty;"undefined"!=typeof window?function(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]}("setTimeout").bind(window):global.setTimeout;const Ee={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ce={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Te={};function xe(e){if(Te[e])return Te[e];var t=function(e){var t,n=null==(t=null==(n=null==globalThis?void 0:globalThis.Zone)?void 0:n.__symbol__)?void 0:t.call(n,e);if(n&&globalThis[n])return globalThis[n]}(e)||globalThis[e];const n=t.prototype;var i=e in Ee?Ee[e]:void 0,i=Boolean(i&&i.every(e=>{return Boolean(null==(e=null==(e=Object.getOwnPropertyDescriptor(n,e))?void 0:e.get)?void 0:e.toString().includes("[native code]"))})),r=e in Ce?Ce[e]:void 0,r=Boolean(r&&r.every(e=>{return"function"==typeof n[e]&&(null==(e=n[e])?void 0:e.toString().includes("[native code]"))}));if(i&&r)return Te[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?Te[e]=o:n):t.prototype}catch{return n}}const ke={};function i(e,t,n){var i=e+"."+String(n);return ke[i]?ke[i].call(t):(e=xe(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(ke[i]=e).call(t):t[n])}const Ae={};function Oe(e,t,n){var i=e+"."+String(n);return Ae[i]?Ae[i].bind(t):"function"!=typeof(e=xe(e)[n])?t[n]:(Ae[i]=e).bind(t)}function Re(){return xe("MutationObserver").constructor}function L(e,t,n){try{if(!(t in e))return()=>{};const r=e[t];var i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}const Q={childNodes:function(e){return i("Node",e,"childNodes")},parentNode:function(e){return i("Node",e,"parentNode")},parentElement:function(e){return i("Node",e,"parentElement")},textContent:function(e){return i("Node",e,"textContent")},contains:function(e,t){return Oe("Node",e,"contains")(t)},getRootNode:function(e){return Oe("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?i("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?i("Element",e,"shadowRoot"):null},querySelector:function(e,t){return i("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return i("Element",e,"querySelectorAll")(t)},mutationObserver:Re,patch:L};function ee(e,t,n=document){var i=(i=n).defaultView||i,r=S("addEventListener",i);const o=S("removeEventListener",i),a={capture:!0,passive:!0};return r.call(n,e,t,a),()=>o.call(n,e,t,a)}const r="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.";var Me={map:{},getId(){return console.error(r),-1},getNode(){return console.error(r),null},removeNodeFromMap(){console.error(r)},has(){return console.error(r),!1},reset(){console.error(r)}};function B(r,o,a={}){let s=null,d=0;return function(...e){var t=Date.now(),n=(d||!1!==a.leading||(d=t),o-(t-d));const i=this;n<=0||o<n?(s&&(clearTimeout(s),s=null),d=t,r.apply(i,e)):s||!1===a.trailing||(s=U(()=>{d=!1===a.leading?0:Date.now(),s=null,r.apply(i,e)},n))}}function Ne(e,t,n,i,r=window){const o=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,i?n:{set(e){U(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>Ne(e,t,o||{},!0)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&new Proxy(Me,{get(e,t,n){return"map"===t&&console.error(r),Reflect.get(e,t,n)}});let Le=Date.now;function Pe(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=Q.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=Q.parentElement(n.body))?void 0:t.scrollTop)||(null==(e=null==n?void 0:n.body)?void 0:e.scrollTop)||0}}function Fe(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function $e(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function De(e){return e?e.nodeType===e.ELEMENT_NODE?e:Q.parentElement(e):null}function z(e,t,n,i){if(e){e=De(e);if(e){try{if("string"==typeof t){if(e.classList.contains(t))return!0;if(i&&null!==e.closest("."+t))return!0}else if(we(e,t,i))return!0}catch(r){}if(n){if(e.matches(n))return!0;if(i&&null!==e.closest(n))return!0}}}return!1}function Ue(e,t){return-1!==t.getId(e)}function Ge(e,t,n){return"TITLE"===e.tagName&&n.headTitleMutations||t.getId(e)===G}function je(e,t){var n;return!$(e)&&(n=t.getId(e),!t.has(n)||(!(n=Q.parentNode(e))||n.nodeType!==e.DOCUMENT_NODE)&&(!n||je(n,t)))}function Be(e){return Boolean(e.changedTouches)}function ze(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function He(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function We(e){return e&&(!1&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(Q.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Le=()=>(new Date).getTime());class qe{constructor(){s(this,"id",1),s(this,"styleIDMap",new WeakMap),s(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return 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 Ve(e){var t;let n=null;return n="getRootNode"in e&&(null==(t=Q.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Q.host(Q.getRootNode(e))?Q.host(Q.getRootNode(e)):n}function Ke(e){var t=e.ownerDocument;return!!t&&(e=function(e){let t=e;for(var n;n=Ve(t);)t=n;return t}(e),Q.contains(t,e))}function Je(e){var t=e.ownerDocument;return t&&(Q.contains(t,e)||Ke(e))}var te=(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))({}),ne=(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))(ne||{}),l=(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))(l||{}),p=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(p||{}),h=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))({}),H=(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))(H||{}),Ze=(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))({});function Ye(e){return"__ln"in e}class Xe{constructor(){s(this,"length",0),s(this,"head",null),s(this,"tail",null),s(this,"reordered",!1)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let e=0;e<t;e++)n=(null==n?void 0:n.next)||null;return n}addNode(e){var t,n={value:e,previous:null,next:null};e.__ln=n,e.previousSibling&&Ye(e.previousSibling)?(t=e.previousSibling.__ln.next,n.next=t,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,t&&(t.previous=n)):e.nextSibling&&Ye(e.nextSibling)&&e.nextSibling.__ln.previous?(t=e.nextSibling.__ln.previous,n.previous=t,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||!Ye(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}}const Qe=(e,t)=>e+"@"+t;class et{constructor(){s(this,"frozen",!1),s(this,"locked",!1),s(this,"texts",[]),s(this,"attributes",[]),s(this,"attributeMap",new WeakMap),s(this,"removes",[]),s(this,"mapRemoves",[]),s(this,"movedMap",{}),s(this,"addedSet",new Set),s(this,"movedSet",new Set),s(this,"droppedSet",new Set),s(this,"removesSubTreeCache",new Set),s(this,"mutationCb"),s(this,"blockClass"),s(this,"blockSelector"),s(this,"maskTextClass"),s(this,"maskTextSelector"),s(this,"inlineStylesheet"),s(this,"maskInputOptions"),s(this,"maskTextFn"),s(this,"maskInputFn"),s(this,"keepIframeSrcFn"),s(this,"recordCanvas"),s(this,"inlineImages"),s(this,"slimDOMOptions"),s(this,"dataURLOptions"),s(this,"doc"),s(this,"mirror"),s(this,"iframeManager"),s(this,"stylesheetManager"),s(this,"shadowDomManager"),s(this,"canvasManager"),s(this,"processedNodeManager"),s(this,"unattachedDoc"),s(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),s(this,"emit",()=>{if(!this.frozen&&!this.locked){const d=[],u=new Set,c=new Xe,l=e=>{let t=e,n=G;for(;n===G;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n};for(var n,i,r=t=>{var n=Q.parentNode(t);if(n&&Je(t)){let e=!1;if(t.nodeType===Node.TEXT_NODE){var i=n.tagName;if("TEXTAREA"===i)return;"STYLE"===i&&this.addedSet.has(n)&&(e=!0)}i=$(n)?this.mirror.getId(Ve(t)):this.mirror.getId(n),n=l(t);if(-1===i||-1===n)return c.addNode(t);var r=X(t,{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:e=>{ze(e,this.mirror)&&this.iframeManager.addIframe(e),He(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),We(t)&&this.shadowDomManager.addShadowRoot(Q.shadowRoot(t),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},cssCaptured:e});r&&(d.push({parentId:i,nextId:n,node:r}),u.add(r.id))}};this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const p of this.movedSet){var t=Q.parentNode(p);it(this.removesSubTreeCache,p,this.mirror)&&!this.movedSet.has(t)&&!this.addedSet.has(t)||r(p)}for(const h of this.addedSet)!rt(this.droppedSet,h)&&!it(this.removesSubTreeCache,h,this.mirror)||rt(this.movedSet,h)?r(h):this.droppedSet.add(h);let e=null;for(;c.length;){let t=null;if(!(t=e&&(n=this.mirror.getId(Q.parentNode(e.value)),i=l(e.value),-1!==n)&&-1!==i?e:t)){let e=c.tail;for(;e;){var o=e;if(e=e.previous,o){var a=this.mirror.getId(Q.parentNode(o.value));if(-1===l(o.value))c.needsReorder(o)&&c.reorder()&&(e=c.tail);else{if(-1!==a){t=o;break}a=o.value,a=Q.parentNode(a);if(a&&a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){a=Q.host(a);if(-1!==this.mirror.getId(a)){t=o;break}}}}}}if(!t){for(;c.head;)c.removeNode(c.head.value);break}e=t.previous,c.removeNode(t.value),r(t.value)}var s={texts:this.texts.map(e=>{var t=e.node,n=Q.parentNode(t);return n&&"TEXTAREA"===n.tagName&&this.genTextAreaValueMutation(n),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!u.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=>!u.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:d};(s.texts.length||s.attributes.length||s.removes.length||s.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(s))}}),s(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));var n=Array.from(Q.childNodes(e),e=>Q.textContent(e)||"").join("");t.attributes.value=K({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:J(e),value:n,maskInputFn:this.maskInputFn})}),s(this,"processMutation",i=>{if(!Ge(i.target,this.mirror,this.slimDOMOptions))switch(i.type){case"characterData":var r=Q.textContent(i.target);z(i.target,this.blockClass,this.blockSelector,!1)||r===i.oldValue||this.texts.push({value:Se(i.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,De(i.target)):r.replace(/[\S]/g,"*"):r,node:i.target});break;case"attributes":{var o,a=i.target;let e=i.attributeName,t=i.target.getAttribute(e);if("value"===e&&(r=J(a),o=Se(i.target,this.maskTextClass,this.maskTextSelector,!0),t=K({element:a,maskInputOptions:this.maskInputOptions,tagName:a.tagName,type:r,value:t,maskInputFn:this.maskInputFn,needsMask:o})),z(i.target,this.blockClass,this.blockSelector,!1)||t===i.oldValue)return;let n=this.attributeMap.get(i.target);if("IFRAME"===a.tagName&&"src"===e&&!this.keepIframeSrcFn(t)){if(a.contentDocument)return;e="rr_src"}if(n||(n={node:i.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(i.target,n)),"type"===e&&"INPUT"===a.tagName&&"password"===(i.oldValue||"").toLowerCase()&&a.setAttribute("data-rr-is-password","true"),!be(a.tagName,e))if(n.attributes[e]=ye(this.doc,x(a.tagName),x(e),t),"style"===e){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(c){this.unattachedDoc=this.doc}var s=this.unattachedDoc.createElement("span");i.oldValue&&(s.style.cssText=i.oldValue);for(const l of Array.from(a.style)){var d=a.style.getPropertyValue(l),u=a.style.getPropertyPriority(l);d!==s.style.getPropertyValue(l)||u!==s.style.getPropertyPriority(l)?n.styleDiff[l]=""===u?d:[d,u]:n._unchangedStyles[l]=[d,u]}for(const p of Array.from(s.style))""===a.style.getPropertyValue(p)&&(n.styleDiff[p]=!1)}else"open"===e&&"DIALOG"===a.tagName&&(a.matches("dialog:modal")?n.attributes.rr_open_mode="modal":n.attributes.rr_open_mode="non-modal");break}case"childList":z(i.target,this.blockClass,this.blockSelector,!0)||("TEXTAREA"!==i.target.tagName?(i.addedNodes.forEach(e=>this.genAdds(e,i.target)),i.removedNodes.forEach(e=>{var t=this.mirror.getId(e),n=$(i.target)?this.mirror.getId(Q.host(i.target)):this.mirror.getId(i.target);z(i.target,this.blockClass,this.blockSelector,!1)||Ge(e,this.mirror,this.slimDOMOptions)||!Ue(e,this.mirror)||(this.addedSet.has(e)?(tt(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(i.target)&&-1===t||je(i.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[Qe(t,n)]?tt(this.movedSet,e):(this.removes.push({parentId:n,id:t,isShadow:!(!$(i.target)||!D(i.target))||void 0}),nt(e,this.removesSubTreeCache))),this.mapRemoves.push(e))})):this.genTextAreaValueMutation(i.target))}}),s(this,"genAdds",(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(Ge(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let e=null;(e=n&&this.mirror.hasNode(n)?this.mirror.getId(n):e)&&-1!==e&&(this.movedMap[Qe(this.mirror.getId(t),e)]=!0)}else this.addedSet.add(t),this.droppedSet["delete"](t);z(t,this.blockClass,this.blockSelector,!1)||(Q.childNodes(t).forEach(e=>this.genAdds(e)),We(t)&&Q.childNodes(Q.shadowRoot(t)).forEach(e=>{this.processedNodeManager.add(e,this),this.genAdds(e,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(e=>{this[e]=t[e]})}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 tt(t,e){t["delete"](e),Q.childNodes(e).forEach(e=>tt(t,e))}function nt(e,t){const n=[e];for(;n.length;){var i=n.pop();t.has(i)||(t.add(i),Q.childNodes(i).forEach(e=>n.push(e)))}}function it(e,t){if(0!==e.size)return e=e,t=t,(t=Q.parentNode(t))&&e.has(t)}function rt(e,t){return 0!==e.size&&function i(e,t){const n=Q.parentNode(t);if(!n)return!1;if(e.has(n))return!0;return i(e,n)}(e,t)}let ie;const re=n=>{return ie?(...e)=>{try{return n(...e)}catch(t){if(!ie||!0!==ie(t))throw t}}:n},oe=[];function W(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 ot(e,t){var n=new et,e=(oe.push(n),n.init(e),new(Re())(re(n.processMutations.bind(n))));return e.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function at({mouseInteractionCb:a,doc:i,mirror:s,blockClass:d,blockSelector:u,sampling:e}){if(!1===e.mouseInteraction)return()=>{};const t=!0===e.mouseInteraction||void 0===e.mouseInteraction?{}:e.mouseInteraction,r=[];let c=null;return Object.keys(l).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==t[e]).forEach(e=>{let t=x(e);o=e;var o,n=n=>{var i=W(n);if(!z(i,d,u,!0)){let e=null,t=o;if("pointerType"in n){switch(n.pointerType){case"mouse":e=p.Mouse;break;case"touch":e=p.Touch;break;case"pen":e=p.Pen}e===p.Touch?l[o]===l.MouseDown?t="TouchStart":l[o]===l.MouseUp&&(t="TouchEnd"):(e,p.Pen)}else Be(n)&&(e=p.Touch);null!==e?(c=e,(t.startsWith("Touch")&&e===p.Touch||t.startsWith("Mouse")&&e===p.Mouse)&&(e=null)):l[o]===l.Click&&(e=c,c=null);var r,n=Be(n)?n.changedTouches[0]:n;n&&(i=s.getId(i),{clientX:n,clientY:r}=n,re(a)({type:l[t],id:i,x:n,y:r,...null!==e&&{pointerType:e}}))}};if(window.PointerEvent)switch(l[e]){case l.MouseDown:case l.MouseUp:t=t.replace("mouse","pointer");break;case l.TouchStart:case l.TouchEnd:return}r.push(ee(t,n,i))}),re(()=>{r.forEach(e=>e())})}function st({scrollCb:i,doc:r,mirror:o,blockClass:a,blockSelector:s,sampling:e}){return ee("scroll",re(B(re(e=>{var t,n,e=W(e);e&&!z(e,a,s,!0)&&(t=o.getId(e),e===r&&r.defaultView?(n=Pe(r.defaultView),i({id:t,x:n.left,y:n.top})):i({id:t,x:e.scrollLeft,y:e.scrollTop}))}),e.scroll||100)),r)}const dt=["INPUT","TEXTAREA","SELECT"],ut=new WeakMap;function ct(e){var t,n;return e=e,t=[],ht("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||ht("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||ht("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||ht("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 q(e,t,n){let i,r;return e?(e.ownerNode?i=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:i}):{}}function lt({mirror:e,stylesheetManager:i},t){let r=null;r="#document"===t.nodeName?e.getId(t):e.getId(Q.host(t));e="#document"===t.nodeName?null==(e=t.defaultView)?void 0:e.Document:null==(e=null==(e=t.ownerDocument)?void 0:e.defaultView)?void 0:e.ShadowRoot;const o=null!=e&&e.prototype?Object.getOwnPropertyDescriptor(null==e?void 0:e.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&e&&o?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){var e;return null==(e=o.get)?void 0:e.call(this)},set(e){var t=null==(t=o.set)?void 0:t.call(this,e);if(null!==r&&-1!==r)try{i.adoptStyleSheets(e,r)}catch(n){}return t}}),re(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function pt(e,t={}){var o,n=e.doc.defaultView;if(!n)return()=>{};{var i=e,r=t;const{mutationCb:w,mousemoveCb:S,mouseInteractionCb:I,scrollCb:_,viewportResizeCb:E,inputCb:C,mediaInteractionCb:T,styleSheetRuleCb:x,styleDeclarationCb:k,canvasMutationCb:A,fontCb:O,selectionCb:R,customElementCb:M}=i;i.mutationCb=(...e)=>{r.mutation&&r.mutation(...e),w(...e)},i.mousemoveCb=(...e)=>{r.mousemove&&r.mousemove(...e),S(...e)},i.mouseInteractionCb=(...e)=>{r.mouseInteraction&&r.mouseInteraction(...e),I(...e)},i.scrollCb=(...e)=>{r.scroll&&r.scroll(...e),_(...e)},i.viewportResizeCb=(...e)=>{r.viewportResize&&r.viewportResize(...e),E(...e)},i.inputCb=(...e)=>{r.input&&r.input(...e),C(...e)},i.mediaInteractionCb=(...e)=>{r.mediaInteaction&&r.mediaInteaction(...e),T(...e)},i.styleSheetRuleCb=(...e)=>{r.styleSheetRule&&r.styleSheetRule(...e),x(...e)},i.styleDeclarationCb=(...e)=>{r.styleDeclaration&&r.styleDeclaration(...e),k(...e)},i.canvasMutationCb=(...e)=>{r.canvasMutation&&r.canvasMutation(...e),A(...e)},i.fontCb=(...e)=>{r.font&&r.font(...e),O(...e)},i.selectionCb=(...e)=>{r.selection&&r.selection(...e),R(...e)},i.customElementCb=(...e)=>{r.customElement&&r.customElement(...e),M(...e)}}let a;e.recordDOM&&(a=ot(e,e.doc));const s=function({mousemoveCb:n,sampling:e,doc:t,mirror:r}){if(!1===e.mousemove)return()=>{};var i="number"==typeof e.mousemove?e.mousemove:50,e="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500;let o=[],a;const s=B(re(e=>{const t=Date.now()-a;n(o.map(e=>(e.timeOffset-=t,e)),e),o=[],a=null}),e),d=[ee("mousemove",e=re(B(re(e=>{var t=W(e),{clientX:n,clientY:i}=Be(e)?e.changedTouches[0]:e;a=a||Le(),o.push({x:n,y:i,id:r.getId(t),timeOffset:Le()-a}),s("undefined"!=typeof DragEvent&&e instanceof DragEvent?ne.Drag:e instanceof MouseEvent?ne.MouseMove:ne.TouchMove)}),i,{trailing:!1})),t),ee("touchmove",e,t),ee("drag",e,t)];return re(()=>{d.forEach(e=>e())})}(e),d=at(e),u=st(e),c=function({viewportResizeCb:n},{win:e}){let i=-1,r=-1;return ee("resize",re(B(re(()=>{var e=Fe(),t=$e();i===e&&r===t||(n({width:Number(t),height:Number(e)}),i=e,r=t)}),200)),e)}(e,{win:n}),l=function({inputCb:i,doc:s,mirror:r,blockClass:e,blockSelector:n,ignoreClass:d,ignoreSelector:u,maskInputOptions:c,maskInputFn:l,sampling:t,userTriggeredOnInput:p,maskTextClass:h,maskTextSelector:f}){function o(t){let i=W(t);var t=t.isTrusted,r=i&&i.tagName;if((i=i&&"OPTION"===r?Q.parentElement(i):i)&&r&&!(dt.indexOf(r)<0)&&!z(i,e,n,!0)&&!(i.classList.contains(d)||u&&i.matches(u))){let e=i.value,n=!1;var o=J(i)||"",a=Se(i,h,f,!0),r=("radio"===o||"checkbox"===o?n=i.checked:(c[r.toLowerCase()]||c[o]||a)&&(e=K({element:i,maskInputOptions:c,tagName:r,type:o,value:e,maskInputFn:l,needsMask:a})),g(i,p?{text:e,isChecked:n,userTriggered:t}:{text:e,isChecked:n}),i.name);"radio"===o&&r&&n&&s.querySelectorAll(`input[type="radio"][name="${r}"]`).forEach(e=>{var t;e!==i&&(t=e.value,g(e,p?{text:t,isChecked:!n,userTriggered:!1}:{text:t,isChecked:!n}))})}}function g(e,t){var n=ut.get(e);n&&n.text===t.text&&n.isChecked===t.isChecked||(ut.set(e,t),n=r.getId(e),re(i)({...t,id:n}))}var a;const m=("last"===t.input?["change"]:["input","change"]).map(e=>ee(e,re(o),s)),v=s.defaultView;return v?(t=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),a=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]],t&&t.set&&m.push(...a.map(e=>Ne(e[0],e[1],{set(){re(o)({target:this,isTrusted:!1})}},!1,v))),re(()=>{m.forEach(e=>e())})):()=>{m.forEach(e=>e())}}(e),p=function({mediaInteractionCb:s,blockClass:d,blockSelector:u,mirror:c,sampling:e,doc:t}){var n=re(a=>B(re(e=>{var t,n,i,r,o,e=W(e);e&&!z(e,d,u,!0)&&({currentTime:t,volume:n,muted:i,playbackRate:r,loop:o}=e,s({type:a,id:c.getId(e),currentTime:t,volume:n,muted:i,playbackRate:r,loop:o}))}),e.media||500));const i=[ee("play",n(H.Play),t),ee("pause",n(H.Pause),t),ee("seeked",n(H.Seeked),t),ee("volumechange",n(H.VolumeChange),t),ee("ratechange",n(H.RateChange),t)];return re(()=>{i.forEach(e=>e())})}(e);let h=()=>{},f=()=>{},g=()=>{},m=()=>{};e.recordDOM&&(h=function({styleSheetRuleCb:s,mirror:d,stylesheetManager:u},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};const e=i.CSSStyleSheet.prototype.insertRule,t=(i.CSSStyleSheet.prototype.insertRule=new Proxy(e,{apply:re((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=q(t,d,u.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:r}]}),e.apply(t,n)})}),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(t,{apply:re((e,t,n)=>{var[i]=n,{id:r,styleId:o}=q(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:i}]}),e.apply(t,n)})}),i.CSSStyleSheet.prototype.removeRule=function(e){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[e])};let n;i.CSSStyleSheet.prototype.replace&&(n=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(n,{apply:re((e,t,n)=>{var[i]=n,{id:r,styleId:o}=q(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,replace:i}),e.apply(t,n)})}));let r;i.CSSStyleSheet.prototype.replaceSync&&(r=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(r,{apply:re((e,t,n)=>{var[i]=n,{id:r,styleId:o}=q(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,replaceSync:i}),e.apply(t,n)})}));const o={},a=(ft("CSSGroupingRule")?o.CSSGroupingRule=i.CSSGroupingRule:(ft("CSSMediaRule")&&(o.CSSMediaRule=i.CSSMediaRule),ft("CSSConditionRule")&&(o.CSSConditionRule=i.CSSConditionRule),ft("CSSSupportsRule")&&(o.CSSSupportsRule=i.CSSSupportsRule)),{});return Object.entries(o).forEach(([e,t])=>{a[e]={insertRule:t.prototype.insertRule,deleteRule:t.prototype.deleteRule},t.prototype.insertRule=new Proxy(a[e].insertRule,{apply:re((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=q(t.parentStyleSheet,d,u.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:[...ct(t),r||0]}]}),e.apply(t,n)})}),t.prototype.deleteRule=new Proxy(a[e].deleteRule,{apply:re((e,t,n)=>{var[i]=n,{id:r,styleId:o}=q(t.parentStyleSheet,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:[...ct(t),i]}]}),e.apply(t,n)})})}),re(()=>{i.CSSStyleSheet.prototype.insertRule=e,i.CSSStyleSheet.prototype.deleteRule=t,n&&(i.CSSStyleSheet.prototype.replace=n),r&&(i.CSSStyleSheet.prototype.replaceSync=r),Object.entries(o).forEach(([e,t])=>{t.prototype.insertRule=a[e].insertRule,t.prototype.deleteRule=a[e].deleteRule})})}(e,{win:n}),f=lt(e,e.doc),g=function({styleDeclarationCb:d,mirror:u,ignoreCSSAttributes:c,stylesheetManager:l},{win:e}){const p=e.CSSStyleDeclaration.prototype.setProperty,a=(e.CSSStyleDeclaration.prototype.setProperty=new Proxy(p,{apply:re((e,t,n)=>{var i,r,[o,a,s]=n;return c.has(o)?p.apply(t,[o,a,s]):({id:i,styleId:r}=q(null==(i=t.parentRule)?void 0:i.parentStyleSheet,u,l.styleMirror),(i&&-1!==i||r&&-1!==r)&&d({id:i,styleId:r,set:{property:o,value:a,priority:s},index:ct(t.parentRule)}),e.apply(t,n))})}),e.CSSStyleDeclaration.prototype.removeProperty);return e.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:re((e,t,n)=>{var i,r,[o]=n;return c.has(o)?a.apply(t,[o]):({id:i,styleId:r}=q(null==(i=t.parentRule)?void 0:i.parentStyleSheet,u,l.styleMirror),(i&&-1!==i||r&&-1!==r)&&d({id:i,styleId:r,remove:{property:o},index:ct(t.parentRule)}),e.apply(t,n))})}),re(()=>{e.CSSStyleDeclaration.prototype.setProperty=p,e.CSSStyleDeclaration.prototype.removeProperty=a})}(e,{win:n}),e.collectFonts)&&(m=function({fontCb:n,doc:e}){const t=e.defaultView;if(!t)return()=>{};const i=[],r=new WeakMap,o=t.FontFace;return t.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},e=L(e.fonts,"add",function(e){return function(t){return U(re(()=>{var e=r.get(t);e&&(n(e),r["delete"](t))}),0),e.apply(this,[t])}}),i.push(()=>{t.FontFace=o}),i.push(e),re(()=>{i.forEach(e=>e())})}(e));const v=function(e){const{doc:d,mirror:u,blockClass:c,blockSelector:l,selectionCb:p}=e;let h=!0;return(e=re(()=>{var t=d.getSelection();if(!(!t||h&&null!=t&&t.isCollapsed)){h=t.isCollapsed||!1;var n=[],i=t.rangeCount||0;for(let e=0;e<i;e++){var{startContainer:r,startOffset:o,endContainer:a,endOffset:s}=t.getRangeAt(e);z(r,c,l,!0)||z(a,c,l,!0)||n.push({start:u.getId(r),startOffset:o,end:u.getId(a),endOffset:s})}p({ranges:n})}}))(),ee("selectionchange",e)}(e),y=({doc:t,customElementCb:o}=[e][0],(t=t.defaultView)&&t.customElements?L(t.customElements,"define",function(r){return function(e,t,n){try{o({define:{name:e}})}catch(i){console.warn("Custom element callback failed for "+e)}return r.apply(this,[e,t,n])}}):()=>{}),b=[];for(const N of e.plugins)b.push(N.observer(N.callback,n,N.options));return re(()=>{oe.forEach(e=>e.reset()),null!=a&&a.disconnect(),s(),d(),u(),c(),l(),p(),h(),f(),g(),m(),v(),y(),b.forEach(e=>e())})}function ht(e){return"undefined"!=typeof window[e]}function ft(e){return Boolean("undefined"!=typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class gt{constructor(e){s(this,"iframeIdToRemoteIdMap",new WeakMap),s(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(t,e){const n=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return e.map(e=>this.getId(t,e,n,i))}getRemoteId(e,t,n){n=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1}getRemoteIds(t,e){const n=this.getRemoteIdToIdMap(t);return e.map(e=>this.getRemoteId(t,e,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 mt{constructor(e){s(this,"iframes",new WeakMap),s(this,"crossOriginIframeMap",new WeakMap),s(this,"crossOriginIframeMirror",new gt(ce)),s(this,"crossOriginIframeStyleMirror"),s(this,"crossOriginIframeRootIdMap",new WeakMap),s(this,"mirror"),s(this,"mutationCb"),s(this,"wrappedEmit"),s(this,"takeFullSnapshot"),s(this,"loadListener"),s(this,"stylesheetManager"),s(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 gt(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(n,e){var t;switch(e.type){case te.FullSnapshot:this.crossOriginIframeMirror.reset(n),this.crossOriginIframeStyleMirror.reset(n),this.replaceIdOnNode(e.data.node,n);var i=e.data.node.id;return this.crossOriginIframeRootIdMap.set(n,i),this.patchRootIdOnNode(e.data.node,i),{timestamp:e.timestamp,type:te.IncrementalSnapshot,data:{source:ne.Mutation,adds:[{parentId:this.mirror.getId(n),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case te.Meta:case te.Load:case te.DomContentLoaded:return!1;case te.Plugin:return e;case te.Custom:return this.replaceIds(e.data.payload,n,["id","parentId","previousId","nextId"]),e;case te.IncrementalSnapshot:switch(e.data.source){case ne.Mutation:return e.data.adds.forEach(e=>{this.replaceIds(e,n,["parentId","nextId","previousId"]),this.replaceIdOnNode(e.node,n);var t=this.crossOriginIframeRootIdMap.get(n);t&&this.patchRootIdOnNode(e.node,t)}),e.data.removes.forEach(e=>{this.replaceIds(e,n,["parentId","id"])}),e.data.attributes.forEach(e=>{this.replaceIds(e,n,["id"])}),e.data.texts.forEach(e=>{this.replaceIds(e,n,["id"])}),e;case ne.Drag:case ne.TouchMove:case ne.MouseMove:return e.data.positions.forEach(e=>{this.replaceIds(e,n,["id"])}),e;case ne.ViewportResize:return!1;case ne.MediaInteraction:case ne.MouseInteraction:case ne.Scroll:case ne.CanvasMutation:case ne.Input:return this.replaceIds(e.data,n,["id"]),e;case ne.StyleSheetRule:case ne.StyleDeclaration:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleId"]),e;case ne.Font:return e;case ne.Selection:return e.data.ranges.forEach(e=>{this.replaceIds(e,n,["start","end"])}),e;case ne.AdoptedStyleSheet:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleIds"]),null!=(t=e.data.styles)&&t.forEach(e=>{this.replaceStyleIds(e,n,["styleId"])}),e}}return!1}replace(e,t,n,i){for(const 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===Ze.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class vt{constructor(e){s(this,"shadowDoms",new WeakSet),s(this,"mutationCb"),s(this,"scrollCb"),s(this,"bypassOptions"),s(this,"mirror"),s(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(D(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);const n=ot({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(st({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),U(()=>{e.adoptedStyleSheets&&0<e.adoptedStyleSheets.length&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(Q.host(e))),this.restoreHandlers.push(lt({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,i){const r=this;this.restoreHandlers.push(L(e.prototype,"attachShadow",function(n){return function(e){var e=n.call(this,e),t=Q.shadowRoot(this);return t&&Je(this)&&r.addShadowRoot(t,i),e}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yt="undefined"==typeof Uint8Array?[]:new Uint8Array(256),bt=0;bt<o.length;bt++)yt[o.charCodeAt(bt)]=bt;var wt,St=function(e){for(var t=new Uint8Array(e),n=t.length,i="",r=0;r<n;r+=3)i=(i=(i=(i+=o[t[r]>>2])+o[(3&t[r])<<4|t[r+1]>>4])+o[(15&t[r+1])<<2|t[r+2]>>6])+o[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};const It=new Map;const _t=(t,n,i)=>{if(t&&(Ct(t,n)||"object"==typeof t)){n=function(e,t){let n=It.get(e);return n||(n=new Map,It.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(i,t.constructor.name);let e=n.indexOf(t);return-1===e&&(e=n.length,n.push(t)),e}};const Et=(e,t,n)=>e.map(e=>function r(e,t,n){var i;return e instanceof Array?e.map(e=>r(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:St(e)}:e instanceof DataView?{rr_type:e.constructor.name,args:[r(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:[r(e.data,t,n),e.width,e.height]}:Ct(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:_t(e,t,n)}:e}(e,t,n)),Ct=(t,n)=>{var e=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof n[e]);return Boolean(e.find(e=>t instanceof n[e]))};function Tt(n,i,r,o){const e=[];var t;for(const s of Object.getOwnPropertyNames(i.CanvasRenderingContext2D.prototype))try{"function"==typeof i.CanvasRenderingContext2D.prototype[s]&&(t=L(i.CanvasRenderingContext2D.prototype,s,function(e){return function(...t){return z(this.canvas,r,o,!0)||U(()=>{var e=Et(t,i,this);n(this.canvas,{type:h["2D"],property:s,args:e})},0),e.apply(this,t)}}),e.push(t))}catch{var a=Ne(i.CanvasRenderingContext2D.prototype,s,{set(e){n(this.canvas,{type:h["2D"],property:s,args:[e],setter:!0})}});e.push(a)}return()=>{e.forEach(e=>e())}}function xt(e,r,o,a){const t=[];try{var n=L(e.HTMLCanvasElement.prototype,"getContext",function(i){return function(e,...t){var n;return z(this,r,o,!0)||(n="experimental-webgl"===(n=e)?"webgl":n,"__context"in this||(this.__context=n),a&&["webgl","webgl2"].includes(n)&&(t[0]&&"object"==typeof t[0]?(n=t[0]).preserveDrawingBuffer||(n.preserveDrawingBuffer=!0):t.splice(0,1,{preserveDrawingBuffer:!0}))),i.apply(this,[e,...t])}});t.push(n)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{t.forEach(e=>e())}}function kt(e,i,r,o,a,s){var t,n=[];for(const u of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(u))try{"function"==typeof e[u]&&(t=L(e,u,function(n){return function(...e){var t=n.apply(this,e);return _t(t,s,this),"tagName"in this.canvas&&!z(this.canvas,o,a,!0)&&(e=Et(e,s,this),e={type:i,property:u,args:e},r(this.canvas,e)),t}}),n.push(t))}catch{var d=Ne(e,u,{set(e){r(this.canvas,{type:i,property:u,args:[e],setter:!0})}});n.push(d)}return n}function At(e,t,n,i){const r=[];return r.push(...kt(t.WebGLRenderingContext.prototype,h.WebGL,e,n,i,t)),"undefined"!=typeof t.WebGL2RenderingContext&&r.push(...kt(t.WebGL2RenderingContext.prototype,h.WebGL2,e,n,i,t)),()=>{r.forEach(e=>e())}}function Ot(e){return function(){return{onerror:null,onmessage:null}}}class Rt{constructor(e){s(this,"pendingCanvasMutations",new Map),s(this,"rafStamps",{latestId:0,invokeId:null}),s(this,"mirror"),s(this,"mutationCb"),s(this,"resetObservers"),s(this,"frozen",!1),s(this,"locked",!1),s(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,n,i,r,o){const t=xt(n,i,r,!0),a=new Map,s=new Ot,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:h["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);let u=0,c;const l=()=>{const t=[];return n.document.querySelectorAll("canvas").forEach(e=>{z(e,i,r,!0)||t.push(e)}),t},p=e=>{c=(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:o.dataURLOptions},[n]))})),requestAnimationFrame(p))};c=requestAnimationFrame(p),this.resetObservers=()=>{t(),cancelAnimationFrame(c)}}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=xt(e,t,n,!1),r=Tt(this.processMutation.bind(this),e,t,n),o=At(this.processMutation.bind(this),e,t,n);this.resetObservers=()=>{i(),r(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=e=>{this.rafStamps.latestId=e,requestAnimationFrame(t)};requestAnimationFrame(t)}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=>{const{type:t,...n}=e;return n}),i=i[0]["type"],this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations["delete"](e))}}class Mt{constructor(e){s(this,"trackedLinkElements",new WeakSet),s(this,"mutationCb"),s(this,"adoptedStyleSheetCb"),s(this,"styleMirror",new qe),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(const o of e){let e;if(this.styleMirror.has(o))e=this.styleMirror.getId(o);else{e=this.styleMirror.add(o);var r=[];for(let e=0;e<o.rules.length;++e)r.push({rule:I(o.rules[e],o.href),index:e});i.push({styleId:e,rules:Array.from(o.rules||CSSRule,(e,t)=>({rule:I(e,o.href),index:t}))})}n.styleIds.push(e)}0<i.length&&(n.styles=i),this.adoptedStyleSheetCb(n)}}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Nt{constructor(){s(this,"nodeMap",new WeakMap),s(this,"active",!1)}inOtherBuffer(e,t){e=this.nodeMap.get(e);return 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 ae,se=()=>{},Lt,Pt=!1;try{2!==Array.from([1],e=>2*e)[0]&&(wt=document.createElement("iframe"),document.body.appendChild(wt),Array.from=(null==(t=wt.contentWindow)?void 0:t.Array.from)||Array.from,document.body.removeChild(wt))}catch(Ft){console.debug("Unable to override Array.from",Ft)}const de=new ue;function e(e={}){const{emit:i,checkoutEveryNms:r,checkoutEveryNth:o,blockClass:n="rr-block",blockSelector:a=null,ignoreClass:F="rr-ignore",ignoreSelector:$=null,maskTextClass:s="rr-mask",maskTextSelector:d=null,inlineStylesheet:u=!0,maskAllInputs:D,maskInputOptions:t,slimDOMOptions:c,maskInputFn:l,maskTextFn:p,hooks:U,packFn:h,sampling:f={},dataURLOptions:g={},mousemoveWait:m,recordDOM:G=!0,recordCanvas:v=!1,recordCrossOriginIframes:j=!1,recordAfter:B="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:z=!1,collectFonts:H=!1,inlineImages:y=!1,plugins:b,keepIframeSrcFn:w=()=>!1,ignoreCSSAttributes:W=new Set([]),errorHandler:q}=e;e=q,ie=e;const S=!j||window.parent===window;let I=!1;if(!S)try{window.parent.document&&(I=!1)}catch(Y){I=!0}if(S&&!i)throw new Error("emit function is required");if(!S&&!I)return()=>{};void 0!==m&&void 0===f.mousemove&&(f.mousemove=m),de.reset();const _=!0===D?{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!==t?t:{password:!0},E=!0===c||"all"===c?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===c,headMetaDescKeywords:"all"===c,headTitleMutations:"all"===c}:c||{};"NodeList"in(e=window)&&!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);let V,C=0;const K=e=>{for(const t of b||[])t.eventProcessor&&(e=t.eventProcessor(e));return e=h&&!I?h(e):e},T=(ae=(e,t)=>{var n;e.timestamp=Le(),null==(n=oe[0])||!n.isFrozen()||e.type===te.FullSnapshot||e.type===te.IncrementalSnapshot&&e.data.source===ne.Mutation||oe.forEach(e=>e.unfreeze()),S?null!=i&&i(K(e),t):I&&(n={type:"rrweb",event:K(e),origin:window.location.origin,isCheckout:t},window.parent.postMessage(n,"*")),e.type===te.FullSnapshot?(V=e,C=0):e.type!==te.IncrementalSnapshot||e.data.source===ne.Mutation&&e.data.isAttachIframe||(C++,t=o&&C>=o,n=r&&e.timestamp-V.timestamp>r,(t||n)&&se(!0))},e=>{ae({type:te.IncrementalSnapshot,data:{source:ne.Mutation,...e}})}),J=e=>ae({type:te.IncrementalSnapshot,data:{source:ne.Scroll,...e}}),Z=e=>ae({type:te.IncrementalSnapshot,data:{source:ne.CanvasMutation,...e}});const x=new Mt({mutationCb:T,adoptedStyleSheetCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.AdoptedStyleSheet,...e}})}),k=new mt({mirror:de,mutationCb:T,stylesheetManager:x,recordCrossOriginIframes:j,wrappedEmit:ae,takeFullSnapshot:se});for(const M of b||[])M.getMirror&&M.getMirror({nodeMirror:de,crossOriginIframeMirror:k.crossOriginIframeMirror,crossOriginIframeStyleMirror:k.crossOriginIframeStyleMirror});const A=new Nt,O=(Lt=new Rt({recordCanvas:v,mutationCb:Z,win:window,blockClass:n,blockSelector:a,mirror:de,sampling:f.canvas,dataURLOptions:g}),new vt({mutationCb:T,scrollCb:J,bypassOptions:{blockClass:n,blockSelector:a,maskTextClass:s,maskTextSelector:d,inlineStylesheet:u,maskInputOptions:_,dataURLOptions:g,maskTextFn:p,maskInputFn:l,recordCanvas:v,inlineImages:y,sampling:f,slimDOMOptions:E,iframeManager:k,stylesheetManager:x,canvasManager:Lt,keepIframeSrcFn:w,processedNodeManager:A},mirror:de}));se=(e=!1)=>{if(G){ae({type:te.Meta,data:{href:window.location.href,width:$e(),height:Fe()}},e),x.reset(),O.init(),oe.forEach(e=>e.lock());var t=function(e,t){var{mirror:t=new ue,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:h,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:m,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:w=()=>!1}=t||{};return X(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:h,inlineImages:s,recordCanvas:d,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:m,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:w,newlyAddedElement:!1})}(document,{mirror:de,blockClass:n,blockSelector:a,maskTextClass:s,maskTextSelector:d,inlineStylesheet:u,maskAllInputs:_,maskTextFn:p,maskInputFn:l,slimDOM:E,dataURLOptions:g,recordCanvas:v,inlineImages:y,onSerialize:e=>{ze(e,de)&&k.addIframe(e),He(e,de)&&x.trackLinkElement(e),We(e)&&O.addShadowRoot(Q.shadowRoot(e),document)},onIframeLoad:(e,t)=>{k.attachIframe(e,t),O.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{x.attachLinkElement(e,t)},keepIframeSrcFn:w});if(!t)return console.warn("Failed to snapshot the document");ae({type:te.FullSnapshot,data:{node:t,initialOffset:Pe(window)}},e),oe.forEach(e=>e.unlock()),document.adoptedStyleSheets&&0<document.adoptedStyleSheets.length&&x.adoptStyleSheets(document.adoptedStyleSheets,de.getId(document))}},k.setTakeFullSnapshot(se);try{const N=[],L=e=>{return re(pt)({mutationCb:T,mousemoveCb:(e,t)=>ae({type:te.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.MouseInteraction,...e}}),scrollCb:J,viewportResizeCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.ViewportResize,...e}}),inputCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.Input,...e}}),mediaInteractionCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.MediaInteraction,...e}}),styleSheetRuleCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.StyleSheetRule,...e}}),styleDeclarationCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.StyleDeclaration,...e}}),canvasMutationCb:Z,fontCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.Font,...e}}),selectionCb:e=>{ae({type:te.IncrementalSnapshot,data:{source:ne.Selection,...e}})},customElementCb:e=>{ae({type:te.IncrementalSnapshot,data:{source:ne.CustomElement,...e}})},blockClass:n,ignoreClass:F,ignoreSelector:$,maskTextClass:s,maskTextSelector:d,maskInputOptions:_,inlineStylesheet:u,sampling:f,recordDOM:G,recordCanvas:v,inlineImages:y,userTriggeredOnInput:z,collectFonts:H,doc:e,maskInputFn:l,maskTextFn:p,keepIframeSrcFn:w,blockSelector:a,slimDOMOptions:E,dataURLOptions:g,mirror:de,iframeManager:k,stylesheetManager:x,shadowDomManager:O,processedNodeManager:A,canvasManager:Lt,ignoreCSSAttributes:W,plugins:(null==(e=null==b?void 0:b.filter(e=>e.observer))?void 0:e.map(t=>({observer:t.observer,options:t.options,callback:e=>ae({type:te.Plugin,data:{plugin:t.name,payload:e}})})))||[]},U)},P=(k.addLoadListener(e=>{try{N.push(L(e.contentDocument))}catch(t){console.warn(t)}}),()=>{se(),N.push(L(document)),Pt=!0});return"interactive"===document.readyState||"complete"===document.readyState?P():(N.push(ee("DOMContentLoaded",()=>{ae({type:te.DomContentLoaded,data:{}}),"DOMContentLoaded"===B&&P()})),N.push(ee("load",()=>{ae({type:te.Load,data:{}}),"load"===B&&P()},window))),()=>{N.forEach(e=>e()),A.destroy(),Pt=!1,ie=void 0}}catch(R){console.warn(R)}}return e.addCustomEvent=(e,t)=>{if(!Pt)throw new Error("please add custom event after start recording");ae({type:te.Custom,data:{tag:e,payload:t}})},e.freezePage=()=>{oe.forEach(e=>e.freeze())},e.takeFullSnapshot=e=>{if(!Pt)throw new Error("please take full snapshot after start recording");se(e)},e.mirror=de,0,e}class SessionRecorderBuffer{constructor(e,t=Infinity){this.data=[],this.sequenceNumber=0,this.interval=e,this.maxCount=t,this.doubledMaxCount=2*t}isEmpty(){return 0===this.data.length}count(){return this.data.length}clear(){this.data.length=0}clearSequence(){this.sequenceNumber=0}push(e){this.data.push(e),this.checkRateLimit()}pack(e,n){var t=this.data.splice(0,this.maxCount);return e.recordingPayload=t,e.sequence=this.sequenceNumber,e.recordingPayloadCount=t.length,t.length&&(e.browserTime=t[0].timestamp),e.recordingPayloadMetadata=n.map(t,e=>{var t=n.pick(e,"type","timestamp");return e.data&&(t.data=n.pick(e.data,"source","type","x","y","id","height","width","href")),t}),this.sequenceNumber+=t.length,e}checkRateLimit(){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()}}const MAX_BACKOFF=6,MAX_FAILURES=100;class SendQueue{constructor(e,t=MAX_FAILURES){this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}isEmpty(){return this.queue.length<=0}stop(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer}start(){this.stopped=!1}push(...e){this.queue.push(...e),this.next()}next(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)}incrementFailure(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t}pass(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e),this.failures.clear();e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()}fail(e,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))))}retryLater(e){this.timer=setTimeout$1(()=>{delete this.timer,this.next()},e)}failed(){return 0<this.failures.get(this.queue[0])&&null!=this.timer}send(e,t,n){return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(()=>this.pass(e,n),()=>this.fail(e,n))}drain(e,t=!0){if(this.queue.push(...e),this.failed())return Promise$4.reject();var n=[];for(const i of this.queue)this.pending.has(i)?this.retryPending&&t&&!this.unloads.has(i)&&(this.incrementFailure(i),n.push(this.send(i,t,!1))):n.push(this.send(i,t,!1));return Promise$4.all(n)}}const RECORDING_CONFIG_WORKERURL$1="recording.workerUrl",MAX_SIZE=1e6,RESOURCE_CACHING$1="resourceCaching";class Transport{constructor(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)}start(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(n){this.worker=null}}stop(){this.worker&&(this.worker.terminate(),delete this.worker)}send(e,t,n=0){let i=e["url"];var r=e["payload"];if(0<n&&(i=i+"&rt="+n),this.worker&&!t&&r){const o={};return o.promise=new Promise$4((e,t)=>{o.resolve=e,o.reject=t}),this.workerResponse=o,this.worker.postMessage({url:i,payload:r,shouldCacheResources:this.isResourceCachingEnabled}),o.promise}if(!e.body){n=JSON.stringify(r);if(n.length>this.maxSize)throw(r=new Error("maximum recording payload size exceeded")).reason="HEAVY_EVENT",r;e.body=this.pendo.compress(n,"binary"),delete e.payload}return i=i+"&ct="+(new Date).getTime(),this.post(i,{keepalive:t,body:e.body})}post(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(new Error("sendBeacon failed to send recording data")):this.pendo.ajax.post(e,t.body)}_onMessage(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))}_onError(){this.onError&&this.onError()}}const ELEMENT_NODE=1,INPUT_MASK="*".repeat(10);function isElementNode(e){return!!e&&e.nodeType===ELEMENT_NODE}function distanceToMatch(e,t,n=Infinity,i=0){return!isElementNode(e)||n<i?-1:e.matches(t)?i:distanceToMatch(e.parentNode,t,n,i+1)}function shouldMask(n,i){var{maskAllText:i,maskTextSelector:r,unmaskTextSelector:o}=i;try{var a=isElementNode(n)?n:n.parentElement;if(null===a)return!1;let e=-1,t=-1;if(i){if((t=distanceToMatch(a,o))<0)return!0;e=distanceToMatch(a,r,0<=t?t:Infinity)}else{if((e=distanceToMatch(a,r))<0)return!1;t=distanceToMatch(a,o,0<=e?e:Infinity)}return 0<=e?!(0<=t)||e<=t:!(0<=t||!i)}catch(e){}return!!i}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}const 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=104857600,SESSION_RECORDING_ID="pendo_srId",SESSION_RECORDING_LAST_USER_INTERACTION_EVENT="pendo_srLastUserInteractionEvent",SEND_INTERVAL=5e3,MAX_SEND_COUNT=2e4,EVENT_TYPES={INCREMENTAL_SOURCE_MUTATION:0,FULL_SNAPSHOT:2,INCREMENTAL_SNAPSHOT:3,META:4,INCREMENTAL_SOURCE_INPUT:5};class SessionRecorder{constructor(e,t){this.name="Replay",this.record=e,this.WorkerClass=t,this.lastKeyFrameTime=0,this.eventsSinceLastKeyFrame=0,this.currentRecordingSize=0}addConfigOptions(){var e=this.api.ConfigReader;e.addOption(RECORDING_CONFIG,[e.sources.PENDO_CONFIG_SRC],{}),e.addOption(RECORDING_CONFIG_AUTO_START,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_ENABLED,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_ON_RECORDING_START,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_ON_RECORDING_STOP,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_WORKERURL,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_WORKER_OVERRIDE,[e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RESOURCE_CACHING,[e.sources.PENDO_CONFIG_SRC],undefined)}initialize(e,t){this.pendo=e,this.api=t;e=this.pendo._.bind,t=this.api.ConfigReader;this.buffer=new SessionRecorderBuffer(SEND_INTERVAL,MAX_SEND_COUNT),this.buffer.onRateLimit=e(this.rateLimitExceeded,this),this.transport=new Transport(this.WorkerClass,this.pendo,this.api),this.transport.onError=e(this.sendFailure,this,"WORKER_ERROR"),this.transport.onWorkerMessage=e(this.onWorkerMessage,this),this.sendQueue=new SendQueue(e(this.transport.send,this.transport)),this.sendQueue.onTimeout=e(this.sendFailure,this,"SEND_TIMEOUT"),this.isNewSession=!1,this.addConfigOptions(),this.config=t.get(RECORDING_CONFIG),this.onRecordingStart=this.pendo._.isFunction(t.get(RECORDING_CONFIG_ON_RECORDING_START))?t.get(RECORDING_CONFIG_ON_RECORDING_START):function(){},this.onRecordingStop=this.pendo._.isFunction(t.get(RECORDING_CONFIG_ON_RECORDING_STOP))?t.get(RECORDING_CONFIG_ON_RECORDING_STOP):function(){};let n=!1;var i=t.get(RECORDING_CONFIG_ENABLED);this.pendo._.isBoolean(i)?(n=i)||this.api.log.info("Session Replay disabled via the snippet config"):n=this.config.enabled,n&&(t.get("excludeNonGuideAnalytics")?this.api.log.info("Session Replay is disabled because excludeNonGuideAnalytics is enabled"):(i=this.sessionIdKey=SESSION_RECORDING_ID+"."+this.pendo.apiKey,this.pendo.recording={start:e(this.start,this),stop:e(this.stop,this)},this.subscriptions=[this.api.attachEvent(this.api.Events,"appHidden",e(this.handleHidden,this)),this.api.attachEvent(this.api.Events,"appUnloaded",e(this.handleUnload,this)),this.api.attachEvent(this.api.Events,"identify",e(this.changeIdentity,this)),this.api.attachEvent(this.api.Events,"metadata",e(this.changeMetadata,this)),this.api.attachEvent(this.api.Events,"eventCaptured",e(this.addRecordingId,this)),this.api.attachEvent(this.api.Events,"transmit:locked",e(this.stop,this)),this.api.attachEvent(this.api.Events,"transmit:unlocked",e(this._start,this)),this.api.attachEvent(this.api.frames.getChannel(),"message",e(this._frameMessage,this)),this.api.attachEvent(this.api.Events,"tabIdChanged:self",e(this.handleTabIdChange,this))],this.api.store.getters["frames/isReady"]()?this.ready():this.subscriptions.push(this.api.attachEvent(this.api.Events,"ready",e(this.ready,this))),this.api.agentStorage.registry.addSession(i),this.api.agentStorage.registry.addSession(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)))}teardown(){delete this.pendo.recording,delete this.allowStart,this.pendo._.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0,this.stop(),this.transport.stop()}ready(){!1!==this.api.ConfigReader.get(RECORDING_CONFIG_AUTO_START)&&this.start()}changeIdentity(e){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(()=>{this._start()},500))}changeMetadata(e){var{hashChanged:e,options:t}=e.data[0];if(this.allowStart&&e)return clearTimeout(this._changeIdentityTimer),this.visitorId=t.visitor.id,this.accountId=t.account.id,this.fetchVisitorConfig().then(e=>{e&&e.enable||!this.isRecording()?e&&e.enable&&!this.isRecording()&&this._startRecordingForVisitor(e):this.stop()})["catch"](e=>{this.api.log.critical("Failed to re-fetch recording config",{error:e}),this.logStopReason("VISITOR_CONFIG_ERROR")})}snapshot(){this.isRecording()&&(this.send(),this.record.takeFullSnapshot())}isRecording(){return null!=this.interval}recordingConfig(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:{}},t=(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});return t}start(){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()}_markEvents(e){if(this.recordingId)for(var t of e)t.visitor_id===this.visitorId&&"identify"!==t.type&&(t.recordingId=this.recordingId,t.recordingSessionId=this.sessionId(this.recordingId))}restartPtm(){if(this.pendo._.isFunction(this._restartPtm)){this._markEvents(this.pendo.buffers.events);for(var e of this.pendo.buffers.silos)this._markEvents(e);this._restartPtm(),this._restartPtm=null}}_start(){if(!this.isRecording()&&this.pendo.isSendingEvents()&&this.allowStart)return this.fetchVisitorConfig().then(e=>{this.allowStart&&(e&&e.enable?this._startRecordingForVisitor(e):(this.restartPtm(),this.logStopReason("VISITOR_DISABLED")))})["catch"](e=>{this.restartPtm(),this.api.log.critical("Failed to fetch recording config",{error:e}),this.logStopReason("VISITOR_CONFIG_ERROR")})}_startRecordingForVisitor(e){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 t=this.pendo._.bind,n=(this.visitorConfig=e,this.clearOldSessionId(),this.sendQueue.start(),this.interval=setInterval(()=>{this.sendQueue.failed()||this.send()},SEND_INTERVAL),this.recordingConfig(e));this._stop=this.record(this.pendo._.extend({emit:t(this.emit,this)},n)),this._refreshIds(),this.onRecordingStart()}catch(i){this.restartPtm(),this.logStopReason("RECORDING_ERROR")}}_sendIds(){window==window.top&&this.api.frames.getChannel().postMessage({type:"pendo:sr:id",recordingId:this.recordingId,_sessionId:this._sessionId,topId:this.api.store.state.frames.topId})}_refreshIds(){window!=window.top&&this.api.frames.getChannel().postMessage({type:"pendo:sr:refresh"})}_frameMessage(e){e=e.data;"pendo:sr:id"===e.type?this.api.EventTracer.getTabId()==e.tabId&&this.api.store.state.frames.topId!=e.topId||(this.recordingId=e.recordingId,this._sessionId=e._sessionId,this.restartPtm()):"pendo:sr:refresh"===e.type&&window==window.top&&this._sendIds()}clearSessionId(){delete this._sessionId,this.api.sessionStorage.removeItem(SESSION_RECORDING_ID),this.api.sessionStorage.removeItem(this.sessionIdKey)}sessionId(t=this.pendo.randomString(16)){if(!this._sessionId){let e=this.api.sessionStorage.getItem(this.sessionIdKey);var n;e||((n=this.api.sessionStorage.getItem(SESSION_RECORDING_ID))?(e=n,this.api.sessionStorage.removeItem(SESSION_RECORDING_ID)):e=t,this.api.sessionStorage.setItem(this.sessionIdKey,e)),this._sessionId=e}return this._sessionId}clearOldSessionId(){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}clearSessionInfo(){this.currentRecordingSize=0,this.clearSessionId(),this.clearLastUserInteractionEventInformation()}isUserInteraction(e){return e.type===EVENT_TYPES.INCREMENTAL_SNAPSHOT&&e.data.source>EVENT_TYPES.INCREMENTAL_SOURCE_MUTATION&&e.data.source<=EVENT_TYPES.INCREMENTAL_SOURCE_INPUT}storeLastUserInteractionEventInformation(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)))}clearLastUserInteractionEventInformation(){delete this.lastUserInteractionEventInfo,this.api.sessionStorage.removeItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)}getLastUserInteractionEventInformation(){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}}emit(e){e.timestamp&&e.timestamp.getTime&&(e.timestamp=e.timestamp.getTime()),e.timestamp||(e.timestamp=(new Date).getTime());var t=e.type===EVENT_TYPES.META,n=e.type===EVENT_TYPES.FULL_SNAPSHOT,i=this.pendo._.get(this.getLastUserInteractionEventInformation(),"timestamp");let r=!i&&t?!0:!1;this.storeLastUserInteractionEventInformation(e,this.visitorId,this.accountId,r);var o=this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES);i&&e.timestamp-i>o&&!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,o=(i=e.timestamp-this.lastKeyFrameTime)>=ONE_DAY_IN_MILLISECONDS,n=i>=this.pendo._.get(this.visitorConfig,"keyframeTimeFrequency",30645047),t=this.eventsSinceLastKeyFrame>=this.pendo._.get(this.visitorConfig,"keyframeEventFrequency",4548),e=this.currentRecordingSize>=this.pendo._.get(this.visitorConfig,"recordingSizeLimit",ONE_HUNDRED_MB_IN_BYTES),o||n&&t||e)&&(this.currentRecordingSize=0,this.snapshot()))}updateCurrentRecordingSize(e){this.currentRecordingSize+=e}onWorkerMessage(e){switch(e.type){case"recordingPayloadSize":var{recordingPayloadSize:t,exceedsPayloadSizeLimit:n}=e;if(!t)return;if(n)return this.stop(),void this.logStopReason("BIG_PAYLOAD",t);this.updateCurrentRecordingSize(t);break;case"hostedResources":n=e["hostedResourcesEvent"];n&&this.sendHostedResources(n)}}addRecordingId(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]))}stop(){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()}handleHidden(){this.send({hidden:!0})}handleUnload(){this.send({unload:!0})}buildRequestUrl(e,t){t=this.pendo._.extend({},this.api.agent.getJwtInfoCopy(),t),t=this.pendo._.map(t,function(e,t){return t+"="+e}).join("&");return t.length?e+"?"+t:e}sendFailure(e){this.stop(),this.logStopReason(e)}rateLimitExceeded(){this.send(),this.stop(),this.logStopReason("DATA_OVERLOAD")}send({unload:e=!1,keyframe:t=!1,hidden:n=!1}={}){if(this.isRecording()&&this.buffer&&this.recordingId&&!this.buffer.isEmpty())if(this.pendo.isSendingEvents()){var i=this.api.EventTracer.addTracerIds({}),t=this.pendo._.extend({type:"recording",visitorId:this.visitorId,accountId:this.accountId,keyFrame:!!t,lastKeyFrame:this.lastKeyFrameTime,recordingId:this.recordingId,recordingSessionId:this.sessionId(this.recordingId),url:this.pendo.url.get()},i),i=(this.transport.usesSelfHostedWorker&&(t.usesSelfHostedWorker=!0),this.api.Events.eventCaptured.trigger(t),{v:this.pendo.VERSION,recordingId:this.recordingId}),i=(t.keyFrame&&(i.kf=1),this.isNewSession&&(this.isNewSession=!(i.ns=1)),this.buildRequestUrl(this.pendo.HOST+"/data/rec/"+this.pendo.apiKey,i)),t=this.buffer.pack(t,this.pendo._);if(e||n)try{this.sendQueue.drain([{url:i,payload:t}],e)}catch(r){r.reason&&this.logStopReason(r.reason)}else this.sendQueue.push({url:i,payload:t});this.buffer.isEmpty()||this.send({unload:e})}else this.buffer.clear()}fetchVisitorConfig(){var e=this.pendo.compress({url:this.pendo.url.get(),metadata:this.pendo.getSerializedMetadata(),visitorId:this.visitorId,accountId:this.accountId}),e=this.buildRequestUrl(this.pendo.HOST+"/data/recordingconf/"+this.pendo.apiKey,{jzb:e,ct:(new Date).getTime(),v:this.pendo.VERSION});return fetch(e,{method:"GET"}).then(e=>e.json())}logStopReason(e,t){var n=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:Object.assign({reason:e},t&&{error:t})},n),t=this.pendo.compress(e),n=this.buildRequestUrl(this.pendo.HOST+"/data/rec/"+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(n,{body:t,keepalive:!0})["catch"](e=>{this.api.log.critical("Failed to send reason for stopping recording",{error:e})})}sendHostedResources(e){var t=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend(Object.assign(Object.assign({},e),{browserTime:(new Date).getTime()}),t),t=this.buildRequestUrl(this.pendo.HOST+"/data/rec/"+this.pendo.apiKey,{ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),e=this.pendo.compress(e,"binary");return this.transport.post(t,{body:e,keepalive:!0})["catch"](e=>{this.api.log.critical("Failed to send hosted resources for recording event",{error:e})})}handleTabIdChange(){this.send(),this.clearSessionInfo(),this.snapshot()}}function wrapMethodWithCatch(t){return function(){try{return t.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 of Object.getOwnPropertyNames(e.constructor.prototype))"constructor"!==t&&(e[t]=wrapMethodWithCatch(e[t]));return e}function funcToSource(e,t){var t=t===undefined?null:t,n=[],e=(e=e.toString()).replace(/(['"])__worker_loader_strict__(['"])/g,"$1use strict$2");return n.push("("+e+")()"),t&&n.push("//# sourceMappingURL="+t+"\n"),n}function createURL(e,t){e=funcToSource(e,t),t=new Blob(e,{type:"application/javascript"});return URL.createObjectURL(t)}function createInlineWorkerFactory(t,n){var i;return function WorkerFactory(e){return i=i||createURL(t,n),new Worker(i,e)}}var WorkerFactory=createInlineWorkerFactory(function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function c(e,t){t=t||r;e=function(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}("string"==typeof e?e:JSON.stringify(e)),e=new i.Deflate(e).compress();return t===r?n.uint8ToBase64(e):e}function l(e,t){t=t.match(/https:\/\/[^\s]+?\.(woff|woff2|ttf|otf|eot)\b/g);return{type:"recording",visitorId:e.visitorId,accountId:e.accountId,keyFrame:!1,lastKeyFrame:e.lastKeyFrame,recordingId:e.recordingId,recordingSessionId:e.recordingSessionId,url:e.url,subType:"hostedResources",recordingPayload:[],recordingPayloadMetadata:[],sequence:0,recordingPayloadCount:0,hostedResources:t||[]}}var a,n,t,i,r;a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),n={uint8ToBase64:function(e){var t,n,i,r=e.length%3,o="";for(t=0,i=e.length-r;t<i;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],o+=function(e){return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=a[n>>2])+a[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=a[n>>10])+a[n>>4&63])+a[n<<2&63]}return o}},function(){var X=void 0,Q=!0,o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||t===X?r=r[n]||(r[n]={}):r[n]=t}var ee="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function te(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(ee?Uint8Array:Array)?e:new(ee?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&d(this)}function d(e){var t,n=e.buffer,i=n.length,r=new(ee?Uint8Array:Array)(i<<1);if(ee)r.set(n);else for(t=0;t<i;++t)r[t]=n[t];return e.buffer=r}te.prototype.b=function(e,t,n){var i,r=this.buffer,o=this.index,a=this.e,s=r[o];if(n&&1<t&&(e=8<t?(u[255&e]<<24|u[e>>>8&255]<<16|u[e>>>16&255]<<8|u[e>>>24&255])>>32-t:u[e]>>8-t),t+a<8)s=s<<t|e,a+=t;else for(i=0;i<t;++i)s=s<<1|e>>t-i-1&1,8==++a&&(a=0,r[o++]=u[s],s=0,o===r.length)&&(r=d(this));r[o]=s,this.buffer=r,this.e=a,this.index=o},te.prototype.finish=function(){var e=this.buffer,t=this.index;return 0<this.e&&(e[t]<<=8-this.e,e[t]=u[e[t]],t++),ee?e.subarray(0,t):(e.length=t,e)};for(var t=new(ee?Uint8Array:Array)(256),n=0;n<256;++n){for(var i=a=n,r=7,a=a>>>1;a;a>>>=1)i=i<<1|1&a,--r;t[n]=(i<<r&255)>>>0}var u=t;function c(e){this.buffer=new(ee?Uint16Array:Array)(2*e),this.length=0}function s(e,t){this.d=ne,this.i=0,this.input=ee&&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=ee&&t.outputBuffer instanceof Array?new Uint8Array(t.outputBuffer):t.outputBuffer),"number"==typeof t.outputIndex)&&(this.c=t.outputIndex),this.a||(this.a=new(ee?Uint8Array:Array)(32768))}c.prototype.getParent=function(e){return 2*((e-2)/4|0)},c.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},c.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 ne=2,l={NONE:0,h:1,g:ne,n:3},ie=[],p=0;p<288;p++)switch(Q){case p<=143:ie.push([p+48,8]);break;case p<=255:ie.push([p-144+400,9]);break;case p<=279:ie.push([p-256,7]);break;case p<=287:ie.push([p-280+192,8]);break;default:throw"invalid literal: "+p}function b(e,t){this.length=e,this.k=t}s.prototype.f=function(){var e,t,F,n=this.input;switch(this.d){case 0:for(t=0,F=n.length;t<F;){var $,D,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===F,o=X,a=this.a,s=this.c;if(ee){for(a=new Uint8Array(this.a.buffer);a.length<=s+i.length+5;)a=new Uint8Array(a.length<<1);a.set(this.a)}if(a[s++]=0|(r?1:0),$=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&$,a[s++]=$>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,D=i.length;o<D;++o)a[s++]=i[o];a.length=s}this.c=s,this.a=a}break;case 1:for(var d,u=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),c=(u.b(1,1,Q),u.b(1,2,Q),re(this,n)),l=0,U=c.length;l<U;l++)if(d=c[l],te.prototype.b.apply(u,ie[d]),256<d)u.b(c[++l],c[++l],Q),u.b(c[++l],5),u.b(c[++l],c[++l],Q);else if(256===d)break;this.a=u.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,G,b,w,S,j,I=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],z=Array(19),_=ne;for(I.b(1,1,Q),I.b(_,2,Q),p=re(this,n),_=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var E,C,T,x,k,H=h,W=f,A=new(ee?Uint32Array:Array)(H+W),O=new(ee?Uint32Array:Array)(316),R=new(ee?Uint8Array:Array)(19),M=E=0;M<H;M++)A[E++]=m[M];for(M=0;M<W;M++)A[E++]=v[M];if(!ee)for(M=0,T=R.length;M<T;++M)R[M]=0;for(M=x=0,T=A.length;M<T;M+=E){for(E=1;M+E<T&&A[M+E]===A[M];++E);if(C=E,0===A[M])if(C<3)for(;0<C--;)R[O[x++]=0]++;else for(;0<C;)(k=C-3<(k=C<138?C:138)&&k<C?C-3:k)<=10?(O[x++]=17,O[x++]=k-3,R[17]++):(O[x++]=18,O[x++]=k-11,R[18]++),C-=k;else if(O[x++]=A[M],R[A[M]]++,--C<3)for(;0<C--;)O[x++]=A[M],R[A[M]]++;else for(;0<C;)C-3<(k=C<6?C:6)&&k<C&&(k=C-3),O[x++]=16,O[x++]=k-3,R[16]++,C-=k}for(e=ee?O.subarray(0,x):O.slice(0,x),y=oe(R,7),S=0;S<19;S++)z[S]=y[B[S]];for(g=19;4<g&&0===z[g-1];g--);for(G=ae(y),I.b(h-257,5,Q),I.b(f-1,5,Q),I.b(g-4,4,Q),S=0;S<g;S++)I.b(z[S],3,Q);for(S=0,j=e.length;S<j;S++)if(b=e[S],I.b(G[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}I.b(e[S],w,Q)}for(var N,q,_=[_,m],L=[L,v],V=_[0],K=_[1],J=L[0],Z=L[1],P=0,Y=p.length;P<Y;++P)if(N=p[P],I.b(V[N],K[N],Q),256<N)I.b(p[++P],p[++P],Q),q=p[++P],I.b(J[q],Z[q],Q),I.b(p[++P],p[++P],Q);else if(256===N)break;this.a=I.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){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}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,d=w[e.length];switch(a[s++]=65535&d,a[s++]=d>>16&255,a[s++]=d>>24,Q){case 1===o:n=[0,o-1,0];break;case 2===o:n=[1,o-2,0];break;case 3===o:n=[2,o-3,0];break;case 4===o:n=[3,o-4,0];break;case o<=6:n=[4,o-5,1];break;case o<=8:n=[5,o-7,1];break;case o<=12:n=[6,o-9,2];break;case o<=16:n=[7,o-13,2];break;case o<=24:n=[8,o-17,3];break;case o<=32:n=[9,o-25,3];break;case o<=48:n=[10,o-33,4];break;case o<=64:n=[11,o-49,4];break;case o<=96:n=[12,o-65,5];break;case o<=128:n=[13,o-97,5];break;case o<=192:n=[14,o-129,6];break;case o<=256:n=[15,o-193,6];break;case o<=384:n=[16,o-257,7];break;case o<=512:n=[17,o-385,7];break;case o<=768:n=[18,o-513,8];break;case o<=1024:n=[19,o-769,8];break;case o<=1536:n=[20,o-1025,9];break;case o<=2048:n=[21,o-1537,9];break;case o<=3072:n=[22,o-2049,10];break;case o<=4096:n=[23,o-3073,10];break;case o<=6144:n=[24,o-4097,11];break;case o<=8192:n=[25,o-6145,11];break;case o<=12288:n=[26,o-8193,12];break;case o<=16384:n=[27,o-12289,12];break;case o<=24576:n=[28,o-16385,13];break;case o<=32768:n=[29,o-24577,13];break;default:throw"invalid distance"}for(d=n,a[s++]=d[0],a[+s]=d[1],a[5]=d[2],i=0,r=a.length;i<r;++i)h[f++]=a[i];m[a[0]]++,v[a[3]]++,g=e.length+t-1,c=null}var i,r,o,a,s,d,u,c,l,p={},h=ee?new Uint16Array(2*t.length):[],f=0,g=0,m=new(ee?Uint32Array:Array)(286),v=new(ee?Uint32Array:Array)(30),y=e.i;if(!ee){for(o=0;o<=285;)m[o++]=0;for(o=0;o<=29;)v[o++]=0}for(m[256]=1,i=0,r=t.length;i<r;++i){for(o=s=0,a=3;o<a&&i+o!==r;++o)s=s<<8|t[i+o];if(p[s]===X&&(p[s]=[]),d=p[s],!(0<g--)){for(;0<d.length&&32768<i-d[0];)d.shift();if(r<=i+3){for(c&&n(c,-1),o=0,a=r-i;o<a;++o)l=t[i+o],h[f++]=l,++m[l];break}0<d.length?(u=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)}(t,i,d),c?c.length<u.length?(l=t[i-1],h[f++]=l,++m[l],n(u,0)):n(c,-1):u.length<y?c=u:n(u,0)):c?n(c,-1):(l=t[i],h[f++]=l,++m[l])}d.push(i)}return h[f++]=256,m[256]++,e.m=m,e.l=v,ee?h.subarray(0,f):h}function oe(e,t){var n,i,r,o,a,s=e.length,d=new c(572),u=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)u[o]=0;for(o=0;o<s;++o)0<e[o]&&d.push(o,e[o]);if(n=Array(d.length/2),i=new(ee?Uint32Array:Array)(d.length/2),1===n.length)u[d.pop().index]=1;else{for(o=0,a=d.length/2;o<a;++o)n[o]=d.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,d=new(ee?Uint16Array:Array)(t),u=new(ee?Uint8Array:Array)(t),c=new(ee?Uint8Array:Array)(n),l=Array(t),p=Array(t),h=Array(t),f=(1<<t)-n,g=1<<t-1;for(d[t-1]=n,r=0;r<t;++r)f<g?u[r]=0:(u[r]=1,f-=g),f<<=1,d[t-2-r]=(d[t-1-r]/2|0)+n;for(d[0]=u[0],l[0]=Array(d[0]),p[0]=Array(d[0]),r=1;r<t;++r)d[r]>2*d[r-1]+u[r]&&(d[r]=2*d[r-1]+u[r]),l[r]=Array(d[r]),p[r]=Array(d[r]);for(i=0;i<n;++i)c[i]=t;for(o=0;o<d[t-1];++o)l[t-1][o]=e[o],p[t-1][o]=o;for(i=0;i<t;++i)h[i]=0;for(1===u[t-1]&&(--c[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<d[r];o++)(a=l[r+1][s]+l[r+1][s+1])>e[i]?(l[r][o]=a,p[r][o]=n,s+=2):(l[r][o]=e[i],p[r][o]=i,++i);h[r]=0,1===u[r]&&function m(e){var t=p[e][h[e]];t===n?(m(e+1),m(e+1)):--c[t],++h[e]}(r)}return c}(i,i.length,t),o=0,a=n.length;o<a;++o)u[n[o].index]=r[o]}return u}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,d=e.length;s<d;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,d=16;s<=d;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,d=e.length;s<d;s++)for(a=o[e[s]],o[e[s]]+=1,t=i[s]=0,n=e[s];t<n;t++)i[s]=i[s]<<1|1&a,a>>>=1;return i}function f(e,t){this.input=e,this.a=new(ee?Uint8Array:Array)(32768),this.d=S.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 s(this.input,i)}var g,m,v,y,S=l,I=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,d=a.length;s<d;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var u,c=1,l=0,p=o.length,h=0;0<p;){for(p-=u=1024<p?1024:p;l+=c+=o[h++],--u;);c%=65521,l%=65521}return r=(l<<16|c)>>>0,this.j.c=2,n=(i=this.j.f()).length,ee&&((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++]=r>>24&255,i[n++]=r>>16&255,i[n++]=r>>8&255,i[+n]=255&r,i},e("Zlib.Deflate",f),e("Zlib.Deflate.compress",function(e,t){return new f(e,t).f()}),e("Zlib.Deflate.prototype.compress",f.prototype.f),{NONE:S.NONE,FIXED:S.h,DYNAMIC:S.g});if(Object.keys)g=Object.keys(I);else for(m in g=[],v=0,I)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),I[m])}.call((t={exports:{}}).exports),i={Deflate:e(t.exports).Zlib.Deflate},r="base64url",self.onmessage=function(e){try{if(e.data.url&&e.data.payload){var{url:t,payload:n,shouldCacheResources:i}=e.data;const u=n["sequence"];var r,o,a=JSON.stringify(n.recordingPayload),s=(new TextEncoder).encode(a).length,d=104857600<=s;postMessage({type:"recordingPayloadSize",recordingPayloadSize:s,exceedsPayloadSizeLimit:d}),d||(i&&(r=l(n,a)).hostedResources.length&&postMessage({type:"hostedResources",hostedResourcesEvent:r}),n.recordingSize=s,o=c(n,"binary"),t=t+"&ct="+(new Date).getTime(),fetch(t,{method:"POST",body:o}).then(function(e){e.status<200||300<=e.status?postMessage({error:new Error(`received status code ${e.status}: `+e.statusText),status:e.status,sequence:u}):postMessage({sequence:u})})["catch"](function(e){postMessage({error:e,sequence:u})}))}}catch(e){postMessage({error:e})}}},null);function createReplayPlugin(){return errorLogger(new SessionRecorder(record(),WorkerFactory))}export{Feedback,GuideMarkdown,createReplayPlugin as Replay,TextCapture,VocPortal,loadAgent};
|
|
139
|
+
`,f.util.addInlineStyles(p.feedbackFrameStyles,t),t=e,(e=h.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"}),e.attr("id",p.feedbackWidget),e.attr("data-turbolinks-permanent","true"),e.addClass("buttonIs-"+t);var t=e;t.append(((e=h.dom(document.createElement("iframe"))).css({width:"100%",height:"99.6%",border:"0 none"}),e.attr("id",p.feedbackIframe),e.attr("title","Feedback"),e.attr("src",y()),e)),t.appendTo(h.dom.getBody()),U()}function z(){return o}function M(){let e=f.ConfigReader.getLocalConfig();return h._.isObject(e)||(e={}),h._.isObject(e.visitor)||(e.visitor={}),h._.isObject(e.account)||(e.account={}),e}function H(e){e=e||M();if(!isUnsupportedIE(h)&&s&&a&&d&&u)if(h._.get(e.visitor,"id")){if(!h.isAnonymousVisitor(e.visitor.id)){if(h._.get(e.account,"id"))return 1;h.log("The current visitor is not associated with an account.")}}else h.log("Not valid visitor id")}function L(e,t){if(s=t.vendorId,a=t.apiUrl,d=t.siteUrl,u=t.productId,l)return f.q.reject();if(!H(e))return f.q.reject();var n,i,e=F(e);try{n=h.url.get(),i="fdbkDst";const o=null!=(i=new RegExp("[?&]"+i+"=([^&#]*)").exec(n))&&decodeURI(i[1])||null;if(o&&o.startsWith("case"))return l=!0,void _().then(function(e){e=e+"&fdbkDst="+o;window.location.href=e})}catch(r){l=!1,h.log(r,"unhandled error while checking feedback destination")}try{return l=!0,"WIDGET"===t.type&&G(t),I(),w(e)}catch(r){return l=!1,h.log(r,"unhandled error while initializing feedback"),f.q.reject(r)}}function F(e){var t,n,i=f.agent.getJwtInfoCopy();return h._.isEmpty(i)?((t={}).user=h._.pick(e.visitor,"id","full_name","firstName","lastName","email","tags","custom_allowed_products"),h._.extend(t.user,{allowed_products:[{id:u}]}),t.account=h._.pick(e.account,"id","name","monthly_value","is_paying","tags"),h._.extend(t,{vendor:{id:s}}),h._.isUndefined(t.account.is_paying)&&(t.account.is_paying=!0),null!=t.user.email&&""!=t.user.email||(t.user.email=(e=t,h._.isUndefined(e.user)||h._.isUndefined(e.user.id)?"noemail+"+h.randomString(32)+"@pendo.io":"noemail+"+e.user.id+"@pendo.io")),null!=t.user.full_name&&""!=t.user.full_name||(t.user.full_name=(e=t,h._.isUndefined(e.user.firstName)&&h._.isUndefined(e.user.lastName)?h._.isUndefined(e.user)||h._.isUndefined(e.user.id)?"No Name Provided"+h.randomString(32):"No Name Provided"+e.user.id:(n=[],h._.isUndefined(e.user.firstName)||n.push(e.user.firstName),h._.isUndefined(e.user.lastName)||n.push(e.user.lastName),n.join(" ")))),t):(e=JSON.parse(JSON.stringify(i)),h._.extend(e,{vendor:{id:s}}),h._.extend(e,{allowed_products:[{id:u}]}),e)}function j(){return l}function P(){h._.each(h._.values(p),function(e){h.dom("#"+e).remove()}),u=r=d=s=a="",l=o=!1,f.agentStorage.clear(i),f.agentStorage.clear(c)}function W(){return JSON.parse(JSON.stringify(f.ConfigReader.get("feedbackSettings",{})))}}function URLPolyfillFactory(n){return function URL(e){var t=n.createElement("a");if(t.href=e,":"===t.protocol)throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");if(t.href!==e&&t.href!==encodeURI(e))throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");return t.toString||(t.toString=function(){return t.href}),null==t.origin&&(t.origin=t.protocol+"//"+t.hostname,"80"!==t.port)&&"443"!==t.port&&(t.origin+=":"+t.port),t}}var URL$1=function(e){var t=window.URL;return"function"==typeof t&&/native/.test(t)?t:e(document)}(URLPolyfillFactory);function record(){var t,a=Object.defineProperty,s=(e,t,n)=>{return n=n,(t="symbol"!=typeof t?t+"":t)in(e=e)?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},d=Object.defineProperty,u=(e,t,n)=>{return n=n,(t="symbol"!=typeof t?t+"":t)in(e=e)?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},F=(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))(F||{});const l={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},g={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},m={};function v(e){if(m[e])return m[e];var t=function(e){var t,n=null==(t=null==(n=null==globalThis?void 0:globalThis.Zone)?void 0:n.__symbol__)?void 0:t.call(n,e);if(n&&globalThis[n])return globalThis[n]}(e)||globalThis[e];const n=t.prototype;var i=e in l?l[e]:void 0,i=Boolean(i&&i.every(e=>{return Boolean(null==(e=null==(e=Object.getOwnPropertyDescriptor(n,e))?void 0:e.get)?void 0:e.toString().includes("[native code]"))})),r=e in g?g[e]:void 0,r=Boolean(r&&r.every(e=>{return"function"==typeof n[e]&&(null==(e=n[e])?void 0:e.toString().includes("[native code]"))}));if(i&&r)return m[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?m[e]=o:n):t.prototype}catch{return n}}const y={};function n(e,t,n){var i=e+"."+String(n);return y[i]?y[i].call(t):(e=v(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(y[i]=e).call(t):t[n])}const b={};function w(e,t,n){var i=e+"."+String(n);return b[i]?b[i].bind(t):"function"!=typeof(e=v(e)[n])?t[n]:(b[i]=e).bind(t)}const P={childNodes:function(e){return n("Node",e,"childNodes")},parentNode:function(e){return n("Node",e,"parentNode")},parentElement:function(e){return n("Node",e,"parentElement")},textContent:function(e){return n("Node",e,"textContent")},contains:function(e,t){return w("Node",e,"contains")(t)},getRootNode:function(e){return w("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?n("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?n("Element",e,"shadowRoot"):null},querySelector:function(e,t){return n("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return n("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return v("MutationObserver").constructor},patch:function(e,t,n){try{if(!(t in e))return()=>{};const r=e[t];var i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}};function V(e){return e.nodeType===e.ELEMENT_NODE}function D(e){var t=e&&"host"in e&&"mode"in e&&P.host(e)||null;return Boolean(t&&"shadowRoot"in t&&P.shadowRoot(t)===e)}function U(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function S(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]}const G="undefined"!=typeof window?S("setTimeout").bind(window):global.setTimeout;function R(e){try{var n=e.rules||e.cssRules;if(!n)return null;let t=e.href;!t&&e.ownerNode&&e.ownerNode.ownerDocument&&(t=e.ownerNode.ownerDocument.baseURI);var i=Array.from(n,e=>I(e,t)).join("");return r=(r=i).includes(" background-clip: text;")&&!r.includes(" -webkit-background-clip: text;")?r.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"):r}catch(t){return null}var r}function I(t,n){var i,r;if("styleSheet"in t){let e;try{e=R(t.styleSheet)||((r=(i=t).cssText).split('"').length<3?r:(r=["@import",`url(${JSON.stringify(i.href)})`],""===i.layerName?r.push("layer"):i.layerName&&r.push(`layer(${i.layerName})`),i.supportsText&&r.push(`supports(${i.supportsText})`),i.media.length&&r.push(i.media.mediaText),r.join(" ")+";"))}catch(o){e=t.cssText}return null!=(i=null==t?void 0:t.styleSheet)&&i.href?f(e,t.styleSheet.href):e}{let e=t.cssText;return"selectorText"in t&&(e=function(t){var e=t.cssText.includes("grid-template:"),n=""!==t.style.getPropertyValue("grid-template-areas"),i=t.cssText.includes("grid-template-areas:");if(e&&n&&!i){var r=[];for(let e=0;e<t.style.length;e++){var o=t.style[e],a=t.style.getPropertyValue(o);r.push(o+": "+a)}return`${t.selectorText} { ${r.join("; ")}; }`}return t.cssText}(t),t.selectorText.includes(":"))&&(e=e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),n?f(e,n):e}}class ue{constructor(){u(this,"idNodeMap",new Map),u(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 K({element:e,maskInputOptions:t,tagName:n,type:i,value:r,maskInputFn:o,needsMask:a}){let s=r||"";r=i&&T(i);return s=t[n.toLowerCase()]||r&&t[r]||a?o?o(s,e):"*".repeat(s.length):s}function T(e){return e.toLowerCase()}const A="__rrweb_original__";function $(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?T(t):null}function Z(e,t){let n;try{n=new URL$1(e,t??window.location.href)}catch(i){return null}e=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==e?void 0:e[1])??null}const E=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,C=/^(?:[a-z+]+:)?\/\//i,x=/^www\..*/i,_=/^(data:)([^,]*),(.*)/i;function f(e,d){return(e||"").replace(E,(e,t,n,i,r,o)=>{n=n||r||o,r=t||i||"";if(!n)return e;if(C.test(n)||x.test(n))return`url(${r}${n}${r})`;if(_.test(n))return`url(${r}${n}${r})`;if("/"===n[0])return`url(${r}${function(e){let t="";return t=(t=-1<e.indexOf("//")?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}(d)+n}${r})`;var a=d.split("/"),o=n.split("/");a.pop();for(const s of o)"."!==s&&(".."===s?a.pop():a.push(s));return`url(${r}${a.join("/")}${r})`})}function O(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function N(e,t){return function(a,e,s=!1){var d=Array.from(e.childNodes),u=[];let l=0;if(1<d.length&&a&&"string"==typeof a){let o=O(a,s);var c=o.length/a.length;for(let r=1;r<d.length;r++)if(d[r].textContent&&"string"==typeof d[r].textContent){var p,h=O(d[r].textContent,s);let i=3;for(;i<h.length&&(h[i].match(/[a-zA-Z0-9]/)||-1!==h.indexOf(h.substring(0,i),1));i++);for(;i<h.length;i++){let e=h.substring(0,i),t=o.split(e),n=-1;if(2===t.length)n=t[0].length;else if(2<t.length&&""===t[0]&&""!==d[r-1].textContent)n=o.indexOf(e,1);else if(1===t.length){if(e=e.substring(0,e.length-1),(t=o.split(e)).length<=1)return u.push(a),u;i=101}else i===h.length-1&&(n=o.indexOf(e));if(-1!==(n=2<=t.length&&100<i&&((p=d[r-1].textContent)&&"string"==typeof p&&(p=O(p).length,n=o.indexOf(e,p)),-1===n)?t[0].length:n)){let e=Math.floor(n/c);for(;0<e&&e<a.length;){if((l+=1)>50*d.length)return u.push(a),u;var f=O(a.substring(0,e),s);if(f.length===n){u.push(a.substring(0,e)),a=a.substring(e),o=o.substring(n);break}f.length<n?e+=Math.max(1,Math.floor((n-f.length)/c)):e-=Math.max(1,Math.floor((f.length-n)*c))}break}}}}return u.push(a),u}(e,t).join("/* rr_split */")}let Y=1;const M=new RegExp("[^a-z0-9-_:]"),B=-2;function le(){return Y++}let k,ce;const pe=/^[^ \t\n\r\u000c]+/,he=/^[, \t\n\r\u000c]+/;function fe(i,r){if(""===r.trim())return r;let o=0;function e(e){var e=e.exec(r.substring(o));return e?(e=e[0],o+=e.length,e):""}for(var a=[];e(he),!(o>=r.length);){let n=e(pe);if(","===n.slice(-1))n=me(i,n.substring(0,n.length-1)),a.push(n);else{let e="",t=(n=me(i,n),!1);for(;;){var s=r.charAt(o);if(""===s){a.push((n+e).trim());break}if(t)")"===s&&(t=!1);else{if(","===s){o+=1,a.push((n+e).trim());break}"("===s&&(t=!0)}e+=s,o+=1}}}return a.join(", ")}const ge=new WeakMap;function me(e,t){return t&&""!==t.trim()?ve(e,t):t}function ve(e,t){let n=ge.get(e);if(n||(n=e.createElement("a"),ge.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function ye(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?fe(e,i):"style"===n?f(i,ve(e)):"object"===t&&"data"===n?me(e,i):i:me(e,i))}function be(e,t){return("video"===e||"audio"===e)&&"autoplay"===t}function we(t,n,e){if(!t)return!1;if(!n)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!e&&we(P.parentNode(t),n,e);for(let e=t.classList.length;e--;){var i=t.classList[e];if(n.test(i))return!0}return!!e&&we(P.parentNode(t),n,e)}function Se(e,t,n,i){let r;if(V(e)){if(r=e,"*"===n)return!0;if(!P.childNodes(r).length)return!1}else{if(null===P.parentElement(e))return!1;r=P.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(we(r,t,i))return!0;if(n)if(i){if(r.closest(n))return!0}else if(r.matches(n))return!0}catch(o){}return!1}function Ie(e,t){var n,{needsMask:i,maskTextFn:r,maskInputOptions:o,maskInputFn:a,rootId:s,cssCaptured:d}=t,u=e.parentNode&&e.parentNode.tagName;let l="";var c="STYLE"===u||void 0,p="SCRIPT"===u||void 0,u="TEXTAREA"===u||void 0;if(c&&l){try{e.nextSibling||e.previousSibling||null!=(n=e.parentNode.sheet)&&n.cssRules&&(l=R(e.parentNode.sheet))}catch(h){console.warn("Cannot get CSS styles from text's parentNode. Error: "+h,e)}l=f(l,ve(t.doc))}return p?l="SCRIPT_PLACEHOLDER":d||(l=P.textContent(e),c&&(l=l&&f(l,ve(t.doc)))),!c&&!p&&l&&i&&(l=r?r(l,P.parentElement(e)):l.replace(/[\S]/g,"*")),u&&l&&o.textarea&&(l=a?a(l,e.parentNode):l.replace(/[\S]/g,"*")),{type:F.Text,textContent:l||"",rootId:s}}function Ee(t,e){const{doc:n,blockClass:i,blockSelector:r,inlineStylesheet:o,maskInputOptions:a={},maskInputFn:s,dataURLOptions:d={},inlineImages:u,recordCanvas:l,keepIframeSrcFn:c,newlyAddedElement:p=!1,rootId:h,needsMask:f}=e;var e=function(t,n,e){try{if("string"==typeof n){if(t.classList.contains(n))return!0}else if(n)for(let e=t.classList.length;e--;){var i=t.classList[e];if(n.test(i))return!0}if(e)return t.matches(e)}catch(r){}return!1}(t,i,r),g=(w=t)instanceof HTMLFormElement?"form":(w=T(w.tagName),M.test(w)?"div":w);let m={};var v,y=t.attributes.length;for(let e=0;e<y;e++){var b=t.attributes[e];be(g,b.name,b.value)||(m[b.name]=ye(n,g,T(b.name),b.value))}if("link"===g&&o){var w=Array.from(n.styleSheets).find(e=>e.href===t.href);let e=null;(e=w?R(w):e)&&(delete m.rel,delete m.href,m._cssText=e)}if("style"===g&&t.sheet){let e=R(t.sheet);e&&(1<t.childNodes.length&&(e=N(e,t)),m._cssText=e)}if("input"!==g&&"textarea"!==g&&"select"!==g||(w=t.value,v=t.checked,"radio"!==m.type&&"checkbox"!==m.type&&"submit"!==m.type&&"button"!==m.type&&w?m.value=K({element:t,type:$(t),tagName:g,value:w,maskInputOptions:a,maskInputFn:s,needsMask:f}):v&&(m.checked=v)),"option"===g&&(t.selected&&!a.select?m.selected=!0:delete m.selected),"dialog"===g&&t.open&&(m.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),"canvas"===g&&l&&("2d"===t.__context?function(n){var i=n.getContext("2d");if(i)for(let t=0;t<n.width;t+=50)for(let e=0;e<n.height;e+=50){var r=i.getImageData,r=A in r?r[A]:r;if(new Uint32Array(r.call(i,t,e,Math.min(50,n.width-t),Math.min(50,n.height-e)).data.buffer).some(e=>0!==e))return}return 1}(t)||(m.rr_dataURL=t.toDataURL(d.type,d.quality)):"__context"in t||(w=t.toDataURL(d.type,d.quality),(v=n.createElement("canvas")).width=t.width,v.height=t.height,w!==v.toDataURL(d.type,d.quality)&&(m.rr_dataURL=w))),"img"===g&&u){k||(k=n.createElement("canvas"),ce=k.getContext("2d"));const E=t,C=E.currentSrc||E.getAttribute("src")||"<unknown-src>",x=E.crossOrigin,_=()=>{E.removeEventListener("load",_);try{k.width=E.naturalWidth,k.height=E.naturalHeight,ce.drawImage(E,0,0),m.rr_dataURL=k.toDataURL(d.type,d.quality)}catch(e){if("anonymous"!==E.crossOrigin)return E.crossOrigin="anonymous",void(E.complete&&0!==E.naturalWidth?_():E.addEventListener("load",_));console.warn(`Cannot inline img src=${C}! Error: `+e)}"anonymous"===E.crossOrigin&&(x?m.crossOrigin=x:E.removeAttribute("crossorigin"))};E.complete&&0!==E.naturalWidth?_():E.addEventListener("load",_)}"audio"!==g&&"video"!==g||((v=m).rr_mediaState=t.paused?"paused":"played",v.rr_mediaCurrentTime=t.currentTime,v.rr_mediaPlaybackRate=t.playbackRate,v.rr_mediaMuted=t.muted,v.rr_mediaLoop=t.loop,v.rr_mediaVolume=t.volume),p||(t.scrollLeft&&(m.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(m.rr_scrollTop=t.scrollTop)),e&&({width:w,height:v}=t.getBoundingClientRect(),m={"class":m["class"],rr_width:w+"px",rr_height:v+"px"}),"iframe"!==g||c(m.src)||(t.contentDocument||(m.rr_src=m.src),delete m.src);let S;try{customElements.get(g)&&(S=!0)}catch(I){}return{type:F.Element,tagName:g,attributes:m,childNodes:[],isSVG:(w=t,Boolean("svg"===w.tagName||w.ownerSVGElement)||void 0),needBlock:e,rootId:h,isCustom:S}}function z(e){return null==e?"":e.toLowerCase()}function X(t,e){const{doc:n,mirror:i,blockClass:r,blockSelector:o,maskTextClass:a,maskTextSelector:s,skipChild:d=!1,inlineStylesheet:u=!0,maskInputOptions:l={},maskTextFn:c,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f={},inlineImages:g=!1,recordCanvas:m=!1,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b=5e3,onStylesheetLoad:w,stylesheetLoadTimeout:S=5e3,keepIframeSrcFn:I=()=>!1,newlyAddedElement:E=!1,cssCaptured:C=!1}=e;let x=e["needsMask"],{preserveWhiteSpace:_=!0}=e;x||(e=void 0===x,x=Se(t,a,s,e));e=function(e,t){var n,{doc:i,mirror:t,blockClass:r,blockSelector:o,needsMask:a,inlineStylesheet:s,maskInputOptions:d={},maskTextFn:u,maskInputFn:l,dataURLOptions:c={},inlineImages:p,recordCanvas:h,keepIframeSrcFn:f,newlyAddedElement:g=!1,cssCaptured:m=!1}=t,v=(n=i,!(t=t).hasNode(n)||1===(n=t.getId(n))?void 0:n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:F.Document,childNodes:[],compatMode:e.compatMode}:{type:F.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:F.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:v};case e.ELEMENT_NODE:return Ee(e,{doc:i,blockClass:r,blockSelector:o,inlineStylesheet:s,maskInputOptions:d,maskInputFn:l,dataURLOptions:c,inlineImages:p,recordCanvas:h,keepIframeSrcFn:f,newlyAddedElement:g,rootId:v,needsMask:a});case e.TEXT_NODE:return Ie(e,{doc:i,needsMask:a,maskTextFn:u,maskInputOptions:d,maskInputFn:l,rootId:v,cssCaptured:m});case e.CDATA_SECTION_NODE:return{type:F.CDATA,textContent:"",rootId:v};case e.COMMENT_NODE:return{type:F.Comment,textContent:P.textContent(e)||"",rootId:v};default:return!1}}(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:x,inlineStylesheet:u,maskInputOptions:l,maskTextFn:c,maskInputFn:p,dataURLOptions:f,inlineImages:g,recordCanvas:m,keepIframeSrcFn:I,newlyAddedElement:E,cssCaptured:C});if(!e)return console.warn(t,"not serialized"),null;let T;T=i.hasNode(t)?i.getId(t):function(e,t){if(t.comment&&e.type===F.Comment)return 1;if(e.type===F.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===Z(e.attributes.href)))return 1;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(z(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===z(e.attributes.name)||"icon"===z(e.attributes.rel)||"apple-touch-icon"===z(e.attributes.rel)||"shortcut icon"===z(e.attributes.rel))))return 1;if("meta"===e.tagName){if(t.headMetaDescKeywords&&z(e.attributes.name).match(/^description|keywords$/))return 1;if(t.headMetaSocial&&(z(e.attributes.property).match(/^(og|twitter|fb):/)||z(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===z(e.attributes.name)))return 1;if(t.headMetaRobots&&("robots"===z(e.attributes.name)||"googlebot"===z(e.attributes.name)||"bingbot"===z(e.attributes.name)))return 1;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return 1;if(t.headMetaAuthorship&&("author"===z(e.attributes.name)||"generator"===z(e.attributes.name)||"framework"===z(e.attributes.name)||"publisher"===z(e.attributes.name)||"progid"===z(e.attributes.name)||z(e.attributes.property).match(/^article:/)||z(e.attributes.property).match(/^product:/)))return 1;if(t.headMetaVerification&&("google-site-verification"===z(e.attributes.name)||"yandex-verification"===z(e.attributes.name)||"csrf-token"===z(e.attributes.name)||"p:domain_verify"===z(e.attributes.name)||"verify-v1"===z(e.attributes.name)||"verification"===z(e.attributes.name)||"shopify-checkout-api-token"===z(e.attributes.name)))return 1}}}(e,h)||!_&&e.type===F.Text&&!e.textContent.replace(/^\s+|\s+$/gm,"").length?B:Y++;var k=Object.assign(e,{id:T});if(i.add(t,k),T===B)return null;v&&v(t);let R=!d;if(k.type===F.Element&&(R=R&&!k.needBlock,delete k.needBlock,e=P.shadowRoot(t))&&U(e)&&(k.isShadowHost=!0),(k.type===F.Document||k.type===F.Element)&&R){h.headWhitespace&&k.type===F.Element&&"head"===k.tagName&&(_=!1);var A={doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:x,maskTextClass:a,maskTextSelector:s,skipChild:d,inlineStylesheet:u,maskInputOptions:l,maskTextFn:c,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:_,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:S,keepIframeSrcFn:I,cssCaptured:!1};if(k.type!==F.Element||"textarea"!==k.tagName||void 0===k.attributes.value){k.type===F.Element&&void 0!==k.attributes._cssText&&"string"==typeof k.attributes._cssText&&(A.cssCaptured=!0);for(const M of Array.from(P.childNodes(t))){var O=X(M,A);O&&k.childNodes.push(O)}}let e=null;if(V(t)&&(e=P.shadowRoot(t)))for(const L of Array.from(P.childNodes(e))){var N=X(L,A);N&&(U(e)&&(N.isShadow=!0),k.childNodes.push(N))}}e=P.parentNode(t);return e&&D(e)&&U(e)&&(k.isShadow=!0),k.type===F.Element&&"iframe"===k.tagName&&function(n,i,r){var o=n.contentWindow;if(o){let e=!1,t;try{t=o.document.readyState}catch(a){return}if("complete"!==t){const s=G(()=>{e||(i(),e=!0)},r);void n.addEventListener("load",()=>{clearTimeout(s),e=!0,i()})}else{r="about:blank";if((n.src===r||n.src!==r&&o.location.href!==r)&&"complete"===t)return G(i,0),n.addEventListener("load",i);n.addEventListener("load",i)}}}(t,()=>{var e=t.contentDocument;e&&y&&(e=X(e,{doc:e,mirror:i,blockClass:r,blockSelector:o,needsMask:x,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:u,maskInputOptions:l,maskTextFn:c,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:_,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:S,keepIframeSrcFn:I}))&&y(t,e)},b),k.type===F.Element&&"link"===k.tagName&&"string"==typeof k.attributes.rel&&("stylesheet"===k.attributes.rel||"preload"===k.attributes.rel&&"string"==typeof k.attributes.href&&"css"===Z(k.attributes.href))&&function(e,t,n){let i=!1,r;try{r=e.sheet}catch(o){return}if(!r){const a=G(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{clearTimeout(a),i=!0,t()})}}(t,()=>{var e;w&&(e=X(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:x,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:u,maskInputOptions:l,maskTextFn:c,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:_,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:S,keepIframeSrcFn:I}))&&w(t,e)},S),k}Object.defineProperty;"undefined"!=typeof window?function(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]}("setTimeout").bind(window):global.setTimeout;const Ce={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},xe={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},_e={};function Te(e){if(_e[e])return _e[e];var t=function(e){var t,n=null==(t=null==(n=null==globalThis?void 0:globalThis.Zone)?void 0:n.__symbol__)?void 0:t.call(n,e);if(n&&globalThis[n])return globalThis[n]}(e)||globalThis[e];const n=t.prototype;var i=e in Ce?Ce[e]:void 0,i=Boolean(i&&i.every(e=>{return Boolean(null==(e=null==(e=Object.getOwnPropertyDescriptor(n,e))?void 0:e.get)?void 0:e.toString().includes("[native code]"))})),r=e in xe?xe[e]:void 0,r=Boolean(r&&r.every(e=>{return"function"==typeof n[e]&&(null==(e=n[e])?void 0:e.toString().includes("[native code]"))}));if(i&&r)return _e[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?_e[e]=o:n):t.prototype}catch{return n}}const ke={};function i(e,t,n){var i=e+"."+String(n);return ke[i]?ke[i].call(t):(e=Te(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(ke[i]=e).call(t):t[n])}const Re={};function Ae(e,t,n){var i=e+"."+String(n);return Re[i]?Re[i].bind(t):"function"!=typeof(e=Te(e)[n])?t[n]:(Re[i]=e).bind(t)}function Oe(){return Te("MutationObserver").constructor}function L(e,t,n){try{if(!(t in e))return()=>{};const r=e[t];var i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}const Q={childNodes:function(e){return i("Node",e,"childNodes")},parentNode:function(e){return i("Node",e,"parentNode")},parentElement:function(e){return i("Node",e,"parentElement")},textContent:function(e){return i("Node",e,"textContent")},contains:function(e,t){return Ae("Node",e,"contains")(t)},getRootNode:function(e){return Ae("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?i("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?i("Element",e,"shadowRoot"):null},querySelector:function(e,t){return i("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return i("Element",e,"querySelectorAll")(t)},mutationObserver:Oe,patch:L};function ee(e,t,n=document){var i=(i=n).defaultView||i,r=S("addEventListener",i);const o=S("removeEventListener",i),a={capture:!0,passive:!0};return r.call(n,e,t,a),()=>o.call(n,e,t,a)}const r="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.";var Ne={map:{},getId(){return console.error(r),-1},getNode(){return console.error(r),null},removeNodeFromMap(){console.error(r)},has(){return console.error(r),!1},reset(){console.error(r)}};function H(r,o,a={}){let s=null,d=0;return function(...e){var t=Date.now(),n=(d||!1!==a.leading||(d=t),o-(t-d));const i=this;n<=0||o<n?(s&&(clearTimeout(s),s=null),d=t,r.apply(i,e)):s||!1===a.trailing||(s=G(()=>{d=!1===a.leading?0:Date.now(),s=null,r.apply(i,e)},n))}}function Me(e,t,n,i,r=window){const o=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,i?n:{set(e){G(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>Me(e,t,o||{},!0)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&new Proxy(Ne,{get(e,t,n){return"map"===t&&console.error(r),Reflect.get(e,t,n)}});let Le=Date.now;function Fe(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=Q.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=Q.parentElement(n.body))?void 0:t.scrollTop)||(null==(e=null==n?void 0:n.body)?void 0:e.scrollTop)||0}}function Pe(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function De(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ue(e){return e?e.nodeType===e.ELEMENT_NODE?e:Q.parentElement(e):null}function j(e,t,n,i){if(e){e=Ue(e);if(e){try{if("string"==typeof t){if(e.classList.contains(t))return!0;if(i&&null!==e.closest("."+t))return!0}else if(we(e,t,i))return!0}catch(r){}if(n){if(e.matches(n))return!0;if(i&&null!==e.closest(n))return!0}}}return!1}function Ge(e,t){return-1!==t.getId(e)}function Be(e,t,n){return"TITLE"===e.tagName&&n.headTitleMutations||t.getId(e)===B}function ze(e,t){var n;return!D(e)&&(n=t.getId(e),!t.has(n)||(!(n=Q.parentNode(e))||n.nodeType!==e.DOCUMENT_NODE)&&(!n||ze(n,t)))}function He(e){return Boolean(e.changedTouches)}function je(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function We(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function qe(e){return e&&(!1&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(Q.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Le=()=>(new Date).getTime());class Je{constructor(){s(this,"id",1),s(this,"styleIDMap",new WeakMap),s(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return 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 Ve(e){var t;let n=null;return n="getRootNode"in e&&(null==(t=Q.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Q.host(Q.getRootNode(e))?Q.host(Q.getRootNode(e)):n}function Ke(e){var t=e.ownerDocument;return!!t&&(e=function(e){let t=e;for(var n;n=Ve(t);)t=n;return t}(e),Q.contains(t,e))}function $e(e){var t=e.ownerDocument;return t&&(Q.contains(t,e)||Ke(e))}var te=(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))({}),ne=(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))(ne||{}),c=(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))(c||{}),p=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(p||{}),h=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))({}),W=(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))(W||{}),Ze=(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))({});function Ye(e){return"__ln"in e}class Xe{constructor(){s(this,"length",0),s(this,"head",null),s(this,"tail",null),s(this,"reordered",!1)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let e=0;e<t;e++)n=(null==n?void 0:n.next)||null;return n}addNode(e){var t,n={value:e,previous:null,next:null};e.__ln=n,e.previousSibling&&Ye(e.previousSibling)?(t=e.previousSibling.__ln.next,n.next=t,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,t&&(t.previous=n)):e.nextSibling&&Ye(e.nextSibling)&&e.nextSibling.__ln.previous?(t=e.nextSibling.__ln.previous,n.previous=t,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||!Ye(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}}const Qe=(e,t)=>e+"@"+t;class et{constructor(){s(this,"frozen",!1),s(this,"locked",!1),s(this,"texts",[]),s(this,"attributes",[]),s(this,"attributeMap",new WeakMap),s(this,"removes",[]),s(this,"mapRemoves",[]),s(this,"movedMap",{}),s(this,"addedSet",new Set),s(this,"movedSet",new Set),s(this,"droppedSet",new Set),s(this,"removesSubTreeCache",new Set),s(this,"mutationCb"),s(this,"blockClass"),s(this,"blockSelector"),s(this,"maskTextClass"),s(this,"maskTextSelector"),s(this,"inlineStylesheet"),s(this,"maskInputOptions"),s(this,"maskTextFn"),s(this,"maskInputFn"),s(this,"keepIframeSrcFn"),s(this,"recordCanvas"),s(this,"inlineImages"),s(this,"slimDOMOptions"),s(this,"dataURLOptions"),s(this,"doc"),s(this,"mirror"),s(this,"iframeManager"),s(this,"stylesheetManager"),s(this,"shadowDomManager"),s(this,"canvasManager"),s(this,"processedNodeManager"),s(this,"unattachedDoc"),s(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),s(this,"emit",()=>{if(!this.frozen&&!this.locked){const d=[],u=new Set,l=new Xe,c=e=>{let t=e,n=B;for(;n===B;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n};for(var n,i,r=t=>{var n=Q.parentNode(t);if(n&&$e(t)){let e=!1;if(t.nodeType===Node.TEXT_NODE){var i=n.tagName;if("TEXTAREA"===i)return;"STYLE"===i&&this.addedSet.has(n)&&(e=!0)}i=D(n)?this.mirror.getId(Ve(t)):this.mirror.getId(n),n=c(t);if(-1===i||-1===n)return l.addNode(t);var r=X(t,{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:e=>{je(e,this.mirror)&&this.iframeManager.addIframe(e),We(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),qe(t)&&this.shadowDomManager.addShadowRoot(Q.shadowRoot(t),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},cssCaptured:e});r&&(d.push({parentId:i,nextId:n,node:r}),u.add(r.id))}};this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const p of this.movedSet){var t=Q.parentNode(p);it(this.removesSubTreeCache,p,this.mirror)&&!this.movedSet.has(t)&&!this.addedSet.has(t)||r(p)}for(const h of this.addedSet)!rt(this.droppedSet,h)&&!it(this.removesSubTreeCache,h,this.mirror)||rt(this.movedSet,h)?r(h):this.droppedSet.add(h);let e=null;for(;l.length;){let t=null;if(!(t=e&&(n=this.mirror.getId(Q.parentNode(e.value)),i=c(e.value),-1!==n)&&-1!==i?e:t)){let e=l.tail;for(;e;){var o=e;if(e=e.previous,o){var a=this.mirror.getId(Q.parentNode(o.value));if(-1===c(o.value))l.needsReorder(o)&&l.reorder()&&(e=l.tail);else{if(-1!==a){t=o;break}a=o.value,a=Q.parentNode(a);if(a&&a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){a=Q.host(a);if(-1!==this.mirror.getId(a)){t=o;break}}}}}}if(!t){for(;l.head;)l.removeNode(l.head.value);break}e=t.previous,l.removeNode(t.value),r(t.value)}var s={texts:this.texts.map(e=>{var t=e.node,n=Q.parentNode(t);return n&&"TEXTAREA"===n.tagName&&this.genTextAreaValueMutation(n),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!u.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=>!u.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:d};(s.texts.length||s.attributes.length||s.removes.length||s.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(s))}}),s(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));var n=Array.from(Q.childNodes(e),e=>Q.textContent(e)||"").join("");t.attributes.value=K({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:$(e),value:n,maskInputFn:this.maskInputFn})}),s(this,"processMutation",i=>{if(!Be(i.target,this.mirror,this.slimDOMOptions))switch(i.type){case"characterData":var r=Q.textContent(i.target);j(i.target,this.blockClass,this.blockSelector,!1)||r===i.oldValue||this.texts.push({value:Se(i.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,Ue(i.target)):r.replace(/[\S]/g,"*"):r,node:i.target});break;case"attributes":{var o,a=i.target;let e=i.attributeName,t=i.target.getAttribute(e);if("value"===e&&(r=$(a),o=Se(i.target,this.maskTextClass,this.maskTextSelector,!0),t=K({element:a,maskInputOptions:this.maskInputOptions,tagName:a.tagName,type:r,value:t,maskInputFn:this.maskInputFn,needsMask:o})),j(i.target,this.blockClass,this.blockSelector,!1)||t===i.oldValue)return;let n=this.attributeMap.get(i.target);if("IFRAME"===a.tagName&&"src"===e&&!this.keepIframeSrcFn(t)){if(a.contentDocument)return;e="rr_src"}if(n||(n={node:i.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(i.target,n)),"type"===e&&"INPUT"===a.tagName&&"password"===(i.oldValue||"").toLowerCase()&&a.setAttribute("data-rr-is-password","true"),!be(a.tagName,e))if(n.attributes[e]=ye(this.doc,T(a.tagName),T(e),t),"style"===e){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(l){this.unattachedDoc=this.doc}var s=this.unattachedDoc.createElement("span");i.oldValue&&(s.style.cssText=i.oldValue);for(const c of Array.from(a.style)){var d=a.style.getPropertyValue(c),u=a.style.getPropertyPriority(c);d!==s.style.getPropertyValue(c)||u!==s.style.getPropertyPriority(c)?n.styleDiff[c]=""===u?d:[d,u]:n._unchangedStyles[c]=[d,u]}for(const p of Array.from(s.style))""===a.style.getPropertyValue(p)&&(n.styleDiff[p]=!1)}else"open"===e&&"DIALOG"===a.tagName&&(a.matches("dialog:modal")?n.attributes.rr_open_mode="modal":n.attributes.rr_open_mode="non-modal");break}case"childList":j(i.target,this.blockClass,this.blockSelector,!0)||("TEXTAREA"!==i.target.tagName?(i.addedNodes.forEach(e=>this.genAdds(e,i.target)),i.removedNodes.forEach(e=>{var t=this.mirror.getId(e),n=D(i.target)?this.mirror.getId(Q.host(i.target)):this.mirror.getId(i.target);j(i.target,this.blockClass,this.blockSelector,!1)||Be(e,this.mirror,this.slimDOMOptions)||!Ge(e,this.mirror)||(this.addedSet.has(e)?(tt(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(i.target)&&-1===t||ze(i.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[Qe(t,n)]?tt(this.movedSet,e):(this.removes.push({parentId:n,id:t,isShadow:!(!D(i.target)||!U(i.target))||void 0}),nt(e,this.removesSubTreeCache))),this.mapRemoves.push(e))})):this.genTextAreaValueMutation(i.target))}}),s(this,"genAdds",(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(Be(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let e=null;(e=n&&this.mirror.hasNode(n)?this.mirror.getId(n):e)&&-1!==e&&(this.movedMap[Qe(this.mirror.getId(t),e)]=!0)}else this.addedSet.add(t),this.droppedSet["delete"](t);j(t,this.blockClass,this.blockSelector,!1)||(Q.childNodes(t).forEach(e=>this.genAdds(e)),qe(t)&&Q.childNodes(Q.shadowRoot(t)).forEach(e=>{this.processedNodeManager.add(e,this),this.genAdds(e,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(e=>{this[e]=t[e]})}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 tt(t,e){t["delete"](e),Q.childNodes(e).forEach(e=>tt(t,e))}function nt(e,t){const n=[e];for(;n.length;){var i=n.pop();t.has(i)||(t.add(i),Q.childNodes(i).forEach(e=>n.push(e)))}}function it(e,t){if(0!==e.size)return e=e,t=t,(t=Q.parentNode(t))&&e.has(t)}function rt(e,t){return 0!==e.size&&function i(e,t){const n=Q.parentNode(t);if(!n)return!1;if(e.has(n))return!0;return i(e,n)}(e,t)}let ie;const re=n=>{return ie?(...e)=>{try{return n(...e)}catch(t){if(!ie||!0!==ie(t))throw t}}:n},oe=[];function q(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 ot(e,t){var n=new et,e=(oe.push(n),n.init(e),new(Oe())(re(n.processMutations.bind(n))));return e.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function at({mouseInteractionCb:a,doc:i,mirror:s,blockClass:d,blockSelector:u,sampling:e}){if(!1===e.mouseInteraction)return()=>{};const t=!0===e.mouseInteraction||void 0===e.mouseInteraction?{}:e.mouseInteraction,r=[];let l=null;return Object.keys(c).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==t[e]).forEach(e=>{let t=T(e);o=e;var o,n=n=>{var i=q(n);if(!j(i,d,u,!0)){let e=null,t=o;if("pointerType"in n){switch(n.pointerType){case"mouse":e=p.Mouse;break;case"touch":e=p.Touch;break;case"pen":e=p.Pen}e===p.Touch?c[o]===c.MouseDown?t="TouchStart":c[o]===c.MouseUp&&(t="TouchEnd"):(e,p.Pen)}else He(n)&&(e=p.Touch);null!==e?(l=e,(t.startsWith("Touch")&&e===p.Touch||t.startsWith("Mouse")&&e===p.Mouse)&&(e=null)):c[o]===c.Click&&(e=l,l=null);var r,n=He(n)?n.changedTouches[0]:n;n&&(i=s.getId(i),{clientX:n,clientY:r}=n,re(a)({type:c[t],id:i,x:n,y:r,...null!==e&&{pointerType:e}}))}};if(window.PointerEvent)switch(c[e]){case c.MouseDown:case c.MouseUp:t=t.replace("mouse","pointer");break;case c.TouchStart:case c.TouchEnd:return}r.push(ee(t,n,i))}),re(()=>{r.forEach(e=>e())})}function st({scrollCb:i,doc:r,mirror:o,blockClass:a,blockSelector:s,sampling:e}){return ee("scroll",re(H(re(e=>{var t,n,e=q(e);e&&!j(e,a,s,!0)&&(t=o.getId(e),e===r&&r.defaultView?(n=Fe(r.defaultView),i({id:t,x:n.left,y:n.top})):i({id:t,x:e.scrollLeft,y:e.scrollTop}))}),e.scroll||100)),r)}const dt=["INPUT","TEXTAREA","SELECT"],ut=new WeakMap;function lt(e){var t,n;return e=e,t=[],ht("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||ht("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||ht("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||ht("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 J(e,t,n){let i,r;return e?(e.ownerNode?i=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:i}):{}}function ct({mirror:e,stylesheetManager:i},t){let r=null;r="#document"===t.nodeName?e.getId(t):e.getId(Q.host(t));e="#document"===t.nodeName?null==(e=t.defaultView)?void 0:e.Document:null==(e=null==(e=t.ownerDocument)?void 0:e.defaultView)?void 0:e.ShadowRoot;const o=null!=e&&e.prototype?Object.getOwnPropertyDescriptor(null==e?void 0:e.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&e&&o?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){var e;return null==(e=o.get)?void 0:e.call(this)},set(e){var t=null==(t=o.set)?void 0:t.call(this,e);if(null!==r&&-1!==r)try{i.adoptStyleSheets(e,r)}catch(n){}return t}}),re(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function pt(e,t={}){var o,n=e.doc.defaultView;if(!n)return()=>{};{var i=e,r=t;const{mutationCb:w,mousemoveCb:S,mouseInteractionCb:I,scrollCb:E,viewportResizeCb:C,inputCb:x,mediaInteractionCb:_,styleSheetRuleCb:T,styleDeclarationCb:k,canvasMutationCb:R,fontCb:A,selectionCb:O,customElementCb:N}=i;i.mutationCb=(...e)=>{r.mutation&&r.mutation(...e),w(...e)},i.mousemoveCb=(...e)=>{r.mousemove&&r.mousemove(...e),S(...e)},i.mouseInteractionCb=(...e)=>{r.mouseInteraction&&r.mouseInteraction(...e),I(...e)},i.scrollCb=(...e)=>{r.scroll&&r.scroll(...e),E(...e)},i.viewportResizeCb=(...e)=>{r.viewportResize&&r.viewportResize(...e),C(...e)},i.inputCb=(...e)=>{r.input&&r.input(...e),x(...e)},i.mediaInteractionCb=(...e)=>{r.mediaInteaction&&r.mediaInteaction(...e),_(...e)},i.styleSheetRuleCb=(...e)=>{r.styleSheetRule&&r.styleSheetRule(...e),T(...e)},i.styleDeclarationCb=(...e)=>{r.styleDeclaration&&r.styleDeclaration(...e),k(...e)},i.canvasMutationCb=(...e)=>{r.canvasMutation&&r.canvasMutation(...e),R(...e)},i.fontCb=(...e)=>{r.font&&r.font(...e),A(...e)},i.selectionCb=(...e)=>{r.selection&&r.selection(...e),O(...e)},i.customElementCb=(...e)=>{r.customElement&&r.customElement(...e),N(...e)}}let a;e.recordDOM&&(a=ot(e,e.doc));const s=function({mousemoveCb:n,sampling:e,doc:t,mirror:r}){if(!1===e.mousemove)return()=>{};var i="number"==typeof e.mousemove?e.mousemove:50,e="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500;let o=[],a;const s=H(re(e=>{const t=Date.now()-a;n(o.map(e=>(e.timeOffset-=t,e)),e),o=[],a=null}),e),d=[ee("mousemove",e=re(H(re(e=>{var t=q(e),{clientX:n,clientY:i}=He(e)?e.changedTouches[0]:e;a=a||Le(),o.push({x:n,y:i,id:r.getId(t),timeOffset:Le()-a}),s("undefined"!=typeof DragEvent&&e instanceof DragEvent?ne.Drag:e instanceof MouseEvent?ne.MouseMove:ne.TouchMove)}),i,{trailing:!1})),t),ee("touchmove",e,t),ee("drag",e,t)];return re(()=>{d.forEach(e=>e())})}(e),d=at(e),u=st(e),l=function({viewportResizeCb:n},{win:e}){let i=-1,r=-1;return ee("resize",re(H(re(()=>{var e=Pe(),t=De();i===e&&r===t||(n({width:Number(t),height:Number(e)}),i=e,r=t)}),200)),e)}(e,{win:n}),c=function({inputCb:i,doc:s,mirror:r,blockClass:e,blockSelector:n,ignoreClass:d,ignoreSelector:u,maskInputOptions:l,maskInputFn:c,sampling:t,userTriggeredOnInput:p,maskTextClass:h,maskTextSelector:f}){function o(t){let i=q(t);var t=t.isTrusted,r=i&&i.tagName;if((i=i&&"OPTION"===r?Q.parentElement(i):i)&&r&&!(dt.indexOf(r)<0)&&!j(i,e,n,!0)&&!(i.classList.contains(d)||u&&i.matches(u))){let e=i.value,n=!1;var o=$(i)||"",a=Se(i,h,f,!0),r=("radio"===o||"checkbox"===o?n=i.checked:(l[r.toLowerCase()]||l[o]||a)&&(e=K({element:i,maskInputOptions:l,tagName:r,type:o,value:e,maskInputFn:c,needsMask:a})),g(i,p?{text:e,isChecked:n,userTriggered:t}:{text:e,isChecked:n}),i.name);"radio"===o&&r&&n&&s.querySelectorAll(`input[type="radio"][name="${r}"]`).forEach(e=>{var t;e!==i&&(t=e.value,g(e,p?{text:t,isChecked:!n,userTriggered:!1}:{text:t,isChecked:!n}))})}}function g(e,t){var n=ut.get(e);n&&n.text===t.text&&n.isChecked===t.isChecked||(ut.set(e,t),n=r.getId(e),re(i)({...t,id:n}))}var a;const m=("last"===t.input?["change"]:["input","change"]).map(e=>ee(e,re(o),s)),v=s.defaultView;return v?(t=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),a=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]],t&&t.set&&m.push(...a.map(e=>Me(e[0],e[1],{set(){re(o)({target:this,isTrusted:!1})}},!1,v))),re(()=>{m.forEach(e=>e())})):()=>{m.forEach(e=>e())}}(e),p=function({mediaInteractionCb:s,blockClass:d,blockSelector:u,mirror:l,sampling:e,doc:t}){var n=re(a=>H(re(e=>{var t,n,i,r,o,e=q(e);e&&!j(e,d,u,!0)&&({currentTime:t,volume:n,muted:i,playbackRate:r,loop:o}=e,s({type:a,id:l.getId(e),currentTime:t,volume:n,muted:i,playbackRate:r,loop:o}))}),e.media||500));const i=[ee("play",n(W.Play),t),ee("pause",n(W.Pause),t),ee("seeked",n(W.Seeked),t),ee("volumechange",n(W.VolumeChange),t),ee("ratechange",n(W.RateChange),t)];return re(()=>{i.forEach(e=>e())})}(e);let h=()=>{},f=()=>{},g=()=>{},m=()=>{};e.recordDOM&&(h=function({styleSheetRuleCb:s,mirror:d,stylesheetManager:u},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};const e=i.CSSStyleSheet.prototype.insertRule,t=(i.CSSStyleSheet.prototype.insertRule=new Proxy(e,{apply:re((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=J(t,d,u.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:r}]}),e.apply(t,n)})}),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(t,{apply:re((e,t,n)=>{var[i]=n,{id:r,styleId:o}=J(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:i}]}),e.apply(t,n)})}),i.CSSStyleSheet.prototype.removeRule=function(e){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[e])};let n;i.CSSStyleSheet.prototype.replace&&(n=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(n,{apply:re((e,t,n)=>{var[i]=n,{id:r,styleId:o}=J(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,replace:i}),e.apply(t,n)})}));let r;i.CSSStyleSheet.prototype.replaceSync&&(r=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(r,{apply:re((e,t,n)=>{var[i]=n,{id:r,styleId:o}=J(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,replaceSync:i}),e.apply(t,n)})}));const o={},a=(ft("CSSGroupingRule")?o.CSSGroupingRule=i.CSSGroupingRule:(ft("CSSMediaRule")&&(o.CSSMediaRule=i.CSSMediaRule),ft("CSSConditionRule")&&(o.CSSConditionRule=i.CSSConditionRule),ft("CSSSupportsRule")&&(o.CSSSupportsRule=i.CSSSupportsRule)),{});return Object.entries(o).forEach(([e,t])=>{a[e]={insertRule:t.prototype.insertRule,deleteRule:t.prototype.deleteRule},t.prototype.insertRule=new Proxy(a[e].insertRule,{apply:re((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=J(t.parentStyleSheet,d,u.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:[...lt(t),r||0]}]}),e.apply(t,n)})}),t.prototype.deleteRule=new Proxy(a[e].deleteRule,{apply:re((e,t,n)=>{var[i]=n,{id:r,styleId:o}=J(t.parentStyleSheet,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:[...lt(t),i]}]}),e.apply(t,n)})})}),re(()=>{i.CSSStyleSheet.prototype.insertRule=e,i.CSSStyleSheet.prototype.deleteRule=t,n&&(i.CSSStyleSheet.prototype.replace=n),r&&(i.CSSStyleSheet.prototype.replaceSync=r),Object.entries(o).forEach(([e,t])=>{t.prototype.insertRule=a[e].insertRule,t.prototype.deleteRule=a[e].deleteRule})})}(e,{win:n}),f=ct(e,e.doc),g=function({styleDeclarationCb:d,mirror:u,ignoreCSSAttributes:l,stylesheetManager:c},{win:e}){const p=e.CSSStyleDeclaration.prototype.setProperty,a=(e.CSSStyleDeclaration.prototype.setProperty=new Proxy(p,{apply:re((e,t,n)=>{var i,r,[o,a,s]=n;return l.has(o)?p.apply(t,[o,a,s]):({id:i,styleId:r}=J(null==(i=t.parentRule)?void 0:i.parentStyleSheet,u,c.styleMirror),(i&&-1!==i||r&&-1!==r)&&d({id:i,styleId:r,set:{property:o,value:a,priority:s},index:lt(t.parentRule)}),e.apply(t,n))})}),e.CSSStyleDeclaration.prototype.removeProperty);return e.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:re((e,t,n)=>{var i,r,[o]=n;return l.has(o)?a.apply(t,[o]):({id:i,styleId:r}=J(null==(i=t.parentRule)?void 0:i.parentStyleSheet,u,c.styleMirror),(i&&-1!==i||r&&-1!==r)&&d({id:i,styleId:r,remove:{property:o},index:lt(t.parentRule)}),e.apply(t,n))})}),re(()=>{e.CSSStyleDeclaration.prototype.setProperty=p,e.CSSStyleDeclaration.prototype.removeProperty=a})}(e,{win:n}),e.collectFonts)&&(m=function({fontCb:n,doc:e}){const t=e.defaultView;if(!t)return()=>{};const i=[],r=new WeakMap,o=t.FontFace;return t.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},e=L(e.fonts,"add",function(e){return function(t){return G(re(()=>{var e=r.get(t);e&&(n(e),r["delete"](t))}),0),e.apply(this,[t])}}),i.push(()=>{t.FontFace=o}),i.push(e),re(()=>{i.forEach(e=>e())})}(e));const v=function(e){const{doc:d,mirror:u,blockClass:l,blockSelector:c,selectionCb:p}=e;let h=!0;return(e=re(()=>{var t=d.getSelection();if(!(!t||h&&null!=t&&t.isCollapsed)){h=t.isCollapsed||!1;var n=[],i=t.rangeCount||0;for(let e=0;e<i;e++){var{startContainer:r,startOffset:o,endContainer:a,endOffset:s}=t.getRangeAt(e);j(r,l,c,!0)||j(a,l,c,!0)||n.push({start:u.getId(r),startOffset:o,end:u.getId(a),endOffset:s})}p({ranges:n})}}))(),ee("selectionchange",e)}(e),y=({doc:t,customElementCb:o}=[e][0],(t=t.defaultView)&&t.customElements?L(t.customElements,"define",function(r){return function(e,t,n){try{o({define:{name:e}})}catch(i){console.warn("Custom element callback failed for "+e)}return r.apply(this,[e,t,n])}}):()=>{}),b=[];for(const M of e.plugins)b.push(M.observer(M.callback,n,M.options));return re(()=>{oe.forEach(e=>e.reset()),null!=a&&a.disconnect(),s(),d(),u(),l(),c(),p(),h(),f(),g(),m(),v(),y(),b.forEach(e=>e())})}function ht(e){return"undefined"!=typeof window[e]}function ft(e){return Boolean("undefined"!=typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class gt{constructor(e){s(this,"iframeIdToRemoteIdMap",new WeakMap),s(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(t,e){const n=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return e.map(e=>this.getId(t,e,n,i))}getRemoteId(e,t,n){n=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1}getRemoteIds(t,e){const n=this.getRemoteIdToIdMap(t);return e.map(e=>this.getRemoteId(t,e,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 mt{constructor(e){s(this,"iframes",new WeakMap),s(this,"crossOriginIframeMap",new WeakMap),s(this,"crossOriginIframeMirror",new gt(le)),s(this,"crossOriginIframeStyleMirror"),s(this,"crossOriginIframeRootIdMap",new WeakMap),s(this,"mirror"),s(this,"mutationCb"),s(this,"wrappedEmit"),s(this,"takeFullSnapshot"),s(this,"loadListener"),s(this,"stylesheetManager"),s(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 gt(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(n,e){var t;switch(e.type){case te.FullSnapshot:this.crossOriginIframeMirror.reset(n),this.crossOriginIframeStyleMirror.reset(n),this.replaceIdOnNode(e.data.node,n);var i=e.data.node.id;return this.crossOriginIframeRootIdMap.set(n,i),this.patchRootIdOnNode(e.data.node,i),{timestamp:e.timestamp,type:te.IncrementalSnapshot,data:{source:ne.Mutation,adds:[{parentId:this.mirror.getId(n),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case te.Meta:case te.Load:case te.DomContentLoaded:return!1;case te.Plugin:return e;case te.Custom:return this.replaceIds(e.data.payload,n,["id","parentId","previousId","nextId"]),e;case te.IncrementalSnapshot:switch(e.data.source){case ne.Mutation:return e.data.adds.forEach(e=>{this.replaceIds(e,n,["parentId","nextId","previousId"]),this.replaceIdOnNode(e.node,n);var t=this.crossOriginIframeRootIdMap.get(n);t&&this.patchRootIdOnNode(e.node,t)}),e.data.removes.forEach(e=>{this.replaceIds(e,n,["parentId","id"])}),e.data.attributes.forEach(e=>{this.replaceIds(e,n,["id"])}),e.data.texts.forEach(e=>{this.replaceIds(e,n,["id"])}),e;case ne.Drag:case ne.TouchMove:case ne.MouseMove:return e.data.positions.forEach(e=>{this.replaceIds(e,n,["id"])}),e;case ne.ViewportResize:return!1;case ne.MediaInteraction:case ne.MouseInteraction:case ne.Scroll:case ne.CanvasMutation:case ne.Input:return this.replaceIds(e.data,n,["id"]),e;case ne.StyleSheetRule:case ne.StyleDeclaration:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleId"]),e;case ne.Font:return e;case ne.Selection:return e.data.ranges.forEach(e=>{this.replaceIds(e,n,["start","end"])}),e;case ne.AdoptedStyleSheet:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleIds"]),null!=(t=e.data.styles)&&t.forEach(e=>{this.replaceStyleIds(e,n,["styleId"])}),e}}return!1}replace(e,t,n,i){for(const 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===Ze.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class vt{constructor(e){s(this,"shadowDoms",new WeakSet),s(this,"mutationCb"),s(this,"scrollCb"),s(this,"bypassOptions"),s(this,"mirror"),s(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(U(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);const n=ot({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(st({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),G(()=>{e.adoptedStyleSheets&&0<e.adoptedStyleSheets.length&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(Q.host(e))),this.restoreHandlers.push(ct({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,i){const r=this;this.restoreHandlers.push(L(e.prototype,"attachShadow",function(n){return function(e){var e=n.call(this,e),t=Q.shadowRoot(this);return t&&$e(this)&&r.addShadowRoot(t,i),e}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yt="undefined"==typeof Uint8Array?[]:new Uint8Array(256),bt=0;bt<o.length;bt++)yt[o.charCodeAt(bt)]=bt;var wt,St=function(e){for(var t=new Uint8Array(e),n=t.length,i="",r=0;r<n;r+=3)i=(i=(i=(i+=o[t[r]>>2])+o[(3&t[r])<<4|t[r+1]>>4])+o[(15&t[r+1])<<2|t[r+2]>>6])+o[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};const It=new Map;const Et=(t,n,i)=>{if(t&&(xt(t,n)||"object"==typeof t)){n=function(e,t){let n=It.get(e);return n||(n=new Map,It.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(i,t.constructor.name);let e=n.indexOf(t);return-1===e&&(e=n.length,n.push(t)),e}};const Ct=(e,t,n)=>e.map(e=>function r(e,t,n){var i;return e instanceof Array?e.map(e=>r(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:St(e)}:e instanceof DataView?{rr_type:e.constructor.name,args:[r(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:[r(e.data,t,n),e.width,e.height]}:xt(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:Et(e,t,n)}:e}(e,t,n)),xt=(t,n)=>{var e=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof n[e]);return Boolean(e.find(e=>t instanceof n[e]))};function _t(n,i,r,o){const e=[];var t;for(const s of Object.getOwnPropertyNames(i.CanvasRenderingContext2D.prototype))try{"function"==typeof i.CanvasRenderingContext2D.prototype[s]&&(t=L(i.CanvasRenderingContext2D.prototype,s,function(e){return function(...t){return j(this.canvas,r,o,!0)||G(()=>{var e=Ct(t,i,this);n(this.canvas,{type:h["2D"],property:s,args:e})},0),e.apply(this,t)}}),e.push(t))}catch{var a=Me(i.CanvasRenderingContext2D.prototype,s,{set(e){n(this.canvas,{type:h["2D"],property:s,args:[e],setter:!0})}});e.push(a)}return()=>{e.forEach(e=>e())}}function Tt(e,r,o,a){const t=[];try{var n=L(e.HTMLCanvasElement.prototype,"getContext",function(i){return function(e,...t){var n;return j(this,r,o,!0)||(n="experimental-webgl"===(n=e)?"webgl":n,"__context"in this||(this.__context=n),a&&["webgl","webgl2"].includes(n)&&(t[0]&&"object"==typeof t[0]?(n=t[0]).preserveDrawingBuffer||(n.preserveDrawingBuffer=!0):t.splice(0,1,{preserveDrawingBuffer:!0}))),i.apply(this,[e,...t])}});t.push(n)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{t.forEach(e=>e())}}function kt(e,i,r,o,a,s){var t,n=[];for(const u of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(u))try{"function"==typeof e[u]&&(t=L(e,u,function(n){return function(...e){var t=n.apply(this,e);return Et(t,s,this),"tagName"in this.canvas&&!j(this.canvas,o,a,!0)&&(e=Ct(e,s,this),e={type:i,property:u,args:e},r(this.canvas,e)),t}}),n.push(t))}catch{var d=Me(e,u,{set(e){r(this.canvas,{type:i,property:u,args:[e],setter:!0})}});n.push(d)}return n}function Rt(e,t,n,i){const r=[];return r.push(...kt(t.WebGLRenderingContext.prototype,h.WebGL,e,n,i,t)),"undefined"!=typeof t.WebGL2RenderingContext&&r.push(...kt(t.WebGL2RenderingContext.prototype,h.WebGL2,e,n,i,t)),()=>{r.forEach(e=>e())}}function At(e){return function(){return{onerror:null,onmessage:null}}}class Ot{constructor(e){s(this,"pendingCanvasMutations",new Map),s(this,"rafStamps",{latestId:0,invokeId:null}),s(this,"mirror"),s(this,"mutationCb"),s(this,"resetObservers"),s(this,"frozen",!1),s(this,"locked",!1),s(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,n,i,r,o){const t=Tt(n,i,r,!0),a=new Map,s=new At,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:h["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);let u=0,l;const c=()=>{const t=[];return n.document.querySelectorAll("canvas").forEach(e=>{j(e,i,r,!0)||t.push(e)}),t},p=e=>{l=(u&&e-u<d||(u=e,c().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:o.dataURLOptions},[n]))})),requestAnimationFrame(p))};l=requestAnimationFrame(p),this.resetObservers=()=>{t(),cancelAnimationFrame(l)}}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=Tt(e,t,n,!1),r=_t(this.processMutation.bind(this),e,t,n),o=Rt(this.processMutation.bind(this),e,t,n);this.resetObservers=()=>{i(),r(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=e=>{this.rafStamps.latestId=e,requestAnimationFrame(t)};requestAnimationFrame(t)}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=>{const{type:t,...n}=e;return n}),i=i[0]["type"],this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations["delete"](e))}}class Nt{constructor(e){s(this,"trackedLinkElements",new WeakSet),s(this,"mutationCb"),s(this,"adoptedStyleSheetCb"),s(this,"styleMirror",new Je),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(const o of e){let e;if(this.styleMirror.has(o))e=this.styleMirror.getId(o);else{e=this.styleMirror.add(o);var r=[];for(let e=0;e<o.rules.length;++e)r.push({rule:I(o.rules[e],o.href),index:e});i.push({styleId:e,rules:Array.from(o.rules||CSSRule,(e,t)=>({rule:I(e,o.href),index:t}))})}n.styleIds.push(e)}0<i.length&&(n.styles=i),this.adoptedStyleSheetCb(n)}}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Mt{constructor(){s(this,"nodeMap",new WeakMap),s(this,"active",!1)}inOtherBuffer(e,t){e=this.nodeMap.get(e);return 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 ae,se=()=>{},Lt,Ft=!1;try{2!==Array.from([1],e=>2*e)[0]&&(wt=document.createElement("iframe"),document.body.appendChild(wt),Array.from=(null==(t=wt.contentWindow)?void 0:t.Array.from)||Array.from,document.body.removeChild(wt))}catch(Pt){console.debug("Unable to override Array.from",Pt)}const de=new ue;function e(e={}){const{emit:i,checkoutEveryNms:r,checkoutEveryNth:o,blockClass:n="rr-block",blockSelector:a=null,ignoreClass:P="rr-ignore",ignoreSelector:D=null,maskTextClass:s="rr-mask",maskTextSelector:d=null,inlineStylesheet:u=!0,maskAllInputs:U,maskInputOptions:t,slimDOMOptions:l,maskInputFn:c,maskTextFn:p,hooks:G,packFn:h,sampling:f={},dataURLOptions:g={},mousemoveWait:m,recordDOM:B=!0,recordCanvas:v=!1,recordCrossOriginIframes:z=!1,recordAfter:H="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:j=!1,collectFonts:W=!1,inlineImages:y=!1,plugins:b,keepIframeSrcFn:w=()=>!1,ignoreCSSAttributes:q=new Set([]),errorHandler:J}=e;e=J,ie=e;const S=!z||window.parent===window;let I=!1;if(!S)try{window.parent.document&&(I=!1)}catch(Y){I=!0}if(S&&!i)throw new Error("emit function is required");if(!S&&!I)return()=>{};void 0!==m&&void 0===f.mousemove&&(f.mousemove=m),de.reset();const E=!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}:void 0!==t?t:{password:!0},C=!0===l||"all"===l?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===l,headMetaDescKeywords:"all"===l,headTitleMutations:"all"===l}:l||{};"NodeList"in(e=window)&&!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);let V,x=0;const K=e=>{for(const t of b||[])t.eventProcessor&&(e=t.eventProcessor(e));return e=h&&!I?h(e):e},_=(ae=(e,t)=>{var n;e.timestamp=Le(),null==(n=oe[0])||!n.isFrozen()||e.type===te.FullSnapshot||e.type===te.IncrementalSnapshot&&e.data.source===ne.Mutation||oe.forEach(e=>e.unfreeze()),S?null!=i&&i(K(e),t):I&&(n={type:"rrweb",event:K(e),origin:window.location.origin,isCheckout:t},window.parent.postMessage(n,"*")),e.type===te.FullSnapshot?(V=e,x=0):e.type!==te.IncrementalSnapshot||e.data.source===ne.Mutation&&e.data.isAttachIframe||(x++,t=o&&x>=o,n=r&&e.timestamp-V.timestamp>r,(t||n)&&se(!0))},e=>{ae({type:te.IncrementalSnapshot,data:{source:ne.Mutation,...e}})}),$=e=>ae({type:te.IncrementalSnapshot,data:{source:ne.Scroll,...e}}),Z=e=>ae({type:te.IncrementalSnapshot,data:{source:ne.CanvasMutation,...e}});const T=new Nt({mutationCb:_,adoptedStyleSheetCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.AdoptedStyleSheet,...e}})}),k=new mt({mirror:de,mutationCb:_,stylesheetManager:T,recordCrossOriginIframes:z,wrappedEmit:ae,takeFullSnapshot:se});for(const N of b||[])N.getMirror&&N.getMirror({nodeMirror:de,crossOriginIframeMirror:k.crossOriginIframeMirror,crossOriginIframeStyleMirror:k.crossOriginIframeStyleMirror});const R=new Mt,A=(Lt=new Ot({recordCanvas:v,mutationCb:Z,win:window,blockClass:n,blockSelector:a,mirror:de,sampling:f.canvas,dataURLOptions:g}),new vt({mutationCb:_,scrollCb:$,bypassOptions:{blockClass:n,blockSelector:a,maskTextClass:s,maskTextSelector:d,inlineStylesheet:u,maskInputOptions:E,dataURLOptions:g,maskTextFn:p,maskInputFn:c,recordCanvas:v,inlineImages:y,sampling:f,slimDOMOptions:C,iframeManager:k,stylesheetManager:T,canvasManager:Lt,keepIframeSrcFn:w,processedNodeManager:R},mirror:de}));se=(e=!1)=>{if(B){ae({type:te.Meta,data:{href:window.location.href,width:De(),height:Pe()}},e),T.reset(),A.init(),oe.forEach(e=>e.lock());var t=function(e,t){var{mirror:t=new ue,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:l,maskInputFn:c,slimDOM:p=!1,dataURLOptions:h,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:m,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:w=()=>!1}=t||{};return X(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:l,maskInputFn:c,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:h,inlineImages:s,recordCanvas:d,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:m,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:w,newlyAddedElement:!1})}(document,{mirror:de,blockClass:n,blockSelector:a,maskTextClass:s,maskTextSelector:d,inlineStylesheet:u,maskAllInputs:E,maskTextFn:p,maskInputFn:c,slimDOM:C,dataURLOptions:g,recordCanvas:v,inlineImages:y,onSerialize:e=>{je(e,de)&&k.addIframe(e),We(e,de)&&T.trackLinkElement(e),qe(e)&&A.addShadowRoot(Q.shadowRoot(e),document)},onIframeLoad:(e,t)=>{k.attachIframe(e,t),A.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{T.attachLinkElement(e,t)},keepIframeSrcFn:w});if(!t)return console.warn("Failed to snapshot the document");ae({type:te.FullSnapshot,data:{node:t,initialOffset:Fe(window)}},e),oe.forEach(e=>e.unlock()),document.adoptedStyleSheets&&0<document.adoptedStyleSheets.length&&T.adoptStyleSheets(document.adoptedStyleSheets,de.getId(document))}},k.setTakeFullSnapshot(se);try{const M=[],L=e=>{return re(pt)({mutationCb:_,mousemoveCb:(e,t)=>ae({type:te.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.MouseInteraction,...e}}),scrollCb:$,viewportResizeCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.ViewportResize,...e}}),inputCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.Input,...e}}),mediaInteractionCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.MediaInteraction,...e}}),styleSheetRuleCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.StyleSheetRule,...e}}),styleDeclarationCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.StyleDeclaration,...e}}),canvasMutationCb:Z,fontCb:e=>ae({type:te.IncrementalSnapshot,data:{source:ne.Font,...e}}),selectionCb:e=>{ae({type:te.IncrementalSnapshot,data:{source:ne.Selection,...e}})},customElementCb:e=>{ae({type:te.IncrementalSnapshot,data:{source:ne.CustomElement,...e}})},blockClass:n,ignoreClass:P,ignoreSelector:D,maskTextClass:s,maskTextSelector:d,maskInputOptions:E,inlineStylesheet:u,sampling:f,recordDOM:B,recordCanvas:v,inlineImages:y,userTriggeredOnInput:j,collectFonts:W,doc:e,maskInputFn:c,maskTextFn:p,keepIframeSrcFn:w,blockSelector:a,slimDOMOptions:C,dataURLOptions:g,mirror:de,iframeManager:k,stylesheetManager:T,shadowDomManager:A,processedNodeManager:R,canvasManager:Lt,ignoreCSSAttributes:q,plugins:(null==(e=null==b?void 0:b.filter(e=>e.observer))?void 0:e.map(t=>({observer:t.observer,options:t.options,callback:e=>ae({type:te.Plugin,data:{plugin:t.name,payload:e}})})))||[]},G)},F=(k.addLoadListener(e=>{try{M.push(L(e.contentDocument))}catch(t){console.warn(t)}}),()=>{se(),M.push(L(document)),Ft=!0});return"interactive"===document.readyState||"complete"===document.readyState?F():(M.push(ee("DOMContentLoaded",()=>{ae({type:te.DomContentLoaded,data:{}}),"DOMContentLoaded"===H&&F()})),M.push(ee("load",()=>{ae({type:te.Load,data:{}}),"load"===H&&F()},window))),()=>{M.forEach(e=>e()),R.destroy(),Ft=!1,ie=void 0}}catch(O){console.warn(O)}}return e.addCustomEvent=(e,t)=>{if(!Ft)throw new Error("please add custom event after start recording");ae({type:te.Custom,data:{tag:e,payload:t}})},e.freezePage=()=>{oe.forEach(e=>e.freeze())},e.takeFullSnapshot=e=>{if(!Ft)throw new Error("please take full snapshot after start recording");se(e)},e.mirror=de,0,e}class SessionRecorderBuffer{constructor(e,t=Infinity){this.data=[],this.sequenceNumber=0,this.interval=e,this.maxCount=t,this.doubledMaxCount=2*t}isEmpty(){return 0===this.data.length}count(){return this.data.length}clear(){this.data.length=0}clearSequence(){this.sequenceNumber=0}push(e){this.data.push(e),this.checkRateLimit()}pack(e,n){var t=this.data.splice(0,this.maxCount);return e.recordingPayload=t,e.sequence=this.sequenceNumber,e.recordingPayloadCount=t.length,t.length&&(e.browserTime=t[0].timestamp),e.recordingPayloadMetadata=n.map(t,e=>{var t=n.pick(e,"type","timestamp");return e.data&&(t.data=n.pick(e.data,"source","type","x","y","id","height","width","href")),t}),this.sequenceNumber+=t.length,e}checkRateLimit(){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()}}const MAX_BACKOFF=6,MAX_FAILURES=100;class SendQueue{constructor(e,t=MAX_FAILURES){this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}isEmpty(){return this.queue.length<=0}stop(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer}start(){this.stopped=!1}push(...e){this.queue.push(...e),this.next()}next(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)}incrementFailure(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t}pass(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e),this.failures.clear();e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()}fail(e,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))))}retryLater(e){this.timer=setTimeout$1(()=>{delete this.timer,this.next()},e)}failed(){return 0<this.failures.get(this.queue[0])&&null!=this.timer}send(e,t,n){return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(()=>this.pass(e,n),()=>this.fail(e,n))}drain(e,t=!0){if(this.queue.push(...e),this.failed())return Promise$2.reject();var n=[];for(const i of this.queue)this.pending.has(i)?this.retryPending&&t&&!this.unloads.has(i)&&(this.incrementFailure(i),n.push(this.send(i,t,!1))):n.push(this.send(i,t,!1));return Promise$2.all(n)}}const RECORDING_CONFIG_WORKERURL$1="recording.workerUrl",MAX_SIZE=1e6,RESOURCE_CACHING$1="resourceCaching";class Transport{constructor(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)}start(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(n){this.worker=null}}stop(){this.worker&&(this.worker.terminate(),delete this.worker)}send(e,t,n=0){let i=e["url"];var r=e["payload"];if(0<n&&(i=i+"&rt="+n),this.worker&&!t&&r){const o={};return o.promise=new Promise$2((e,t)=>{o.resolve=e,o.reject=t}),this.workerResponse=o,this.worker.postMessage({url:i,payload:r,shouldCacheResources:this.isResourceCachingEnabled}),o.promise}if(!e.body){n=JSON.stringify(r);if(n.length>this.maxSize)throw(r=new Error("maximum recording payload size exceeded")).reason="HEAVY_EVENT",r;e.body=this.pendo.compress(n,"binary"),delete e.payload}return i=i+"&ct="+(new Date).getTime(),this.post(i,{keepalive:t,body:e.body})}post(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$2.resolve():Promise$2.reject(new Error("sendBeacon failed to send recording data")):this.pendo.ajax.post(e,t.body)}_onMessage(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))}_onError(){this.onError&&this.onError()}}const ELEMENT_NODE=1,INPUT_MASK="*".repeat(10);function isElementNode(e){return!!e&&e.nodeType===ELEMENT_NODE}function distanceToMatch(e,t,n=Infinity,i=0){return!isElementNode(e)||n<i?-1:e.matches(t)?i:distanceToMatch(e.parentNode,t,n,i+1)}function shouldMask(n,i){var{maskAllText:i,maskTextSelector:r,unmaskTextSelector:o}=i;try{var a=isElementNode(n)?n:n.parentElement;if(null===a)return!1;let e=-1,t=-1;if(i){if((t=distanceToMatch(a,o))<0)return!0;e=distanceToMatch(a,r,0<=t?t:Infinity)}else{if((e=distanceToMatch(a,r))<0)return!1;t=distanceToMatch(a,o,0<=e?e:Infinity)}return 0<=e?!(0<=t)||e<=t:!(0<=t||!i)}catch(e){}return!!i}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}const 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=104857600,SESSION_RECORDING_ID="pendo_srId",SESSION_RECORDING_LAST_USER_INTERACTION_EVENT="pendo_srLastUserInteractionEvent",SEND_INTERVAL=5e3,MAX_SEND_COUNT=2e4,EVENT_TYPES={INCREMENTAL_SOURCE_MUTATION:0,FULL_SNAPSHOT:2,INCREMENTAL_SNAPSHOT:3,META:4,INCREMENTAL_SOURCE_INPUT:5};class SessionRecorder{constructor(e,t){this.name="Replay",this.record=e,this.WorkerClass=t,this.lastKeyFrameTime=0,this.eventsSinceLastKeyFrame=0,this.currentRecordingSize=0}addConfigOptions(){var e=this.api.ConfigReader;e.addOption(RECORDING_CONFIG,[e.sources.PENDO_CONFIG_SRC],{}),e.addOption(RECORDING_CONFIG_AUTO_START,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_ENABLED,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_ON_RECORDING_START,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_ON_RECORDING_STOP,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_WORKERURL,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_WORKER_OVERRIDE,[e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RESOURCE_CACHING,[e.sources.PENDO_CONFIG_SRC],undefined)}initialize(e,t){this.pendo=e,this.api=t;e=this.pendo._.bind,t=this.api.ConfigReader;this.buffer=new SessionRecorderBuffer(SEND_INTERVAL,MAX_SEND_COUNT),this.buffer.onRateLimit=e(this.rateLimitExceeded,this),this.transport=new Transport(this.WorkerClass,this.pendo,this.api),this.transport.onError=e(this.sendFailure,this,"WORKER_ERROR"),this.transport.onWorkerMessage=e(this.onWorkerMessage,this),this.sendQueue=new SendQueue(e(this.transport.send,this.transport)),this.sendQueue.onTimeout=e(this.sendFailure,this,"SEND_TIMEOUT"),this.isNewSession=!1,this.addConfigOptions(),this.config=t.get(RECORDING_CONFIG),this.onRecordingStart=this.pendo._.isFunction(t.get(RECORDING_CONFIG_ON_RECORDING_START))?t.get(RECORDING_CONFIG_ON_RECORDING_START):function(){},this.onRecordingStop=this.pendo._.isFunction(t.get(RECORDING_CONFIG_ON_RECORDING_STOP))?t.get(RECORDING_CONFIG_ON_RECORDING_STOP):function(){};let n=!1;var i=t.get(RECORDING_CONFIG_ENABLED);this.pendo._.isBoolean(i)?(n=i)||this.api.log.info("Session Replay disabled via the snippet config"):n=this.config.enabled,n&&(t.get("excludeNonGuideAnalytics")?this.api.log.info("Session Replay is disabled because excludeNonGuideAnalytics is enabled"):(i=this.sessionIdKey=SESSION_RECORDING_ID+"."+this.pendo.apiKey,this.pendo.recording={start:e(this.start,this),stop:e(this.stop,this)},this.subscriptions=[this.api.attachEvent(this.api.Events,"appHidden",e(this.handleHidden,this)),this.api.attachEvent(this.api.Events,"appUnloaded",e(this.handleUnload,this)),this.api.attachEvent(this.api.Events,"identify",e(this.changeIdentity,this)),this.api.attachEvent(this.api.Events,"metadata",e(this.changeMetadata,this)),this.api.attachEvent(this.api.Events,"eventCaptured",e(this.addRecordingId,this)),this.api.attachEvent(this.api.Events,"transmit:locked",e(this.stop,this)),this.api.attachEvent(this.api.Events,"transmit:unlocked",e(this._start,this)),this.api.attachEvent(this.api.frames.getChannel(),"message",e(this._frameMessage,this)),this.api.attachEvent(this.api.Events,"tabIdChanged:self",e(this.handleTabIdChange,this))],this.api.store.getters["frames/isReady"]()?this.ready():this.subscriptions.push(this.api.attachEvent(this.api.Events,"ready",e(this.ready,this))),this.api.agentStorage.registry.addSession(i),this.api.agentStorage.registry.addSession(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)))}teardown(){delete this.pendo.recording,delete this.allowStart,this.pendo._.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0,this.stop(),this.transport.stop()}ready(){!1!==this.api.ConfigReader.get(RECORDING_CONFIG_AUTO_START)&&this.start()}changeIdentity(e){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(()=>{this._start()},500))}changeMetadata(e){var{hashChanged:e,options:t}=e.data[0];if(this.allowStart&&e)return clearTimeout(this._changeIdentityTimer),this.visitorId=t.visitor.id,this.accountId=t.account.id,this.fetchVisitorConfig().then(e=>{e&&e.enable||!this.isRecording()?e&&e.enable&&!this.isRecording()&&this._startRecordingForVisitor(e):this.stop()})["catch"](e=>{this.api.log.critical("Failed to re-fetch recording config",{error:e}),this.logStopReason("VISITOR_CONFIG_ERROR")})}snapshot(){this.isRecording()&&(this.send(),this.record.takeFullSnapshot())}isRecording(){return null!=this.interval}recordingConfig(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:{}},t=(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});return t}start(){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()}_markEvents(e){if(this.recordingId)for(var t of e)t.visitor_id===this.visitorId&&"identify"!==t.type&&(t.recordingId=this.recordingId,t.recordingSessionId=this.sessionId(this.recordingId))}restartPtm(){if(this.pendo._.isFunction(this._restartPtm)){this._markEvents(this.pendo.buffers.events);for(var e of this.pendo.buffers.silos)this._markEvents(e);this._restartPtm(),this._restartPtm=null}}_start(){if(!this.isRecording()&&this.pendo.isSendingEvents()&&this.allowStart)return this.fetchVisitorConfig().then(e=>{this.allowStart&&(e&&e.enable?this._startRecordingForVisitor(e):(this.restartPtm(),this.logStopReason("VISITOR_DISABLED")))})["catch"](e=>{this.restartPtm(),this.api.log.critical("Failed to fetch recording config",{error:e}),this.logStopReason("VISITOR_CONFIG_ERROR")})}_startRecordingForVisitor(e){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 t=this.pendo._.bind,n=(this.visitorConfig=e,this.clearOldSessionId(),this.sendQueue.start(),this.interval=setInterval(()=>{this.sendQueue.failed()||this.send()},SEND_INTERVAL),this.recordingConfig(e));this._stop=this.record(this.pendo._.extend({emit:t(this.emit,this)},n)),this._refreshIds(),this.onRecordingStart()}catch(i){this.restartPtm(),this.logStopReason("RECORDING_ERROR")}}_sendIds(){window==window.top&&this.api.frames.getChannel().postMessage({type:"pendo:sr:id",recordingId:this.recordingId,_sessionId:this._sessionId,topId:this.api.store.state.frames.topId})}_refreshIds(){window!=window.top&&this.api.frames.getChannel().postMessage({type:"pendo:sr:refresh"})}_frameMessage(e){e=e.data;"pendo:sr:id"===e.type?this.api.EventTracer.getTabId()==e.tabId&&this.api.store.state.frames.topId!=e.topId||(this.recordingId=e.recordingId,this._sessionId=e._sessionId,this.restartPtm()):"pendo:sr:refresh"===e.type&&window==window.top&&this._sendIds()}clearSessionId(){delete this._sessionId,this.api.sessionStorage.removeItem(SESSION_RECORDING_ID),this.api.sessionStorage.removeItem(this.sessionIdKey)}sessionId(t=this.pendo.randomString(16)){if(!this._sessionId){let e=this.api.sessionStorage.getItem(this.sessionIdKey);var n;e||((n=this.api.sessionStorage.getItem(SESSION_RECORDING_ID))?(e=n,this.api.sessionStorage.removeItem(SESSION_RECORDING_ID)):e=t,this.api.sessionStorage.setItem(this.sessionIdKey,e)),this._sessionId=e}return this._sessionId}clearOldSessionId(){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}clearSessionInfo(){this.currentRecordingSize=0,this.clearSessionId(),this.clearLastUserInteractionEventInformation()}isUserInteraction(e){return e.type===EVENT_TYPES.INCREMENTAL_SNAPSHOT&&e.data.source>EVENT_TYPES.INCREMENTAL_SOURCE_MUTATION&&e.data.source<=EVENT_TYPES.INCREMENTAL_SOURCE_INPUT}storeLastUserInteractionEventInformation(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)))}clearLastUserInteractionEventInformation(){delete this.lastUserInteractionEventInfo,this.api.sessionStorage.removeItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)}getLastUserInteractionEventInformation(){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}}emit(e){e.timestamp&&e.timestamp.getTime&&(e.timestamp=e.timestamp.getTime()),e.timestamp||(e.timestamp=(new Date).getTime());var t=e.type===EVENT_TYPES.META,n=e.type===EVENT_TYPES.FULL_SNAPSHOT,i=this.pendo._.get(this.getLastUserInteractionEventInformation(),"timestamp");let r=!i&&t?!0:!1;this.storeLastUserInteractionEventInformation(e,this.visitorId,this.accountId,r);var o=this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES);i&&e.timestamp-i>o&&!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,o=(i=e.timestamp-this.lastKeyFrameTime)>=ONE_DAY_IN_MILLISECONDS,n=i>=this.pendo._.get(this.visitorConfig,"keyframeTimeFrequency",30645047),t=this.eventsSinceLastKeyFrame>=this.pendo._.get(this.visitorConfig,"keyframeEventFrequency",4548),e=this.currentRecordingSize>=this.pendo._.get(this.visitorConfig,"recordingSizeLimit",ONE_HUNDRED_MB_IN_BYTES),o||n&&t||e)&&(this.currentRecordingSize=0,this.snapshot()))}updateCurrentRecordingSize(e){this.currentRecordingSize+=e}onWorkerMessage(e){switch(e.type){case"recordingPayloadSize":var{recordingPayloadSize:t,exceedsPayloadSizeLimit:n}=e;if(!t)return;if(n)return this.stop(),void this.logStopReason("BIG_PAYLOAD",t);this.updateCurrentRecordingSize(t);break;case"hostedResources":n=e["hostedResourcesEvent"];n&&this.sendHostedResources(n)}}addRecordingId(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]))}stop(){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()}handleHidden(){this.send({hidden:!0})}handleUnload(){this.send({unload:!0})}buildRequestUrl(e,t){t=this.pendo._.extend({},this.api.agent.getJwtInfoCopy(),t),t=this.pendo._.map(t,function(e,t){return t+"="+e}).join("&");return t.length?e+"?"+t:e}sendFailure(e){this.stop(),this.logStopReason(e)}rateLimitExceeded(){this.send(),this.stop(),this.logStopReason("DATA_OVERLOAD")}send({unload:e=!1,keyframe:t=!1,hidden:n=!1}={}){if(this.isRecording()&&this.buffer&&this.recordingId&&!this.buffer.isEmpty())if(this.pendo.isSendingEvents()){var i=this.api.EventTracer.addTracerIds({}),t=this.pendo._.extend({type:"recording",visitorId:this.visitorId,accountId:this.accountId,keyFrame:!!t,lastKeyFrame:this.lastKeyFrameTime,recordingId:this.recordingId,recordingSessionId:this.sessionId(this.recordingId),url:this.pendo.url.get()},i),i=(this.transport.usesSelfHostedWorker&&(t.usesSelfHostedWorker=!0),this.api.Events.eventCaptured.trigger(t),{v:this.pendo.VERSION,recordingId:this.recordingId}),i=(t.keyFrame&&(i.kf=1),this.isNewSession&&(this.isNewSession=!(i.ns=1)),this.buildRequestUrl(this.pendo.HOST+"/data/rec/"+this.pendo.apiKey,i)),t=this.buffer.pack(t,this.pendo._);if(e||n)try{this.sendQueue.drain([{url:i,payload:t}],e)}catch(r){r.reason&&this.logStopReason(r.reason)}else this.sendQueue.push({url:i,payload:t});this.buffer.isEmpty()||this.send({unload:e})}else this.buffer.clear()}fetchVisitorConfig(){var e=this.pendo.compress({url:this.pendo.url.get(),metadata:this.pendo.getSerializedMetadata(),visitorId:this.visitorId,accountId:this.accountId}),e=this.buildRequestUrl(this.pendo.HOST+"/data/recordingconf/"+this.pendo.apiKey,{jzb:e,ct:(new Date).getTime(),v:this.pendo.VERSION});return fetch(e,{method:"GET"}).then(e=>e.json())}logStopReason(e,t){var n=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:Object.assign({reason:e},t&&{error:t})},n),t=this.pendo.compress(e),n=this.buildRequestUrl(this.pendo.HOST+"/data/rec/"+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(n,{body:t,keepalive:!0})["catch"](e=>{this.api.log.critical("Failed to send reason for stopping recording",{error:e})})}sendHostedResources(e){var t=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend(Object.assign(Object.assign({},e),{browserTime:(new Date).getTime()}),t),t=this.buildRequestUrl(this.pendo.HOST+"/data/rec/"+this.pendo.apiKey,{ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),e=this.pendo.compress(e,"binary");return this.transport.post(t,{body:e,keepalive:!0})["catch"](e=>{this.api.log.critical("Failed to send hosted resources for recording event",{error:e})})}handleTabIdChange(){this.send(),this.clearSessionInfo(),this.snapshot()}}function wrapMethodWithCatch(t){return function(){try{return t.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 of Object.getOwnPropertyNames(e.constructor.prototype))"constructor"!==t&&(e[t]=wrapMethodWithCatch(e[t]));return e}function funcToSource(e,t){var t=t===undefined?null:t,n=[],e=(e=e.toString()).replace(/(['"])__worker_loader_strict__(['"])/g,"$1use strict$2");return n.push("("+e+")()"),t&&n.push("//# sourceMappingURL="+t+"\n"),n}function createURL(e,t){e=funcToSource(e,t),t=new Blob(e,{type:"application/javascript"});return URL.createObjectURL(t)}function createInlineWorkerFactory(t,n){var i;return function WorkerFactory(e){return i=i||createURL(t,n),new Worker(i,e)}}var WorkerFactory=createInlineWorkerFactory(function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function l(e,t){t=t||r;e=function(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}("string"==typeof e?e:JSON.stringify(e)),e=new i.Deflate(e).compress();return t===r?n.uint8ToBase64(e):e}function c(e,t){t=t.match(/https:\/\/[^\s]+?\.(woff|woff2|ttf|otf|eot)\b/g);return{type:"recording",visitorId:e.visitorId,accountId:e.accountId,keyFrame:!1,lastKeyFrame:e.lastKeyFrame,recordingId:e.recordingId,recordingSessionId:e.recordingSessionId,url:e.url,subType:"hostedResources",recordingPayload:[],recordingPayloadMetadata:[],sequence:0,recordingPayloadCount:0,hostedResources:t||[]}}var a,n,t,i,r;a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),n={uint8ToBase64:function(e){var t,n,i,r=e.length%3,o="";for(t=0,i=e.length-r;t<i;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],o+=function(e){return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=a[n>>2])+a[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=a[n>>10])+a[n>>4&63])+a[n<<2&63]}return o}},function(){var X=void 0,Q=!0,o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||t===X?r=r[n]||(r[n]={}):r[n]=t}var ee="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function te(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(ee?Uint8Array:Array)?e:new(ee?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&d(this)}function d(e){var t,n=e.buffer,i=n.length,r=new(ee?Uint8Array:Array)(i<<1);if(ee)r.set(n);else for(t=0;t<i;++t)r[t]=n[t];return e.buffer=r}te.prototype.b=function(e,t,n){var i,r=this.buffer,o=this.index,a=this.e,s=r[o];if(n&&1<t&&(e=8<t?(u[255&e]<<24|u[e>>>8&255]<<16|u[e>>>16&255]<<8|u[e>>>24&255])>>32-t:u[e]>>8-t),t+a<8)s=s<<t|e,a+=t;else for(i=0;i<t;++i)s=s<<1|e>>t-i-1&1,8==++a&&(a=0,r[o++]=u[s],s=0,o===r.length)&&(r=d(this));r[o]=s,this.buffer=r,this.e=a,this.index=o},te.prototype.finish=function(){var e=this.buffer,t=this.index;return 0<this.e&&(e[t]<<=8-this.e,e[t]=u[e[t]],t++),ee?e.subarray(0,t):(e.length=t,e)};for(var t=new(ee?Uint8Array:Array)(256),n=0;n<256;++n){for(var i=a=n,r=7,a=a>>>1;a;a>>>=1)i=i<<1|1&a,--r;t[n]=(i<<r&255)>>>0}var u=t;function l(e){this.buffer=new(ee?Uint16Array:Array)(2*e),this.length=0}function s(e,t){this.d=ne,this.i=0,this.input=ee&&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=ee&&t.outputBuffer instanceof Array?new Uint8Array(t.outputBuffer):t.outputBuffer),"number"==typeof t.outputIndex)&&(this.c=t.outputIndex),this.a||(this.a=new(ee?Uint8Array:Array)(32768))}l.prototype.getParent=function(e){return 2*((e-2)/4|0)},l.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},l.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 ne=2,c={NONE:0,h:1,g:ne,n:3},ie=[],p=0;p<288;p++)switch(Q){case p<=143:ie.push([p+48,8]);break;case p<=255:ie.push([p-144+400,9]);break;case p<=279:ie.push([p-256,7]);break;case p<=287:ie.push([p-280+192,8]);break;default:throw"invalid literal: "+p}function b(e,t){this.length=e,this.k=t}s.prototype.f=function(){var e,t,P,n=this.input;switch(this.d){case 0:for(t=0,P=n.length;t<P;){var D,U,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===P,o=X,a=this.a,s=this.c;if(ee){for(a=new Uint8Array(this.a.buffer);a.length<=s+i.length+5;)a=new Uint8Array(a.length<<1);a.set(this.a)}if(a[s++]=0|(r?1:0),D=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&D,a[s++]=D>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,U=i.length;o<U;++o)a[s++]=i[o];a.length=s}this.c=s,this.a=a}break;case 1:for(var d,u=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),l=(u.b(1,1,Q),u.b(1,2,Q),re(this,n)),c=0,G=l.length;c<G;c++)if(d=l[c],te.prototype.b.apply(u,ie[d]),256<d)u.b(l[++c],l[++c],Q),u.b(l[++c],5),u.b(l[++c],l[++c],Q);else if(256===d)break;this.a=u.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,B,b,w,S,z,I=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=Array(19),E=ne;for(I.b(1,1,Q),I.b(E,2,Q),p=re(this,n),E=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var C,x,_,T,k,W=h,q=f,R=new(ee?Uint32Array:Array)(W+q),A=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=C=0;N<W;N++)R[C++]=m[N];for(N=0;N<q;N++)R[C++]=v[N];if(!ee)for(N=0,_=O.length;N<_;++N)O[N]=0;for(N=T=0,_=R.length;N<_;N+=C){for(C=1;N+C<_&&R[N+C]===R[N];++C);if(x=C,0===R[N])if(x<3)for(;0<x--;)O[A[T++]=0]++;else for(;0<x;)(k=x-3<(k=x<138?x:138)&&k<x?x-3:k)<=10?(A[T++]=17,A[T++]=k-3,O[17]++):(A[T++]=18,A[T++]=k-11,O[18]++),x-=k;else if(A[T++]=R[N],O[R[N]]++,--x<3)for(;0<x--;)A[T++]=R[N],O[R[N]]++;else for(;0<x;)x-3<(k=x<6?x:6)&&k<x&&(k=x-3),A[T++]=16,A[T++]=k-3,O[16]++,x-=k}for(e=ee?A.subarray(0,T):A.slice(0,T),y=oe(O,7),S=0;S<19;S++)j[S]=y[H[S]];for(g=19;4<g&&0===j[g-1];g--);for(B=ae(y),I.b(h-257,5,Q),I.b(f-1,5,Q),I.b(g-4,4,Q),S=0;S<g;S++)I.b(j[S],3,Q);for(S=0,z=e.length;S<z;S++)if(b=e[S],I.b(B[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}I.b(e[S],w,Q)}for(var M,J,E=[E,m],L=[L,v],V=E[0],K=E[1],$=L[0],Z=L[1],F=0,Y=p.length;F<Y;++F)if(M=p[F],I.b(V[M],K[M],Q),256<M)I.b(p[++F],p[++F],Q),J=p[++F],I.b($[J],Z[J],Q),I.b(p[++F],p[++F],Q);else if(256===M)break;this.a=I.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){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}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,d=w[e.length];switch(a[s++]=65535&d,a[s++]=d>>16&255,a[s++]=d>>24,Q){case 1===o:n=[0,o-1,0];break;case 2===o:n=[1,o-2,0];break;case 3===o:n=[2,o-3,0];break;case 4===o:n=[3,o-4,0];break;case o<=6:n=[4,o-5,1];break;case o<=8:n=[5,o-7,1];break;case o<=12:n=[6,o-9,2];break;case o<=16:n=[7,o-13,2];break;case o<=24:n=[8,o-17,3];break;case o<=32:n=[9,o-25,3];break;case o<=48:n=[10,o-33,4];break;case o<=64:n=[11,o-49,4];break;case o<=96:n=[12,o-65,5];break;case o<=128:n=[13,o-97,5];break;case o<=192:n=[14,o-129,6];break;case o<=256:n=[15,o-193,6];break;case o<=384:n=[16,o-257,7];break;case o<=512:n=[17,o-385,7];break;case o<=768:n=[18,o-513,8];break;case o<=1024:n=[19,o-769,8];break;case o<=1536:n=[20,o-1025,9];break;case o<=2048:n=[21,o-1537,9];break;case o<=3072:n=[22,o-2049,10];break;case o<=4096:n=[23,o-3073,10];break;case o<=6144:n=[24,o-4097,11];break;case o<=8192:n=[25,o-6145,11];break;case o<=12288:n=[26,o-8193,12];break;case o<=16384:n=[27,o-12289,12];break;case o<=24576:n=[28,o-16385,13];break;case o<=32768:n=[29,o-24577,13];break;default:throw"invalid distance"}for(d=n,a[s++]=d[0],a[+s]=d[1],a[5]=d[2],i=0,r=a.length;i<r;++i)h[f++]=a[i];m[a[0]]++,v[a[3]]++,g=e.length+t-1,l=null}var i,r,o,a,s,d,u,l,c,p={},h=ee?new Uint16Array(2*t.length):[],f=0,g=0,m=new(ee?Uint32Array:Array)(286),v=new(ee?Uint32Array:Array)(30),y=e.i;if(!ee){for(o=0;o<=285;)m[o++]=0;for(o=0;o<=29;)v[o++]=0}for(m[256]=1,i=0,r=t.length;i<r;++i){for(o=s=0,a=3;o<a&&i+o!==r;++o)s=s<<8|t[i+o];if(p[s]===X&&(p[s]=[]),d=p[s],!(0<g--)){for(;0<d.length&&32768<i-d[0];)d.shift();if(r<=i+3){for(l&&n(l,-1),o=0,a=r-i;o<a;++o)c=t[i+o],h[f++]=c,++m[c];break}0<d.length?(u=function(e,t,n){var i,r,o,a,s,d,u=0,l=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<l&&e[i+o]===e[t+o];)++o;if(u<o&&(r=i,u=o),258===o)break}return new b(u,t-r)}(t,i,d),l?l.length<u.length?(c=t[i-1],h[f++]=c,++m[c],n(u,0)):n(l,-1):u.length<y?l=u:n(u,0)):l?n(l,-1):(c=t[i],h[f++]=c,++m[c])}d.push(i)}return h[f++]=256,m[256]++,e.m=m,e.l=v,ee?h.subarray(0,f):h}function oe(e,t){var n,i,r,o,a,s=e.length,d=new l(572),u=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)u[o]=0;for(o=0;o<s;++o)0<e[o]&&d.push(o,e[o]);if(n=Array(d.length/2),i=new(ee?Uint32Array:Array)(d.length/2),1===n.length)u[d.pop().index]=1;else{for(o=0,a=d.length/2;o<a;++o)n[o]=d.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,d=new(ee?Uint16Array:Array)(t),u=new(ee?Uint8Array:Array)(t),l=new(ee?Uint8Array:Array)(n),c=Array(t),p=Array(t),h=Array(t),f=(1<<t)-n,g=1<<t-1;for(d[t-1]=n,r=0;r<t;++r)f<g?u[r]=0:(u[r]=1,f-=g),f<<=1,d[t-2-r]=(d[t-1-r]/2|0)+n;for(d[0]=u[0],c[0]=Array(d[0]),p[0]=Array(d[0]),r=1;r<t;++r)d[r]>2*d[r-1]+u[r]&&(d[r]=2*d[r-1]+u[r]),c[r]=Array(d[r]),p[r]=Array(d[r]);for(i=0;i<n;++i)l[i]=t;for(o=0;o<d[t-1];++o)c[t-1][o]=e[o],p[t-1][o]=o;for(i=0;i<t;++i)h[i]=0;for(1===u[t-1]&&(--l[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<d[r];o++)(a=c[r+1][s]+c[r+1][s+1])>e[i]?(c[r][o]=a,p[r][o]=n,s+=2):(c[r][o]=e[i],p[r][o]=i,++i);h[r]=0,1===u[r]&&function m(e){var t=p[e][h[e]];t===n?(m(e+1),m(e+1)):--l[t],++h[e]}(r)}return l}(i,i.length,t),o=0,a=n.length;o<a;++o)u[n[o].index]=r[o]}return u}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,d=e.length;s<d;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,d=16;s<=d;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,d=e.length;s<d;s++)for(a=o[e[s]],o[e[s]]+=1,t=i[s]=0,n=e[s];t<n;t++)i[s]=i[s]<<1|1&a,a>>>=1;return i}function f(e,t){this.input=e,this.a=new(ee?Uint8Array:Array)(32768),this.d=S.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 s(this.input,i)}var g,m,v,y,S=c,I=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,d=a.length;s<d;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var u,l=1,c=0,p=o.length,h=0;0<p;){for(p-=u=1024<p?1024:p;c+=l+=o[h++],--u;);l%=65521,c%=65521}return r=(c<<16|l)>>>0,this.j.c=2,n=(i=this.j.f()).length,ee&&((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++]=r>>24&255,i[n++]=r>>16&255,i[n++]=r>>8&255,i[+n]=255&r,i},e("Zlib.Deflate",f),e("Zlib.Deflate.compress",function(e,t){return new f(e,t).f()}),e("Zlib.Deflate.prototype.compress",f.prototype.f),{NONE:S.NONE,FIXED:S.h,DYNAMIC:S.g});if(Object.keys)g=Object.keys(I);else for(m in g=[],v=0,I)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),I[m])}.call((t={exports:{}}).exports),i={Deflate:e(t.exports).Zlib.Deflate},r="base64url",self.onmessage=function(e){try{if(e.data.url&&e.data.payload){var{url:t,payload:n,shouldCacheResources:i}=e.data;const u=n["sequence"];var r,o,a=JSON.stringify(n.recordingPayload),s=(new TextEncoder).encode(a).length,d=104857600<=s;postMessage({type:"recordingPayloadSize",recordingPayloadSize:s,exceedsPayloadSizeLimit:d}),d||(i&&(r=c(n,a)).hostedResources.length&&postMessage({type:"hostedResources",hostedResourcesEvent:r}),n.recordingSize=s,o=l(n,"binary"),t=t+"&ct="+(new Date).getTime(),fetch(t,{method:"POST",body:o}).then(function(e){e.status<200||300<=e.status?postMessage({error:new Error(`received status code ${e.status}: `+e.statusText),status:e.status,sequence:u}):postMessage({sequence:u})})["catch"](function(e){postMessage({error:e,sequence:u})}))}}catch(e){postMessage({error:e})}}},null);function createReplayPlugin(){return errorLogger(new SessionRecorder(record(),WorkerFactory))}export{Feedback,GuideMarkdown,createReplayPlugin as Replay,TextCapture,VocPortal,loadAgent};
|